From aab9f3a4f17f30dcd59528709f40f0b799f11599 Mon Sep 17 00:00:00 2001 From: corbanbrook Date: Tue, 3 Dec 2024 19:09:22 +0000 Subject: [PATCH] Build: (1666856) Updating sequence to v2.1.4 --- assets/index-BqzbLpmc.css | 1 - assets/index-CCNi1xHJ.css | 1 + assets/index-D9pBm6Bj.js | 168 ---------------------------------- assets/index-DHa5VEuO.js | 186 ++++++++++++++++++++++++++++++++++++++ index.html | 4 +- 5 files changed, 189 insertions(+), 171 deletions(-) delete mode 100644 assets/index-BqzbLpmc.css create mode 100644 assets/index-CCNi1xHJ.css delete mode 100644 assets/index-D9pBm6Bj.js create mode 100644 assets/index-DHa5VEuO.js diff --git a/assets/index-BqzbLpmc.css b/assets/index-BqzbLpmc.css deleted file mode 100644 index 05469f1..0000000 --- a/assets/index-BqzbLpmc.css +++ /dev/null @@ -1 +0,0 @@ -body{background:var(--seq-colors-background-primary)}*,*:before,*:after{box-sizing:border-box}.seq-root *,.seq-root *:before,.seq-root *:after{box-sizing:border-box}:root{--seq-blur-blur: blur(12.5px);--seq-blur-none: none;--seq-border-widths-none: 0;--seq-border-widths-thin: .075rem;--seq-border-widths-thick: .125rem;--seq-fonts-inherit: inherit;--seq-fonts-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Helvetica Neue", Arial;--seq-fonts-mono: "iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--seq-font-sizes-inherit: inherit;--seq-font-sizes-xsmall: .625rem;--seq-font-sizes-small: .75rem;--seq-font-sizes-normal: .875rem;--seq-font-sizes-medium: 1rem;--seq-font-sizes-large: 1.25rem;--seq-font-sizes-xlarge: 1.875rem;--seq-font-weights-inherit: inherit;--seq-font-weights-normal: 400;--seq-font-weights-medium: 500;--seq-font-weights-semibold: 600;--seq-font-weights-bold: 700;--seq-letter-spacings-inherit: inherit;--seq-letter-spacings-none: 0;--seq-letter-spacings-normal: .01em;--seq-letter-spacings-wide: .03em;--seq-line-heights-4: 1rem;--seq-line-heights-5: 1.25rem;--seq-line-heights-6: 1.5rem;--seq-line-heights-7: 1.75rem;--seq-line-heights-9: 2.25rem;--seq-line-heights-inherit: inherit;--seq-opacity-0: 0;--seq-opacity-50: .5;--seq-opacity-80: .8;--seq-opacity-100: 1;--seq-radii-none: 0;--seq-radii-xs: .25rem;--seq-radii-sm: .5rem;--seq-radii-md: .75rem;--seq-radii-lg: 1rem;--seq-radii-circle: 9999px;--seq-space-0: 0;--seq-space-1: .25rem;--seq-space-2: .5rem;--seq-space-3: .75rem;--seq-space-4: 1rem;--seq-space-5: 1.25rem;--seq-space-6: 1.5rem;--seq-space-7: 1.75rem;--seq-space-8: 2rem;--seq-space-9: 2.25rem;--seq-space-10: 2.5rem;--seq-space-12: 3rem;--seq-space-14: 3.5rem;--seq-space-16: 4rem;--seq-space-0_25: .0625rem;--seq-space-0_5: .125rem;--seq-space-1_5: .375rem}:root{--seq-colors-black: #000000;--seq-colors-white: #ffffff;--seq-colors-inherit: inherit;--seq-colors-transparent: transparent;--seq-colors-positive: #1FC266;--seq-colors-negative: #C2501F;--seq-colors-info: #0076CC;--seq-colors-warning: #F4B03E;--seq-colors-gradient-backdrop: linear-gradient( 243.18deg, rgba(86, 52, 189, .85) 0%, rgba(49, 41, 223, .85) 63.54%, rgba(7, 98, 149, .85) 100% );--seq-colors-gradient-primary: linear-gradient(89.69deg, #4411E1 .27%, #7537F9 99.73%);--seq-colors-gradient-secondary: linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%);--seq-colors-arbitrum-dark: #212D44;--seq-colors-arbitrum-light: #93D4FF;--seq-colors-avalance-dark: #810C0C;--seq-colors-avalance-light: #FF8080;--seq-colors-bsc-dark: #584508;--seq-colors-bsc-light: #FCCF43;--seq-colors-ethereum-dark: #132362;--seq-colors-ethereum-light: #AABBFF;--seq-colors-gnosis-dark: #084246;--seq-colors-gnosis-light: #8CF6FD;--seq-colors-polygon-dark: #350881;--seq-colors-polygon-light: #C7A6FF;--seq-colors-text100: rgba(255, 255, 255, 1);--seq-colors-text80: rgba(255, 255, 255, .8);--seq-colors-text50: rgba(255, 255, 255, .5);--seq-colors-text-inverse100: rgba(0, 0, 0, 1);--seq-colors-background-primary: rgba(0, 0, 0, 1);--seq-colors-background-secondary: rgba(255, 255, 255, .1);--seq-colors-background-contrast: rgba(0, 0, 0, .5);--seq-colors-background-muted: rgba(255, 255, 255, .05);--seq-colors-background-control: rgba(255, 255, 255, .25);--seq-colors-background-inverse: rgba(255, 255, 255, 1);--seq-colors-background-backdrop: rgba(34, 34, 34, .9);--seq-colors-background-overlay: rgba(0, 0, 0, .7);--seq-colors-background-raised: rgba(54, 54, 54, .7);--seq-colors-button-glass: rgba(255, 255, 255, .15);--seq-colors-button-emphasis: rgba(0, 0, 0, .5);--seq-colors-button-inverse: rgba(255, 255, 255, .8);--seq-colors-border-normal: rgba(255, 255, 255, .25);--seq-colors-border-focus: rgba(255, 255, 255, .5)}.fyvr10{width:var(--seq-space-0)}.fyvr14{width:var(--seq-space-1)}.fyvr18{width:var(--seq-space-2)}.fyvr1c{width:var(--seq-space-3)}.fyvr1g{width:var(--seq-space-4)}.fyvr1k{width:var(--seq-space-5)}.fyvr1o{width:var(--seq-space-6)}.fyvr1s{width:var(--seq-space-7)}.fyvr1w{width:var(--seq-space-8)}.fyvr110{width:var(--seq-space-9)}.fyvr114{width:var(--seq-space-10)}.fyvr118{width:var(--seq-space-12)}.fyvr11c{width:var(--seq-space-14)}.fyvr11g{width:var(--seq-space-16)}.fyvr11k{width:var(--seq-space-0_25)}.fyvr11o{width:var(--seq-space-0_5)}.fyvr11s{width:var(--seq-space-1_5)}.fyvr11w{width:0}.fyvr120{width:1px}.fyvr124{width:auto}.fyvr128{width:100%}.fyvr12c{width:50%}.fyvr12g{width:33.33333%}.fyvr12k{width:66.66667%}.fyvr12o{width:25%}.fyvr12s{width:75%}.fyvr12w{width:-moz-fit-content;width:fit-content}.fyvr130{width:-moz-max-content;width:max-content}.fyvr134{width:-moz-min-content;width:min-content}.fyvr138{width:100vw}.fyvr13c{width:100vh}.fyvr13g{height:var(--seq-space-0)}.fyvr13k{height:var(--seq-space-1)}.fyvr13o{height:var(--seq-space-2)}.fyvr13s{height:var(--seq-space-3)}.fyvr13w{height:var(--seq-space-4)}.fyvr140{height:var(--seq-space-5)}.fyvr144{height:var(--seq-space-6)}.fyvr148{height:var(--seq-space-7)}.fyvr14c{height:var(--seq-space-8)}.fyvr14g{height:var(--seq-space-9)}.fyvr14k{height:var(--seq-space-10)}.fyvr14o{height:var(--seq-space-12)}.fyvr14s{height:var(--seq-space-14)}.fyvr14w{height:var(--seq-space-16)}.fyvr150{height:var(--seq-space-0_25)}.fyvr154{height:var(--seq-space-0_5)}.fyvr158{height:var(--seq-space-1_5)}.fyvr15c{height:0}.fyvr15g{height:1px}.fyvr15k{height:auto}.fyvr15o{height:100%}.fyvr15s{height:50%}.fyvr15w{height:33.33333%}.fyvr160{height:66.66667%}.fyvr164{height:25%}.fyvr168{height:75%}.fyvr16c{height:-moz-fit-content;height:fit-content}.fyvr16g{height:-moz-max-content;height:max-content}.fyvr16k{height:-moz-min-content;height:min-content}.fyvr16o{height:100vw}.fyvr16s{height:100vh}.fyvr16w{max-width:var(--seq-space-0)}.fyvr170{max-width:var(--seq-space-1)}.fyvr174{max-width:var(--seq-space-2)}.fyvr178{max-width:var(--seq-space-3)}.fyvr17c{max-width:var(--seq-space-4)}.fyvr17g{max-width:var(--seq-space-5)}.fyvr17k{max-width:var(--seq-space-6)}.fyvr17o{max-width:var(--seq-space-7)}.fyvr17s{max-width:var(--seq-space-8)}.fyvr17w{max-width:var(--seq-space-9)}.fyvr180{max-width:var(--seq-space-10)}.fyvr184{max-width:var(--seq-space-12)}.fyvr188{max-width:var(--seq-space-14)}.fyvr18c{max-width:var(--seq-space-16)}.fyvr18g{max-width:var(--seq-space-0_25)}.fyvr18k{max-width:var(--seq-space-0_5)}.fyvr18o{max-width:var(--seq-space-1_5)}.fyvr18s{max-width:0}.fyvr18w{max-width:1px}.fyvr190{max-width:auto}.fyvr194{max-width:100%}.fyvr198{max-width:50%}.fyvr19c{max-width:33.33333%}.fyvr19g{max-width:66.66667%}.fyvr19k{max-width:25%}.fyvr19o{max-width:75%}.fyvr19s{max-width:-moz-fit-content;max-width:fit-content}.fyvr19w{max-width:-moz-max-content;max-width:max-content}.fyvr1a0{max-width:-moz-min-content;max-width:min-content}.fyvr1a4{max-width:100vw}.fyvr1a8{max-width:100vh}.fyvr1ac{max-height:var(--seq-space-0)}.fyvr1ag{max-height:var(--seq-space-1)}.fyvr1ak{max-height:var(--seq-space-2)}.fyvr1ao{max-height:var(--seq-space-3)}.fyvr1as{max-height:var(--seq-space-4)}.fyvr1aw{max-height:var(--seq-space-5)}.fyvr1b0{max-height:var(--seq-space-6)}.fyvr1b4{max-height:var(--seq-space-7)}.fyvr1b8{max-height:var(--seq-space-8)}.fyvr1bc{max-height:var(--seq-space-9)}.fyvr1bg{max-height:var(--seq-space-10)}.fyvr1bk{max-height:var(--seq-space-12)}.fyvr1bo{max-height:var(--seq-space-14)}.fyvr1bs{max-height:var(--seq-space-16)}.fyvr1bw{max-height:var(--seq-space-0_25)}.fyvr1c0{max-height:var(--seq-space-0_5)}.fyvr1c4{max-height:var(--seq-space-1_5)}.fyvr1c8{max-height:0}.fyvr1cc{max-height:1px}.fyvr1cg{max-height:auto}.fyvr1ck{max-height:100%}.fyvr1co{max-height:50%}.fyvr1cs{max-height:33.33333%}.fyvr1cw{max-height:66.66667%}.fyvr1d0{max-height:25%}.fyvr1d4{max-height:75%}.fyvr1d8{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dc{max-height:-moz-max-content;max-height:max-content}.fyvr1dg{max-height:-moz-min-content;max-height:min-content}.fyvr1dk{max-height:100vw}.fyvr1do{max-height:100vh}.fyvr1ds{min-width:var(--seq-space-0)}.fyvr1dw{min-width:var(--seq-space-1)}.fyvr1e0{min-width:var(--seq-space-2)}.fyvr1e4{min-width:var(--seq-space-3)}.fyvr1e8{min-width:var(--seq-space-4)}.fyvr1ec{min-width:var(--seq-space-5)}.fyvr1eg{min-width:var(--seq-space-6)}.fyvr1ek{min-width:var(--seq-space-7)}.fyvr1eo{min-width:var(--seq-space-8)}.fyvr1es{min-width:var(--seq-space-9)}.fyvr1ew{min-width:var(--seq-space-10)}.fyvr1f0{min-width:var(--seq-space-12)}.fyvr1f4{min-width:var(--seq-space-14)}.fyvr1f8{min-width:var(--seq-space-16)}.fyvr1fc{min-width:var(--seq-space-0_25)}.fyvr1fg{min-width:var(--seq-space-0_5)}.fyvr1fk{min-width:var(--seq-space-1_5)}.fyvr1fo{min-width:0}.fyvr1fs{min-width:1px}.fyvr1fw{min-width:auto}.fyvr1g0{min-width:100%}.fyvr1g4{min-width:50%}.fyvr1g8{min-width:33.33333%}.fyvr1gc{min-width:66.66667%}.fyvr1gg{min-width:25%}.fyvr1gk{min-width:75%}.fyvr1go{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gs{min-width:-moz-max-content;min-width:max-content}.fyvr1gw{min-width:-moz-min-content;min-width:min-content}.fyvr1h0{min-width:100vw}.fyvr1h4{min-width:100vh}.fyvr1h8{min-height:var(--seq-space-0)}.fyvr1hc{min-height:var(--seq-space-1)}.fyvr1hg{min-height:var(--seq-space-2)}.fyvr1hk{min-height:var(--seq-space-3)}.fyvr1ho{min-height:var(--seq-space-4)}.fyvr1hs{min-height:var(--seq-space-5)}.fyvr1hw{min-height:var(--seq-space-6)}.fyvr1i0{min-height:var(--seq-space-7)}.fyvr1i4{min-height:var(--seq-space-8)}.fyvr1i8{min-height:var(--seq-space-9)}.fyvr1ic{min-height:var(--seq-space-10)}.fyvr1ig{min-height:var(--seq-space-12)}.fyvr1ik{min-height:var(--seq-space-14)}.fyvr1io{min-height:var(--seq-space-16)}.fyvr1is{min-height:var(--seq-space-0_25)}.fyvr1iw{min-height:var(--seq-space-0_5)}.fyvr1j0{min-height:var(--seq-space-1_5)}.fyvr1j4{min-height:0}.fyvr1j8{min-height:1px}.fyvr1jc{min-height:auto}.fyvr1jg{min-height:100%}.fyvr1jk{min-height:50%}.fyvr1jo{min-height:33.33333%}.fyvr1js{min-height:66.66667%}.fyvr1jw{min-height:25%}.fyvr1k0{min-height:75%}.fyvr1k4{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k8{min-height:-moz-max-content;min-height:max-content}.fyvr1kc{min-height:-moz-min-content;min-height:min-content}.fyvr1kg{min-height:100vw}.fyvr1kk{min-height:100vh}.fyvr1ko{top:var(--seq-space-0)}.fyvr1ks{top:var(--seq-space-1)}.fyvr1kw{top:var(--seq-space-2)}.fyvr1l0{top:var(--seq-space-3)}.fyvr1l4{top:var(--seq-space-4)}.fyvr1l8{top:var(--seq-space-5)}.fyvr1lc{top:var(--seq-space-6)}.fyvr1lg{top:var(--seq-space-7)}.fyvr1lk{top:var(--seq-space-8)}.fyvr1lo{top:var(--seq-space-9)}.fyvr1ls{top:var(--seq-space-10)}.fyvr1lw{top:var(--seq-space-12)}.fyvr1m0{top:var(--seq-space-14)}.fyvr1m4{top:var(--seq-space-16)}.fyvr1m8{top:var(--seq-space-0_25)}.fyvr1mc{top:var(--seq-space-0_5)}.fyvr1mg{top:var(--seq-space-1_5)}.fyvr1mk{top:auto}.fyvr1mo{bottom:var(--seq-space-0)}.fyvr1ms{bottom:var(--seq-space-1)}.fyvr1mw{bottom:var(--seq-space-2)}.fyvr1n0{bottom:var(--seq-space-3)}.fyvr1n4{bottom:var(--seq-space-4)}.fyvr1n8{bottom:var(--seq-space-5)}.fyvr1nc{bottom:var(--seq-space-6)}.fyvr1ng{bottom:var(--seq-space-7)}.fyvr1nk{bottom:var(--seq-space-8)}.fyvr1no{bottom:var(--seq-space-9)}.fyvr1ns{bottom:var(--seq-space-10)}.fyvr1nw{bottom:var(--seq-space-12)}.fyvr1o0{bottom:var(--seq-space-14)}.fyvr1o4{bottom:var(--seq-space-16)}.fyvr1o8{bottom:var(--seq-space-0_25)}.fyvr1oc{bottom:var(--seq-space-0_5)}.fyvr1og{bottom:var(--seq-space-1_5)}.fyvr1ok{bottom:auto}.fyvr1oo{left:var(--seq-space-0)}.fyvr1os{left:var(--seq-space-1)}.fyvr1ow{left:var(--seq-space-2)}.fyvr1p0{left:var(--seq-space-3)}.fyvr1p4{left:var(--seq-space-4)}.fyvr1p8{left:var(--seq-space-5)}.fyvr1pc{left:var(--seq-space-6)}.fyvr1pg{left:var(--seq-space-7)}.fyvr1pk{left:var(--seq-space-8)}.fyvr1po{left:var(--seq-space-9)}.fyvr1ps{left:var(--seq-space-10)}.fyvr1pw{left:var(--seq-space-12)}.fyvr1q0{left:var(--seq-space-14)}.fyvr1q4{left:var(--seq-space-16)}.fyvr1q8{left:var(--seq-space-0_25)}.fyvr1qc{left:var(--seq-space-0_5)}.fyvr1qg{left:var(--seq-space-1_5)}.fyvr1qk{left:auto}.fyvr1qo{right:var(--seq-space-0)}.fyvr1qs{right:var(--seq-space-1)}.fyvr1qw{right:var(--seq-space-2)}.fyvr1r0{right:var(--seq-space-3)}.fyvr1r4{right:var(--seq-space-4)}.fyvr1r8{right:var(--seq-space-5)}.fyvr1rc{right:var(--seq-space-6)}.fyvr1rg{right:var(--seq-space-7)}.fyvr1rk{right:var(--seq-space-8)}.fyvr1ro{right:var(--seq-space-9)}.fyvr1rs{right:var(--seq-space-10)}.fyvr1rw{right:var(--seq-space-12)}.fyvr1s0{right:var(--seq-space-14)}.fyvr1s4{right:var(--seq-space-16)}.fyvr1s8{right:var(--seq-space-0_25)}.fyvr1sc{right:var(--seq-space-0_5)}.fyvr1sg{right:var(--seq-space-1_5)}.fyvr1sk{right:auto}.fyvr1so{padding-top:var(--seq-space-0)}.fyvr1ss{padding-top:var(--seq-space-1)}.fyvr1sw{padding-top:var(--seq-space-2)}.fyvr1t0{padding-top:var(--seq-space-3)}.fyvr1t4{padding-top:var(--seq-space-4)}.fyvr1t8{padding-top:var(--seq-space-5)}.fyvr1tc{padding-top:var(--seq-space-6)}.fyvr1tg{padding-top:var(--seq-space-7)}.fyvr1tk{padding-top:var(--seq-space-8)}.fyvr1to{padding-top:var(--seq-space-9)}.fyvr1ts{padding-top:var(--seq-space-10)}.fyvr1tw{padding-top:var(--seq-space-12)}.fyvr1u0{padding-top:var(--seq-space-14)}.fyvr1u4{padding-top:var(--seq-space-16)}.fyvr1u8{padding-top:var(--seq-space-0_25)}.fyvr1uc{padding-top:var(--seq-space-0_5)}.fyvr1ug{padding-top:var(--seq-space-1_5)}.fyvr1uk{padding-bottom:var(--seq-space-0)}.fyvr1uo{padding-bottom:var(--seq-space-1)}.fyvr1us{padding-bottom:var(--seq-space-2)}.fyvr1uw{padding-bottom:var(--seq-space-3)}.fyvr1v0{padding-bottom:var(--seq-space-4)}.fyvr1v4{padding-bottom:var(--seq-space-5)}.fyvr1v8{padding-bottom:var(--seq-space-6)}.fyvr1vc{padding-bottom:var(--seq-space-7)}.fyvr1vg{padding-bottom:var(--seq-space-8)}.fyvr1vk{padding-bottom:var(--seq-space-9)}.fyvr1vo{padding-bottom:var(--seq-space-10)}.fyvr1vs{padding-bottom:var(--seq-space-12)}.fyvr1vw{padding-bottom:var(--seq-space-14)}.fyvr1w0{padding-bottom:var(--seq-space-16)}.fyvr1w4{padding-bottom:var(--seq-space-0_25)}.fyvr1w8{padding-bottom:var(--seq-space-0_5)}.fyvr1wc{padding-bottom:var(--seq-space-1_5)}.fyvr1wg{padding-left:var(--seq-space-0)}.fyvr1wk{padding-left:var(--seq-space-1)}.fyvr1wo{padding-left:var(--seq-space-2)}.fyvr1ws{padding-left:var(--seq-space-3)}.fyvr1ww{padding-left:var(--seq-space-4)}.fyvr1x0{padding-left:var(--seq-space-5)}.fyvr1x4{padding-left:var(--seq-space-6)}.fyvr1x8{padding-left:var(--seq-space-7)}.fyvr1xc{padding-left:var(--seq-space-8)}.fyvr1xg{padding-left:var(--seq-space-9)}.fyvr1xk{padding-left:var(--seq-space-10)}.fyvr1xo{padding-left:var(--seq-space-12)}.fyvr1xs{padding-left:var(--seq-space-14)}.fyvr1xw{padding-left:var(--seq-space-16)}.fyvr1y0{padding-left:var(--seq-space-0_25)}.fyvr1y4{padding-left:var(--seq-space-0_5)}.fyvr1y8{padding-left:var(--seq-space-1_5)}.fyvr1yc{padding-right:var(--seq-space-0)}.fyvr1yg{padding-right:var(--seq-space-1)}.fyvr1yk{padding-right:var(--seq-space-2)}.fyvr1yo{padding-right:var(--seq-space-3)}.fyvr1ys{padding-right:var(--seq-space-4)}.fyvr1yw{padding-right:var(--seq-space-5)}.fyvr1z0{padding-right:var(--seq-space-6)}.fyvr1z4{padding-right:var(--seq-space-7)}.fyvr1z8{padding-right:var(--seq-space-8)}.fyvr1zc{padding-right:var(--seq-space-9)}.fyvr1zg{padding-right:var(--seq-space-10)}.fyvr1zk{padding-right:var(--seq-space-12)}.fyvr1zo{padding-right:var(--seq-space-14)}.fyvr1zs{padding-right:var(--seq-space-16)}.fyvr1zw{padding-right:var(--seq-space-0_25)}.fyvr1100{padding-right:var(--seq-space-0_5)}.fyvr1104{padding-right:var(--seq-space-1_5)}.fyvr1108{margin-top:var(--seq-space-0)}.fyvr110c{margin-top:var(--seq-space-1)}.fyvr110g{margin-top:var(--seq-space-2)}.fyvr110k{margin-top:var(--seq-space-3)}.fyvr110o{margin-top:var(--seq-space-4)}.fyvr110s{margin-top:var(--seq-space-5)}.fyvr110w{margin-top:var(--seq-space-6)}.fyvr1110{margin-top:var(--seq-space-7)}.fyvr1114{margin-top:var(--seq-space-8)}.fyvr1118{margin-top:var(--seq-space-9)}.fyvr111c{margin-top:var(--seq-space-10)}.fyvr111g{margin-top:var(--seq-space-12)}.fyvr111k{margin-top:var(--seq-space-14)}.fyvr111o{margin-top:var(--seq-space-16)}.fyvr111s{margin-top:var(--seq-space-0_25)}.fyvr111w{margin-top:var(--seq-space-0_5)}.fyvr1120{margin-top:var(--seq-space-1_5)}.fyvr1124{margin-top:auto}.fyvr1128{margin-bottom:var(--seq-space-0)}.fyvr112c{margin-bottom:var(--seq-space-1)}.fyvr112g{margin-bottom:var(--seq-space-2)}.fyvr112k{margin-bottom:var(--seq-space-3)}.fyvr112o{margin-bottom:var(--seq-space-4)}.fyvr112s{margin-bottom:var(--seq-space-5)}.fyvr112w{margin-bottom:var(--seq-space-6)}.fyvr1130{margin-bottom:var(--seq-space-7)}.fyvr1134{margin-bottom:var(--seq-space-8)}.fyvr1138{margin-bottom:var(--seq-space-9)}.fyvr113c{margin-bottom:var(--seq-space-10)}.fyvr113g{margin-bottom:var(--seq-space-12)}.fyvr113k{margin-bottom:var(--seq-space-14)}.fyvr113o{margin-bottom:var(--seq-space-16)}.fyvr113s{margin-bottom:var(--seq-space-0_25)}.fyvr113w{margin-bottom:var(--seq-space-0_5)}.fyvr1140{margin-bottom:var(--seq-space-1_5)}.fyvr1144{margin-bottom:auto}.fyvr1148{margin-left:var(--seq-space-0)}.fyvr114c{margin-left:var(--seq-space-1)}.fyvr114g{margin-left:var(--seq-space-2)}.fyvr114k{margin-left:var(--seq-space-3)}.fyvr114o{margin-left:var(--seq-space-4)}.fyvr114s{margin-left:var(--seq-space-5)}.fyvr114w{margin-left:var(--seq-space-6)}.fyvr1150{margin-left:var(--seq-space-7)}.fyvr1154{margin-left:var(--seq-space-8)}.fyvr1158{margin-left:var(--seq-space-9)}.fyvr115c{margin-left:var(--seq-space-10)}.fyvr115g{margin-left:var(--seq-space-12)}.fyvr115k{margin-left:var(--seq-space-14)}.fyvr115o{margin-left:var(--seq-space-16)}.fyvr115s{margin-left:var(--seq-space-0_25)}.fyvr115w{margin-left:var(--seq-space-0_5)}.fyvr1160{margin-left:var(--seq-space-1_5)}.fyvr1164{margin-left:auto}.fyvr1168{margin-right:var(--seq-space-0)}.fyvr116c{margin-right:var(--seq-space-1)}.fyvr116g{margin-right:var(--seq-space-2)}.fyvr116k{margin-right:var(--seq-space-3)}.fyvr116o{margin-right:var(--seq-space-4)}.fyvr116s{margin-right:var(--seq-space-5)}.fyvr116w{margin-right:var(--seq-space-6)}.fyvr1170{margin-right:var(--seq-space-7)}.fyvr1174{margin-right:var(--seq-space-8)}.fyvr1178{margin-right:var(--seq-space-9)}.fyvr117c{margin-right:var(--seq-space-10)}.fyvr117g{margin-right:var(--seq-space-12)}.fyvr117k{margin-right:var(--seq-space-14)}.fyvr117o{margin-right:var(--seq-space-16)}.fyvr117s{margin-right:var(--seq-space-0_25)}.fyvr117w{margin-right:var(--seq-space-0_5)}.fyvr1180{margin-right:var(--seq-space-1_5)}.fyvr1184{margin-right:auto}.fyvr1188{gap:var(--seq-space-0)}.fyvr118c{gap:var(--seq-space-1)}.fyvr118g{gap:var(--seq-space-2)}.fyvr118k{gap:var(--seq-space-3)}.fyvr118o{gap:var(--seq-space-4)}.fyvr118s{gap:var(--seq-space-5)}.fyvr118w{gap:var(--seq-space-6)}.fyvr1190{gap:var(--seq-space-7)}.fyvr1194{gap:var(--seq-space-8)}.fyvr1198{gap:var(--seq-space-9)}.fyvr119c{gap:var(--seq-space-10)}.fyvr119g{gap:var(--seq-space-12)}.fyvr119k{gap:var(--seq-space-14)}.fyvr119o{gap:var(--seq-space-16)}.fyvr119s{gap:var(--seq-space-0_25)}.fyvr119w{gap:var(--seq-space-0_5)}.fyvr11a0{gap:var(--seq-space-1_5)}.fyvr11a4{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a8{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ac{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ag{border-left-width:var(--seq-border-widths-none)}.fyvr11ak{border-left-width:var(--seq-border-widths-thin)}.fyvr11ao{border-left-width:var(--seq-border-widths-thick)}.fyvr11as{border-right-width:var(--seq-border-widths-none)}.fyvr11aw{border-right-width:var(--seq-border-widths-thin)}.fyvr11b0{border-right-width:var(--seq-border-widths-thick)}.fyvr11b4{border-top-width:var(--seq-border-widths-none)}.fyvr11b8{border-top-width:var(--seq-border-widths-thin)}.fyvr11bc{border-top-width:var(--seq-border-widths-thick)}.fyvr11bg{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bk{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bo{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bs{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bw{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c0{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c4{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c8{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cc{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cg{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11ck{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11co{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cs{border-top-left-radius:var(--seq-radii-none)}.fyvr11cw{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d0{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d4{border-top-left-radius:var(--seq-radii-md)}.fyvr11d8{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dc{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dg{border-top-right-radius:var(--seq-radii-none)}.fyvr11dk{border-top-right-radius:var(--seq-radii-xs)}.fyvr11do{border-top-right-radius:var(--seq-radii-sm)}.fyvr11ds{border-top-right-radius:var(--seq-radii-md)}.fyvr11dw{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e0{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e4{font-size:var(--seq-font-sizes-inherit)}.fyvr11e8{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ec{font-size:var(--seq-font-sizes-small)}.fyvr11eg{font-size:var(--seq-font-sizes-normal)}.fyvr11ek{font-size:var(--seq-font-sizes-medium)}.fyvr11eo{font-size:var(--seq-font-sizes-large)}.fyvr11es{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ew{font-weight:var(--seq-font-weights-inherit)}.fyvr11f0{font-weight:var(--seq-font-weights-normal)}.fyvr11f4{font-weight:var(--seq-font-weights-medium)}.fyvr11f8{font-weight:var(--seq-font-weights-semibold)}.fyvr11fc{font-weight:var(--seq-font-weights-bold)}.fyvr11fg{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fk{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fo{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fs{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fw{line-height:var(--seq-line-heights-4)}.fyvr11g0{line-height:var(--seq-line-heights-5)}.fyvr11g4{line-height:var(--seq-line-heights-6)}.fyvr11g8{line-height:var(--seq-line-heights-7)}.fyvr11gc{line-height:var(--seq-line-heights-9)}.fyvr11gg{line-height:var(--seq-line-heights-inherit)}.fyvr11gk{text-align:center}.fyvr11go{text-align:left}.fyvr11gs{text-align:right}.fyvr11gw{display:block}.fyvr11h0{display:flex}.fyvr11h4{display:grid}.fyvr11h8{display:inline-block}.fyvr11hc{display:inline-flex}.fyvr11hg{display:none}.fyvr11hk{display:contents}.fyvr11ho{position:absolute}.fyvr11hs{position:fixed}.fyvr11hw{position:relative}.fyvr11i0{position:sticky}.fyvr11i4{flex-direction:column}.fyvr11i8{flex-direction:column-reverse}.fyvr11ic{flex-direction:row}.fyvr11ig{flex-direction:row-reverse}.fyvr11ik{flex-shrink:0}.fyvr11io{flex-shrink:1}.fyvr11is{flex-grow:0}.fyvr11iw{flex-grow:1}.fyvr11j0{flex-wrap:nowrap}.fyvr11j4{flex-wrap:wrap}.fyvr11j8{flex-wrap:wrap-reverse}.fyvr11jc{justify-content:flex-start}.fyvr11jg{justify-content:center}.fyvr11jk{justify-content:flex-end}.fyvr11jo{justify-content:stretch}.fyvr11js{justify-content:space-around}.fyvr11jw{justify-content:space-between}.fyvr11k0{justify-content:space-evenly}.fyvr11k4{justify-self:flex-start}.fyvr11k8{justify-self:center}.fyvr11kc{justify-self:flex-end}.fyvr11kg{justify-self:stretch}.fyvr11kk{align-items:flex-start}.fyvr11ko{align-items:center}.fyvr11ks{align-items:flex-end}.fyvr11kw{align-items:stretch}.fyvr11l0{align-items:baseline}.fyvr11l4{align-self:flex-start}.fyvr11l8{align-self:center}.fyvr11lc{align-self:flex-end}.fyvr11lg{align-self:stretch}.fyvr11lk{align-self:baseline}.fyvr11lo{overflow-x:auto}.fyvr11ls{overflow-x:hidden}.fyvr11lw{overflow-x:scroll}.fyvr11m0{overflow-x:visible}.fyvr11m4{overflow-y:auto}.fyvr11m8{overflow-y:hidden}.fyvr11mc{overflow-y:scroll}.fyvr11mg{overflow-y:visible}.fyvr11mk{visibility:hidden}.fyvr11mo{visibility:visible}.fyvr11ms{-webkit-backdrop-filter:var(--seq-blur-blur);backdrop-filter:var(--seq-blur-blur)}.fyvr11mt{-webkit-backdrop-filter:var(--seq-blur-none);backdrop-filter:var(--seq-blur-none)}.fyvr11mu{font-family:var(--seq-fonts-inherit)}.fyvr11mv{font-family:var(--seq-fonts-body)}.fyvr11mw{font-family:var(--seq-fonts-mono)}.fyvr11mx{text-overflow:ellipsis}.fyvr11my{text-overflow:clip}.fyvr11mz{text-transform:capitalize}.fyvr11n0{text-transform:lowercase}.fyvr11n1{text-transform:uppercase}.fyvr11n2{-webkit-text-decoration:none;text-decoration:none}.fyvr11n3{-webkit-text-decoration:underline;text-decoration:underline}.fyvr11n4{-webkit-user-select:none;-moz-user-select:none;user-select:none}.fyvr11n5{-webkit-user-select:text;-moz-user-select:text;user-select:text}.fyvr11n6{-webkit-user-select:all;-moz-user-select:all;user-select:all}.fyvr11n7{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.fyvr11n8{white-space:normal}.fyvr11n9{white-space:nowrap}.fyvr11na{white-space:normal;white-space:initial}.fyvr11nb{white-space:inherit}.fyvr11nc{word-break:break-word}.fyvr11nd{word-wrap:normal}.fyvr11ne{word-wrap:break-word}.fyvr11nf{word-wrap:initial}.fyvr11ng{word-wrap:inherit}.fyvr11nh{z-index:0}.fyvr11ni{z-index:1}.fyvr11nj{z-index:10}.fyvr11nk{z-index:20}.fyvr11nl{z-index:30}.fyvr11nm{z-index:40}.fyvr11nn{z-index:50}.fyvr11no{z-index:-1}.fyvr11np{z-index:auto}.fyvr11nq{aspect-ratio:1 / 1}.fyvr11nr{aspect-ratio:16 / 9}.fyvr11ns{aspect-ratio:4 / 3}.fyvr11nt{aspect-ratio:3 / 1}.fyvr11nu{aspect-ratio:auto}.fyvr11nv,.fyvr11nw:active{background:var(--seq-colors-black)}.fyvr11nx:disabled,.fyvr11nx[data-disabled]{background:var(--seq-colors-black)}.fyvr11ny:focus{background:var(--seq-colors-black)}.fyvr11nz:hover:not([disabled]){background:var(--seq-colors-black)}.fyvr11o0[data-state=checked]{background:var(--seq-colors-black)}.fyvr11o1,.fyvr11o2:active{background:var(--seq-colors-white)}.fyvr11o3:disabled,.fyvr11o3[data-disabled]{background:var(--seq-colors-white)}.fyvr11o4:focus{background:var(--seq-colors-white)}.fyvr11o5:hover:not([disabled]){background:var(--seq-colors-white)}.fyvr11o6[data-state=checked]{background:var(--seq-colors-white)}.fyvr11o7,.fyvr11o8:active{background:var(--seq-colors-inherit)}.fyvr11o9:disabled,.fyvr11o9[data-disabled]{background:var(--seq-colors-inherit)}.fyvr11oa:focus{background:var(--seq-colors-inherit)}.fyvr11ob:hover:not([disabled]){background:var(--seq-colors-inherit)}.fyvr11oc[data-state=checked]{background:var(--seq-colors-inherit)}.fyvr11od,.fyvr11oe:active{background:var(--seq-colors-transparent)}.fyvr11of:disabled,.fyvr11of[data-disabled]{background:var(--seq-colors-transparent)}.fyvr11og:focus{background:var(--seq-colors-transparent)}.fyvr11oh:hover:not([disabled]){background:var(--seq-colors-transparent)}.fyvr11oi[data-state=checked]{background:var(--seq-colors-transparent)}.fyvr11oj,.fyvr11ok:active{background:var(--seq-colors-positive)}.fyvr11ol:disabled,.fyvr11ol[data-disabled]{background:var(--seq-colors-positive)}.fyvr11om:focus{background:var(--seq-colors-positive)}.fyvr11on:hover:not([disabled]){background:var(--seq-colors-positive)}.fyvr11oo[data-state=checked]{background:var(--seq-colors-positive)}.fyvr11op,.fyvr11oq:active{background:var(--seq-colors-negative)}.fyvr11or:disabled,.fyvr11or[data-disabled]{background:var(--seq-colors-negative)}.fyvr11os:focus{background:var(--seq-colors-negative)}.fyvr11ot:hover:not([disabled]){background:var(--seq-colors-negative)}.fyvr11ou[data-state=checked]{background:var(--seq-colors-negative)}.fyvr11ov,.fyvr11ow:active{background:var(--seq-colors-info)}.fyvr11ox:disabled,.fyvr11ox[data-disabled]{background:var(--seq-colors-info)}.fyvr11oy:focus{background:var(--seq-colors-info)}.fyvr11oz:hover:not([disabled]){background:var(--seq-colors-info)}.fyvr11p0[data-state=checked]{background:var(--seq-colors-info)}.fyvr11p1,.fyvr11p2:active{background:var(--seq-colors-warning)}.fyvr11p3:disabled,.fyvr11p3[data-disabled]{background:var(--seq-colors-warning)}.fyvr11p4:focus{background:var(--seq-colors-warning)}.fyvr11p5:hover:not([disabled]){background:var(--seq-colors-warning)}.fyvr11p6[data-state=checked]{background:var(--seq-colors-warning)}.fyvr11p7,.fyvr11p8:active{background:var(--seq-colors-gradient-backdrop)}.fyvr11p9:disabled,.fyvr11p9[data-disabled]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pa:focus{background:var(--seq-colors-gradient-backdrop)}.fyvr11pb:hover:not([disabled]){background:var(--seq-colors-gradient-backdrop)}.fyvr11pc[data-state=checked]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pd,.fyvr11pe:active{background:var(--seq-colors-gradient-primary)}.fyvr11pf:disabled,.fyvr11pf[data-disabled]{background:var(--seq-colors-gradient-primary)}.fyvr11pg:focus{background:var(--seq-colors-gradient-primary)}.fyvr11ph:hover:not([disabled]){background:var(--seq-colors-gradient-primary)}.fyvr11pi[data-state=checked]{background:var(--seq-colors-gradient-primary)}.fyvr11pj,.fyvr11pk:active{background:var(--seq-colors-gradient-secondary)}.fyvr11pl:disabled,.fyvr11pl[data-disabled]{background:var(--seq-colors-gradient-secondary)}.fyvr11pm:focus{background:var(--seq-colors-gradient-secondary)}.fyvr11pn:hover:not([disabled]){background:var(--seq-colors-gradient-secondary)}.fyvr11po[data-state=checked]{background:var(--seq-colors-gradient-secondary)}.fyvr11pp,.fyvr11pq:active{background:var(--seq-colors-arbitrum-dark)}.fyvr11pr:disabled,.fyvr11pr[data-disabled]{background:var(--seq-colors-arbitrum-dark)}.fyvr11ps:focus{background:var(--seq-colors-arbitrum-dark)}.fyvr11pt:hover:not([disabled]){background:var(--seq-colors-arbitrum-dark)}.fyvr11pu[data-state=checked]{background:var(--seq-colors-arbitrum-dark)}.fyvr11pv,.fyvr11pw:active{background:var(--seq-colors-arbitrum-light)}.fyvr11px:disabled,.fyvr11px[data-disabled]{background:var(--seq-colors-arbitrum-light)}.fyvr11py:focus{background:var(--seq-colors-arbitrum-light)}.fyvr11pz:hover:not([disabled]){background:var(--seq-colors-arbitrum-light)}.fyvr11q0[data-state=checked]{background:var(--seq-colors-arbitrum-light)}.fyvr11q1,.fyvr11q2:active{background:var(--seq-colors-avalance-dark)}.fyvr11q3:disabled,.fyvr11q3[data-disabled]{background:var(--seq-colors-avalance-dark)}.fyvr11q4:focus{background:var(--seq-colors-avalance-dark)}.fyvr11q5:hover:not([disabled]){background:var(--seq-colors-avalance-dark)}.fyvr11q6[data-state=checked]{background:var(--seq-colors-avalance-dark)}.fyvr11q7,.fyvr11q8:active{background:var(--seq-colors-avalance-light)}.fyvr11q9:disabled,.fyvr11q9[data-disabled]{background:var(--seq-colors-avalance-light)}.fyvr11qa:focus{background:var(--seq-colors-avalance-light)}.fyvr11qb:hover:not([disabled]){background:var(--seq-colors-avalance-light)}.fyvr11qc[data-state=checked]{background:var(--seq-colors-avalance-light)}.fyvr11qd,.fyvr11qe:active{background:var(--seq-colors-bsc-dark)}.fyvr11qf:disabled,.fyvr11qf[data-disabled]{background:var(--seq-colors-bsc-dark)}.fyvr11qg:focus{background:var(--seq-colors-bsc-dark)}.fyvr11qh:hover:not([disabled]){background:var(--seq-colors-bsc-dark)}.fyvr11qi[data-state=checked]{background:var(--seq-colors-bsc-dark)}.fyvr11qj,.fyvr11qk:active{background:var(--seq-colors-bsc-light)}.fyvr11ql:disabled,.fyvr11ql[data-disabled]{background:var(--seq-colors-bsc-light)}.fyvr11qm:focus{background:var(--seq-colors-bsc-light)}.fyvr11qn:hover:not([disabled]){background:var(--seq-colors-bsc-light)}.fyvr11qo[data-state=checked]{background:var(--seq-colors-bsc-light)}.fyvr11qp,.fyvr11qq:active{background:var(--seq-colors-ethereum-dark)}.fyvr11qr:disabled,.fyvr11qr[data-disabled]{background:var(--seq-colors-ethereum-dark)}.fyvr11qs:focus{background:var(--seq-colors-ethereum-dark)}.fyvr11qt:hover:not([disabled]){background:var(--seq-colors-ethereum-dark)}.fyvr11qu[data-state=checked]{background:var(--seq-colors-ethereum-dark)}.fyvr11qv,.fyvr11qw:active{background:var(--seq-colors-ethereum-light)}.fyvr11qx:disabled,.fyvr11qx[data-disabled]{background:var(--seq-colors-ethereum-light)}.fyvr11qy:focus{background:var(--seq-colors-ethereum-light)}.fyvr11qz:hover:not([disabled]){background:var(--seq-colors-ethereum-light)}.fyvr11r0[data-state=checked]{background:var(--seq-colors-ethereum-light)}.fyvr11r1,.fyvr11r2:active{background:var(--seq-colors-gnosis-dark)}.fyvr11r3:disabled,.fyvr11r3[data-disabled]{background:var(--seq-colors-gnosis-dark)}.fyvr11r4:focus{background:var(--seq-colors-gnosis-dark)}.fyvr11r5:hover:not([disabled]){background:var(--seq-colors-gnosis-dark)}.fyvr11r6[data-state=checked]{background:var(--seq-colors-gnosis-dark)}.fyvr11r7,.fyvr11r8:active{background:var(--seq-colors-gnosis-light)}.fyvr11r9:disabled,.fyvr11r9[data-disabled]{background:var(--seq-colors-gnosis-light)}.fyvr11ra:focus{background:var(--seq-colors-gnosis-light)}.fyvr11rb:hover:not([disabled]){background:var(--seq-colors-gnosis-light)}.fyvr11rc[data-state=checked]{background:var(--seq-colors-gnosis-light)}.fyvr11rd,.fyvr11re:active{background:var(--seq-colors-polygon-dark)}.fyvr11rf:disabled,.fyvr11rf[data-disabled]{background:var(--seq-colors-polygon-dark)}.fyvr11rg:focus{background:var(--seq-colors-polygon-dark)}.fyvr11rh:hover:not([disabled]){background:var(--seq-colors-polygon-dark)}.fyvr11ri[data-state=checked]{background:var(--seq-colors-polygon-dark)}.fyvr11rj,.fyvr11rk:active{background:var(--seq-colors-polygon-light)}.fyvr11rl:disabled,.fyvr11rl[data-disabled]{background:var(--seq-colors-polygon-light)}.fyvr11rm:focus{background:var(--seq-colors-polygon-light)}.fyvr11rn:hover:not([disabled]){background:var(--seq-colors-polygon-light)}.fyvr11ro[data-state=checked]{background:var(--seq-colors-polygon-light)}.fyvr11rp,.fyvr11rq:active{background:var(--seq-colors-text100)}.fyvr11rr:disabled,.fyvr11rr[data-disabled]{background:var(--seq-colors-text100)}.fyvr11rs:focus{background:var(--seq-colors-text100)}.fyvr11rt:hover:not([disabled]){background:var(--seq-colors-text100)}.fyvr11ru[data-state=checked]{background:var(--seq-colors-text100)}.fyvr11rv,.fyvr11rw:active{background:var(--seq-colors-text80)}.fyvr11rx:disabled,.fyvr11rx[data-disabled]{background:var(--seq-colors-text80)}.fyvr11ry:focus{background:var(--seq-colors-text80)}.fyvr11rz:hover:not([disabled]){background:var(--seq-colors-text80)}.fyvr11s0[data-state=checked]{background:var(--seq-colors-text80)}.fyvr11s1,.fyvr11s2:active{background:var(--seq-colors-text50)}.fyvr11s3:disabled,.fyvr11s3[data-disabled]{background:var(--seq-colors-text50)}.fyvr11s4:focus{background:var(--seq-colors-text50)}.fyvr11s5:hover:not([disabled]){background:var(--seq-colors-text50)}.fyvr11s6[data-state=checked]{background:var(--seq-colors-text50)}.fyvr11s7,.fyvr11s8:active{background:var(--seq-colors-text-inverse100)}.fyvr11s9:disabled,.fyvr11s9[data-disabled]{background:var(--seq-colors-text-inverse100)}.fyvr11sa:focus{background:var(--seq-colors-text-inverse100)}.fyvr11sb:hover:not([disabled]){background:var(--seq-colors-text-inverse100)}.fyvr11sc[data-state=checked]{background:var(--seq-colors-text-inverse100)}.fyvr11sd,.fyvr11se:active{background:var(--seq-colors-background-primary)}.fyvr11sf:disabled,.fyvr11sf[data-disabled]{background:var(--seq-colors-background-primary)}.fyvr11sg:focus{background:var(--seq-colors-background-primary)}.fyvr11sh:hover:not([disabled]){background:var(--seq-colors-background-primary)}.fyvr11si[data-state=checked]{background:var(--seq-colors-background-primary)}.fyvr11sj,.fyvr11sk:active{background:var(--seq-colors-background-secondary)}.fyvr11sl:disabled,.fyvr11sl[data-disabled]{background:var(--seq-colors-background-secondary)}.fyvr11sm:focus{background:var(--seq-colors-background-secondary)}.fyvr11sn:hover:not([disabled]){background:var(--seq-colors-background-secondary)}.fyvr11so[data-state=checked]{background:var(--seq-colors-background-secondary)}.fyvr11sp,.fyvr11sq:active{background:var(--seq-colors-background-contrast)}.fyvr11sr:disabled,.fyvr11sr[data-disabled]{background:var(--seq-colors-background-contrast)}.fyvr11ss:focus{background:var(--seq-colors-background-contrast)}.fyvr11st:hover:not([disabled]){background:var(--seq-colors-background-contrast)}.fyvr11su[data-state=checked]{background:var(--seq-colors-background-contrast)}.fyvr11sv,.fyvr11sw:active{background:var(--seq-colors-background-muted)}.fyvr11sx:disabled,.fyvr11sx[data-disabled]{background:var(--seq-colors-background-muted)}.fyvr11sy:focus{background:var(--seq-colors-background-muted)}.fyvr11sz:hover:not([disabled]){background:var(--seq-colors-background-muted)}.fyvr11t0[data-state=checked]{background:var(--seq-colors-background-muted)}.fyvr11t1,.fyvr11t2:active{background:var(--seq-colors-background-control)}.fyvr11t3:disabled,.fyvr11t3[data-disabled]{background:var(--seq-colors-background-control)}.fyvr11t4:focus{background:var(--seq-colors-background-control)}.fyvr11t5:hover:not([disabled]){background:var(--seq-colors-background-control)}.fyvr11t6[data-state=checked]{background:var(--seq-colors-background-control)}.fyvr11t7,.fyvr11t8:active{background:var(--seq-colors-background-inverse)}.fyvr11t9:disabled,.fyvr11t9[data-disabled]{background:var(--seq-colors-background-inverse)}.fyvr11ta:focus{background:var(--seq-colors-background-inverse)}.fyvr11tb:hover:not([disabled]){background:var(--seq-colors-background-inverse)}.fyvr11tc[data-state=checked]{background:var(--seq-colors-background-inverse)}.fyvr11td,.fyvr11te:active{background:var(--seq-colors-background-backdrop)}.fyvr11tf:disabled,.fyvr11tf[data-disabled]{background:var(--seq-colors-background-backdrop)}.fyvr11tg:focus{background:var(--seq-colors-background-backdrop)}.fyvr11th:hover:not([disabled]){background:var(--seq-colors-background-backdrop)}.fyvr11ti[data-state=checked]{background:var(--seq-colors-background-backdrop)}.fyvr11tj,.fyvr11tk:active{background:var(--seq-colors-background-overlay)}.fyvr11tl:disabled,.fyvr11tl[data-disabled]{background:var(--seq-colors-background-overlay)}.fyvr11tm:focus{background:var(--seq-colors-background-overlay)}.fyvr11tn:hover:not([disabled]){background:var(--seq-colors-background-overlay)}.fyvr11to[data-state=checked]{background:var(--seq-colors-background-overlay)}.fyvr11tp,.fyvr11tq:active{background:var(--seq-colors-background-raised)}.fyvr11tr:disabled,.fyvr11tr[data-disabled]{background:var(--seq-colors-background-raised)}.fyvr11ts:focus{background:var(--seq-colors-background-raised)}.fyvr11tt:hover:not([disabled]){background:var(--seq-colors-background-raised)}.fyvr11tu[data-state=checked]{background:var(--seq-colors-background-raised)}.fyvr11tv,.fyvr11tw:active{background:var(--seq-colors-button-glass)}.fyvr11tx:disabled,.fyvr11tx[data-disabled]{background:var(--seq-colors-button-glass)}.fyvr11ty:focus{background:var(--seq-colors-button-glass)}.fyvr11tz:hover:not([disabled]){background:var(--seq-colors-button-glass)}.fyvr11u0[data-state=checked]{background:var(--seq-colors-button-glass)}.fyvr11u1,.fyvr11u2:active{background:var(--seq-colors-button-emphasis)}.fyvr11u3:disabled,.fyvr11u3[data-disabled]{background:var(--seq-colors-button-emphasis)}.fyvr11u4:focus{background:var(--seq-colors-button-emphasis)}.fyvr11u5:hover:not([disabled]){background:var(--seq-colors-button-emphasis)}.fyvr11u6[data-state=checked]{background:var(--seq-colors-button-emphasis)}.fyvr11u7,.fyvr11u8:active{background:var(--seq-colors-button-inverse)}.fyvr11u9:disabled,.fyvr11u9[data-disabled]{background:var(--seq-colors-button-inverse)}.fyvr11ua:focus{background:var(--seq-colors-button-inverse)}.fyvr11ub:hover:not([disabled]){background:var(--seq-colors-button-inverse)}.fyvr11uc[data-state=checked]{background:var(--seq-colors-button-inverse)}.fyvr11ud,.fyvr11ue:active{background:var(--seq-colors-border-normal)}.fyvr11uf:disabled,.fyvr11uf[data-disabled]{background:var(--seq-colors-border-normal)}.fyvr11ug:focus{background:var(--seq-colors-border-normal)}.fyvr11uh:hover:not([disabled]){background:var(--seq-colors-border-normal)}.fyvr11ui[data-state=checked]{background:var(--seq-colors-border-normal)}.fyvr11uj,.fyvr11uk:active{background:var(--seq-colors-border-focus)}.fyvr11ul:disabled,.fyvr11ul[data-disabled]{background:var(--seq-colors-border-focus)}.fyvr11um:focus{background:var(--seq-colors-border-focus)}.fyvr11un:hover:not([disabled]){background:var(--seq-colors-border-focus)}.fyvr11uo[data-state=checked]{background:var(--seq-colors-border-focus)}.fyvr11up,.fyvr11uq:active{border-bottom-color:var(--seq-colors-black)}.fyvr11ur:disabled,.fyvr11ur[data-disabled]{border-bottom-color:var(--seq-colors-black)}.fyvr11us:focus{border-bottom-color:var(--seq-colors-black)}.fyvr11ut:hover:not([disabled]){border-bottom-color:var(--seq-colors-black)}.fyvr11uu[data-state=checked]{border-bottom-color:var(--seq-colors-black)}.fyvr11uv,.fyvr11uw:active{border-bottom-color:var(--seq-colors-white)}.fyvr11ux:disabled,.fyvr11ux[data-disabled]{border-bottom-color:var(--seq-colors-white)}.fyvr11uy:focus{border-bottom-color:var(--seq-colors-white)}.fyvr11uz:hover:not([disabled]){border-bottom-color:var(--seq-colors-white)}.fyvr11v0[data-state=checked]{border-bottom-color:var(--seq-colors-white)}.fyvr11v1,.fyvr11v2:active{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v3:disabled,.fyvr11v3[data-disabled]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v4:focus{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v5:hover:not([disabled]){border-bottom-color:var(--seq-colors-inherit)}.fyvr11v6[data-state=checked]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v7,.fyvr11v8:active{border-bottom-color:var(--seq-colors-transparent)}.fyvr11v9:disabled,.fyvr11v9[data-disabled]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11va:focus{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vb:hover:not([disabled]){border-bottom-color:var(--seq-colors-transparent)}.fyvr11vc[data-state=checked]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vd,.fyvr11ve:active{border-bottom-color:var(--seq-colors-positive)}.fyvr11vf:disabled,.fyvr11vf[data-disabled]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vg:focus{border-bottom-color:var(--seq-colors-positive)}.fyvr11vh:hover:not([disabled]){border-bottom-color:var(--seq-colors-positive)}.fyvr11vi[data-state=checked]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vj,.fyvr11vk:active{border-bottom-color:var(--seq-colors-negative)}.fyvr11vl:disabled,.fyvr11vl[data-disabled]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vm:focus{border-bottom-color:var(--seq-colors-negative)}.fyvr11vn:hover:not([disabled]){border-bottom-color:var(--seq-colors-negative)}.fyvr11vo[data-state=checked]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vp,.fyvr11vq:active{border-bottom-color:var(--seq-colors-info)}.fyvr11vr:disabled,.fyvr11vr[data-disabled]{border-bottom-color:var(--seq-colors-info)}.fyvr11vs:focus{border-bottom-color:var(--seq-colors-info)}.fyvr11vt:hover:not([disabled]){border-bottom-color:var(--seq-colors-info)}.fyvr11vu[data-state=checked]{border-bottom-color:var(--seq-colors-info)}.fyvr11vv,.fyvr11vw:active{border-bottom-color:var(--seq-colors-warning)}.fyvr11vx:disabled,.fyvr11vx[data-disabled]{border-bottom-color:var(--seq-colors-warning)}.fyvr11vy:focus{border-bottom-color:var(--seq-colors-warning)}.fyvr11vz:hover:not([disabled]){border-bottom-color:var(--seq-colors-warning)}.fyvr11w0[data-state=checked]{border-bottom-color:var(--seq-colors-warning)}.fyvr11w1,.fyvr11w2:active{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w3:disabled,.fyvr11w3[data-disabled]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w4:focus{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w6[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w7,.fyvr11w8:active{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11w9:disabled,.fyvr11w9[data-disabled]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wa:focus{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wb:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wc[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wd,.fyvr11we:active{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wf:disabled,.fyvr11wf[data-disabled]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wg:focus{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wh:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wi[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wj,.fyvr11wk:active{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wl:disabled,.fyvr11wl[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wm:focus{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wn:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wo[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wp,.fyvr11wq:active{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wr:disabled,.fyvr11wr[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11ws:focus{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wt:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wu[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wv,.fyvr11ww:active{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wx:disabled,.fyvr11wx[data-disabled]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wy:focus{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wz:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x0[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x1,.fyvr11x2:active{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x3:disabled,.fyvr11x3[data-disabled]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x4:focus{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x5:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x6[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x7,.fyvr11x8:active{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11x9:disabled,.fyvr11x9[data-disabled]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xa:focus{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xb:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xc[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xd,.fyvr11xe:active{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xf:disabled,.fyvr11xf[data-disabled]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xg:focus{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xh:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xi[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xj,.fyvr11xk:active{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xl:disabled,.fyvr11xl[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xm:focus{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xn:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xo[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xp,.fyvr11xq:active{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xr:disabled,.fyvr11xr[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xs:focus{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xt:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xu[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xv,.fyvr11xw:active{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xx:disabled,.fyvr11xx[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xy:focus{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xz:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y0[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y1,.fyvr11y2:active{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y3:disabled,.fyvr11y3[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y4:focus{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y6[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y7,.fyvr11y8:active{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11y9:disabled,.fyvr11y9[data-disabled]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11ya:focus{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yb:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yc[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yd,.fyvr11ye:active{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yf:disabled,.fyvr11yf[data-disabled]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yg:focus{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yh:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yi[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yj,.fyvr11yk:active{border-bottom-color:var(--seq-colors-text100)}.fyvr11yl:disabled,.fyvr11yl[data-disabled]{border-bottom-color:var(--seq-colors-text100)}.fyvr11ym:focus{border-bottom-color:var(--seq-colors-text100)}.fyvr11yn:hover:not([disabled]){border-bottom-color:var(--seq-colors-text100)}.fyvr11yo[data-state=checked]{border-bottom-color:var(--seq-colors-text100)}.fyvr11yp,.fyvr11yq:active{border-bottom-color:var(--seq-colors-text80)}.fyvr11yr:disabled,.fyvr11yr[data-disabled]{border-bottom-color:var(--seq-colors-text80)}.fyvr11ys:focus{border-bottom-color:var(--seq-colors-text80)}.fyvr11yt:hover:not([disabled]){border-bottom-color:var(--seq-colors-text80)}.fyvr11yu[data-state=checked]{border-bottom-color:var(--seq-colors-text80)}.fyvr11yv,.fyvr11yw:active{border-bottom-color:var(--seq-colors-text50)}.fyvr11yx:disabled,.fyvr11yx[data-disabled]{border-bottom-color:var(--seq-colors-text50)}.fyvr11yy:focus{border-bottom-color:var(--seq-colors-text50)}.fyvr11yz:hover:not([disabled]){border-bottom-color:var(--seq-colors-text50)}.fyvr11z0[data-state=checked]{border-bottom-color:var(--seq-colors-text50)}.fyvr11z1,.fyvr11z2:active{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z3:disabled,.fyvr11z3[data-disabled]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z4:focus{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z5:hover:not([disabled]){border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z6[data-state=checked]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z7,.fyvr11z8:active{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11z9:disabled,.fyvr11z9[data-disabled]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11za:focus{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zb:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zc[data-state=checked]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zd,.fyvr11ze:active{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zf:disabled,.fyvr11zf[data-disabled]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zg:focus{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zh:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zi[data-state=checked]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zj,.fyvr11zk:active{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zl:disabled,.fyvr11zl[data-disabled]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zm:focus{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zn:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zo[data-state=checked]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zp,.fyvr11zq:active{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zr:disabled,.fyvr11zr[data-disabled]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zs:focus{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zt:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zu[data-state=checked]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zv,.fyvr11zw:active{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zx:disabled,.fyvr11zx[data-disabled]{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zy:focus{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zz:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-control)}.fyvr1200[data-state=checked]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1201,.fyvr1202:active{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1203:disabled,.fyvr1203[data-disabled]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1204:focus{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1205:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1206[data-state=checked]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1207,.fyvr1208:active{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr1209:disabled,.fyvr1209[data-disabled]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120a:focus{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120b:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120c[data-state=checked]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120d,.fyvr120e:active{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120f:disabled,.fyvr120f[data-disabled]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120g:focus{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120h:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120i[data-state=checked]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120j,.fyvr120k:active{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120l:disabled,.fyvr120l[data-disabled]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120m:focus{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120n:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-raised)}.fyvr120o[data-state=checked]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120p,.fyvr120q:active{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120r:disabled,.fyvr120r[data-disabled]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120s:focus{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120t:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-glass)}.fyvr120u[data-state=checked]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120v,.fyvr120w:active{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120x:disabled,.fyvr120x[data-disabled]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120y:focus{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120z:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1210[data-state=checked]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1211,.fyvr1212:active{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1213:disabled,.fyvr1213[data-disabled]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1214:focus{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1215:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1216[data-state=checked]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1217,.fyvr1218:active{border-bottom-color:var(--seq-colors-border-normal)}.fyvr1219:disabled,.fyvr1219[data-disabled]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121a:focus{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121b:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-normal)}.fyvr121c[data-state=checked]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121d,.fyvr121e:active{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121f:disabled,.fyvr121f[data-disabled]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121g:focus{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121h:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-focus)}.fyvr121i[data-state=checked]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121j,.fyvr121k:active{border-bottom-style:solid}.fyvr121l:disabled,.fyvr121l[data-disabled]{border-bottom-style:solid}.fyvr121m:focus{border-bottom-style:solid}.fyvr121n:hover:not([disabled]){border-bottom-style:solid}.fyvr121o[data-state=checked]{border-bottom-style:solid}.fyvr121p,.fyvr121q:active{border-bottom-style:dashed}.fyvr121r:disabled,.fyvr121r[data-disabled]{border-bottom-style:dashed}.fyvr121s:focus{border-bottom-style:dashed}.fyvr121t:hover:not([disabled]){border-bottom-style:dashed}.fyvr121u[data-state=checked]{border-bottom-style:dashed}.fyvr121v,.fyvr121w:active{border-bottom-style:dotted}.fyvr121x:disabled,.fyvr121x[data-disabled]{border-bottom-style:dotted}.fyvr121y:focus{border-bottom-style:dotted}.fyvr121z:hover:not([disabled]){border-bottom-style:dotted}.fyvr1220[data-state=checked]{border-bottom-style:dotted}.fyvr1221,.fyvr1222:active{border-left-color:var(--seq-colors-black)}.fyvr1223:disabled,.fyvr1223[data-disabled]{border-left-color:var(--seq-colors-black)}.fyvr1224:focus{border-left-color:var(--seq-colors-black)}.fyvr1225:hover:not([disabled]){border-left-color:var(--seq-colors-black)}.fyvr1226[data-state=checked]{border-left-color:var(--seq-colors-black)}.fyvr1227,.fyvr1228:active{border-left-color:var(--seq-colors-white)}.fyvr1229:disabled,.fyvr1229[data-disabled]{border-left-color:var(--seq-colors-white)}.fyvr122a:focus{border-left-color:var(--seq-colors-white)}.fyvr122b:hover:not([disabled]){border-left-color:var(--seq-colors-white)}.fyvr122c[data-state=checked]{border-left-color:var(--seq-colors-white)}.fyvr122d,.fyvr122e:active{border-left-color:var(--seq-colors-inherit)}.fyvr122f:disabled,.fyvr122f[data-disabled]{border-left-color:var(--seq-colors-inherit)}.fyvr122g:focus{border-left-color:var(--seq-colors-inherit)}.fyvr122h:hover:not([disabled]){border-left-color:var(--seq-colors-inherit)}.fyvr122i[data-state=checked]{border-left-color:var(--seq-colors-inherit)}.fyvr122j,.fyvr122k:active{border-left-color:var(--seq-colors-transparent)}.fyvr122l:disabled,.fyvr122l[data-disabled]{border-left-color:var(--seq-colors-transparent)}.fyvr122m:focus{border-left-color:var(--seq-colors-transparent)}.fyvr122n:hover:not([disabled]){border-left-color:var(--seq-colors-transparent)}.fyvr122o[data-state=checked]{border-left-color:var(--seq-colors-transparent)}.fyvr122p,.fyvr122q:active{border-left-color:var(--seq-colors-positive)}.fyvr122r:disabled,.fyvr122r[data-disabled]{border-left-color:var(--seq-colors-positive)}.fyvr122s:focus{border-left-color:var(--seq-colors-positive)}.fyvr122t:hover:not([disabled]){border-left-color:var(--seq-colors-positive)}.fyvr122u[data-state=checked]{border-left-color:var(--seq-colors-positive)}.fyvr122v,.fyvr122w:active{border-left-color:var(--seq-colors-negative)}.fyvr122x:disabled,.fyvr122x[data-disabled]{border-left-color:var(--seq-colors-negative)}.fyvr122y:focus{border-left-color:var(--seq-colors-negative)}.fyvr122z:hover:not([disabled]){border-left-color:var(--seq-colors-negative)}.fyvr1230[data-state=checked]{border-left-color:var(--seq-colors-negative)}.fyvr1231,.fyvr1232:active{border-left-color:var(--seq-colors-info)}.fyvr1233:disabled,.fyvr1233[data-disabled]{border-left-color:var(--seq-colors-info)}.fyvr1234:focus{border-left-color:var(--seq-colors-info)}.fyvr1235:hover:not([disabled]){border-left-color:var(--seq-colors-info)}.fyvr1236[data-state=checked]{border-left-color:var(--seq-colors-info)}.fyvr1237,.fyvr1238:active{border-left-color:var(--seq-colors-warning)}.fyvr1239:disabled,.fyvr1239[data-disabled]{border-left-color:var(--seq-colors-warning)}.fyvr123a:focus{border-left-color:var(--seq-colors-warning)}.fyvr123b:hover:not([disabled]){border-left-color:var(--seq-colors-warning)}.fyvr123c[data-state=checked]{border-left-color:var(--seq-colors-warning)}.fyvr123d,.fyvr123e:active{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123f:disabled,.fyvr123f[data-disabled]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123g:focus{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123h:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123i[data-state=checked]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123j,.fyvr123k:active{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123l:disabled,.fyvr123l[data-disabled]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123m:focus{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123n:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-primary)}.fyvr123o[data-state=checked]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123p,.fyvr123q:active{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123r:disabled,.fyvr123r[data-disabled]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123s:focus{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123t:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123u[data-state=checked]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123v,.fyvr123w:active{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123x:disabled,.fyvr123x[data-disabled]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123y:focus{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123z:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1240[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1241,.fyvr1242:active{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1243:disabled,.fyvr1243[data-disabled]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1244:focus{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1245:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1246[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1247,.fyvr1248:active{border-left-color:var(--seq-colors-avalance-dark)}.fyvr1249:disabled,.fyvr1249[data-disabled]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124a:focus{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124b:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-dark)}.fyvr124c[data-state=checked]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124d,.fyvr124e:active{border-left-color:var(--seq-colors-avalance-light)}.fyvr124f:disabled,.fyvr124f[data-disabled]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124g:focus{border-left-color:var(--seq-colors-avalance-light)}.fyvr124h:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-light)}.fyvr124i[data-state=checked]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124j,.fyvr124k:active{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124l:disabled,.fyvr124l[data-disabled]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124m:focus{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124n:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-dark)}.fyvr124o[data-state=checked]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124p,.fyvr124q:active{border-left-color:var(--seq-colors-bsc-light)}.fyvr124r:disabled,.fyvr124r[data-disabled]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124s:focus{border-left-color:var(--seq-colors-bsc-light)}.fyvr124t:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-light)}.fyvr124u[data-state=checked]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124v,.fyvr124w:active{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124x:disabled,.fyvr124x[data-disabled]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124y:focus{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124z:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1250[data-state=checked]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1251,.fyvr1252:active{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1253:disabled,.fyvr1253[data-disabled]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1254:focus{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1255:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-light)}.fyvr1256[data-state=checked]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1257,.fyvr1258:active{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr1259:disabled,.fyvr1259[data-disabled]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125a:focus{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125b:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125c[data-state=checked]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125d,.fyvr125e:active{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125f:disabled,.fyvr125f[data-disabled]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125g:focus{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125h:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-light)}.fyvr125i[data-state=checked]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125j,.fyvr125k:active{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125l:disabled,.fyvr125l[data-disabled]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125m:focus{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125n:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-dark)}.fyvr125o[data-state=checked]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125p,.fyvr125q:active{border-left-color:var(--seq-colors-polygon-light)}.fyvr125r:disabled,.fyvr125r[data-disabled]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125s:focus{border-left-color:var(--seq-colors-polygon-light)}.fyvr125t:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-light)}.fyvr125u[data-state=checked]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125v,.fyvr125w:active{border-left-color:var(--seq-colors-text100)}.fyvr125x:disabled,.fyvr125x[data-disabled]{border-left-color:var(--seq-colors-text100)}.fyvr125y:focus{border-left-color:var(--seq-colors-text100)}.fyvr125z:hover:not([disabled]){border-left-color:var(--seq-colors-text100)}.fyvr1260[data-state=checked]{border-left-color:var(--seq-colors-text100)}.fyvr1261,.fyvr1262:active{border-left-color:var(--seq-colors-text80)}.fyvr1263:disabled,.fyvr1263[data-disabled]{border-left-color:var(--seq-colors-text80)}.fyvr1264:focus{border-left-color:var(--seq-colors-text80)}.fyvr1265:hover:not([disabled]){border-left-color:var(--seq-colors-text80)}.fyvr1266[data-state=checked]{border-left-color:var(--seq-colors-text80)}.fyvr1267,.fyvr1268:active{border-left-color:var(--seq-colors-text50)}.fyvr1269:disabled,.fyvr1269[data-disabled]{border-left-color:var(--seq-colors-text50)}.fyvr126a:focus{border-left-color:var(--seq-colors-text50)}.fyvr126b:hover:not([disabled]){border-left-color:var(--seq-colors-text50)}.fyvr126c[data-state=checked]{border-left-color:var(--seq-colors-text50)}.fyvr126d,.fyvr126e:active{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126f:disabled,.fyvr126f[data-disabled]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126g:focus{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126h:hover:not([disabled]){border-left-color:var(--seq-colors-text-inverse100)}.fyvr126i[data-state=checked]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126j,.fyvr126k:active{border-left-color:var(--seq-colors-background-primary)}.fyvr126l:disabled,.fyvr126l[data-disabled]{border-left-color:var(--seq-colors-background-primary)}.fyvr126m:focus{border-left-color:var(--seq-colors-background-primary)}.fyvr126n:hover:not([disabled]){border-left-color:var(--seq-colors-background-primary)}.fyvr126o[data-state=checked]{border-left-color:var(--seq-colors-background-primary)}.fyvr126p,.fyvr126q:active{border-left-color:var(--seq-colors-background-secondary)}.fyvr126r:disabled,.fyvr126r[data-disabled]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126s:focus{border-left-color:var(--seq-colors-background-secondary)}.fyvr126t:hover:not([disabled]){border-left-color:var(--seq-colors-background-secondary)}.fyvr126u[data-state=checked]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126v,.fyvr126w:active{border-left-color:var(--seq-colors-background-contrast)}.fyvr126x:disabled,.fyvr126x[data-disabled]{border-left-color:var(--seq-colors-background-contrast)}.fyvr126y:focus{border-left-color:var(--seq-colors-background-contrast)}.fyvr126z:hover:not([disabled]){border-left-color:var(--seq-colors-background-contrast)}.fyvr1270[data-state=checked]{border-left-color:var(--seq-colors-background-contrast)}.fyvr1271,.fyvr1272:active{border-left-color:var(--seq-colors-background-muted)}.fyvr1273:disabled,.fyvr1273[data-disabled]{border-left-color:var(--seq-colors-background-muted)}.fyvr1274:focus{border-left-color:var(--seq-colors-background-muted)}.fyvr1275:hover:not([disabled]){border-left-color:var(--seq-colors-background-muted)}.fyvr1276[data-state=checked]{border-left-color:var(--seq-colors-background-muted)}.fyvr1277,.fyvr1278:active{border-left-color:var(--seq-colors-background-control)}.fyvr1279:disabled,.fyvr1279[data-disabled]{border-left-color:var(--seq-colors-background-control)}.fyvr127a:focus{border-left-color:var(--seq-colors-background-control)}.fyvr127b:hover:not([disabled]){border-left-color:var(--seq-colors-background-control)}.fyvr127c[data-state=checked]{border-left-color:var(--seq-colors-background-control)}.fyvr127d,.fyvr127e:active{border-left-color:var(--seq-colors-background-inverse)}.fyvr127f:disabled,.fyvr127f[data-disabled]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127g:focus{border-left-color:var(--seq-colors-background-inverse)}.fyvr127h:hover:not([disabled]){border-left-color:var(--seq-colors-background-inverse)}.fyvr127i[data-state=checked]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127j,.fyvr127k:active{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127l:disabled,.fyvr127l[data-disabled]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127m:focus{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127n:hover:not([disabled]){border-left-color:var(--seq-colors-background-backdrop)}.fyvr127o[data-state=checked]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127p,.fyvr127q:active{border-left-color:var(--seq-colors-background-overlay)}.fyvr127r:disabled,.fyvr127r[data-disabled]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127s:focus{border-left-color:var(--seq-colors-background-overlay)}.fyvr127t:hover:not([disabled]){border-left-color:var(--seq-colors-background-overlay)}.fyvr127u[data-state=checked]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127v,.fyvr127w:active{border-left-color:var(--seq-colors-background-raised)}.fyvr127x:disabled,.fyvr127x[data-disabled]{border-left-color:var(--seq-colors-background-raised)}.fyvr127y:focus{border-left-color:var(--seq-colors-background-raised)}.fyvr127z:hover:not([disabled]){border-left-color:var(--seq-colors-background-raised)}.fyvr1280[data-state=checked]{border-left-color:var(--seq-colors-background-raised)}.fyvr1281,.fyvr1282:active{border-left-color:var(--seq-colors-button-glass)}.fyvr1283:disabled,.fyvr1283[data-disabled]{border-left-color:var(--seq-colors-button-glass)}.fyvr1284:focus{border-left-color:var(--seq-colors-button-glass)}.fyvr1285:hover:not([disabled]){border-left-color:var(--seq-colors-button-glass)}.fyvr1286[data-state=checked]{border-left-color:var(--seq-colors-button-glass)}.fyvr1287,.fyvr1288:active{border-left-color:var(--seq-colors-button-emphasis)}.fyvr1289:disabled,.fyvr1289[data-disabled]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128a:focus{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128b:hover:not([disabled]){border-left-color:var(--seq-colors-button-emphasis)}.fyvr128c[data-state=checked]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128d,.fyvr128e:active{border-left-color:var(--seq-colors-button-inverse)}.fyvr128f:disabled,.fyvr128f[data-disabled]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128g:focus{border-left-color:var(--seq-colors-button-inverse)}.fyvr128h:hover:not([disabled]){border-left-color:var(--seq-colors-button-inverse)}.fyvr128i[data-state=checked]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128j,.fyvr128k:active{border-left-color:var(--seq-colors-border-normal)}.fyvr128l:disabled,.fyvr128l[data-disabled]{border-left-color:var(--seq-colors-border-normal)}.fyvr128m:focus{border-left-color:var(--seq-colors-border-normal)}.fyvr128n:hover:not([disabled]){border-left-color:var(--seq-colors-border-normal)}.fyvr128o[data-state=checked]{border-left-color:var(--seq-colors-border-normal)}.fyvr128p,.fyvr128q:active{border-left-color:var(--seq-colors-border-focus)}.fyvr128r:disabled,.fyvr128r[data-disabled]{border-left-color:var(--seq-colors-border-focus)}.fyvr128s:focus{border-left-color:var(--seq-colors-border-focus)}.fyvr128t:hover:not([disabled]){border-left-color:var(--seq-colors-border-focus)}.fyvr128u[data-state=checked]{border-left-color:var(--seq-colors-border-focus)}.fyvr128v,.fyvr128w:active{border-left-style:solid}.fyvr128x:disabled,.fyvr128x[data-disabled]{border-left-style:solid}.fyvr128y:focus{border-left-style:solid}.fyvr128z:hover:not([disabled]){border-left-style:solid}.fyvr1290[data-state=checked]{border-left-style:solid}.fyvr1291,.fyvr1292:active{border-left-style:dashed}.fyvr1293:disabled,.fyvr1293[data-disabled]{border-left-style:dashed}.fyvr1294:focus{border-left-style:dashed}.fyvr1295:hover:not([disabled]){border-left-style:dashed}.fyvr1296[data-state=checked]{border-left-style:dashed}.fyvr1297,.fyvr1298:active{border-left-style:dotted}.fyvr1299:disabled,.fyvr1299[data-disabled]{border-left-style:dotted}.fyvr129a:focus{border-left-style:dotted}.fyvr129b:hover:not([disabled]){border-left-style:dotted}.fyvr129c[data-state=checked]{border-left-style:dotted}.fyvr129d,.fyvr129e:active{border-right-color:var(--seq-colors-black)}.fyvr129f:disabled,.fyvr129f[data-disabled]{border-right-color:var(--seq-colors-black)}.fyvr129g:focus{border-right-color:var(--seq-colors-black)}.fyvr129h:hover:not([disabled]){border-right-color:var(--seq-colors-black)}.fyvr129i[data-state=checked]{border-right-color:var(--seq-colors-black)}.fyvr129j,.fyvr129k:active{border-right-color:var(--seq-colors-white)}.fyvr129l:disabled,.fyvr129l[data-disabled]{border-right-color:var(--seq-colors-white)}.fyvr129m:focus{border-right-color:var(--seq-colors-white)}.fyvr129n:hover:not([disabled]){border-right-color:var(--seq-colors-white)}.fyvr129o[data-state=checked]{border-right-color:var(--seq-colors-white)}.fyvr129p,.fyvr129q:active{border-right-color:var(--seq-colors-inherit)}.fyvr129r:disabled,.fyvr129r[data-disabled]{border-right-color:var(--seq-colors-inherit)}.fyvr129s:focus{border-right-color:var(--seq-colors-inherit)}.fyvr129t:hover:not([disabled]){border-right-color:var(--seq-colors-inherit)}.fyvr129u[data-state=checked]{border-right-color:var(--seq-colors-inherit)}.fyvr129v,.fyvr129w:active{border-right-color:var(--seq-colors-transparent)}.fyvr129x:disabled,.fyvr129x[data-disabled]{border-right-color:var(--seq-colors-transparent)}.fyvr129y:focus{border-right-color:var(--seq-colors-transparent)}.fyvr129z:hover:not([disabled]){border-right-color:var(--seq-colors-transparent)}.fyvr12a0[data-state=checked]{border-right-color:var(--seq-colors-transparent)}.fyvr12a1,.fyvr12a2:active{border-right-color:var(--seq-colors-positive)}.fyvr12a3:disabled,.fyvr12a3[data-disabled]{border-right-color:var(--seq-colors-positive)}.fyvr12a4:focus{border-right-color:var(--seq-colors-positive)}.fyvr12a5:hover:not([disabled]){border-right-color:var(--seq-colors-positive)}.fyvr12a6[data-state=checked]{border-right-color:var(--seq-colors-positive)}.fyvr12a7,.fyvr12a8:active{border-right-color:var(--seq-colors-negative)}.fyvr12a9:disabled,.fyvr12a9[data-disabled]{border-right-color:var(--seq-colors-negative)}.fyvr12aa:focus{border-right-color:var(--seq-colors-negative)}.fyvr12ab:hover:not([disabled]){border-right-color:var(--seq-colors-negative)}.fyvr12ac[data-state=checked]{border-right-color:var(--seq-colors-negative)}.fyvr12ad,.fyvr12ae:active{border-right-color:var(--seq-colors-info)}.fyvr12af:disabled,.fyvr12af[data-disabled]{border-right-color:var(--seq-colors-info)}.fyvr12ag:focus{border-right-color:var(--seq-colors-info)}.fyvr12ah:hover:not([disabled]){border-right-color:var(--seq-colors-info)}.fyvr12ai[data-state=checked]{border-right-color:var(--seq-colors-info)}.fyvr12aj,.fyvr12ak:active{border-right-color:var(--seq-colors-warning)}.fyvr12al:disabled,.fyvr12al[data-disabled]{border-right-color:var(--seq-colors-warning)}.fyvr12am:focus{border-right-color:var(--seq-colors-warning)}.fyvr12an:hover:not([disabled]){border-right-color:var(--seq-colors-warning)}.fyvr12ao[data-state=checked]{border-right-color:var(--seq-colors-warning)}.fyvr12ap,.fyvr12aq:active{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12ar:disabled,.fyvr12ar[data-disabled]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12as:focus{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12at:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12au[data-state=checked]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12av,.fyvr12aw:active{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ax:disabled,.fyvr12ax[data-disabled]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ay:focus{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12az:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b0[data-state=checked]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b1,.fyvr12b2:active{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b3:disabled,.fyvr12b3[data-disabled]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b4:focus{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b5:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b6[data-state=checked]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b7,.fyvr12b8:active{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12b9:disabled,.fyvr12b9[data-disabled]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12ba:focus{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bb:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bc[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bd,.fyvr12be:active{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bf:disabled,.fyvr12bf[data-disabled]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bg:focus{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bh:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bi[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bj,.fyvr12bk:active{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bl:disabled,.fyvr12bl[data-disabled]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bm:focus{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bn:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bo[data-state=checked]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bp,.fyvr12bq:active{border-right-color:var(--seq-colors-avalance-light)}.fyvr12br:disabled,.fyvr12br[data-disabled]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bs:focus{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bt:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-light)}.fyvr12bu[data-state=checked]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bv,.fyvr12bw:active{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bx:disabled,.fyvr12bx[data-disabled]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12by:focus{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bz:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c0[data-state=checked]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c1,.fyvr12c2:active{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c3:disabled,.fyvr12c3[data-disabled]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c4:focus{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c5:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-light)}.fyvr12c6[data-state=checked]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c7,.fyvr12c8:active{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12c9:disabled,.fyvr12c9[data-disabled]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12ca:focus{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cb:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cc[data-state=checked]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cd,.fyvr12ce:active{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cf:disabled,.fyvr12cf[data-disabled]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cg:focus{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ch:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ci[data-state=checked]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cj,.fyvr12ck:active{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cl:disabled,.fyvr12cl[data-disabled]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cm:focus{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cn:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12co[data-state=checked]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cp,.fyvr12cq:active{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cr:disabled,.fyvr12cr[data-disabled]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cs:focus{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12ct:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cu[data-state=checked]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cv,.fyvr12cw:active{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cx:disabled,.fyvr12cx[data-disabled]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cy:focus{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cz:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d0[data-state=checked]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d1,.fyvr12d2:active{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d3:disabled,.fyvr12d3[data-disabled]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d4:focus{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d5:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-light)}.fyvr12d6[data-state=checked]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d7,.fyvr12d8:active{border-right-color:var(--seq-colors-text100)}.fyvr12d9:disabled,.fyvr12d9[data-disabled]{border-right-color:var(--seq-colors-text100)}.fyvr12da:focus{border-right-color:var(--seq-colors-text100)}.fyvr12db:hover:not([disabled]){border-right-color:var(--seq-colors-text100)}.fyvr12dc[data-state=checked]{border-right-color:var(--seq-colors-text100)}.fyvr12dd,.fyvr12de:active{border-right-color:var(--seq-colors-text80)}.fyvr12df:disabled,.fyvr12df[data-disabled]{border-right-color:var(--seq-colors-text80)}.fyvr12dg:focus{border-right-color:var(--seq-colors-text80)}.fyvr12dh:hover:not([disabled]){border-right-color:var(--seq-colors-text80)}.fyvr12di[data-state=checked]{border-right-color:var(--seq-colors-text80)}.fyvr12dj,.fyvr12dk:active{border-right-color:var(--seq-colors-text50)}.fyvr12dl:disabled,.fyvr12dl[data-disabled]{border-right-color:var(--seq-colors-text50)}.fyvr12dm:focus{border-right-color:var(--seq-colors-text50)}.fyvr12dn:hover:not([disabled]){border-right-color:var(--seq-colors-text50)}.fyvr12do[data-state=checked]{border-right-color:var(--seq-colors-text50)}.fyvr12dp,.fyvr12dq:active{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dr:disabled,.fyvr12dr[data-disabled]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12ds:focus{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dt:hover:not([disabled]){border-right-color:var(--seq-colors-text-inverse100)}.fyvr12du[data-state=checked]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dv,.fyvr12dw:active{border-right-color:var(--seq-colors-background-primary)}.fyvr12dx:disabled,.fyvr12dx[data-disabled]{border-right-color:var(--seq-colors-background-primary)}.fyvr12dy:focus{border-right-color:var(--seq-colors-background-primary)}.fyvr12dz:hover:not([disabled]){border-right-color:var(--seq-colors-background-primary)}.fyvr12e0[data-state=checked]{border-right-color:var(--seq-colors-background-primary)}.fyvr12e1,.fyvr12e2:active{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e3:disabled,.fyvr12e3[data-disabled]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e4:focus{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e5:hover:not([disabled]){border-right-color:var(--seq-colors-background-secondary)}.fyvr12e6[data-state=checked]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e7,.fyvr12e8:active{border-right-color:var(--seq-colors-background-contrast)}.fyvr12e9:disabled,.fyvr12e9[data-disabled]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ea:focus{border-right-color:var(--seq-colors-background-contrast)}.fyvr12eb:hover:not([disabled]){border-right-color:var(--seq-colors-background-contrast)}.fyvr12ec[data-state=checked]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ed,.fyvr12ee:active{border-right-color:var(--seq-colors-background-muted)}.fyvr12ef:disabled,.fyvr12ef[data-disabled]{border-right-color:var(--seq-colors-background-muted)}.fyvr12eg:focus{border-right-color:var(--seq-colors-background-muted)}.fyvr12eh:hover:not([disabled]){border-right-color:var(--seq-colors-background-muted)}.fyvr12ei[data-state=checked]{border-right-color:var(--seq-colors-background-muted)}.fyvr12ej,.fyvr12ek:active{border-right-color:var(--seq-colors-background-control)}.fyvr12el:disabled,.fyvr12el[data-disabled]{border-right-color:var(--seq-colors-background-control)}.fyvr12em:focus{border-right-color:var(--seq-colors-background-control)}.fyvr12en:hover:not([disabled]){border-right-color:var(--seq-colors-background-control)}.fyvr12eo[data-state=checked]{border-right-color:var(--seq-colors-background-control)}.fyvr12ep,.fyvr12eq:active{border-right-color:var(--seq-colors-background-inverse)}.fyvr12er:disabled,.fyvr12er[data-disabled]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12es:focus{border-right-color:var(--seq-colors-background-inverse)}.fyvr12et:hover:not([disabled]){border-right-color:var(--seq-colors-background-inverse)}.fyvr12eu[data-state=checked]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12ev,.fyvr12ew:active{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ex:disabled,.fyvr12ex[data-disabled]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ey:focus{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ez:hover:not([disabled]){border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f0[data-state=checked]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f1,.fyvr12f2:active{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f3:disabled,.fyvr12f3[data-disabled]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f4:focus{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f5:hover:not([disabled]){border-right-color:var(--seq-colors-background-overlay)}.fyvr12f6[data-state=checked]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f7,.fyvr12f8:active{border-right-color:var(--seq-colors-background-raised)}.fyvr12f9:disabled,.fyvr12f9[data-disabled]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fa:focus{border-right-color:var(--seq-colors-background-raised)}.fyvr12fb:hover:not([disabled]){border-right-color:var(--seq-colors-background-raised)}.fyvr12fc[data-state=checked]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fd,.fyvr12fe:active{border-right-color:var(--seq-colors-button-glass)}.fyvr12ff:disabled,.fyvr12ff[data-disabled]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fg:focus{border-right-color:var(--seq-colors-button-glass)}.fyvr12fh:hover:not([disabled]){border-right-color:var(--seq-colors-button-glass)}.fyvr12fi[data-state=checked]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fj,.fyvr12fk:active{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fl:disabled,.fyvr12fl[data-disabled]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fm:focus{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fn:hover:not([disabled]){border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fo[data-state=checked]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fp,.fyvr12fq:active{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fr:disabled,.fyvr12fr[data-disabled]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fs:focus{border-right-color:var(--seq-colors-button-inverse)}.fyvr12ft:hover:not([disabled]){border-right-color:var(--seq-colors-button-inverse)}.fyvr12fu[data-state=checked]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fv,.fyvr12fw:active{border-right-color:var(--seq-colors-border-normal)}.fyvr12fx:disabled,.fyvr12fx[data-disabled]{border-right-color:var(--seq-colors-border-normal)}.fyvr12fy:focus{border-right-color:var(--seq-colors-border-normal)}.fyvr12fz:hover:not([disabled]){border-right-color:var(--seq-colors-border-normal)}.fyvr12g0[data-state=checked]{border-right-color:var(--seq-colors-border-normal)}.fyvr12g1,.fyvr12g2:active{border-right-color:var(--seq-colors-border-focus)}.fyvr12g3:disabled,.fyvr12g3[data-disabled]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g4:focus{border-right-color:var(--seq-colors-border-focus)}.fyvr12g5:hover:not([disabled]){border-right-color:var(--seq-colors-border-focus)}.fyvr12g6[data-state=checked]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g7,.fyvr12g8:active{border-right-style:solid}.fyvr12g9:disabled,.fyvr12g9[data-disabled]{border-right-style:solid}.fyvr12ga:focus{border-right-style:solid}.fyvr12gb:hover:not([disabled]){border-right-style:solid}.fyvr12gc[data-state=checked]{border-right-style:solid}.fyvr12gd,.fyvr12ge:active{border-right-style:dashed}.fyvr12gf:disabled,.fyvr12gf[data-disabled]{border-right-style:dashed}.fyvr12gg:focus{border-right-style:dashed}.fyvr12gh:hover:not([disabled]){border-right-style:dashed}.fyvr12gi[data-state=checked]{border-right-style:dashed}.fyvr12gj,.fyvr12gk:active{border-right-style:dotted}.fyvr12gl:disabled,.fyvr12gl[data-disabled]{border-right-style:dotted}.fyvr12gm:focus{border-right-style:dotted}.fyvr12gn:hover:not([disabled]){border-right-style:dotted}.fyvr12go[data-state=checked]{border-right-style:dotted}.fyvr12gp,.fyvr12gq:active{border-top-color:var(--seq-colors-black)}.fyvr12gr:disabled,.fyvr12gr[data-disabled]{border-top-color:var(--seq-colors-black)}.fyvr12gs:focus{border-top-color:var(--seq-colors-black)}.fyvr12gt:hover:not([disabled]){border-top-color:var(--seq-colors-black)}.fyvr12gu[data-state=checked]{border-top-color:var(--seq-colors-black)}.fyvr12gv,.fyvr12gw:active{border-top-color:var(--seq-colors-white)}.fyvr12gx:disabled,.fyvr12gx[data-disabled]{border-top-color:var(--seq-colors-white)}.fyvr12gy:focus{border-top-color:var(--seq-colors-white)}.fyvr12gz:hover:not([disabled]){border-top-color:var(--seq-colors-white)}.fyvr12h0[data-state=checked]{border-top-color:var(--seq-colors-white)}.fyvr12h1,.fyvr12h2:active{border-top-color:var(--seq-colors-inherit)}.fyvr12h3:disabled,.fyvr12h3[data-disabled]{border-top-color:var(--seq-colors-inherit)}.fyvr12h4:focus{border-top-color:var(--seq-colors-inherit)}.fyvr12h5:hover:not([disabled]){border-top-color:var(--seq-colors-inherit)}.fyvr12h6[data-state=checked]{border-top-color:var(--seq-colors-inherit)}.fyvr12h7,.fyvr12h8:active{border-top-color:var(--seq-colors-transparent)}.fyvr12h9:disabled,.fyvr12h9[data-disabled]{border-top-color:var(--seq-colors-transparent)}.fyvr12ha:focus{border-top-color:var(--seq-colors-transparent)}.fyvr12hb:hover:not([disabled]){border-top-color:var(--seq-colors-transparent)}.fyvr12hc[data-state=checked]{border-top-color:var(--seq-colors-transparent)}.fyvr12hd,.fyvr12he:active{border-top-color:var(--seq-colors-positive)}.fyvr12hf:disabled,.fyvr12hf[data-disabled]{border-top-color:var(--seq-colors-positive)}.fyvr12hg:focus{border-top-color:var(--seq-colors-positive)}.fyvr12hh:hover:not([disabled]){border-top-color:var(--seq-colors-positive)}.fyvr12hi[data-state=checked]{border-top-color:var(--seq-colors-positive)}.fyvr12hj,.fyvr12hk:active{border-top-color:var(--seq-colors-negative)}.fyvr12hl:disabled,.fyvr12hl[data-disabled]{border-top-color:var(--seq-colors-negative)}.fyvr12hm:focus{border-top-color:var(--seq-colors-negative)}.fyvr12hn:hover:not([disabled]){border-top-color:var(--seq-colors-negative)}.fyvr12ho[data-state=checked]{border-top-color:var(--seq-colors-negative)}.fyvr12hp,.fyvr12hq:active{border-top-color:var(--seq-colors-info)}.fyvr12hr:disabled,.fyvr12hr[data-disabled]{border-top-color:var(--seq-colors-info)}.fyvr12hs:focus{border-top-color:var(--seq-colors-info)}.fyvr12ht:hover:not([disabled]){border-top-color:var(--seq-colors-info)}.fyvr12hu[data-state=checked]{border-top-color:var(--seq-colors-info)}.fyvr12hv,.fyvr12hw:active{border-top-color:var(--seq-colors-warning)}.fyvr12hx:disabled,.fyvr12hx[data-disabled]{border-top-color:var(--seq-colors-warning)}.fyvr12hy:focus{border-top-color:var(--seq-colors-warning)}.fyvr12hz:hover:not([disabled]){border-top-color:var(--seq-colors-warning)}.fyvr12i0[data-state=checked]{border-top-color:var(--seq-colors-warning)}.fyvr12i1,.fyvr12i2:active{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i3:disabled,.fyvr12i3[data-disabled]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i4:focus{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i5:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i6[data-state=checked]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i7,.fyvr12i8:active{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12i9:disabled,.fyvr12i9[data-disabled]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ia:focus{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ib:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ic[data-state=checked]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12id,.fyvr12ie:active{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12if:disabled,.fyvr12if[data-disabled]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ig:focus{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ih:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ii[data-state=checked]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ij,.fyvr12ik:active{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12il:disabled,.fyvr12il[data-disabled]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12im:focus{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12in:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12io[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12ip,.fyvr12iq:active{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12ir:disabled,.fyvr12ir[data-disabled]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12is:focus{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12it:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iu[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iv,.fyvr12iw:active{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12ix:disabled,.fyvr12ix[data-disabled]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iy:focus{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iz:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j0[data-state=checked]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j1,.fyvr12j2:active{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j3:disabled,.fyvr12j3[data-disabled]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j4:focus{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j5:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-light)}.fyvr12j6[data-state=checked]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j7,.fyvr12j8:active{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12j9:disabled,.fyvr12j9[data-disabled]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12ja:focus{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jb:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jc[data-state=checked]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jd,.fyvr12je:active{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jf:disabled,.fyvr12jf[data-disabled]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jg:focus{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jh:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-light)}.fyvr12ji[data-state=checked]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jj,.fyvr12jk:active{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jl:disabled,.fyvr12jl[data-disabled]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jm:focus{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jn:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jo[data-state=checked]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jp,.fyvr12jq:active{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jr:disabled,.fyvr12jr[data-disabled]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12js:focus{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jt:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-light)}.fyvr12ju[data-state=checked]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jv,.fyvr12jw:active{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jx:disabled,.fyvr12jx[data-disabled]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jy:focus{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jz:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k0[data-state=checked]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k1,.fyvr12k2:active{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k3:disabled,.fyvr12k3[data-disabled]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k4:focus{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k5:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k6[data-state=checked]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k7,.fyvr12k8:active{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12k9:disabled,.fyvr12k9[data-disabled]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ka:focus{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kb:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kc[data-state=checked]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kd,.fyvr12ke:active{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kf:disabled,.fyvr12kf[data-disabled]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kg:focus{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kh:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-light)}.fyvr12ki[data-state=checked]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kj,.fyvr12kk:active{border-top-color:var(--seq-colors-text100)}.fyvr12kl:disabled,.fyvr12kl[data-disabled]{border-top-color:var(--seq-colors-text100)}.fyvr12km:focus{border-top-color:var(--seq-colors-text100)}.fyvr12kn:hover:not([disabled]){border-top-color:var(--seq-colors-text100)}.fyvr12ko[data-state=checked]{border-top-color:var(--seq-colors-text100)}.fyvr12kp,.fyvr12kq:active{border-top-color:var(--seq-colors-text80)}.fyvr12kr:disabled,.fyvr12kr[data-disabled]{border-top-color:var(--seq-colors-text80)}.fyvr12ks:focus{border-top-color:var(--seq-colors-text80)}.fyvr12kt:hover:not([disabled]){border-top-color:var(--seq-colors-text80)}.fyvr12ku[data-state=checked]{border-top-color:var(--seq-colors-text80)}.fyvr12kv,.fyvr12kw:active{border-top-color:var(--seq-colors-text50)}.fyvr12kx:disabled,.fyvr12kx[data-disabled]{border-top-color:var(--seq-colors-text50)}.fyvr12ky:focus{border-top-color:var(--seq-colors-text50)}.fyvr12kz:hover:not([disabled]){border-top-color:var(--seq-colors-text50)}.fyvr12l0[data-state=checked]{border-top-color:var(--seq-colors-text50)}.fyvr12l1,.fyvr12l2:active{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l3:disabled,.fyvr12l3[data-disabled]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l4:focus{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l5:hover:not([disabled]){border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l6[data-state=checked]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l7,.fyvr12l8:active{border-top-color:var(--seq-colors-background-primary)}.fyvr12l9:disabled,.fyvr12l9[data-disabled]{border-top-color:var(--seq-colors-background-primary)}.fyvr12la:focus{border-top-color:var(--seq-colors-background-primary)}.fyvr12lb:hover:not([disabled]){border-top-color:var(--seq-colors-background-primary)}.fyvr12lc[data-state=checked]{border-top-color:var(--seq-colors-background-primary)}.fyvr12ld,.fyvr12le:active{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lf:disabled,.fyvr12lf[data-disabled]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lg:focus{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lh:hover:not([disabled]){border-top-color:var(--seq-colors-background-secondary)}.fyvr12li[data-state=checked]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lj,.fyvr12lk:active{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ll:disabled,.fyvr12ll[data-disabled]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lm:focus{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ln:hover:not([disabled]){border-top-color:var(--seq-colors-background-contrast)}.fyvr12lo[data-state=checked]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lp,.fyvr12lq:active{border-top-color:var(--seq-colors-background-muted)}.fyvr12lr:disabled,.fyvr12lr[data-disabled]{border-top-color:var(--seq-colors-background-muted)}.fyvr12ls:focus{border-top-color:var(--seq-colors-background-muted)}.fyvr12lt:hover:not([disabled]){border-top-color:var(--seq-colors-background-muted)}.fyvr12lu[data-state=checked]{border-top-color:var(--seq-colors-background-muted)}.fyvr12lv,.fyvr12lw:active{border-top-color:var(--seq-colors-background-control)}.fyvr12lx:disabled,.fyvr12lx[data-disabled]{border-top-color:var(--seq-colors-background-control)}.fyvr12ly:focus{border-top-color:var(--seq-colors-background-control)}.fyvr12lz:hover:not([disabled]){border-top-color:var(--seq-colors-background-control)}.fyvr12m0[data-state=checked]{border-top-color:var(--seq-colors-background-control)}.fyvr12m1,.fyvr12m2:active{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m3:disabled,.fyvr12m3[data-disabled]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m4:focus{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m5:hover:not([disabled]){border-top-color:var(--seq-colors-background-inverse)}.fyvr12m6[data-state=checked]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m7,.fyvr12m8:active{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12m9:disabled,.fyvr12m9[data-disabled]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12ma:focus{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mb:hover:not([disabled]){border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mc[data-state=checked]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12md,.fyvr12me:active{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mf:disabled,.fyvr12mf[data-disabled]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mg:focus{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mh:hover:not([disabled]){border-top-color:var(--seq-colors-background-overlay)}.fyvr12mi[data-state=checked]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mj,.fyvr12mk:active{border-top-color:var(--seq-colors-background-raised)}.fyvr12ml:disabled,.fyvr12ml[data-disabled]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mm:focus{border-top-color:var(--seq-colors-background-raised)}.fyvr12mn:hover:not([disabled]){border-top-color:var(--seq-colors-background-raised)}.fyvr12mo[data-state=checked]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mp,.fyvr12mq:active{border-top-color:var(--seq-colors-button-glass)}.fyvr12mr:disabled,.fyvr12mr[data-disabled]{border-top-color:var(--seq-colors-button-glass)}.fyvr12ms:focus{border-top-color:var(--seq-colors-button-glass)}.fyvr12mt:hover:not([disabled]){border-top-color:var(--seq-colors-button-glass)}.fyvr12mu[data-state=checked]{border-top-color:var(--seq-colors-button-glass)}.fyvr12mv,.fyvr12mw:active{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mx:disabled,.fyvr12mx[data-disabled]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12my:focus{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mz:hover:not([disabled]){border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n0[data-state=checked]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n1,.fyvr12n2:active{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n3:disabled,.fyvr12n3[data-disabled]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n4:focus{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n5:hover:not([disabled]){border-top-color:var(--seq-colors-button-inverse)}.fyvr12n6[data-state=checked]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n7,.fyvr12n8:active{border-top-color:var(--seq-colors-border-normal)}.fyvr12n9:disabled,.fyvr12n9[data-disabled]{border-top-color:var(--seq-colors-border-normal)}.fyvr12na:focus{border-top-color:var(--seq-colors-border-normal)}.fyvr12nb:hover:not([disabled]){border-top-color:var(--seq-colors-border-normal)}.fyvr12nc[data-state=checked]{border-top-color:var(--seq-colors-border-normal)}.fyvr12nd,.fyvr12ne:active{border-top-color:var(--seq-colors-border-focus)}.fyvr12nf:disabled,.fyvr12nf[data-disabled]{border-top-color:var(--seq-colors-border-focus)}.fyvr12ng:focus{border-top-color:var(--seq-colors-border-focus)}.fyvr12nh:hover:not([disabled]){border-top-color:var(--seq-colors-border-focus)}.fyvr12ni[data-state=checked]{border-top-color:var(--seq-colors-border-focus)}.fyvr12nj,.fyvr12nk:active{border-top-style:solid}.fyvr12nl:disabled,.fyvr12nl[data-disabled]{border-top-style:solid}.fyvr12nm:focus{border-top-style:solid}.fyvr12nn:hover:not([disabled]){border-top-style:solid}.fyvr12no[data-state=checked]{border-top-style:solid}.fyvr12np,.fyvr12nq:active{border-top-style:dashed}.fyvr12nr:disabled,.fyvr12nr[data-disabled]{border-top-style:dashed}.fyvr12ns:focus{border-top-style:dashed}.fyvr12nt:hover:not([disabled]){border-top-style:dashed}.fyvr12nu[data-state=checked]{border-top-style:dashed}.fyvr12nv,.fyvr12nw:active{border-top-style:dotted}.fyvr12nx:disabled,.fyvr12nx[data-disabled]{border-top-style:dotted}.fyvr12ny:focus{border-top-style:dotted}.fyvr12nz:hover:not([disabled]){border-top-style:dotted}.fyvr12o0[data-state=checked]{border-top-style:dotted}.fyvr12o1,.fyvr12o2:active{border:none}.fyvr12o3:disabled,.fyvr12o3[data-disabled]{border:none}.fyvr12o4:focus{border:none}.fyvr12o5:hover:not([disabled]){border:none}.fyvr12o6[data-state=checked]{border:none}.fyvr12o7,.fyvr12o8:active{color:var(--seq-colors-black)}.fyvr12o9:disabled,.fyvr12o9[data-disabled]{color:var(--seq-colors-black)}.fyvr12oa:focus{color:var(--seq-colors-black)}.fyvr12ob:hover:not([disabled]){color:var(--seq-colors-black)}.fyvr12oc[data-state=checked]{color:var(--seq-colors-black)}.fyvr12od,.fyvr12oe:active{color:var(--seq-colors-white)}.fyvr12of:disabled,.fyvr12of[data-disabled]{color:var(--seq-colors-white)}.fyvr12og:focus{color:var(--seq-colors-white)}.fyvr12oh:hover:not([disabled]){color:var(--seq-colors-white)}.fyvr12oi[data-state=checked]{color:var(--seq-colors-white)}.fyvr12oj,.fyvr12ok:active{color:var(--seq-colors-inherit)}.fyvr12ol:disabled,.fyvr12ol[data-disabled]{color:var(--seq-colors-inherit)}.fyvr12om:focus{color:var(--seq-colors-inherit)}.fyvr12on:hover:not([disabled]){color:var(--seq-colors-inherit)}.fyvr12oo[data-state=checked]{color:var(--seq-colors-inherit)}.fyvr12op,.fyvr12oq:active{color:var(--seq-colors-transparent)}.fyvr12or:disabled,.fyvr12or[data-disabled]{color:var(--seq-colors-transparent)}.fyvr12os:focus{color:var(--seq-colors-transparent)}.fyvr12ot:hover:not([disabled]){color:var(--seq-colors-transparent)}.fyvr12ou[data-state=checked]{color:var(--seq-colors-transparent)}.fyvr12ov,.fyvr12ow:active{color:var(--seq-colors-positive)}.fyvr12ox:disabled,.fyvr12ox[data-disabled]{color:var(--seq-colors-positive)}.fyvr12oy:focus{color:var(--seq-colors-positive)}.fyvr12oz:hover:not([disabled]){color:var(--seq-colors-positive)}.fyvr12p0[data-state=checked]{color:var(--seq-colors-positive)}.fyvr12p1,.fyvr12p2:active{color:var(--seq-colors-negative)}.fyvr12p3:disabled,.fyvr12p3[data-disabled]{color:var(--seq-colors-negative)}.fyvr12p4:focus{color:var(--seq-colors-negative)}.fyvr12p5:hover:not([disabled]){color:var(--seq-colors-negative)}.fyvr12p6[data-state=checked]{color:var(--seq-colors-negative)}.fyvr12p7,.fyvr12p8:active{color:var(--seq-colors-info)}.fyvr12p9:disabled,.fyvr12p9[data-disabled]{color:var(--seq-colors-info)}.fyvr12pa:focus{color:var(--seq-colors-info)}.fyvr12pb:hover:not([disabled]){color:var(--seq-colors-info)}.fyvr12pc[data-state=checked]{color:var(--seq-colors-info)}.fyvr12pd,.fyvr12pe:active{color:var(--seq-colors-warning)}.fyvr12pf:disabled,.fyvr12pf[data-disabled]{color:var(--seq-colors-warning)}.fyvr12pg:focus{color:var(--seq-colors-warning)}.fyvr12ph:hover:not([disabled]){color:var(--seq-colors-warning)}.fyvr12pi[data-state=checked]{color:var(--seq-colors-warning)}.fyvr12pj,.fyvr12pk:active{color:var(--seq-colors-gradient-backdrop)}.fyvr12pl:disabled,.fyvr12pl[data-disabled]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pm:focus{color:var(--seq-colors-gradient-backdrop)}.fyvr12pn:hover:not([disabled]){color:var(--seq-colors-gradient-backdrop)}.fyvr12po[data-state=checked]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pp,.fyvr12pq:active{color:var(--seq-colors-gradient-primary)}.fyvr12pr:disabled,.fyvr12pr[data-disabled]{color:var(--seq-colors-gradient-primary)}.fyvr12ps:focus{color:var(--seq-colors-gradient-primary)}.fyvr12pt:hover:not([disabled]){color:var(--seq-colors-gradient-primary)}.fyvr12pu[data-state=checked]{color:var(--seq-colors-gradient-primary)}.fyvr12pv,.fyvr12pw:active{color:var(--seq-colors-gradient-secondary)}.fyvr12px:disabled,.fyvr12px[data-disabled]{color:var(--seq-colors-gradient-secondary)}.fyvr12py:focus{color:var(--seq-colors-gradient-secondary)}.fyvr12pz:hover:not([disabled]){color:var(--seq-colors-gradient-secondary)}.fyvr12q0[data-state=checked]{color:var(--seq-colors-gradient-secondary)}.fyvr12q1,.fyvr12q2:active{color:var(--seq-colors-arbitrum-dark)}.fyvr12q3:disabled,.fyvr12q3[data-disabled]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q4:focus{color:var(--seq-colors-arbitrum-dark)}.fyvr12q5:hover:not([disabled]){color:var(--seq-colors-arbitrum-dark)}.fyvr12q6[data-state=checked]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q7,.fyvr12q8:active{color:var(--seq-colors-arbitrum-light)}.fyvr12q9:disabled,.fyvr12q9[data-disabled]{color:var(--seq-colors-arbitrum-light)}.fyvr12qa:focus{color:var(--seq-colors-arbitrum-light)}.fyvr12qb:hover:not([disabled]){color:var(--seq-colors-arbitrum-light)}.fyvr12qc[data-state=checked]{color:var(--seq-colors-arbitrum-light)}.fyvr12qd,.fyvr12qe:active{color:var(--seq-colors-avalance-dark)}.fyvr12qf:disabled,.fyvr12qf[data-disabled]{color:var(--seq-colors-avalance-dark)}.fyvr12qg:focus{color:var(--seq-colors-avalance-dark)}.fyvr12qh:hover:not([disabled]){color:var(--seq-colors-avalance-dark)}.fyvr12qi[data-state=checked]{color:var(--seq-colors-avalance-dark)}.fyvr12qj,.fyvr12qk:active{color:var(--seq-colors-avalance-light)}.fyvr12ql:disabled,.fyvr12ql[data-disabled]{color:var(--seq-colors-avalance-light)}.fyvr12qm:focus{color:var(--seq-colors-avalance-light)}.fyvr12qn:hover:not([disabled]){color:var(--seq-colors-avalance-light)}.fyvr12qo[data-state=checked]{color:var(--seq-colors-avalance-light)}.fyvr12qp,.fyvr12qq:active{color:var(--seq-colors-bsc-dark)}.fyvr12qr:disabled,.fyvr12qr[data-disabled]{color:var(--seq-colors-bsc-dark)}.fyvr12qs:focus{color:var(--seq-colors-bsc-dark)}.fyvr12qt:hover:not([disabled]){color:var(--seq-colors-bsc-dark)}.fyvr12qu[data-state=checked]{color:var(--seq-colors-bsc-dark)}.fyvr12qv,.fyvr12qw:active{color:var(--seq-colors-bsc-light)}.fyvr12qx:disabled,.fyvr12qx[data-disabled]{color:var(--seq-colors-bsc-light)}.fyvr12qy:focus{color:var(--seq-colors-bsc-light)}.fyvr12qz:hover:not([disabled]){color:var(--seq-colors-bsc-light)}.fyvr12r0[data-state=checked]{color:var(--seq-colors-bsc-light)}.fyvr12r1,.fyvr12r2:active{color:var(--seq-colors-ethereum-dark)}.fyvr12r3:disabled,.fyvr12r3[data-disabled]{color:var(--seq-colors-ethereum-dark)}.fyvr12r4:focus{color:var(--seq-colors-ethereum-dark)}.fyvr12r5:hover:not([disabled]){color:var(--seq-colors-ethereum-dark)}.fyvr12r6[data-state=checked]{color:var(--seq-colors-ethereum-dark)}.fyvr12r7,.fyvr12r8:active{color:var(--seq-colors-ethereum-light)}.fyvr12r9:disabled,.fyvr12r9[data-disabled]{color:var(--seq-colors-ethereum-light)}.fyvr12ra:focus{color:var(--seq-colors-ethereum-light)}.fyvr12rb:hover:not([disabled]){color:var(--seq-colors-ethereum-light)}.fyvr12rc[data-state=checked]{color:var(--seq-colors-ethereum-light)}.fyvr12rd,.fyvr12re:active{color:var(--seq-colors-gnosis-dark)}.fyvr12rf:disabled,.fyvr12rf[data-disabled]{color:var(--seq-colors-gnosis-dark)}.fyvr12rg:focus{color:var(--seq-colors-gnosis-dark)}.fyvr12rh:hover:not([disabled]){color:var(--seq-colors-gnosis-dark)}.fyvr12ri[data-state=checked]{color:var(--seq-colors-gnosis-dark)}.fyvr12rj,.fyvr12rk:active{color:var(--seq-colors-gnosis-light)}.fyvr12rl:disabled,.fyvr12rl[data-disabled]{color:var(--seq-colors-gnosis-light)}.fyvr12rm:focus{color:var(--seq-colors-gnosis-light)}.fyvr12rn:hover:not([disabled]){color:var(--seq-colors-gnosis-light)}.fyvr12ro[data-state=checked]{color:var(--seq-colors-gnosis-light)}.fyvr12rp,.fyvr12rq:active{color:var(--seq-colors-polygon-dark)}.fyvr12rr:disabled,.fyvr12rr[data-disabled]{color:var(--seq-colors-polygon-dark)}.fyvr12rs:focus{color:var(--seq-colors-polygon-dark)}.fyvr12rt:hover:not([disabled]){color:var(--seq-colors-polygon-dark)}.fyvr12ru[data-state=checked]{color:var(--seq-colors-polygon-dark)}.fyvr12rv,.fyvr12rw:active{color:var(--seq-colors-polygon-light)}.fyvr12rx:disabled,.fyvr12rx[data-disabled]{color:var(--seq-colors-polygon-light)}.fyvr12ry:focus{color:var(--seq-colors-polygon-light)}.fyvr12rz:hover:not([disabled]){color:var(--seq-colors-polygon-light)}.fyvr12s0[data-state=checked]{color:var(--seq-colors-polygon-light)}.fyvr12s1,.fyvr12s2:active{color:var(--seq-colors-text100)}.fyvr12s3:disabled,.fyvr12s3[data-disabled]{color:var(--seq-colors-text100)}.fyvr12s4:focus{color:var(--seq-colors-text100)}.fyvr12s5:hover:not([disabled]){color:var(--seq-colors-text100)}.fyvr12s6[data-state=checked]{color:var(--seq-colors-text100)}.fyvr12s7,.fyvr12s8:active{color:var(--seq-colors-text80)}.fyvr12s9:disabled,.fyvr12s9[data-disabled]{color:var(--seq-colors-text80)}.fyvr12sa:focus{color:var(--seq-colors-text80)}.fyvr12sb:hover:not([disabled]){color:var(--seq-colors-text80)}.fyvr12sc[data-state=checked]{color:var(--seq-colors-text80)}.fyvr12sd,.fyvr12se:active{color:var(--seq-colors-text50)}.fyvr12sf:disabled,.fyvr12sf[data-disabled]{color:var(--seq-colors-text50)}.fyvr12sg:focus{color:var(--seq-colors-text50)}.fyvr12sh:hover:not([disabled]){color:var(--seq-colors-text50)}.fyvr12si[data-state=checked]{color:var(--seq-colors-text50)}.fyvr12sj,.fyvr12sk:active{color:var(--seq-colors-text-inverse100)}.fyvr12sl:disabled,.fyvr12sl[data-disabled]{color:var(--seq-colors-text-inverse100)}.fyvr12sm:focus{color:var(--seq-colors-text-inverse100)}.fyvr12sn:hover:not([disabled]){color:var(--seq-colors-text-inverse100)}.fyvr12so[data-state=checked]{color:var(--seq-colors-text-inverse100)}.fyvr12sp,.fyvr12sq:active{color:var(--seq-colors-background-primary)}.fyvr12sr:disabled,.fyvr12sr[data-disabled]{color:var(--seq-colors-background-primary)}.fyvr12ss:focus{color:var(--seq-colors-background-primary)}.fyvr12st:hover:not([disabled]){color:var(--seq-colors-background-primary)}.fyvr12su[data-state=checked]{color:var(--seq-colors-background-primary)}.fyvr12sv,.fyvr12sw:active{color:var(--seq-colors-background-secondary)}.fyvr12sx:disabled,.fyvr12sx[data-disabled]{color:var(--seq-colors-background-secondary)}.fyvr12sy:focus{color:var(--seq-colors-background-secondary)}.fyvr12sz:hover:not([disabled]){color:var(--seq-colors-background-secondary)}.fyvr12t0[data-state=checked]{color:var(--seq-colors-background-secondary)}.fyvr12t1,.fyvr12t2:active{color:var(--seq-colors-background-contrast)}.fyvr12t3:disabled,.fyvr12t3[data-disabled]{color:var(--seq-colors-background-contrast)}.fyvr12t4:focus{color:var(--seq-colors-background-contrast)}.fyvr12t5:hover:not([disabled]){color:var(--seq-colors-background-contrast)}.fyvr12t6[data-state=checked]{color:var(--seq-colors-background-contrast)}.fyvr12t7,.fyvr12t8:active{color:var(--seq-colors-background-muted)}.fyvr12t9:disabled,.fyvr12t9[data-disabled]{color:var(--seq-colors-background-muted)}.fyvr12ta:focus{color:var(--seq-colors-background-muted)}.fyvr12tb:hover:not([disabled]){color:var(--seq-colors-background-muted)}.fyvr12tc[data-state=checked]{color:var(--seq-colors-background-muted)}.fyvr12td,.fyvr12te:active{color:var(--seq-colors-background-control)}.fyvr12tf:disabled,.fyvr12tf[data-disabled]{color:var(--seq-colors-background-control)}.fyvr12tg:focus{color:var(--seq-colors-background-control)}.fyvr12th:hover:not([disabled]){color:var(--seq-colors-background-control)}.fyvr12ti[data-state=checked]{color:var(--seq-colors-background-control)}.fyvr12tj,.fyvr12tk:active{color:var(--seq-colors-background-inverse)}.fyvr12tl:disabled,.fyvr12tl[data-disabled]{color:var(--seq-colors-background-inverse)}.fyvr12tm:focus{color:var(--seq-colors-background-inverse)}.fyvr12tn:hover:not([disabled]){color:var(--seq-colors-background-inverse)}.fyvr12to[data-state=checked]{color:var(--seq-colors-background-inverse)}.fyvr12tp,.fyvr12tq:active{color:var(--seq-colors-background-backdrop)}.fyvr12tr:disabled,.fyvr12tr[data-disabled]{color:var(--seq-colors-background-backdrop)}.fyvr12ts:focus{color:var(--seq-colors-background-backdrop)}.fyvr12tt:hover:not([disabled]){color:var(--seq-colors-background-backdrop)}.fyvr12tu[data-state=checked]{color:var(--seq-colors-background-backdrop)}.fyvr12tv,.fyvr12tw:active{color:var(--seq-colors-background-overlay)}.fyvr12tx:disabled,.fyvr12tx[data-disabled]{color:var(--seq-colors-background-overlay)}.fyvr12ty:focus{color:var(--seq-colors-background-overlay)}.fyvr12tz:hover:not([disabled]){color:var(--seq-colors-background-overlay)}.fyvr12u0[data-state=checked]{color:var(--seq-colors-background-overlay)}.fyvr12u1,.fyvr12u2:active{color:var(--seq-colors-background-raised)}.fyvr12u3:disabled,.fyvr12u3[data-disabled]{color:var(--seq-colors-background-raised)}.fyvr12u4:focus{color:var(--seq-colors-background-raised)}.fyvr12u5:hover:not([disabled]){color:var(--seq-colors-background-raised)}.fyvr12u6[data-state=checked]{color:var(--seq-colors-background-raised)}.fyvr12u7,.fyvr12u8:active{color:var(--seq-colors-button-glass)}.fyvr12u9:disabled,.fyvr12u9[data-disabled]{color:var(--seq-colors-button-glass)}.fyvr12ua:focus{color:var(--seq-colors-button-glass)}.fyvr12ub:hover:not([disabled]){color:var(--seq-colors-button-glass)}.fyvr12uc[data-state=checked]{color:var(--seq-colors-button-glass)}.fyvr12ud,.fyvr12ue:active{color:var(--seq-colors-button-emphasis)}.fyvr12uf:disabled,.fyvr12uf[data-disabled]{color:var(--seq-colors-button-emphasis)}.fyvr12ug:focus{color:var(--seq-colors-button-emphasis)}.fyvr12uh:hover:not([disabled]){color:var(--seq-colors-button-emphasis)}.fyvr12ui[data-state=checked]{color:var(--seq-colors-button-emphasis)}.fyvr12uj,.fyvr12uk:active{color:var(--seq-colors-button-inverse)}.fyvr12ul:disabled,.fyvr12ul[data-disabled]{color:var(--seq-colors-button-inverse)}.fyvr12um:focus{color:var(--seq-colors-button-inverse)}.fyvr12un:hover:not([disabled]){color:var(--seq-colors-button-inverse)}.fyvr12uo[data-state=checked]{color:var(--seq-colors-button-inverse)}.fyvr12up,.fyvr12uq:active{color:var(--seq-colors-border-normal)}.fyvr12ur:disabled,.fyvr12ur[data-disabled]{color:var(--seq-colors-border-normal)}.fyvr12us:focus{color:var(--seq-colors-border-normal)}.fyvr12ut:hover:not([disabled]){color:var(--seq-colors-border-normal)}.fyvr12uu[data-state=checked]{color:var(--seq-colors-border-normal)}.fyvr12uv,.fyvr12uw:active{color:var(--seq-colors-border-focus)}.fyvr12ux:disabled,.fyvr12ux[data-disabled]{color:var(--seq-colors-border-focus)}.fyvr12uy:focus{color:var(--seq-colors-border-focus)}.fyvr12uz:hover:not([disabled]){color:var(--seq-colors-border-focus)}.fyvr12v0[data-state=checked]{color:var(--seq-colors-border-focus)}.fyvr12v1,.fyvr12v2:active{cursor:default}.fyvr12v3:disabled,.fyvr12v3[data-disabled]{cursor:default}.fyvr12v4:focus{cursor:default}.fyvr12v5:hover:not([disabled]){cursor:default}.fyvr12v6[data-state=checked]{cursor:default}.fyvr12v7,.fyvr12v8:active{cursor:pointer}.fyvr12v9:disabled,.fyvr12v9[data-disabled]{cursor:pointer}.fyvr12va:focus{cursor:pointer}.fyvr12vb:hover:not([disabled]){cursor:pointer}.fyvr12vc[data-state=checked]{cursor:pointer}.fyvr12vd,.fyvr12ve:active{cursor:text}.fyvr12vf:disabled,.fyvr12vf[data-disabled]{cursor:text}.fyvr12vg:focus{cursor:text}.fyvr12vh:hover:not([disabled]){cursor:text}.fyvr12vi[data-state=checked]{cursor:text}.fyvr12vj,.fyvr12vk:active{opacity:var(--seq-opacity-0)}.fyvr12vl:disabled,.fyvr12vl[data-disabled]{opacity:var(--seq-opacity-0)}.fyvr12vm:focus{opacity:var(--seq-opacity-0)}.fyvr12vn:hover:not([disabled]){opacity:var(--seq-opacity-0)}.fyvr12vo[data-state=checked]{opacity:var(--seq-opacity-0)}.fyvr12vp,.fyvr12vq:active{opacity:var(--seq-opacity-50)}.fyvr12vr:disabled,.fyvr12vr[data-disabled]{opacity:var(--seq-opacity-50)}.fyvr12vs:focus{opacity:var(--seq-opacity-50)}.fyvr12vt:hover:not([disabled]){opacity:var(--seq-opacity-50)}.fyvr12vu[data-state=checked]{opacity:var(--seq-opacity-50)}.fyvr12vv,.fyvr12vw:active{opacity:var(--seq-opacity-80)}.fyvr12vx:disabled,.fyvr12vx[data-disabled]{opacity:var(--seq-opacity-80)}.fyvr12vy:focus{opacity:var(--seq-opacity-80)}.fyvr12vz:hover:not([disabled]){opacity:var(--seq-opacity-80)}.fyvr12w0[data-state=checked]{opacity:var(--seq-opacity-80)}.fyvr12w1,.fyvr12w2:active{opacity:var(--seq-opacity-100)}.fyvr12w3:disabled,.fyvr12w3[data-disabled]{opacity:var(--seq-opacity-100)}.fyvr12w4:focus{opacity:var(--seq-opacity-100)}.fyvr12w5:hover:not([disabled]){opacity:var(--seq-opacity-100)}.fyvr12w6[data-state=checked]{opacity:var(--seq-opacity-100)}.fyvr12w7,.fyvr12w8:active{pointer-events:none}.fyvr12w9:disabled,.fyvr12w9[data-disabled]{pointer-events:none}.fyvr12wa:focus{pointer-events:none}.fyvr12wb:hover:not([disabled]){pointer-events:none}.fyvr12wc[data-state=checked]{pointer-events:none}.fyvr12wd,.fyvr12we:active{pointer-events:auto}.fyvr12wf:disabled,.fyvr12wf[data-disabled]{pointer-events:auto}.fyvr12wg:focus{pointer-events:auto}.fyvr12wh:hover:not([disabled]){pointer-events:auto}.fyvr12wi[data-state=checked]{pointer-events:auto}.fyvr12wj,.fyvr12wk:active{outline:none}.fyvr12wl:disabled,.fyvr12wl[data-disabled]{outline:none}.fyvr12wm:focus{outline:none}.fyvr12wn:hover:not([disabled]){outline:none}.fyvr12wo[data-state=checked]{outline:none}.fyvr12wp,.fyvr12wq:active{box-shadow:none}.fyvr12wr:disabled,.fyvr12wr[data-disabled]{box-shadow:none}.fyvr12ws:focus{box-shadow:none}.fyvr12wt:hover:not([disabled]){box-shadow:none}.fyvr12wu[data-state=checked]{box-shadow:none}@media (min-width: 480px){.fyvr11{width:var(--seq-space-0)}.fyvr15{width:var(--seq-space-1)}.fyvr19{width:var(--seq-space-2)}.fyvr1d{width:var(--seq-space-3)}.fyvr1h{width:var(--seq-space-4)}.fyvr1l{width:var(--seq-space-5)}.fyvr1p{width:var(--seq-space-6)}.fyvr1t{width:var(--seq-space-7)}.fyvr1x{width:var(--seq-space-8)}.fyvr111{width:var(--seq-space-9)}.fyvr115{width:var(--seq-space-10)}.fyvr119{width:var(--seq-space-12)}.fyvr11d{width:var(--seq-space-14)}.fyvr11h{width:var(--seq-space-16)}.fyvr11l{width:var(--seq-space-0_25)}.fyvr11p{width:var(--seq-space-0_5)}.fyvr11t{width:var(--seq-space-1_5)}.fyvr11x{width:0}.fyvr121{width:1px}.fyvr125{width:auto}.fyvr129{width:100%}.fyvr12d{width:50%}.fyvr12h{width:33.33333%}.fyvr12l{width:66.66667%}.fyvr12p{width:25%}.fyvr12t{width:75%}.fyvr12x{width:-moz-fit-content;width:fit-content}.fyvr131{width:-moz-max-content;width:max-content}.fyvr135{width:-moz-min-content;width:min-content}.fyvr139{width:100vw}.fyvr13d{width:100vh}.fyvr13h{height:var(--seq-space-0)}.fyvr13l{height:var(--seq-space-1)}.fyvr13p{height:var(--seq-space-2)}.fyvr13t{height:var(--seq-space-3)}.fyvr13x{height:var(--seq-space-4)}.fyvr141{height:var(--seq-space-5)}.fyvr145{height:var(--seq-space-6)}.fyvr149{height:var(--seq-space-7)}.fyvr14d{height:var(--seq-space-8)}.fyvr14h{height:var(--seq-space-9)}.fyvr14l{height:var(--seq-space-10)}.fyvr14p{height:var(--seq-space-12)}.fyvr14t{height:var(--seq-space-14)}.fyvr14x{height:var(--seq-space-16)}.fyvr151{height:var(--seq-space-0_25)}.fyvr155{height:var(--seq-space-0_5)}.fyvr159{height:var(--seq-space-1_5)}.fyvr15d{height:0}.fyvr15h{height:1px}.fyvr15l{height:auto}.fyvr15p{height:100%}.fyvr15t{height:50%}.fyvr15x{height:33.33333%}.fyvr161{height:66.66667%}.fyvr165{height:25%}.fyvr169{height:75%}.fyvr16d{height:-moz-fit-content;height:fit-content}.fyvr16h{height:-moz-max-content;height:max-content}.fyvr16l{height:-moz-min-content;height:min-content}.fyvr16p{height:100vw}.fyvr16t{height:100vh}.fyvr16x{max-width:var(--seq-space-0)}.fyvr171{max-width:var(--seq-space-1)}.fyvr175{max-width:var(--seq-space-2)}.fyvr179{max-width:var(--seq-space-3)}.fyvr17d{max-width:var(--seq-space-4)}.fyvr17h{max-width:var(--seq-space-5)}.fyvr17l{max-width:var(--seq-space-6)}.fyvr17p{max-width:var(--seq-space-7)}.fyvr17t{max-width:var(--seq-space-8)}.fyvr17x{max-width:var(--seq-space-9)}.fyvr181{max-width:var(--seq-space-10)}.fyvr185{max-width:var(--seq-space-12)}.fyvr189{max-width:var(--seq-space-14)}.fyvr18d{max-width:var(--seq-space-16)}.fyvr18h{max-width:var(--seq-space-0_25)}.fyvr18l{max-width:var(--seq-space-0_5)}.fyvr18p{max-width:var(--seq-space-1_5)}.fyvr18t{max-width:0}.fyvr18x{max-width:1px}.fyvr191{max-width:auto}.fyvr195{max-width:100%}.fyvr199{max-width:50%}.fyvr19d{max-width:33.33333%}.fyvr19h{max-width:66.66667%}.fyvr19l{max-width:25%}.fyvr19p{max-width:75%}.fyvr19t{max-width:-moz-fit-content;max-width:fit-content}.fyvr19x{max-width:-moz-max-content;max-width:max-content}.fyvr1a1{max-width:-moz-min-content;max-width:min-content}.fyvr1a5{max-width:100vw}.fyvr1a9{max-width:100vh}.fyvr1ad{max-height:var(--seq-space-0)}.fyvr1ah{max-height:var(--seq-space-1)}.fyvr1al{max-height:var(--seq-space-2)}.fyvr1ap{max-height:var(--seq-space-3)}.fyvr1at{max-height:var(--seq-space-4)}.fyvr1ax{max-height:var(--seq-space-5)}.fyvr1b1{max-height:var(--seq-space-6)}.fyvr1b5{max-height:var(--seq-space-7)}.fyvr1b9{max-height:var(--seq-space-8)}.fyvr1bd{max-height:var(--seq-space-9)}.fyvr1bh{max-height:var(--seq-space-10)}.fyvr1bl{max-height:var(--seq-space-12)}.fyvr1bp{max-height:var(--seq-space-14)}.fyvr1bt{max-height:var(--seq-space-16)}.fyvr1bx{max-height:var(--seq-space-0_25)}.fyvr1c1{max-height:var(--seq-space-0_5)}.fyvr1c5{max-height:var(--seq-space-1_5)}.fyvr1c9{max-height:0}.fyvr1cd{max-height:1px}.fyvr1ch{max-height:auto}.fyvr1cl{max-height:100%}.fyvr1cp{max-height:50%}.fyvr1ct{max-height:33.33333%}.fyvr1cx{max-height:66.66667%}.fyvr1d1{max-height:25%}.fyvr1d5{max-height:75%}.fyvr1d9{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dd{max-height:-moz-max-content;max-height:max-content}.fyvr1dh{max-height:-moz-min-content;max-height:min-content}.fyvr1dl{max-height:100vw}.fyvr1dp{max-height:100vh}.fyvr1dt{min-width:var(--seq-space-0)}.fyvr1dx{min-width:var(--seq-space-1)}.fyvr1e1{min-width:var(--seq-space-2)}.fyvr1e5{min-width:var(--seq-space-3)}.fyvr1e9{min-width:var(--seq-space-4)}.fyvr1ed{min-width:var(--seq-space-5)}.fyvr1eh{min-width:var(--seq-space-6)}.fyvr1el{min-width:var(--seq-space-7)}.fyvr1ep{min-width:var(--seq-space-8)}.fyvr1et{min-width:var(--seq-space-9)}.fyvr1ex{min-width:var(--seq-space-10)}.fyvr1f1{min-width:var(--seq-space-12)}.fyvr1f5{min-width:var(--seq-space-14)}.fyvr1f9{min-width:var(--seq-space-16)}.fyvr1fd{min-width:var(--seq-space-0_25)}.fyvr1fh{min-width:var(--seq-space-0_5)}.fyvr1fl{min-width:var(--seq-space-1_5)}.fyvr1fp{min-width:0}.fyvr1ft{min-width:1px}.fyvr1fx{min-width:auto}.fyvr1g1{min-width:100%}.fyvr1g5{min-width:50%}.fyvr1g9{min-width:33.33333%}.fyvr1gd{min-width:66.66667%}.fyvr1gh{min-width:25%}.fyvr1gl{min-width:75%}.fyvr1gp{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gt{min-width:-moz-max-content;min-width:max-content}.fyvr1gx{min-width:-moz-min-content;min-width:min-content}.fyvr1h1{min-width:100vw}.fyvr1h5{min-width:100vh}.fyvr1h9{min-height:var(--seq-space-0)}.fyvr1hd{min-height:var(--seq-space-1)}.fyvr1hh{min-height:var(--seq-space-2)}.fyvr1hl{min-height:var(--seq-space-3)}.fyvr1hp{min-height:var(--seq-space-4)}.fyvr1ht{min-height:var(--seq-space-5)}.fyvr1hx{min-height:var(--seq-space-6)}.fyvr1i1{min-height:var(--seq-space-7)}.fyvr1i5{min-height:var(--seq-space-8)}.fyvr1i9{min-height:var(--seq-space-9)}.fyvr1id{min-height:var(--seq-space-10)}.fyvr1ih{min-height:var(--seq-space-12)}.fyvr1il{min-height:var(--seq-space-14)}.fyvr1ip{min-height:var(--seq-space-16)}.fyvr1it{min-height:var(--seq-space-0_25)}.fyvr1ix{min-height:var(--seq-space-0_5)}.fyvr1j1{min-height:var(--seq-space-1_5)}.fyvr1j5{min-height:0}.fyvr1j9{min-height:1px}.fyvr1jd{min-height:auto}.fyvr1jh{min-height:100%}.fyvr1jl{min-height:50%}.fyvr1jp{min-height:33.33333%}.fyvr1jt{min-height:66.66667%}.fyvr1jx{min-height:25%}.fyvr1k1{min-height:75%}.fyvr1k5{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k9{min-height:-moz-max-content;min-height:max-content}.fyvr1kd{min-height:-moz-min-content;min-height:min-content}.fyvr1kh{min-height:100vw}.fyvr1kl{min-height:100vh}.fyvr1kp{top:var(--seq-space-0)}.fyvr1kt{top:var(--seq-space-1)}.fyvr1kx{top:var(--seq-space-2)}.fyvr1l1{top:var(--seq-space-3)}.fyvr1l5{top:var(--seq-space-4)}.fyvr1l9{top:var(--seq-space-5)}.fyvr1ld{top:var(--seq-space-6)}.fyvr1lh{top:var(--seq-space-7)}.fyvr1ll{top:var(--seq-space-8)}.fyvr1lp{top:var(--seq-space-9)}.fyvr1lt{top:var(--seq-space-10)}.fyvr1lx{top:var(--seq-space-12)}.fyvr1m1{top:var(--seq-space-14)}.fyvr1m5{top:var(--seq-space-16)}.fyvr1m9{top:var(--seq-space-0_25)}.fyvr1md{top:var(--seq-space-0_5)}.fyvr1mh{top:var(--seq-space-1_5)}.fyvr1ml{top:auto}.fyvr1mp{bottom:var(--seq-space-0)}.fyvr1mt{bottom:var(--seq-space-1)}.fyvr1mx{bottom:var(--seq-space-2)}.fyvr1n1{bottom:var(--seq-space-3)}.fyvr1n5{bottom:var(--seq-space-4)}.fyvr1n9{bottom:var(--seq-space-5)}.fyvr1nd{bottom:var(--seq-space-6)}.fyvr1nh{bottom:var(--seq-space-7)}.fyvr1nl{bottom:var(--seq-space-8)}.fyvr1np{bottom:var(--seq-space-9)}.fyvr1nt{bottom:var(--seq-space-10)}.fyvr1nx{bottom:var(--seq-space-12)}.fyvr1o1{bottom:var(--seq-space-14)}.fyvr1o5{bottom:var(--seq-space-16)}.fyvr1o9{bottom:var(--seq-space-0_25)}.fyvr1od{bottom:var(--seq-space-0_5)}.fyvr1oh{bottom:var(--seq-space-1_5)}.fyvr1ol{bottom:auto}.fyvr1op{left:var(--seq-space-0)}.fyvr1ot{left:var(--seq-space-1)}.fyvr1ox{left:var(--seq-space-2)}.fyvr1p1{left:var(--seq-space-3)}.fyvr1p5{left:var(--seq-space-4)}.fyvr1p9{left:var(--seq-space-5)}.fyvr1pd{left:var(--seq-space-6)}.fyvr1ph{left:var(--seq-space-7)}.fyvr1pl{left:var(--seq-space-8)}.fyvr1pp{left:var(--seq-space-9)}.fyvr1pt{left:var(--seq-space-10)}.fyvr1px{left:var(--seq-space-12)}.fyvr1q1{left:var(--seq-space-14)}.fyvr1q5{left:var(--seq-space-16)}.fyvr1q9{left:var(--seq-space-0_25)}.fyvr1qd{left:var(--seq-space-0_5)}.fyvr1qh{left:var(--seq-space-1_5)}.fyvr1ql{left:auto}.fyvr1qp{right:var(--seq-space-0)}.fyvr1qt{right:var(--seq-space-1)}.fyvr1qx{right:var(--seq-space-2)}.fyvr1r1{right:var(--seq-space-3)}.fyvr1r5{right:var(--seq-space-4)}.fyvr1r9{right:var(--seq-space-5)}.fyvr1rd{right:var(--seq-space-6)}.fyvr1rh{right:var(--seq-space-7)}.fyvr1rl{right:var(--seq-space-8)}.fyvr1rp{right:var(--seq-space-9)}.fyvr1rt{right:var(--seq-space-10)}.fyvr1rx{right:var(--seq-space-12)}.fyvr1s1{right:var(--seq-space-14)}.fyvr1s5{right:var(--seq-space-16)}.fyvr1s9{right:var(--seq-space-0_25)}.fyvr1sd{right:var(--seq-space-0_5)}.fyvr1sh{right:var(--seq-space-1_5)}.fyvr1sl{right:auto}.fyvr1sp{padding-top:var(--seq-space-0)}.fyvr1st{padding-top:var(--seq-space-1)}.fyvr1sx{padding-top:var(--seq-space-2)}.fyvr1t1{padding-top:var(--seq-space-3)}.fyvr1t5{padding-top:var(--seq-space-4)}.fyvr1t9{padding-top:var(--seq-space-5)}.fyvr1td{padding-top:var(--seq-space-6)}.fyvr1th{padding-top:var(--seq-space-7)}.fyvr1tl{padding-top:var(--seq-space-8)}.fyvr1tp{padding-top:var(--seq-space-9)}.fyvr1tt{padding-top:var(--seq-space-10)}.fyvr1tx{padding-top:var(--seq-space-12)}.fyvr1u1{padding-top:var(--seq-space-14)}.fyvr1u5{padding-top:var(--seq-space-16)}.fyvr1u9{padding-top:var(--seq-space-0_25)}.fyvr1ud{padding-top:var(--seq-space-0_5)}.fyvr1uh{padding-top:var(--seq-space-1_5)}.fyvr1ul{padding-bottom:var(--seq-space-0)}.fyvr1up{padding-bottom:var(--seq-space-1)}.fyvr1ut{padding-bottom:var(--seq-space-2)}.fyvr1ux{padding-bottom:var(--seq-space-3)}.fyvr1v1{padding-bottom:var(--seq-space-4)}.fyvr1v5{padding-bottom:var(--seq-space-5)}.fyvr1v9{padding-bottom:var(--seq-space-6)}.fyvr1vd{padding-bottom:var(--seq-space-7)}.fyvr1vh{padding-bottom:var(--seq-space-8)}.fyvr1vl{padding-bottom:var(--seq-space-9)}.fyvr1vp{padding-bottom:var(--seq-space-10)}.fyvr1vt{padding-bottom:var(--seq-space-12)}.fyvr1vx{padding-bottom:var(--seq-space-14)}.fyvr1w1{padding-bottom:var(--seq-space-16)}.fyvr1w5{padding-bottom:var(--seq-space-0_25)}.fyvr1w9{padding-bottom:var(--seq-space-0_5)}.fyvr1wd{padding-bottom:var(--seq-space-1_5)}.fyvr1wh{padding-left:var(--seq-space-0)}.fyvr1wl{padding-left:var(--seq-space-1)}.fyvr1wp{padding-left:var(--seq-space-2)}.fyvr1wt{padding-left:var(--seq-space-3)}.fyvr1wx{padding-left:var(--seq-space-4)}.fyvr1x1{padding-left:var(--seq-space-5)}.fyvr1x5{padding-left:var(--seq-space-6)}.fyvr1x9{padding-left:var(--seq-space-7)}.fyvr1xd{padding-left:var(--seq-space-8)}.fyvr1xh{padding-left:var(--seq-space-9)}.fyvr1xl{padding-left:var(--seq-space-10)}.fyvr1xp{padding-left:var(--seq-space-12)}.fyvr1xt{padding-left:var(--seq-space-14)}.fyvr1xx{padding-left:var(--seq-space-16)}.fyvr1y1{padding-left:var(--seq-space-0_25)}.fyvr1y5{padding-left:var(--seq-space-0_5)}.fyvr1y9{padding-left:var(--seq-space-1_5)}.fyvr1yd{padding-right:var(--seq-space-0)}.fyvr1yh{padding-right:var(--seq-space-1)}.fyvr1yl{padding-right:var(--seq-space-2)}.fyvr1yp{padding-right:var(--seq-space-3)}.fyvr1yt{padding-right:var(--seq-space-4)}.fyvr1yx{padding-right:var(--seq-space-5)}.fyvr1z1{padding-right:var(--seq-space-6)}.fyvr1z5{padding-right:var(--seq-space-7)}.fyvr1z9{padding-right:var(--seq-space-8)}.fyvr1zd{padding-right:var(--seq-space-9)}.fyvr1zh{padding-right:var(--seq-space-10)}.fyvr1zl{padding-right:var(--seq-space-12)}.fyvr1zp{padding-right:var(--seq-space-14)}.fyvr1zt{padding-right:var(--seq-space-16)}.fyvr1zx{padding-right:var(--seq-space-0_25)}.fyvr1101{padding-right:var(--seq-space-0_5)}.fyvr1105{padding-right:var(--seq-space-1_5)}.fyvr1109{margin-top:var(--seq-space-0)}.fyvr110d{margin-top:var(--seq-space-1)}.fyvr110h{margin-top:var(--seq-space-2)}.fyvr110l{margin-top:var(--seq-space-3)}.fyvr110p{margin-top:var(--seq-space-4)}.fyvr110t{margin-top:var(--seq-space-5)}.fyvr110x{margin-top:var(--seq-space-6)}.fyvr1111{margin-top:var(--seq-space-7)}.fyvr1115{margin-top:var(--seq-space-8)}.fyvr1119{margin-top:var(--seq-space-9)}.fyvr111d{margin-top:var(--seq-space-10)}.fyvr111h{margin-top:var(--seq-space-12)}.fyvr111l{margin-top:var(--seq-space-14)}.fyvr111p{margin-top:var(--seq-space-16)}.fyvr111t{margin-top:var(--seq-space-0_25)}.fyvr111x{margin-top:var(--seq-space-0_5)}.fyvr1121{margin-top:var(--seq-space-1_5)}.fyvr1125{margin-top:auto}.fyvr1129{margin-bottom:var(--seq-space-0)}.fyvr112d{margin-bottom:var(--seq-space-1)}.fyvr112h{margin-bottom:var(--seq-space-2)}.fyvr112l{margin-bottom:var(--seq-space-3)}.fyvr112p{margin-bottom:var(--seq-space-4)}.fyvr112t{margin-bottom:var(--seq-space-5)}.fyvr112x{margin-bottom:var(--seq-space-6)}.fyvr1131{margin-bottom:var(--seq-space-7)}.fyvr1135{margin-bottom:var(--seq-space-8)}.fyvr1139{margin-bottom:var(--seq-space-9)}.fyvr113d{margin-bottom:var(--seq-space-10)}.fyvr113h{margin-bottom:var(--seq-space-12)}.fyvr113l{margin-bottom:var(--seq-space-14)}.fyvr113p{margin-bottom:var(--seq-space-16)}.fyvr113t{margin-bottom:var(--seq-space-0_25)}.fyvr113x{margin-bottom:var(--seq-space-0_5)}.fyvr1141{margin-bottom:var(--seq-space-1_5)}.fyvr1145{margin-bottom:auto}.fyvr1149{margin-left:var(--seq-space-0)}.fyvr114d{margin-left:var(--seq-space-1)}.fyvr114h{margin-left:var(--seq-space-2)}.fyvr114l{margin-left:var(--seq-space-3)}.fyvr114p{margin-left:var(--seq-space-4)}.fyvr114t{margin-left:var(--seq-space-5)}.fyvr114x{margin-left:var(--seq-space-6)}.fyvr1151{margin-left:var(--seq-space-7)}.fyvr1155{margin-left:var(--seq-space-8)}.fyvr1159{margin-left:var(--seq-space-9)}.fyvr115d{margin-left:var(--seq-space-10)}.fyvr115h{margin-left:var(--seq-space-12)}.fyvr115l{margin-left:var(--seq-space-14)}.fyvr115p{margin-left:var(--seq-space-16)}.fyvr115t{margin-left:var(--seq-space-0_25)}.fyvr115x{margin-left:var(--seq-space-0_5)}.fyvr1161{margin-left:var(--seq-space-1_5)}.fyvr1165{margin-left:auto}.fyvr1169{margin-right:var(--seq-space-0)}.fyvr116d{margin-right:var(--seq-space-1)}.fyvr116h{margin-right:var(--seq-space-2)}.fyvr116l{margin-right:var(--seq-space-3)}.fyvr116p{margin-right:var(--seq-space-4)}.fyvr116t{margin-right:var(--seq-space-5)}.fyvr116x{margin-right:var(--seq-space-6)}.fyvr1171{margin-right:var(--seq-space-7)}.fyvr1175{margin-right:var(--seq-space-8)}.fyvr1179{margin-right:var(--seq-space-9)}.fyvr117d{margin-right:var(--seq-space-10)}.fyvr117h{margin-right:var(--seq-space-12)}.fyvr117l{margin-right:var(--seq-space-14)}.fyvr117p{margin-right:var(--seq-space-16)}.fyvr117t{margin-right:var(--seq-space-0_25)}.fyvr117x{margin-right:var(--seq-space-0_5)}.fyvr1181{margin-right:var(--seq-space-1_5)}.fyvr1185{margin-right:auto}.fyvr1189{gap:var(--seq-space-0)}.fyvr118d{gap:var(--seq-space-1)}.fyvr118h{gap:var(--seq-space-2)}.fyvr118l{gap:var(--seq-space-3)}.fyvr118p{gap:var(--seq-space-4)}.fyvr118t{gap:var(--seq-space-5)}.fyvr118x{gap:var(--seq-space-6)}.fyvr1191{gap:var(--seq-space-7)}.fyvr1195{gap:var(--seq-space-8)}.fyvr1199{gap:var(--seq-space-9)}.fyvr119d{gap:var(--seq-space-10)}.fyvr119h{gap:var(--seq-space-12)}.fyvr119l{gap:var(--seq-space-14)}.fyvr119p{gap:var(--seq-space-16)}.fyvr119t{gap:var(--seq-space-0_25)}.fyvr119x{gap:var(--seq-space-0_5)}.fyvr11a1{gap:var(--seq-space-1_5)}.fyvr11a5{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a9{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ad{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ah{border-left-width:var(--seq-border-widths-none)}.fyvr11al{border-left-width:var(--seq-border-widths-thin)}.fyvr11ap{border-left-width:var(--seq-border-widths-thick)}.fyvr11at{border-right-width:var(--seq-border-widths-none)}.fyvr11ax{border-right-width:var(--seq-border-widths-thin)}.fyvr11b1{border-right-width:var(--seq-border-widths-thick)}.fyvr11b5{border-top-width:var(--seq-border-widths-none)}.fyvr11b9{border-top-width:var(--seq-border-widths-thin)}.fyvr11bd{border-top-width:var(--seq-border-widths-thick)}.fyvr11bh{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bl{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bp{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bt{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bx{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c1{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c5{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c9{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cd{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ch{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cl{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cp{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11ct{border-top-left-radius:var(--seq-radii-none)}.fyvr11cx{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d1{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d5{border-top-left-radius:var(--seq-radii-md)}.fyvr11d9{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dd{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dh{border-top-right-radius:var(--seq-radii-none)}.fyvr11dl{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dp{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dt{border-top-right-radius:var(--seq-radii-md)}.fyvr11dx{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e1{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e5{font-size:var(--seq-font-sizes-inherit)}.fyvr11e9{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ed{font-size:var(--seq-font-sizes-small)}.fyvr11eh{font-size:var(--seq-font-sizes-normal)}.fyvr11el{font-size:var(--seq-font-sizes-medium)}.fyvr11ep{font-size:var(--seq-font-sizes-large)}.fyvr11et{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ex{font-weight:var(--seq-font-weights-inherit)}.fyvr11f1{font-weight:var(--seq-font-weights-normal)}.fyvr11f5{font-weight:var(--seq-font-weights-medium)}.fyvr11f9{font-weight:var(--seq-font-weights-semibold)}.fyvr11fd{font-weight:var(--seq-font-weights-bold)}.fyvr11fh{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fl{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fp{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11ft{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fx{line-height:var(--seq-line-heights-4)}.fyvr11g1{line-height:var(--seq-line-heights-5)}.fyvr11g5{line-height:var(--seq-line-heights-6)}.fyvr11g9{line-height:var(--seq-line-heights-7)}.fyvr11gd{line-height:var(--seq-line-heights-9)}.fyvr11gh{line-height:var(--seq-line-heights-inherit)}.fyvr11gl{text-align:center}.fyvr11gp{text-align:left}.fyvr11gt{text-align:right}.fyvr11gx{display:block}.fyvr11h1{display:flex}.fyvr11h5{display:grid}.fyvr11h9{display:inline-block}.fyvr11hd{display:inline-flex}.fyvr11hh{display:none}.fyvr11hl{display:contents}.fyvr11hp{position:absolute}.fyvr11ht{position:fixed}.fyvr11hx{position:relative}.fyvr11i1{position:sticky}.fyvr11i5{flex-direction:column}.fyvr11i9{flex-direction:column-reverse}.fyvr11id{flex-direction:row}.fyvr11ih{flex-direction:row-reverse}.fyvr11il{flex-shrink:0}.fyvr11ip{flex-shrink:1}.fyvr11it{flex-grow:0}.fyvr11ix{flex-grow:1}.fyvr11j1{flex-wrap:nowrap}.fyvr11j5{flex-wrap:wrap}.fyvr11j9{flex-wrap:wrap-reverse}.fyvr11jd{justify-content:flex-start}.fyvr11jh{justify-content:center}.fyvr11jl{justify-content:flex-end}.fyvr11jp{justify-content:stretch}.fyvr11jt{justify-content:space-around}.fyvr11jx{justify-content:space-between}.fyvr11k1{justify-content:space-evenly}.fyvr11k5{justify-self:flex-start}.fyvr11k9{justify-self:center}.fyvr11kd{justify-self:flex-end}.fyvr11kh{justify-self:stretch}.fyvr11kl{align-items:flex-start}.fyvr11kp{align-items:center}.fyvr11kt{align-items:flex-end}.fyvr11kx{align-items:stretch}.fyvr11l1{align-items:baseline}.fyvr11l5{align-self:flex-start}.fyvr11l9{align-self:center}.fyvr11ld{align-self:flex-end}.fyvr11lh{align-self:stretch}.fyvr11ll{align-self:baseline}.fyvr11lp{overflow-x:auto}.fyvr11lt{overflow-x:hidden}.fyvr11lx{overflow-x:scroll}.fyvr11m1{overflow-x:visible}.fyvr11m5{overflow-y:auto}.fyvr11m9{overflow-y:hidden}.fyvr11md{overflow-y:scroll}.fyvr11mh{overflow-y:visible}.fyvr11ml{visibility:hidden}.fyvr11mp{visibility:visible}}@media (min-width: 769px){.fyvr12{width:var(--seq-space-0)}.fyvr16{width:var(--seq-space-1)}.fyvr1a{width:var(--seq-space-2)}.fyvr1e{width:var(--seq-space-3)}.fyvr1i{width:var(--seq-space-4)}.fyvr1m{width:var(--seq-space-5)}.fyvr1q{width:var(--seq-space-6)}.fyvr1u{width:var(--seq-space-7)}.fyvr1y{width:var(--seq-space-8)}.fyvr112{width:var(--seq-space-9)}.fyvr116{width:var(--seq-space-10)}.fyvr11a{width:var(--seq-space-12)}.fyvr11e{width:var(--seq-space-14)}.fyvr11i{width:var(--seq-space-16)}.fyvr11m{width:var(--seq-space-0_25)}.fyvr11q{width:var(--seq-space-0_5)}.fyvr11u{width:var(--seq-space-1_5)}.fyvr11y{width:0}.fyvr122{width:1px}.fyvr126{width:auto}.fyvr12a{width:100%}.fyvr12e{width:50%}.fyvr12i{width:33.33333%}.fyvr12m{width:66.66667%}.fyvr12q{width:25%}.fyvr12u{width:75%}.fyvr12y{width:-moz-fit-content;width:fit-content}.fyvr132{width:-moz-max-content;width:max-content}.fyvr136{width:-moz-min-content;width:min-content}.fyvr13a{width:100vw}.fyvr13e{width:100vh}.fyvr13i{height:var(--seq-space-0)}.fyvr13m{height:var(--seq-space-1)}.fyvr13q{height:var(--seq-space-2)}.fyvr13u{height:var(--seq-space-3)}.fyvr13y{height:var(--seq-space-4)}.fyvr142{height:var(--seq-space-5)}.fyvr146{height:var(--seq-space-6)}.fyvr14a{height:var(--seq-space-7)}.fyvr14e{height:var(--seq-space-8)}.fyvr14i{height:var(--seq-space-9)}.fyvr14m{height:var(--seq-space-10)}.fyvr14q{height:var(--seq-space-12)}.fyvr14u{height:var(--seq-space-14)}.fyvr14y{height:var(--seq-space-16)}.fyvr152{height:var(--seq-space-0_25)}.fyvr156{height:var(--seq-space-0_5)}.fyvr15a{height:var(--seq-space-1_5)}.fyvr15e{height:0}.fyvr15i{height:1px}.fyvr15m{height:auto}.fyvr15q{height:100%}.fyvr15u{height:50%}.fyvr15y{height:33.33333%}.fyvr162{height:66.66667%}.fyvr166{height:25%}.fyvr16a{height:75%}.fyvr16e{height:-moz-fit-content;height:fit-content}.fyvr16i{height:-moz-max-content;height:max-content}.fyvr16m{height:-moz-min-content;height:min-content}.fyvr16q{height:100vw}.fyvr16u{height:100vh}.fyvr16y{max-width:var(--seq-space-0)}.fyvr172{max-width:var(--seq-space-1)}.fyvr176{max-width:var(--seq-space-2)}.fyvr17a{max-width:var(--seq-space-3)}.fyvr17e{max-width:var(--seq-space-4)}.fyvr17i{max-width:var(--seq-space-5)}.fyvr17m{max-width:var(--seq-space-6)}.fyvr17q{max-width:var(--seq-space-7)}.fyvr17u{max-width:var(--seq-space-8)}.fyvr17y{max-width:var(--seq-space-9)}.fyvr182{max-width:var(--seq-space-10)}.fyvr186{max-width:var(--seq-space-12)}.fyvr18a{max-width:var(--seq-space-14)}.fyvr18e{max-width:var(--seq-space-16)}.fyvr18i{max-width:var(--seq-space-0_25)}.fyvr18m{max-width:var(--seq-space-0_5)}.fyvr18q{max-width:var(--seq-space-1_5)}.fyvr18u{max-width:0}.fyvr18y{max-width:1px}.fyvr192{max-width:auto}.fyvr196{max-width:100%}.fyvr19a{max-width:50%}.fyvr19e{max-width:33.33333%}.fyvr19i{max-width:66.66667%}.fyvr19m{max-width:25%}.fyvr19q{max-width:75%}.fyvr19u{max-width:-moz-fit-content;max-width:fit-content}.fyvr19y{max-width:-moz-max-content;max-width:max-content}.fyvr1a2{max-width:-moz-min-content;max-width:min-content}.fyvr1a6{max-width:100vw}.fyvr1aa{max-width:100vh}.fyvr1ae{max-height:var(--seq-space-0)}.fyvr1ai{max-height:var(--seq-space-1)}.fyvr1am{max-height:var(--seq-space-2)}.fyvr1aq{max-height:var(--seq-space-3)}.fyvr1au{max-height:var(--seq-space-4)}.fyvr1ay{max-height:var(--seq-space-5)}.fyvr1b2{max-height:var(--seq-space-6)}.fyvr1b6{max-height:var(--seq-space-7)}.fyvr1ba{max-height:var(--seq-space-8)}.fyvr1be{max-height:var(--seq-space-9)}.fyvr1bi{max-height:var(--seq-space-10)}.fyvr1bm{max-height:var(--seq-space-12)}.fyvr1bq{max-height:var(--seq-space-14)}.fyvr1bu{max-height:var(--seq-space-16)}.fyvr1by{max-height:var(--seq-space-0_25)}.fyvr1c2{max-height:var(--seq-space-0_5)}.fyvr1c6{max-height:var(--seq-space-1_5)}.fyvr1ca{max-height:0}.fyvr1ce{max-height:1px}.fyvr1ci{max-height:auto}.fyvr1cm{max-height:100%}.fyvr1cq{max-height:50%}.fyvr1cu{max-height:33.33333%}.fyvr1cy{max-height:66.66667%}.fyvr1d2{max-height:25%}.fyvr1d6{max-height:75%}.fyvr1da{max-height:-moz-fit-content;max-height:fit-content}.fyvr1de{max-height:-moz-max-content;max-height:max-content}.fyvr1di{max-height:-moz-min-content;max-height:min-content}.fyvr1dm{max-height:100vw}.fyvr1dq{max-height:100vh}.fyvr1du{min-width:var(--seq-space-0)}.fyvr1dy{min-width:var(--seq-space-1)}.fyvr1e2{min-width:var(--seq-space-2)}.fyvr1e6{min-width:var(--seq-space-3)}.fyvr1ea{min-width:var(--seq-space-4)}.fyvr1ee{min-width:var(--seq-space-5)}.fyvr1ei{min-width:var(--seq-space-6)}.fyvr1em{min-width:var(--seq-space-7)}.fyvr1eq{min-width:var(--seq-space-8)}.fyvr1eu{min-width:var(--seq-space-9)}.fyvr1ey{min-width:var(--seq-space-10)}.fyvr1f2{min-width:var(--seq-space-12)}.fyvr1f6{min-width:var(--seq-space-14)}.fyvr1fa{min-width:var(--seq-space-16)}.fyvr1fe{min-width:var(--seq-space-0_25)}.fyvr1fi{min-width:var(--seq-space-0_5)}.fyvr1fm{min-width:var(--seq-space-1_5)}.fyvr1fq{min-width:0}.fyvr1fu{min-width:1px}.fyvr1fy{min-width:auto}.fyvr1g2{min-width:100%}.fyvr1g6{min-width:50%}.fyvr1ga{min-width:33.33333%}.fyvr1ge{min-width:66.66667%}.fyvr1gi{min-width:25%}.fyvr1gm{min-width:75%}.fyvr1gq{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gu{min-width:-moz-max-content;min-width:max-content}.fyvr1gy{min-width:-moz-min-content;min-width:min-content}.fyvr1h2{min-width:100vw}.fyvr1h6{min-width:100vh}.fyvr1ha{min-height:var(--seq-space-0)}.fyvr1he{min-height:var(--seq-space-1)}.fyvr1hi{min-height:var(--seq-space-2)}.fyvr1hm{min-height:var(--seq-space-3)}.fyvr1hq{min-height:var(--seq-space-4)}.fyvr1hu{min-height:var(--seq-space-5)}.fyvr1hy{min-height:var(--seq-space-6)}.fyvr1i2{min-height:var(--seq-space-7)}.fyvr1i6{min-height:var(--seq-space-8)}.fyvr1ia{min-height:var(--seq-space-9)}.fyvr1ie{min-height:var(--seq-space-10)}.fyvr1ii{min-height:var(--seq-space-12)}.fyvr1im{min-height:var(--seq-space-14)}.fyvr1iq{min-height:var(--seq-space-16)}.fyvr1iu{min-height:var(--seq-space-0_25)}.fyvr1iy{min-height:var(--seq-space-0_5)}.fyvr1j2{min-height:var(--seq-space-1_5)}.fyvr1j6{min-height:0}.fyvr1ja{min-height:1px}.fyvr1je{min-height:auto}.fyvr1ji{min-height:100%}.fyvr1jm{min-height:50%}.fyvr1jq{min-height:33.33333%}.fyvr1ju{min-height:66.66667%}.fyvr1jy{min-height:25%}.fyvr1k2{min-height:75%}.fyvr1k6{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ka{min-height:-moz-max-content;min-height:max-content}.fyvr1ke{min-height:-moz-min-content;min-height:min-content}.fyvr1ki{min-height:100vw}.fyvr1km{min-height:100vh}.fyvr1kq{top:var(--seq-space-0)}.fyvr1ku{top:var(--seq-space-1)}.fyvr1ky{top:var(--seq-space-2)}.fyvr1l2{top:var(--seq-space-3)}.fyvr1l6{top:var(--seq-space-4)}.fyvr1la{top:var(--seq-space-5)}.fyvr1le{top:var(--seq-space-6)}.fyvr1li{top:var(--seq-space-7)}.fyvr1lm{top:var(--seq-space-8)}.fyvr1lq{top:var(--seq-space-9)}.fyvr1lu{top:var(--seq-space-10)}.fyvr1ly{top:var(--seq-space-12)}.fyvr1m2{top:var(--seq-space-14)}.fyvr1m6{top:var(--seq-space-16)}.fyvr1ma{top:var(--seq-space-0_25)}.fyvr1me{top:var(--seq-space-0_5)}.fyvr1mi{top:var(--seq-space-1_5)}.fyvr1mm{top:auto}.fyvr1mq{bottom:var(--seq-space-0)}.fyvr1mu{bottom:var(--seq-space-1)}.fyvr1my{bottom:var(--seq-space-2)}.fyvr1n2{bottom:var(--seq-space-3)}.fyvr1n6{bottom:var(--seq-space-4)}.fyvr1na{bottom:var(--seq-space-5)}.fyvr1ne{bottom:var(--seq-space-6)}.fyvr1ni{bottom:var(--seq-space-7)}.fyvr1nm{bottom:var(--seq-space-8)}.fyvr1nq{bottom:var(--seq-space-9)}.fyvr1nu{bottom:var(--seq-space-10)}.fyvr1ny{bottom:var(--seq-space-12)}.fyvr1o2{bottom:var(--seq-space-14)}.fyvr1o6{bottom:var(--seq-space-16)}.fyvr1oa{bottom:var(--seq-space-0_25)}.fyvr1oe{bottom:var(--seq-space-0_5)}.fyvr1oi{bottom:var(--seq-space-1_5)}.fyvr1om{bottom:auto}.fyvr1oq{left:var(--seq-space-0)}.fyvr1ou{left:var(--seq-space-1)}.fyvr1oy{left:var(--seq-space-2)}.fyvr1p2{left:var(--seq-space-3)}.fyvr1p6{left:var(--seq-space-4)}.fyvr1pa{left:var(--seq-space-5)}.fyvr1pe{left:var(--seq-space-6)}.fyvr1pi{left:var(--seq-space-7)}.fyvr1pm{left:var(--seq-space-8)}.fyvr1pq{left:var(--seq-space-9)}.fyvr1pu{left:var(--seq-space-10)}.fyvr1py{left:var(--seq-space-12)}.fyvr1q2{left:var(--seq-space-14)}.fyvr1q6{left:var(--seq-space-16)}.fyvr1qa{left:var(--seq-space-0_25)}.fyvr1qe{left:var(--seq-space-0_5)}.fyvr1qi{left:var(--seq-space-1_5)}.fyvr1qm{left:auto}.fyvr1qq{right:var(--seq-space-0)}.fyvr1qu{right:var(--seq-space-1)}.fyvr1qy{right:var(--seq-space-2)}.fyvr1r2{right:var(--seq-space-3)}.fyvr1r6{right:var(--seq-space-4)}.fyvr1ra{right:var(--seq-space-5)}.fyvr1re{right:var(--seq-space-6)}.fyvr1ri{right:var(--seq-space-7)}.fyvr1rm{right:var(--seq-space-8)}.fyvr1rq{right:var(--seq-space-9)}.fyvr1ru{right:var(--seq-space-10)}.fyvr1ry{right:var(--seq-space-12)}.fyvr1s2{right:var(--seq-space-14)}.fyvr1s6{right:var(--seq-space-16)}.fyvr1sa{right:var(--seq-space-0_25)}.fyvr1se{right:var(--seq-space-0_5)}.fyvr1si{right:var(--seq-space-1_5)}.fyvr1sm{right:auto}.fyvr1sq{padding-top:var(--seq-space-0)}.fyvr1su{padding-top:var(--seq-space-1)}.fyvr1sy{padding-top:var(--seq-space-2)}.fyvr1t2{padding-top:var(--seq-space-3)}.fyvr1t6{padding-top:var(--seq-space-4)}.fyvr1ta{padding-top:var(--seq-space-5)}.fyvr1te{padding-top:var(--seq-space-6)}.fyvr1ti{padding-top:var(--seq-space-7)}.fyvr1tm{padding-top:var(--seq-space-8)}.fyvr1tq{padding-top:var(--seq-space-9)}.fyvr1tu{padding-top:var(--seq-space-10)}.fyvr1ty{padding-top:var(--seq-space-12)}.fyvr1u2{padding-top:var(--seq-space-14)}.fyvr1u6{padding-top:var(--seq-space-16)}.fyvr1ua{padding-top:var(--seq-space-0_25)}.fyvr1ue{padding-top:var(--seq-space-0_5)}.fyvr1ui{padding-top:var(--seq-space-1_5)}.fyvr1um{padding-bottom:var(--seq-space-0)}.fyvr1uq{padding-bottom:var(--seq-space-1)}.fyvr1uu{padding-bottom:var(--seq-space-2)}.fyvr1uy{padding-bottom:var(--seq-space-3)}.fyvr1v2{padding-bottom:var(--seq-space-4)}.fyvr1v6{padding-bottom:var(--seq-space-5)}.fyvr1va{padding-bottom:var(--seq-space-6)}.fyvr1ve{padding-bottom:var(--seq-space-7)}.fyvr1vi{padding-bottom:var(--seq-space-8)}.fyvr1vm{padding-bottom:var(--seq-space-9)}.fyvr1vq{padding-bottom:var(--seq-space-10)}.fyvr1vu{padding-bottom:var(--seq-space-12)}.fyvr1vy{padding-bottom:var(--seq-space-14)}.fyvr1w2{padding-bottom:var(--seq-space-16)}.fyvr1w6{padding-bottom:var(--seq-space-0_25)}.fyvr1wa{padding-bottom:var(--seq-space-0_5)}.fyvr1we{padding-bottom:var(--seq-space-1_5)}.fyvr1wi{padding-left:var(--seq-space-0)}.fyvr1wm{padding-left:var(--seq-space-1)}.fyvr1wq{padding-left:var(--seq-space-2)}.fyvr1wu{padding-left:var(--seq-space-3)}.fyvr1wy{padding-left:var(--seq-space-4)}.fyvr1x2{padding-left:var(--seq-space-5)}.fyvr1x6{padding-left:var(--seq-space-6)}.fyvr1xa{padding-left:var(--seq-space-7)}.fyvr1xe{padding-left:var(--seq-space-8)}.fyvr1xi{padding-left:var(--seq-space-9)}.fyvr1xm{padding-left:var(--seq-space-10)}.fyvr1xq{padding-left:var(--seq-space-12)}.fyvr1xu{padding-left:var(--seq-space-14)}.fyvr1xy{padding-left:var(--seq-space-16)}.fyvr1y2{padding-left:var(--seq-space-0_25)}.fyvr1y6{padding-left:var(--seq-space-0_5)}.fyvr1ya{padding-left:var(--seq-space-1_5)}.fyvr1ye{padding-right:var(--seq-space-0)}.fyvr1yi{padding-right:var(--seq-space-1)}.fyvr1ym{padding-right:var(--seq-space-2)}.fyvr1yq{padding-right:var(--seq-space-3)}.fyvr1yu{padding-right:var(--seq-space-4)}.fyvr1yy{padding-right:var(--seq-space-5)}.fyvr1z2{padding-right:var(--seq-space-6)}.fyvr1z6{padding-right:var(--seq-space-7)}.fyvr1za{padding-right:var(--seq-space-8)}.fyvr1ze{padding-right:var(--seq-space-9)}.fyvr1zi{padding-right:var(--seq-space-10)}.fyvr1zm{padding-right:var(--seq-space-12)}.fyvr1zq{padding-right:var(--seq-space-14)}.fyvr1zu{padding-right:var(--seq-space-16)}.fyvr1zy{padding-right:var(--seq-space-0_25)}.fyvr1102{padding-right:var(--seq-space-0_5)}.fyvr1106{padding-right:var(--seq-space-1_5)}.fyvr110a{margin-top:var(--seq-space-0)}.fyvr110e{margin-top:var(--seq-space-1)}.fyvr110i{margin-top:var(--seq-space-2)}.fyvr110m{margin-top:var(--seq-space-3)}.fyvr110q{margin-top:var(--seq-space-4)}.fyvr110u{margin-top:var(--seq-space-5)}.fyvr110y{margin-top:var(--seq-space-6)}.fyvr1112{margin-top:var(--seq-space-7)}.fyvr1116{margin-top:var(--seq-space-8)}.fyvr111a{margin-top:var(--seq-space-9)}.fyvr111e{margin-top:var(--seq-space-10)}.fyvr111i{margin-top:var(--seq-space-12)}.fyvr111m{margin-top:var(--seq-space-14)}.fyvr111q{margin-top:var(--seq-space-16)}.fyvr111u{margin-top:var(--seq-space-0_25)}.fyvr111y{margin-top:var(--seq-space-0_5)}.fyvr1122{margin-top:var(--seq-space-1_5)}.fyvr1126{margin-top:auto}.fyvr112a{margin-bottom:var(--seq-space-0)}.fyvr112e{margin-bottom:var(--seq-space-1)}.fyvr112i{margin-bottom:var(--seq-space-2)}.fyvr112m{margin-bottom:var(--seq-space-3)}.fyvr112q{margin-bottom:var(--seq-space-4)}.fyvr112u{margin-bottom:var(--seq-space-5)}.fyvr112y{margin-bottom:var(--seq-space-6)}.fyvr1132{margin-bottom:var(--seq-space-7)}.fyvr1136{margin-bottom:var(--seq-space-8)}.fyvr113a{margin-bottom:var(--seq-space-9)}.fyvr113e{margin-bottom:var(--seq-space-10)}.fyvr113i{margin-bottom:var(--seq-space-12)}.fyvr113m{margin-bottom:var(--seq-space-14)}.fyvr113q{margin-bottom:var(--seq-space-16)}.fyvr113u{margin-bottom:var(--seq-space-0_25)}.fyvr113y{margin-bottom:var(--seq-space-0_5)}.fyvr1142{margin-bottom:var(--seq-space-1_5)}.fyvr1146{margin-bottom:auto}.fyvr114a{margin-left:var(--seq-space-0)}.fyvr114e{margin-left:var(--seq-space-1)}.fyvr114i{margin-left:var(--seq-space-2)}.fyvr114m{margin-left:var(--seq-space-3)}.fyvr114q{margin-left:var(--seq-space-4)}.fyvr114u{margin-left:var(--seq-space-5)}.fyvr114y{margin-left:var(--seq-space-6)}.fyvr1152{margin-left:var(--seq-space-7)}.fyvr1156{margin-left:var(--seq-space-8)}.fyvr115a{margin-left:var(--seq-space-9)}.fyvr115e{margin-left:var(--seq-space-10)}.fyvr115i{margin-left:var(--seq-space-12)}.fyvr115m{margin-left:var(--seq-space-14)}.fyvr115q{margin-left:var(--seq-space-16)}.fyvr115u{margin-left:var(--seq-space-0_25)}.fyvr115y{margin-left:var(--seq-space-0_5)}.fyvr1162{margin-left:var(--seq-space-1_5)}.fyvr1166{margin-left:auto}.fyvr116a{margin-right:var(--seq-space-0)}.fyvr116e{margin-right:var(--seq-space-1)}.fyvr116i{margin-right:var(--seq-space-2)}.fyvr116m{margin-right:var(--seq-space-3)}.fyvr116q{margin-right:var(--seq-space-4)}.fyvr116u{margin-right:var(--seq-space-5)}.fyvr116y{margin-right:var(--seq-space-6)}.fyvr1172{margin-right:var(--seq-space-7)}.fyvr1176{margin-right:var(--seq-space-8)}.fyvr117a{margin-right:var(--seq-space-9)}.fyvr117e{margin-right:var(--seq-space-10)}.fyvr117i{margin-right:var(--seq-space-12)}.fyvr117m{margin-right:var(--seq-space-14)}.fyvr117q{margin-right:var(--seq-space-16)}.fyvr117u{margin-right:var(--seq-space-0_25)}.fyvr117y{margin-right:var(--seq-space-0_5)}.fyvr1182{margin-right:var(--seq-space-1_5)}.fyvr1186{margin-right:auto}.fyvr118a{gap:var(--seq-space-0)}.fyvr118e{gap:var(--seq-space-1)}.fyvr118i{gap:var(--seq-space-2)}.fyvr118m{gap:var(--seq-space-3)}.fyvr118q{gap:var(--seq-space-4)}.fyvr118u{gap:var(--seq-space-5)}.fyvr118y{gap:var(--seq-space-6)}.fyvr1192{gap:var(--seq-space-7)}.fyvr1196{gap:var(--seq-space-8)}.fyvr119a{gap:var(--seq-space-9)}.fyvr119e{gap:var(--seq-space-10)}.fyvr119i{gap:var(--seq-space-12)}.fyvr119m{gap:var(--seq-space-14)}.fyvr119q{gap:var(--seq-space-16)}.fyvr119u{gap:var(--seq-space-0_25)}.fyvr119y{gap:var(--seq-space-0_5)}.fyvr11a2{gap:var(--seq-space-1_5)}.fyvr11a6{border-bottom-width:var(--seq-border-widths-none)}.fyvr11aa{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ae{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ai{border-left-width:var(--seq-border-widths-none)}.fyvr11am{border-left-width:var(--seq-border-widths-thin)}.fyvr11aq{border-left-width:var(--seq-border-widths-thick)}.fyvr11au{border-right-width:var(--seq-border-widths-none)}.fyvr11ay{border-right-width:var(--seq-border-widths-thin)}.fyvr11b2{border-right-width:var(--seq-border-widths-thick)}.fyvr11b6{border-top-width:var(--seq-border-widths-none)}.fyvr11ba{border-top-width:var(--seq-border-widths-thin)}.fyvr11be{border-top-width:var(--seq-border-widths-thick)}.fyvr11bi{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bm{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bq{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bu{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11by{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c2{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c6{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11ca{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11ce{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ci{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cm{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cq{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cu{border-top-left-radius:var(--seq-radii-none)}.fyvr11cy{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d2{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d6{border-top-left-radius:var(--seq-radii-md)}.fyvr11da{border-top-left-radius:var(--seq-radii-lg)}.fyvr11de{border-top-left-radius:var(--seq-radii-circle)}.fyvr11di{border-top-right-radius:var(--seq-radii-none)}.fyvr11dm{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dq{border-top-right-radius:var(--seq-radii-sm)}.fyvr11du{border-top-right-radius:var(--seq-radii-md)}.fyvr11dy{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e2{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e6{font-size:var(--seq-font-sizes-inherit)}.fyvr11ea{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ee{font-size:var(--seq-font-sizes-small)}.fyvr11ei{font-size:var(--seq-font-sizes-normal)}.fyvr11em{font-size:var(--seq-font-sizes-medium)}.fyvr11eq{font-size:var(--seq-font-sizes-large)}.fyvr11eu{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ey{font-weight:var(--seq-font-weights-inherit)}.fyvr11f2{font-weight:var(--seq-font-weights-normal)}.fyvr11f6{font-weight:var(--seq-font-weights-medium)}.fyvr11fa{font-weight:var(--seq-font-weights-semibold)}.fyvr11fe{font-weight:var(--seq-font-weights-bold)}.fyvr11fi{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fm{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fq{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fu{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fy{line-height:var(--seq-line-heights-4)}.fyvr11g2{line-height:var(--seq-line-heights-5)}.fyvr11g6{line-height:var(--seq-line-heights-6)}.fyvr11ga{line-height:var(--seq-line-heights-7)}.fyvr11ge{line-height:var(--seq-line-heights-9)}.fyvr11gi{line-height:var(--seq-line-heights-inherit)}.fyvr11gm{text-align:center}.fyvr11gq{text-align:left}.fyvr11gu{text-align:right}.fyvr11gy{display:block}.fyvr11h2{display:flex}.fyvr11h6{display:grid}.fyvr11ha{display:inline-block}.fyvr11he{display:inline-flex}.fyvr11hi{display:none}.fyvr11hm{display:contents}.fyvr11hq{position:absolute}.fyvr11hu{position:fixed}.fyvr11hy{position:relative}.fyvr11i2{position:sticky}.fyvr11i6{flex-direction:column}.fyvr11ia{flex-direction:column-reverse}.fyvr11ie{flex-direction:row}.fyvr11ii{flex-direction:row-reverse}.fyvr11im{flex-shrink:0}.fyvr11iq{flex-shrink:1}.fyvr11iu{flex-grow:0}.fyvr11iy{flex-grow:1}.fyvr11j2{flex-wrap:nowrap}.fyvr11j6{flex-wrap:wrap}.fyvr11ja{flex-wrap:wrap-reverse}.fyvr11je{justify-content:flex-start}.fyvr11ji{justify-content:center}.fyvr11jm{justify-content:flex-end}.fyvr11jq{justify-content:stretch}.fyvr11ju{justify-content:space-around}.fyvr11jy{justify-content:space-between}.fyvr11k2{justify-content:space-evenly}.fyvr11k6{justify-self:flex-start}.fyvr11ka{justify-self:center}.fyvr11ke{justify-self:flex-end}.fyvr11ki{justify-self:stretch}.fyvr11km{align-items:flex-start}.fyvr11kq{align-items:center}.fyvr11ku{align-items:flex-end}.fyvr11ky{align-items:stretch}.fyvr11l2{align-items:baseline}.fyvr11l6{align-self:flex-start}.fyvr11la{align-self:center}.fyvr11le{align-self:flex-end}.fyvr11li{align-self:stretch}.fyvr11lm{align-self:baseline}.fyvr11lq{overflow-x:auto}.fyvr11lu{overflow-x:hidden}.fyvr11ly{overflow-x:scroll}.fyvr11m2{overflow-x:visible}.fyvr11m6{overflow-y:auto}.fyvr11ma{overflow-y:hidden}.fyvr11me{overflow-y:scroll}.fyvr11mi{overflow-y:visible}.fyvr11mm{visibility:hidden}.fyvr11mq{visibility:visible}}@media (min-width: 1281px){.fyvr13{width:var(--seq-space-0)}.fyvr17{width:var(--seq-space-1)}.fyvr1b{width:var(--seq-space-2)}.fyvr1f{width:var(--seq-space-3)}.fyvr1j{width:var(--seq-space-4)}.fyvr1n{width:var(--seq-space-5)}.fyvr1r{width:var(--seq-space-6)}.fyvr1v{width:var(--seq-space-7)}.fyvr1z{width:var(--seq-space-8)}.fyvr113{width:var(--seq-space-9)}.fyvr117{width:var(--seq-space-10)}.fyvr11b{width:var(--seq-space-12)}.fyvr11f{width:var(--seq-space-14)}.fyvr11j{width:var(--seq-space-16)}.fyvr11n{width:var(--seq-space-0_25)}.fyvr11r{width:var(--seq-space-0_5)}.fyvr11v{width:var(--seq-space-1_5)}.fyvr11z{width:0}.fyvr123{width:1px}.fyvr127{width:auto}.fyvr12b{width:100%}.fyvr12f{width:50%}.fyvr12j{width:33.33333%}.fyvr12n{width:66.66667%}.fyvr12r{width:25%}.fyvr12v{width:75%}.fyvr12z{width:-moz-fit-content;width:fit-content}.fyvr133{width:-moz-max-content;width:max-content}.fyvr137{width:-moz-min-content;width:min-content}.fyvr13b{width:100vw}.fyvr13f{width:100vh}.fyvr13j{height:var(--seq-space-0)}.fyvr13n{height:var(--seq-space-1)}.fyvr13r{height:var(--seq-space-2)}.fyvr13v{height:var(--seq-space-3)}.fyvr13z{height:var(--seq-space-4)}.fyvr143{height:var(--seq-space-5)}.fyvr147{height:var(--seq-space-6)}.fyvr14b{height:var(--seq-space-7)}.fyvr14f{height:var(--seq-space-8)}.fyvr14j{height:var(--seq-space-9)}.fyvr14n{height:var(--seq-space-10)}.fyvr14r{height:var(--seq-space-12)}.fyvr14v{height:var(--seq-space-14)}.fyvr14z{height:var(--seq-space-16)}.fyvr153{height:var(--seq-space-0_25)}.fyvr157{height:var(--seq-space-0_5)}.fyvr15b{height:var(--seq-space-1_5)}.fyvr15f{height:0}.fyvr15j{height:1px}.fyvr15n{height:auto}.fyvr15r{height:100%}.fyvr15v{height:50%}.fyvr15z{height:33.33333%}.fyvr163{height:66.66667%}.fyvr167{height:25%}.fyvr16b{height:75%}.fyvr16f{height:-moz-fit-content;height:fit-content}.fyvr16j{height:-moz-max-content;height:max-content}.fyvr16n{height:-moz-min-content;height:min-content}.fyvr16r{height:100vw}.fyvr16v{height:100vh}.fyvr16z{max-width:var(--seq-space-0)}.fyvr173{max-width:var(--seq-space-1)}.fyvr177{max-width:var(--seq-space-2)}.fyvr17b{max-width:var(--seq-space-3)}.fyvr17f{max-width:var(--seq-space-4)}.fyvr17j{max-width:var(--seq-space-5)}.fyvr17n{max-width:var(--seq-space-6)}.fyvr17r{max-width:var(--seq-space-7)}.fyvr17v{max-width:var(--seq-space-8)}.fyvr17z{max-width:var(--seq-space-9)}.fyvr183{max-width:var(--seq-space-10)}.fyvr187{max-width:var(--seq-space-12)}.fyvr18b{max-width:var(--seq-space-14)}.fyvr18f{max-width:var(--seq-space-16)}.fyvr18j{max-width:var(--seq-space-0_25)}.fyvr18n{max-width:var(--seq-space-0_5)}.fyvr18r{max-width:var(--seq-space-1_5)}.fyvr18v{max-width:0}.fyvr18z{max-width:1px}.fyvr193{max-width:auto}.fyvr197{max-width:100%}.fyvr19b{max-width:50%}.fyvr19f{max-width:33.33333%}.fyvr19j{max-width:66.66667%}.fyvr19n{max-width:25%}.fyvr19r{max-width:75%}.fyvr19v{max-width:-moz-fit-content;max-width:fit-content}.fyvr19z{max-width:-moz-max-content;max-width:max-content}.fyvr1a3{max-width:-moz-min-content;max-width:min-content}.fyvr1a7{max-width:100vw}.fyvr1ab{max-width:100vh}.fyvr1af{max-height:var(--seq-space-0)}.fyvr1aj{max-height:var(--seq-space-1)}.fyvr1an{max-height:var(--seq-space-2)}.fyvr1ar{max-height:var(--seq-space-3)}.fyvr1av{max-height:var(--seq-space-4)}.fyvr1az{max-height:var(--seq-space-5)}.fyvr1b3{max-height:var(--seq-space-6)}.fyvr1b7{max-height:var(--seq-space-7)}.fyvr1bb{max-height:var(--seq-space-8)}.fyvr1bf{max-height:var(--seq-space-9)}.fyvr1bj{max-height:var(--seq-space-10)}.fyvr1bn{max-height:var(--seq-space-12)}.fyvr1br{max-height:var(--seq-space-14)}.fyvr1bv{max-height:var(--seq-space-16)}.fyvr1bz{max-height:var(--seq-space-0_25)}.fyvr1c3{max-height:var(--seq-space-0_5)}.fyvr1c7{max-height:var(--seq-space-1_5)}.fyvr1cb{max-height:0}.fyvr1cf{max-height:1px}.fyvr1cj{max-height:auto}.fyvr1cn{max-height:100%}.fyvr1cr{max-height:50%}.fyvr1cv{max-height:33.33333%}.fyvr1cz{max-height:66.66667%}.fyvr1d3{max-height:25%}.fyvr1d7{max-height:75%}.fyvr1db{max-height:-moz-fit-content;max-height:fit-content}.fyvr1df{max-height:-moz-max-content;max-height:max-content}.fyvr1dj{max-height:-moz-min-content;max-height:min-content}.fyvr1dn{max-height:100vw}.fyvr1dr{max-height:100vh}.fyvr1dv{min-width:var(--seq-space-0)}.fyvr1dz{min-width:var(--seq-space-1)}.fyvr1e3{min-width:var(--seq-space-2)}.fyvr1e7{min-width:var(--seq-space-3)}.fyvr1eb{min-width:var(--seq-space-4)}.fyvr1ef{min-width:var(--seq-space-5)}.fyvr1ej{min-width:var(--seq-space-6)}.fyvr1en{min-width:var(--seq-space-7)}.fyvr1er{min-width:var(--seq-space-8)}.fyvr1ev{min-width:var(--seq-space-9)}.fyvr1ez{min-width:var(--seq-space-10)}.fyvr1f3{min-width:var(--seq-space-12)}.fyvr1f7{min-width:var(--seq-space-14)}.fyvr1fb{min-width:var(--seq-space-16)}.fyvr1ff{min-width:var(--seq-space-0_25)}.fyvr1fj{min-width:var(--seq-space-0_5)}.fyvr1fn{min-width:var(--seq-space-1_5)}.fyvr1fr{min-width:0}.fyvr1fv{min-width:1px}.fyvr1fz{min-width:auto}.fyvr1g3{min-width:100%}.fyvr1g7{min-width:50%}.fyvr1gb{min-width:33.33333%}.fyvr1gf{min-width:66.66667%}.fyvr1gj{min-width:25%}.fyvr1gn{min-width:75%}.fyvr1gr{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gv{min-width:-moz-max-content;min-width:max-content}.fyvr1gz{min-width:-moz-min-content;min-width:min-content}.fyvr1h3{min-width:100vw}.fyvr1h7{min-width:100vh}.fyvr1hb{min-height:var(--seq-space-0)}.fyvr1hf{min-height:var(--seq-space-1)}.fyvr1hj{min-height:var(--seq-space-2)}.fyvr1hn{min-height:var(--seq-space-3)}.fyvr1hr{min-height:var(--seq-space-4)}.fyvr1hv{min-height:var(--seq-space-5)}.fyvr1hz{min-height:var(--seq-space-6)}.fyvr1i3{min-height:var(--seq-space-7)}.fyvr1i7{min-height:var(--seq-space-8)}.fyvr1ib{min-height:var(--seq-space-9)}.fyvr1if{min-height:var(--seq-space-10)}.fyvr1ij{min-height:var(--seq-space-12)}.fyvr1in{min-height:var(--seq-space-14)}.fyvr1ir{min-height:var(--seq-space-16)}.fyvr1iv{min-height:var(--seq-space-0_25)}.fyvr1iz{min-height:var(--seq-space-0_5)}.fyvr1j3{min-height:var(--seq-space-1_5)}.fyvr1j7{min-height:0}.fyvr1jb{min-height:1px}.fyvr1jf{min-height:auto}.fyvr1jj{min-height:100%}.fyvr1jn{min-height:50%}.fyvr1jr{min-height:33.33333%}.fyvr1jv{min-height:66.66667%}.fyvr1jz{min-height:25%}.fyvr1k3{min-height:75%}.fyvr1k7{min-height:-moz-fit-content;min-height:fit-content}.fyvr1kb{min-height:-moz-max-content;min-height:max-content}.fyvr1kf{min-height:-moz-min-content;min-height:min-content}.fyvr1kj{min-height:100vw}.fyvr1kn{min-height:100vh}.fyvr1kr{top:var(--seq-space-0)}.fyvr1kv{top:var(--seq-space-1)}.fyvr1kz{top:var(--seq-space-2)}.fyvr1l3{top:var(--seq-space-3)}.fyvr1l7{top:var(--seq-space-4)}.fyvr1lb{top:var(--seq-space-5)}.fyvr1lf{top:var(--seq-space-6)}.fyvr1lj{top:var(--seq-space-7)}.fyvr1ln{top:var(--seq-space-8)}.fyvr1lr{top:var(--seq-space-9)}.fyvr1lv{top:var(--seq-space-10)}.fyvr1lz{top:var(--seq-space-12)}.fyvr1m3{top:var(--seq-space-14)}.fyvr1m7{top:var(--seq-space-16)}.fyvr1mb{top:var(--seq-space-0_25)}.fyvr1mf{top:var(--seq-space-0_5)}.fyvr1mj{top:var(--seq-space-1_5)}.fyvr1mn{top:auto}.fyvr1mr{bottom:var(--seq-space-0)}.fyvr1mv{bottom:var(--seq-space-1)}.fyvr1mz{bottom:var(--seq-space-2)}.fyvr1n3{bottom:var(--seq-space-3)}.fyvr1n7{bottom:var(--seq-space-4)}.fyvr1nb{bottom:var(--seq-space-5)}.fyvr1nf{bottom:var(--seq-space-6)}.fyvr1nj{bottom:var(--seq-space-7)}.fyvr1nn{bottom:var(--seq-space-8)}.fyvr1nr{bottom:var(--seq-space-9)}.fyvr1nv{bottom:var(--seq-space-10)}.fyvr1nz{bottom:var(--seq-space-12)}.fyvr1o3{bottom:var(--seq-space-14)}.fyvr1o7{bottom:var(--seq-space-16)}.fyvr1ob{bottom:var(--seq-space-0_25)}.fyvr1of{bottom:var(--seq-space-0_5)}.fyvr1oj{bottom:var(--seq-space-1_5)}.fyvr1on{bottom:auto}.fyvr1or{left:var(--seq-space-0)}.fyvr1ov{left:var(--seq-space-1)}.fyvr1oz{left:var(--seq-space-2)}.fyvr1p3{left:var(--seq-space-3)}.fyvr1p7{left:var(--seq-space-4)}.fyvr1pb{left:var(--seq-space-5)}.fyvr1pf{left:var(--seq-space-6)}.fyvr1pj{left:var(--seq-space-7)}.fyvr1pn{left:var(--seq-space-8)}.fyvr1pr{left:var(--seq-space-9)}.fyvr1pv{left:var(--seq-space-10)}.fyvr1pz{left:var(--seq-space-12)}.fyvr1q3{left:var(--seq-space-14)}.fyvr1q7{left:var(--seq-space-16)}.fyvr1qb{left:var(--seq-space-0_25)}.fyvr1qf{left:var(--seq-space-0_5)}.fyvr1qj{left:var(--seq-space-1_5)}.fyvr1qn{left:auto}.fyvr1qr{right:var(--seq-space-0)}.fyvr1qv{right:var(--seq-space-1)}.fyvr1qz{right:var(--seq-space-2)}.fyvr1r3{right:var(--seq-space-3)}.fyvr1r7{right:var(--seq-space-4)}.fyvr1rb{right:var(--seq-space-5)}.fyvr1rf{right:var(--seq-space-6)}.fyvr1rj{right:var(--seq-space-7)}.fyvr1rn{right:var(--seq-space-8)}.fyvr1rr{right:var(--seq-space-9)}.fyvr1rv{right:var(--seq-space-10)}.fyvr1rz{right:var(--seq-space-12)}.fyvr1s3{right:var(--seq-space-14)}.fyvr1s7{right:var(--seq-space-16)}.fyvr1sb{right:var(--seq-space-0_25)}.fyvr1sf{right:var(--seq-space-0_5)}.fyvr1sj{right:var(--seq-space-1_5)}.fyvr1sn{right:auto}.fyvr1sr{padding-top:var(--seq-space-0)}.fyvr1sv{padding-top:var(--seq-space-1)}.fyvr1sz{padding-top:var(--seq-space-2)}.fyvr1t3{padding-top:var(--seq-space-3)}.fyvr1t7{padding-top:var(--seq-space-4)}.fyvr1tb{padding-top:var(--seq-space-5)}.fyvr1tf{padding-top:var(--seq-space-6)}.fyvr1tj{padding-top:var(--seq-space-7)}.fyvr1tn{padding-top:var(--seq-space-8)}.fyvr1tr{padding-top:var(--seq-space-9)}.fyvr1tv{padding-top:var(--seq-space-10)}.fyvr1tz{padding-top:var(--seq-space-12)}.fyvr1u3{padding-top:var(--seq-space-14)}.fyvr1u7{padding-top:var(--seq-space-16)}.fyvr1ub{padding-top:var(--seq-space-0_25)}.fyvr1uf{padding-top:var(--seq-space-0_5)}.fyvr1uj{padding-top:var(--seq-space-1_5)}.fyvr1un{padding-bottom:var(--seq-space-0)}.fyvr1ur{padding-bottom:var(--seq-space-1)}.fyvr1uv{padding-bottom:var(--seq-space-2)}.fyvr1uz{padding-bottom:var(--seq-space-3)}.fyvr1v3{padding-bottom:var(--seq-space-4)}.fyvr1v7{padding-bottom:var(--seq-space-5)}.fyvr1vb{padding-bottom:var(--seq-space-6)}.fyvr1vf{padding-bottom:var(--seq-space-7)}.fyvr1vj{padding-bottom:var(--seq-space-8)}.fyvr1vn{padding-bottom:var(--seq-space-9)}.fyvr1vr{padding-bottom:var(--seq-space-10)}.fyvr1vv{padding-bottom:var(--seq-space-12)}.fyvr1vz{padding-bottom:var(--seq-space-14)}.fyvr1w3{padding-bottom:var(--seq-space-16)}.fyvr1w7{padding-bottom:var(--seq-space-0_25)}.fyvr1wb{padding-bottom:var(--seq-space-0_5)}.fyvr1wf{padding-bottom:var(--seq-space-1_5)}.fyvr1wj{padding-left:var(--seq-space-0)}.fyvr1wn{padding-left:var(--seq-space-1)}.fyvr1wr{padding-left:var(--seq-space-2)}.fyvr1wv{padding-left:var(--seq-space-3)}.fyvr1wz{padding-left:var(--seq-space-4)}.fyvr1x3{padding-left:var(--seq-space-5)}.fyvr1x7{padding-left:var(--seq-space-6)}.fyvr1xb{padding-left:var(--seq-space-7)}.fyvr1xf{padding-left:var(--seq-space-8)}.fyvr1xj{padding-left:var(--seq-space-9)}.fyvr1xn{padding-left:var(--seq-space-10)}.fyvr1xr{padding-left:var(--seq-space-12)}.fyvr1xv{padding-left:var(--seq-space-14)}.fyvr1xz{padding-left:var(--seq-space-16)}.fyvr1y3{padding-left:var(--seq-space-0_25)}.fyvr1y7{padding-left:var(--seq-space-0_5)}.fyvr1yb{padding-left:var(--seq-space-1_5)}.fyvr1yf{padding-right:var(--seq-space-0)}.fyvr1yj{padding-right:var(--seq-space-1)}.fyvr1yn{padding-right:var(--seq-space-2)}.fyvr1yr{padding-right:var(--seq-space-3)}.fyvr1yv{padding-right:var(--seq-space-4)}.fyvr1yz{padding-right:var(--seq-space-5)}.fyvr1z3{padding-right:var(--seq-space-6)}.fyvr1z7{padding-right:var(--seq-space-7)}.fyvr1zb{padding-right:var(--seq-space-8)}.fyvr1zf{padding-right:var(--seq-space-9)}.fyvr1zj{padding-right:var(--seq-space-10)}.fyvr1zn{padding-right:var(--seq-space-12)}.fyvr1zr{padding-right:var(--seq-space-14)}.fyvr1zv{padding-right:var(--seq-space-16)}.fyvr1zz{padding-right:var(--seq-space-0_25)}.fyvr1103{padding-right:var(--seq-space-0_5)}.fyvr1107{padding-right:var(--seq-space-1_5)}.fyvr110b{margin-top:var(--seq-space-0)}.fyvr110f{margin-top:var(--seq-space-1)}.fyvr110j{margin-top:var(--seq-space-2)}.fyvr110n{margin-top:var(--seq-space-3)}.fyvr110r{margin-top:var(--seq-space-4)}.fyvr110v{margin-top:var(--seq-space-5)}.fyvr110z{margin-top:var(--seq-space-6)}.fyvr1113{margin-top:var(--seq-space-7)}.fyvr1117{margin-top:var(--seq-space-8)}.fyvr111b{margin-top:var(--seq-space-9)}.fyvr111f{margin-top:var(--seq-space-10)}.fyvr111j{margin-top:var(--seq-space-12)}.fyvr111n{margin-top:var(--seq-space-14)}.fyvr111r{margin-top:var(--seq-space-16)}.fyvr111v{margin-top:var(--seq-space-0_25)}.fyvr111z{margin-top:var(--seq-space-0_5)}.fyvr1123{margin-top:var(--seq-space-1_5)}.fyvr1127{margin-top:auto}.fyvr112b{margin-bottom:var(--seq-space-0)}.fyvr112f{margin-bottom:var(--seq-space-1)}.fyvr112j{margin-bottom:var(--seq-space-2)}.fyvr112n{margin-bottom:var(--seq-space-3)}.fyvr112r{margin-bottom:var(--seq-space-4)}.fyvr112v{margin-bottom:var(--seq-space-5)}.fyvr112z{margin-bottom:var(--seq-space-6)}.fyvr1133{margin-bottom:var(--seq-space-7)}.fyvr1137{margin-bottom:var(--seq-space-8)}.fyvr113b{margin-bottom:var(--seq-space-9)}.fyvr113f{margin-bottom:var(--seq-space-10)}.fyvr113j{margin-bottom:var(--seq-space-12)}.fyvr113n{margin-bottom:var(--seq-space-14)}.fyvr113r{margin-bottom:var(--seq-space-16)}.fyvr113v{margin-bottom:var(--seq-space-0_25)}.fyvr113z{margin-bottom:var(--seq-space-0_5)}.fyvr1143{margin-bottom:var(--seq-space-1_5)}.fyvr1147{margin-bottom:auto}.fyvr114b{margin-left:var(--seq-space-0)}.fyvr114f{margin-left:var(--seq-space-1)}.fyvr114j{margin-left:var(--seq-space-2)}.fyvr114n{margin-left:var(--seq-space-3)}.fyvr114r{margin-left:var(--seq-space-4)}.fyvr114v{margin-left:var(--seq-space-5)}.fyvr114z{margin-left:var(--seq-space-6)}.fyvr1153{margin-left:var(--seq-space-7)}.fyvr1157{margin-left:var(--seq-space-8)}.fyvr115b{margin-left:var(--seq-space-9)}.fyvr115f{margin-left:var(--seq-space-10)}.fyvr115j{margin-left:var(--seq-space-12)}.fyvr115n{margin-left:var(--seq-space-14)}.fyvr115r{margin-left:var(--seq-space-16)}.fyvr115v{margin-left:var(--seq-space-0_25)}.fyvr115z{margin-left:var(--seq-space-0_5)}.fyvr1163{margin-left:var(--seq-space-1_5)}.fyvr1167{margin-left:auto}.fyvr116b{margin-right:var(--seq-space-0)}.fyvr116f{margin-right:var(--seq-space-1)}.fyvr116j{margin-right:var(--seq-space-2)}.fyvr116n{margin-right:var(--seq-space-3)}.fyvr116r{margin-right:var(--seq-space-4)}.fyvr116v{margin-right:var(--seq-space-5)}.fyvr116z{margin-right:var(--seq-space-6)}.fyvr1173{margin-right:var(--seq-space-7)}.fyvr1177{margin-right:var(--seq-space-8)}.fyvr117b{margin-right:var(--seq-space-9)}.fyvr117f{margin-right:var(--seq-space-10)}.fyvr117j{margin-right:var(--seq-space-12)}.fyvr117n{margin-right:var(--seq-space-14)}.fyvr117r{margin-right:var(--seq-space-16)}.fyvr117v{margin-right:var(--seq-space-0_25)}.fyvr117z{margin-right:var(--seq-space-0_5)}.fyvr1183{margin-right:var(--seq-space-1_5)}.fyvr1187{margin-right:auto}.fyvr118b{gap:var(--seq-space-0)}.fyvr118f{gap:var(--seq-space-1)}.fyvr118j{gap:var(--seq-space-2)}.fyvr118n{gap:var(--seq-space-3)}.fyvr118r{gap:var(--seq-space-4)}.fyvr118v{gap:var(--seq-space-5)}.fyvr118z{gap:var(--seq-space-6)}.fyvr1193{gap:var(--seq-space-7)}.fyvr1197{gap:var(--seq-space-8)}.fyvr119b{gap:var(--seq-space-9)}.fyvr119f{gap:var(--seq-space-10)}.fyvr119j{gap:var(--seq-space-12)}.fyvr119n{gap:var(--seq-space-14)}.fyvr119r{gap:var(--seq-space-16)}.fyvr119v{gap:var(--seq-space-0_25)}.fyvr119z{gap:var(--seq-space-0_5)}.fyvr11a3{gap:var(--seq-space-1_5)}.fyvr11a7{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ab{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11af{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11aj{border-left-width:var(--seq-border-widths-none)}.fyvr11an{border-left-width:var(--seq-border-widths-thin)}.fyvr11ar{border-left-width:var(--seq-border-widths-thick)}.fyvr11av{border-right-width:var(--seq-border-widths-none)}.fyvr11az{border-right-width:var(--seq-border-widths-thin)}.fyvr11b3{border-right-width:var(--seq-border-widths-thick)}.fyvr11b7{border-top-width:var(--seq-border-widths-none)}.fyvr11bb{border-top-width:var(--seq-border-widths-thin)}.fyvr11bf{border-top-width:var(--seq-border-widths-thick)}.fyvr11bj{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bn{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11br{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bv{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bz{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c3{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c7{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11cb{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cf{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cj{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cn{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cr{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cv{border-top-left-radius:var(--seq-radii-none)}.fyvr11cz{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d3{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d7{border-top-left-radius:var(--seq-radii-md)}.fyvr11db{border-top-left-radius:var(--seq-radii-lg)}.fyvr11df{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dj{border-top-right-radius:var(--seq-radii-none)}.fyvr11dn{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dr{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dv{border-top-right-radius:var(--seq-radii-md)}.fyvr11dz{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e3{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e7{font-size:var(--seq-font-sizes-inherit)}.fyvr11eb{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ef{font-size:var(--seq-font-sizes-small)}.fyvr11ej{font-size:var(--seq-font-sizes-normal)}.fyvr11en{font-size:var(--seq-font-sizes-medium)}.fyvr11er{font-size:var(--seq-font-sizes-large)}.fyvr11ev{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ez{font-weight:var(--seq-font-weights-inherit)}.fyvr11f3{font-weight:var(--seq-font-weights-normal)}.fyvr11f7{font-weight:var(--seq-font-weights-medium)}.fyvr11fb{font-weight:var(--seq-font-weights-semibold)}.fyvr11ff{font-weight:var(--seq-font-weights-bold)}.fyvr11fj{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fn{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fr{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fv{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fz{line-height:var(--seq-line-heights-4)}.fyvr11g3{line-height:var(--seq-line-heights-5)}.fyvr11g7{line-height:var(--seq-line-heights-6)}.fyvr11gb{line-height:var(--seq-line-heights-7)}.fyvr11gf{line-height:var(--seq-line-heights-9)}.fyvr11gj{line-height:var(--seq-line-heights-inherit)}.fyvr11gn{text-align:center}.fyvr11gr{text-align:left}.fyvr11gv{text-align:right}.fyvr11gz{display:block}.fyvr11h3{display:flex}.fyvr11h7{display:grid}.fyvr11hb{display:inline-block}.fyvr11hf{display:inline-flex}.fyvr11hj{display:none}.fyvr11hn{display:contents}.fyvr11hr{position:absolute}.fyvr11hv{position:fixed}.fyvr11hz{position:relative}.fyvr11i3{position:sticky}.fyvr11i7{flex-direction:column}.fyvr11ib{flex-direction:column-reverse}.fyvr11if{flex-direction:row}.fyvr11ij{flex-direction:row-reverse}.fyvr11in{flex-shrink:0}.fyvr11ir{flex-shrink:1}.fyvr11iv{flex-grow:0}.fyvr11iz{flex-grow:1}.fyvr11j3{flex-wrap:nowrap}.fyvr11j7{flex-wrap:wrap}.fyvr11jb{flex-wrap:wrap-reverse}.fyvr11jf{justify-content:flex-start}.fyvr11jj{justify-content:center}.fyvr11jn{justify-content:flex-end}.fyvr11jr{justify-content:stretch}.fyvr11jv{justify-content:space-around}.fyvr11jz{justify-content:space-between}.fyvr11k3{justify-content:space-evenly}.fyvr11k7{justify-self:flex-start}.fyvr11kb{justify-self:center}.fyvr11kf{justify-self:flex-end}.fyvr11kj{justify-self:stretch}.fyvr11kn{align-items:flex-start}.fyvr11kr{align-items:center}.fyvr11kv{align-items:flex-end}.fyvr11kz{align-items:stretch}.fyvr11l3{align-items:baseline}.fyvr11l7{align-self:flex-start}.fyvr11lb{align-self:center}.fyvr11lf{align-self:flex-end}.fyvr11lj{align-self:stretch}.fyvr11ln{align-self:baseline}.fyvr11lr{overflow-x:auto}.fyvr11lv{overflow-x:hidden}.fyvr11lz{overflow-x:scroll}.fyvr11m3{overflow-x:visible}.fyvr11m7{overflow-y:auto}.fyvr11mb{overflow-y:hidden}.fyvr11mf{overflow-y:scroll}.fyvr11mj{overflow-y:visible}.fyvr11mn{visibility:hidden}.fyvr11mr{visibility:visible}}._4efw240:focus{outline:none}._4efw240:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1qxj1ibj{font-style:italic}._1qxj1ibk{-webkit-text-decoration:underline;text-decoration:underline}._1qxj1ibl{text-transform:uppercase}._1qxj1ibm{text-transform:capitalize}._1qxj1ibn{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}._2q9vfj7{font-weight:var(--seq-font-weights-normal)}._140wn8nl{outline:2px solid rgba(255,255,255,.1);outline-offset:-2px}._140wn8nr{outline-offset:1px}._140wn8nw{height:28px}._140wn8nx{height:36px}._140wn8ny{height:44px}._140wn8nz{height:52px}._140wn8n10{padding:0;display:flex;align-items:center;justify-content:center}._140wn8n13{outline-color:var(--seq-colors-background-secondary);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n14{outline-color:var(--seq-colors-border-normal);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n15{width:28px}._140wn8n16{width:36px}._140wn8n17{width:44px}._140wn8n18{width:52px}._140wn8n19,._140wn8n1a{padding-left:var(--seq-space-2)}._140wn8n1b{padding-left:var(--seq-space-4)}._140wn8n1c,._140wn8n1d{padding-right:var(--seq-space-2)}._140wn8n1e{padding-right:var(--seq-space-4)}.rhmai65{opacity:.5;cursor:default;pointer-events:none}._43lu9r6{grid-template-columns:1fr 2fr}._43lu9r7{grid-template-columns:2fr 1fr}._1dizidw0{flex-shrink:0}._1dizidw1{height:var(--seq-line-heights-4);width:var(--seq-line-heights-4)}._1dizidw2{height:var(--seq-line-heights-5);width:var(--seq-line-heights-5)}._1dizidw3{height:var(--seq-line-heights-6);width:var(--seq-line-heights-6)}._1dizidw4{height:var(--seq-line-heights-7);width:var(--seq-line-heights-7)}._1dizidw5{height:var(--seq-line-heights-9);width:var(--seq-line-heights-9)}._1c9x66f2{height:20px;width:20px}._1c9x66f3{height:28px;width:28px}._4j62fl0{min-height:64px}._4j62fl2{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:64px}._4j62fl4{transform-origin:top}._4j62fl5{height:1.25rem;width:1.25rem;display:block}._1k2mbvi1{width:160px}._1k2mbvi2{fill:var(--seq-colors-background-raised)}._1k2mbvi4[data-disabled]{opacity:.8;cursor:default;pointer-events:none;color:var(--seq-colors-text50)}._1k2mbvi4[data-highlighted]{background:var(--seq-colors-background-contrast)}._1k2mbvi5{position:absolute;left:0;width:var(--seq-space-6);display:inline-flex;align-items:center;justify-content:center}._1hq71vk1{height:52px}._1hq71vk1:has(:disabled),._1hq71vk1:has(:disabled):hover{cursor:default;opacity:.5}._1hq71vk1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1bhyzin1{width:12px;height:12px}._1bhyzin2{width:20px;height:20px}._1bhyzin3{width:32px;height:32px}._1bhyzin4{width:40px;height:40px}._1bhyzin5{width:52px;height:52px}._1vqx0w92{height:100%;overflow-y:auto;overscroll-behavior-y:contain}._1vqx0w93{overflow-x:auto;overscroll-behavior-x:contain;width:100%}._1vqx0w95:before{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w95:after{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w96:before{display:none}._1vqx0w96:after{display:none}._1vqx0w97:before{background:linear-gradient(to top,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;width:100%;height:var(--seq-space-4)}._1vqx0w97:after{background:linear-gradient(to bottom,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;bottom:0;width:100%;height:var(--seq-space-4)}._1vqx0w98:before{background:linear-gradient(to left,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;height:100%;width:var(--seq-space-4)}._1vqx0w98:after{background:linear-gradient(to right,transparent 0%,var(--seq-colors-background-primary) 100%);right:0;top:0;height:100%;width:var(--seq-space-4)}._5b32m95{-ms-overflow-style:none;scrollbar-width:none}._5b32m95::-webkit-scrollbar{display:none}._5b32m96{width:100vw;min-height:100px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}._5b32m97{width:100vw;height:calc(100vh - 70px);height:calc(100dvh - 70px)}._5b32m99{height:auto!important}@media screen and (min-width: 769px){._5b32m96{width:540px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px))}._5b32m97{width:720px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px));height:800px}}._1acm19y1{cursor:text;height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._1acm19y1:has(:disabled),._1acm19y1:has(:disabled):hover{cursor:default;opacity:.5}._1acm19y1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.y5zf970{width:40px;height:48px;display:flex;justify-content:center;align-items:center;padding:10px;background:var(--seq-colors-background-secondary);border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100)}.y5zf971{height:48px;width:40px;display:flex;justify-content:center;align-items:center;padding:10px;border:none;border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100);background:transparent;text-align:center;caret-color:transparent;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.y5zf971:disabled{cursor:default;opacity:.5}.y5zf971::-moz-selection{background:transparent}.y5zf971::selection{background:transparent}.y5zf971:hover:not(.y5zf971:disabled){border-color:var(--seq-colors-border-focus)}@keyframes _1jujggt0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}._1jujggt1{background-image:linear-gradient(-45deg,transparent,var(--seq-colors-background-secondary),transparent);background-size:400% 400%;background-repeat:no-repeat;animation:_1jujggt0 1s ease infinite}._1jujggt2{width:96px;height:var(--seq-line-heights-4)}._1jujggt3{width:100px;height:var(--seq-line-heights-5)}._1jujggt4{width:124px;height:var(--seq-line-heights-6)}._1jujggt5{width:124px;height:var(--seq-line-heights-7)}._1jujggt6{width:148px;height:var(--seq-line-heights-9)}.io59uy4{height:20px;width:20px}.io59uy5{height:28px;width:28px}.io59uy7:after{content:"";display:block;border-radius:999px;background:currentColor}.io59uy9:after{width:14px;height:14px}.io59uya:after{width:18px;height:18px}.gohwum1{height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.gohwum1:has(:disabled),.gohwum1:has(:disabled):hover{cursor:default;opacity:.5}.gohwum1:focus{outline:none}.gohwum1:focus-within{outline:none;opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.gohwuma{box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}.gohwume{height:52px}.gohwume[data-highlighted]{background:var(--seq-colors-background-secondary)}.gohwume[data-state=checked]{background:var(--seq-colors-background-control)}@keyframes en4abt0{to{transform:rotate(1turn)}}.en4abt1{animation:en4abt0 2s linear infinite}.en4abt2{width:16px;height:16px;stroke-width:3px}.en4abt3{width:24px;height:24px;stroke-width:2px}.en4abt4{width:32px;height:32px;stroke-width:1.5px}._1lp2u8e1{width:48px;height:28px}._1lp2u8e1[data-state=checked]{background:var(--seq-colors-gradient-primary)}._1lp2u8e1:disabled{cursor:default;opacity:.5}._1lp2u8e3{transition:transform .1s ease-out,background .1s ease-out;transform:translate(0);will-change:transform}._1lp2u8e3[data-state=checked]{transform:translate(var(--seq-space-5))}.nwwh3z0{list-style-type:none}.nwwh3za{font-size:.625rem;letter-spacing:.8px}._10c8o0n1:has(:focus-visible){outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._10c8o0n3{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;z-index:2}._10c8o0n3[data-state=active]{color:var(--seq-colors-text100)}._10c8o0n3[disabled]{opacity:.5}._10c8o0n5{transition:transform .2s ease-out}@keyframes _6wut8v2{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}._6wut8v1{padding:var(--seq-space-4);padding-top:0;z-index:1000;list-style:none;max-width:532px}._6wut8v3{will-change:transform,opacity}._6wut8v3[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))!important}._6wut8v3[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}._6wut8v3[data-swipe=end]{animation:_6wut8v2 .2s ease-out}._6wut8v5{color:positive}._6wut8v6{color:negative}._15pztn1{resize:none;cursor:text;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._15pztn1:disabled,._15pztn1:disabled:hover{cursor:default;opacity:.5}._15pztn1:focus{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._15pztn2{resize:vertical}._18h918k6{width:12px;height:12px}._18h918k7{width:20px;height:20px}._18h918k8{width:32px;height:32px}._18h918k9{width:40px;height:40px}._18h918ka{width:64px;height:64px}._18h918kf{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k6 ._18h918kf{max-width:16px;max-height:16px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k7 ._18h918kf{max-width:20px;max-height:20px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k8 ._18h918kf{max-width:32px;max-height:32px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k9 ._18h918kf{max-width:40px;max-height:40px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918ka ._18h918kf{max-width:64px;max-height:64px}.bnrreb2{width:12px;height:12px;font-size:4px}.bnrreb3{width:20px;height:20px;font-size:8px}.bnrreb4{width:32px;height:32px;font-size:9px}.bnrreb5{width:40px;height:40px;font-size:11px}.bnrreb6{width:64px;height:64px;font-size:16px}.bnrreb7{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb2 .bnrreb7{max-width:12px;max-height:12px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb3 .bnrreb7{max-width:20px;max-height:20px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb4 .bnrreb7{max-width:32px;max-height:32px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb5 .bnrreb7{max-width:40px;max-height:40px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb6 .bnrreb7{max-width:64px;max-height:64px}.bnrreb9{font-size:inherit}.q888p21{fill:var(--seq-colors-background-raised);box-shadow:0 0 10px #00000080}@keyframes _1e9z9270{0%{visibility:hidden}50%{visibility:hidden}to{visibility:visible}}._1e9z9271{animation:_1e9z9270 2s infinite}._1q07ov40{display:grid;grid-column-gap:var(--seq-space-2);grid-row-gap:var(--seq-space-2);grid-template-columns:repeat(1,minmax(0,1fr))}@media screen and (min-width: 769px){._1q07ov40{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (min-width: 1281px){._1q07ov40{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-CCNi1xHJ.css b/assets/index-CCNi1xHJ.css new file mode 100644 index 0000000..5835654 --- /dev/null +++ b/assets/index-CCNi1xHJ.css @@ -0,0 +1 @@ +body{background:var(--seq-colors-background-primary)}*,*:before,*:after{box-sizing:border-box}.seq-root *,.seq-root *:before,.seq-root *:after{box-sizing:border-box}:root{--seq-blur-blur: blur(12.5px);--seq-blur-none: none;--seq-border-widths-none: 0;--seq-border-widths-thin: .075rem;--seq-border-widths-thick: .125rem;--seq-fonts-inherit: inherit;--seq-fonts-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Helvetica Neue", Arial;--seq-fonts-mono: "iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--seq-font-sizes-inherit: inherit;--seq-font-sizes-xsmall: .625rem;--seq-font-sizes-small: .75rem;--seq-font-sizes-normal: .875rem;--seq-font-sizes-medium: 1rem;--seq-font-sizes-large: 1.25rem;--seq-font-sizes-xlarge: 1.875rem;--seq-font-weights-inherit: inherit;--seq-font-weights-normal: 400;--seq-font-weights-medium: 500;--seq-font-weights-semibold: 600;--seq-font-weights-bold: 700;--seq-letter-spacings-inherit: inherit;--seq-letter-spacings-none: 0;--seq-letter-spacings-normal: .01em;--seq-letter-spacings-wide: .03em;--seq-line-heights-4: 1rem;--seq-line-heights-5: 1.25rem;--seq-line-heights-6: 1.5rem;--seq-line-heights-7: 1.75rem;--seq-line-heights-9: 2.25rem;--seq-line-heights-inherit: inherit;--seq-opacity-0: 0;--seq-opacity-50: .5;--seq-opacity-80: .8;--seq-opacity-100: 1;--seq-radii-none: 0;--seq-radii-xs: .25rem;--seq-radii-sm: .5rem;--seq-radii-md: .75rem;--seq-radii-lg: 1rem;--seq-radii-circle: 9999px;--seq-space-0: 0;--seq-space-1: .25rem;--seq-space-2: .5rem;--seq-space-3: .75rem;--seq-space-4: 1rem;--seq-space-5: 1.25rem;--seq-space-6: 1.5rem;--seq-space-7: 1.75rem;--seq-space-8: 2rem;--seq-space-9: 2.25rem;--seq-space-10: 2.5rem;--seq-space-12: 3rem;--seq-space-14: 3.5rem;--seq-space-16: 4rem;--seq-space-18: 4.5rem;--seq-space-20: 5rem;--seq-space-0_25: .0625rem;--seq-space-0_5: .125rem;--seq-space-1_5: .375rem;--seq-z-index-0: 0;--seq-z-index-1: 1;--seq-z-index-10: 10;--seq-z-index-20: 20;--seq-z-index-30: 30;--seq-z-index-40: 40;--seq-z-index-50: 50;--seq-z-index--1: -1;--seq-z-index-auto: auto}:root{--seq-grey-50: #D1D1D1;--seq-grey-100: #B0B0B0;--seq-grey-200: #888888;--seq-grey-300: #6D6D6D;--seq-grey-400: #5D5D5D;--seq-grey-500: #4F4F4F;--seq-grey-600: #454545;--seq-grey-700: #3D3D3D;--seq-grey-800: #262626;--seq-grey-900: #1B1B1B;--seq-grey-950: #101010;--seq-red-50: #FDF7EF;--seq-red-100: #FBECD9;--seq-red-200: #F6D7B2;--seq-red-300: #F1BB80;--seq-red-400: #EA954D;--seq-red-500: #E5792A;--seq-red-600: #D66020;--seq-red-700: #C2501F;--seq-red-800: #8E3B1E;--seq-red-900: #72331C;--seq-red-950: #3E170C;--seq-green-50: #F0FDF5;--seq-green-100: #DCFCE9;--seq-green-200: #BAF8D4;--seq-green-300: #85F0B3;--seq-green-400: #48E089;--seq-green-500: #1FC266;--seq-green-600: #14A554;--seq-green-700: #148144;--seq-green-800: #156639;--seq-green-900: #135431;--seq-green-950: #042F19;--seq-yellow-50: #FBFAEB;--seq-yellow-100: #F6F2CB;--seq-yellow-200: #EFE499;--seq-yellow-300: #E5CE5F;--seq-yellow-400: #DDB938;--seq-yellow-500: #CDA125;--seq-yellow-600: #B07E1E;--seq-yellow-700: #8D5C1B;--seq-yellow-800: #754A1E;--seq-yellow-900: #653F1E;--seq-yellow-950: #3A200E;--seq-blue-50: #F0F8FF;--seq-blue-100: #E0F0FE;--seq-blue-200: #B9E0FE;--seq-blue-300: #7CC8FD;--seq-blue-400: #36AEFA;--seq-blue-500: #0C94EB;--seq-blue-600: #0076CC;--seq-blue-700: #015CA3;--seq-blue-800: #064F86;--seq-blue-900: #0B426F;--seq-blue-950: #072A4A;--seq-indigo-50: #F2F2FF;--seq-indigo-100: #E9E7FF;--seq-indigo-200: #D3D1FF;--seq-indigo-300: #B3ADFF;--seq-indigo-400: #8E7EFF;--seq-indigo-500: #6A4AFF;--seq-indigo-600: #5826FF;--seq-indigo-700: #4411E1;--seq-indigo-800: #3D10C7;--seq-indigo-900: #340FA3;--seq-indigo-950: #1C066F;--seq-violet-50: #F3F2FF;--seq-violet-100: #EBE8FF;--seq-violet-200: #D9D3FF;--seq-violet-300: #BDB0FF;--seq-violet-400: #9D84FF;--seq-violet-500: #7F52FF;--seq-violet-600: #7537F9;--seq-violet-700: #601CE5;--seq-violet-800: #5117C0;--seq-violet-900: #43159D;--seq-violet-950: #270A6B}:root{--seq-colors-black: #000000;--seq-colors-white: #ffffff;--seq-colors-inherit: inherit;--seq-colors-transparent: transparent;--seq-colors-positive: #1FC266;--seq-colors-negative: #C2501F;--seq-colors-info: #0076CC;--seq-colors-warning: #F4B03E;--seq-colors-gradient-backdrop: linear-gradient( 243.18deg, rgba(86, 52, 189, .85) 0%, rgba(49, 41, 223, .85) 63.54%, rgba(7, 98, 149, .85) 100% );--seq-colors-gradient-primary: linear-gradient(89.69deg, #4411E1 .27%, #7537F9 99.73%);--seq-colors-gradient-secondary: linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%);--seq-colors-arbitrum-dark: #212D44;--seq-colors-arbitrum-light: #93D4FF;--seq-colors-avalance-dark: #810C0C;--seq-colors-avalance-light: #FF8080;--seq-colors-bsc-dark: #584508;--seq-colors-bsc-light: #FCCF43;--seq-colors-ethereum-dark: #132362;--seq-colors-ethereum-light: #AABBFF;--seq-colors-gnosis-dark: #084246;--seq-colors-gnosis-light: #8CF6FD;--seq-colors-polygon-dark: #350881;--seq-colors-polygon-light: #C7A6FF;--seq-colors-text100: rgba(255, 255, 255, 1);--seq-colors-text80: rgba(255, 255, 255, .8);--seq-colors-text50: rgba(255, 255, 255, .5);--seq-colors-text-inverse100: rgba(0, 0, 0, 1);--seq-colors-background-primary: rgba(0, 0, 0, 1);--seq-colors-background-secondary: rgba(255, 255, 255, .1);--seq-colors-background-contrast: rgba(0, 0, 0, .5);--seq-colors-background-muted: rgba(255, 255, 255, .05);--seq-colors-background-control: rgba(255, 255, 255, .25);--seq-colors-background-inverse: rgba(255, 255, 255, 1);--seq-colors-background-backdrop: rgba(34, 34, 34, .9);--seq-colors-background-overlay: rgba(0, 0, 0, .7);--seq-colors-background-raised: rgba(54, 54, 54, .7);--seq-colors-button-glass: rgba(255, 255, 255, .15);--seq-colors-button-emphasis: rgba(0, 0, 0, .5);--seq-colors-button-inverse: rgba(255, 255, 255, .8);--seq-colors-border-normal: rgba(255, 255, 255, .25);--seq-colors-border-focus: rgba(255, 255, 255, .5)}.fyvr10{width:var(--seq-space-0)}.fyvr14{width:var(--seq-space-1)}.fyvr18{width:var(--seq-space-2)}.fyvr1c{width:var(--seq-space-3)}.fyvr1g{width:var(--seq-space-4)}.fyvr1k{width:var(--seq-space-5)}.fyvr1o{width:var(--seq-space-6)}.fyvr1s{width:var(--seq-space-7)}.fyvr1w{width:var(--seq-space-8)}.fyvr110{width:var(--seq-space-9)}.fyvr114{width:var(--seq-space-10)}.fyvr118{width:var(--seq-space-12)}.fyvr11c{width:var(--seq-space-14)}.fyvr11g{width:var(--seq-space-16)}.fyvr11k{width:var(--seq-space-18)}.fyvr11o{width:var(--seq-space-20)}.fyvr11s{width:var(--seq-space-0_25)}.fyvr11w{width:var(--seq-space-0_5)}.fyvr120{width:var(--seq-space-1_5)}.fyvr124{width:0}.fyvr128{width:1px}.fyvr12c{width:auto}.fyvr12g{width:100%}.fyvr12k{width:50%}.fyvr12o{width:33.33333%}.fyvr12s{width:66.66667%}.fyvr12w{width:25%}.fyvr130{width:75%}.fyvr134{width:-moz-fit-content;width:fit-content}.fyvr138{width:-moz-max-content;width:max-content}.fyvr13c{width:-moz-min-content;width:min-content}.fyvr13g{width:100vw}.fyvr13k{width:100vh}.fyvr13o{height:var(--seq-space-0)}.fyvr13s{height:var(--seq-space-1)}.fyvr13w{height:var(--seq-space-2)}.fyvr140{height:var(--seq-space-3)}.fyvr144{height:var(--seq-space-4)}.fyvr148{height:var(--seq-space-5)}.fyvr14c{height:var(--seq-space-6)}.fyvr14g{height:var(--seq-space-7)}.fyvr14k{height:var(--seq-space-8)}.fyvr14o{height:var(--seq-space-9)}.fyvr14s{height:var(--seq-space-10)}.fyvr14w{height:var(--seq-space-12)}.fyvr150{height:var(--seq-space-14)}.fyvr154{height:var(--seq-space-16)}.fyvr158{height:var(--seq-space-18)}.fyvr15c{height:var(--seq-space-20)}.fyvr15g{height:var(--seq-space-0_25)}.fyvr15k{height:var(--seq-space-0_5)}.fyvr15o{height:var(--seq-space-1_5)}.fyvr15s{height:0}.fyvr15w{height:1px}.fyvr160{height:auto}.fyvr164{height:100%}.fyvr168{height:50%}.fyvr16c{height:33.33333%}.fyvr16g{height:66.66667%}.fyvr16k{height:25%}.fyvr16o{height:75%}.fyvr16s{height:-moz-fit-content;height:fit-content}.fyvr16w{height:-moz-max-content;height:max-content}.fyvr170{height:-moz-min-content;height:min-content}.fyvr174{height:100vw}.fyvr178{height:100vh}.fyvr17c{max-width:var(--seq-space-0)}.fyvr17g{max-width:var(--seq-space-1)}.fyvr17k{max-width:var(--seq-space-2)}.fyvr17o{max-width:var(--seq-space-3)}.fyvr17s{max-width:var(--seq-space-4)}.fyvr17w{max-width:var(--seq-space-5)}.fyvr180{max-width:var(--seq-space-6)}.fyvr184{max-width:var(--seq-space-7)}.fyvr188{max-width:var(--seq-space-8)}.fyvr18c{max-width:var(--seq-space-9)}.fyvr18g{max-width:var(--seq-space-10)}.fyvr18k{max-width:var(--seq-space-12)}.fyvr18o{max-width:var(--seq-space-14)}.fyvr18s{max-width:var(--seq-space-16)}.fyvr18w{max-width:var(--seq-space-18)}.fyvr190{max-width:var(--seq-space-20)}.fyvr194{max-width:var(--seq-space-0_25)}.fyvr198{max-width:var(--seq-space-0_5)}.fyvr19c{max-width:var(--seq-space-1_5)}.fyvr19g{max-width:0}.fyvr19k{max-width:1px}.fyvr19o{max-width:auto}.fyvr19s{max-width:100%}.fyvr19w{max-width:50%}.fyvr1a0{max-width:33.33333%}.fyvr1a4{max-width:66.66667%}.fyvr1a8{max-width:25%}.fyvr1ac{max-width:75%}.fyvr1ag{max-width:-moz-fit-content;max-width:fit-content}.fyvr1ak{max-width:-moz-max-content;max-width:max-content}.fyvr1ao{max-width:-moz-min-content;max-width:min-content}.fyvr1as{max-width:100vw}.fyvr1aw{max-width:100vh}.fyvr1b0{max-height:var(--seq-space-0)}.fyvr1b4{max-height:var(--seq-space-1)}.fyvr1b8{max-height:var(--seq-space-2)}.fyvr1bc{max-height:var(--seq-space-3)}.fyvr1bg{max-height:var(--seq-space-4)}.fyvr1bk{max-height:var(--seq-space-5)}.fyvr1bo{max-height:var(--seq-space-6)}.fyvr1bs{max-height:var(--seq-space-7)}.fyvr1bw{max-height:var(--seq-space-8)}.fyvr1c0{max-height:var(--seq-space-9)}.fyvr1c4{max-height:var(--seq-space-10)}.fyvr1c8{max-height:var(--seq-space-12)}.fyvr1cc{max-height:var(--seq-space-14)}.fyvr1cg{max-height:var(--seq-space-16)}.fyvr1ck{max-height:var(--seq-space-18)}.fyvr1co{max-height:var(--seq-space-20)}.fyvr1cs{max-height:var(--seq-space-0_25)}.fyvr1cw{max-height:var(--seq-space-0_5)}.fyvr1d0{max-height:var(--seq-space-1_5)}.fyvr1d4{max-height:0}.fyvr1d8{max-height:1px}.fyvr1dc{max-height:auto}.fyvr1dg{max-height:100%}.fyvr1dk{max-height:50%}.fyvr1do{max-height:33.33333%}.fyvr1ds{max-height:66.66667%}.fyvr1dw{max-height:25%}.fyvr1e0{max-height:75%}.fyvr1e4{max-height:-moz-fit-content;max-height:fit-content}.fyvr1e8{max-height:-moz-max-content;max-height:max-content}.fyvr1ec{max-height:-moz-min-content;max-height:min-content}.fyvr1eg{max-height:100vw}.fyvr1ek{max-height:100vh}.fyvr1eo{min-width:var(--seq-space-0)}.fyvr1es{min-width:var(--seq-space-1)}.fyvr1ew{min-width:var(--seq-space-2)}.fyvr1f0{min-width:var(--seq-space-3)}.fyvr1f4{min-width:var(--seq-space-4)}.fyvr1f8{min-width:var(--seq-space-5)}.fyvr1fc{min-width:var(--seq-space-6)}.fyvr1fg{min-width:var(--seq-space-7)}.fyvr1fk{min-width:var(--seq-space-8)}.fyvr1fo{min-width:var(--seq-space-9)}.fyvr1fs{min-width:var(--seq-space-10)}.fyvr1fw{min-width:var(--seq-space-12)}.fyvr1g0{min-width:var(--seq-space-14)}.fyvr1g4{min-width:var(--seq-space-16)}.fyvr1g8{min-width:var(--seq-space-18)}.fyvr1gc{min-width:var(--seq-space-20)}.fyvr1gg{min-width:var(--seq-space-0_25)}.fyvr1gk{min-width:var(--seq-space-0_5)}.fyvr1go{min-width:var(--seq-space-1_5)}.fyvr1gs{min-width:0}.fyvr1gw{min-width:1px}.fyvr1h0{min-width:auto}.fyvr1h4{min-width:100%}.fyvr1h8{min-width:50%}.fyvr1hc{min-width:33.33333%}.fyvr1hg{min-width:66.66667%}.fyvr1hk{min-width:25%}.fyvr1ho{min-width:75%}.fyvr1hs{min-width:-moz-fit-content;min-width:fit-content}.fyvr1hw{min-width:-moz-max-content;min-width:max-content}.fyvr1i0{min-width:-moz-min-content;min-width:min-content}.fyvr1i4{min-width:100vw}.fyvr1i8{min-width:100vh}.fyvr1ic{min-height:var(--seq-space-0)}.fyvr1ig{min-height:var(--seq-space-1)}.fyvr1ik{min-height:var(--seq-space-2)}.fyvr1io{min-height:var(--seq-space-3)}.fyvr1is{min-height:var(--seq-space-4)}.fyvr1iw{min-height:var(--seq-space-5)}.fyvr1j0{min-height:var(--seq-space-6)}.fyvr1j4{min-height:var(--seq-space-7)}.fyvr1j8{min-height:var(--seq-space-8)}.fyvr1jc{min-height:var(--seq-space-9)}.fyvr1jg{min-height:var(--seq-space-10)}.fyvr1jk{min-height:var(--seq-space-12)}.fyvr1jo{min-height:var(--seq-space-14)}.fyvr1js{min-height:var(--seq-space-16)}.fyvr1jw{min-height:var(--seq-space-18)}.fyvr1k0{min-height:var(--seq-space-20)}.fyvr1k4{min-height:var(--seq-space-0_25)}.fyvr1k8{min-height:var(--seq-space-0_5)}.fyvr1kc{min-height:var(--seq-space-1_5)}.fyvr1kg{min-height:0}.fyvr1kk{min-height:1px}.fyvr1ko{min-height:auto}.fyvr1ks{min-height:100%}.fyvr1kw{min-height:50%}.fyvr1l0{min-height:33.33333%}.fyvr1l4{min-height:66.66667%}.fyvr1l8{min-height:25%}.fyvr1lc{min-height:75%}.fyvr1lg{min-height:-moz-fit-content;min-height:fit-content}.fyvr1lk{min-height:-moz-max-content;min-height:max-content}.fyvr1lo{min-height:-moz-min-content;min-height:min-content}.fyvr1ls{min-height:100vw}.fyvr1lw{min-height:100vh}.fyvr1m0{top:var(--seq-space-0)}.fyvr1m4{top:var(--seq-space-1)}.fyvr1m8{top:var(--seq-space-2)}.fyvr1mc{top:var(--seq-space-3)}.fyvr1mg{top:var(--seq-space-4)}.fyvr1mk{top:var(--seq-space-5)}.fyvr1mo{top:var(--seq-space-6)}.fyvr1ms{top:var(--seq-space-7)}.fyvr1mw{top:var(--seq-space-8)}.fyvr1n0{top:var(--seq-space-9)}.fyvr1n4{top:var(--seq-space-10)}.fyvr1n8{top:var(--seq-space-12)}.fyvr1nc{top:var(--seq-space-14)}.fyvr1ng{top:var(--seq-space-16)}.fyvr1nk{top:var(--seq-space-18)}.fyvr1no{top:var(--seq-space-20)}.fyvr1ns{top:var(--seq-space-0_25)}.fyvr1nw{top:var(--seq-space-0_5)}.fyvr1o0{top:var(--seq-space-1_5)}.fyvr1o4{top:auto}.fyvr1o8{bottom:var(--seq-space-0)}.fyvr1oc{bottom:var(--seq-space-1)}.fyvr1og{bottom:var(--seq-space-2)}.fyvr1ok{bottom:var(--seq-space-3)}.fyvr1oo{bottom:var(--seq-space-4)}.fyvr1os{bottom:var(--seq-space-5)}.fyvr1ow{bottom:var(--seq-space-6)}.fyvr1p0{bottom:var(--seq-space-7)}.fyvr1p4{bottom:var(--seq-space-8)}.fyvr1p8{bottom:var(--seq-space-9)}.fyvr1pc{bottom:var(--seq-space-10)}.fyvr1pg{bottom:var(--seq-space-12)}.fyvr1pk{bottom:var(--seq-space-14)}.fyvr1po{bottom:var(--seq-space-16)}.fyvr1ps{bottom:var(--seq-space-18)}.fyvr1pw{bottom:var(--seq-space-20)}.fyvr1q0{bottom:var(--seq-space-0_25)}.fyvr1q4{bottom:var(--seq-space-0_5)}.fyvr1q8{bottom:var(--seq-space-1_5)}.fyvr1qc{bottom:auto}.fyvr1qg{left:var(--seq-space-0)}.fyvr1qk{left:var(--seq-space-1)}.fyvr1qo{left:var(--seq-space-2)}.fyvr1qs{left:var(--seq-space-3)}.fyvr1qw{left:var(--seq-space-4)}.fyvr1r0{left:var(--seq-space-5)}.fyvr1r4{left:var(--seq-space-6)}.fyvr1r8{left:var(--seq-space-7)}.fyvr1rc{left:var(--seq-space-8)}.fyvr1rg{left:var(--seq-space-9)}.fyvr1rk{left:var(--seq-space-10)}.fyvr1ro{left:var(--seq-space-12)}.fyvr1rs{left:var(--seq-space-14)}.fyvr1rw{left:var(--seq-space-16)}.fyvr1s0{left:var(--seq-space-18)}.fyvr1s4{left:var(--seq-space-20)}.fyvr1s8{left:var(--seq-space-0_25)}.fyvr1sc{left:var(--seq-space-0_5)}.fyvr1sg{left:var(--seq-space-1_5)}.fyvr1sk{left:auto}.fyvr1so{right:var(--seq-space-0)}.fyvr1ss{right:var(--seq-space-1)}.fyvr1sw{right:var(--seq-space-2)}.fyvr1t0{right:var(--seq-space-3)}.fyvr1t4{right:var(--seq-space-4)}.fyvr1t8{right:var(--seq-space-5)}.fyvr1tc{right:var(--seq-space-6)}.fyvr1tg{right:var(--seq-space-7)}.fyvr1tk{right:var(--seq-space-8)}.fyvr1to{right:var(--seq-space-9)}.fyvr1ts{right:var(--seq-space-10)}.fyvr1tw{right:var(--seq-space-12)}.fyvr1u0{right:var(--seq-space-14)}.fyvr1u4{right:var(--seq-space-16)}.fyvr1u8{right:var(--seq-space-18)}.fyvr1uc{right:var(--seq-space-20)}.fyvr1ug{right:var(--seq-space-0_25)}.fyvr1uk{right:var(--seq-space-0_5)}.fyvr1uo{right:var(--seq-space-1_5)}.fyvr1us{right:auto}.fyvr1uw{padding-top:var(--seq-space-0)}.fyvr1v0{padding-top:var(--seq-space-1)}.fyvr1v4{padding-top:var(--seq-space-2)}.fyvr1v8{padding-top:var(--seq-space-3)}.fyvr1vc{padding-top:var(--seq-space-4)}.fyvr1vg{padding-top:var(--seq-space-5)}.fyvr1vk{padding-top:var(--seq-space-6)}.fyvr1vo{padding-top:var(--seq-space-7)}.fyvr1vs{padding-top:var(--seq-space-8)}.fyvr1vw{padding-top:var(--seq-space-9)}.fyvr1w0{padding-top:var(--seq-space-10)}.fyvr1w4{padding-top:var(--seq-space-12)}.fyvr1w8{padding-top:var(--seq-space-14)}.fyvr1wc{padding-top:var(--seq-space-16)}.fyvr1wg{padding-top:var(--seq-space-18)}.fyvr1wk{padding-top:var(--seq-space-20)}.fyvr1wo{padding-top:var(--seq-space-0_25)}.fyvr1ws{padding-top:var(--seq-space-0_5)}.fyvr1ww{padding-top:var(--seq-space-1_5)}.fyvr1x0{padding-bottom:var(--seq-space-0)}.fyvr1x4{padding-bottom:var(--seq-space-1)}.fyvr1x8{padding-bottom:var(--seq-space-2)}.fyvr1xc{padding-bottom:var(--seq-space-3)}.fyvr1xg{padding-bottom:var(--seq-space-4)}.fyvr1xk{padding-bottom:var(--seq-space-5)}.fyvr1xo{padding-bottom:var(--seq-space-6)}.fyvr1xs{padding-bottom:var(--seq-space-7)}.fyvr1xw{padding-bottom:var(--seq-space-8)}.fyvr1y0{padding-bottom:var(--seq-space-9)}.fyvr1y4{padding-bottom:var(--seq-space-10)}.fyvr1y8{padding-bottom:var(--seq-space-12)}.fyvr1yc{padding-bottom:var(--seq-space-14)}.fyvr1yg{padding-bottom:var(--seq-space-16)}.fyvr1yk{padding-bottom:var(--seq-space-18)}.fyvr1yo{padding-bottom:var(--seq-space-20)}.fyvr1ys{padding-bottom:var(--seq-space-0_25)}.fyvr1yw{padding-bottom:var(--seq-space-0_5)}.fyvr1z0{padding-bottom:var(--seq-space-1_5)}.fyvr1z4{padding-left:var(--seq-space-0)}.fyvr1z8{padding-left:var(--seq-space-1)}.fyvr1zc{padding-left:var(--seq-space-2)}.fyvr1zg{padding-left:var(--seq-space-3)}.fyvr1zk{padding-left:var(--seq-space-4)}.fyvr1zo{padding-left:var(--seq-space-5)}.fyvr1zs{padding-left:var(--seq-space-6)}.fyvr1zw{padding-left:var(--seq-space-7)}.fyvr1100{padding-left:var(--seq-space-8)}.fyvr1104{padding-left:var(--seq-space-9)}.fyvr1108{padding-left:var(--seq-space-10)}.fyvr110c{padding-left:var(--seq-space-12)}.fyvr110g{padding-left:var(--seq-space-14)}.fyvr110k{padding-left:var(--seq-space-16)}.fyvr110o{padding-left:var(--seq-space-18)}.fyvr110s{padding-left:var(--seq-space-20)}.fyvr110w{padding-left:var(--seq-space-0_25)}.fyvr1110{padding-left:var(--seq-space-0_5)}.fyvr1114{padding-left:var(--seq-space-1_5)}.fyvr1118{padding-right:var(--seq-space-0)}.fyvr111c{padding-right:var(--seq-space-1)}.fyvr111g{padding-right:var(--seq-space-2)}.fyvr111k{padding-right:var(--seq-space-3)}.fyvr111o{padding-right:var(--seq-space-4)}.fyvr111s{padding-right:var(--seq-space-5)}.fyvr111w{padding-right:var(--seq-space-6)}.fyvr1120{padding-right:var(--seq-space-7)}.fyvr1124{padding-right:var(--seq-space-8)}.fyvr1128{padding-right:var(--seq-space-9)}.fyvr112c{padding-right:var(--seq-space-10)}.fyvr112g{padding-right:var(--seq-space-12)}.fyvr112k{padding-right:var(--seq-space-14)}.fyvr112o{padding-right:var(--seq-space-16)}.fyvr112s{padding-right:var(--seq-space-18)}.fyvr112w{padding-right:var(--seq-space-20)}.fyvr1130{padding-right:var(--seq-space-0_25)}.fyvr1134{padding-right:var(--seq-space-0_5)}.fyvr1138{padding-right:var(--seq-space-1_5)}.fyvr113c{margin-top:var(--seq-space-0)}.fyvr113g{margin-top:var(--seq-space-1)}.fyvr113k{margin-top:var(--seq-space-2)}.fyvr113o{margin-top:var(--seq-space-3)}.fyvr113s{margin-top:var(--seq-space-4)}.fyvr113w{margin-top:var(--seq-space-5)}.fyvr1140{margin-top:var(--seq-space-6)}.fyvr1144{margin-top:var(--seq-space-7)}.fyvr1148{margin-top:var(--seq-space-8)}.fyvr114c{margin-top:var(--seq-space-9)}.fyvr114g{margin-top:var(--seq-space-10)}.fyvr114k{margin-top:var(--seq-space-12)}.fyvr114o{margin-top:var(--seq-space-14)}.fyvr114s{margin-top:var(--seq-space-16)}.fyvr114w{margin-top:var(--seq-space-18)}.fyvr1150{margin-top:var(--seq-space-20)}.fyvr1154{margin-top:var(--seq-space-0_25)}.fyvr1158{margin-top:var(--seq-space-0_5)}.fyvr115c{margin-top:var(--seq-space-1_5)}.fyvr115g{margin-top:auto}.fyvr115k{margin-bottom:var(--seq-space-0)}.fyvr115o{margin-bottom:var(--seq-space-1)}.fyvr115s{margin-bottom:var(--seq-space-2)}.fyvr115w{margin-bottom:var(--seq-space-3)}.fyvr1160{margin-bottom:var(--seq-space-4)}.fyvr1164{margin-bottom:var(--seq-space-5)}.fyvr1168{margin-bottom:var(--seq-space-6)}.fyvr116c{margin-bottom:var(--seq-space-7)}.fyvr116g{margin-bottom:var(--seq-space-8)}.fyvr116k{margin-bottom:var(--seq-space-9)}.fyvr116o{margin-bottom:var(--seq-space-10)}.fyvr116s{margin-bottom:var(--seq-space-12)}.fyvr116w{margin-bottom:var(--seq-space-14)}.fyvr1170{margin-bottom:var(--seq-space-16)}.fyvr1174{margin-bottom:var(--seq-space-18)}.fyvr1178{margin-bottom:var(--seq-space-20)}.fyvr117c{margin-bottom:var(--seq-space-0_25)}.fyvr117g{margin-bottom:var(--seq-space-0_5)}.fyvr117k{margin-bottom:var(--seq-space-1_5)}.fyvr117o{margin-bottom:auto}.fyvr117s{margin-left:var(--seq-space-0)}.fyvr117w{margin-left:var(--seq-space-1)}.fyvr1180{margin-left:var(--seq-space-2)}.fyvr1184{margin-left:var(--seq-space-3)}.fyvr1188{margin-left:var(--seq-space-4)}.fyvr118c{margin-left:var(--seq-space-5)}.fyvr118g{margin-left:var(--seq-space-6)}.fyvr118k{margin-left:var(--seq-space-7)}.fyvr118o{margin-left:var(--seq-space-8)}.fyvr118s{margin-left:var(--seq-space-9)}.fyvr118w{margin-left:var(--seq-space-10)}.fyvr1190{margin-left:var(--seq-space-12)}.fyvr1194{margin-left:var(--seq-space-14)}.fyvr1198{margin-left:var(--seq-space-16)}.fyvr119c{margin-left:var(--seq-space-18)}.fyvr119g{margin-left:var(--seq-space-20)}.fyvr119k{margin-left:var(--seq-space-0_25)}.fyvr119o{margin-left:var(--seq-space-0_5)}.fyvr119s{margin-left:var(--seq-space-1_5)}.fyvr119w{margin-left:auto}.fyvr11a0{margin-right:var(--seq-space-0)}.fyvr11a4{margin-right:var(--seq-space-1)}.fyvr11a8{margin-right:var(--seq-space-2)}.fyvr11ac{margin-right:var(--seq-space-3)}.fyvr11ag{margin-right:var(--seq-space-4)}.fyvr11ak{margin-right:var(--seq-space-5)}.fyvr11ao{margin-right:var(--seq-space-6)}.fyvr11as{margin-right:var(--seq-space-7)}.fyvr11aw{margin-right:var(--seq-space-8)}.fyvr11b0{margin-right:var(--seq-space-9)}.fyvr11b4{margin-right:var(--seq-space-10)}.fyvr11b8{margin-right:var(--seq-space-12)}.fyvr11bc{margin-right:var(--seq-space-14)}.fyvr11bg{margin-right:var(--seq-space-16)}.fyvr11bk{margin-right:var(--seq-space-18)}.fyvr11bo{margin-right:var(--seq-space-20)}.fyvr11bs{margin-right:var(--seq-space-0_25)}.fyvr11bw{margin-right:var(--seq-space-0_5)}.fyvr11c0{margin-right:var(--seq-space-1_5)}.fyvr11c4{margin-right:auto}.fyvr11c8{gap:var(--seq-space-0)}.fyvr11cc{gap:var(--seq-space-1)}.fyvr11cg{gap:var(--seq-space-2)}.fyvr11ck{gap:var(--seq-space-3)}.fyvr11co{gap:var(--seq-space-4)}.fyvr11cs{gap:var(--seq-space-5)}.fyvr11cw{gap:var(--seq-space-6)}.fyvr11d0{gap:var(--seq-space-7)}.fyvr11d4{gap:var(--seq-space-8)}.fyvr11d8{gap:var(--seq-space-9)}.fyvr11dc{gap:var(--seq-space-10)}.fyvr11dg{gap:var(--seq-space-12)}.fyvr11dk{gap:var(--seq-space-14)}.fyvr11do{gap:var(--seq-space-16)}.fyvr11ds{gap:var(--seq-space-18)}.fyvr11dw{gap:var(--seq-space-20)}.fyvr11e0{gap:var(--seq-space-0_25)}.fyvr11e4{gap:var(--seq-space-0_5)}.fyvr11e8{gap:var(--seq-space-1_5)}.fyvr11ec{border-bottom-width:var(--seq-border-widths-none)}.fyvr11eg{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ek{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11eo{border-left-width:var(--seq-border-widths-none)}.fyvr11es{border-left-width:var(--seq-border-widths-thin)}.fyvr11ew{border-left-width:var(--seq-border-widths-thick)}.fyvr11f0{border-right-width:var(--seq-border-widths-none)}.fyvr11f4{border-right-width:var(--seq-border-widths-thin)}.fyvr11f8{border-right-width:var(--seq-border-widths-thick)}.fyvr11fc{border-top-width:var(--seq-border-widths-none)}.fyvr11fg{border-top-width:var(--seq-border-widths-thin)}.fyvr11fk{border-top-width:var(--seq-border-widths-thick)}.fyvr11fo{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11fs{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11fw{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11g0{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11g4{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11g8{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11gc{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11gg{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11gk{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11go{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11gs{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11gw{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11h0{border-top-left-radius:var(--seq-radii-none)}.fyvr11h4{border-top-left-radius:var(--seq-radii-xs)}.fyvr11h8{border-top-left-radius:var(--seq-radii-sm)}.fyvr11hc{border-top-left-radius:var(--seq-radii-md)}.fyvr11hg{border-top-left-radius:var(--seq-radii-lg)}.fyvr11hk{border-top-left-radius:var(--seq-radii-circle)}.fyvr11ho{border-top-right-radius:var(--seq-radii-none)}.fyvr11hs{border-top-right-radius:var(--seq-radii-xs)}.fyvr11hw{border-top-right-radius:var(--seq-radii-sm)}.fyvr11i0{border-top-right-radius:var(--seq-radii-md)}.fyvr11i4{border-top-right-radius:var(--seq-radii-lg)}.fyvr11i8{border-top-right-radius:var(--seq-radii-circle)}.fyvr11ic{font-size:var(--seq-font-sizes-inherit)}.fyvr11ig{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ik{font-size:var(--seq-font-sizes-small)}.fyvr11io{font-size:var(--seq-font-sizes-normal)}.fyvr11is{font-size:var(--seq-font-sizes-medium)}.fyvr11iw{font-size:var(--seq-font-sizes-large)}.fyvr11j0{font-size:var(--seq-font-sizes-xlarge)}.fyvr11j4{font-weight:var(--seq-font-weights-inherit)}.fyvr11j8{font-weight:var(--seq-font-weights-normal)}.fyvr11jc{font-weight:var(--seq-font-weights-medium)}.fyvr11jg{font-weight:var(--seq-font-weights-semibold)}.fyvr11jk{font-weight:var(--seq-font-weights-bold)}.fyvr11jo{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11js{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11jw{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11k0{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11k4{line-height:var(--seq-line-heights-4)}.fyvr11k8{line-height:var(--seq-line-heights-5)}.fyvr11kc{line-height:var(--seq-line-heights-6)}.fyvr11kg{line-height:var(--seq-line-heights-7)}.fyvr11kk{line-height:var(--seq-line-heights-9)}.fyvr11ko{line-height:var(--seq-line-heights-inherit)}.fyvr11ks{text-align:center}.fyvr11kw{text-align:left}.fyvr11l0{text-align:right}.fyvr11l4{display:block}.fyvr11l8{display:flex}.fyvr11lc{display:grid}.fyvr11lg{display:inline-block}.fyvr11lk{display:inline-flex}.fyvr11lo{display:none}.fyvr11ls{display:contents}.fyvr11lw{position:absolute}.fyvr11m0{position:fixed}.fyvr11m4{position:relative}.fyvr11m8{position:sticky}.fyvr11mc{flex-direction:column}.fyvr11mg{flex-direction:column-reverse}.fyvr11mk{flex-direction:row}.fyvr11mo{flex-direction:row-reverse}.fyvr11ms{flex-shrink:0}.fyvr11mw{flex-shrink:1}.fyvr11n0{flex-grow:0}.fyvr11n4{flex-grow:1}.fyvr11n8{flex-wrap:nowrap}.fyvr11nc{flex-wrap:wrap}.fyvr11ng{flex-wrap:wrap-reverse}.fyvr11nk{justify-content:flex-start}.fyvr11no{justify-content:center}.fyvr11ns{justify-content:flex-end}.fyvr11nw{justify-content:stretch}.fyvr11o0{justify-content:space-around}.fyvr11o4{justify-content:space-between}.fyvr11o8{justify-content:space-evenly}.fyvr11oc{justify-self:flex-start}.fyvr11og{justify-self:center}.fyvr11ok{justify-self:flex-end}.fyvr11oo{justify-self:stretch}.fyvr11os{align-items:flex-start}.fyvr11ow{align-items:center}.fyvr11p0{align-items:flex-end}.fyvr11p4{align-items:stretch}.fyvr11p8{align-items:baseline}.fyvr11pc{align-self:flex-start}.fyvr11pg{align-self:center}.fyvr11pk{align-self:flex-end}.fyvr11po{align-self:stretch}.fyvr11ps{align-self:baseline}.fyvr11pw{overflow-x:auto}.fyvr11q0{overflow-x:hidden}.fyvr11q4{overflow-x:scroll}.fyvr11q8{overflow-x:visible}.fyvr11qc{overflow-y:auto}.fyvr11qg{overflow-y:hidden}.fyvr11qk{overflow-y:scroll}.fyvr11qo{overflow-y:visible}.fyvr11qs{visibility:hidden}.fyvr11qw{visibility:visible}.fyvr11r0{-webkit-backdrop-filter:var(--seq-blur-blur);backdrop-filter:var(--seq-blur-blur)}.fyvr11r1{-webkit-backdrop-filter:var(--seq-blur-none);backdrop-filter:var(--seq-blur-none)}.fyvr11r2{font-family:var(--seq-fonts-inherit)}.fyvr11r3{font-family:var(--seq-fonts-body)}.fyvr11r4{font-family:var(--seq-fonts-mono)}.fyvr11r5{text-overflow:ellipsis}.fyvr11r6{text-overflow:clip}.fyvr11r7{text-transform:capitalize}.fyvr11r8{text-transform:lowercase}.fyvr11r9{text-transform:uppercase}.fyvr11ra{-webkit-text-decoration:none;text-decoration:none}.fyvr11rb{-webkit-text-decoration:underline;text-decoration:underline}.fyvr11rc{-webkit-user-select:none;-moz-user-select:none;user-select:none}.fyvr11rd{-webkit-user-select:text;-moz-user-select:text;user-select:text}.fyvr11re{-webkit-user-select:all;-moz-user-select:all;user-select:all}.fyvr11rf{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.fyvr11rg{white-space:normal}.fyvr11rh{white-space:nowrap}.fyvr11ri{white-space:normal;white-space:initial}.fyvr11rj{white-space:inherit}.fyvr11rk{word-break:break-word}.fyvr11rl{word-wrap:normal}.fyvr11rm{word-wrap:break-word}.fyvr11rn{word-wrap:initial}.fyvr11ro{word-wrap:inherit}.fyvr11rp{z-index:var(--seq-z-index-0)}.fyvr11rq{z-index:var(--seq-z-index-1)}.fyvr11rr{z-index:var(--seq-z-index-10)}.fyvr11rs{z-index:var(--seq-z-index-20)}.fyvr11rt{z-index:var(--seq-z-index-30)}.fyvr11ru{z-index:var(--seq-z-index-40)}.fyvr11rv{z-index:var(--seq-z-index-50)}.fyvr11rw{z-index:var(--seq-z-index--1)}.fyvr11rx{z-index:var(--seq-z-index-auto)}.fyvr11ry{aspect-ratio:1 / 1}.fyvr11rz{aspect-ratio:16 / 9}.fyvr11s0{aspect-ratio:4 / 3}.fyvr11s1{aspect-ratio:3 / 1}.fyvr11s2{aspect-ratio:auto}.fyvr11s3,.fyvr11s4:active{background:var(--seq-colors-black)}.fyvr11s5:disabled,.fyvr11s5[data-disabled]{background:var(--seq-colors-black)}.fyvr11s6:focus{background:var(--seq-colors-black)}.fyvr11s7:hover:not([disabled]){background:var(--seq-colors-black)}.fyvr11s8[data-state=checked]{background:var(--seq-colors-black)}.fyvr11s9,.fyvr11sa:active{background:var(--seq-colors-white)}.fyvr11sb:disabled,.fyvr11sb[data-disabled]{background:var(--seq-colors-white)}.fyvr11sc:focus{background:var(--seq-colors-white)}.fyvr11sd:hover:not([disabled]){background:var(--seq-colors-white)}.fyvr11se[data-state=checked]{background:var(--seq-colors-white)}.fyvr11sf,.fyvr11sg:active{background:var(--seq-colors-inherit)}.fyvr11sh:disabled,.fyvr11sh[data-disabled]{background:var(--seq-colors-inherit)}.fyvr11si:focus{background:var(--seq-colors-inherit)}.fyvr11sj:hover:not([disabled]){background:var(--seq-colors-inherit)}.fyvr11sk[data-state=checked]{background:var(--seq-colors-inherit)}.fyvr11sl,.fyvr11sm:active{background:var(--seq-colors-transparent)}.fyvr11sn:disabled,.fyvr11sn[data-disabled]{background:var(--seq-colors-transparent)}.fyvr11so:focus{background:var(--seq-colors-transparent)}.fyvr11sp:hover:not([disabled]){background:var(--seq-colors-transparent)}.fyvr11sq[data-state=checked]{background:var(--seq-colors-transparent)}.fyvr11sr,.fyvr11ss:active{background:var(--seq-colors-positive)}.fyvr11st:disabled,.fyvr11st[data-disabled]{background:var(--seq-colors-positive)}.fyvr11su:focus{background:var(--seq-colors-positive)}.fyvr11sv:hover:not([disabled]){background:var(--seq-colors-positive)}.fyvr11sw[data-state=checked]{background:var(--seq-colors-positive)}.fyvr11sx,.fyvr11sy:active{background:var(--seq-colors-negative)}.fyvr11sz:disabled,.fyvr11sz[data-disabled]{background:var(--seq-colors-negative)}.fyvr11t0:focus{background:var(--seq-colors-negative)}.fyvr11t1:hover:not([disabled]){background:var(--seq-colors-negative)}.fyvr11t2[data-state=checked]{background:var(--seq-colors-negative)}.fyvr11t3,.fyvr11t4:active{background:var(--seq-colors-info)}.fyvr11t5:disabled,.fyvr11t5[data-disabled]{background:var(--seq-colors-info)}.fyvr11t6:focus{background:var(--seq-colors-info)}.fyvr11t7:hover:not([disabled]){background:var(--seq-colors-info)}.fyvr11t8[data-state=checked]{background:var(--seq-colors-info)}.fyvr11t9,.fyvr11ta:active{background:var(--seq-colors-warning)}.fyvr11tb:disabled,.fyvr11tb[data-disabled]{background:var(--seq-colors-warning)}.fyvr11tc:focus{background:var(--seq-colors-warning)}.fyvr11td:hover:not([disabled]){background:var(--seq-colors-warning)}.fyvr11te[data-state=checked]{background:var(--seq-colors-warning)}.fyvr11tf,.fyvr11tg:active{background:var(--seq-colors-gradient-backdrop)}.fyvr11th:disabled,.fyvr11th[data-disabled]{background:var(--seq-colors-gradient-backdrop)}.fyvr11ti:focus{background:var(--seq-colors-gradient-backdrop)}.fyvr11tj:hover:not([disabled]){background:var(--seq-colors-gradient-backdrop)}.fyvr11tk[data-state=checked]{background:var(--seq-colors-gradient-backdrop)}.fyvr11tl,.fyvr11tm:active{background:var(--seq-colors-gradient-primary)}.fyvr11tn:disabled,.fyvr11tn[data-disabled]{background:var(--seq-colors-gradient-primary)}.fyvr11to:focus{background:var(--seq-colors-gradient-primary)}.fyvr11tp:hover:not([disabled]){background:var(--seq-colors-gradient-primary)}.fyvr11tq[data-state=checked]{background:var(--seq-colors-gradient-primary)}.fyvr11tr,.fyvr11ts:active{background:var(--seq-colors-gradient-secondary)}.fyvr11tt:disabled,.fyvr11tt[data-disabled]{background:var(--seq-colors-gradient-secondary)}.fyvr11tu:focus{background:var(--seq-colors-gradient-secondary)}.fyvr11tv:hover:not([disabled]){background:var(--seq-colors-gradient-secondary)}.fyvr11tw[data-state=checked]{background:var(--seq-colors-gradient-secondary)}.fyvr11tx,.fyvr11ty:active{background:var(--seq-colors-arbitrum-dark)}.fyvr11tz:disabled,.fyvr11tz[data-disabled]{background:var(--seq-colors-arbitrum-dark)}.fyvr11u0:focus{background:var(--seq-colors-arbitrum-dark)}.fyvr11u1:hover:not([disabled]){background:var(--seq-colors-arbitrum-dark)}.fyvr11u2[data-state=checked]{background:var(--seq-colors-arbitrum-dark)}.fyvr11u3,.fyvr11u4:active{background:var(--seq-colors-arbitrum-light)}.fyvr11u5:disabled,.fyvr11u5[data-disabled]{background:var(--seq-colors-arbitrum-light)}.fyvr11u6:focus{background:var(--seq-colors-arbitrum-light)}.fyvr11u7:hover:not([disabled]){background:var(--seq-colors-arbitrum-light)}.fyvr11u8[data-state=checked]{background:var(--seq-colors-arbitrum-light)}.fyvr11u9,.fyvr11ua:active{background:var(--seq-colors-avalance-dark)}.fyvr11ub:disabled,.fyvr11ub[data-disabled]{background:var(--seq-colors-avalance-dark)}.fyvr11uc:focus{background:var(--seq-colors-avalance-dark)}.fyvr11ud:hover:not([disabled]){background:var(--seq-colors-avalance-dark)}.fyvr11ue[data-state=checked]{background:var(--seq-colors-avalance-dark)}.fyvr11uf,.fyvr11ug:active{background:var(--seq-colors-avalance-light)}.fyvr11uh:disabled,.fyvr11uh[data-disabled]{background:var(--seq-colors-avalance-light)}.fyvr11ui:focus{background:var(--seq-colors-avalance-light)}.fyvr11uj:hover:not([disabled]){background:var(--seq-colors-avalance-light)}.fyvr11uk[data-state=checked]{background:var(--seq-colors-avalance-light)}.fyvr11ul,.fyvr11um:active{background:var(--seq-colors-bsc-dark)}.fyvr11un:disabled,.fyvr11un[data-disabled]{background:var(--seq-colors-bsc-dark)}.fyvr11uo:focus{background:var(--seq-colors-bsc-dark)}.fyvr11up:hover:not([disabled]){background:var(--seq-colors-bsc-dark)}.fyvr11uq[data-state=checked]{background:var(--seq-colors-bsc-dark)}.fyvr11ur,.fyvr11us:active{background:var(--seq-colors-bsc-light)}.fyvr11ut:disabled,.fyvr11ut[data-disabled]{background:var(--seq-colors-bsc-light)}.fyvr11uu:focus{background:var(--seq-colors-bsc-light)}.fyvr11uv:hover:not([disabled]){background:var(--seq-colors-bsc-light)}.fyvr11uw[data-state=checked]{background:var(--seq-colors-bsc-light)}.fyvr11ux,.fyvr11uy:active{background:var(--seq-colors-ethereum-dark)}.fyvr11uz:disabled,.fyvr11uz[data-disabled]{background:var(--seq-colors-ethereum-dark)}.fyvr11v0:focus{background:var(--seq-colors-ethereum-dark)}.fyvr11v1:hover:not([disabled]){background:var(--seq-colors-ethereum-dark)}.fyvr11v2[data-state=checked]{background:var(--seq-colors-ethereum-dark)}.fyvr11v3,.fyvr11v4:active{background:var(--seq-colors-ethereum-light)}.fyvr11v5:disabled,.fyvr11v5[data-disabled]{background:var(--seq-colors-ethereum-light)}.fyvr11v6:focus{background:var(--seq-colors-ethereum-light)}.fyvr11v7:hover:not([disabled]){background:var(--seq-colors-ethereum-light)}.fyvr11v8[data-state=checked]{background:var(--seq-colors-ethereum-light)}.fyvr11v9,.fyvr11va:active{background:var(--seq-colors-gnosis-dark)}.fyvr11vb:disabled,.fyvr11vb[data-disabled]{background:var(--seq-colors-gnosis-dark)}.fyvr11vc:focus{background:var(--seq-colors-gnosis-dark)}.fyvr11vd:hover:not([disabled]){background:var(--seq-colors-gnosis-dark)}.fyvr11ve[data-state=checked]{background:var(--seq-colors-gnosis-dark)}.fyvr11vf,.fyvr11vg:active{background:var(--seq-colors-gnosis-light)}.fyvr11vh:disabled,.fyvr11vh[data-disabled]{background:var(--seq-colors-gnosis-light)}.fyvr11vi:focus{background:var(--seq-colors-gnosis-light)}.fyvr11vj:hover:not([disabled]){background:var(--seq-colors-gnosis-light)}.fyvr11vk[data-state=checked]{background:var(--seq-colors-gnosis-light)}.fyvr11vl,.fyvr11vm:active{background:var(--seq-colors-polygon-dark)}.fyvr11vn:disabled,.fyvr11vn[data-disabled]{background:var(--seq-colors-polygon-dark)}.fyvr11vo:focus{background:var(--seq-colors-polygon-dark)}.fyvr11vp:hover:not([disabled]){background:var(--seq-colors-polygon-dark)}.fyvr11vq[data-state=checked]{background:var(--seq-colors-polygon-dark)}.fyvr11vr,.fyvr11vs:active{background:var(--seq-colors-polygon-light)}.fyvr11vt:disabled,.fyvr11vt[data-disabled]{background:var(--seq-colors-polygon-light)}.fyvr11vu:focus{background:var(--seq-colors-polygon-light)}.fyvr11vv:hover:not([disabled]){background:var(--seq-colors-polygon-light)}.fyvr11vw[data-state=checked]{background:var(--seq-colors-polygon-light)}.fyvr11vx,.fyvr11vy:active{background:var(--seq-colors-text100)}.fyvr11vz:disabled,.fyvr11vz[data-disabled]{background:var(--seq-colors-text100)}.fyvr11w0:focus{background:var(--seq-colors-text100)}.fyvr11w1:hover:not([disabled]){background:var(--seq-colors-text100)}.fyvr11w2[data-state=checked]{background:var(--seq-colors-text100)}.fyvr11w3,.fyvr11w4:active{background:var(--seq-colors-text80)}.fyvr11w5:disabled,.fyvr11w5[data-disabled]{background:var(--seq-colors-text80)}.fyvr11w6:focus{background:var(--seq-colors-text80)}.fyvr11w7:hover:not([disabled]){background:var(--seq-colors-text80)}.fyvr11w8[data-state=checked]{background:var(--seq-colors-text80)}.fyvr11w9,.fyvr11wa:active{background:var(--seq-colors-text50)}.fyvr11wb:disabled,.fyvr11wb[data-disabled]{background:var(--seq-colors-text50)}.fyvr11wc:focus{background:var(--seq-colors-text50)}.fyvr11wd:hover:not([disabled]){background:var(--seq-colors-text50)}.fyvr11we[data-state=checked]{background:var(--seq-colors-text50)}.fyvr11wf,.fyvr11wg:active{background:var(--seq-colors-text-inverse100)}.fyvr11wh:disabled,.fyvr11wh[data-disabled]{background:var(--seq-colors-text-inverse100)}.fyvr11wi:focus{background:var(--seq-colors-text-inverse100)}.fyvr11wj:hover:not([disabled]){background:var(--seq-colors-text-inverse100)}.fyvr11wk[data-state=checked]{background:var(--seq-colors-text-inverse100)}.fyvr11wl,.fyvr11wm:active{background:var(--seq-colors-background-primary)}.fyvr11wn:disabled,.fyvr11wn[data-disabled]{background:var(--seq-colors-background-primary)}.fyvr11wo:focus{background:var(--seq-colors-background-primary)}.fyvr11wp:hover:not([disabled]){background:var(--seq-colors-background-primary)}.fyvr11wq[data-state=checked]{background:var(--seq-colors-background-primary)}.fyvr11wr,.fyvr11ws:active{background:var(--seq-colors-background-secondary)}.fyvr11wt:disabled,.fyvr11wt[data-disabled]{background:var(--seq-colors-background-secondary)}.fyvr11wu:focus{background:var(--seq-colors-background-secondary)}.fyvr11wv:hover:not([disabled]){background:var(--seq-colors-background-secondary)}.fyvr11ww[data-state=checked]{background:var(--seq-colors-background-secondary)}.fyvr11wx,.fyvr11wy:active{background:var(--seq-colors-background-contrast)}.fyvr11wz:disabled,.fyvr11wz[data-disabled]{background:var(--seq-colors-background-contrast)}.fyvr11x0:focus{background:var(--seq-colors-background-contrast)}.fyvr11x1:hover:not([disabled]){background:var(--seq-colors-background-contrast)}.fyvr11x2[data-state=checked]{background:var(--seq-colors-background-contrast)}.fyvr11x3,.fyvr11x4:active{background:var(--seq-colors-background-muted)}.fyvr11x5:disabled,.fyvr11x5[data-disabled]{background:var(--seq-colors-background-muted)}.fyvr11x6:focus{background:var(--seq-colors-background-muted)}.fyvr11x7:hover:not([disabled]){background:var(--seq-colors-background-muted)}.fyvr11x8[data-state=checked]{background:var(--seq-colors-background-muted)}.fyvr11x9,.fyvr11xa:active{background:var(--seq-colors-background-control)}.fyvr11xb:disabled,.fyvr11xb[data-disabled]{background:var(--seq-colors-background-control)}.fyvr11xc:focus{background:var(--seq-colors-background-control)}.fyvr11xd:hover:not([disabled]){background:var(--seq-colors-background-control)}.fyvr11xe[data-state=checked]{background:var(--seq-colors-background-control)}.fyvr11xf,.fyvr11xg:active{background:var(--seq-colors-background-inverse)}.fyvr11xh:disabled,.fyvr11xh[data-disabled]{background:var(--seq-colors-background-inverse)}.fyvr11xi:focus{background:var(--seq-colors-background-inverse)}.fyvr11xj:hover:not([disabled]){background:var(--seq-colors-background-inverse)}.fyvr11xk[data-state=checked]{background:var(--seq-colors-background-inverse)}.fyvr11xl,.fyvr11xm:active{background:var(--seq-colors-background-backdrop)}.fyvr11xn:disabled,.fyvr11xn[data-disabled]{background:var(--seq-colors-background-backdrop)}.fyvr11xo:focus{background:var(--seq-colors-background-backdrop)}.fyvr11xp:hover:not([disabled]){background:var(--seq-colors-background-backdrop)}.fyvr11xq[data-state=checked]{background:var(--seq-colors-background-backdrop)}.fyvr11xr,.fyvr11xs:active{background:var(--seq-colors-background-overlay)}.fyvr11xt:disabled,.fyvr11xt[data-disabled]{background:var(--seq-colors-background-overlay)}.fyvr11xu:focus{background:var(--seq-colors-background-overlay)}.fyvr11xv:hover:not([disabled]){background:var(--seq-colors-background-overlay)}.fyvr11xw[data-state=checked]{background:var(--seq-colors-background-overlay)}.fyvr11xx,.fyvr11xy:active{background:var(--seq-colors-background-raised)}.fyvr11xz:disabled,.fyvr11xz[data-disabled]{background:var(--seq-colors-background-raised)}.fyvr11y0:focus{background:var(--seq-colors-background-raised)}.fyvr11y1:hover:not([disabled]){background:var(--seq-colors-background-raised)}.fyvr11y2[data-state=checked]{background:var(--seq-colors-background-raised)}.fyvr11y3,.fyvr11y4:active{background:var(--seq-colors-button-glass)}.fyvr11y5:disabled,.fyvr11y5[data-disabled]{background:var(--seq-colors-button-glass)}.fyvr11y6:focus{background:var(--seq-colors-button-glass)}.fyvr11y7:hover:not([disabled]){background:var(--seq-colors-button-glass)}.fyvr11y8[data-state=checked]{background:var(--seq-colors-button-glass)}.fyvr11y9,.fyvr11ya:active{background:var(--seq-colors-button-emphasis)}.fyvr11yb:disabled,.fyvr11yb[data-disabled]{background:var(--seq-colors-button-emphasis)}.fyvr11yc:focus{background:var(--seq-colors-button-emphasis)}.fyvr11yd:hover:not([disabled]){background:var(--seq-colors-button-emphasis)}.fyvr11ye[data-state=checked]{background:var(--seq-colors-button-emphasis)}.fyvr11yf,.fyvr11yg:active{background:var(--seq-colors-button-inverse)}.fyvr11yh:disabled,.fyvr11yh[data-disabled]{background:var(--seq-colors-button-inverse)}.fyvr11yi:focus{background:var(--seq-colors-button-inverse)}.fyvr11yj:hover:not([disabled]){background:var(--seq-colors-button-inverse)}.fyvr11yk[data-state=checked]{background:var(--seq-colors-button-inverse)}.fyvr11yl,.fyvr11ym:active{background:var(--seq-colors-border-normal)}.fyvr11yn:disabled,.fyvr11yn[data-disabled]{background:var(--seq-colors-border-normal)}.fyvr11yo:focus{background:var(--seq-colors-border-normal)}.fyvr11yp:hover:not([disabled]){background:var(--seq-colors-border-normal)}.fyvr11yq[data-state=checked]{background:var(--seq-colors-border-normal)}.fyvr11yr,.fyvr11ys:active{background:var(--seq-colors-border-focus)}.fyvr11yt:disabled,.fyvr11yt[data-disabled]{background:var(--seq-colors-border-focus)}.fyvr11yu:focus{background:var(--seq-colors-border-focus)}.fyvr11yv:hover:not([disabled]){background:var(--seq-colors-border-focus)}.fyvr11yw[data-state=checked]{background:var(--seq-colors-border-focus)}.fyvr11yx,.fyvr11yy:active{border-bottom-color:var(--seq-colors-black)}.fyvr11yz:disabled,.fyvr11yz[data-disabled]{border-bottom-color:var(--seq-colors-black)}.fyvr11z0:focus{border-bottom-color:var(--seq-colors-black)}.fyvr11z1:hover:not([disabled]){border-bottom-color:var(--seq-colors-black)}.fyvr11z2[data-state=checked]{border-bottom-color:var(--seq-colors-black)}.fyvr11z3,.fyvr11z4:active{border-bottom-color:var(--seq-colors-white)}.fyvr11z5:disabled,.fyvr11z5[data-disabled]{border-bottom-color:var(--seq-colors-white)}.fyvr11z6:focus{border-bottom-color:var(--seq-colors-white)}.fyvr11z7:hover:not([disabled]){border-bottom-color:var(--seq-colors-white)}.fyvr11z8[data-state=checked]{border-bottom-color:var(--seq-colors-white)}.fyvr11z9,.fyvr11za:active{border-bottom-color:var(--seq-colors-inherit)}.fyvr11zb:disabled,.fyvr11zb[data-disabled]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11zc:focus{border-bottom-color:var(--seq-colors-inherit)}.fyvr11zd:hover:not([disabled]){border-bottom-color:var(--seq-colors-inherit)}.fyvr11ze[data-state=checked]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11zf,.fyvr11zg:active{border-bottom-color:var(--seq-colors-transparent)}.fyvr11zh:disabled,.fyvr11zh[data-disabled]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11zi:focus{border-bottom-color:var(--seq-colors-transparent)}.fyvr11zj:hover:not([disabled]){border-bottom-color:var(--seq-colors-transparent)}.fyvr11zk[data-state=checked]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11zl,.fyvr11zm:active{border-bottom-color:var(--seq-colors-positive)}.fyvr11zn:disabled,.fyvr11zn[data-disabled]{border-bottom-color:var(--seq-colors-positive)}.fyvr11zo:focus{border-bottom-color:var(--seq-colors-positive)}.fyvr11zp:hover:not([disabled]){border-bottom-color:var(--seq-colors-positive)}.fyvr11zq[data-state=checked]{border-bottom-color:var(--seq-colors-positive)}.fyvr11zr,.fyvr11zs:active{border-bottom-color:var(--seq-colors-negative)}.fyvr11zt:disabled,.fyvr11zt[data-disabled]{border-bottom-color:var(--seq-colors-negative)}.fyvr11zu:focus{border-bottom-color:var(--seq-colors-negative)}.fyvr11zv:hover:not([disabled]){border-bottom-color:var(--seq-colors-negative)}.fyvr11zw[data-state=checked]{border-bottom-color:var(--seq-colors-negative)}.fyvr11zx,.fyvr11zy:active{border-bottom-color:var(--seq-colors-info)}.fyvr11zz:disabled,.fyvr11zz[data-disabled]{border-bottom-color:var(--seq-colors-info)}.fyvr1200:focus{border-bottom-color:var(--seq-colors-info)}.fyvr1201:hover:not([disabled]){border-bottom-color:var(--seq-colors-info)}.fyvr1202[data-state=checked]{border-bottom-color:var(--seq-colors-info)}.fyvr1203,.fyvr1204:active{border-bottom-color:var(--seq-colors-warning)}.fyvr1205:disabled,.fyvr1205[data-disabled]{border-bottom-color:var(--seq-colors-warning)}.fyvr1206:focus{border-bottom-color:var(--seq-colors-warning)}.fyvr1207:hover:not([disabled]){border-bottom-color:var(--seq-colors-warning)}.fyvr1208[data-state=checked]{border-bottom-color:var(--seq-colors-warning)}.fyvr1209,.fyvr120a:active{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr120b:disabled,.fyvr120b[data-disabled]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr120c:focus{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr120d:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr120e[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr120f,.fyvr120g:active{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr120h:disabled,.fyvr120h[data-disabled]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr120i:focus{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr120j:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr120k[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr120l,.fyvr120m:active{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr120n:disabled,.fyvr120n[data-disabled]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr120o:focus{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr120p:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr120q[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr120r,.fyvr120s:active{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr120t:disabled,.fyvr120t[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr120u:focus{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr120v:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr120w[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr120x,.fyvr120y:active{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr120z:disabled,.fyvr120z[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr1210:focus{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr1211:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr1212[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr1213,.fyvr1214:active{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr1215:disabled,.fyvr1215[data-disabled]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr1216:focus{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr1217:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr1218[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr1219,.fyvr121a:active{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr121b:disabled,.fyvr121b[data-disabled]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr121c:focus{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr121d:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-light)}.fyvr121e[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr121f,.fyvr121g:active{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr121h:disabled,.fyvr121h[data-disabled]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr121i:focus{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr121j:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr121k[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr121l,.fyvr121m:active{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr121n:disabled,.fyvr121n[data-disabled]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr121o:focus{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr121p:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-light)}.fyvr121q[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr121r,.fyvr121s:active{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr121t:disabled,.fyvr121t[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr121u:focus{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr121v:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr121w[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr121x,.fyvr121y:active{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr121z:disabled,.fyvr121z[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr1220:focus{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr1221:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr1222[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr1223,.fyvr1224:active{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr1225:disabled,.fyvr1225[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr1226:focus{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr1227:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr1228[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr1229,.fyvr122a:active{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr122b:disabled,.fyvr122b[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr122c:focus{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr122d:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr122e[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr122f,.fyvr122g:active{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr122h:disabled,.fyvr122h[data-disabled]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr122i:focus{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr122j:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr122k[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr122l,.fyvr122m:active{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr122n:disabled,.fyvr122n[data-disabled]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr122o:focus{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr122p:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-light)}.fyvr122q[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr122r,.fyvr122s:active{border-bottom-color:var(--seq-colors-text100)}.fyvr122t:disabled,.fyvr122t[data-disabled]{border-bottom-color:var(--seq-colors-text100)}.fyvr122u:focus{border-bottom-color:var(--seq-colors-text100)}.fyvr122v:hover:not([disabled]){border-bottom-color:var(--seq-colors-text100)}.fyvr122w[data-state=checked]{border-bottom-color:var(--seq-colors-text100)}.fyvr122x,.fyvr122y:active{border-bottom-color:var(--seq-colors-text80)}.fyvr122z:disabled,.fyvr122z[data-disabled]{border-bottom-color:var(--seq-colors-text80)}.fyvr1230:focus{border-bottom-color:var(--seq-colors-text80)}.fyvr1231:hover:not([disabled]){border-bottom-color:var(--seq-colors-text80)}.fyvr1232[data-state=checked]{border-bottom-color:var(--seq-colors-text80)}.fyvr1233,.fyvr1234:active{border-bottom-color:var(--seq-colors-text50)}.fyvr1235:disabled,.fyvr1235[data-disabled]{border-bottom-color:var(--seq-colors-text50)}.fyvr1236:focus{border-bottom-color:var(--seq-colors-text50)}.fyvr1237:hover:not([disabled]){border-bottom-color:var(--seq-colors-text50)}.fyvr1238[data-state=checked]{border-bottom-color:var(--seq-colors-text50)}.fyvr1239,.fyvr123a:active{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr123b:disabled,.fyvr123b[data-disabled]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr123c:focus{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr123d:hover:not([disabled]){border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr123e[data-state=checked]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr123f,.fyvr123g:active{border-bottom-color:var(--seq-colors-background-primary)}.fyvr123h:disabled,.fyvr123h[data-disabled]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr123i:focus{border-bottom-color:var(--seq-colors-background-primary)}.fyvr123j:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-primary)}.fyvr123k[data-state=checked]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr123l,.fyvr123m:active{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr123n:disabled,.fyvr123n[data-disabled]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr123o:focus{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr123p:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-secondary)}.fyvr123q[data-state=checked]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr123r,.fyvr123s:active{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr123t:disabled,.fyvr123t[data-disabled]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr123u:focus{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr123v:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-contrast)}.fyvr123w[data-state=checked]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr123x,.fyvr123y:active{border-bottom-color:var(--seq-colors-background-muted)}.fyvr123z:disabled,.fyvr123z[data-disabled]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr1240:focus{border-bottom-color:var(--seq-colors-background-muted)}.fyvr1241:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-muted)}.fyvr1242[data-state=checked]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr1243,.fyvr1244:active{border-bottom-color:var(--seq-colors-background-control)}.fyvr1245:disabled,.fyvr1245[data-disabled]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1246:focus{border-bottom-color:var(--seq-colors-background-control)}.fyvr1247:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-control)}.fyvr1248[data-state=checked]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1249,.fyvr124a:active{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr124b:disabled,.fyvr124b[data-disabled]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr124c:focus{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr124d:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-inverse)}.fyvr124e[data-state=checked]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr124f,.fyvr124g:active{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr124h:disabled,.fyvr124h[data-disabled]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr124i:focus{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr124j:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr124k[data-state=checked]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr124l,.fyvr124m:active{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr124n:disabled,.fyvr124n[data-disabled]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr124o:focus{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr124p:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-overlay)}.fyvr124q[data-state=checked]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr124r,.fyvr124s:active{border-bottom-color:var(--seq-colors-background-raised)}.fyvr124t:disabled,.fyvr124t[data-disabled]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr124u:focus{border-bottom-color:var(--seq-colors-background-raised)}.fyvr124v:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-raised)}.fyvr124w[data-state=checked]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr124x,.fyvr124y:active{border-bottom-color:var(--seq-colors-button-glass)}.fyvr124z:disabled,.fyvr124z[data-disabled]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr1250:focus{border-bottom-color:var(--seq-colors-button-glass)}.fyvr1251:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-glass)}.fyvr1252[data-state=checked]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr1253,.fyvr1254:active{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1255:disabled,.fyvr1255[data-disabled]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1256:focus{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1257:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1258[data-state=checked]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1259,.fyvr125a:active{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr125b:disabled,.fyvr125b[data-disabled]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr125c:focus{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr125d:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-inverse)}.fyvr125e[data-state=checked]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr125f,.fyvr125g:active{border-bottom-color:var(--seq-colors-border-normal)}.fyvr125h:disabled,.fyvr125h[data-disabled]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr125i:focus{border-bottom-color:var(--seq-colors-border-normal)}.fyvr125j:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-normal)}.fyvr125k[data-state=checked]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr125l,.fyvr125m:active{border-bottom-color:var(--seq-colors-border-focus)}.fyvr125n:disabled,.fyvr125n[data-disabled]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr125o:focus{border-bottom-color:var(--seq-colors-border-focus)}.fyvr125p:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-focus)}.fyvr125q[data-state=checked]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr125r,.fyvr125s:active{border-bottom-style:solid}.fyvr125t:disabled,.fyvr125t[data-disabled]{border-bottom-style:solid}.fyvr125u:focus{border-bottom-style:solid}.fyvr125v:hover:not([disabled]){border-bottom-style:solid}.fyvr125w[data-state=checked]{border-bottom-style:solid}.fyvr125x,.fyvr125y:active{border-bottom-style:dashed}.fyvr125z:disabled,.fyvr125z[data-disabled]{border-bottom-style:dashed}.fyvr1260:focus{border-bottom-style:dashed}.fyvr1261:hover:not([disabled]){border-bottom-style:dashed}.fyvr1262[data-state=checked]{border-bottom-style:dashed}.fyvr1263,.fyvr1264:active{border-bottom-style:dotted}.fyvr1265:disabled,.fyvr1265[data-disabled]{border-bottom-style:dotted}.fyvr1266:focus{border-bottom-style:dotted}.fyvr1267:hover:not([disabled]){border-bottom-style:dotted}.fyvr1268[data-state=checked]{border-bottom-style:dotted}.fyvr1269,.fyvr126a:active{border-left-color:var(--seq-colors-black)}.fyvr126b:disabled,.fyvr126b[data-disabled]{border-left-color:var(--seq-colors-black)}.fyvr126c:focus{border-left-color:var(--seq-colors-black)}.fyvr126d:hover:not([disabled]){border-left-color:var(--seq-colors-black)}.fyvr126e[data-state=checked]{border-left-color:var(--seq-colors-black)}.fyvr126f,.fyvr126g:active{border-left-color:var(--seq-colors-white)}.fyvr126h:disabled,.fyvr126h[data-disabled]{border-left-color:var(--seq-colors-white)}.fyvr126i:focus{border-left-color:var(--seq-colors-white)}.fyvr126j:hover:not([disabled]){border-left-color:var(--seq-colors-white)}.fyvr126k[data-state=checked]{border-left-color:var(--seq-colors-white)}.fyvr126l,.fyvr126m:active{border-left-color:var(--seq-colors-inherit)}.fyvr126n:disabled,.fyvr126n[data-disabled]{border-left-color:var(--seq-colors-inherit)}.fyvr126o:focus{border-left-color:var(--seq-colors-inherit)}.fyvr126p:hover:not([disabled]){border-left-color:var(--seq-colors-inherit)}.fyvr126q[data-state=checked]{border-left-color:var(--seq-colors-inherit)}.fyvr126r,.fyvr126s:active{border-left-color:var(--seq-colors-transparent)}.fyvr126t:disabled,.fyvr126t[data-disabled]{border-left-color:var(--seq-colors-transparent)}.fyvr126u:focus{border-left-color:var(--seq-colors-transparent)}.fyvr126v:hover:not([disabled]){border-left-color:var(--seq-colors-transparent)}.fyvr126w[data-state=checked]{border-left-color:var(--seq-colors-transparent)}.fyvr126x,.fyvr126y:active{border-left-color:var(--seq-colors-positive)}.fyvr126z:disabled,.fyvr126z[data-disabled]{border-left-color:var(--seq-colors-positive)}.fyvr1270:focus{border-left-color:var(--seq-colors-positive)}.fyvr1271:hover:not([disabled]){border-left-color:var(--seq-colors-positive)}.fyvr1272[data-state=checked]{border-left-color:var(--seq-colors-positive)}.fyvr1273,.fyvr1274:active{border-left-color:var(--seq-colors-negative)}.fyvr1275:disabled,.fyvr1275[data-disabled]{border-left-color:var(--seq-colors-negative)}.fyvr1276:focus{border-left-color:var(--seq-colors-negative)}.fyvr1277:hover:not([disabled]){border-left-color:var(--seq-colors-negative)}.fyvr1278[data-state=checked]{border-left-color:var(--seq-colors-negative)}.fyvr1279,.fyvr127a:active{border-left-color:var(--seq-colors-info)}.fyvr127b:disabled,.fyvr127b[data-disabled]{border-left-color:var(--seq-colors-info)}.fyvr127c:focus{border-left-color:var(--seq-colors-info)}.fyvr127d:hover:not([disabled]){border-left-color:var(--seq-colors-info)}.fyvr127e[data-state=checked]{border-left-color:var(--seq-colors-info)}.fyvr127f,.fyvr127g:active{border-left-color:var(--seq-colors-warning)}.fyvr127h:disabled,.fyvr127h[data-disabled]{border-left-color:var(--seq-colors-warning)}.fyvr127i:focus{border-left-color:var(--seq-colors-warning)}.fyvr127j:hover:not([disabled]){border-left-color:var(--seq-colors-warning)}.fyvr127k[data-state=checked]{border-left-color:var(--seq-colors-warning)}.fyvr127l,.fyvr127m:active{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr127n:disabled,.fyvr127n[data-disabled]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr127o:focus{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr127p:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr127q[data-state=checked]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr127r,.fyvr127s:active{border-left-color:var(--seq-colors-gradient-primary)}.fyvr127t:disabled,.fyvr127t[data-disabled]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr127u:focus{border-left-color:var(--seq-colors-gradient-primary)}.fyvr127v:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-primary)}.fyvr127w[data-state=checked]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr127x,.fyvr127y:active{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr127z:disabled,.fyvr127z[data-disabled]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr1280:focus{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr1281:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-secondary)}.fyvr1282[data-state=checked]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr1283,.fyvr1284:active{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1285:disabled,.fyvr1285[data-disabled]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1286:focus{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1287:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1288[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1289,.fyvr128a:active{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr128b:disabled,.fyvr128b[data-disabled]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr128c:focus{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr128d:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-light)}.fyvr128e[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr128f,.fyvr128g:active{border-left-color:var(--seq-colors-avalance-dark)}.fyvr128h:disabled,.fyvr128h[data-disabled]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr128i:focus{border-left-color:var(--seq-colors-avalance-dark)}.fyvr128j:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-dark)}.fyvr128k[data-state=checked]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr128l,.fyvr128m:active{border-left-color:var(--seq-colors-avalance-light)}.fyvr128n:disabled,.fyvr128n[data-disabled]{border-left-color:var(--seq-colors-avalance-light)}.fyvr128o:focus{border-left-color:var(--seq-colors-avalance-light)}.fyvr128p:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-light)}.fyvr128q[data-state=checked]{border-left-color:var(--seq-colors-avalance-light)}.fyvr128r,.fyvr128s:active{border-left-color:var(--seq-colors-bsc-dark)}.fyvr128t:disabled,.fyvr128t[data-disabled]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr128u:focus{border-left-color:var(--seq-colors-bsc-dark)}.fyvr128v:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-dark)}.fyvr128w[data-state=checked]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr128x,.fyvr128y:active{border-left-color:var(--seq-colors-bsc-light)}.fyvr128z:disabled,.fyvr128z[data-disabled]{border-left-color:var(--seq-colors-bsc-light)}.fyvr1290:focus{border-left-color:var(--seq-colors-bsc-light)}.fyvr1291:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-light)}.fyvr1292[data-state=checked]{border-left-color:var(--seq-colors-bsc-light)}.fyvr1293,.fyvr1294:active{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1295:disabled,.fyvr1295[data-disabled]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1296:focus{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1297:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1298[data-state=checked]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1299,.fyvr129a:active{border-left-color:var(--seq-colors-ethereum-light)}.fyvr129b:disabled,.fyvr129b[data-disabled]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr129c:focus{border-left-color:var(--seq-colors-ethereum-light)}.fyvr129d:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-light)}.fyvr129e[data-state=checked]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr129f,.fyvr129g:active{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr129h:disabled,.fyvr129h[data-disabled]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr129i:focus{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr129j:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-dark)}.fyvr129k[data-state=checked]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr129l,.fyvr129m:active{border-left-color:var(--seq-colors-gnosis-light)}.fyvr129n:disabled,.fyvr129n[data-disabled]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr129o:focus{border-left-color:var(--seq-colors-gnosis-light)}.fyvr129p:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-light)}.fyvr129q[data-state=checked]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr129r,.fyvr129s:active{border-left-color:var(--seq-colors-polygon-dark)}.fyvr129t:disabled,.fyvr129t[data-disabled]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr129u:focus{border-left-color:var(--seq-colors-polygon-dark)}.fyvr129v:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-dark)}.fyvr129w[data-state=checked]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr129x,.fyvr129y:active{border-left-color:var(--seq-colors-polygon-light)}.fyvr129z:disabled,.fyvr129z[data-disabled]{border-left-color:var(--seq-colors-polygon-light)}.fyvr12a0:focus{border-left-color:var(--seq-colors-polygon-light)}.fyvr12a1:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-light)}.fyvr12a2[data-state=checked]{border-left-color:var(--seq-colors-polygon-light)}.fyvr12a3,.fyvr12a4:active{border-left-color:var(--seq-colors-text100)}.fyvr12a5:disabled,.fyvr12a5[data-disabled]{border-left-color:var(--seq-colors-text100)}.fyvr12a6:focus{border-left-color:var(--seq-colors-text100)}.fyvr12a7:hover:not([disabled]){border-left-color:var(--seq-colors-text100)}.fyvr12a8[data-state=checked]{border-left-color:var(--seq-colors-text100)}.fyvr12a9,.fyvr12aa:active{border-left-color:var(--seq-colors-text80)}.fyvr12ab:disabled,.fyvr12ab[data-disabled]{border-left-color:var(--seq-colors-text80)}.fyvr12ac:focus{border-left-color:var(--seq-colors-text80)}.fyvr12ad:hover:not([disabled]){border-left-color:var(--seq-colors-text80)}.fyvr12ae[data-state=checked]{border-left-color:var(--seq-colors-text80)}.fyvr12af,.fyvr12ag:active{border-left-color:var(--seq-colors-text50)}.fyvr12ah:disabled,.fyvr12ah[data-disabled]{border-left-color:var(--seq-colors-text50)}.fyvr12ai:focus{border-left-color:var(--seq-colors-text50)}.fyvr12aj:hover:not([disabled]){border-left-color:var(--seq-colors-text50)}.fyvr12ak[data-state=checked]{border-left-color:var(--seq-colors-text50)}.fyvr12al,.fyvr12am:active{border-left-color:var(--seq-colors-text-inverse100)}.fyvr12an:disabled,.fyvr12an[data-disabled]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr12ao:focus{border-left-color:var(--seq-colors-text-inverse100)}.fyvr12ap:hover:not([disabled]){border-left-color:var(--seq-colors-text-inverse100)}.fyvr12aq[data-state=checked]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr12ar,.fyvr12as:active{border-left-color:var(--seq-colors-background-primary)}.fyvr12at:disabled,.fyvr12at[data-disabled]{border-left-color:var(--seq-colors-background-primary)}.fyvr12au:focus{border-left-color:var(--seq-colors-background-primary)}.fyvr12av:hover:not([disabled]){border-left-color:var(--seq-colors-background-primary)}.fyvr12aw[data-state=checked]{border-left-color:var(--seq-colors-background-primary)}.fyvr12ax,.fyvr12ay:active{border-left-color:var(--seq-colors-background-secondary)}.fyvr12az:disabled,.fyvr12az[data-disabled]{border-left-color:var(--seq-colors-background-secondary)}.fyvr12b0:focus{border-left-color:var(--seq-colors-background-secondary)}.fyvr12b1:hover:not([disabled]){border-left-color:var(--seq-colors-background-secondary)}.fyvr12b2[data-state=checked]{border-left-color:var(--seq-colors-background-secondary)}.fyvr12b3,.fyvr12b4:active{border-left-color:var(--seq-colors-background-contrast)}.fyvr12b5:disabled,.fyvr12b5[data-disabled]{border-left-color:var(--seq-colors-background-contrast)}.fyvr12b6:focus{border-left-color:var(--seq-colors-background-contrast)}.fyvr12b7:hover:not([disabled]){border-left-color:var(--seq-colors-background-contrast)}.fyvr12b8[data-state=checked]{border-left-color:var(--seq-colors-background-contrast)}.fyvr12b9,.fyvr12ba:active{border-left-color:var(--seq-colors-background-muted)}.fyvr12bb:disabled,.fyvr12bb[data-disabled]{border-left-color:var(--seq-colors-background-muted)}.fyvr12bc:focus{border-left-color:var(--seq-colors-background-muted)}.fyvr12bd:hover:not([disabled]){border-left-color:var(--seq-colors-background-muted)}.fyvr12be[data-state=checked]{border-left-color:var(--seq-colors-background-muted)}.fyvr12bf,.fyvr12bg:active{border-left-color:var(--seq-colors-background-control)}.fyvr12bh:disabled,.fyvr12bh[data-disabled]{border-left-color:var(--seq-colors-background-control)}.fyvr12bi:focus{border-left-color:var(--seq-colors-background-control)}.fyvr12bj:hover:not([disabled]){border-left-color:var(--seq-colors-background-control)}.fyvr12bk[data-state=checked]{border-left-color:var(--seq-colors-background-control)}.fyvr12bl,.fyvr12bm:active{border-left-color:var(--seq-colors-background-inverse)}.fyvr12bn:disabled,.fyvr12bn[data-disabled]{border-left-color:var(--seq-colors-background-inverse)}.fyvr12bo:focus{border-left-color:var(--seq-colors-background-inverse)}.fyvr12bp:hover:not([disabled]){border-left-color:var(--seq-colors-background-inverse)}.fyvr12bq[data-state=checked]{border-left-color:var(--seq-colors-background-inverse)}.fyvr12br,.fyvr12bs:active{border-left-color:var(--seq-colors-background-backdrop)}.fyvr12bt:disabled,.fyvr12bt[data-disabled]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr12bu:focus{border-left-color:var(--seq-colors-background-backdrop)}.fyvr12bv:hover:not([disabled]){border-left-color:var(--seq-colors-background-backdrop)}.fyvr12bw[data-state=checked]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr12bx,.fyvr12by:active{border-left-color:var(--seq-colors-background-overlay)}.fyvr12bz:disabled,.fyvr12bz[data-disabled]{border-left-color:var(--seq-colors-background-overlay)}.fyvr12c0:focus{border-left-color:var(--seq-colors-background-overlay)}.fyvr12c1:hover:not([disabled]){border-left-color:var(--seq-colors-background-overlay)}.fyvr12c2[data-state=checked]{border-left-color:var(--seq-colors-background-overlay)}.fyvr12c3,.fyvr12c4:active{border-left-color:var(--seq-colors-background-raised)}.fyvr12c5:disabled,.fyvr12c5[data-disabled]{border-left-color:var(--seq-colors-background-raised)}.fyvr12c6:focus{border-left-color:var(--seq-colors-background-raised)}.fyvr12c7:hover:not([disabled]){border-left-color:var(--seq-colors-background-raised)}.fyvr12c8[data-state=checked]{border-left-color:var(--seq-colors-background-raised)}.fyvr12c9,.fyvr12ca:active{border-left-color:var(--seq-colors-button-glass)}.fyvr12cb:disabled,.fyvr12cb[data-disabled]{border-left-color:var(--seq-colors-button-glass)}.fyvr12cc:focus{border-left-color:var(--seq-colors-button-glass)}.fyvr12cd:hover:not([disabled]){border-left-color:var(--seq-colors-button-glass)}.fyvr12ce[data-state=checked]{border-left-color:var(--seq-colors-button-glass)}.fyvr12cf,.fyvr12cg:active{border-left-color:var(--seq-colors-button-emphasis)}.fyvr12ch:disabled,.fyvr12ch[data-disabled]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr12ci:focus{border-left-color:var(--seq-colors-button-emphasis)}.fyvr12cj:hover:not([disabled]){border-left-color:var(--seq-colors-button-emphasis)}.fyvr12ck[data-state=checked]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr12cl,.fyvr12cm:active{border-left-color:var(--seq-colors-button-inverse)}.fyvr12cn:disabled,.fyvr12cn[data-disabled]{border-left-color:var(--seq-colors-button-inverse)}.fyvr12co:focus{border-left-color:var(--seq-colors-button-inverse)}.fyvr12cp:hover:not([disabled]){border-left-color:var(--seq-colors-button-inverse)}.fyvr12cq[data-state=checked]{border-left-color:var(--seq-colors-button-inverse)}.fyvr12cr,.fyvr12cs:active{border-left-color:var(--seq-colors-border-normal)}.fyvr12ct:disabled,.fyvr12ct[data-disabled]{border-left-color:var(--seq-colors-border-normal)}.fyvr12cu:focus{border-left-color:var(--seq-colors-border-normal)}.fyvr12cv:hover:not([disabled]){border-left-color:var(--seq-colors-border-normal)}.fyvr12cw[data-state=checked]{border-left-color:var(--seq-colors-border-normal)}.fyvr12cx,.fyvr12cy:active{border-left-color:var(--seq-colors-border-focus)}.fyvr12cz:disabled,.fyvr12cz[data-disabled]{border-left-color:var(--seq-colors-border-focus)}.fyvr12d0:focus{border-left-color:var(--seq-colors-border-focus)}.fyvr12d1:hover:not([disabled]){border-left-color:var(--seq-colors-border-focus)}.fyvr12d2[data-state=checked]{border-left-color:var(--seq-colors-border-focus)}.fyvr12d3,.fyvr12d4:active{border-left-style:solid}.fyvr12d5:disabled,.fyvr12d5[data-disabled]{border-left-style:solid}.fyvr12d6:focus{border-left-style:solid}.fyvr12d7:hover:not([disabled]){border-left-style:solid}.fyvr12d8[data-state=checked]{border-left-style:solid}.fyvr12d9,.fyvr12da:active{border-left-style:dashed}.fyvr12db:disabled,.fyvr12db[data-disabled]{border-left-style:dashed}.fyvr12dc:focus{border-left-style:dashed}.fyvr12dd:hover:not([disabled]){border-left-style:dashed}.fyvr12de[data-state=checked]{border-left-style:dashed}.fyvr12df,.fyvr12dg:active{border-left-style:dotted}.fyvr12dh:disabled,.fyvr12dh[data-disabled]{border-left-style:dotted}.fyvr12di:focus{border-left-style:dotted}.fyvr12dj:hover:not([disabled]){border-left-style:dotted}.fyvr12dk[data-state=checked]{border-left-style:dotted}.fyvr12dl,.fyvr12dm:active{border-right-color:var(--seq-colors-black)}.fyvr12dn:disabled,.fyvr12dn[data-disabled]{border-right-color:var(--seq-colors-black)}.fyvr12do:focus{border-right-color:var(--seq-colors-black)}.fyvr12dp:hover:not([disabled]){border-right-color:var(--seq-colors-black)}.fyvr12dq[data-state=checked]{border-right-color:var(--seq-colors-black)}.fyvr12dr,.fyvr12ds:active{border-right-color:var(--seq-colors-white)}.fyvr12dt:disabled,.fyvr12dt[data-disabled]{border-right-color:var(--seq-colors-white)}.fyvr12du:focus{border-right-color:var(--seq-colors-white)}.fyvr12dv:hover:not([disabled]){border-right-color:var(--seq-colors-white)}.fyvr12dw[data-state=checked]{border-right-color:var(--seq-colors-white)}.fyvr12dx,.fyvr12dy:active{border-right-color:var(--seq-colors-inherit)}.fyvr12dz:disabled,.fyvr12dz[data-disabled]{border-right-color:var(--seq-colors-inherit)}.fyvr12e0:focus{border-right-color:var(--seq-colors-inherit)}.fyvr12e1:hover:not([disabled]){border-right-color:var(--seq-colors-inherit)}.fyvr12e2[data-state=checked]{border-right-color:var(--seq-colors-inherit)}.fyvr12e3,.fyvr12e4:active{border-right-color:var(--seq-colors-transparent)}.fyvr12e5:disabled,.fyvr12e5[data-disabled]{border-right-color:var(--seq-colors-transparent)}.fyvr12e6:focus{border-right-color:var(--seq-colors-transparent)}.fyvr12e7:hover:not([disabled]){border-right-color:var(--seq-colors-transparent)}.fyvr12e8[data-state=checked]{border-right-color:var(--seq-colors-transparent)}.fyvr12e9,.fyvr12ea:active{border-right-color:var(--seq-colors-positive)}.fyvr12eb:disabled,.fyvr12eb[data-disabled]{border-right-color:var(--seq-colors-positive)}.fyvr12ec:focus{border-right-color:var(--seq-colors-positive)}.fyvr12ed:hover:not([disabled]){border-right-color:var(--seq-colors-positive)}.fyvr12ee[data-state=checked]{border-right-color:var(--seq-colors-positive)}.fyvr12ef,.fyvr12eg:active{border-right-color:var(--seq-colors-negative)}.fyvr12eh:disabled,.fyvr12eh[data-disabled]{border-right-color:var(--seq-colors-negative)}.fyvr12ei:focus{border-right-color:var(--seq-colors-negative)}.fyvr12ej:hover:not([disabled]){border-right-color:var(--seq-colors-negative)}.fyvr12ek[data-state=checked]{border-right-color:var(--seq-colors-negative)}.fyvr12el,.fyvr12em:active{border-right-color:var(--seq-colors-info)}.fyvr12en:disabled,.fyvr12en[data-disabled]{border-right-color:var(--seq-colors-info)}.fyvr12eo:focus{border-right-color:var(--seq-colors-info)}.fyvr12ep:hover:not([disabled]){border-right-color:var(--seq-colors-info)}.fyvr12eq[data-state=checked]{border-right-color:var(--seq-colors-info)}.fyvr12er,.fyvr12es:active{border-right-color:var(--seq-colors-warning)}.fyvr12et:disabled,.fyvr12et[data-disabled]{border-right-color:var(--seq-colors-warning)}.fyvr12eu:focus{border-right-color:var(--seq-colors-warning)}.fyvr12ev:hover:not([disabled]){border-right-color:var(--seq-colors-warning)}.fyvr12ew[data-state=checked]{border-right-color:var(--seq-colors-warning)}.fyvr12ex,.fyvr12ey:active{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12ez:disabled,.fyvr12ez[data-disabled]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12f0:focus{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12f1:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12f2[data-state=checked]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12f3,.fyvr12f4:active{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12f5:disabled,.fyvr12f5[data-disabled]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12f6:focus{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12f7:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-primary)}.fyvr12f8[data-state=checked]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12f9,.fyvr12fa:active{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12fb:disabled,.fyvr12fb[data-disabled]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12fc:focus{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12fd:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12fe[data-state=checked]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12ff,.fyvr12fg:active{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12fh:disabled,.fyvr12fh[data-disabled]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12fi:focus{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12fj:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12fk[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12fl,.fyvr12fm:active{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12fn:disabled,.fyvr12fn[data-disabled]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12fo:focus{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12fp:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12fq[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12fr,.fyvr12fs:active{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12ft:disabled,.fyvr12ft[data-disabled]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12fu:focus{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12fv:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-dark)}.fyvr12fw[data-state=checked]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12fx,.fyvr12fy:active{border-right-color:var(--seq-colors-avalance-light)}.fyvr12fz:disabled,.fyvr12fz[data-disabled]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12g0:focus{border-right-color:var(--seq-colors-avalance-light)}.fyvr12g1:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-light)}.fyvr12g2[data-state=checked]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12g3,.fyvr12g4:active{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12g5:disabled,.fyvr12g5[data-disabled]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12g6:focus{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12g7:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-dark)}.fyvr12g8[data-state=checked]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12g9,.fyvr12ga:active{border-right-color:var(--seq-colors-bsc-light)}.fyvr12gb:disabled,.fyvr12gb[data-disabled]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12gc:focus{border-right-color:var(--seq-colors-bsc-light)}.fyvr12gd:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-light)}.fyvr12ge[data-state=checked]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12gf,.fyvr12gg:active{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12gh:disabled,.fyvr12gh[data-disabled]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12gi:focus{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12gj:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12gk[data-state=checked]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12gl,.fyvr12gm:active{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12gn:disabled,.fyvr12gn[data-disabled]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12go:focus{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12gp:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-light)}.fyvr12gq[data-state=checked]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12gr,.fyvr12gs:active{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12gt:disabled,.fyvr12gt[data-disabled]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12gu:focus{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12gv:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12gw[data-state=checked]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12gx,.fyvr12gy:active{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12gz:disabled,.fyvr12gz[data-disabled]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12h0:focus{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12h1:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-light)}.fyvr12h2[data-state=checked]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12h3,.fyvr12h4:active{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12h5:disabled,.fyvr12h5[data-disabled]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12h6:focus{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12h7:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-dark)}.fyvr12h8[data-state=checked]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12h9,.fyvr12ha:active{border-right-color:var(--seq-colors-polygon-light)}.fyvr12hb:disabled,.fyvr12hb[data-disabled]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12hc:focus{border-right-color:var(--seq-colors-polygon-light)}.fyvr12hd:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-light)}.fyvr12he[data-state=checked]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12hf,.fyvr12hg:active{border-right-color:var(--seq-colors-text100)}.fyvr12hh:disabled,.fyvr12hh[data-disabled]{border-right-color:var(--seq-colors-text100)}.fyvr12hi:focus{border-right-color:var(--seq-colors-text100)}.fyvr12hj:hover:not([disabled]){border-right-color:var(--seq-colors-text100)}.fyvr12hk[data-state=checked]{border-right-color:var(--seq-colors-text100)}.fyvr12hl,.fyvr12hm:active{border-right-color:var(--seq-colors-text80)}.fyvr12hn:disabled,.fyvr12hn[data-disabled]{border-right-color:var(--seq-colors-text80)}.fyvr12ho:focus{border-right-color:var(--seq-colors-text80)}.fyvr12hp:hover:not([disabled]){border-right-color:var(--seq-colors-text80)}.fyvr12hq[data-state=checked]{border-right-color:var(--seq-colors-text80)}.fyvr12hr,.fyvr12hs:active{border-right-color:var(--seq-colors-text50)}.fyvr12ht:disabled,.fyvr12ht[data-disabled]{border-right-color:var(--seq-colors-text50)}.fyvr12hu:focus{border-right-color:var(--seq-colors-text50)}.fyvr12hv:hover:not([disabled]){border-right-color:var(--seq-colors-text50)}.fyvr12hw[data-state=checked]{border-right-color:var(--seq-colors-text50)}.fyvr12hx,.fyvr12hy:active{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12hz:disabled,.fyvr12hz[data-disabled]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12i0:focus{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12i1:hover:not([disabled]){border-right-color:var(--seq-colors-text-inverse100)}.fyvr12i2[data-state=checked]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12i3,.fyvr12i4:active{border-right-color:var(--seq-colors-background-primary)}.fyvr12i5:disabled,.fyvr12i5[data-disabled]{border-right-color:var(--seq-colors-background-primary)}.fyvr12i6:focus{border-right-color:var(--seq-colors-background-primary)}.fyvr12i7:hover:not([disabled]){border-right-color:var(--seq-colors-background-primary)}.fyvr12i8[data-state=checked]{border-right-color:var(--seq-colors-background-primary)}.fyvr12i9,.fyvr12ia:active{border-right-color:var(--seq-colors-background-secondary)}.fyvr12ib:disabled,.fyvr12ib[data-disabled]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12ic:focus{border-right-color:var(--seq-colors-background-secondary)}.fyvr12id:hover:not([disabled]){border-right-color:var(--seq-colors-background-secondary)}.fyvr12ie[data-state=checked]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12if,.fyvr12ig:active{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ih:disabled,.fyvr12ih[data-disabled]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ii:focus{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ij:hover:not([disabled]){border-right-color:var(--seq-colors-background-contrast)}.fyvr12ik[data-state=checked]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12il,.fyvr12im:active{border-right-color:var(--seq-colors-background-muted)}.fyvr12in:disabled,.fyvr12in[data-disabled]{border-right-color:var(--seq-colors-background-muted)}.fyvr12io:focus{border-right-color:var(--seq-colors-background-muted)}.fyvr12ip:hover:not([disabled]){border-right-color:var(--seq-colors-background-muted)}.fyvr12iq[data-state=checked]{border-right-color:var(--seq-colors-background-muted)}.fyvr12ir,.fyvr12is:active{border-right-color:var(--seq-colors-background-control)}.fyvr12it:disabled,.fyvr12it[data-disabled]{border-right-color:var(--seq-colors-background-control)}.fyvr12iu:focus{border-right-color:var(--seq-colors-background-control)}.fyvr12iv:hover:not([disabled]){border-right-color:var(--seq-colors-background-control)}.fyvr12iw[data-state=checked]{border-right-color:var(--seq-colors-background-control)}.fyvr12ix,.fyvr12iy:active{border-right-color:var(--seq-colors-background-inverse)}.fyvr12iz:disabled,.fyvr12iz[data-disabled]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12j0:focus{border-right-color:var(--seq-colors-background-inverse)}.fyvr12j1:hover:not([disabled]){border-right-color:var(--seq-colors-background-inverse)}.fyvr12j2[data-state=checked]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12j3,.fyvr12j4:active{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12j5:disabled,.fyvr12j5[data-disabled]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12j6:focus{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12j7:hover:not([disabled]){border-right-color:var(--seq-colors-background-backdrop)}.fyvr12j8[data-state=checked]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12j9,.fyvr12ja:active{border-right-color:var(--seq-colors-background-overlay)}.fyvr12jb:disabled,.fyvr12jb[data-disabled]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12jc:focus{border-right-color:var(--seq-colors-background-overlay)}.fyvr12jd:hover:not([disabled]){border-right-color:var(--seq-colors-background-overlay)}.fyvr12je[data-state=checked]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12jf,.fyvr12jg:active{border-right-color:var(--seq-colors-background-raised)}.fyvr12jh:disabled,.fyvr12jh[data-disabled]{border-right-color:var(--seq-colors-background-raised)}.fyvr12ji:focus{border-right-color:var(--seq-colors-background-raised)}.fyvr12jj:hover:not([disabled]){border-right-color:var(--seq-colors-background-raised)}.fyvr12jk[data-state=checked]{border-right-color:var(--seq-colors-background-raised)}.fyvr12jl,.fyvr12jm:active{border-right-color:var(--seq-colors-button-glass)}.fyvr12jn:disabled,.fyvr12jn[data-disabled]{border-right-color:var(--seq-colors-button-glass)}.fyvr12jo:focus{border-right-color:var(--seq-colors-button-glass)}.fyvr12jp:hover:not([disabled]){border-right-color:var(--seq-colors-button-glass)}.fyvr12jq[data-state=checked]{border-right-color:var(--seq-colors-button-glass)}.fyvr12jr,.fyvr12js:active{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12jt:disabled,.fyvr12jt[data-disabled]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12ju:focus{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12jv:hover:not([disabled]){border-right-color:var(--seq-colors-button-emphasis)}.fyvr12jw[data-state=checked]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12jx,.fyvr12jy:active{border-right-color:var(--seq-colors-button-inverse)}.fyvr12jz:disabled,.fyvr12jz[data-disabled]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12k0:focus{border-right-color:var(--seq-colors-button-inverse)}.fyvr12k1:hover:not([disabled]){border-right-color:var(--seq-colors-button-inverse)}.fyvr12k2[data-state=checked]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12k3,.fyvr12k4:active{border-right-color:var(--seq-colors-border-normal)}.fyvr12k5:disabled,.fyvr12k5[data-disabled]{border-right-color:var(--seq-colors-border-normal)}.fyvr12k6:focus{border-right-color:var(--seq-colors-border-normal)}.fyvr12k7:hover:not([disabled]){border-right-color:var(--seq-colors-border-normal)}.fyvr12k8[data-state=checked]{border-right-color:var(--seq-colors-border-normal)}.fyvr12k9,.fyvr12ka:active{border-right-color:var(--seq-colors-border-focus)}.fyvr12kb:disabled,.fyvr12kb[data-disabled]{border-right-color:var(--seq-colors-border-focus)}.fyvr12kc:focus{border-right-color:var(--seq-colors-border-focus)}.fyvr12kd:hover:not([disabled]){border-right-color:var(--seq-colors-border-focus)}.fyvr12ke[data-state=checked]{border-right-color:var(--seq-colors-border-focus)}.fyvr12kf,.fyvr12kg:active{border-right-style:solid}.fyvr12kh:disabled,.fyvr12kh[data-disabled]{border-right-style:solid}.fyvr12ki:focus{border-right-style:solid}.fyvr12kj:hover:not([disabled]){border-right-style:solid}.fyvr12kk[data-state=checked]{border-right-style:solid}.fyvr12kl,.fyvr12km:active{border-right-style:dashed}.fyvr12kn:disabled,.fyvr12kn[data-disabled]{border-right-style:dashed}.fyvr12ko:focus{border-right-style:dashed}.fyvr12kp:hover:not([disabled]){border-right-style:dashed}.fyvr12kq[data-state=checked]{border-right-style:dashed}.fyvr12kr,.fyvr12ks:active{border-right-style:dotted}.fyvr12kt:disabled,.fyvr12kt[data-disabled]{border-right-style:dotted}.fyvr12ku:focus{border-right-style:dotted}.fyvr12kv:hover:not([disabled]){border-right-style:dotted}.fyvr12kw[data-state=checked]{border-right-style:dotted}.fyvr12kx,.fyvr12ky:active{border-top-color:var(--seq-colors-black)}.fyvr12kz:disabled,.fyvr12kz[data-disabled]{border-top-color:var(--seq-colors-black)}.fyvr12l0:focus{border-top-color:var(--seq-colors-black)}.fyvr12l1:hover:not([disabled]){border-top-color:var(--seq-colors-black)}.fyvr12l2[data-state=checked]{border-top-color:var(--seq-colors-black)}.fyvr12l3,.fyvr12l4:active{border-top-color:var(--seq-colors-white)}.fyvr12l5:disabled,.fyvr12l5[data-disabled]{border-top-color:var(--seq-colors-white)}.fyvr12l6:focus{border-top-color:var(--seq-colors-white)}.fyvr12l7:hover:not([disabled]){border-top-color:var(--seq-colors-white)}.fyvr12l8[data-state=checked]{border-top-color:var(--seq-colors-white)}.fyvr12l9,.fyvr12la:active{border-top-color:var(--seq-colors-inherit)}.fyvr12lb:disabled,.fyvr12lb[data-disabled]{border-top-color:var(--seq-colors-inherit)}.fyvr12lc:focus{border-top-color:var(--seq-colors-inherit)}.fyvr12ld:hover:not([disabled]){border-top-color:var(--seq-colors-inherit)}.fyvr12le[data-state=checked]{border-top-color:var(--seq-colors-inherit)}.fyvr12lf,.fyvr12lg:active{border-top-color:var(--seq-colors-transparent)}.fyvr12lh:disabled,.fyvr12lh[data-disabled]{border-top-color:var(--seq-colors-transparent)}.fyvr12li:focus{border-top-color:var(--seq-colors-transparent)}.fyvr12lj:hover:not([disabled]){border-top-color:var(--seq-colors-transparent)}.fyvr12lk[data-state=checked]{border-top-color:var(--seq-colors-transparent)}.fyvr12ll,.fyvr12lm:active{border-top-color:var(--seq-colors-positive)}.fyvr12ln:disabled,.fyvr12ln[data-disabled]{border-top-color:var(--seq-colors-positive)}.fyvr12lo:focus{border-top-color:var(--seq-colors-positive)}.fyvr12lp:hover:not([disabled]){border-top-color:var(--seq-colors-positive)}.fyvr12lq[data-state=checked]{border-top-color:var(--seq-colors-positive)}.fyvr12lr,.fyvr12ls:active{border-top-color:var(--seq-colors-negative)}.fyvr12lt:disabled,.fyvr12lt[data-disabled]{border-top-color:var(--seq-colors-negative)}.fyvr12lu:focus{border-top-color:var(--seq-colors-negative)}.fyvr12lv:hover:not([disabled]){border-top-color:var(--seq-colors-negative)}.fyvr12lw[data-state=checked]{border-top-color:var(--seq-colors-negative)}.fyvr12lx,.fyvr12ly:active{border-top-color:var(--seq-colors-info)}.fyvr12lz:disabled,.fyvr12lz[data-disabled]{border-top-color:var(--seq-colors-info)}.fyvr12m0:focus{border-top-color:var(--seq-colors-info)}.fyvr12m1:hover:not([disabled]){border-top-color:var(--seq-colors-info)}.fyvr12m2[data-state=checked]{border-top-color:var(--seq-colors-info)}.fyvr12m3,.fyvr12m4:active{border-top-color:var(--seq-colors-warning)}.fyvr12m5:disabled,.fyvr12m5[data-disabled]{border-top-color:var(--seq-colors-warning)}.fyvr12m6:focus{border-top-color:var(--seq-colors-warning)}.fyvr12m7:hover:not([disabled]){border-top-color:var(--seq-colors-warning)}.fyvr12m8[data-state=checked]{border-top-color:var(--seq-colors-warning)}.fyvr12m9,.fyvr12ma:active{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12mb:disabled,.fyvr12mb[data-disabled]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12mc:focus{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12md:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12me[data-state=checked]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12mf,.fyvr12mg:active{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12mh:disabled,.fyvr12mh[data-disabled]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12mi:focus{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12mj:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-primary)}.fyvr12mk[data-state=checked]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ml,.fyvr12mm:active{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12mn:disabled,.fyvr12mn[data-disabled]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12mo:focus{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12mp:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12mq[data-state=checked]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12mr,.fyvr12ms:active{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12mt:disabled,.fyvr12mt[data-disabled]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12mu:focus{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12mv:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12mw[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12mx,.fyvr12my:active{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12mz:disabled,.fyvr12mz[data-disabled]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12n0:focus{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12n1:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12n2[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12n3,.fyvr12n4:active{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12n5:disabled,.fyvr12n5[data-disabled]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12n6:focus{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12n7:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-dark)}.fyvr12n8[data-state=checked]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12n9,.fyvr12na:active{border-top-color:var(--seq-colors-avalance-light)}.fyvr12nb:disabled,.fyvr12nb[data-disabled]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12nc:focus{border-top-color:var(--seq-colors-avalance-light)}.fyvr12nd:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-light)}.fyvr12ne[data-state=checked]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12nf,.fyvr12ng:active{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12nh:disabled,.fyvr12nh[data-disabled]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12ni:focus{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12nj:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-dark)}.fyvr12nk[data-state=checked]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12nl,.fyvr12nm:active{border-top-color:var(--seq-colors-bsc-light)}.fyvr12nn:disabled,.fyvr12nn[data-disabled]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12no:focus{border-top-color:var(--seq-colors-bsc-light)}.fyvr12np:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-light)}.fyvr12nq[data-state=checked]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12nr,.fyvr12ns:active{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12nt:disabled,.fyvr12nt[data-disabled]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12nu:focus{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12nv:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12nw[data-state=checked]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12nx,.fyvr12ny:active{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12nz:disabled,.fyvr12nz[data-disabled]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12o0:focus{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12o1:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-light)}.fyvr12o2[data-state=checked]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12o3,.fyvr12o4:active{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12o5:disabled,.fyvr12o5[data-disabled]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12o6:focus{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12o7:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12o8[data-state=checked]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12o9,.fyvr12oa:active{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12ob:disabled,.fyvr12ob[data-disabled]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12oc:focus{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12od:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-light)}.fyvr12oe[data-state=checked]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12of,.fyvr12og:active{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12oh:disabled,.fyvr12oh[data-disabled]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12oi:focus{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12oj:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ok[data-state=checked]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ol,.fyvr12om:active{border-top-color:var(--seq-colors-polygon-light)}.fyvr12on:disabled,.fyvr12on[data-disabled]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12oo:focus{border-top-color:var(--seq-colors-polygon-light)}.fyvr12op:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-light)}.fyvr12oq[data-state=checked]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12or,.fyvr12os:active{border-top-color:var(--seq-colors-text100)}.fyvr12ot:disabled,.fyvr12ot[data-disabled]{border-top-color:var(--seq-colors-text100)}.fyvr12ou:focus{border-top-color:var(--seq-colors-text100)}.fyvr12ov:hover:not([disabled]){border-top-color:var(--seq-colors-text100)}.fyvr12ow[data-state=checked]{border-top-color:var(--seq-colors-text100)}.fyvr12ox,.fyvr12oy:active{border-top-color:var(--seq-colors-text80)}.fyvr12oz:disabled,.fyvr12oz[data-disabled]{border-top-color:var(--seq-colors-text80)}.fyvr12p0:focus{border-top-color:var(--seq-colors-text80)}.fyvr12p1:hover:not([disabled]){border-top-color:var(--seq-colors-text80)}.fyvr12p2[data-state=checked]{border-top-color:var(--seq-colors-text80)}.fyvr12p3,.fyvr12p4:active{border-top-color:var(--seq-colors-text50)}.fyvr12p5:disabled,.fyvr12p5[data-disabled]{border-top-color:var(--seq-colors-text50)}.fyvr12p6:focus{border-top-color:var(--seq-colors-text50)}.fyvr12p7:hover:not([disabled]){border-top-color:var(--seq-colors-text50)}.fyvr12p8[data-state=checked]{border-top-color:var(--seq-colors-text50)}.fyvr12p9,.fyvr12pa:active{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12pb:disabled,.fyvr12pb[data-disabled]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12pc:focus{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12pd:hover:not([disabled]){border-top-color:var(--seq-colors-text-inverse100)}.fyvr12pe[data-state=checked]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12pf,.fyvr12pg:active{border-top-color:var(--seq-colors-background-primary)}.fyvr12ph:disabled,.fyvr12ph[data-disabled]{border-top-color:var(--seq-colors-background-primary)}.fyvr12pi:focus{border-top-color:var(--seq-colors-background-primary)}.fyvr12pj:hover:not([disabled]){border-top-color:var(--seq-colors-background-primary)}.fyvr12pk[data-state=checked]{border-top-color:var(--seq-colors-background-primary)}.fyvr12pl,.fyvr12pm:active{border-top-color:var(--seq-colors-background-secondary)}.fyvr12pn:disabled,.fyvr12pn[data-disabled]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12po:focus{border-top-color:var(--seq-colors-background-secondary)}.fyvr12pp:hover:not([disabled]){border-top-color:var(--seq-colors-background-secondary)}.fyvr12pq[data-state=checked]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12pr,.fyvr12ps:active{border-top-color:var(--seq-colors-background-contrast)}.fyvr12pt:disabled,.fyvr12pt[data-disabled]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12pu:focus{border-top-color:var(--seq-colors-background-contrast)}.fyvr12pv:hover:not([disabled]){border-top-color:var(--seq-colors-background-contrast)}.fyvr12pw[data-state=checked]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12px,.fyvr12py:active{border-top-color:var(--seq-colors-background-muted)}.fyvr12pz:disabled,.fyvr12pz[data-disabled]{border-top-color:var(--seq-colors-background-muted)}.fyvr12q0:focus{border-top-color:var(--seq-colors-background-muted)}.fyvr12q1:hover:not([disabled]){border-top-color:var(--seq-colors-background-muted)}.fyvr12q2[data-state=checked]{border-top-color:var(--seq-colors-background-muted)}.fyvr12q3,.fyvr12q4:active{border-top-color:var(--seq-colors-background-control)}.fyvr12q5:disabled,.fyvr12q5[data-disabled]{border-top-color:var(--seq-colors-background-control)}.fyvr12q6:focus{border-top-color:var(--seq-colors-background-control)}.fyvr12q7:hover:not([disabled]){border-top-color:var(--seq-colors-background-control)}.fyvr12q8[data-state=checked]{border-top-color:var(--seq-colors-background-control)}.fyvr12q9,.fyvr12qa:active{border-top-color:var(--seq-colors-background-inverse)}.fyvr12qb:disabled,.fyvr12qb[data-disabled]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12qc:focus{border-top-color:var(--seq-colors-background-inverse)}.fyvr12qd:hover:not([disabled]){border-top-color:var(--seq-colors-background-inverse)}.fyvr12qe[data-state=checked]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12qf,.fyvr12qg:active{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12qh:disabled,.fyvr12qh[data-disabled]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12qi:focus{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12qj:hover:not([disabled]){border-top-color:var(--seq-colors-background-backdrop)}.fyvr12qk[data-state=checked]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12ql,.fyvr12qm:active{border-top-color:var(--seq-colors-background-overlay)}.fyvr12qn:disabled,.fyvr12qn[data-disabled]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12qo:focus{border-top-color:var(--seq-colors-background-overlay)}.fyvr12qp:hover:not([disabled]){border-top-color:var(--seq-colors-background-overlay)}.fyvr12qq[data-state=checked]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12qr,.fyvr12qs:active{border-top-color:var(--seq-colors-background-raised)}.fyvr12qt:disabled,.fyvr12qt[data-disabled]{border-top-color:var(--seq-colors-background-raised)}.fyvr12qu:focus{border-top-color:var(--seq-colors-background-raised)}.fyvr12qv:hover:not([disabled]){border-top-color:var(--seq-colors-background-raised)}.fyvr12qw[data-state=checked]{border-top-color:var(--seq-colors-background-raised)}.fyvr12qx,.fyvr12qy:active{border-top-color:var(--seq-colors-button-glass)}.fyvr12qz:disabled,.fyvr12qz[data-disabled]{border-top-color:var(--seq-colors-button-glass)}.fyvr12r0:focus{border-top-color:var(--seq-colors-button-glass)}.fyvr12r1:hover:not([disabled]){border-top-color:var(--seq-colors-button-glass)}.fyvr12r2[data-state=checked]{border-top-color:var(--seq-colors-button-glass)}.fyvr12r3,.fyvr12r4:active{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12r5:disabled,.fyvr12r5[data-disabled]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12r6:focus{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12r7:hover:not([disabled]){border-top-color:var(--seq-colors-button-emphasis)}.fyvr12r8[data-state=checked]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12r9,.fyvr12ra:active{border-top-color:var(--seq-colors-button-inverse)}.fyvr12rb:disabled,.fyvr12rb[data-disabled]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12rc:focus{border-top-color:var(--seq-colors-button-inverse)}.fyvr12rd:hover:not([disabled]){border-top-color:var(--seq-colors-button-inverse)}.fyvr12re[data-state=checked]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12rf,.fyvr12rg:active{border-top-color:var(--seq-colors-border-normal)}.fyvr12rh:disabled,.fyvr12rh[data-disabled]{border-top-color:var(--seq-colors-border-normal)}.fyvr12ri:focus{border-top-color:var(--seq-colors-border-normal)}.fyvr12rj:hover:not([disabled]){border-top-color:var(--seq-colors-border-normal)}.fyvr12rk[data-state=checked]{border-top-color:var(--seq-colors-border-normal)}.fyvr12rl,.fyvr12rm:active{border-top-color:var(--seq-colors-border-focus)}.fyvr12rn:disabled,.fyvr12rn[data-disabled]{border-top-color:var(--seq-colors-border-focus)}.fyvr12ro:focus{border-top-color:var(--seq-colors-border-focus)}.fyvr12rp:hover:not([disabled]){border-top-color:var(--seq-colors-border-focus)}.fyvr12rq[data-state=checked]{border-top-color:var(--seq-colors-border-focus)}.fyvr12rr,.fyvr12rs:active{border-top-style:solid}.fyvr12rt:disabled,.fyvr12rt[data-disabled]{border-top-style:solid}.fyvr12ru:focus{border-top-style:solid}.fyvr12rv:hover:not([disabled]){border-top-style:solid}.fyvr12rw[data-state=checked]{border-top-style:solid}.fyvr12rx,.fyvr12ry:active{border-top-style:dashed}.fyvr12rz:disabled,.fyvr12rz[data-disabled]{border-top-style:dashed}.fyvr12s0:focus{border-top-style:dashed}.fyvr12s1:hover:not([disabled]){border-top-style:dashed}.fyvr12s2[data-state=checked]{border-top-style:dashed}.fyvr12s3,.fyvr12s4:active{border-top-style:dotted}.fyvr12s5:disabled,.fyvr12s5[data-disabled]{border-top-style:dotted}.fyvr12s6:focus{border-top-style:dotted}.fyvr12s7:hover:not([disabled]){border-top-style:dotted}.fyvr12s8[data-state=checked]{border-top-style:dotted}.fyvr12s9,.fyvr12sa:active{border:none}.fyvr12sb:disabled,.fyvr12sb[data-disabled]{border:none}.fyvr12sc:focus{border:none}.fyvr12sd:hover:not([disabled]){border:none}.fyvr12se[data-state=checked]{border:none}.fyvr12sf,.fyvr12sg:active{color:var(--seq-colors-black)}.fyvr12sh:disabled,.fyvr12sh[data-disabled]{color:var(--seq-colors-black)}.fyvr12si:focus{color:var(--seq-colors-black)}.fyvr12sj:hover:not([disabled]){color:var(--seq-colors-black)}.fyvr12sk[data-state=checked]{color:var(--seq-colors-black)}.fyvr12sl,.fyvr12sm:active{color:var(--seq-colors-white)}.fyvr12sn:disabled,.fyvr12sn[data-disabled]{color:var(--seq-colors-white)}.fyvr12so:focus{color:var(--seq-colors-white)}.fyvr12sp:hover:not([disabled]){color:var(--seq-colors-white)}.fyvr12sq[data-state=checked]{color:var(--seq-colors-white)}.fyvr12sr,.fyvr12ss:active{color:var(--seq-colors-inherit)}.fyvr12st:disabled,.fyvr12st[data-disabled]{color:var(--seq-colors-inherit)}.fyvr12su:focus{color:var(--seq-colors-inherit)}.fyvr12sv:hover:not([disabled]){color:var(--seq-colors-inherit)}.fyvr12sw[data-state=checked]{color:var(--seq-colors-inherit)}.fyvr12sx,.fyvr12sy:active{color:var(--seq-colors-transparent)}.fyvr12sz:disabled,.fyvr12sz[data-disabled]{color:var(--seq-colors-transparent)}.fyvr12t0:focus{color:var(--seq-colors-transparent)}.fyvr12t1:hover:not([disabled]){color:var(--seq-colors-transparent)}.fyvr12t2[data-state=checked]{color:var(--seq-colors-transparent)}.fyvr12t3,.fyvr12t4:active{color:var(--seq-colors-positive)}.fyvr12t5:disabled,.fyvr12t5[data-disabled]{color:var(--seq-colors-positive)}.fyvr12t6:focus{color:var(--seq-colors-positive)}.fyvr12t7:hover:not([disabled]){color:var(--seq-colors-positive)}.fyvr12t8[data-state=checked]{color:var(--seq-colors-positive)}.fyvr12t9,.fyvr12ta:active{color:var(--seq-colors-negative)}.fyvr12tb:disabled,.fyvr12tb[data-disabled]{color:var(--seq-colors-negative)}.fyvr12tc:focus{color:var(--seq-colors-negative)}.fyvr12td:hover:not([disabled]){color:var(--seq-colors-negative)}.fyvr12te[data-state=checked]{color:var(--seq-colors-negative)}.fyvr12tf,.fyvr12tg:active{color:var(--seq-colors-info)}.fyvr12th:disabled,.fyvr12th[data-disabled]{color:var(--seq-colors-info)}.fyvr12ti:focus{color:var(--seq-colors-info)}.fyvr12tj:hover:not([disabled]){color:var(--seq-colors-info)}.fyvr12tk[data-state=checked]{color:var(--seq-colors-info)}.fyvr12tl,.fyvr12tm:active{color:var(--seq-colors-warning)}.fyvr12tn:disabled,.fyvr12tn[data-disabled]{color:var(--seq-colors-warning)}.fyvr12to:focus{color:var(--seq-colors-warning)}.fyvr12tp:hover:not([disabled]){color:var(--seq-colors-warning)}.fyvr12tq[data-state=checked]{color:var(--seq-colors-warning)}.fyvr12tr,.fyvr12ts:active{color:var(--seq-colors-gradient-backdrop)}.fyvr12tt:disabled,.fyvr12tt[data-disabled]{color:var(--seq-colors-gradient-backdrop)}.fyvr12tu:focus{color:var(--seq-colors-gradient-backdrop)}.fyvr12tv:hover:not([disabled]){color:var(--seq-colors-gradient-backdrop)}.fyvr12tw[data-state=checked]{color:var(--seq-colors-gradient-backdrop)}.fyvr12tx,.fyvr12ty:active{color:var(--seq-colors-gradient-primary)}.fyvr12tz:disabled,.fyvr12tz[data-disabled]{color:var(--seq-colors-gradient-primary)}.fyvr12u0:focus{color:var(--seq-colors-gradient-primary)}.fyvr12u1:hover:not([disabled]){color:var(--seq-colors-gradient-primary)}.fyvr12u2[data-state=checked]{color:var(--seq-colors-gradient-primary)}.fyvr12u3,.fyvr12u4:active{color:var(--seq-colors-gradient-secondary)}.fyvr12u5:disabled,.fyvr12u5[data-disabled]{color:var(--seq-colors-gradient-secondary)}.fyvr12u6:focus{color:var(--seq-colors-gradient-secondary)}.fyvr12u7:hover:not([disabled]){color:var(--seq-colors-gradient-secondary)}.fyvr12u8[data-state=checked]{color:var(--seq-colors-gradient-secondary)}.fyvr12u9,.fyvr12ua:active{color:var(--seq-colors-arbitrum-dark)}.fyvr12ub:disabled,.fyvr12ub[data-disabled]{color:var(--seq-colors-arbitrum-dark)}.fyvr12uc:focus{color:var(--seq-colors-arbitrum-dark)}.fyvr12ud:hover:not([disabled]){color:var(--seq-colors-arbitrum-dark)}.fyvr12ue[data-state=checked]{color:var(--seq-colors-arbitrum-dark)}.fyvr12uf,.fyvr12ug:active{color:var(--seq-colors-arbitrum-light)}.fyvr12uh:disabled,.fyvr12uh[data-disabled]{color:var(--seq-colors-arbitrum-light)}.fyvr12ui:focus{color:var(--seq-colors-arbitrum-light)}.fyvr12uj:hover:not([disabled]){color:var(--seq-colors-arbitrum-light)}.fyvr12uk[data-state=checked]{color:var(--seq-colors-arbitrum-light)}.fyvr12ul,.fyvr12um:active{color:var(--seq-colors-avalance-dark)}.fyvr12un:disabled,.fyvr12un[data-disabled]{color:var(--seq-colors-avalance-dark)}.fyvr12uo:focus{color:var(--seq-colors-avalance-dark)}.fyvr12up:hover:not([disabled]){color:var(--seq-colors-avalance-dark)}.fyvr12uq[data-state=checked]{color:var(--seq-colors-avalance-dark)}.fyvr12ur,.fyvr12us:active{color:var(--seq-colors-avalance-light)}.fyvr12ut:disabled,.fyvr12ut[data-disabled]{color:var(--seq-colors-avalance-light)}.fyvr12uu:focus{color:var(--seq-colors-avalance-light)}.fyvr12uv:hover:not([disabled]){color:var(--seq-colors-avalance-light)}.fyvr12uw[data-state=checked]{color:var(--seq-colors-avalance-light)}.fyvr12ux,.fyvr12uy:active{color:var(--seq-colors-bsc-dark)}.fyvr12uz:disabled,.fyvr12uz[data-disabled]{color:var(--seq-colors-bsc-dark)}.fyvr12v0:focus{color:var(--seq-colors-bsc-dark)}.fyvr12v1:hover:not([disabled]){color:var(--seq-colors-bsc-dark)}.fyvr12v2[data-state=checked]{color:var(--seq-colors-bsc-dark)}.fyvr12v3,.fyvr12v4:active{color:var(--seq-colors-bsc-light)}.fyvr12v5:disabled,.fyvr12v5[data-disabled]{color:var(--seq-colors-bsc-light)}.fyvr12v6:focus{color:var(--seq-colors-bsc-light)}.fyvr12v7:hover:not([disabled]){color:var(--seq-colors-bsc-light)}.fyvr12v8[data-state=checked]{color:var(--seq-colors-bsc-light)}.fyvr12v9,.fyvr12va:active{color:var(--seq-colors-ethereum-dark)}.fyvr12vb:disabled,.fyvr12vb[data-disabled]{color:var(--seq-colors-ethereum-dark)}.fyvr12vc:focus{color:var(--seq-colors-ethereum-dark)}.fyvr12vd:hover:not([disabled]){color:var(--seq-colors-ethereum-dark)}.fyvr12ve[data-state=checked]{color:var(--seq-colors-ethereum-dark)}.fyvr12vf,.fyvr12vg:active{color:var(--seq-colors-ethereum-light)}.fyvr12vh:disabled,.fyvr12vh[data-disabled]{color:var(--seq-colors-ethereum-light)}.fyvr12vi:focus{color:var(--seq-colors-ethereum-light)}.fyvr12vj:hover:not([disabled]){color:var(--seq-colors-ethereum-light)}.fyvr12vk[data-state=checked]{color:var(--seq-colors-ethereum-light)}.fyvr12vl,.fyvr12vm:active{color:var(--seq-colors-gnosis-dark)}.fyvr12vn:disabled,.fyvr12vn[data-disabled]{color:var(--seq-colors-gnosis-dark)}.fyvr12vo:focus{color:var(--seq-colors-gnosis-dark)}.fyvr12vp:hover:not([disabled]){color:var(--seq-colors-gnosis-dark)}.fyvr12vq[data-state=checked]{color:var(--seq-colors-gnosis-dark)}.fyvr12vr,.fyvr12vs:active{color:var(--seq-colors-gnosis-light)}.fyvr12vt:disabled,.fyvr12vt[data-disabled]{color:var(--seq-colors-gnosis-light)}.fyvr12vu:focus{color:var(--seq-colors-gnosis-light)}.fyvr12vv:hover:not([disabled]){color:var(--seq-colors-gnosis-light)}.fyvr12vw[data-state=checked]{color:var(--seq-colors-gnosis-light)}.fyvr12vx,.fyvr12vy:active{color:var(--seq-colors-polygon-dark)}.fyvr12vz:disabled,.fyvr12vz[data-disabled]{color:var(--seq-colors-polygon-dark)}.fyvr12w0:focus{color:var(--seq-colors-polygon-dark)}.fyvr12w1:hover:not([disabled]){color:var(--seq-colors-polygon-dark)}.fyvr12w2[data-state=checked]{color:var(--seq-colors-polygon-dark)}.fyvr12w3,.fyvr12w4:active{color:var(--seq-colors-polygon-light)}.fyvr12w5:disabled,.fyvr12w5[data-disabled]{color:var(--seq-colors-polygon-light)}.fyvr12w6:focus{color:var(--seq-colors-polygon-light)}.fyvr12w7:hover:not([disabled]){color:var(--seq-colors-polygon-light)}.fyvr12w8[data-state=checked]{color:var(--seq-colors-polygon-light)}.fyvr12w9,.fyvr12wa:active{color:var(--seq-colors-text100)}.fyvr12wb:disabled,.fyvr12wb[data-disabled]{color:var(--seq-colors-text100)}.fyvr12wc:focus{color:var(--seq-colors-text100)}.fyvr12wd:hover:not([disabled]){color:var(--seq-colors-text100)}.fyvr12we[data-state=checked]{color:var(--seq-colors-text100)}.fyvr12wf,.fyvr12wg:active{color:var(--seq-colors-text80)}.fyvr12wh:disabled,.fyvr12wh[data-disabled]{color:var(--seq-colors-text80)}.fyvr12wi:focus{color:var(--seq-colors-text80)}.fyvr12wj:hover:not([disabled]){color:var(--seq-colors-text80)}.fyvr12wk[data-state=checked]{color:var(--seq-colors-text80)}.fyvr12wl,.fyvr12wm:active{color:var(--seq-colors-text50)}.fyvr12wn:disabled,.fyvr12wn[data-disabled]{color:var(--seq-colors-text50)}.fyvr12wo:focus{color:var(--seq-colors-text50)}.fyvr12wp:hover:not([disabled]){color:var(--seq-colors-text50)}.fyvr12wq[data-state=checked]{color:var(--seq-colors-text50)}.fyvr12wr,.fyvr12ws:active{color:var(--seq-colors-text-inverse100)}.fyvr12wt:disabled,.fyvr12wt[data-disabled]{color:var(--seq-colors-text-inverse100)}.fyvr12wu:focus{color:var(--seq-colors-text-inverse100)}.fyvr12wv:hover:not([disabled]){color:var(--seq-colors-text-inverse100)}.fyvr12ww[data-state=checked]{color:var(--seq-colors-text-inverse100)}.fyvr12wx,.fyvr12wy:active{color:var(--seq-colors-background-primary)}.fyvr12wz:disabled,.fyvr12wz[data-disabled]{color:var(--seq-colors-background-primary)}.fyvr12x0:focus{color:var(--seq-colors-background-primary)}.fyvr12x1:hover:not([disabled]){color:var(--seq-colors-background-primary)}.fyvr12x2[data-state=checked]{color:var(--seq-colors-background-primary)}.fyvr12x3,.fyvr12x4:active{color:var(--seq-colors-background-secondary)}.fyvr12x5:disabled,.fyvr12x5[data-disabled]{color:var(--seq-colors-background-secondary)}.fyvr12x6:focus{color:var(--seq-colors-background-secondary)}.fyvr12x7:hover:not([disabled]){color:var(--seq-colors-background-secondary)}.fyvr12x8[data-state=checked]{color:var(--seq-colors-background-secondary)}.fyvr12x9,.fyvr12xa:active{color:var(--seq-colors-background-contrast)}.fyvr12xb:disabled,.fyvr12xb[data-disabled]{color:var(--seq-colors-background-contrast)}.fyvr12xc:focus{color:var(--seq-colors-background-contrast)}.fyvr12xd:hover:not([disabled]){color:var(--seq-colors-background-contrast)}.fyvr12xe[data-state=checked]{color:var(--seq-colors-background-contrast)}.fyvr12xf,.fyvr12xg:active{color:var(--seq-colors-background-muted)}.fyvr12xh:disabled,.fyvr12xh[data-disabled]{color:var(--seq-colors-background-muted)}.fyvr12xi:focus{color:var(--seq-colors-background-muted)}.fyvr12xj:hover:not([disabled]){color:var(--seq-colors-background-muted)}.fyvr12xk[data-state=checked]{color:var(--seq-colors-background-muted)}.fyvr12xl,.fyvr12xm:active{color:var(--seq-colors-background-control)}.fyvr12xn:disabled,.fyvr12xn[data-disabled]{color:var(--seq-colors-background-control)}.fyvr12xo:focus{color:var(--seq-colors-background-control)}.fyvr12xp:hover:not([disabled]){color:var(--seq-colors-background-control)}.fyvr12xq[data-state=checked]{color:var(--seq-colors-background-control)}.fyvr12xr,.fyvr12xs:active{color:var(--seq-colors-background-inverse)}.fyvr12xt:disabled,.fyvr12xt[data-disabled]{color:var(--seq-colors-background-inverse)}.fyvr12xu:focus{color:var(--seq-colors-background-inverse)}.fyvr12xv:hover:not([disabled]){color:var(--seq-colors-background-inverse)}.fyvr12xw[data-state=checked]{color:var(--seq-colors-background-inverse)}.fyvr12xx,.fyvr12xy:active{color:var(--seq-colors-background-backdrop)}.fyvr12xz:disabled,.fyvr12xz[data-disabled]{color:var(--seq-colors-background-backdrop)}.fyvr12y0:focus{color:var(--seq-colors-background-backdrop)}.fyvr12y1:hover:not([disabled]){color:var(--seq-colors-background-backdrop)}.fyvr12y2[data-state=checked]{color:var(--seq-colors-background-backdrop)}.fyvr12y3,.fyvr12y4:active{color:var(--seq-colors-background-overlay)}.fyvr12y5:disabled,.fyvr12y5[data-disabled]{color:var(--seq-colors-background-overlay)}.fyvr12y6:focus{color:var(--seq-colors-background-overlay)}.fyvr12y7:hover:not([disabled]){color:var(--seq-colors-background-overlay)}.fyvr12y8[data-state=checked]{color:var(--seq-colors-background-overlay)}.fyvr12y9,.fyvr12ya:active{color:var(--seq-colors-background-raised)}.fyvr12yb:disabled,.fyvr12yb[data-disabled]{color:var(--seq-colors-background-raised)}.fyvr12yc:focus{color:var(--seq-colors-background-raised)}.fyvr12yd:hover:not([disabled]){color:var(--seq-colors-background-raised)}.fyvr12ye[data-state=checked]{color:var(--seq-colors-background-raised)}.fyvr12yf,.fyvr12yg:active{color:var(--seq-colors-button-glass)}.fyvr12yh:disabled,.fyvr12yh[data-disabled]{color:var(--seq-colors-button-glass)}.fyvr12yi:focus{color:var(--seq-colors-button-glass)}.fyvr12yj:hover:not([disabled]){color:var(--seq-colors-button-glass)}.fyvr12yk[data-state=checked]{color:var(--seq-colors-button-glass)}.fyvr12yl,.fyvr12ym:active{color:var(--seq-colors-button-emphasis)}.fyvr12yn:disabled,.fyvr12yn[data-disabled]{color:var(--seq-colors-button-emphasis)}.fyvr12yo:focus{color:var(--seq-colors-button-emphasis)}.fyvr12yp:hover:not([disabled]){color:var(--seq-colors-button-emphasis)}.fyvr12yq[data-state=checked]{color:var(--seq-colors-button-emphasis)}.fyvr12yr,.fyvr12ys:active{color:var(--seq-colors-button-inverse)}.fyvr12yt:disabled,.fyvr12yt[data-disabled]{color:var(--seq-colors-button-inverse)}.fyvr12yu:focus{color:var(--seq-colors-button-inverse)}.fyvr12yv:hover:not([disabled]){color:var(--seq-colors-button-inverse)}.fyvr12yw[data-state=checked]{color:var(--seq-colors-button-inverse)}.fyvr12yx,.fyvr12yy:active{color:var(--seq-colors-border-normal)}.fyvr12yz:disabled,.fyvr12yz[data-disabled]{color:var(--seq-colors-border-normal)}.fyvr12z0:focus{color:var(--seq-colors-border-normal)}.fyvr12z1:hover:not([disabled]){color:var(--seq-colors-border-normal)}.fyvr12z2[data-state=checked]{color:var(--seq-colors-border-normal)}.fyvr12z3,.fyvr12z4:active{color:var(--seq-colors-border-focus)}.fyvr12z5:disabled,.fyvr12z5[data-disabled]{color:var(--seq-colors-border-focus)}.fyvr12z6:focus{color:var(--seq-colors-border-focus)}.fyvr12z7:hover:not([disabled]){color:var(--seq-colors-border-focus)}.fyvr12z8[data-state=checked]{color:var(--seq-colors-border-focus)}.fyvr12z9,.fyvr12za:active{cursor:default}.fyvr12zb:disabled,.fyvr12zb[data-disabled]{cursor:default}.fyvr12zc:focus{cursor:default}.fyvr12zd:hover:not([disabled]){cursor:default}.fyvr12ze[data-state=checked]{cursor:default}.fyvr12zf,.fyvr12zg:active{cursor:pointer}.fyvr12zh:disabled,.fyvr12zh[data-disabled]{cursor:pointer}.fyvr12zi:focus{cursor:pointer}.fyvr12zj:hover:not([disabled]){cursor:pointer}.fyvr12zk[data-state=checked]{cursor:pointer}.fyvr12zl,.fyvr12zm:active{cursor:text}.fyvr12zn:disabled,.fyvr12zn[data-disabled]{cursor:text}.fyvr12zo:focus{cursor:text}.fyvr12zp:hover:not([disabled]){cursor:text}.fyvr12zq[data-state=checked]{cursor:text}.fyvr12zr,.fyvr12zs:active{opacity:var(--seq-opacity-0)}.fyvr12zt:disabled,.fyvr12zt[data-disabled]{opacity:var(--seq-opacity-0)}.fyvr12zu:focus{opacity:var(--seq-opacity-0)}.fyvr12zv:hover:not([disabled]){opacity:var(--seq-opacity-0)}.fyvr12zw[data-state=checked]{opacity:var(--seq-opacity-0)}.fyvr12zx,.fyvr12zy:active{opacity:var(--seq-opacity-50)}.fyvr12zz:disabled,.fyvr12zz[data-disabled]{opacity:var(--seq-opacity-50)}.fyvr1300:focus{opacity:var(--seq-opacity-50)}.fyvr1301:hover:not([disabled]){opacity:var(--seq-opacity-50)}.fyvr1302[data-state=checked]{opacity:var(--seq-opacity-50)}.fyvr1303,.fyvr1304:active{opacity:var(--seq-opacity-80)}.fyvr1305:disabled,.fyvr1305[data-disabled]{opacity:var(--seq-opacity-80)}.fyvr1306:focus{opacity:var(--seq-opacity-80)}.fyvr1307:hover:not([disabled]){opacity:var(--seq-opacity-80)}.fyvr1308[data-state=checked]{opacity:var(--seq-opacity-80)}.fyvr1309,.fyvr130a:active{opacity:var(--seq-opacity-100)}.fyvr130b:disabled,.fyvr130b[data-disabled]{opacity:var(--seq-opacity-100)}.fyvr130c:focus{opacity:var(--seq-opacity-100)}.fyvr130d:hover:not([disabled]){opacity:var(--seq-opacity-100)}.fyvr130e[data-state=checked]{opacity:var(--seq-opacity-100)}.fyvr130f,.fyvr130g:active{pointer-events:none}.fyvr130h:disabled,.fyvr130h[data-disabled]{pointer-events:none}.fyvr130i:focus{pointer-events:none}.fyvr130j:hover:not([disabled]){pointer-events:none}.fyvr130k[data-state=checked]{pointer-events:none}.fyvr130l,.fyvr130m:active{pointer-events:auto}.fyvr130n:disabled,.fyvr130n[data-disabled]{pointer-events:auto}.fyvr130o:focus{pointer-events:auto}.fyvr130p:hover:not([disabled]){pointer-events:auto}.fyvr130q[data-state=checked]{pointer-events:auto}.fyvr130r,.fyvr130s:active{outline:none}.fyvr130t:disabled,.fyvr130t[data-disabled]{outline:none}.fyvr130u:focus{outline:none}.fyvr130v:hover:not([disabled]){outline:none}.fyvr130w[data-state=checked]{outline:none}.fyvr130x,.fyvr130y:active{box-shadow:none}.fyvr130z:disabled,.fyvr130z[data-disabled]{box-shadow:none}.fyvr1310:focus{box-shadow:none}.fyvr1311:hover:not([disabled]){box-shadow:none}.fyvr1312[data-state=checked]{box-shadow:none}@media (min-width: 480px){.fyvr11{width:var(--seq-space-0)}.fyvr15{width:var(--seq-space-1)}.fyvr19{width:var(--seq-space-2)}.fyvr1d{width:var(--seq-space-3)}.fyvr1h{width:var(--seq-space-4)}.fyvr1l{width:var(--seq-space-5)}.fyvr1p{width:var(--seq-space-6)}.fyvr1t{width:var(--seq-space-7)}.fyvr1x{width:var(--seq-space-8)}.fyvr111{width:var(--seq-space-9)}.fyvr115{width:var(--seq-space-10)}.fyvr119{width:var(--seq-space-12)}.fyvr11d{width:var(--seq-space-14)}.fyvr11h{width:var(--seq-space-16)}.fyvr11l{width:var(--seq-space-18)}.fyvr11p{width:var(--seq-space-20)}.fyvr11t{width:var(--seq-space-0_25)}.fyvr11x{width:var(--seq-space-0_5)}.fyvr121{width:var(--seq-space-1_5)}.fyvr125{width:0}.fyvr129{width:1px}.fyvr12d{width:auto}.fyvr12h{width:100%}.fyvr12l{width:50%}.fyvr12p{width:33.33333%}.fyvr12t{width:66.66667%}.fyvr12x{width:25%}.fyvr131{width:75%}.fyvr135{width:-moz-fit-content;width:fit-content}.fyvr139{width:-moz-max-content;width:max-content}.fyvr13d{width:-moz-min-content;width:min-content}.fyvr13h{width:100vw}.fyvr13l{width:100vh}.fyvr13p{height:var(--seq-space-0)}.fyvr13t{height:var(--seq-space-1)}.fyvr13x{height:var(--seq-space-2)}.fyvr141{height:var(--seq-space-3)}.fyvr145{height:var(--seq-space-4)}.fyvr149{height:var(--seq-space-5)}.fyvr14d{height:var(--seq-space-6)}.fyvr14h{height:var(--seq-space-7)}.fyvr14l{height:var(--seq-space-8)}.fyvr14p{height:var(--seq-space-9)}.fyvr14t{height:var(--seq-space-10)}.fyvr14x{height:var(--seq-space-12)}.fyvr151{height:var(--seq-space-14)}.fyvr155{height:var(--seq-space-16)}.fyvr159{height:var(--seq-space-18)}.fyvr15d{height:var(--seq-space-20)}.fyvr15h{height:var(--seq-space-0_25)}.fyvr15l{height:var(--seq-space-0_5)}.fyvr15p{height:var(--seq-space-1_5)}.fyvr15t{height:0}.fyvr15x{height:1px}.fyvr161{height:auto}.fyvr165{height:100%}.fyvr169{height:50%}.fyvr16d{height:33.33333%}.fyvr16h{height:66.66667%}.fyvr16l{height:25%}.fyvr16p{height:75%}.fyvr16t{height:-moz-fit-content;height:fit-content}.fyvr16x{height:-moz-max-content;height:max-content}.fyvr171{height:-moz-min-content;height:min-content}.fyvr175{height:100vw}.fyvr179{height:100vh}.fyvr17d{max-width:var(--seq-space-0)}.fyvr17h{max-width:var(--seq-space-1)}.fyvr17l{max-width:var(--seq-space-2)}.fyvr17p{max-width:var(--seq-space-3)}.fyvr17t{max-width:var(--seq-space-4)}.fyvr17x{max-width:var(--seq-space-5)}.fyvr181{max-width:var(--seq-space-6)}.fyvr185{max-width:var(--seq-space-7)}.fyvr189{max-width:var(--seq-space-8)}.fyvr18d{max-width:var(--seq-space-9)}.fyvr18h{max-width:var(--seq-space-10)}.fyvr18l{max-width:var(--seq-space-12)}.fyvr18p{max-width:var(--seq-space-14)}.fyvr18t{max-width:var(--seq-space-16)}.fyvr18x{max-width:var(--seq-space-18)}.fyvr191{max-width:var(--seq-space-20)}.fyvr195{max-width:var(--seq-space-0_25)}.fyvr199{max-width:var(--seq-space-0_5)}.fyvr19d{max-width:var(--seq-space-1_5)}.fyvr19h{max-width:0}.fyvr19l{max-width:1px}.fyvr19p{max-width:auto}.fyvr19t{max-width:100%}.fyvr19x{max-width:50%}.fyvr1a1{max-width:33.33333%}.fyvr1a5{max-width:66.66667%}.fyvr1a9{max-width:25%}.fyvr1ad{max-width:75%}.fyvr1ah{max-width:-moz-fit-content;max-width:fit-content}.fyvr1al{max-width:-moz-max-content;max-width:max-content}.fyvr1ap{max-width:-moz-min-content;max-width:min-content}.fyvr1at{max-width:100vw}.fyvr1ax{max-width:100vh}.fyvr1b1{max-height:var(--seq-space-0)}.fyvr1b5{max-height:var(--seq-space-1)}.fyvr1b9{max-height:var(--seq-space-2)}.fyvr1bd{max-height:var(--seq-space-3)}.fyvr1bh{max-height:var(--seq-space-4)}.fyvr1bl{max-height:var(--seq-space-5)}.fyvr1bp{max-height:var(--seq-space-6)}.fyvr1bt{max-height:var(--seq-space-7)}.fyvr1bx{max-height:var(--seq-space-8)}.fyvr1c1{max-height:var(--seq-space-9)}.fyvr1c5{max-height:var(--seq-space-10)}.fyvr1c9{max-height:var(--seq-space-12)}.fyvr1cd{max-height:var(--seq-space-14)}.fyvr1ch{max-height:var(--seq-space-16)}.fyvr1cl{max-height:var(--seq-space-18)}.fyvr1cp{max-height:var(--seq-space-20)}.fyvr1ct{max-height:var(--seq-space-0_25)}.fyvr1cx{max-height:var(--seq-space-0_5)}.fyvr1d1{max-height:var(--seq-space-1_5)}.fyvr1d5{max-height:0}.fyvr1d9{max-height:1px}.fyvr1dd{max-height:auto}.fyvr1dh{max-height:100%}.fyvr1dl{max-height:50%}.fyvr1dp{max-height:33.33333%}.fyvr1dt{max-height:66.66667%}.fyvr1dx{max-height:25%}.fyvr1e1{max-height:75%}.fyvr1e5{max-height:-moz-fit-content;max-height:fit-content}.fyvr1e9{max-height:-moz-max-content;max-height:max-content}.fyvr1ed{max-height:-moz-min-content;max-height:min-content}.fyvr1eh{max-height:100vw}.fyvr1el{max-height:100vh}.fyvr1ep{min-width:var(--seq-space-0)}.fyvr1et{min-width:var(--seq-space-1)}.fyvr1ex{min-width:var(--seq-space-2)}.fyvr1f1{min-width:var(--seq-space-3)}.fyvr1f5{min-width:var(--seq-space-4)}.fyvr1f9{min-width:var(--seq-space-5)}.fyvr1fd{min-width:var(--seq-space-6)}.fyvr1fh{min-width:var(--seq-space-7)}.fyvr1fl{min-width:var(--seq-space-8)}.fyvr1fp{min-width:var(--seq-space-9)}.fyvr1ft{min-width:var(--seq-space-10)}.fyvr1fx{min-width:var(--seq-space-12)}.fyvr1g1{min-width:var(--seq-space-14)}.fyvr1g5{min-width:var(--seq-space-16)}.fyvr1g9{min-width:var(--seq-space-18)}.fyvr1gd{min-width:var(--seq-space-20)}.fyvr1gh{min-width:var(--seq-space-0_25)}.fyvr1gl{min-width:var(--seq-space-0_5)}.fyvr1gp{min-width:var(--seq-space-1_5)}.fyvr1gt{min-width:0}.fyvr1gx{min-width:1px}.fyvr1h1{min-width:auto}.fyvr1h5{min-width:100%}.fyvr1h9{min-width:50%}.fyvr1hd{min-width:33.33333%}.fyvr1hh{min-width:66.66667%}.fyvr1hl{min-width:25%}.fyvr1hp{min-width:75%}.fyvr1ht{min-width:-moz-fit-content;min-width:fit-content}.fyvr1hx{min-width:-moz-max-content;min-width:max-content}.fyvr1i1{min-width:-moz-min-content;min-width:min-content}.fyvr1i5{min-width:100vw}.fyvr1i9{min-width:100vh}.fyvr1id{min-height:var(--seq-space-0)}.fyvr1ih{min-height:var(--seq-space-1)}.fyvr1il{min-height:var(--seq-space-2)}.fyvr1ip{min-height:var(--seq-space-3)}.fyvr1it{min-height:var(--seq-space-4)}.fyvr1ix{min-height:var(--seq-space-5)}.fyvr1j1{min-height:var(--seq-space-6)}.fyvr1j5{min-height:var(--seq-space-7)}.fyvr1j9{min-height:var(--seq-space-8)}.fyvr1jd{min-height:var(--seq-space-9)}.fyvr1jh{min-height:var(--seq-space-10)}.fyvr1jl{min-height:var(--seq-space-12)}.fyvr1jp{min-height:var(--seq-space-14)}.fyvr1jt{min-height:var(--seq-space-16)}.fyvr1jx{min-height:var(--seq-space-18)}.fyvr1k1{min-height:var(--seq-space-20)}.fyvr1k5{min-height:var(--seq-space-0_25)}.fyvr1k9{min-height:var(--seq-space-0_5)}.fyvr1kd{min-height:var(--seq-space-1_5)}.fyvr1kh{min-height:0}.fyvr1kl{min-height:1px}.fyvr1kp{min-height:auto}.fyvr1kt{min-height:100%}.fyvr1kx{min-height:50%}.fyvr1l1{min-height:33.33333%}.fyvr1l5{min-height:66.66667%}.fyvr1l9{min-height:25%}.fyvr1ld{min-height:75%}.fyvr1lh{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ll{min-height:-moz-max-content;min-height:max-content}.fyvr1lp{min-height:-moz-min-content;min-height:min-content}.fyvr1lt{min-height:100vw}.fyvr1lx{min-height:100vh}.fyvr1m1{top:var(--seq-space-0)}.fyvr1m5{top:var(--seq-space-1)}.fyvr1m9{top:var(--seq-space-2)}.fyvr1md{top:var(--seq-space-3)}.fyvr1mh{top:var(--seq-space-4)}.fyvr1ml{top:var(--seq-space-5)}.fyvr1mp{top:var(--seq-space-6)}.fyvr1mt{top:var(--seq-space-7)}.fyvr1mx{top:var(--seq-space-8)}.fyvr1n1{top:var(--seq-space-9)}.fyvr1n5{top:var(--seq-space-10)}.fyvr1n9{top:var(--seq-space-12)}.fyvr1nd{top:var(--seq-space-14)}.fyvr1nh{top:var(--seq-space-16)}.fyvr1nl{top:var(--seq-space-18)}.fyvr1np{top:var(--seq-space-20)}.fyvr1nt{top:var(--seq-space-0_25)}.fyvr1nx{top:var(--seq-space-0_5)}.fyvr1o1{top:var(--seq-space-1_5)}.fyvr1o5{top:auto}.fyvr1o9{bottom:var(--seq-space-0)}.fyvr1od{bottom:var(--seq-space-1)}.fyvr1oh{bottom:var(--seq-space-2)}.fyvr1ol{bottom:var(--seq-space-3)}.fyvr1op{bottom:var(--seq-space-4)}.fyvr1ot{bottom:var(--seq-space-5)}.fyvr1ox{bottom:var(--seq-space-6)}.fyvr1p1{bottom:var(--seq-space-7)}.fyvr1p5{bottom:var(--seq-space-8)}.fyvr1p9{bottom:var(--seq-space-9)}.fyvr1pd{bottom:var(--seq-space-10)}.fyvr1ph{bottom:var(--seq-space-12)}.fyvr1pl{bottom:var(--seq-space-14)}.fyvr1pp{bottom:var(--seq-space-16)}.fyvr1pt{bottom:var(--seq-space-18)}.fyvr1px{bottom:var(--seq-space-20)}.fyvr1q1{bottom:var(--seq-space-0_25)}.fyvr1q5{bottom:var(--seq-space-0_5)}.fyvr1q9{bottom:var(--seq-space-1_5)}.fyvr1qd{bottom:auto}.fyvr1qh{left:var(--seq-space-0)}.fyvr1ql{left:var(--seq-space-1)}.fyvr1qp{left:var(--seq-space-2)}.fyvr1qt{left:var(--seq-space-3)}.fyvr1qx{left:var(--seq-space-4)}.fyvr1r1{left:var(--seq-space-5)}.fyvr1r5{left:var(--seq-space-6)}.fyvr1r9{left:var(--seq-space-7)}.fyvr1rd{left:var(--seq-space-8)}.fyvr1rh{left:var(--seq-space-9)}.fyvr1rl{left:var(--seq-space-10)}.fyvr1rp{left:var(--seq-space-12)}.fyvr1rt{left:var(--seq-space-14)}.fyvr1rx{left:var(--seq-space-16)}.fyvr1s1{left:var(--seq-space-18)}.fyvr1s5{left:var(--seq-space-20)}.fyvr1s9{left:var(--seq-space-0_25)}.fyvr1sd{left:var(--seq-space-0_5)}.fyvr1sh{left:var(--seq-space-1_5)}.fyvr1sl{left:auto}.fyvr1sp{right:var(--seq-space-0)}.fyvr1st{right:var(--seq-space-1)}.fyvr1sx{right:var(--seq-space-2)}.fyvr1t1{right:var(--seq-space-3)}.fyvr1t5{right:var(--seq-space-4)}.fyvr1t9{right:var(--seq-space-5)}.fyvr1td{right:var(--seq-space-6)}.fyvr1th{right:var(--seq-space-7)}.fyvr1tl{right:var(--seq-space-8)}.fyvr1tp{right:var(--seq-space-9)}.fyvr1tt{right:var(--seq-space-10)}.fyvr1tx{right:var(--seq-space-12)}.fyvr1u1{right:var(--seq-space-14)}.fyvr1u5{right:var(--seq-space-16)}.fyvr1u9{right:var(--seq-space-18)}.fyvr1ud{right:var(--seq-space-20)}.fyvr1uh{right:var(--seq-space-0_25)}.fyvr1ul{right:var(--seq-space-0_5)}.fyvr1up{right:var(--seq-space-1_5)}.fyvr1ut{right:auto}.fyvr1ux{padding-top:var(--seq-space-0)}.fyvr1v1{padding-top:var(--seq-space-1)}.fyvr1v5{padding-top:var(--seq-space-2)}.fyvr1v9{padding-top:var(--seq-space-3)}.fyvr1vd{padding-top:var(--seq-space-4)}.fyvr1vh{padding-top:var(--seq-space-5)}.fyvr1vl{padding-top:var(--seq-space-6)}.fyvr1vp{padding-top:var(--seq-space-7)}.fyvr1vt{padding-top:var(--seq-space-8)}.fyvr1vx{padding-top:var(--seq-space-9)}.fyvr1w1{padding-top:var(--seq-space-10)}.fyvr1w5{padding-top:var(--seq-space-12)}.fyvr1w9{padding-top:var(--seq-space-14)}.fyvr1wd{padding-top:var(--seq-space-16)}.fyvr1wh{padding-top:var(--seq-space-18)}.fyvr1wl{padding-top:var(--seq-space-20)}.fyvr1wp{padding-top:var(--seq-space-0_25)}.fyvr1wt{padding-top:var(--seq-space-0_5)}.fyvr1wx{padding-top:var(--seq-space-1_5)}.fyvr1x1{padding-bottom:var(--seq-space-0)}.fyvr1x5{padding-bottom:var(--seq-space-1)}.fyvr1x9{padding-bottom:var(--seq-space-2)}.fyvr1xd{padding-bottom:var(--seq-space-3)}.fyvr1xh{padding-bottom:var(--seq-space-4)}.fyvr1xl{padding-bottom:var(--seq-space-5)}.fyvr1xp{padding-bottom:var(--seq-space-6)}.fyvr1xt{padding-bottom:var(--seq-space-7)}.fyvr1xx{padding-bottom:var(--seq-space-8)}.fyvr1y1{padding-bottom:var(--seq-space-9)}.fyvr1y5{padding-bottom:var(--seq-space-10)}.fyvr1y9{padding-bottom:var(--seq-space-12)}.fyvr1yd{padding-bottom:var(--seq-space-14)}.fyvr1yh{padding-bottom:var(--seq-space-16)}.fyvr1yl{padding-bottom:var(--seq-space-18)}.fyvr1yp{padding-bottom:var(--seq-space-20)}.fyvr1yt{padding-bottom:var(--seq-space-0_25)}.fyvr1yx{padding-bottom:var(--seq-space-0_5)}.fyvr1z1{padding-bottom:var(--seq-space-1_5)}.fyvr1z5{padding-left:var(--seq-space-0)}.fyvr1z9{padding-left:var(--seq-space-1)}.fyvr1zd{padding-left:var(--seq-space-2)}.fyvr1zh{padding-left:var(--seq-space-3)}.fyvr1zl{padding-left:var(--seq-space-4)}.fyvr1zp{padding-left:var(--seq-space-5)}.fyvr1zt{padding-left:var(--seq-space-6)}.fyvr1zx{padding-left:var(--seq-space-7)}.fyvr1101{padding-left:var(--seq-space-8)}.fyvr1105{padding-left:var(--seq-space-9)}.fyvr1109{padding-left:var(--seq-space-10)}.fyvr110d{padding-left:var(--seq-space-12)}.fyvr110h{padding-left:var(--seq-space-14)}.fyvr110l{padding-left:var(--seq-space-16)}.fyvr110p{padding-left:var(--seq-space-18)}.fyvr110t{padding-left:var(--seq-space-20)}.fyvr110x{padding-left:var(--seq-space-0_25)}.fyvr1111{padding-left:var(--seq-space-0_5)}.fyvr1115{padding-left:var(--seq-space-1_5)}.fyvr1119{padding-right:var(--seq-space-0)}.fyvr111d{padding-right:var(--seq-space-1)}.fyvr111h{padding-right:var(--seq-space-2)}.fyvr111l{padding-right:var(--seq-space-3)}.fyvr111p{padding-right:var(--seq-space-4)}.fyvr111t{padding-right:var(--seq-space-5)}.fyvr111x{padding-right:var(--seq-space-6)}.fyvr1121{padding-right:var(--seq-space-7)}.fyvr1125{padding-right:var(--seq-space-8)}.fyvr1129{padding-right:var(--seq-space-9)}.fyvr112d{padding-right:var(--seq-space-10)}.fyvr112h{padding-right:var(--seq-space-12)}.fyvr112l{padding-right:var(--seq-space-14)}.fyvr112p{padding-right:var(--seq-space-16)}.fyvr112t{padding-right:var(--seq-space-18)}.fyvr112x{padding-right:var(--seq-space-20)}.fyvr1131{padding-right:var(--seq-space-0_25)}.fyvr1135{padding-right:var(--seq-space-0_5)}.fyvr1139{padding-right:var(--seq-space-1_5)}.fyvr113d{margin-top:var(--seq-space-0)}.fyvr113h{margin-top:var(--seq-space-1)}.fyvr113l{margin-top:var(--seq-space-2)}.fyvr113p{margin-top:var(--seq-space-3)}.fyvr113t{margin-top:var(--seq-space-4)}.fyvr113x{margin-top:var(--seq-space-5)}.fyvr1141{margin-top:var(--seq-space-6)}.fyvr1145{margin-top:var(--seq-space-7)}.fyvr1149{margin-top:var(--seq-space-8)}.fyvr114d{margin-top:var(--seq-space-9)}.fyvr114h{margin-top:var(--seq-space-10)}.fyvr114l{margin-top:var(--seq-space-12)}.fyvr114p{margin-top:var(--seq-space-14)}.fyvr114t{margin-top:var(--seq-space-16)}.fyvr114x{margin-top:var(--seq-space-18)}.fyvr1151{margin-top:var(--seq-space-20)}.fyvr1155{margin-top:var(--seq-space-0_25)}.fyvr1159{margin-top:var(--seq-space-0_5)}.fyvr115d{margin-top:var(--seq-space-1_5)}.fyvr115h{margin-top:auto}.fyvr115l{margin-bottom:var(--seq-space-0)}.fyvr115p{margin-bottom:var(--seq-space-1)}.fyvr115t{margin-bottom:var(--seq-space-2)}.fyvr115x{margin-bottom:var(--seq-space-3)}.fyvr1161{margin-bottom:var(--seq-space-4)}.fyvr1165{margin-bottom:var(--seq-space-5)}.fyvr1169{margin-bottom:var(--seq-space-6)}.fyvr116d{margin-bottom:var(--seq-space-7)}.fyvr116h{margin-bottom:var(--seq-space-8)}.fyvr116l{margin-bottom:var(--seq-space-9)}.fyvr116p{margin-bottom:var(--seq-space-10)}.fyvr116t{margin-bottom:var(--seq-space-12)}.fyvr116x{margin-bottom:var(--seq-space-14)}.fyvr1171{margin-bottom:var(--seq-space-16)}.fyvr1175{margin-bottom:var(--seq-space-18)}.fyvr1179{margin-bottom:var(--seq-space-20)}.fyvr117d{margin-bottom:var(--seq-space-0_25)}.fyvr117h{margin-bottom:var(--seq-space-0_5)}.fyvr117l{margin-bottom:var(--seq-space-1_5)}.fyvr117p{margin-bottom:auto}.fyvr117t{margin-left:var(--seq-space-0)}.fyvr117x{margin-left:var(--seq-space-1)}.fyvr1181{margin-left:var(--seq-space-2)}.fyvr1185{margin-left:var(--seq-space-3)}.fyvr1189{margin-left:var(--seq-space-4)}.fyvr118d{margin-left:var(--seq-space-5)}.fyvr118h{margin-left:var(--seq-space-6)}.fyvr118l{margin-left:var(--seq-space-7)}.fyvr118p{margin-left:var(--seq-space-8)}.fyvr118t{margin-left:var(--seq-space-9)}.fyvr118x{margin-left:var(--seq-space-10)}.fyvr1191{margin-left:var(--seq-space-12)}.fyvr1195{margin-left:var(--seq-space-14)}.fyvr1199{margin-left:var(--seq-space-16)}.fyvr119d{margin-left:var(--seq-space-18)}.fyvr119h{margin-left:var(--seq-space-20)}.fyvr119l{margin-left:var(--seq-space-0_25)}.fyvr119p{margin-left:var(--seq-space-0_5)}.fyvr119t{margin-left:var(--seq-space-1_5)}.fyvr119x{margin-left:auto}.fyvr11a1{margin-right:var(--seq-space-0)}.fyvr11a5{margin-right:var(--seq-space-1)}.fyvr11a9{margin-right:var(--seq-space-2)}.fyvr11ad{margin-right:var(--seq-space-3)}.fyvr11ah{margin-right:var(--seq-space-4)}.fyvr11al{margin-right:var(--seq-space-5)}.fyvr11ap{margin-right:var(--seq-space-6)}.fyvr11at{margin-right:var(--seq-space-7)}.fyvr11ax{margin-right:var(--seq-space-8)}.fyvr11b1{margin-right:var(--seq-space-9)}.fyvr11b5{margin-right:var(--seq-space-10)}.fyvr11b9{margin-right:var(--seq-space-12)}.fyvr11bd{margin-right:var(--seq-space-14)}.fyvr11bh{margin-right:var(--seq-space-16)}.fyvr11bl{margin-right:var(--seq-space-18)}.fyvr11bp{margin-right:var(--seq-space-20)}.fyvr11bt{margin-right:var(--seq-space-0_25)}.fyvr11bx{margin-right:var(--seq-space-0_5)}.fyvr11c1{margin-right:var(--seq-space-1_5)}.fyvr11c5{margin-right:auto}.fyvr11c9{gap:var(--seq-space-0)}.fyvr11cd{gap:var(--seq-space-1)}.fyvr11ch{gap:var(--seq-space-2)}.fyvr11cl{gap:var(--seq-space-3)}.fyvr11cp{gap:var(--seq-space-4)}.fyvr11ct{gap:var(--seq-space-5)}.fyvr11cx{gap:var(--seq-space-6)}.fyvr11d1{gap:var(--seq-space-7)}.fyvr11d5{gap:var(--seq-space-8)}.fyvr11d9{gap:var(--seq-space-9)}.fyvr11dd{gap:var(--seq-space-10)}.fyvr11dh{gap:var(--seq-space-12)}.fyvr11dl{gap:var(--seq-space-14)}.fyvr11dp{gap:var(--seq-space-16)}.fyvr11dt{gap:var(--seq-space-18)}.fyvr11dx{gap:var(--seq-space-20)}.fyvr11e1{gap:var(--seq-space-0_25)}.fyvr11e5{gap:var(--seq-space-0_5)}.fyvr11e9{gap:var(--seq-space-1_5)}.fyvr11ed{border-bottom-width:var(--seq-border-widths-none)}.fyvr11eh{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11el{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ep{border-left-width:var(--seq-border-widths-none)}.fyvr11et{border-left-width:var(--seq-border-widths-thin)}.fyvr11ex{border-left-width:var(--seq-border-widths-thick)}.fyvr11f1{border-right-width:var(--seq-border-widths-none)}.fyvr11f5{border-right-width:var(--seq-border-widths-thin)}.fyvr11f9{border-right-width:var(--seq-border-widths-thick)}.fyvr11fd{border-top-width:var(--seq-border-widths-none)}.fyvr11fh{border-top-width:var(--seq-border-widths-thin)}.fyvr11fl{border-top-width:var(--seq-border-widths-thick)}.fyvr11fp{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11ft{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11fx{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11g1{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11g5{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11g9{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11gd{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11gh{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11gl{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11gp{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11gt{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11gx{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11h1{border-top-left-radius:var(--seq-radii-none)}.fyvr11h5{border-top-left-radius:var(--seq-radii-xs)}.fyvr11h9{border-top-left-radius:var(--seq-radii-sm)}.fyvr11hd{border-top-left-radius:var(--seq-radii-md)}.fyvr11hh{border-top-left-radius:var(--seq-radii-lg)}.fyvr11hl{border-top-left-radius:var(--seq-radii-circle)}.fyvr11hp{border-top-right-radius:var(--seq-radii-none)}.fyvr11ht{border-top-right-radius:var(--seq-radii-xs)}.fyvr11hx{border-top-right-radius:var(--seq-radii-sm)}.fyvr11i1{border-top-right-radius:var(--seq-radii-md)}.fyvr11i5{border-top-right-radius:var(--seq-radii-lg)}.fyvr11i9{border-top-right-radius:var(--seq-radii-circle)}.fyvr11id{font-size:var(--seq-font-sizes-inherit)}.fyvr11ih{font-size:var(--seq-font-sizes-xsmall)}.fyvr11il{font-size:var(--seq-font-sizes-small)}.fyvr11ip{font-size:var(--seq-font-sizes-normal)}.fyvr11it{font-size:var(--seq-font-sizes-medium)}.fyvr11ix{font-size:var(--seq-font-sizes-large)}.fyvr11j1{font-size:var(--seq-font-sizes-xlarge)}.fyvr11j5{font-weight:var(--seq-font-weights-inherit)}.fyvr11j9{font-weight:var(--seq-font-weights-normal)}.fyvr11jd{font-weight:var(--seq-font-weights-medium)}.fyvr11jh{font-weight:var(--seq-font-weights-semibold)}.fyvr11jl{font-weight:var(--seq-font-weights-bold)}.fyvr11jp{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11jt{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11jx{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11k1{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11k5{line-height:var(--seq-line-heights-4)}.fyvr11k9{line-height:var(--seq-line-heights-5)}.fyvr11kd{line-height:var(--seq-line-heights-6)}.fyvr11kh{line-height:var(--seq-line-heights-7)}.fyvr11kl{line-height:var(--seq-line-heights-9)}.fyvr11kp{line-height:var(--seq-line-heights-inherit)}.fyvr11kt{text-align:center}.fyvr11kx{text-align:left}.fyvr11l1{text-align:right}.fyvr11l5{display:block}.fyvr11l9{display:flex}.fyvr11ld{display:grid}.fyvr11lh{display:inline-block}.fyvr11ll{display:inline-flex}.fyvr11lp{display:none}.fyvr11lt{display:contents}.fyvr11lx{position:absolute}.fyvr11m1{position:fixed}.fyvr11m5{position:relative}.fyvr11m9{position:sticky}.fyvr11md{flex-direction:column}.fyvr11mh{flex-direction:column-reverse}.fyvr11ml{flex-direction:row}.fyvr11mp{flex-direction:row-reverse}.fyvr11mt{flex-shrink:0}.fyvr11mx{flex-shrink:1}.fyvr11n1{flex-grow:0}.fyvr11n5{flex-grow:1}.fyvr11n9{flex-wrap:nowrap}.fyvr11nd{flex-wrap:wrap}.fyvr11nh{flex-wrap:wrap-reverse}.fyvr11nl{justify-content:flex-start}.fyvr11np{justify-content:center}.fyvr11nt{justify-content:flex-end}.fyvr11nx{justify-content:stretch}.fyvr11o1{justify-content:space-around}.fyvr11o5{justify-content:space-between}.fyvr11o9{justify-content:space-evenly}.fyvr11od{justify-self:flex-start}.fyvr11oh{justify-self:center}.fyvr11ol{justify-self:flex-end}.fyvr11op{justify-self:stretch}.fyvr11ot{align-items:flex-start}.fyvr11ox{align-items:center}.fyvr11p1{align-items:flex-end}.fyvr11p5{align-items:stretch}.fyvr11p9{align-items:baseline}.fyvr11pd{align-self:flex-start}.fyvr11ph{align-self:center}.fyvr11pl{align-self:flex-end}.fyvr11pp{align-self:stretch}.fyvr11pt{align-self:baseline}.fyvr11px{overflow-x:auto}.fyvr11q1{overflow-x:hidden}.fyvr11q5{overflow-x:scroll}.fyvr11q9{overflow-x:visible}.fyvr11qd{overflow-y:auto}.fyvr11qh{overflow-y:hidden}.fyvr11ql{overflow-y:scroll}.fyvr11qp{overflow-y:visible}.fyvr11qt{visibility:hidden}.fyvr11qx{visibility:visible}}@media (min-width: 769px){.fyvr12{width:var(--seq-space-0)}.fyvr16{width:var(--seq-space-1)}.fyvr1a{width:var(--seq-space-2)}.fyvr1e{width:var(--seq-space-3)}.fyvr1i{width:var(--seq-space-4)}.fyvr1m{width:var(--seq-space-5)}.fyvr1q{width:var(--seq-space-6)}.fyvr1u{width:var(--seq-space-7)}.fyvr1y{width:var(--seq-space-8)}.fyvr112{width:var(--seq-space-9)}.fyvr116{width:var(--seq-space-10)}.fyvr11a{width:var(--seq-space-12)}.fyvr11e{width:var(--seq-space-14)}.fyvr11i{width:var(--seq-space-16)}.fyvr11m{width:var(--seq-space-18)}.fyvr11q{width:var(--seq-space-20)}.fyvr11u{width:var(--seq-space-0_25)}.fyvr11y{width:var(--seq-space-0_5)}.fyvr122{width:var(--seq-space-1_5)}.fyvr126{width:0}.fyvr12a{width:1px}.fyvr12e{width:auto}.fyvr12i{width:100%}.fyvr12m{width:50%}.fyvr12q{width:33.33333%}.fyvr12u{width:66.66667%}.fyvr12y{width:25%}.fyvr132{width:75%}.fyvr136{width:-moz-fit-content;width:fit-content}.fyvr13a{width:-moz-max-content;width:max-content}.fyvr13e{width:-moz-min-content;width:min-content}.fyvr13i{width:100vw}.fyvr13m{width:100vh}.fyvr13q{height:var(--seq-space-0)}.fyvr13u{height:var(--seq-space-1)}.fyvr13y{height:var(--seq-space-2)}.fyvr142{height:var(--seq-space-3)}.fyvr146{height:var(--seq-space-4)}.fyvr14a{height:var(--seq-space-5)}.fyvr14e{height:var(--seq-space-6)}.fyvr14i{height:var(--seq-space-7)}.fyvr14m{height:var(--seq-space-8)}.fyvr14q{height:var(--seq-space-9)}.fyvr14u{height:var(--seq-space-10)}.fyvr14y{height:var(--seq-space-12)}.fyvr152{height:var(--seq-space-14)}.fyvr156{height:var(--seq-space-16)}.fyvr15a{height:var(--seq-space-18)}.fyvr15e{height:var(--seq-space-20)}.fyvr15i{height:var(--seq-space-0_25)}.fyvr15m{height:var(--seq-space-0_5)}.fyvr15q{height:var(--seq-space-1_5)}.fyvr15u{height:0}.fyvr15y{height:1px}.fyvr162{height:auto}.fyvr166{height:100%}.fyvr16a{height:50%}.fyvr16e{height:33.33333%}.fyvr16i{height:66.66667%}.fyvr16m{height:25%}.fyvr16q{height:75%}.fyvr16u{height:-moz-fit-content;height:fit-content}.fyvr16y{height:-moz-max-content;height:max-content}.fyvr172{height:-moz-min-content;height:min-content}.fyvr176{height:100vw}.fyvr17a{height:100vh}.fyvr17e{max-width:var(--seq-space-0)}.fyvr17i{max-width:var(--seq-space-1)}.fyvr17m{max-width:var(--seq-space-2)}.fyvr17q{max-width:var(--seq-space-3)}.fyvr17u{max-width:var(--seq-space-4)}.fyvr17y{max-width:var(--seq-space-5)}.fyvr182{max-width:var(--seq-space-6)}.fyvr186{max-width:var(--seq-space-7)}.fyvr18a{max-width:var(--seq-space-8)}.fyvr18e{max-width:var(--seq-space-9)}.fyvr18i{max-width:var(--seq-space-10)}.fyvr18m{max-width:var(--seq-space-12)}.fyvr18q{max-width:var(--seq-space-14)}.fyvr18u{max-width:var(--seq-space-16)}.fyvr18y{max-width:var(--seq-space-18)}.fyvr192{max-width:var(--seq-space-20)}.fyvr196{max-width:var(--seq-space-0_25)}.fyvr19a{max-width:var(--seq-space-0_5)}.fyvr19e{max-width:var(--seq-space-1_5)}.fyvr19i{max-width:0}.fyvr19m{max-width:1px}.fyvr19q{max-width:auto}.fyvr19u{max-width:100%}.fyvr19y{max-width:50%}.fyvr1a2{max-width:33.33333%}.fyvr1a6{max-width:66.66667%}.fyvr1aa{max-width:25%}.fyvr1ae{max-width:75%}.fyvr1ai{max-width:-moz-fit-content;max-width:fit-content}.fyvr1am{max-width:-moz-max-content;max-width:max-content}.fyvr1aq{max-width:-moz-min-content;max-width:min-content}.fyvr1au{max-width:100vw}.fyvr1ay{max-width:100vh}.fyvr1b2{max-height:var(--seq-space-0)}.fyvr1b6{max-height:var(--seq-space-1)}.fyvr1ba{max-height:var(--seq-space-2)}.fyvr1be{max-height:var(--seq-space-3)}.fyvr1bi{max-height:var(--seq-space-4)}.fyvr1bm{max-height:var(--seq-space-5)}.fyvr1bq{max-height:var(--seq-space-6)}.fyvr1bu{max-height:var(--seq-space-7)}.fyvr1by{max-height:var(--seq-space-8)}.fyvr1c2{max-height:var(--seq-space-9)}.fyvr1c6{max-height:var(--seq-space-10)}.fyvr1ca{max-height:var(--seq-space-12)}.fyvr1ce{max-height:var(--seq-space-14)}.fyvr1ci{max-height:var(--seq-space-16)}.fyvr1cm{max-height:var(--seq-space-18)}.fyvr1cq{max-height:var(--seq-space-20)}.fyvr1cu{max-height:var(--seq-space-0_25)}.fyvr1cy{max-height:var(--seq-space-0_5)}.fyvr1d2{max-height:var(--seq-space-1_5)}.fyvr1d6{max-height:0}.fyvr1da{max-height:1px}.fyvr1de{max-height:auto}.fyvr1di{max-height:100%}.fyvr1dm{max-height:50%}.fyvr1dq{max-height:33.33333%}.fyvr1du{max-height:66.66667%}.fyvr1dy{max-height:25%}.fyvr1e2{max-height:75%}.fyvr1e6{max-height:-moz-fit-content;max-height:fit-content}.fyvr1ea{max-height:-moz-max-content;max-height:max-content}.fyvr1ee{max-height:-moz-min-content;max-height:min-content}.fyvr1ei{max-height:100vw}.fyvr1em{max-height:100vh}.fyvr1eq{min-width:var(--seq-space-0)}.fyvr1eu{min-width:var(--seq-space-1)}.fyvr1ey{min-width:var(--seq-space-2)}.fyvr1f2{min-width:var(--seq-space-3)}.fyvr1f6{min-width:var(--seq-space-4)}.fyvr1fa{min-width:var(--seq-space-5)}.fyvr1fe{min-width:var(--seq-space-6)}.fyvr1fi{min-width:var(--seq-space-7)}.fyvr1fm{min-width:var(--seq-space-8)}.fyvr1fq{min-width:var(--seq-space-9)}.fyvr1fu{min-width:var(--seq-space-10)}.fyvr1fy{min-width:var(--seq-space-12)}.fyvr1g2{min-width:var(--seq-space-14)}.fyvr1g6{min-width:var(--seq-space-16)}.fyvr1ga{min-width:var(--seq-space-18)}.fyvr1ge{min-width:var(--seq-space-20)}.fyvr1gi{min-width:var(--seq-space-0_25)}.fyvr1gm{min-width:var(--seq-space-0_5)}.fyvr1gq{min-width:var(--seq-space-1_5)}.fyvr1gu{min-width:0}.fyvr1gy{min-width:1px}.fyvr1h2{min-width:auto}.fyvr1h6{min-width:100%}.fyvr1ha{min-width:50%}.fyvr1he{min-width:33.33333%}.fyvr1hi{min-width:66.66667%}.fyvr1hm{min-width:25%}.fyvr1hq{min-width:75%}.fyvr1hu{min-width:-moz-fit-content;min-width:fit-content}.fyvr1hy{min-width:-moz-max-content;min-width:max-content}.fyvr1i2{min-width:-moz-min-content;min-width:min-content}.fyvr1i6{min-width:100vw}.fyvr1ia{min-width:100vh}.fyvr1ie{min-height:var(--seq-space-0)}.fyvr1ii{min-height:var(--seq-space-1)}.fyvr1im{min-height:var(--seq-space-2)}.fyvr1iq{min-height:var(--seq-space-3)}.fyvr1iu{min-height:var(--seq-space-4)}.fyvr1iy{min-height:var(--seq-space-5)}.fyvr1j2{min-height:var(--seq-space-6)}.fyvr1j6{min-height:var(--seq-space-7)}.fyvr1ja{min-height:var(--seq-space-8)}.fyvr1je{min-height:var(--seq-space-9)}.fyvr1ji{min-height:var(--seq-space-10)}.fyvr1jm{min-height:var(--seq-space-12)}.fyvr1jq{min-height:var(--seq-space-14)}.fyvr1ju{min-height:var(--seq-space-16)}.fyvr1jy{min-height:var(--seq-space-18)}.fyvr1k2{min-height:var(--seq-space-20)}.fyvr1k6{min-height:var(--seq-space-0_25)}.fyvr1ka{min-height:var(--seq-space-0_5)}.fyvr1ke{min-height:var(--seq-space-1_5)}.fyvr1ki{min-height:0}.fyvr1km{min-height:1px}.fyvr1kq{min-height:auto}.fyvr1ku{min-height:100%}.fyvr1ky{min-height:50%}.fyvr1l2{min-height:33.33333%}.fyvr1l6{min-height:66.66667%}.fyvr1la{min-height:25%}.fyvr1le{min-height:75%}.fyvr1li{min-height:-moz-fit-content;min-height:fit-content}.fyvr1lm{min-height:-moz-max-content;min-height:max-content}.fyvr1lq{min-height:-moz-min-content;min-height:min-content}.fyvr1lu{min-height:100vw}.fyvr1ly{min-height:100vh}.fyvr1m2{top:var(--seq-space-0)}.fyvr1m6{top:var(--seq-space-1)}.fyvr1ma{top:var(--seq-space-2)}.fyvr1me{top:var(--seq-space-3)}.fyvr1mi{top:var(--seq-space-4)}.fyvr1mm{top:var(--seq-space-5)}.fyvr1mq{top:var(--seq-space-6)}.fyvr1mu{top:var(--seq-space-7)}.fyvr1my{top:var(--seq-space-8)}.fyvr1n2{top:var(--seq-space-9)}.fyvr1n6{top:var(--seq-space-10)}.fyvr1na{top:var(--seq-space-12)}.fyvr1ne{top:var(--seq-space-14)}.fyvr1ni{top:var(--seq-space-16)}.fyvr1nm{top:var(--seq-space-18)}.fyvr1nq{top:var(--seq-space-20)}.fyvr1nu{top:var(--seq-space-0_25)}.fyvr1ny{top:var(--seq-space-0_5)}.fyvr1o2{top:var(--seq-space-1_5)}.fyvr1o6{top:auto}.fyvr1oa{bottom:var(--seq-space-0)}.fyvr1oe{bottom:var(--seq-space-1)}.fyvr1oi{bottom:var(--seq-space-2)}.fyvr1om{bottom:var(--seq-space-3)}.fyvr1oq{bottom:var(--seq-space-4)}.fyvr1ou{bottom:var(--seq-space-5)}.fyvr1oy{bottom:var(--seq-space-6)}.fyvr1p2{bottom:var(--seq-space-7)}.fyvr1p6{bottom:var(--seq-space-8)}.fyvr1pa{bottom:var(--seq-space-9)}.fyvr1pe{bottom:var(--seq-space-10)}.fyvr1pi{bottom:var(--seq-space-12)}.fyvr1pm{bottom:var(--seq-space-14)}.fyvr1pq{bottom:var(--seq-space-16)}.fyvr1pu{bottom:var(--seq-space-18)}.fyvr1py{bottom:var(--seq-space-20)}.fyvr1q2{bottom:var(--seq-space-0_25)}.fyvr1q6{bottom:var(--seq-space-0_5)}.fyvr1qa{bottom:var(--seq-space-1_5)}.fyvr1qe{bottom:auto}.fyvr1qi{left:var(--seq-space-0)}.fyvr1qm{left:var(--seq-space-1)}.fyvr1qq{left:var(--seq-space-2)}.fyvr1qu{left:var(--seq-space-3)}.fyvr1qy{left:var(--seq-space-4)}.fyvr1r2{left:var(--seq-space-5)}.fyvr1r6{left:var(--seq-space-6)}.fyvr1ra{left:var(--seq-space-7)}.fyvr1re{left:var(--seq-space-8)}.fyvr1ri{left:var(--seq-space-9)}.fyvr1rm{left:var(--seq-space-10)}.fyvr1rq{left:var(--seq-space-12)}.fyvr1ru{left:var(--seq-space-14)}.fyvr1ry{left:var(--seq-space-16)}.fyvr1s2{left:var(--seq-space-18)}.fyvr1s6{left:var(--seq-space-20)}.fyvr1sa{left:var(--seq-space-0_25)}.fyvr1se{left:var(--seq-space-0_5)}.fyvr1si{left:var(--seq-space-1_5)}.fyvr1sm{left:auto}.fyvr1sq{right:var(--seq-space-0)}.fyvr1su{right:var(--seq-space-1)}.fyvr1sy{right:var(--seq-space-2)}.fyvr1t2{right:var(--seq-space-3)}.fyvr1t6{right:var(--seq-space-4)}.fyvr1ta{right:var(--seq-space-5)}.fyvr1te{right:var(--seq-space-6)}.fyvr1ti{right:var(--seq-space-7)}.fyvr1tm{right:var(--seq-space-8)}.fyvr1tq{right:var(--seq-space-9)}.fyvr1tu{right:var(--seq-space-10)}.fyvr1ty{right:var(--seq-space-12)}.fyvr1u2{right:var(--seq-space-14)}.fyvr1u6{right:var(--seq-space-16)}.fyvr1ua{right:var(--seq-space-18)}.fyvr1ue{right:var(--seq-space-20)}.fyvr1ui{right:var(--seq-space-0_25)}.fyvr1um{right:var(--seq-space-0_5)}.fyvr1uq{right:var(--seq-space-1_5)}.fyvr1uu{right:auto}.fyvr1uy{padding-top:var(--seq-space-0)}.fyvr1v2{padding-top:var(--seq-space-1)}.fyvr1v6{padding-top:var(--seq-space-2)}.fyvr1va{padding-top:var(--seq-space-3)}.fyvr1ve{padding-top:var(--seq-space-4)}.fyvr1vi{padding-top:var(--seq-space-5)}.fyvr1vm{padding-top:var(--seq-space-6)}.fyvr1vq{padding-top:var(--seq-space-7)}.fyvr1vu{padding-top:var(--seq-space-8)}.fyvr1vy{padding-top:var(--seq-space-9)}.fyvr1w2{padding-top:var(--seq-space-10)}.fyvr1w6{padding-top:var(--seq-space-12)}.fyvr1wa{padding-top:var(--seq-space-14)}.fyvr1we{padding-top:var(--seq-space-16)}.fyvr1wi{padding-top:var(--seq-space-18)}.fyvr1wm{padding-top:var(--seq-space-20)}.fyvr1wq{padding-top:var(--seq-space-0_25)}.fyvr1wu{padding-top:var(--seq-space-0_5)}.fyvr1wy{padding-top:var(--seq-space-1_5)}.fyvr1x2{padding-bottom:var(--seq-space-0)}.fyvr1x6{padding-bottom:var(--seq-space-1)}.fyvr1xa{padding-bottom:var(--seq-space-2)}.fyvr1xe{padding-bottom:var(--seq-space-3)}.fyvr1xi{padding-bottom:var(--seq-space-4)}.fyvr1xm{padding-bottom:var(--seq-space-5)}.fyvr1xq{padding-bottom:var(--seq-space-6)}.fyvr1xu{padding-bottom:var(--seq-space-7)}.fyvr1xy{padding-bottom:var(--seq-space-8)}.fyvr1y2{padding-bottom:var(--seq-space-9)}.fyvr1y6{padding-bottom:var(--seq-space-10)}.fyvr1ya{padding-bottom:var(--seq-space-12)}.fyvr1ye{padding-bottom:var(--seq-space-14)}.fyvr1yi{padding-bottom:var(--seq-space-16)}.fyvr1ym{padding-bottom:var(--seq-space-18)}.fyvr1yq{padding-bottom:var(--seq-space-20)}.fyvr1yu{padding-bottom:var(--seq-space-0_25)}.fyvr1yy{padding-bottom:var(--seq-space-0_5)}.fyvr1z2{padding-bottom:var(--seq-space-1_5)}.fyvr1z6{padding-left:var(--seq-space-0)}.fyvr1za{padding-left:var(--seq-space-1)}.fyvr1ze{padding-left:var(--seq-space-2)}.fyvr1zi{padding-left:var(--seq-space-3)}.fyvr1zm{padding-left:var(--seq-space-4)}.fyvr1zq{padding-left:var(--seq-space-5)}.fyvr1zu{padding-left:var(--seq-space-6)}.fyvr1zy{padding-left:var(--seq-space-7)}.fyvr1102{padding-left:var(--seq-space-8)}.fyvr1106{padding-left:var(--seq-space-9)}.fyvr110a{padding-left:var(--seq-space-10)}.fyvr110e{padding-left:var(--seq-space-12)}.fyvr110i{padding-left:var(--seq-space-14)}.fyvr110m{padding-left:var(--seq-space-16)}.fyvr110q{padding-left:var(--seq-space-18)}.fyvr110u{padding-left:var(--seq-space-20)}.fyvr110y{padding-left:var(--seq-space-0_25)}.fyvr1112{padding-left:var(--seq-space-0_5)}.fyvr1116{padding-left:var(--seq-space-1_5)}.fyvr111a{padding-right:var(--seq-space-0)}.fyvr111e{padding-right:var(--seq-space-1)}.fyvr111i{padding-right:var(--seq-space-2)}.fyvr111m{padding-right:var(--seq-space-3)}.fyvr111q{padding-right:var(--seq-space-4)}.fyvr111u{padding-right:var(--seq-space-5)}.fyvr111y{padding-right:var(--seq-space-6)}.fyvr1122{padding-right:var(--seq-space-7)}.fyvr1126{padding-right:var(--seq-space-8)}.fyvr112a{padding-right:var(--seq-space-9)}.fyvr112e{padding-right:var(--seq-space-10)}.fyvr112i{padding-right:var(--seq-space-12)}.fyvr112m{padding-right:var(--seq-space-14)}.fyvr112q{padding-right:var(--seq-space-16)}.fyvr112u{padding-right:var(--seq-space-18)}.fyvr112y{padding-right:var(--seq-space-20)}.fyvr1132{padding-right:var(--seq-space-0_25)}.fyvr1136{padding-right:var(--seq-space-0_5)}.fyvr113a{padding-right:var(--seq-space-1_5)}.fyvr113e{margin-top:var(--seq-space-0)}.fyvr113i{margin-top:var(--seq-space-1)}.fyvr113m{margin-top:var(--seq-space-2)}.fyvr113q{margin-top:var(--seq-space-3)}.fyvr113u{margin-top:var(--seq-space-4)}.fyvr113y{margin-top:var(--seq-space-5)}.fyvr1142{margin-top:var(--seq-space-6)}.fyvr1146{margin-top:var(--seq-space-7)}.fyvr114a{margin-top:var(--seq-space-8)}.fyvr114e{margin-top:var(--seq-space-9)}.fyvr114i{margin-top:var(--seq-space-10)}.fyvr114m{margin-top:var(--seq-space-12)}.fyvr114q{margin-top:var(--seq-space-14)}.fyvr114u{margin-top:var(--seq-space-16)}.fyvr114y{margin-top:var(--seq-space-18)}.fyvr1152{margin-top:var(--seq-space-20)}.fyvr1156{margin-top:var(--seq-space-0_25)}.fyvr115a{margin-top:var(--seq-space-0_5)}.fyvr115e{margin-top:var(--seq-space-1_5)}.fyvr115i{margin-top:auto}.fyvr115m{margin-bottom:var(--seq-space-0)}.fyvr115q{margin-bottom:var(--seq-space-1)}.fyvr115u{margin-bottom:var(--seq-space-2)}.fyvr115y{margin-bottom:var(--seq-space-3)}.fyvr1162{margin-bottom:var(--seq-space-4)}.fyvr1166{margin-bottom:var(--seq-space-5)}.fyvr116a{margin-bottom:var(--seq-space-6)}.fyvr116e{margin-bottom:var(--seq-space-7)}.fyvr116i{margin-bottom:var(--seq-space-8)}.fyvr116m{margin-bottom:var(--seq-space-9)}.fyvr116q{margin-bottom:var(--seq-space-10)}.fyvr116u{margin-bottom:var(--seq-space-12)}.fyvr116y{margin-bottom:var(--seq-space-14)}.fyvr1172{margin-bottom:var(--seq-space-16)}.fyvr1176{margin-bottom:var(--seq-space-18)}.fyvr117a{margin-bottom:var(--seq-space-20)}.fyvr117e{margin-bottom:var(--seq-space-0_25)}.fyvr117i{margin-bottom:var(--seq-space-0_5)}.fyvr117m{margin-bottom:var(--seq-space-1_5)}.fyvr117q{margin-bottom:auto}.fyvr117u{margin-left:var(--seq-space-0)}.fyvr117y{margin-left:var(--seq-space-1)}.fyvr1182{margin-left:var(--seq-space-2)}.fyvr1186{margin-left:var(--seq-space-3)}.fyvr118a{margin-left:var(--seq-space-4)}.fyvr118e{margin-left:var(--seq-space-5)}.fyvr118i{margin-left:var(--seq-space-6)}.fyvr118m{margin-left:var(--seq-space-7)}.fyvr118q{margin-left:var(--seq-space-8)}.fyvr118u{margin-left:var(--seq-space-9)}.fyvr118y{margin-left:var(--seq-space-10)}.fyvr1192{margin-left:var(--seq-space-12)}.fyvr1196{margin-left:var(--seq-space-14)}.fyvr119a{margin-left:var(--seq-space-16)}.fyvr119e{margin-left:var(--seq-space-18)}.fyvr119i{margin-left:var(--seq-space-20)}.fyvr119m{margin-left:var(--seq-space-0_25)}.fyvr119q{margin-left:var(--seq-space-0_5)}.fyvr119u{margin-left:var(--seq-space-1_5)}.fyvr119y{margin-left:auto}.fyvr11a2{margin-right:var(--seq-space-0)}.fyvr11a6{margin-right:var(--seq-space-1)}.fyvr11aa{margin-right:var(--seq-space-2)}.fyvr11ae{margin-right:var(--seq-space-3)}.fyvr11ai{margin-right:var(--seq-space-4)}.fyvr11am{margin-right:var(--seq-space-5)}.fyvr11aq{margin-right:var(--seq-space-6)}.fyvr11au{margin-right:var(--seq-space-7)}.fyvr11ay{margin-right:var(--seq-space-8)}.fyvr11b2{margin-right:var(--seq-space-9)}.fyvr11b6{margin-right:var(--seq-space-10)}.fyvr11ba{margin-right:var(--seq-space-12)}.fyvr11be{margin-right:var(--seq-space-14)}.fyvr11bi{margin-right:var(--seq-space-16)}.fyvr11bm{margin-right:var(--seq-space-18)}.fyvr11bq{margin-right:var(--seq-space-20)}.fyvr11bu{margin-right:var(--seq-space-0_25)}.fyvr11by{margin-right:var(--seq-space-0_5)}.fyvr11c2{margin-right:var(--seq-space-1_5)}.fyvr11c6{margin-right:auto}.fyvr11ca{gap:var(--seq-space-0)}.fyvr11ce{gap:var(--seq-space-1)}.fyvr11ci{gap:var(--seq-space-2)}.fyvr11cm{gap:var(--seq-space-3)}.fyvr11cq{gap:var(--seq-space-4)}.fyvr11cu{gap:var(--seq-space-5)}.fyvr11cy{gap:var(--seq-space-6)}.fyvr11d2{gap:var(--seq-space-7)}.fyvr11d6{gap:var(--seq-space-8)}.fyvr11da{gap:var(--seq-space-9)}.fyvr11de{gap:var(--seq-space-10)}.fyvr11di{gap:var(--seq-space-12)}.fyvr11dm{gap:var(--seq-space-14)}.fyvr11dq{gap:var(--seq-space-16)}.fyvr11du{gap:var(--seq-space-18)}.fyvr11dy{gap:var(--seq-space-20)}.fyvr11e2{gap:var(--seq-space-0_25)}.fyvr11e6{gap:var(--seq-space-0_5)}.fyvr11ea{gap:var(--seq-space-1_5)}.fyvr11ee{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ei{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11em{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11eq{border-left-width:var(--seq-border-widths-none)}.fyvr11eu{border-left-width:var(--seq-border-widths-thin)}.fyvr11ey{border-left-width:var(--seq-border-widths-thick)}.fyvr11f2{border-right-width:var(--seq-border-widths-none)}.fyvr11f6{border-right-width:var(--seq-border-widths-thin)}.fyvr11fa{border-right-width:var(--seq-border-widths-thick)}.fyvr11fe{border-top-width:var(--seq-border-widths-none)}.fyvr11fi{border-top-width:var(--seq-border-widths-thin)}.fyvr11fm{border-top-width:var(--seq-border-widths-thick)}.fyvr11fq{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11fu{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11fy{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11g2{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11g6{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11ga{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11ge{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11gi{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11gm{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11gq{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11gu{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11gy{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11h2{border-top-left-radius:var(--seq-radii-none)}.fyvr11h6{border-top-left-radius:var(--seq-radii-xs)}.fyvr11ha{border-top-left-radius:var(--seq-radii-sm)}.fyvr11he{border-top-left-radius:var(--seq-radii-md)}.fyvr11hi{border-top-left-radius:var(--seq-radii-lg)}.fyvr11hm{border-top-left-radius:var(--seq-radii-circle)}.fyvr11hq{border-top-right-radius:var(--seq-radii-none)}.fyvr11hu{border-top-right-radius:var(--seq-radii-xs)}.fyvr11hy{border-top-right-radius:var(--seq-radii-sm)}.fyvr11i2{border-top-right-radius:var(--seq-radii-md)}.fyvr11i6{border-top-right-radius:var(--seq-radii-lg)}.fyvr11ia{border-top-right-radius:var(--seq-radii-circle)}.fyvr11ie{font-size:var(--seq-font-sizes-inherit)}.fyvr11ii{font-size:var(--seq-font-sizes-xsmall)}.fyvr11im{font-size:var(--seq-font-sizes-small)}.fyvr11iq{font-size:var(--seq-font-sizes-normal)}.fyvr11iu{font-size:var(--seq-font-sizes-medium)}.fyvr11iy{font-size:var(--seq-font-sizes-large)}.fyvr11j2{font-size:var(--seq-font-sizes-xlarge)}.fyvr11j6{font-weight:var(--seq-font-weights-inherit)}.fyvr11ja{font-weight:var(--seq-font-weights-normal)}.fyvr11je{font-weight:var(--seq-font-weights-medium)}.fyvr11ji{font-weight:var(--seq-font-weights-semibold)}.fyvr11jm{font-weight:var(--seq-font-weights-bold)}.fyvr11jq{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11ju{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11jy{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11k2{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11k6{line-height:var(--seq-line-heights-4)}.fyvr11ka{line-height:var(--seq-line-heights-5)}.fyvr11ke{line-height:var(--seq-line-heights-6)}.fyvr11ki{line-height:var(--seq-line-heights-7)}.fyvr11km{line-height:var(--seq-line-heights-9)}.fyvr11kq{line-height:var(--seq-line-heights-inherit)}.fyvr11ku{text-align:center}.fyvr11ky{text-align:left}.fyvr11l2{text-align:right}.fyvr11l6{display:block}.fyvr11la{display:flex}.fyvr11le{display:grid}.fyvr11li{display:inline-block}.fyvr11lm{display:inline-flex}.fyvr11lq{display:none}.fyvr11lu{display:contents}.fyvr11ly{position:absolute}.fyvr11m2{position:fixed}.fyvr11m6{position:relative}.fyvr11ma{position:sticky}.fyvr11me{flex-direction:column}.fyvr11mi{flex-direction:column-reverse}.fyvr11mm{flex-direction:row}.fyvr11mq{flex-direction:row-reverse}.fyvr11mu{flex-shrink:0}.fyvr11my{flex-shrink:1}.fyvr11n2{flex-grow:0}.fyvr11n6{flex-grow:1}.fyvr11na{flex-wrap:nowrap}.fyvr11ne{flex-wrap:wrap}.fyvr11ni{flex-wrap:wrap-reverse}.fyvr11nm{justify-content:flex-start}.fyvr11nq{justify-content:center}.fyvr11nu{justify-content:flex-end}.fyvr11ny{justify-content:stretch}.fyvr11o2{justify-content:space-around}.fyvr11o6{justify-content:space-between}.fyvr11oa{justify-content:space-evenly}.fyvr11oe{justify-self:flex-start}.fyvr11oi{justify-self:center}.fyvr11om{justify-self:flex-end}.fyvr11oq{justify-self:stretch}.fyvr11ou{align-items:flex-start}.fyvr11oy{align-items:center}.fyvr11p2{align-items:flex-end}.fyvr11p6{align-items:stretch}.fyvr11pa{align-items:baseline}.fyvr11pe{align-self:flex-start}.fyvr11pi{align-self:center}.fyvr11pm{align-self:flex-end}.fyvr11pq{align-self:stretch}.fyvr11pu{align-self:baseline}.fyvr11py{overflow-x:auto}.fyvr11q2{overflow-x:hidden}.fyvr11q6{overflow-x:scroll}.fyvr11qa{overflow-x:visible}.fyvr11qe{overflow-y:auto}.fyvr11qi{overflow-y:hidden}.fyvr11qm{overflow-y:scroll}.fyvr11qq{overflow-y:visible}.fyvr11qu{visibility:hidden}.fyvr11qy{visibility:visible}}@media (min-width: 1281px){.fyvr13{width:var(--seq-space-0)}.fyvr17{width:var(--seq-space-1)}.fyvr1b{width:var(--seq-space-2)}.fyvr1f{width:var(--seq-space-3)}.fyvr1j{width:var(--seq-space-4)}.fyvr1n{width:var(--seq-space-5)}.fyvr1r{width:var(--seq-space-6)}.fyvr1v{width:var(--seq-space-7)}.fyvr1z{width:var(--seq-space-8)}.fyvr113{width:var(--seq-space-9)}.fyvr117{width:var(--seq-space-10)}.fyvr11b{width:var(--seq-space-12)}.fyvr11f{width:var(--seq-space-14)}.fyvr11j{width:var(--seq-space-16)}.fyvr11n{width:var(--seq-space-18)}.fyvr11r{width:var(--seq-space-20)}.fyvr11v{width:var(--seq-space-0_25)}.fyvr11z{width:var(--seq-space-0_5)}.fyvr123{width:var(--seq-space-1_5)}.fyvr127{width:0}.fyvr12b{width:1px}.fyvr12f{width:auto}.fyvr12j{width:100%}.fyvr12n{width:50%}.fyvr12r{width:33.33333%}.fyvr12v{width:66.66667%}.fyvr12z{width:25%}.fyvr133{width:75%}.fyvr137{width:-moz-fit-content;width:fit-content}.fyvr13b{width:-moz-max-content;width:max-content}.fyvr13f{width:-moz-min-content;width:min-content}.fyvr13j{width:100vw}.fyvr13n{width:100vh}.fyvr13r{height:var(--seq-space-0)}.fyvr13v{height:var(--seq-space-1)}.fyvr13z{height:var(--seq-space-2)}.fyvr143{height:var(--seq-space-3)}.fyvr147{height:var(--seq-space-4)}.fyvr14b{height:var(--seq-space-5)}.fyvr14f{height:var(--seq-space-6)}.fyvr14j{height:var(--seq-space-7)}.fyvr14n{height:var(--seq-space-8)}.fyvr14r{height:var(--seq-space-9)}.fyvr14v{height:var(--seq-space-10)}.fyvr14z{height:var(--seq-space-12)}.fyvr153{height:var(--seq-space-14)}.fyvr157{height:var(--seq-space-16)}.fyvr15b{height:var(--seq-space-18)}.fyvr15f{height:var(--seq-space-20)}.fyvr15j{height:var(--seq-space-0_25)}.fyvr15n{height:var(--seq-space-0_5)}.fyvr15r{height:var(--seq-space-1_5)}.fyvr15v{height:0}.fyvr15z{height:1px}.fyvr163{height:auto}.fyvr167{height:100%}.fyvr16b{height:50%}.fyvr16f{height:33.33333%}.fyvr16j{height:66.66667%}.fyvr16n{height:25%}.fyvr16r{height:75%}.fyvr16v{height:-moz-fit-content;height:fit-content}.fyvr16z{height:-moz-max-content;height:max-content}.fyvr173{height:-moz-min-content;height:min-content}.fyvr177{height:100vw}.fyvr17b{height:100vh}.fyvr17f{max-width:var(--seq-space-0)}.fyvr17j{max-width:var(--seq-space-1)}.fyvr17n{max-width:var(--seq-space-2)}.fyvr17r{max-width:var(--seq-space-3)}.fyvr17v{max-width:var(--seq-space-4)}.fyvr17z{max-width:var(--seq-space-5)}.fyvr183{max-width:var(--seq-space-6)}.fyvr187{max-width:var(--seq-space-7)}.fyvr18b{max-width:var(--seq-space-8)}.fyvr18f{max-width:var(--seq-space-9)}.fyvr18j{max-width:var(--seq-space-10)}.fyvr18n{max-width:var(--seq-space-12)}.fyvr18r{max-width:var(--seq-space-14)}.fyvr18v{max-width:var(--seq-space-16)}.fyvr18z{max-width:var(--seq-space-18)}.fyvr193{max-width:var(--seq-space-20)}.fyvr197{max-width:var(--seq-space-0_25)}.fyvr19b{max-width:var(--seq-space-0_5)}.fyvr19f{max-width:var(--seq-space-1_5)}.fyvr19j{max-width:0}.fyvr19n{max-width:1px}.fyvr19r{max-width:auto}.fyvr19v{max-width:100%}.fyvr19z{max-width:50%}.fyvr1a3{max-width:33.33333%}.fyvr1a7{max-width:66.66667%}.fyvr1ab{max-width:25%}.fyvr1af{max-width:75%}.fyvr1aj{max-width:-moz-fit-content;max-width:fit-content}.fyvr1an{max-width:-moz-max-content;max-width:max-content}.fyvr1ar{max-width:-moz-min-content;max-width:min-content}.fyvr1av{max-width:100vw}.fyvr1az{max-width:100vh}.fyvr1b3{max-height:var(--seq-space-0)}.fyvr1b7{max-height:var(--seq-space-1)}.fyvr1bb{max-height:var(--seq-space-2)}.fyvr1bf{max-height:var(--seq-space-3)}.fyvr1bj{max-height:var(--seq-space-4)}.fyvr1bn{max-height:var(--seq-space-5)}.fyvr1br{max-height:var(--seq-space-6)}.fyvr1bv{max-height:var(--seq-space-7)}.fyvr1bz{max-height:var(--seq-space-8)}.fyvr1c3{max-height:var(--seq-space-9)}.fyvr1c7{max-height:var(--seq-space-10)}.fyvr1cb{max-height:var(--seq-space-12)}.fyvr1cf{max-height:var(--seq-space-14)}.fyvr1cj{max-height:var(--seq-space-16)}.fyvr1cn{max-height:var(--seq-space-18)}.fyvr1cr{max-height:var(--seq-space-20)}.fyvr1cv{max-height:var(--seq-space-0_25)}.fyvr1cz{max-height:var(--seq-space-0_5)}.fyvr1d3{max-height:var(--seq-space-1_5)}.fyvr1d7{max-height:0}.fyvr1db{max-height:1px}.fyvr1df{max-height:auto}.fyvr1dj{max-height:100%}.fyvr1dn{max-height:50%}.fyvr1dr{max-height:33.33333%}.fyvr1dv{max-height:66.66667%}.fyvr1dz{max-height:25%}.fyvr1e3{max-height:75%}.fyvr1e7{max-height:-moz-fit-content;max-height:fit-content}.fyvr1eb{max-height:-moz-max-content;max-height:max-content}.fyvr1ef{max-height:-moz-min-content;max-height:min-content}.fyvr1ej{max-height:100vw}.fyvr1en{max-height:100vh}.fyvr1er{min-width:var(--seq-space-0)}.fyvr1ev{min-width:var(--seq-space-1)}.fyvr1ez{min-width:var(--seq-space-2)}.fyvr1f3{min-width:var(--seq-space-3)}.fyvr1f7{min-width:var(--seq-space-4)}.fyvr1fb{min-width:var(--seq-space-5)}.fyvr1ff{min-width:var(--seq-space-6)}.fyvr1fj{min-width:var(--seq-space-7)}.fyvr1fn{min-width:var(--seq-space-8)}.fyvr1fr{min-width:var(--seq-space-9)}.fyvr1fv{min-width:var(--seq-space-10)}.fyvr1fz{min-width:var(--seq-space-12)}.fyvr1g3{min-width:var(--seq-space-14)}.fyvr1g7{min-width:var(--seq-space-16)}.fyvr1gb{min-width:var(--seq-space-18)}.fyvr1gf{min-width:var(--seq-space-20)}.fyvr1gj{min-width:var(--seq-space-0_25)}.fyvr1gn{min-width:var(--seq-space-0_5)}.fyvr1gr{min-width:var(--seq-space-1_5)}.fyvr1gv{min-width:0}.fyvr1gz{min-width:1px}.fyvr1h3{min-width:auto}.fyvr1h7{min-width:100%}.fyvr1hb{min-width:50%}.fyvr1hf{min-width:33.33333%}.fyvr1hj{min-width:66.66667%}.fyvr1hn{min-width:25%}.fyvr1hr{min-width:75%}.fyvr1hv{min-width:-moz-fit-content;min-width:fit-content}.fyvr1hz{min-width:-moz-max-content;min-width:max-content}.fyvr1i3{min-width:-moz-min-content;min-width:min-content}.fyvr1i7{min-width:100vw}.fyvr1ib{min-width:100vh}.fyvr1if{min-height:var(--seq-space-0)}.fyvr1ij{min-height:var(--seq-space-1)}.fyvr1in{min-height:var(--seq-space-2)}.fyvr1ir{min-height:var(--seq-space-3)}.fyvr1iv{min-height:var(--seq-space-4)}.fyvr1iz{min-height:var(--seq-space-5)}.fyvr1j3{min-height:var(--seq-space-6)}.fyvr1j7{min-height:var(--seq-space-7)}.fyvr1jb{min-height:var(--seq-space-8)}.fyvr1jf{min-height:var(--seq-space-9)}.fyvr1jj{min-height:var(--seq-space-10)}.fyvr1jn{min-height:var(--seq-space-12)}.fyvr1jr{min-height:var(--seq-space-14)}.fyvr1jv{min-height:var(--seq-space-16)}.fyvr1jz{min-height:var(--seq-space-18)}.fyvr1k3{min-height:var(--seq-space-20)}.fyvr1k7{min-height:var(--seq-space-0_25)}.fyvr1kb{min-height:var(--seq-space-0_5)}.fyvr1kf{min-height:var(--seq-space-1_5)}.fyvr1kj{min-height:0}.fyvr1kn{min-height:1px}.fyvr1kr{min-height:auto}.fyvr1kv{min-height:100%}.fyvr1kz{min-height:50%}.fyvr1l3{min-height:33.33333%}.fyvr1l7{min-height:66.66667%}.fyvr1lb{min-height:25%}.fyvr1lf{min-height:75%}.fyvr1lj{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ln{min-height:-moz-max-content;min-height:max-content}.fyvr1lr{min-height:-moz-min-content;min-height:min-content}.fyvr1lv{min-height:100vw}.fyvr1lz{min-height:100vh}.fyvr1m3{top:var(--seq-space-0)}.fyvr1m7{top:var(--seq-space-1)}.fyvr1mb{top:var(--seq-space-2)}.fyvr1mf{top:var(--seq-space-3)}.fyvr1mj{top:var(--seq-space-4)}.fyvr1mn{top:var(--seq-space-5)}.fyvr1mr{top:var(--seq-space-6)}.fyvr1mv{top:var(--seq-space-7)}.fyvr1mz{top:var(--seq-space-8)}.fyvr1n3{top:var(--seq-space-9)}.fyvr1n7{top:var(--seq-space-10)}.fyvr1nb{top:var(--seq-space-12)}.fyvr1nf{top:var(--seq-space-14)}.fyvr1nj{top:var(--seq-space-16)}.fyvr1nn{top:var(--seq-space-18)}.fyvr1nr{top:var(--seq-space-20)}.fyvr1nv{top:var(--seq-space-0_25)}.fyvr1nz{top:var(--seq-space-0_5)}.fyvr1o3{top:var(--seq-space-1_5)}.fyvr1o7{top:auto}.fyvr1ob{bottom:var(--seq-space-0)}.fyvr1of{bottom:var(--seq-space-1)}.fyvr1oj{bottom:var(--seq-space-2)}.fyvr1on{bottom:var(--seq-space-3)}.fyvr1or{bottom:var(--seq-space-4)}.fyvr1ov{bottom:var(--seq-space-5)}.fyvr1oz{bottom:var(--seq-space-6)}.fyvr1p3{bottom:var(--seq-space-7)}.fyvr1p7{bottom:var(--seq-space-8)}.fyvr1pb{bottom:var(--seq-space-9)}.fyvr1pf{bottom:var(--seq-space-10)}.fyvr1pj{bottom:var(--seq-space-12)}.fyvr1pn{bottom:var(--seq-space-14)}.fyvr1pr{bottom:var(--seq-space-16)}.fyvr1pv{bottom:var(--seq-space-18)}.fyvr1pz{bottom:var(--seq-space-20)}.fyvr1q3{bottom:var(--seq-space-0_25)}.fyvr1q7{bottom:var(--seq-space-0_5)}.fyvr1qb{bottom:var(--seq-space-1_5)}.fyvr1qf{bottom:auto}.fyvr1qj{left:var(--seq-space-0)}.fyvr1qn{left:var(--seq-space-1)}.fyvr1qr{left:var(--seq-space-2)}.fyvr1qv{left:var(--seq-space-3)}.fyvr1qz{left:var(--seq-space-4)}.fyvr1r3{left:var(--seq-space-5)}.fyvr1r7{left:var(--seq-space-6)}.fyvr1rb{left:var(--seq-space-7)}.fyvr1rf{left:var(--seq-space-8)}.fyvr1rj{left:var(--seq-space-9)}.fyvr1rn{left:var(--seq-space-10)}.fyvr1rr{left:var(--seq-space-12)}.fyvr1rv{left:var(--seq-space-14)}.fyvr1rz{left:var(--seq-space-16)}.fyvr1s3{left:var(--seq-space-18)}.fyvr1s7{left:var(--seq-space-20)}.fyvr1sb{left:var(--seq-space-0_25)}.fyvr1sf{left:var(--seq-space-0_5)}.fyvr1sj{left:var(--seq-space-1_5)}.fyvr1sn{left:auto}.fyvr1sr{right:var(--seq-space-0)}.fyvr1sv{right:var(--seq-space-1)}.fyvr1sz{right:var(--seq-space-2)}.fyvr1t3{right:var(--seq-space-3)}.fyvr1t7{right:var(--seq-space-4)}.fyvr1tb{right:var(--seq-space-5)}.fyvr1tf{right:var(--seq-space-6)}.fyvr1tj{right:var(--seq-space-7)}.fyvr1tn{right:var(--seq-space-8)}.fyvr1tr{right:var(--seq-space-9)}.fyvr1tv{right:var(--seq-space-10)}.fyvr1tz{right:var(--seq-space-12)}.fyvr1u3{right:var(--seq-space-14)}.fyvr1u7{right:var(--seq-space-16)}.fyvr1ub{right:var(--seq-space-18)}.fyvr1uf{right:var(--seq-space-20)}.fyvr1uj{right:var(--seq-space-0_25)}.fyvr1un{right:var(--seq-space-0_5)}.fyvr1ur{right:var(--seq-space-1_5)}.fyvr1uv{right:auto}.fyvr1uz{padding-top:var(--seq-space-0)}.fyvr1v3{padding-top:var(--seq-space-1)}.fyvr1v7{padding-top:var(--seq-space-2)}.fyvr1vb{padding-top:var(--seq-space-3)}.fyvr1vf{padding-top:var(--seq-space-4)}.fyvr1vj{padding-top:var(--seq-space-5)}.fyvr1vn{padding-top:var(--seq-space-6)}.fyvr1vr{padding-top:var(--seq-space-7)}.fyvr1vv{padding-top:var(--seq-space-8)}.fyvr1vz{padding-top:var(--seq-space-9)}.fyvr1w3{padding-top:var(--seq-space-10)}.fyvr1w7{padding-top:var(--seq-space-12)}.fyvr1wb{padding-top:var(--seq-space-14)}.fyvr1wf{padding-top:var(--seq-space-16)}.fyvr1wj{padding-top:var(--seq-space-18)}.fyvr1wn{padding-top:var(--seq-space-20)}.fyvr1wr{padding-top:var(--seq-space-0_25)}.fyvr1wv{padding-top:var(--seq-space-0_5)}.fyvr1wz{padding-top:var(--seq-space-1_5)}.fyvr1x3{padding-bottom:var(--seq-space-0)}.fyvr1x7{padding-bottom:var(--seq-space-1)}.fyvr1xb{padding-bottom:var(--seq-space-2)}.fyvr1xf{padding-bottom:var(--seq-space-3)}.fyvr1xj{padding-bottom:var(--seq-space-4)}.fyvr1xn{padding-bottom:var(--seq-space-5)}.fyvr1xr{padding-bottom:var(--seq-space-6)}.fyvr1xv{padding-bottom:var(--seq-space-7)}.fyvr1xz{padding-bottom:var(--seq-space-8)}.fyvr1y3{padding-bottom:var(--seq-space-9)}.fyvr1y7{padding-bottom:var(--seq-space-10)}.fyvr1yb{padding-bottom:var(--seq-space-12)}.fyvr1yf{padding-bottom:var(--seq-space-14)}.fyvr1yj{padding-bottom:var(--seq-space-16)}.fyvr1yn{padding-bottom:var(--seq-space-18)}.fyvr1yr{padding-bottom:var(--seq-space-20)}.fyvr1yv{padding-bottom:var(--seq-space-0_25)}.fyvr1yz{padding-bottom:var(--seq-space-0_5)}.fyvr1z3{padding-bottom:var(--seq-space-1_5)}.fyvr1z7{padding-left:var(--seq-space-0)}.fyvr1zb{padding-left:var(--seq-space-1)}.fyvr1zf{padding-left:var(--seq-space-2)}.fyvr1zj{padding-left:var(--seq-space-3)}.fyvr1zn{padding-left:var(--seq-space-4)}.fyvr1zr{padding-left:var(--seq-space-5)}.fyvr1zv{padding-left:var(--seq-space-6)}.fyvr1zz{padding-left:var(--seq-space-7)}.fyvr1103{padding-left:var(--seq-space-8)}.fyvr1107{padding-left:var(--seq-space-9)}.fyvr110b{padding-left:var(--seq-space-10)}.fyvr110f{padding-left:var(--seq-space-12)}.fyvr110j{padding-left:var(--seq-space-14)}.fyvr110n{padding-left:var(--seq-space-16)}.fyvr110r{padding-left:var(--seq-space-18)}.fyvr110v{padding-left:var(--seq-space-20)}.fyvr110z{padding-left:var(--seq-space-0_25)}.fyvr1113{padding-left:var(--seq-space-0_5)}.fyvr1117{padding-left:var(--seq-space-1_5)}.fyvr111b{padding-right:var(--seq-space-0)}.fyvr111f{padding-right:var(--seq-space-1)}.fyvr111j{padding-right:var(--seq-space-2)}.fyvr111n{padding-right:var(--seq-space-3)}.fyvr111r{padding-right:var(--seq-space-4)}.fyvr111v{padding-right:var(--seq-space-5)}.fyvr111z{padding-right:var(--seq-space-6)}.fyvr1123{padding-right:var(--seq-space-7)}.fyvr1127{padding-right:var(--seq-space-8)}.fyvr112b{padding-right:var(--seq-space-9)}.fyvr112f{padding-right:var(--seq-space-10)}.fyvr112j{padding-right:var(--seq-space-12)}.fyvr112n{padding-right:var(--seq-space-14)}.fyvr112r{padding-right:var(--seq-space-16)}.fyvr112v{padding-right:var(--seq-space-18)}.fyvr112z{padding-right:var(--seq-space-20)}.fyvr1133{padding-right:var(--seq-space-0_25)}.fyvr1137{padding-right:var(--seq-space-0_5)}.fyvr113b{padding-right:var(--seq-space-1_5)}.fyvr113f{margin-top:var(--seq-space-0)}.fyvr113j{margin-top:var(--seq-space-1)}.fyvr113n{margin-top:var(--seq-space-2)}.fyvr113r{margin-top:var(--seq-space-3)}.fyvr113v{margin-top:var(--seq-space-4)}.fyvr113z{margin-top:var(--seq-space-5)}.fyvr1143{margin-top:var(--seq-space-6)}.fyvr1147{margin-top:var(--seq-space-7)}.fyvr114b{margin-top:var(--seq-space-8)}.fyvr114f{margin-top:var(--seq-space-9)}.fyvr114j{margin-top:var(--seq-space-10)}.fyvr114n{margin-top:var(--seq-space-12)}.fyvr114r{margin-top:var(--seq-space-14)}.fyvr114v{margin-top:var(--seq-space-16)}.fyvr114z{margin-top:var(--seq-space-18)}.fyvr1153{margin-top:var(--seq-space-20)}.fyvr1157{margin-top:var(--seq-space-0_25)}.fyvr115b{margin-top:var(--seq-space-0_5)}.fyvr115f{margin-top:var(--seq-space-1_5)}.fyvr115j{margin-top:auto}.fyvr115n{margin-bottom:var(--seq-space-0)}.fyvr115r{margin-bottom:var(--seq-space-1)}.fyvr115v{margin-bottom:var(--seq-space-2)}.fyvr115z{margin-bottom:var(--seq-space-3)}.fyvr1163{margin-bottom:var(--seq-space-4)}.fyvr1167{margin-bottom:var(--seq-space-5)}.fyvr116b{margin-bottom:var(--seq-space-6)}.fyvr116f{margin-bottom:var(--seq-space-7)}.fyvr116j{margin-bottom:var(--seq-space-8)}.fyvr116n{margin-bottom:var(--seq-space-9)}.fyvr116r{margin-bottom:var(--seq-space-10)}.fyvr116v{margin-bottom:var(--seq-space-12)}.fyvr116z{margin-bottom:var(--seq-space-14)}.fyvr1173{margin-bottom:var(--seq-space-16)}.fyvr1177{margin-bottom:var(--seq-space-18)}.fyvr117b{margin-bottom:var(--seq-space-20)}.fyvr117f{margin-bottom:var(--seq-space-0_25)}.fyvr117j{margin-bottom:var(--seq-space-0_5)}.fyvr117n{margin-bottom:var(--seq-space-1_5)}.fyvr117r{margin-bottom:auto}.fyvr117v{margin-left:var(--seq-space-0)}.fyvr117z{margin-left:var(--seq-space-1)}.fyvr1183{margin-left:var(--seq-space-2)}.fyvr1187{margin-left:var(--seq-space-3)}.fyvr118b{margin-left:var(--seq-space-4)}.fyvr118f{margin-left:var(--seq-space-5)}.fyvr118j{margin-left:var(--seq-space-6)}.fyvr118n{margin-left:var(--seq-space-7)}.fyvr118r{margin-left:var(--seq-space-8)}.fyvr118v{margin-left:var(--seq-space-9)}.fyvr118z{margin-left:var(--seq-space-10)}.fyvr1193{margin-left:var(--seq-space-12)}.fyvr1197{margin-left:var(--seq-space-14)}.fyvr119b{margin-left:var(--seq-space-16)}.fyvr119f{margin-left:var(--seq-space-18)}.fyvr119j{margin-left:var(--seq-space-20)}.fyvr119n{margin-left:var(--seq-space-0_25)}.fyvr119r{margin-left:var(--seq-space-0_5)}.fyvr119v{margin-left:var(--seq-space-1_5)}.fyvr119z{margin-left:auto}.fyvr11a3{margin-right:var(--seq-space-0)}.fyvr11a7{margin-right:var(--seq-space-1)}.fyvr11ab{margin-right:var(--seq-space-2)}.fyvr11af{margin-right:var(--seq-space-3)}.fyvr11aj{margin-right:var(--seq-space-4)}.fyvr11an{margin-right:var(--seq-space-5)}.fyvr11ar{margin-right:var(--seq-space-6)}.fyvr11av{margin-right:var(--seq-space-7)}.fyvr11az{margin-right:var(--seq-space-8)}.fyvr11b3{margin-right:var(--seq-space-9)}.fyvr11b7{margin-right:var(--seq-space-10)}.fyvr11bb{margin-right:var(--seq-space-12)}.fyvr11bf{margin-right:var(--seq-space-14)}.fyvr11bj{margin-right:var(--seq-space-16)}.fyvr11bn{margin-right:var(--seq-space-18)}.fyvr11br{margin-right:var(--seq-space-20)}.fyvr11bv{margin-right:var(--seq-space-0_25)}.fyvr11bz{margin-right:var(--seq-space-0_5)}.fyvr11c3{margin-right:var(--seq-space-1_5)}.fyvr11c7{margin-right:auto}.fyvr11cb{gap:var(--seq-space-0)}.fyvr11cf{gap:var(--seq-space-1)}.fyvr11cj{gap:var(--seq-space-2)}.fyvr11cn{gap:var(--seq-space-3)}.fyvr11cr{gap:var(--seq-space-4)}.fyvr11cv{gap:var(--seq-space-5)}.fyvr11cz{gap:var(--seq-space-6)}.fyvr11d3{gap:var(--seq-space-7)}.fyvr11d7{gap:var(--seq-space-8)}.fyvr11db{gap:var(--seq-space-9)}.fyvr11df{gap:var(--seq-space-10)}.fyvr11dj{gap:var(--seq-space-12)}.fyvr11dn{gap:var(--seq-space-14)}.fyvr11dr{gap:var(--seq-space-16)}.fyvr11dv{gap:var(--seq-space-18)}.fyvr11dz{gap:var(--seq-space-20)}.fyvr11e3{gap:var(--seq-space-0_25)}.fyvr11e7{gap:var(--seq-space-0_5)}.fyvr11eb{gap:var(--seq-space-1_5)}.fyvr11ef{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ej{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11en{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11er{border-left-width:var(--seq-border-widths-none)}.fyvr11ev{border-left-width:var(--seq-border-widths-thin)}.fyvr11ez{border-left-width:var(--seq-border-widths-thick)}.fyvr11f3{border-right-width:var(--seq-border-widths-none)}.fyvr11f7{border-right-width:var(--seq-border-widths-thin)}.fyvr11fb{border-right-width:var(--seq-border-widths-thick)}.fyvr11ff{border-top-width:var(--seq-border-widths-none)}.fyvr11fj{border-top-width:var(--seq-border-widths-thin)}.fyvr11fn{border-top-width:var(--seq-border-widths-thick)}.fyvr11fr{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11fv{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11fz{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11g3{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11g7{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11gb{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11gf{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11gj{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11gn{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11gr{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11gv{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11gz{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11h3{border-top-left-radius:var(--seq-radii-none)}.fyvr11h7{border-top-left-radius:var(--seq-radii-xs)}.fyvr11hb{border-top-left-radius:var(--seq-radii-sm)}.fyvr11hf{border-top-left-radius:var(--seq-radii-md)}.fyvr11hj{border-top-left-radius:var(--seq-radii-lg)}.fyvr11hn{border-top-left-radius:var(--seq-radii-circle)}.fyvr11hr{border-top-right-radius:var(--seq-radii-none)}.fyvr11hv{border-top-right-radius:var(--seq-radii-xs)}.fyvr11hz{border-top-right-radius:var(--seq-radii-sm)}.fyvr11i3{border-top-right-radius:var(--seq-radii-md)}.fyvr11i7{border-top-right-radius:var(--seq-radii-lg)}.fyvr11ib{border-top-right-radius:var(--seq-radii-circle)}.fyvr11if{font-size:var(--seq-font-sizes-inherit)}.fyvr11ij{font-size:var(--seq-font-sizes-xsmall)}.fyvr11in{font-size:var(--seq-font-sizes-small)}.fyvr11ir{font-size:var(--seq-font-sizes-normal)}.fyvr11iv{font-size:var(--seq-font-sizes-medium)}.fyvr11iz{font-size:var(--seq-font-sizes-large)}.fyvr11j3{font-size:var(--seq-font-sizes-xlarge)}.fyvr11j7{font-weight:var(--seq-font-weights-inherit)}.fyvr11jb{font-weight:var(--seq-font-weights-normal)}.fyvr11jf{font-weight:var(--seq-font-weights-medium)}.fyvr11jj{font-weight:var(--seq-font-weights-semibold)}.fyvr11jn{font-weight:var(--seq-font-weights-bold)}.fyvr11jr{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11jv{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11jz{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11k3{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11k7{line-height:var(--seq-line-heights-4)}.fyvr11kb{line-height:var(--seq-line-heights-5)}.fyvr11kf{line-height:var(--seq-line-heights-6)}.fyvr11kj{line-height:var(--seq-line-heights-7)}.fyvr11kn{line-height:var(--seq-line-heights-9)}.fyvr11kr{line-height:var(--seq-line-heights-inherit)}.fyvr11kv{text-align:center}.fyvr11kz{text-align:left}.fyvr11l3{text-align:right}.fyvr11l7{display:block}.fyvr11lb{display:flex}.fyvr11lf{display:grid}.fyvr11lj{display:inline-block}.fyvr11ln{display:inline-flex}.fyvr11lr{display:none}.fyvr11lv{display:contents}.fyvr11lz{position:absolute}.fyvr11m3{position:fixed}.fyvr11m7{position:relative}.fyvr11mb{position:sticky}.fyvr11mf{flex-direction:column}.fyvr11mj{flex-direction:column-reverse}.fyvr11mn{flex-direction:row}.fyvr11mr{flex-direction:row-reverse}.fyvr11mv{flex-shrink:0}.fyvr11mz{flex-shrink:1}.fyvr11n3{flex-grow:0}.fyvr11n7{flex-grow:1}.fyvr11nb{flex-wrap:nowrap}.fyvr11nf{flex-wrap:wrap}.fyvr11nj{flex-wrap:wrap-reverse}.fyvr11nn{justify-content:flex-start}.fyvr11nr{justify-content:center}.fyvr11nv{justify-content:flex-end}.fyvr11nz{justify-content:stretch}.fyvr11o3{justify-content:space-around}.fyvr11o7{justify-content:space-between}.fyvr11ob{justify-content:space-evenly}.fyvr11of{justify-self:flex-start}.fyvr11oj{justify-self:center}.fyvr11on{justify-self:flex-end}.fyvr11or{justify-self:stretch}.fyvr11ov{align-items:flex-start}.fyvr11oz{align-items:center}.fyvr11p3{align-items:flex-end}.fyvr11p7{align-items:stretch}.fyvr11pb{align-items:baseline}.fyvr11pf{align-self:flex-start}.fyvr11pj{align-self:center}.fyvr11pn{align-self:flex-end}.fyvr11pr{align-self:stretch}.fyvr11pv{align-self:baseline}.fyvr11pz{overflow-x:auto}.fyvr11q3{overflow-x:hidden}.fyvr11q7{overflow-x:scroll}.fyvr11qb{overflow-x:visible}.fyvr11qf{overflow-y:auto}.fyvr11qj{overflow-y:hidden}.fyvr11qn{overflow-y:scroll}.fyvr11qr{overflow-y:visible}.fyvr11qv{visibility:hidden}.fyvr11qz{visibility:visible}}._4efw240:focus{outline:none}._4efw240:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1qxj1ibj{font-style:italic}._1qxj1ibk{-webkit-text-decoration:underline;text-decoration:underline}._1qxj1ibl{text-transform:uppercase}._1qxj1ibm{text-transform:capitalize}._1qxj1ibn{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}._2q9vfj7{font-weight:var(--seq-font-weights-normal)}._140wn8nl{outline:2px solid rgba(255,255,255,.1);outline-offset:-2px}._140wn8nr{outline-offset:1px}._140wn8nw{height:28px}._140wn8nx{height:36px}._140wn8ny{height:44px}._140wn8nz{height:52px}._140wn8n10{padding:0;display:flex;align-items:center;justify-content:center}._140wn8n13{outline-color:var(--seq-colors-background-secondary);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n14{outline-color:var(--seq-colors-border-normal);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n15{width:28px}._140wn8n16{width:36px}._140wn8n17{width:44px}._140wn8n18{width:52px}._140wn8n19,._140wn8n1a{padding-left:var(--seq-space-2)}._140wn8n1b{padding-left:var(--seq-space-4)}._140wn8n1c,._140wn8n1d{padding-right:var(--seq-space-2)}._140wn8n1e{padding-right:var(--seq-space-4)}.rhmai65{opacity:.5;cursor:default;pointer-events:none}._43lu9r6{grid-template-columns:1fr 2fr}._43lu9r7{grid-template-columns:2fr 1fr}._1dizidw0{flex-shrink:0}._1dizidw1{height:var(--seq-line-heights-4);width:var(--seq-line-heights-4)}._1dizidw2{height:var(--seq-line-heights-5);width:var(--seq-line-heights-5)}._1dizidw3{height:var(--seq-line-heights-6);width:var(--seq-line-heights-6)}._1dizidw4{height:var(--seq-line-heights-7);width:var(--seq-line-heights-7)}._1dizidw5{height:var(--seq-line-heights-9);width:var(--seq-line-heights-9)}._1c9x66f2{height:20px;width:20px}._1c9x66f3{height:28px;width:28px}._4j62fl0{min-height:64px}._4j62fl2{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:64px}._4j62fl4{transform-origin:top}._4j62fl5{height:1.25rem;width:1.25rem;display:block}._1k2mbvi1{width:160px}._1k2mbvi2{fill:var(--seq-colors-background-raised)}._1k2mbvi4[data-disabled]{opacity:.8;cursor:default;pointer-events:none;color:var(--seq-colors-text50)}._1k2mbvi4[data-highlighted]{background:var(--seq-colors-background-contrast)}._1k2mbvi5{position:absolute;left:0;width:var(--seq-space-6);display:inline-flex;align-items:center;justify-content:center}._1hq71vk1{height:52px}._1hq71vk1:has(:disabled),._1hq71vk1:has(:disabled):hover{cursor:default;opacity:.5}._1hq71vk1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1bhyzin1{width:12px;height:12px}._1bhyzin2{width:20px;height:20px}._1bhyzin3{width:32px;height:32px}._1bhyzin4{width:40px;height:40px}._1bhyzin5{width:52px;height:52px}._1vqx0w92{height:100%;overflow-y:auto;overscroll-behavior-y:contain}._1vqx0w93{overflow-x:auto;overscroll-behavior-x:contain;width:100%}._1vqx0w95:before{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w95:after{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w96:before{display:none}._1vqx0w96:after{display:none}._1vqx0w97:before{background:linear-gradient(to top,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;width:100%;height:var(--seq-space-4)}._1vqx0w97:after{background:linear-gradient(to bottom,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;bottom:0;width:100%;height:var(--seq-space-4)}._1vqx0w98:before{background:linear-gradient(to left,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;height:100%;width:var(--seq-space-4)}._1vqx0w98:after{background:linear-gradient(to right,transparent 0%,var(--seq-colors-background-primary) 100%);right:0;top:0;height:100%;width:var(--seq-space-4)}._5b32m95{-ms-overflow-style:none;scrollbar-width:none}._5b32m95::-webkit-scrollbar{display:none}._5b32m96{width:100vw;min-height:100px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}._5b32m97{width:100vw;height:calc(100vh - 70px);height:calc(100dvh - 70px)}._5b32m99{height:auto!important}@media screen and (min-width: 769px){._5b32m96{width:540px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px))}._5b32m97{width:720px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px));height:800px}}._1acm19y1{cursor:text;height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._1acm19y1:has(:disabled),._1acm19y1:has(:disabled):hover{cursor:default;opacity:.5}._1acm19y1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.y5zf970{width:40px;height:48px;display:flex;justify-content:center;align-items:center;padding:10px;background:var(--seq-colors-background-secondary);border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100)}.y5zf971{height:48px;width:40px;display:flex;justify-content:center;align-items:center;padding:10px;border:none;border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100);background:transparent;text-align:center;caret-color:transparent;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.y5zf971:disabled{cursor:default;opacity:.5}.y5zf971::-moz-selection{background:transparent}.y5zf971::selection{background:transparent}.y5zf971:hover:not(.y5zf971:disabled){border-color:var(--seq-colors-border-focus)}@keyframes _1jujggt0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}._1jujggt1{background-image:linear-gradient(-45deg,transparent,var(--seq-colors-background-secondary),transparent);background-size:400% 400%;background-repeat:no-repeat;animation:_1jujggt0 1s ease infinite}._1jujggt2{width:96px;height:var(--seq-line-heights-4)}._1jujggt3{width:100px;height:var(--seq-line-heights-5)}._1jujggt4{width:124px;height:var(--seq-line-heights-6)}._1jujggt5{width:124px;height:var(--seq-line-heights-7)}._1jujggt6{width:148px;height:var(--seq-line-heights-9)}.io59uy4{height:20px;width:20px}.io59uy5{height:28px;width:28px}.io59uy7:after{content:"";display:block;border-radius:999px;background:currentColor}.io59uy9:after{width:14px;height:14px}.io59uya:after{width:18px;height:18px}.gohwum1{height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.gohwum1:has(:disabled),.gohwum1:has(:disabled):hover{cursor:default;opacity:.5}.gohwum1:focus{outline:none}.gohwum1:focus-within{outline:none;opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.gohwuma{box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}.gohwume{height:52px}.gohwume[data-highlighted]{background:var(--seq-colors-background-secondary)}.gohwume[data-state=checked]{background:var(--seq-colors-background-control)}@keyframes en4abt0{to{transform:rotate(1turn)}}.en4abt1{animation:en4abt0 2s linear infinite}.en4abt2{width:16px;height:16px;stroke-width:3px}.en4abt3{width:24px;height:24px;stroke-width:2px}.en4abt4{width:32px;height:32px;stroke-width:1.5px}._1lp2u8e1{width:48px;height:28px}._1lp2u8e1[data-state=checked]{background:var(--seq-colors-gradient-primary)}._1lp2u8e1:disabled{cursor:default;opacity:.5}._1lp2u8e3{transition:transform .1s ease-out,background .1s ease-out;transform:translate(0);will-change:transform}._1lp2u8e3[data-state=checked]{transform:translate(var(--seq-space-5))}.nwwh3z0{list-style-type:none}.nwwh3za{font-size:.625rem;letter-spacing:.8px}._10c8o0n1:has(:focus-visible){outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._10c8o0n3{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;z-index:2}._10c8o0n3[data-state=active]{color:var(--seq-colors-text100)}._10c8o0n3[disabled]{opacity:.5}._10c8o0n5{transition:transform .2s ease-out}@keyframes _6wut8v2{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}._6wut8v1{padding:var(--seq-space-4);padding-top:0;z-index:1000;list-style:none;max-width:532px}._6wut8v3{will-change:transform,opacity}._6wut8v3[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))!important}._6wut8v3[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}._6wut8v3[data-swipe=end]{animation:_6wut8v2 .2s ease-out}._6wut8v5{color:positive}._6wut8v6{color:negative}._15pztn1{resize:none;cursor:text;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._15pztn1:disabled,._15pztn1:disabled:hover{cursor:default;opacity:.5}._15pztn1:focus{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._15pztn2{resize:vertical}._18h918k6{width:12px;height:12px}._18h918k7{width:20px;height:20px}._18h918k8{width:32px;height:32px}._18h918k9{width:40px;height:40px}._18h918ka{width:64px;height:64px}._18h918kf{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}._18h918k5._18h918k0.fyvr11q0.fyvr11qg.fyvr11no.fyvr11ow.fyvr11l8._18h918k6 ._18h918kf{max-width:16px;max-height:16px}._18h918k5._18h918k0.fyvr11q0.fyvr11qg.fyvr11no.fyvr11ow.fyvr11l8._18h918k7 ._18h918kf{max-width:20px;max-height:20px}._18h918k5._18h918k0.fyvr11q0.fyvr11qg.fyvr11no.fyvr11ow.fyvr11l8._18h918k8 ._18h918kf{max-width:32px;max-height:32px}._18h918k5._18h918k0.fyvr11q0.fyvr11qg.fyvr11no.fyvr11ow.fyvr11l8._18h918k9 ._18h918kf{max-width:40px;max-height:40px}._18h918k5._18h918k0.fyvr11q0.fyvr11qg.fyvr11no.fyvr11ow.fyvr11l8._18h918ka ._18h918kf{max-width:64px;max-height:64px}.bnrreb2{width:12px;height:12px;font-size:4px}.bnrreb3{width:20px;height:20px;font-size:8px}.bnrreb4{width:32px;height:32px;font-size:9px}.bnrreb5{width:40px;height:40px;font-size:11px}.bnrreb6{width:64px;height:64px;font-size:16px}.bnrreb7{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.bnrreb1.bnrreb0.fyvr11no.fyvr11ow.fyvr11m4.fyvr11l8.bnrreb2 .bnrreb7{max-width:12px;max-height:12px}.bnrreb1.bnrreb0.fyvr11no.fyvr11ow.fyvr11m4.fyvr11l8.bnrreb3 .bnrreb7{max-width:20px;max-height:20px}.bnrreb1.bnrreb0.fyvr11no.fyvr11ow.fyvr11m4.fyvr11l8.bnrreb4 .bnrreb7{max-width:32px;max-height:32px}.bnrreb1.bnrreb0.fyvr11no.fyvr11ow.fyvr11m4.fyvr11l8.bnrreb5 .bnrreb7{max-width:40px;max-height:40px}.bnrreb1.bnrreb0.fyvr11no.fyvr11ow.fyvr11m4.fyvr11l8.bnrreb6 .bnrreb7{max-width:64px;max-height:64px}.bnrreb9{font-size:inherit}.bnrreba{-webkit-mask-image:radial-gradient(circle at 82% 82%,transparent 22%,black 0);mask-image:radial-gradient(circle at 82% 82%,transparent 22%,black 0)}.q888p21{fill:var(--seq-colors-background-raised);box-shadow:0 0 10px #00000080}@keyframes _1e9z9270{0%{visibility:hidden}50%{visibility:hidden}to{visibility:visible}}._1e9z9271{animation:_1e9z9270 2s infinite}._1q07ov40{display:grid;grid-column-gap:var(--seq-space-2);grid-row-gap:var(--seq-space-2);grid-template-columns:repeat(1,minmax(0,1fr))}@media screen and (min-width: 769px){._1q07ov40{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (min-width: 1281px){._1q07ov40{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-D9pBm6Bj.js b/assets/index-D9pBm6Bj.js deleted file mode 100644 index 4668289..0000000 --- a/assets/index-D9pBm6Bj.js +++ /dev/null @@ -1,168 +0,0 @@ -var UF=Object.defineProperty;var Kk=t=>{throw TypeError(t)};var $F=(t,e,r)=>e in t?UF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var N=(t,e,r)=>$F(t,typeof e!="symbol"?e+"":e,r),mm=(t,e,r)=>e.has(t)||Kk("Cannot "+r);var w=(t,e,r)=>(mm(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>e.has(t)?Kk("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),T=(t,e,r,n)=>(mm(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Y=(t,e,r)=>(mm(t,e,"access private method"),r);var Ol=(t,e,r,n)=>({set _(s){T(t,e,s,r)},get _(){return w(t,e,n)}});function WF(t,e){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function L3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j3={exports:{}},jv={},F3={exports:{}},Fe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var e1=Symbol.for("react.element"),VF=Symbol.for("react.portal"),HF=Symbol.for("react.fragment"),zF=Symbol.for("react.strict_mode"),GF=Symbol.for("react.profiler"),qF=Symbol.for("react.provider"),KF=Symbol.for("react.context"),QF=Symbol.for("react.forward_ref"),JF=Symbol.for("react.suspense"),YF=Symbol.for("react.memo"),XF=Symbol.for("react.lazy"),Qk=Symbol.iterator;function ZF(t){return t===null||typeof t!="object"?null:(t=Qk&&t[Qk]||t["@@iterator"],typeof t=="function"?t:null)}var U3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$3=Object.assign,W3={};function cd(t,e,r){this.props=t,this.context=e,this.refs=W3,this.updater=r||U3}cd.prototype.isReactComponent={};cd.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};cd.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function V3(){}V3.prototype=cd.prototype;function Q2(t,e,r){this.props=t,this.context=e,this.refs=W3,this.updater=r||U3}var J2=Q2.prototype=new V3;J2.constructor=Q2;$3(J2,cd.prototype);J2.isPureReactComponent=!0;var Jk=Array.isArray,H3=Object.prototype.hasOwnProperty,Y2={current:null},z3={key:!0,ref:!0,__self:!0,__source:!0};function G3(t,e,r){var n,s={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)H3.call(e,n)&&!z3.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1>>1,B=E[M];if(0>>1;Ms(te,O))Js($,te)?(E[M]=$,E[J]=O,M=J):(E[M]=te,E[q]=O,M=q);else if(Js($,O))E[M]=$,E[J]=O,M=J;else break e}}return A}function s(E,A){var O=E.sortIndex-A.sortIndex;return O!==0?O:E.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],l=[],u=1,f=null,d=3,h=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(E){for(var A=r(l);A!==null;){if(A.callback===null)n(l);else if(A.startTime<=E)n(l),A.sortIndex=A.expirationTime,e(c,A);else break;A=r(l)}}function k(E){if(p=!1,x(E),!y)if(r(c)!==null)y=!0,G(S);else{var A=r(l);A!==null&&Z(k,A.startTime-E)}}function S(E,A){y=!1,p&&(p=!1,v(_),_=-1),h=!0;var O=d;try{for(x(A),f=r(c);f!==null&&(!(f.expirationTime>A)||E&&!X());){var M=f.callback;if(typeof M=="function"){f.callback=null,d=f.priorityLevel;var B=M(f.expirationTime<=A);A=t.unstable_now(),typeof B=="function"?f.callback=B:f===r(c)&&n(c),x(A)}else n(c);f=r(c)}if(f!==null)var W=!0;else{var q=r(l);q!==null&&Z(k,q.startTime-A),W=!1}return W}finally{f=null,d=O,h=!1}}var I=!1,R=null,_=-1,V=5,F=-1;function X(){return!(t.unstable_now()-FE||125M?(E.sortIndex=O,e(l,E),r(c)===null&&E===r(l)&&(p?(v(_),_=-1):p=!0,Z(k,O-M))):(E.sortIndex=B,e(c,E),y||h||(y=!0,G(S))),E},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(E){var A=d;return function(){var O=d;d=A;try{return E.apply(this,arguments)}finally{d=O}}}})(Y3);J3.exports=Y3;var fU=J3.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var dU=m,On=fU;function ne(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yx=Object.prototype.hasOwnProperty,hU=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Xk={},Zk={};function pU(t){return Yx.call(Zk,t)?!0:Yx.call(Xk,t)?!1:hU.test(t)?Zk[t]=!0:(Xk[t]=!0,!1)}function yU(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function vU(t,e,r,n){if(e===null||typeof e>"u"||yU(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Yr(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){mr[t]=new Yr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];mr[e]=new Yr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){mr[t]=new Yr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){mr[t]=new Yr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){mr[t]=new Yr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){mr[t]=new Yr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){mr[t]=new Yr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){mr[t]=new Yr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){mr[t]=new Yr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Z2=/[\-:]([a-z])/g;function eE(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Z2,eE);mr[e]=new Yr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Z2,eE);mr[e]=new Yr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Z2,eE);mr[e]=new Yr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){mr[t]=new Yr(t,1,!1,t.toLowerCase(),null,!1,!1)});mr.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){mr[t]=new Yr(t,1,!1,t.toLowerCase(),null,!0,!0)});function tE(t,e,r,n){var s=mr.hasOwnProperty(e)?mr[e]:null;(s!==null?s.type!==0:n||!(2a||s[o]!==i[a]){var c=` -`+s[o].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{wm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?qd(t):""}function gU(t){switch(t.tag){case 5:return qd(t.type);case 16:return qd("Lazy");case 13:return qd("Suspense");case 19:return qd("SuspenseList");case 0:case 2:case 15:return t=Em(t.type,!1),t;case 11:return t=Em(t.type.render,!1),t;case 1:return t=Em(t.type,!0),t;default:return""}}function tb(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Xl:return"Fragment";case Yl:return"Portal";case Xx:return"Profiler";case rE:return"StrictMode";case Zx:return"Suspense";case eb:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case e4:return(t.displayName||"Context")+".Consumer";case Z3:return(t._context.displayName||"Context")+".Provider";case nE:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case sE:return e=t.displayName||null,e!==null?e:tb(t.type)||"Memo";case No:e=t._payload,t=t._init;try{return tb(t(e))}catch{}}return null}function mU(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tb(e);case 8:return e===rE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Aa(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function r4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function xU(t){var e=r4(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function D1(t){t._valueTracker||(t._valueTracker=xU(t))}function n4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=r4(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function yy(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function rb(t,e){var r=e.checked;return kt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function t6(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Aa(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function s4(t,e){e=e.checked,e!=null&&tE(t,"checked",e,!1)}function nb(t,e){s4(t,e);var r=Aa(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?sb(t,e.type,r):e.hasOwnProperty("defaultValue")&&sb(t,e.type,Aa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function r6(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function sb(t,e,r){(e!=="number"||yy(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Kd=Array.isArray;function bu(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=B1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Wh(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var fh={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},bU=["Webkit","ms","Moz","O"];Object.keys(fh).forEach(function(t){bU.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),fh[e]=fh[t]})});function c4(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||fh.hasOwnProperty(t)&&fh[t]?(""+e).trim():e+"px"}function l4(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=c4(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var wU=kt({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 ab(t,e){if(e){if(wU[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ne(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ne(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ne(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ne(62))}}function cb(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lb=null;function iE(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ub=null,wu=null,Eu=null;function i6(t){if(t=n1(t)){if(typeof ub!="function")throw Error(ne(280));var e=t.stateNode;e&&(e=Vv(e),ub(t.stateNode,t.type,e))}}function u4(t){wu?Eu?Eu.push(t):Eu=[t]:wu=t}function f4(){if(wu){var t=wu,e=Eu;if(Eu=wu=null,i6(t),e)for(t=0;t>>=0,t===0?32:31-(NU(t)/_U|0)|0}var L1=64,j1=4194304;function Qd(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function xy(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Qd(a):(i&=o,i!==0&&(n=Qd(i)))}else o=r&~s,o!==0?n=Qd(o):i!==0&&(n=Qd(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function t1(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ps(e),t[e]=r}function LU(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=hh),p6=" ",y6=!1;function R4(t,e){switch(t){case"keyup":return f$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N4(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Zl=!1;function h$(t,e){switch(t){case"compositionend":return N4(e);case"keypress":return e.which!==32?null:(y6=!0,p6);case"textInput":return t=e.data,t===p6&&y6?null:t;default:return null}}function p$(t,e){if(Zl)return t==="compositionend"||!hE&&R4(t,e)?(t=I4(),Op=uE=oa=null,Zl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=x6(r)}}function B4(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?B4(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function L4(){for(var t=window,e=yy();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=yy(t.document)}return e}function pE(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function C$(t){var e=L4(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&B4(r.ownerDocument.documentElement,r)){if(n!==null&&pE(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=b6(r,i);var o=b6(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,eu=null,vb=null,yh=null,gb=!1;function w6(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gb||eu==null||eu!==yy(n)||(n=eu,"selectionStart"in n&&pE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yh&&Kh(yh,n)||(yh=n,n=Ey(vb,"onSelect"),0nu||(t.current=Cb[nu],Cb[nu]=null,nu--)}function lt(t,e){nu++,Cb[nu]=t.current,t.current=e}var Sa={},Nr=La(Sa),ln=La(!1),il=Sa;function _f(t,e){var r=t.type.contextTypes;if(!r)return Sa;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function un(t){return t=t.childContextTypes,t!=null}function ky(){yt(ln),yt(Nr)}function P6(t,e,r){if(Nr.current!==Sa)throw Error(ne(168));lt(Nr,e),lt(ln,r)}function G4(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(ne(108,mU(t)||"Unknown",s));return kt({},r,n)}function Ay(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Sa,il=Nr.current,lt(Nr,t),lt(ln,ln.current),!0}function I6(t,e,r){var n=t.stateNode;if(!n)throw Error(ne(169));r?(t=G4(t,e,il),n.__reactInternalMemoizedMergedChildContext=t,yt(ln),yt(Nr),lt(Nr,t)):yt(ln),lt(ln,r)}var Ii=null,Hv=!1,Bm=!1;function q4(t){Ii===null?Ii=[t]:Ii.push(t)}function D$(t){Hv=!0,q4(t)}function ja(){if(!Bm&&Ii!==null){Bm=!0;var t=0,e=tt;try{var r=Ii;for(tt=1;t>=o,s-=o,zi=1<<32-Ps(e)+s|r<_?(V=R,R=null):V=R.sibling;var F=d(v,R,x[_],k);if(F===null){R===null&&(R=V);break}t&&R&&F.alternate===null&&e(v,R),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F,R=V}if(_===x.length)return r(v,R),gt&&ec(v,_),S;if(R===null){for(;__?(V=R,R=null):V=R.sibling;var X=d(v,R,F.value,k);if(X===null){R===null&&(R=V);break}t&&R&&X.alternate===null&&e(v,R),g=i(X,g,_),I===null?S=X:I.sibling=X,I=X,R=V}if(F.done)return r(v,R),gt&&ec(v,_),S;if(R===null){for(;!F.done;_++,F=x.next())F=f(v,F.value,k),F!==null&&(g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return gt&&ec(v,_),S}for(R=n(v,R);!F.done;_++,F=x.next())F=h(R,v,_,F.value,k),F!==null&&(t&&F.alternate!==null&&R.delete(F.key===null?_:F.key),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return t&&R.forEach(function(re){return e(v,re)}),gt&&ec(v,_),S}function b(v,g,x,k){if(typeof x=="object"&&x!==null&&x.type===Xl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case M1:e:{for(var S=x.key,I=g;I!==null;){if(I.key===S){if(S=x.type,S===Xl){if(I.tag===7){r(v,I.sibling),g=s(I,x.props.children),g.return=v,v=g;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===No&&N6(S)===I.type){r(v,I.sibling),g=s(I,x.props),g.ref=_d(v,I,x),g.return=v,v=g;break e}r(v,I);break}else e(v,I);I=I.sibling}x.type===Xl?(g=Yc(x.props.children,v.mode,k,x.key),g.return=v,v=g):(k=jp(x.type,x.key,x.props,null,v.mode,k),k.ref=_d(v,g,x),k.return=v,v=k)}return o(v);case Yl:e:{for(I=x.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){r(v,g.sibling),g=s(g,x.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else e(v,g);g=g.sibling}g=Hm(x,v.mode,k),g.return=v,v=g}return o(v);case No:return I=x._init,b(v,g,I(x._payload),k)}if(Kd(x))return y(v,g,x,k);if(Pd(x))return p(v,g,x,k);z1(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,x),g.return=v,v=g):(r(v,g),g=Vm(x,v.mode,k),g.return=v,v=g),o(v)):r(v,g)}return b}var Df=Y4(!0),X4=Y4(!1),Py=La(null),Iy=null,ou=null,mE=null;function xE(){mE=ou=Iy=null}function bE(t){var e=Py.current;yt(Py),t._currentValue=e}function Sb(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function ku(t,e){Iy=t,mE=ou=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(cn=!0),t.firstContext=null)}function ns(t){var e=t._currentValue;if(mE!==t)if(t={context:t,memoizedValue:e,next:null},ou===null){if(Iy===null)throw Error(ne(308));ou=t,Iy.dependencies={lanes:0,firstContext:t}}else ou=ou.next=t;return e}var yc=null;function wE(t){yc===null?yc=[t]:yc.push(t)}function Z4(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,wE(e)):(r.next=s.next,s.next=r),e.interleaved=r,so(t,n)}function so(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var _o=!1;function EE(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eT(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ji(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ya(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ge&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,so(t,r)}return s=n.interleaved,s===null?(e.next=e,wE(n)):(e.next=s.next,s.next=e),n.interleaved=e,so(t,r)}function Np(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,aE(t,r)}}function _6(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Oy(t,e,r,n){var s=t.updateQueue;_o=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?i=l:o.next=l,o=c;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,u=l=c=null,a=i;do{var d=a.lane,h=a.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=t,p=a;switch(d=e,h=r,p.tag){case 1:if(y=p.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=kt({},f,d);break e;case 2:_o=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=s.effects,d===null?s.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=h,c=f):u=u.next=h,o|=d;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;d=a,a=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(u===null&&(c=f),s.baseState=c,s.firstBaseUpdate=l,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);cl|=o,t.lanes=o,t.memoizedState=f}}function M6(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=jm.transition;jm.transition={};try{t(!1),e()}finally{tt=r,jm.transition=n}}function gT(){return ss().memoizedState}function F$(t,e,r){var n=ga(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},mT(t))xT(e,r);else if(r=Z4(t,e,r,n),r!==null){var s=Gr();Is(r,t,n,s),bT(r,e,n)}}function U$(t,e,r){var n=ga(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(mT(t))xT(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,_s(a,o)){var c=e.interleaved;c===null?(s.next=s,wE(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}r=Z4(t,e,s,n),r!==null&&(s=Gr(),Is(r,t,n,s),bT(r,e,n))}}function mT(t){var e=t.alternate;return t===Ct||e!==null&&e===Ct}function xT(t,e){vh=Ny=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function bT(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,aE(t,r)}}var _y={readContext:ns,useCallback:wr,useContext:wr,useEffect:wr,useImperativeHandle:wr,useInsertionEffect:wr,useLayoutEffect:wr,useMemo:wr,useReducer:wr,useRef:wr,useState:wr,useDebugValue:wr,useDeferredValue:wr,useTransition:wr,useMutableSource:wr,useSyncExternalStore:wr,useId:wr,unstable_isNewReconciler:!1},$$={readContext:ns,useCallback:function(t,e){return zs().memoizedState=[t,e===void 0?null:e],t},useContext:ns,useEffect:B6,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Mp(4194308,4,dT.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Mp(4194308,4,t,e)},useInsertionEffect:function(t,e){return Mp(4,2,t,e)},useMemo:function(t,e){var r=zs();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=zs();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=F$.bind(null,Ct,t),[n.memoizedState,t]},useRef:function(t){var e=zs();return t={current:t},e.memoizedState=t},useState:D6,useDebugValue:OE,useDeferredValue:function(t){return zs().memoizedState=t},useTransition:function(){var t=D6(!1),e=t[0];return t=j$.bind(null,t[1]),zs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ct,s=zs();if(gt){if(r===void 0)throw Error(ne(407));r=r()}else{if(r=e(),ir===null)throw Error(ne(349));al&30||sT(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,B6(oT.bind(null,n,i,t),[t]),n.flags|=2048,r0(9,iT.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=zs(),e=ir.identifierPrefix;if(gt){var r=Gi,n=zi;r=(n&~(1<<32-Ps(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=e0++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[ii]=e,t[Yh]=n,OT(t,e,!1,!1),e.stateNode=t;e:{switch(o=cb(r,n),r){case"dialog":ut("cancel",t),ut("close",t),s=n;break;case"iframe":case"object":case"embed":ut("load",t),s=n;break;case"video":case"audio":for(s=0;sjf&&(e.flags|=128,n=!0,Md(i,!1),e.lanes=4194304)}else{if(!n)if(t=Ry(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Md(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!gt)return Er(e),null}else 2*_t()-i.renderingStartTime>jf&&r!==1073741824&&(e.flags|=128,n=!0,Md(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,r=bt.current,lt(bt,n?r&1|2:r&1),e):(Er(e),null);case 22:case 23:return BE(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Cn&1073741824&&(Er(e),e.subtreeFlags&6&&(e.flags|=8192)):Er(e),null;case 24:return null;case 25:return null}throw Error(ne(156,e.tag))}function Q$(t,e){switch(vE(e),e.tag){case 1:return un(e.type)&&ky(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Bf(),yt(ln),yt(Nr),AE(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return kE(e),null;case 13:if(yt(bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ne(340));Mf()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return yt(bt),null;case 4:return Bf(),null;case 10:return bE(e.type._context),null;case 22:case 23:return BE(),null;case 24:return null;default:return null}}var q1=!1,Ir=!1,J$=typeof WeakSet=="function"?WeakSet:Set,pe=null;function au(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){St(t,e,n)}else r.current=null}function Db(t,e,r){try{r()}catch(n){St(t,e,n)}}var q6=!1;function Y$(t,e){if(mb=by,t=L4(),pE(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,l=0,u=0,f=t,d=null;t:for(;;){for(var h;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===r&&++l===s&&(a=o),d===i&&++u===n&&(c=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(xb={focusedElem:t,selectionRange:r},by=!1,pe=e;pe!==null;)if(e=pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pe=t;else for(;pe!==null;){e=pe;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,v=e.stateNode,g=v.getSnapshotBeforeUpdate(e.elementType===e.type?p:ps(e.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(k){St(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return y=q6,q6=!1,y}function gh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Db(e,r,i)}s=s.next}while(s!==n)}}function qv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Bb(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function _T(t){var e=t.alternate;e!==null&&(t.alternate=null,_T(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ii],delete e[Yh],delete e[Eb],delete e[_$],delete e[M$])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function MT(t){return t.tag===5||t.tag===3||t.tag===4}function K6(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||MT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Lb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Cy));else if(n!==4&&(t=t.child,t!==null))for(Lb(t,e,r),t=t.sibling;t!==null;)Lb(t,e,r),t=t.sibling}function jb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(jb(t,e,r),t=t.sibling;t!==null;)jb(t,e,r),t=t.sibling}var ur=null,Es=!1;function wo(t,e,r){for(r=r.child;r!==null;)DT(t,e,r),r=r.sibling}function DT(t,e,r){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(Fv,r)}catch{}switch(r.tag){case 5:Ir||au(r,e);case 6:var n=ur,s=Es;ur=null,wo(t,e,r),ur=n,Es=s,ur!==null&&(Es?(t=ur,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):ur.removeChild(r.stateNode));break;case 18:ur!==null&&(Es?(t=ur,r=r.stateNode,t.nodeType===8?Dm(t.parentNode,r):t.nodeType===1&&Dm(t,r),Gh(t)):Dm(ur,r.stateNode));break;case 4:n=ur,s=Es,ur=r.stateNode.containerInfo,Es=!0,wo(t,e,r),ur=n,Es=s;break;case 0:case 11:case 14:case 15:if(!Ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Db(r,e,o),s=s.next}while(s!==n)}wo(t,e,r);break;case 1:if(!Ir&&(au(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){St(r,e,a)}wo(t,e,r);break;case 21:wo(t,e,r);break;case 22:r.mode&1?(Ir=(n=Ir)||r.memoizedState!==null,wo(t,e,r),Ir=n):wo(t,e,r);break;default:wo(t,e,r)}}function Q6(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new J$),e.forEach(function(n){var s=oW.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function as(t,e){var r=e.deletions;if(r!==null)for(var n=0;ns&&(s=o),n&=~i}if(n=s,n=_t()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Z$(n/1960))-n,10t?16:t,aa===null)var n=!1;else{if(t=aa,aa=null,By=0,Ge&6)throw Error(ne(331));var s=Ge;for(Ge|=4,pe=t.current;pe!==null;){var i=pe,o=i.child;if(pe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c_t()-ME?Jc(t,0):_E|=r),fn(t,e)}function VT(t,e){e===0&&(t.mode&1?(e=j1,j1<<=1,!(j1&130023424)&&(j1=4194304)):e=1);var r=Gr();t=so(t,e),t!==null&&(t1(t,e,r),fn(t,r))}function iW(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),VT(t,r)}function oW(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ne(314))}n!==null&&n.delete(e),VT(t,r)}var HT;HT=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ln.current)cn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return cn=!1,q$(t,e,r);cn=!!(t.flags&131072)}else cn=!1,gt&&e.flags&1048576&&K4(e,Ty,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Dp(t,e),t=e.pendingProps;var s=_f(e,Nr.current);ku(e,r),s=TE(null,e,n,t,s,r);var i=PE();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,un(n)?(i=!0,Ay(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,EE(e),s.updater=Gv,e.stateNode=s,s._reactInternals=e,Pb(e,n,t,r),e=Rb(null,e,n,!0,i,r)):(e.tag=0,gt&&i&&yE(e),Ur(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Dp(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=cW(n),t=ps(n,t),s){case 0:e=Ob(null,e,n,t,r);break e;case 1:e=H6(null,e,n,t,r);break e;case 11:e=W6(null,e,n,t,r);break e;case 14:e=V6(null,e,n,ps(n.type,t),r);break e}throw Error(ne(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Ob(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),H6(t,e,n,s,r);case 3:e:{if(TT(e),t===null)throw Error(ne(387));n=e.pendingProps,i=e.memoizedState,s=i.element,eT(t,e),Oy(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Lf(Error(ne(423)),e),e=z6(t,e,n,r,s);break e}else if(n!==s){s=Lf(Error(ne(424)),e),e=z6(t,e,n,r,s);break e}else for(Sn=pa(e.stateNode.containerInfo.firstChild),Tn=e,gt=!0,Cs=null,r=X4(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Mf(),n===s){e=io(t,e,r);break e}Ur(t,e,n,r)}e=e.child}return e;case 5:return tT(e),t===null&&Ab(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,bb(n,s)?o=null:i!==null&&bb(n,i)&&(e.flags|=32),ST(t,e),Ur(t,e,o,r),e.child;case 6:return t===null&&Ab(e),null;case 13:return PT(t,e,r);case 4:return CE(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Df(e,null,n,r):Ur(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),W6(t,e,n,s,r);case 7:return Ur(t,e,e.pendingProps,r),e.child;case 8:return Ur(t,e,e.pendingProps.children,r),e.child;case 12:return Ur(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,lt(Py,n._currentValue),n._currentValue=o,i!==null)if(_s(i.value,o)){if(i.children===s.children&&!ln.current){e=io(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Ji(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Sb(i.return,r,e),a.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ne(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Sb(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ur(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,ku(e,r),s=ns(s),n=n(s),e.flags|=1,Ur(t,e,n,r),e.child;case 14:return n=e.type,s=ps(n,e.pendingProps),s=ps(n.type,s),V6(t,e,n,s,r);case 15:return kT(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Dp(t,e),e.tag=1,un(n)?(t=!0,Ay(e)):t=!1,ku(e,r),wT(e,n,s),Pb(e,n,s,r),Rb(null,e,n,!0,t,r);case 19:return IT(t,e,r);case 22:return AT(t,e,r)}throw Error(ne(156,e.tag))};function zT(t,e){return m4(t,e)}function aW(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(t,e,r,n){return new aW(t,e,r,n)}function jE(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cW(t){if(typeof t=="function")return jE(t)?1:0;if(t!=null){if(t=t.$$typeof,t===nE)return 11;if(t===sE)return 14}return 2}function ma(t,e){var r=t.alternate;return r===null?(r=Xn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function jp(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")jE(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Xl:return Yc(r.children,s,i,e);case rE:o=8,s|=8;break;case Xx:return t=Xn(12,r,e,s|2),t.elementType=Xx,t.lanes=i,t;case Zx:return t=Xn(13,r,e,s),t.elementType=Zx,t.lanes=i,t;case eb:return t=Xn(19,r,e,s),t.elementType=eb,t.lanes=i,t;case t4:return Qv(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z3:o=10;break e;case e4:o=9;break e;case nE:o=11;break e;case sE:o=14;break e;case No:o=16,n=null;break e}throw Error(ne(130,t==null?t:typeof t,""))}return e=Xn(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function Yc(t,e,r,n){return t=Xn(7,t,n,e),t.lanes=r,t}function Qv(t,e,r,n){return t=Xn(22,t,n,e),t.elementType=t4,t.lanes=r,t.stateNode={isHidden:!1},t}function Vm(t,e,r){return t=Xn(6,t,null,e),t.lanes=r,t}function Hm(t,e,r){return e=Xn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function lW(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=km(0),this.expirationTimes=km(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=km(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function FE(t,e,r,n,s,i,o,a,c){return t=new lW(t,e,r,a,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Xn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},EE(i),t}function uW(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QT)}catch(t){console.error(t)}}QT(),Q3.exports=Nn;var Fa=Q3.exports;const yW=L3(Fa),JT=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eg=m.createContext({});function vW(){return m.useContext(eg).visualElement}const tg=m.createContext(null),rg=typeof document<"u",Fy=rg?m.useLayoutEffect:m.useEffect,YT=m.createContext({strict:!1});function gW(t,e,r,n){const s=vW(),i=m.useContext(YT),o=m.useContext(tg),a=m.useContext(JT).reducedMotion,c=m.useRef();n=n||i.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:s,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;return m.useInsertionEffect(()=>{l&&l.update(r,o)}),Fy(()=>{l&&l.render()}),m.useEffect(()=>{l&&l.updateFeatures()}),(window.HandoffAppearAnimations?Fy:m.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),l}function lu(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function mW(t,e,r){return m.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):lu(r)&&(r.current=n))},[e])}function s0(t){return typeof t=="string"||Array.isArray(t)}function ng(t){return typeof t=="object"&&typeof t.start=="function"}const VE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],HE=["initial",...VE];function sg(t){return ng(t.animate)||HE.some(e=>s0(t[e]))}function XT(t){return!!(sg(t)||t.variants)}function xW(t,e){if(sg(t)){const{initial:r,animate:n}=t;return{initial:r===!1||s0(r)?r:void 0,animate:s0(n)?n:void 0}}return t.inherit!==!1?e:{}}function bW(t){const{initial:e,animate:r}=xW(t,m.useContext(eg));return m.useMemo(()=>({initial:e,animate:r}),[nA(e),nA(r)])}function nA(t){return Array.isArray(t)?t.join(" "):t}const sA={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i0={};for(const t in sA)i0[t]={isEnabled:e=>sA[t].some(r=>!!e[r])};function wW(t){for(const e in t)i0[e]={...i0[e],...t[e]}}function zE(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const bh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let EW=1;function CW(){return zE(()=>{if(bh.hasEverUpdated)return EW++})}const GE=m.createContext({}),ZT=m.createContext({}),kW=Symbol.for("motionComponentSymbol");function AW({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:s}){t&&wW(t);function i(a,c){let l;const u={...m.useContext(JT),...a,layoutId:SW(a)},{isStatic:f}=u,d=bW(a),h=f?void 0:CW(),y=n(a,f);if(!f&&rg){d.visualElement=gW(s,y,u,e);const p=m.useContext(ZT),b=m.useContext(YT).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,b,t,h,p))}return m.createElement(eg.Provider,{value:d},l&&d.visualElement?m.createElement(l,{visualElement:d.visualElement,...u}):null,r(s,a,h,mW(y,d.visualElement,c),y,f,d.visualElement))}const o=m.forwardRef(i);return o[kW]=s,o}function SW({layoutId:t}){const e=m.useContext(GE).id;return e&&t!==void 0?e+"-"+t:t}function TW(t){function e(n,s={}){return AW(t(n,s))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,s)=>(r.has(s)||r.set(s,e(s)),r.get(s))})}const PW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qE(t){return typeof t!="string"||t.includes("-")?!1:!!(PW.indexOf(t)>-1||/[A-Z]/.test(t))}const Uy={};function IW(t){Object.assign(Uy,t)}const ig=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sl=new Set(ig);function eP(t,{layout:e,layoutId:r}){return Sl.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Uy[t]||t==="opacity")}const hn=t=>!!(t&&t.getVelocity),OW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RW=ig.length;function NW(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,s){let i="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),rP=tP("--"),Vb=tP("var(--"),_W=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ff=(t,e,r)=>Math.min(Math.max(r,t),e),Tl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},wh={...Tl,transform:t=>Ff(0,1,t)},J1={...Tl,default:1},Eh=t=>Math.round(t*1e5)/1e5,o0=/(-)?([\d]*\.?[\d])+/g,Hb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,MW=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function i1(t){return typeof t=="string"}const o1=t=>({test:e=>i1(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Io=o1("deg"),hi=o1("%"),Ie=o1("px"),DW=o1("vh"),BW=o1("vw"),iA={...hi,parse:t=>hi.parse(t)/100,transform:t=>hi.transform(t*100)},oA={...Tl,transform:Math.round},nP={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,size:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,rotate:Io,rotateX:Io,rotateY:Io,rotateZ:Io,scale:J1,scaleX:J1,scaleY:J1,scaleZ:J1,skew:Io,skewX:Io,skewY:Io,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:wh,originX:iA,originY:iA,originZ:Ie,zIndex:oA,fillOpacity:wh,strokeOpacity:wh,numOctaves:oA};function KE(t,e,r,n){const{style:s,vars:i,transform:o,transformOrigin:a}=t;let c=!1,l=!1,u=!0;for(const f in e){const d=e[f];if(rP(f)){i[f]=d;continue}const h=nP[f],y=_W(d,h);if(Sl.has(f)){if(c=!0,o[f]=y,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(l=!0,a[f]=y):s[f]=y}if(e.transform||(c||n?s.transform=NW(t.transform,r,u,n):s.transform&&(s.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;s.transformOrigin=`${f} ${d} ${h}`}}const QE=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sP(t,e,r){for(const n in e)!hn(e[n])&&!eP(n,r)&&(t[n]=e[n])}function LW({transformTemplate:t},e,r){return m.useMemo(()=>{const n=QE();return KE(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function jW(t,e,r){const n=t.style||{},s={};return sP(s,n,t),Object.assign(s,LW(t,e,r)),t.transformValues?t.transformValues(s):s}function FW(t,e,r){const n={},s=jW(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const UW=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $y(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||UW.has(t)}let iP=t=>!$y(t);function $W(t){t&&(iP=e=>e.startsWith("on")?!$y(e):t(e))}try{$W(require("@emotion/is-prop-valid").default)}catch{}function WW(t,e,r){const n={};for(const s in t)s==="values"&&typeof t.values=="object"||(iP(s)||r===!0&&$y(s)||!e&&!$y(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}function aA(t,e,r){return typeof t=="string"?t:Ie.transform(e+r*t)}function VW(t,e,r){const n=aA(e,t.x,t.width),s=aA(r,t.y,t.height);return`${n} ${s}`}const HW={offset:"stroke-dashoffset",array:"stroke-dasharray"},zW={offset:"strokeDashoffset",array:"strokeDasharray"};function GW(t,e,r=1,n=0,s=!0){t.pathLength=1;const i=s?HW:zW;t[i.offset]=Ie.transform(-n);const o=Ie.transform(e),a=Ie.transform(r);t[i.array]=`${o} ${a}`}function JE(t,{attrX:e,attrY:r,originX:n,originY:s,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...c},l,u,f){if(KE(t,c,l,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:y}=t;d.transform&&(y&&(h.transform=d.transform),delete d.transform),y&&(n!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=VW(y,n!==void 0?n:.5,s!==void 0?s:.5)),e!==void 0&&(d.x=e),r!==void 0&&(d.y=r),i!==void 0&&GW(d,i,o,a,!1)}const oP=()=>({...QE(),attrs:{}}),YE=t=>typeof t=="string"&&t.toLowerCase()==="svg";function qW(t,e,r,n){const s=m.useMemo(()=>{const i=oP();return JE(i,e,{enableHardwareAcceleration:!1},YE(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};sP(i,t.style,t),s.style={...i,...s.style}}return s}function KW(t=!1){return(r,n,s,i,{latestValues:o},a)=>{const l=(qE(r)?qW:FW)(n,o,a,r),f={...WW(n,typeof r=="string",t),...l,ref:i},{children:d}=n,h=m.useMemo(()=>hn(d)?d.get():d,[d]);return s&&(f["data-projection-id"]=s),m.createElement(r,{...f,children:h})}}const XE=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function aP(t,{style:e,vars:r},n,s){Object.assign(t.style,e,s&&s.getProjectionStyles(n));for(const i in r)t.style.setProperty(i,r[i])}const cP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lP(t,e,r,n){aP(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(cP.has(s)?s:XE(s),e.attrs[s])}function ZE(t,e){const{style:r}=t,n={};for(const s in r)(hn(r[s])||e.style&&hn(e.style[s])||eP(s,t))&&(n[s]=r[s]);return n}function uP(t,e){const r=ZE(t,e);for(const n in t)if(hn(t[n])||hn(e[n])){const s=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[s]=t[n]}return r}function eC(t,e,r,n={},s={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),e}const Wy=t=>Array.isArray(t),QW=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),JW=t=>Wy(t)?t[t.length-1]||0:t;function Fp(t){const e=hn(t)?t.get():t;return QW(e)?e.toValue():e}function YW({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,s,i){const o={latestValues:XW(n,s,i,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const fP=t=>(e,r)=>{const n=m.useContext(eg),s=m.useContext(tg),i=()=>YW(t,e,n,s);return r?i():zE(i)};function XW(t,e,r,n){const s={},i=n(t,{});for(const d in i)s[d]=Fp(i[d]);let{initial:o,animate:a}=t;const c=sg(t),l=XT(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const f=u?a:o;return f&&typeof f!="boolean"&&!ng(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const y=eC(t,h);if(!y)return;const{transitionEnd:p,transition:b,...v}=y;for(const g in v){let x=v[g];if(Array.isArray(x)){const k=u?x.length-1:0;x=x[k]}x!==null&&(s[g]=x)}for(const g in p)s[g]=p[g]}),s}const ZW={useVisualState:fP({scrapeMotionValuesFromProps:uP,createRenderState:oP,onMount:(t,e,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}JE(r,n,{enableHardwareAcceleration:!1},YE(e.tagName),t.transformTemplate),lP(e,r)}})},eV={useVisualState:fP({scrapeMotionValuesFromProps:ZE,createRenderState:QE})};function tV(t,{forwardMotionProps:e=!1},r,n){return{...qE(t)?ZW:eV,preloadedFeatures:r,useRender:KW(e),createVisualElement:n,Component:t}}function qi(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const dP=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function og(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const rV=t=>e=>dP(e)&&t(e,og(e));function Yi(t,e,r,n){return qi(t,e,rV(r),n)}const nV=(t,e)=>r=>e(t(r)),xa=(...t)=>t.reduce(nV);function hP(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const cA=hP("dragHorizontal"),lA=hP("dragVertical");function pP(t){let e=!1;if(t==="y")e=lA();else if(t==="x")e=cA();else{const r=cA(),n=lA();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function yP(){const t=pP(!0);return t?(t(),!1):!0}class Ua{constructor(e){this.isMounted=!1,this.node=e}update(){}}function uA(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),s=(i,o)=>{if(i.type==="touch"||yP())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&a[n](i,o)};return Yi(t.current,r,s,{passive:!t.getProps()[n]})}class sV extends Ua{mount(){this.unmount=xa(uA(this.node,!0),uA(this.node,!1))}unmount(){}}class iV extends Ua{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xa(qi(this.node.current,"focus",()=>this.onFocus()),qi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vP=(t,e)=>e?t===e?!0:vP(t,e.parentElement):!1,Os=t=>t;function zm(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,og(r))}class oV extends Ua{constructor(){super(...arguments),this.removeStartListeners=Os,this.removeEndListeners=Os,this.removeAccessibleListeners=Os,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Yi(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();vP(this.node.current,a.target)?l&&l(a,c):u&&u(a,c)},{passive:!(n.onTap||n.onPointerUp)}),o=Yi(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=xa(i,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=i=>{if(i.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||zm("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=qi(this.node.current,"keyup",o),zm("down",(a,c)=>{this.startPress(a,c)})},r=qi(this.node.current,"keydown",e),n=()=>{this.isPressing&&zm("cancel",(i,o)=>this.cancelPress(i,o))},s=qi(this.node.current,"blur",n);this.removeAccessibleListeners=xa(r,s)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!yP()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,r)}mount(){const e=this.node.getProps(),r=Yi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=qi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xa(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const zb=new WeakMap,Gm=new WeakMap,aV=t=>{const e=zb.get(t.target);e&&e(t)},cV=t=>{t.forEach(aV)};function lV({root:t,...e}){const r=t||document;Gm.has(r)||Gm.set(r,{});const n=Gm.get(r),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(cV,{root:t,...e})),n[s]}function uV(t,e,r){const n=lV(e);return zb.set(t,r),n.observe(t),()=>{zb.delete(t),n.unobserve(t)}}const fV={some:0,all:1};class dV extends Ua{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:i,fallback:o=!0}=e;if(typeof IntersectionObserver>"u"){o&&this.viewportFallback();return}const a={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:fV[s]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=u?f:d;h&&h(l)};return uV(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(hV(e,r))&&this.startObserver()}unmount(){}}function hV({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const pV={inView:{Feature:dV},tap:{Feature:oV},focus:{Feature:iV},hover:{Feature:sV}};function gP(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n/^\-?\d*\.?\d+$/.test(t),vV=t=>/^0[^.\s]+$/.test(t),Xi={delta:0,timestamp:0},mP=1/60*1e3,gV=typeof performance<"u"?()=>performance.now():()=>Date.now(),xP=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(gV()),mP);function mV(t){let e=[],r=[],n=0,s=!1,i=!1;const o=new WeakSet,a={schedule:(c,l=!1,u=!1)=>{const f=u&&s,d=f?e:r;return l&&o.add(c),d.indexOf(c)===-1&&(d.push(c),f&&s&&(n=e.length)),c},cancel:c=>{const l=r.indexOf(c);l!==-1&&r.splice(l,1),o.delete(c)},process:c=>{if(s){i=!0;return}if(s=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let l=0;l(t[e]=mV(()=>a0=!0),t),{}),Or=a1.reduce((t,e)=>{const r=ag[e];return t[e]=(n,s=!1,i=!1)=>(a0||wV(),r.schedule(n,s,i)),t},{}),Ta=a1.reduce((t,e)=>(t[e]=ag[e].cancel,t),{}),qm=a1.reduce((t,e)=>(t[e]=()=>ag[e].process(Xi),t),{}),bV=t=>ag[t].process(Xi),bP=t=>{a0=!1,Xi.delta=Gb?mP:Math.max(Math.min(t-Xi.timestamp,xV),1),Xi.timestamp=t,qb=!0,a1.forEach(bV),qb=!1,a0&&(Gb=!1,xP(bP))},wV=()=>{a0=!0,Gb=!0,qb||xP(bP)};function tC(t,e){t.indexOf(e)===-1&&t.push(e)}function rC(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class nC{constructor(){this.subscriptions=[]}add(e){return tC(this.subscriptions,e),()=>rC(this.subscriptions,e)}notify(e,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,r,n);else for(let i=0;i!isNaN(parseFloat(t));class CV{constructor(e,r={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,s=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:o}=Xi;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Or.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Or.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=EV(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new nC);const n=this.events[e].add(r);return e==="change"?()=>{n(),Or.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?sC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Uf(t,e){return new CV(t,e)}const iC=(t,e)=>r=>!!(i1(r)&&MW.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),wP=(t,e,r)=>n=>{if(!i1(n))return n;const[s,i,o,a]=n.match(o0);return{[t]:parseFloat(s),[e]:parseFloat(i),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},kV=t=>Ff(0,255,t),Km={...Tl,transform:t=>Math.round(kV(t))},gc={test:iC("rgb","red"),parse:wP("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Km.transform(t)+", "+Km.transform(e)+", "+Km.transform(r)+", "+Eh(wh.transform(n))+")"};function AV(t){let e="",r="",n="",s="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,r+=r,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Kb={test:iC("#"),parse:AV,transform:gc.transform},uu={test:iC("hsl","hue"),parse:wP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+hi.transform(Eh(e))+", "+hi.transform(Eh(r))+", "+Eh(wh.transform(n))+")"},Fr={test:t=>gc.test(t)||Kb.test(t)||uu.test(t),parse:t=>gc.test(t)?gc.parse(t):uu.test(t)?uu.parse(t):Kb.parse(t),transform:t=>i1(t)?t:t.hasOwnProperty("red")?gc.transform(t):uu.transform(t)},EP="${c}",CP="${n}";function SV(t){var e,r;return isNaN(t)&&i1(t)&&(((e=t.match(o0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Hb))===null||r===void 0?void 0:r.length)||0)>0}function Vy(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0,n=0;const s=t.match(Hb);s&&(r=s.length,t=t.replace(Hb,EP),e.push(...s.map(Fr.parse)));const i=t.match(o0);return i&&(n=i.length,t=t.replace(o0,CP),e.push(...i.map(Tl.parse))),{values:e,numColors:r,numNumbers:n,tokenised:t}}function kP(t){return Vy(t).values}function AP(t){const{values:e,numColors:r,tokenised:n}=Vy(t),s=e.length;return i=>{let o=n;for(let a=0;atypeof t=="number"?0:t;function PV(t){const e=kP(t);return AP(t)(e.map(TV))}const Pa={test:SV,parse:kP,createTransformer:AP,getAnimatableNone:PV},IV=new Set(["brightness","contrast","saturate","opacity"]);function OV(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(o0)||[];if(!n)return t;const s=r.replace(n,"");let i=IV.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+s+")"}const RV=/([a-z-]*)\(.*?\)/g,Qb={...Pa,getAnimatableNone:t=>{const e=t.match(RV);return e?e.map(OV).join(" "):t}},NV={...nP,color:Fr,backgroundColor:Fr,outlineColor:Fr,fill:Fr,stroke:Fr,borderColor:Fr,borderTopColor:Fr,borderRightColor:Fr,borderBottomColor:Fr,borderLeftColor:Fr,filter:Qb,WebkitFilter:Qb},oC=t=>NV[t];function aC(t,e){let r=oC(t);return r!==Qb&&(r=Pa),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const SP=t=>e=>e.test(t),_V={test:t=>t==="auto",parse:t=>t},TP=[Tl,Ie,hi,Io,BW,DW,_V],Bd=t=>TP.find(SP(t)),MV=[...TP,Fr,Pa],DV=t=>MV.find(SP(t));function BV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function LV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function cg(t,e,r){const n=t.getProps();return eC(n,e,r!==void 0?r:n.custom,BV(t),LV(t))}function jV(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Uf(r))}function FV(t,e){const r=cg(t,e);let{transitionEnd:n={},transition:s={},...i}=r?t.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const o in i){const a=JW(i[o]);jV(t,o,a)}}function UV(t,e,r){var n,s;const i=Object.keys(e).filter(a=>!t.hasValue(a)),o=i.length;if(o)for(let a=0;at*1e3,zV={current:!1},cC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,lC=t=>e=>1-t(1-e),uC=t=>t*t,GV=lC(uC),fC=cC(uC),Et=(t,e,r)=>-r*t+r*e+t;function Qm(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function qV({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let s=0,i=0,o=0;if(!e)s=i=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,c=2*r-a;s=Qm(c,a,t+1/3),i=Qm(c,a,t),o=Qm(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}const Jm=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},KV=[Kb,gc,uu],QV=t=>KV.find(e=>e.test(t));function fA(t){const e=QV(t);let r=e.parse(t);return e===uu&&(r=qV(r)),r}const PP=(t,e)=>{const r=fA(t),n=fA(e),s={...r};return i=>(s.red=Jm(r.red,n.red,i),s.green=Jm(r.green,n.green,i),s.blue=Jm(r.blue,n.blue,i),s.alpha=Et(r.alpha,n.alpha,i),gc.transform(s))};function IP(t,e){return typeof t=="number"?r=>Et(t,e,r):Fr.test(t)?PP(t,e):RP(t,e)}const OP=(t,e)=>{const r=[...t],n=r.length,s=t.map((i,o)=>IP(i,e[o]));return i=>{for(let o=0;o{const r={...t,...e},n={};for(const s in r)t[s]!==void 0&&e[s]!==void 0&&(n[s]=IP(t[s],e[s]));return s=>{for(const i in n)r[i]=n[i](s);return r}},RP=(t,e)=>{const r=Pa.createTransformer(e),n=Vy(t),s=Vy(e);return n.numColors===s.numColors&&n.numNumbers>=s.numNumbers?xa(OP(n.values,s.values),r):o=>`${o>0?e:t}`},l0=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},dA=(t,e)=>r=>Et(t,e,r);function YV(t){return typeof t=="number"?dA:typeof t=="string"?Fr.test(t)?PP:RP:Array.isArray(t)?OP:typeof t=="object"?JV:dA}function XV(t,e,r){const n=[],s=r||YV(t[0]),i=t.length-1;for(let o=0;ot[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=XV(e,n,s),a=o.length,c=l=>{let u=0;if(a>1)for(;uc(Ff(t[0],t[i-1],l)):c}function ZV(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const s=l0(0,e,n);t.push(Et(r,1,s))}}function eH(t){const e=[0];return ZV(e,t.length-1),e}function tH(t,e){return t.map(r=>r*e)}const _P=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,rH=1e-7,nH=12;function sH(t,e,r,n,s){let i,o,a=0;do o=e+(r-e)/2,i=_P(o,n,s)-t,i>0?r=o:e=o;while(Math.abs(i)>rH&&++asH(i,0,1,t,r);return i=>i===0||i===1?i:_P(s(i),e,n)}const DP=t=>1-Math.sin(Math.acos(t)),dC=lC(DP),iH=cC(dC),BP=MP(.33,1.53,.69,.99),hC=lC(BP),oH=cC(hC),aH=t=>(t*=2)<1?.5*hC(t):.5*(2-Math.pow(2,-10*(t-1))),hA={linear:Os,easeIn:uC,easeInOut:fC,easeOut:GV,circIn:DP,circInOut:iH,circOut:dC,backIn:hC,backInOut:oH,backOut:BP,anticipate:aH},pA=t=>{if(Array.isArray(t)){c0(t.length===4);const[e,r,n,s]=t;return MP(e,r,n,s)}else if(typeof t=="string")return c0(hA[t]!==void 0),hA[t];return t},cH=t=>Array.isArray(t)&&typeof t[0]!="number";function lH(t,e){return t.map(()=>e||fC).splice(0,t.length-1)}function Jb({keyframes:t,ease:e=fC,times:r,duration:n=300}){t=[...t];const s=cH(e)?e.map(pA):pA(e),i={done:!1,value:t[0]},o=tH(r&&r.length===t.length?r:eH(t),n);function a(){return NP(o,t,{ease:Array.isArray(s)?s:lH(t,s)})}let c=a();return{next:l=>(i.value=c(l),i.done=l>=n,i),flipTarget:()=>{t.reverse(),c=a()}}}const Ym=.001,uH=.01,fH=10,dH=.05,hH=1;function pH({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let s,i,o=1-e;o=Ff(dH,hH,o),t=Ff(uH,fH,t/1e3),o<1?(s=l=>{const u=l*o,f=u*t,d=u-r,h=Yb(l,o),y=Math.exp(-f);return Ym-d/h*y},i=l=>{const f=l*o*t,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*t,y=Math.exp(-f),p=Yb(Math.pow(l,2),o);return(-s(l)+Ym>0?-1:1)*((d-h)*y)/p}):(s=l=>{const u=Math.exp(-l*t),f=(l-r)*t+1;return-Ym+u*f},i=l=>{const u=Math.exp(-l*t),f=(r-l)*(t*t);return u*f});const a=5/t,c=vH(s,i,a);if(t=t*1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:t}}}const yH=12;function vH(t,e,r){let n=r;for(let s=1;st[r]!==void 0)}function xH(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!yA(t,mH)&&yA(t,gH)){const r=pH(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}const bH=5;function LP({keyframes:t,restDelta:e,restSpeed:r,...n}){let s=t[0],i=t[t.length-1];const o={done:!1,value:s},{stiffness:a,damping:c,mass:l,velocity:u,duration:f,isResolvedFromDuration:d}=xH(n);let h=wH,y=u?-(u/1e3):0;const p=c/(2*Math.sqrt(a*l));function b(){const v=i-s,g=Math.sqrt(a/l)/1e3,x=Math.abs(v)<5;if(r||(r=x?.01:2),e||(e=x?.005:.5),p<1){const k=Yb(g,p);h=S=>{const I=Math.exp(-p*g*S);return i-I*((y+p*g*v)/k*Math.sin(k*S)+v*Math.cos(k*S))}}else if(p===1)h=k=>i-Math.exp(-g*k)*(v+(y+g*v)*k);else{const k=g*Math.sqrt(p*p-1);h=S=>{const I=Math.exp(-p*g*S),R=Math.min(k*S,300);return i-I*((y+p*g*v)*Math.sinh(R)+k*v*Math.cosh(R))/k}}}return b(),{next:v=>{const g=h(v);if(d)o.done=v>=f;else{let x=y;if(v!==0)if(p<1){const I=Math.max(0,v-bH);x=sC(g-h(I),v-I)}else x=0;const k=Math.abs(x)<=r,S=Math.abs(i-g)<=e;o.done=k&&S}return o.value=o.done?i:g,o},flipTarget:()=>{y=-y,[s,i]=[i,s],b()}}}LP.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const wH=t=>0;function EH({keyframes:t=[0],velocity:e=0,power:r=.8,timeConstant:n=350,restDelta:s=.5,modifyTarget:i}){const o=t[0],a={done:!1,value:o};let c=r*e;const l=o+c,u=i===void 0?l:i(l);return u!==l&&(c=u-o),{next:f=>{const d=-c*Math.exp(-f/n);return a.done=!(d>s||d<-s),a.value=a.done?u:u+d,a},flipTarget:()=>{}}}const CH={decay:EH,keyframes:Jb,tween:Jb,spring:LP};function jP(t,e,r=0){return t-e-r}function kH(t,e=0,r=0,n=!0){return n?jP(e+-t,e,r):e-(t-e)+r}function AH(t,e,r,n){return n?t>=e+r:t<=-r}const SH=t=>{const e=({delta:r})=>t(r);return{start:()=>Or.update(e,!0),stop:()=>Ta.update(e)}};function zy({duration:t,driver:e=SH,elapsed:r=0,repeat:n=0,repeatType:s="loop",repeatDelay:i=0,keyframes:o,autoplay:a=!0,onPlay:c,onStop:l,onComplete:u,onRepeat:f,onUpdate:d,type:h="keyframes",...y}){const p=r;let b,v=0,g=t,x=!1,k=!0,S;const I=CH[o.length>2?"keyframes":h]||Jb,R=o[0],_=o[o.length-1];let V={done:!1,value:R};const{needsInterpolation:F}=I;F&&F(R,_)&&(S=NP([0,100],[R,_],{clamp:!1}),o=[0,100]);const X=I({...y,duration:t,keyframes:o});function re(){v++,s==="reverse"?(k=v%2===0,r=kH(r,g,i,k)):(r=jP(r,g,i),s==="mirror"&&X.flipTarget()),x=!1,f&&f()}function le(){b&&b.stop(),u&&u()}function ee(G){k||(G=-G),r+=G,x||(V=X.next(Math.max(0,r)),S&&(V.value=S(V.value)),x=k?V.done:r<=0),d&&d(V.value),x&&(v===0&&(g=g!==void 0?g:r),v{l&&l(),b&&b.stop()},set currentTime(G){r=p,ee(G)},sample:G=>{r=p;const Z=t&&typeof t=="number"?Math.max(t*.5,50):50;let E=0;for(ee(0);E<=G;){const A=G-E;ee(Math.min(A,Z)),E+=Z}return V}}}function TH(t){return!t||Array.isArray(t)||typeof t=="string"&&FP[t]}const Yd=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,FP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yd([0,.65,.55,1]),circOut:Yd([.55,0,1,.45]),backIn:Yd([.31,.01,.66,-.59]),backOut:Yd([.33,1.53,.69,.99])};function PH(t){if(t)return Array.isArray(t)?Yd(t):FP[t]}function IH(t,e,r,{delay:n=0,duration:s,repeat:i=0,repeatType:o="loop",ease:a,times:c}={}){return t.animate({[e]:r,offset:c},{delay:n,duration:s,easing:PH(a),fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const vA={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Xm={},UP={};for(const t in vA)UP[t]=()=>(Xm[t]===void 0&&(Xm[t]=vA[t]()),Xm[t]);function OH(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const RH=new Set(["opacity","clipPath","filter","transform"]),Y1=10;function NH(t,e,{onUpdate:r,onComplete:n,...s}){if(!(UP.waapi()&&RH.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:l}=s;if(s.type==="spring"||!TH(s.ease)){if(s.repeat===1/0)return;const f=zy({...s,elapsed:0});let d={done:!1,value:o[0]};const h=[];let y=0;for(;!d.done&&y<2e4;)d=f.sample(y),h.push(d.value),y+=Y1;o=h,a=y-Y1,l="linear"}const u=IH(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:l});return u.onfinish=()=>{t.set(OH(o,s)),Or.update(()=>u.cancel()),n&&n()},{get currentTime(){return u.currentTime||0},set currentTime(f){u.currentTime=f},stop:()=>{const{currentTime:f}=u;if(f){const d=zy({...s,autoplay:!1});t.setWithVelocity(d.sample(f-Y1).value,d.sample(f).value,Y1)}Or.update(()=>u.cancel())}}}function $P(t,e){const r=performance.now(),n=({timestamp:s})=>{const i=s-r;i>=e&&(Ta.read(n),t(i-e))};return Or.read(n,!0),()=>Ta.read(n)}function _H({keyframes:t,elapsed:e,onUpdate:r,onComplete:n}){const s=()=>{r&&r(t[t.length-1]),n&&n()};return e?{stop:$P(s,-e)}:s()}function MH({keyframes:t,velocity:e=0,min:r,max:n,power:s=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:f,onComplete:d,onStop:h}){const y=t[0];let p;function b(k){return r!==void 0&&kn}function v(k){return r===void 0?n:n===void 0||Math.abs(r-k){f&&f(S),k.onUpdate&&k.onUpdate(S)},onComplete:d,onStop:h})}function x(k){g({type:"spring",stiffness:o,damping:a,restDelta:c,...k})}if(b(y))x({velocity:e,keyframes:[y,v(y)]});else{let k=s*e+y;typeof l<"u"&&(k=l(k));const S=v(k),I=S===r?-1:1;let R,_;const V=F=>{R=_,_=F,e=sC(F-R,Xi.delta),(I===1&&F>S||I===-1&&Fp&&p.stop()}}const DH={type:"spring",stiffness:500,damping:25,restSpeed:10},BH=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),LH={type:"keyframes",duration:.8},jH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FH=(t,{keyframes:e})=>e.length>2?LH:Sl.has(t)?t.startsWith("scale")?BH(e[1]):DH:jH,Xb=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Pa.test(e)&&!e.startsWith("url("));function UH({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function gA(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function mA(t){return typeof t=="number"?0:aC("",t)}function WP(t,e){return t[e]||t.default||t}function $H(t,e,r,n){const s=Xb(e,r);let i=n.from!==void 0?n.from:t.get();return i==="none"&&s&&typeof r=="string"?i=aC(e,r):gA(i)&&typeof r=="string"?i=mA(r):!Array.isArray(r)&&gA(r)&&typeof i=="string"&&(r=mA(i)),Array.isArray(r)?(r[0]===null&&(r[0]=i),r):[i,r]}const pC=(t,e,r,n={})=>s=>{const i=WP(n,t)||{},o=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Up(o);const c=$H(e,t,r,i),l=c[0],u=c[c.length-1],f=Xb(t,l),d=Xb(t,u);let h={keyframes:c,velocity:e.getVelocity(),...i,elapsed:a,onUpdate:y=>{e.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{s(),i.onComplete&&i.onComplete()}};if(!f||!d||zV.current||i.type===!1)return _H(h);if(i.type==="inertia")return MH(h);if(UH(i)||(h={...h,...FH(t,h)}),h.duration&&(h.duration=Up(h.duration)),h.repeatDelay&&(h.repeatDelay=Up(h.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const y=NH(e,t,h);if(y)return y}return zy(h)};function WH(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const s=e.map(i=>Zb(t,i,r));n=Promise.all(s)}else if(typeof e=="string")n=Zb(t,e,r);else{const s=typeof e=="function"?cg(t,e,r.custom):e;n=VP(t,s,r)}return n.then(()=>t.notify("AnimationComplete",e))}function Zb(t,e,r={}){const n=cg(t,e,r.custom);let{transition:s=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const i=n?()=>VP(t,n,r):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=s;return VH(t,e,l+c,u,f,r)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[i,o]:[o,i];return c().then(l)}else return Promise.all([i(),o(r.delay)])}function VP(t,e,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");n&&(i=n);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const f in a){const d=t.getValue(f),h=a[f];if(!d||h===void 0||u&&zH(u,f))continue;const y={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!d.hasAnimated){const b=t.getProps()[HV];b&&(y.elapsed=window.HandoffAppearAnimations(b,f,d,Or))}let p=d.start(pC(f,d,h,t.shouldReduceMotion&&Sl.has(f)?{type:!1}:y));Hy(c)&&(c.add(f),p=p.then(()=>c.remove(f))),l.push(p)}return Promise.all(l).then(()=>{o&&FV(t,o)})}function VH(t,e,r=0,n=0,s=1,i){const o=[],a=(t.variantChildren.size-1)*n,c=s===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(t.variantChildren).sort(HH).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(Zb(l,e,{...i,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function HH(t,e){return t.sortNodePosition(e)}function zH({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}const GH=[...VE].reverse(),qH=VE.length;function KH(t){return e=>Promise.all(e.map(({animation:r,options:n})=>WH(t,r,n)))}function QH(t){let e=KH(t);const r=YH();let n=!0;const s=(c,l)=>{const u=cg(t,l);if(u){const{transition:f,transitionEnd:d,...h}=u;c={...c,...h,...d}}return c};function i(c){e=c(t)}function o(c,l){const u=t.getProps(),f=t.getVariantContext(!0)||{},d=[],h=new Set;let y={},p=1/0;for(let v=0;vp&&S;const F=Array.isArray(k)?k:[k];let X=F.reduce(s,{});I===!1&&(X={});const{prevResolvedValues:re={}}=x,le={...re,...X},ee=D=>{V=!0,h.delete(D),x.needsAnimating[D]=!0};for(const D in le){const G=X[D],Z=re[D];y.hasOwnProperty(D)||(G!==Z?Wy(G)&&Wy(Z)?!gP(G,Z)||_?ee(D):x.protectedKeys[D]=!0:G!==void 0?ee(D):h.add(D):G!==void 0&&h.has(D)?ee(D):x.protectedKeys[D]=!0)}x.prevProp=k,x.prevResolvedValues=X,x.isActive&&(y={...y,...X}),n&&t.blockInitialAnimation&&(V=!1),V&&!R&&d.push(...F.map(D=>({animation:D,options:{type:g,...c}})))}if(h.size){const v={};h.forEach(g=>{const x=t.getBaseTarget(g);x!==void 0&&(v[g]=x)}),d.push({animation:v})}let b=!!d.length;return n&&u.initial===!1&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(d):Promise.resolve()}function a(c,l,u){var f;if(r[c].isActive===l)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),r[c].isActive=l;const d=o(u,c);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>r}}function JH(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!gP(e,t):!1}function Ja(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YH(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}class XH extends Ua{constructor(e){super(e),e.animationState||(e.animationState=QH(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ng(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let ZH=0;class ez extends Ua{constructor(){super(...arguments),this.id=ZH++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&i.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const tz={animation:{Feature:XH},exit:{Feature:ez}},xA=(t,e)=>Math.abs(t-e);function rz(t,e){const r=xA(t.x,e.x),n=xA(t.y,e.y);return Math.sqrt(r**2+n**2)}class HP{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=ex(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=rz(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=Xi;this.history.push({...d,timestamp:h});const{onStart:y,onMove:p}=this.handlers;u||(y&&y(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=Zm(u,this.transformPagePoint),Or.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=ex(l.type==="pointercancel"?this.lastMoveEventInfo:Zm(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!dP(e))return;this.handlers=r,this.transformPagePoint=n;const s=og(e),i=Zm(s,this.transformPagePoint),{point:o}=i,{timestamp:a}=Xi;this.history=[{...o,timestamp:a}];const{onSessionStart:c}=r;c&&c(e,ex(i,this.history)),this.removeListeners=xa(Yi(window,"pointermove",this.handlePointerMove),Yi(window,"pointerup",this.handlePointerUp),Yi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ta.update(this.updatePoint)}}function Zm(t,e){return e?{point:e(t.point)}:t}function bA(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ex({point:t},e){return{point:t,delta:bA(t,zP(e)),offset:bA(t,nz(e)),velocity:sz(e,.1)}}function nz(t){return t[0]}function zP(t){return t[t.length-1]}function sz(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const s=zP(t);for(;r>=0&&(n=t[r],!(s.timestamp-n.timestamp>Up(e)));)r--;if(!n)return{x:0,y:0};const i=(s.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};const o={x:(s.x-n.x)/i,y:(s.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Rn(t){return t.max-t.min}function ew(t,e=0,r=.01){return Math.abs(t-e)<=r}function wA(t,e,r,n=.5){t.origin=n,t.originPoint=Et(e.min,e.max,t.origin),t.scale=Rn(r)/Rn(e),(ew(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Et(r.min,r.max,t.origin)-t.originPoint,(ew(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ch(t,e,r,n){wA(t.x,e.x,r.x,n?n.originX:void 0),wA(t.y,e.y,r.y,n?n.originY:void 0)}function EA(t,e,r){t.min=r.min+e.min,t.max=t.min+Rn(e)}function iz(t,e,r){EA(t.x,e.x,r.x),EA(t.y,e.y,r.y)}function CA(t,e,r){t.min=e.min-r.min,t.max=t.min+Rn(e)}function kh(t,e,r){CA(t.x,e.x,r.x),CA(t.y,e.y,r.y)}function oz(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Et(r,t,n.max):Math.min(t,r)),t}function kA(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function az(t,{top:e,left:r,bottom:n,right:s}){return{x:kA(t.x,r,s),y:kA(t.y,e,n)}}function AA(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=l0(e.min,e.max-n,t.min):n>s&&(r=l0(t.min,t.max-s,e.min)),Ff(0,1,r)}function uz(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const tw=.35;function fz(t=tw){return t===!1?t=0:t===!0&&(t=tw),{x:SA(t,"left","right"),y:SA(t,"top","bottom")}}function SA(t,e,r){return{min:TA(t,e),max:TA(t,r)}}function TA(t,e){return typeof t=="number"?t:t[e]||0}const PA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ah=()=>({x:PA(),y:PA()}),IA=()=>({min:0,max:0}),Lt=()=>({x:IA(),y:IA()});function Gs(t){return[t("x"),t("y")]}function GP({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function dz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function hz(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function tx(t){return t===void 0||t===1}function rw({scale:t,scaleX:e,scaleY:r}){return!tx(t)||!tx(e)||!tx(r)}function rc(t){return rw(t)||qP(t)||t.z||t.rotate||t.rotateX||t.rotateY}function qP(t){return OA(t.x)||OA(t.y)}function OA(t){return t&&t!=="0%"}function Gy(t,e,r){const n=t-r,s=e*n;return r+s}function RA(t,e,r,n,s){return s!==void 0&&(t=Gy(t,s,n)),Gy(t,r,n)+e}function nw(t,e=0,r=1,n,s){t.min=RA(t.min,e,r,n,s),t.max=RA(t.max,e,r,n,s)}function KP(t,{x:e,y:r}){nw(t.x,e.translate,e.scale,e.originPoint),nw(t.y,r.translate,r.scale,r.originPoint)}function pz(t,e,r,n=!1){const s=r.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Mo(t,e){t.min=t.min+e,t.max=t.max+e}function _A(t,e,[r,n,s]){const i=e[s]!==void 0?e[s]:.5,o=Et(t.min,t.max,i);nw(t,e[r],e[n],o,e.scale)}const yz=["x","scaleX","originX"],vz=["y","scaleY","originY"];function fu(t,e){_A(t.x,e,yz),_A(t.y,e,vz)}function QP(t,e){return GP(hz(t.getBoundingClientRect(),e))}function gz(t,e,r){const n=QP(t,r),{scroll:s}=e;return s&&(Mo(n.x,s.offset.x),Mo(n.y,s.offset.y)),n}const mz=new WeakMap;class xz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const s=c=>{this.stopAnimation(),r&&this.snapToCursor(og(c,"page").point)},i=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pP(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Gs(y=>{let p=this.getAxisMotionValue(y).get()||0;if(hi.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const v=b.layout.layoutBox[y];v&&(p=Rn(v)*(parseFloat(p)/100))}}this.originPoint[y]=p}),d&&d(c,l);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(c,l)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:y}=l;if(f&&this.currentDirection===null){this.currentDirection=bz(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,y),this.updateAxis("y",l.point,y),this.visualElement.render(),h&&h(c,l)},a=(c,l)=>this.stop(c,l);this.panSession=new HP(e,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&i(e,r)}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:s}=this.getProps();if(!n||!X1(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=oz(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&lu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=az(n.layoutBox,e):this.constraints=!1,this.elastic=fz(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Gs(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=uz(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!lu(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=gz(n,s.root,this.visualElement.getTransformPagePoint());let o=cz(s.layout.layoutBox,i);if(r){const a=r(dz(o));this.hasMutatedConstraints=!!a,a&&(o=GP(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Gs(u=>{if(!X1(u,r,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=s?200:1e6,h=s?40:1e7,y={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(pC(e,n,0,r))}stopAnimation(){Gs(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Gs(r=>{const{drag:n}=this.getProps();if(!X1(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[r];i.set(e[r]-Et(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!lu(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Gs(o=>{const a=this.getAxisMotionValue(o);if(a){const c=a.get();s[o]=lz({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Gs(o=>{if(!X1(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Et(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;mz.set(this.visualElement,this);const e=this.visualElement.current,r=Yi(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();lu(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),n();const o=qi(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Gs(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=tw,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function X1(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function bz(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class wz extends Ua{constructor(e){super(e),this.removeGroupControls=Os,this.removeListeners=Os,this.controls=new xz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Os}unmount(){this.removeGroupControls(),this.removeListeners()}}class Ez extends Ua{constructor(){super(...arguments),this.removePointerDownListener=Os}onPointerDown(e){this.session=new HP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:e,onStart:r,onMove:n,onEnd:(i,o)=>{delete this.session,s&&s(i,o)}}}mount(){this.removePointerDownListener=Yi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Cz(){const t=m.useContext(tg);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,s=m.useId();return m.useEffect(()=>n(s),[]),!e&&r?[!1,()=>r&&r(s)]:[!0]}function MA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ld={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ie.test(t))t=parseFloat(t);else return t;const r=MA(t,e.target.x),n=MA(t,e.target.y);return`${r}% ${n}%`}},JP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function kz(t){const e=JP.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function sw(t,e,r=1){const[n,s]=kz(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);return i?i.trim():Vb(s)?sw(s,e,r+1):s}function Az(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(s=>{const i=s.get();if(!Vb(i))return;const o=sw(i,n);o&&s.set(o)});for(const s in e){const i=e[s];if(!Vb(i))continue;const o=sw(i,n);o&&(e[s]=o,r&&r[s]===void 0&&(r[s]=i))}return{target:e,transitionEnd:r}}const DA="_$css",Sz={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,s=t.includes("var("),i=[];s&&(t=t.replace(JP,h=>(i.push(h),DA)));const o=Pa.parse(t);if(o.length>5)return n;const a=Pa.createTransformer(t),c=typeof o[0]!="number"?1:0,l=r.x.scale*e.x,u=r.y.scale*e.y;o[0+c]/=l,o[1+c]/=u;const f=Et(l,u,.5);typeof o[2+c]=="number"&&(o[2+c]/=f),typeof o[3+c]=="number"&&(o[3+c]/=f);let d=a(o);if(s){let h=0;d=d.replace(DA,()=>{const y=i[h];return h++,y})}return d}};class Tz extends Wr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=e;IW(Pz),i&&(r.group&&r.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),bh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:s,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,s||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Or.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function YP(t){const[e,r]=Cz(),n=m.useContext(GE);return Wr.createElement(Tz,{...t,layoutGroup:n,switchLayoutGroup:m.useContext(ZT),isPresent:e,safeToRemove:r})}const Pz={borderRadius:{...Ld,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ld,borderTopRightRadius:Ld,borderBottomLeftRadius:Ld,borderBottomRightRadius:Ld,boxShadow:Sz};function Iz(t,e,r={}){const n=hn(t)?t:Uf(t);return n.start(pC("",n,e,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const XP=["TopLeft","TopRight","BottomLeft","BottomRight"],Oz=XP.length,BA=t=>typeof t=="string"?parseFloat(t):t,LA=t=>typeof t=="number"||Ie.test(t);function Rz(t,e,r,n,s,i){s?(t.opacity=Et(0,r.opacity!==void 0?r.opacity:1,Nz(n)),t.opacityExit=Et(e.opacity!==void 0?e.opacity:1,0,_z(n))):i&&(t.opacity=Et(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(l0(t,e,n))}function FA(t,e){t.min=e.min,t.max=e.max}function Mn(t,e){FA(t.x,e.x),FA(t.y,e.y)}function UA(t,e,r,n,s){return t-=e,t=Gy(t,1/r,n),s!==void 0&&(t=Gy(t,1/s,n)),t}function Mz(t,e=0,r=1,n=.5,s,i=t,o=t){if(hi.test(e)&&(e=parseFloat(e),e=Et(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Et(i.min,i.max,n);t===i&&(a-=e),t.min=UA(t.min,e,r,a,s),t.max=UA(t.max,e,r,a,s)}function $A(t,e,[r,n,s],i,o){Mz(t,e[r],e[n],e[s],e.scale,i,o)}const Dz=["x","scaleX","originX"],Bz=["y","scaleY","originY"];function WA(t,e,r,n){$A(t.x,e,Dz,r?r.x:void 0,n?n.x:void 0),$A(t.y,e,Bz,r?r.y:void 0,n?n.y:void 0)}function VA(t){return t.translate===0&&t.scale===1}function eI(t){return VA(t.x)&&VA(t.y)}function iw(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function HA(t){return Rn(t.x)/Rn(t.y)}class Lz{constructor(){this.members=[]}add(e){tC(this.members,e),e.scheduleRender()}remove(e){if(rC(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(s=>e===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zA(t,e,r){let n="";const s=t.x.translate/e.x,i=t.y.translate/e.y;if((s||i)&&(n=`translate3d(${s}px, ${i}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const jz=(t,e)=>t.depth-e.depth;class Fz{constructor(){this.children=[],this.isDirty=!1}add(e){tC(this.children,e),this.isDirty=!0}remove(e){rC(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jz),this.isDirty=!1,this.children.forEach(e)}}function Uz(t){window.MotionDebug&&window.MotionDebug.record(t)}const GA=["","X","Y","Z"],qA=1e3;let $z=0;const nc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tI({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o,a={},c=e==null?void 0:e()){this.id=$z++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nc.totalNodes=nc.resolvedTargetDeltas=nc.recalculatedProjection=0,this.nodes.forEach(Hz),this.nodes.forEach(Kz),this.nodes.forEach(Qz),this.nodes.forEach(zz),Uz(nc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=$P(d,250),bh.hasAnimatedSinceResize&&(bh.hasAnimatedSinceResize=!1,this.nodes.forEach(QA))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||eG,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!iw(this.targetLayout,y)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const k={...WP(p,"layout"),onPlay:b,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else!d&&this.animationProgress===0&&QA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ta.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Jz),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const S=k/1e3;JA(f.x,o.x,S),JA(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kh(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xz(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&iw(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Lt()),Mn(x,this.relativeTarget)),p&&(this.animationValues=u,Rz(u,l,this.latestValues,S,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ta.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Or.update(()=>{bh.hasAnimatedSinceResize=!0,this.currentAnimation=Iz(0,qA,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&rI(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Lt();const f=Rn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=Rn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}Mn(a,c),fu(a,u),Ch(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Lz),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(KA),this.root.sharedNodes.clear()}}}function Wz(t){t.updateLayout()}function Vz(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;i==="size"?Gs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(d);d.min=n[f].min,d.max=d.min+h}):rI(i,r.layoutBox,n)&&Gs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(n[f]);d.max=d.min+h});const a=Ah();Ch(a,n,r.layoutBox);const c=Ah();o?Ch(c,t.applyTransform(s,!0),r.measuredBox):Ch(c,n,r.layoutBox);const l=!eI(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=Lt();kh(y,r.layoutBox,d.layoutBox);const p=Lt();kh(p,n,h.layoutBox),iw(y,p)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Hz(t){nc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function zz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gz(t){t.clearSnapshot()}function KA(t){t.clearMeasurements()}function qz(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function QA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Kz(t){t.resolveTargetDelta()}function Qz(t){t.calcProjection()}function Jz(t){t.resetRotation()}function Yz(t){t.removeLeadSnapshot()}function JA(t,e,r){t.translate=Et(e.translate,0,r),t.scale=Et(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function YA(t,e,r,n){t.min=Et(e.min,r.min,n),t.max=Et(e.max,r.max,n)}function Xz(t,e,r,n){YA(t.x,e.x,r.x,n),YA(t.y,e.y,r.y,n)}function Zz(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const eG={duration:.45,ease:[.4,0,.1,1]};function tG(t,e){let r=t.root;for(let i=t.path.length-1;i>=0;i--)if(t.path[i].instance){r=t.path[i];break}const s=(r&&r!==t.root?r.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function XA(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function rG(t){XA(t.x),XA(t.y)}function rI(t,e,r){return t==="position"||t==="preserve-aspect"&&!ew(HA(e),HA(r),.2)}const nG=tI({attachResizeListener:(t,e)=>qi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rx={current:void 0},nI=tI({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rx.current){const t=new nG(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),rx.current=t}return rx.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),sG={pan:{Feature:Ez},drag:{Feature:wz,ProjectionNode:nI,MeasureLayout:YP}},iG=new Set(["width","height","top","left","right","bottom","x","y"]),sI=t=>iG.has(t),oG=t=>Object.keys(t).some(sI),ZA=t=>t===Tl||t===Ie,eS=(t,e)=>parseFloat(t.split(", ")[e]),tS=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const s=n.match(/^matrix3d\((.+)\)$/);if(s)return eS(s[1],e);{const i=n.match(/^matrix\((.+)\)$/);return i?eS(i[1],t):0}},aG=new Set(["x","y","z"]),cG=ig.filter(t=>!aG.has(t));function lG(t){const e=[];return cG.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const rS={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tS(4,13),y:tS(5,14)},uG=(t,e,r)=>{const n=e.measureViewportBox(),s=e.current,i=getComputedStyle(s),{display:o}=i,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(l=>{a[l]=rS[l](n,i)}),e.render();const c=e.measureViewportBox();return r.forEach(l=>{const u=e.getValue(l);u&&u.jump(a[l]),t[l]=rS[l](c,i)}),t},fG=(t,e,r={},n={})=>{e={...e},n={...n};const s=Object.keys(e).filter(sI);let i=[],o=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let u=r[c],f=Bd(u);const d=e[c];let h;if(Wy(d)){const y=d.length,p=d[0]===null?1:0;u=d[p],f=Bd(u);for(let b=p;b=0?window.pageYOffset:null,l=uG(e,t,a);return i.length&&i.forEach(([u,f])=>{t.getValue(u).set(f)}),t.render(),rg&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:e,transitionEnd:n}};function dG(t,e,r,n){return oG(e)?fG(t,e,r,n):{target:e,transitionEnd:n}}const hG=(t,e,r,n)=>{const s=Az(t,e,n);return e=s.target,n=s.transitionEnd,dG(t,e,r,n)},ow={current:null},iI={current:!1};function pG(){if(iI.current=!0,!!rg)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ow.current=t.matches;t.addListener(e),e()}else ow.current=!1}function yG(t,e,r){const{willChange:n}=e;for(const s in e){const i=e[s],o=r[s];if(hn(i))t.addValue(s,i),Hy(n)&&n.add(s);else if(hn(o))t.addValue(s,Uf(i,{owner:t})),Hy(n)&&n.remove(s);else if(o!==i)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(i)}else{const a=t.getStaticValue(s);t.addValue(s,Uf(a!==void 0?a:i,{owner:t}))}}for(const s in r)e[s]===void 0&&t.removeValue(s);return e}const oI=Object.keys(i0),vG=oI.length,nS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gG=HE.length;class mG{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Or.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=sg(r),this.isVariantNode=XT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(r,{});for(const f in u){const d=u[f];a[f]!==void 0&&hn(d)&&(d.set(a[f],!1),Hy(l)&&l.add(f))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),iI.current||pG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ow.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ta.update(this.notifyUpdate),Ta.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=Sl.has(e),s=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Or.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,s,i,o){let a,c;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:y})}return c}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update(this.props,this.prevProps):(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Uf(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,s=typeof n=="string"||typeof n=="object"?(r=eC(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!hn(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new nC),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class aI extends mG{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:s},i){let o=WV(n,e||{},this);if(s&&(r&&(r=s(r)),n&&(n=s(n)),o&&(o=s(o))),i){UV(this,n,o);const a=hG(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function xG(t){return window.getComputedStyle(t)}class bG extends aI{readValueFromInstance(e,r){if(Sl.has(r)){const n=oC(r);return n&&n.default||0}else{const n=xG(e),s=(rP(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:r}){return QP(e,r)}build(e,r,n,s){KE(e,r,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,r){return ZE(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;hn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,s){aP(e,r,n,s)}}class wG extends aI{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Sl.has(r)){const n=oC(r);return n&&n.default||0}return r=cP.has(r)?r:XE(r),e.getAttribute(r)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(e,r){return uP(e,r)}build(e,r,n,s){JE(e,r,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,r,n,s){lP(e,r,n,s)}mount(e){this.isSVGTag=YE(e.tagName),super.mount(e)}}const EG=(t,e)=>qE(t)?new wG(e,{enableHardwareAcceleration:!1}):new bG(e,{enableHardwareAcceleration:!0}),CG={layout:{ProjectionNode:nI,MeasureLayout:YP}},kG={...tz,...pV,...sG,...CG},Su=TW((t,e)=>tV(t,e,kG,EG));function cI(){const t=m.useRef(!1);return Fy(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function AG(){const t=cI(),[e,r]=m.useState(0),n=m.useCallback(()=>{t.current&&r(e+1)},[e]);return[m.useCallback(()=>Or.postRender(n),[n]),e]}class SG extends m.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function TG({children:t,isPresent:e}){const r=m.useId(),n=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:i,height:o,top:a,left:c}=s.current;if(e||!n.current||!i||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${i}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${c}px !important; - } - `),()=>{document.head.removeChild(l)}},[e]),m.createElement(SG,{isPresent:e,childRef:n,sizeRef:s},m.cloneElement(t,{ref:n}))}const nx=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:i,mode:o})=>{const a=zE(PG),c=m.useId(),l=m.useMemo(()=>({id:c,initial:e,isPresent:r,custom:s,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;n&&n()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?void 0:[r]);return m.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[r]),m.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=m.createElement(TG,{isPresent:r},t)),m.createElement(tg.Provider,{value:l},t)};function PG(){return new Map}function IG(t){return m.useEffect(()=>()=>t(),[])}const Gl=t=>t.key||"";function OG(t,e){t.forEach(r=>{const n=Gl(r);e.set(n,r)})}function RG(t){const e=[];return m.Children.forEach(t,r=>{m.isValidElement(r)&&e.push(r)}),e}const lI=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{s&&(o="wait");let[a]=AG();const c=m.useContext(GE).forceRender;c&&(a=c);const l=cI(),u=RG(t);let f=u;const d=new Set,h=m.useRef(f),y=m.useRef(new Map).current,p=m.useRef(!0);if(Fy(()=>{p.current=!1,OG(u,y),h.current=f}),IG(()=>{p.current=!0,y.clear(),d.clear()}),p.current)return m.createElement(m.Fragment,null,f.map(x=>m.createElement(nx,{key:Gl(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:o},x)));f=[...f];const b=h.current.map(Gl),v=u.map(Gl),g=b.length;for(let x=0;x{if(v.indexOf(x)!==-1)return;const k=y.get(x);if(!k)return;const S=b.indexOf(x),I=()=>{y.delete(x),d.delete(x);const R=h.current.findIndex(_=>_.key===x);if(h.current.splice(R,1),!d.size){if(h.current=u,l.current===!1)return;a(),n&&n()}};f.splice(S,0,m.createElement(nx,{key:Gl(k),isPresent:!1,onExitComplete:I,custom:e,presenceAffectsLayout:i,mode:o},k))}),f=f.map(x=>{const k=x.key;return d.has(k)?x:m.createElement(nx,{key:Gl(x),isPresent:!0,presenceAffectsLayout:i,mode:o},x)}),m.createElement(m.Fragment,null,d.size?f:f.map(x=>m.cloneElement(x)))},uI={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( - 243.18deg, - rgba(86, 52, 189, 0.85) 0%, - rgba(49, 41, 223, 0.85) 63.54%, - rgba(7, 98, 149, 0.85) 100% - )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},NG={...uI,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},_G={...uI,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},MG={dark:NG,light:_G},DG={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var sS={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function BG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function LG(t){var e=BG(t,"string");return typeof e=="symbol"?e:String(e)}function jG(t,e,r){return e=LG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function sx(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nc.styles)),i=Object.keys(s),o=i.filter(c=>"mappings"in s[c]),a=c=>{var l=[],u={},f=sx({},c),d=!1;for(var h of o){var y=c[h];if(y!=null){var p=s[h];d=!0;for(var b of p.mappings)u[b]=y,f[b]==null&&delete f[b]}}var v=d?sx(sx({},u),f):c,g=function(){var S=v[x],I=s[x];try{if(I.mappings)return 1;if(typeof S=="string"||typeof S=="number")l.push(I.values[S].defaultClass);else if(Array.isArray(S))for(var R=0;Rt,$G=function(){return FG(UG)(...arguments)},fI=$G({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const WG=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],aw=t=>(t.display||(t.display=Object.keys(t).some(e=>WG.includes(e))?"flex":void 0),fI(t));aw.properties=fI.properties;const VG="https://assets.sequence.info/",HG=5,zG={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},dI=t=>t?zG[t]||t:"medium",GG=(t,e)=>t.replace(/\/(small|medium|large)\//,`/${dI(e)}/`),qG=(t,e)=>VG+`images/networks/${dI(e)}/${t}.webp?v${HG}`;function hI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e{const{as:r="div",sx:n={},className:s,...i}=t,o={},a={};for(const l in i)aw.properties.has(l)?o[l]=i[l]:a[l]=i[l];const c=aw({...o,...n});return m.createElement(r,{className:Mr(c,s),...a,ref:e})});var pI={exports:{}},jd={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var oS;function KG(){if(oS)return jd;oS=1;var t=Wr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,f={},d=null,h=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(f[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:e,type:a,key:d,ref:h,props:f,_owner:s.current}}return jd.Fragment=r,jd.jsx=o,jd.jsxs=o,jd}pI.exports=KG();var C=pI.exports;function QG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JG(t){var e=QG(t,"string");return typeof e=="symbol"?e:String(e)}function YG(t,e,r){return e=JG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function cS(t){for(var e=1;e{for(var n of Object.keys(t)){var s;if(t[n]!==((s=e[n])!==null&&s!==void 0?s:r[n]))return!1}return!0},At=t=>{var e=r=>{var n=t.defaultClassName,s=cS(cS({},t.defaultVariants),r);for(var i in s){var o,a=(o=s[i])!==null&&o!==void 0?o:t.defaultVariants[i];if(a!=null){var c=a;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[i][c];l&&(n+=" "+l)}}for(var[u,f]of t.compoundVariants)XG(u,s,t.defaultVariants)&&(n+=" "+f);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return lS(t.variantClassNames,r=>lS(r,n=>n.split(" ")[0]))}},e};At({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const uS=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return C.jsx(me,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var ZG=At({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Tt=m.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:s,hidden:i,italic:o,underline:a,children:c,ellipsis:l,uppercase:u,capitalize:f,...d}=t,h=DG[n];return C.jsx(me,{as:r,className:Mr(s,ZG({hidden:i,ellipsis:l,italic:o,underline:a,uppercase:u,capitalize:f})),ref:e,...h,...d,children:c})});var eq=At({defaultClassName:"_140wn8ni _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11od fyvr12s1",ghost:"_140wn8nk _140wn8n2 fyvr11od fyvr12s1",feature:"_140wn8nl _140wn8n3 fyvr11pj fyvr12od",primary:"_140wn8nm _140wn8n4 fyvr11pd fyvr12od",glass:"_140wn8nn _140wn8n5 fyvr11tv fyvr12s1",emphasis:"_140wn8no _140wn8n6 fyvr11u1 fyvr12s1",raised:"_140wn8np _140wn8n7 fyvr11tp fyvr12s1",danger:"_140wn8nq _140wn8n8 fyvr11op fyvr12od",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n9 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8ns _140wn8na fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nt _140wn8nb fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nu _140wn8nc fyvr12v1 fyvr12vp",false:"_140wn8nv _140wn8nd fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8ne fyvr1ws fyvr1yo",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1ww fyvr1ys",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ng fyvr1x0 fyvr1yw",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nh fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const Ve=m.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:s,disabled:i=!1,display:o="inline-flex",fontWeight:a="bold",pending:c=!1,label:l,leftIcon:u,rightIcon:f,size:d="md",variant:h="glass",width:y="fit",shape:p="circle",type:b="button",...v}=t,g=u!==void 0&&l!==void 0,x=f!==void 0&&l!==void 0,k=u!==void 0&&l===void 0,S=d==="xs"?"xs":"sm";return C.jsx(me,{as:r,className:Mr(s,eq({activeOutline:n,disabled:i||c,hasLeftIcon:g,hasRightIcon:x,iconOnly:k,size:h==="text"?void 0:d,shape:h==="text"?void 0:p,variant:h})),disabled:i||c,display:o,fontWeight:a,ref:e,type:b,width:y,...v,children:k?C.jsx(u,{size:S}):C.jsxs(me,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[C.jsxs(me,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[u&&C.jsx(u,{size:S}),C.jsx(Tt,{children:l})]}),f&&C.jsx(f,{size:S})]})})});var tq=At({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11a4 fyvr11ag fyvr11as fyvr11b4 fyvr12vz fyvr12v7 _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const rq=m.forwardRef((t,e)=>{const{className:r,children:n,clickable:s,outlined:i,disabled:o,blur:a,width:c="full",...l}=t;return C.jsx(me,{className:Mr(r,tq({clickable:s,outlined:i,disabled:o,blur:a})),background:i?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:c,ref:e,...l,children:n})});function nq(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function lg(...t){return e=>t.forEach(r=>nq(r,e))}function $e(...t){return m.useCallback(lg(...t),t)}function sq(t,e){const r=m.createContext(e);function n(i){const{children:o,...a}=i,c=m.useMemo(()=>a,Object.values(a));return C.jsx(r.Provider,{value:c,children:o})}function s(i){const o=m.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return n.displayName=t+"Provider",[n,s]}function Dr(t,e=[]){let r=[];function n(i,o){const a=m.createContext(o),c=r.length;r=[...r,o];function l(f){const{scope:d,children:h,...y}=f,p=(d==null?void 0:d[t][c])||a,b=m.useMemo(()=>y,Object.values(y));return C.jsx(p.Provider,{value:b,children:h})}function u(f,d){const h=(d==null?void 0:d[t][c])||a,y=m.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=r.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[t])||i;return m.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[n,iq(s,...e)]}function iq(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function _r(t){const e=m.useRef(t);return m.useEffect(()=>{e.current=t}),m.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function is({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,s]=oq({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,a=_r(r),c=m.useCallback(l=>{if(i){const f=typeof l=="function"?l(t):l;f!==t&&a(f)}else s(l)},[i,t,s,a]);return[o,c]}function oq({defaultProp:t,onChange:e}){const r=m.useState(t),[n]=r,s=m.useRef(n),i=_r(e);return m.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}function ug(t){const e=m.useRef({value:t,previous:t});return m.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var xr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function fg(t){const[e,r]=m.useState(void 0);return xr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function aq(t,e){return m.useReducer((r,n)=>e[r][n]??r,t)}var Xr=t=>{const{present:e,children:r}=t,n=cq(e),s=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=$e(n.ref,lq(s));return typeof r=="function"||n.isPresent?m.cloneElement(s,{ref:i}):null};Xr.displayName="Presence";function cq(t){const[e,r]=m.useState(),n=m.useRef({}),s=m.useRef(t),i=m.useRef("none"),o=t?"mounted":"unmounted",[a,c]=aq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Z1(n.current);i.current=a==="mounted"?l:"none"},[a]),xr(()=>{const l=n.current,u=s.current;if(u!==t){const d=i.current,h=Z1(l);t?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),xr(()=>{if(e){const l=f=>{const h=Z1(n.current).includes(f.animationName);f.target===e&&h&&Fa.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===e&&(i.current=Z1(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function Z1(t){return(t==null?void 0:t.animationName)||"none"}function lq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var ul=m.forwardRef((t,e)=>{const{children:r,...n}=t,s=m.Children.toArray(r),i=s.find(uq);if(i){const o=i.props.children,a=s.map(c=>c===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:c);return C.jsx(cw,{...n,ref:e,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return C.jsx(cw,{...n,ref:e,children:r})});ul.displayName="Slot";var cw=m.forwardRef((t,e)=>{const{children:r,...n}=t;if(m.isValidElement(r)){const s=dq(r);return m.cloneElement(r,{...fq(n,r.props),ref:e?lg(e,s):s})}return m.Children.count(r)>1?m.Children.only(null):null});cw.displayName="SlotClone";var yI=({children:t})=>C.jsx(C.Fragment,{children:t});function uq(t){return m.isValidElement(t)&&t.type===yI}function fq(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{i(...a),s(...a)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function dq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var hq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=hq.reduce((t,e)=>{const r=m.forwardRef((n,s)=>{const{asChild:i,...o}=n,a=i?ul:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(a,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function yC(t,e){t&&Fa.flushSync(()=>t.dispatchEvent(e))}var vC="Checkbox",[pq,Mde]=Dr(vC),[yq,vq]=pq(vC),vI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,x=>d(x)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l}),g=m.useRef(b);return m.useEffect(()=>{const x=f==null?void 0:f.form;if(x){const k=()=>v(g.current);return x.addEventListener("reset",k),()=>x.removeEventListener("reset",k)}},[f,v]),C.jsxs(yq,{scope:r,state:b,disabled:a,children:[C.jsx(Ae.button,{type:"button",role:"checkbox","aria-checked":Xc(b)?"mixed":b,"aria-required":o,"data-state":xI(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onKeyDown:ce(t.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:ce(t.onClick,x=>{v(k=>Xc(k)?!0:!k),p&&(y.current=x.isPropagationStopped(),y.current||x.stopPropagation())})}),p&&C.jsx(gq,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});vI.displayName=vC;var gI="CheckboxIndicator",mI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=vq(gI,r);return C.jsx(Xr,{present:n||Xc(i.state)||i.state===!0,children:C.jsx(Ae.span,{"data-state":xI(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});mI.displayName=gI;var gq=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=ug(r),a=fg(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});c.indeterminate=Xc(r),f.call(c,Xc(r)?!1:r),c.dispatchEvent(d)}},[o,r,n]),C.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Xc(r)?!1:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Xc(t){return t==="indeterminate"}function xI(t){return Xc(t)?"indeterminate":t?"checked":"unchecked"}var mq=vI,xq=mI,bq=At({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const fd=t=>{const{id:e,label:r,description:n,labelLocation:s="top",children:i,...o}=t,a=()=>r||n?C.jsxs(me,{flexDirection:"column",gap:"0.5",children:[r&&C.jsx(Tt,{variant:"small",color:"text100",hidden:s==="hidden",children:r}),n&&C.jsx(Tt,{variant:"small",color:"text50",hidden:s==="hidden",children:n})]}):null;return C.jsxs(me,{as:"label",className:bq({labelLocation:s}),htmlFor:e,...o,children:[["left","top","hidden"].includes(s)&&a(),i,s==="right"&&a()]})};var dd=At({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const wq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),bI=({size:t="sm",...e})=>C.jsx(me,{as:wq,className:dd({size:t}),...e}),Eq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),wI=({size:t="sm",...e})=>C.jsx(me,{as:Eq,className:dd({size:t}),...e}),Cq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),gC=({size:t="sm",...e})=>C.jsx(me,{as:Cq,className:dd({size:t}),...e}),kq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.608 6.75h-5.19v-1.5h7.75V13h-1.5V7.81l-7.72 7.72-1.06-1.06 7.72-7.72Z",clipRule:"evenodd"})}),Aq=({size:t="sm",...e})=>C.jsx(me,{as:kq,className:dd({size:t}),...e}),Sq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),Tq=({size:t="sm",...e})=>C.jsx(me,{as:Sq,className:dd({size:t}),...e}),Pq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.28 2.856-6.71 8.887h4.134l-1.424 6.2 6.887-8.71h-4.322l1.435-6.377Z",clipRule:"evenodd"})}),Iq=({size:t="sm",...e})=>C.jsx(me,{as:Pq,className:dd({size:t}),...e});var Oq=At({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3 _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Rq="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const Nq=({size:t="sm"})=>C.jsx(xq,{className:Rq,children:C.jsx(bI,{size:t==="lg"?"sm":"xs"})});m.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:s,label:i="",labelLocation:o="left",size:a="sm",...c}=t;return C.jsx(fd,{disabled:r,display:"flex",id:n??s,label:i,labelLocation:o,whiteSpace:"nowrap",children:C.jsx(mq,{className:Oq({size:a}),disabled:r,id:n??s,name:s,ref:e,...c,children:C.jsx(Nq,{size:a})})})});Wr.createContext(null);var _q=sU.useId||(()=>{}),Mq=0;function es(t){const[e,r]=m.useState(_q());return xr(()=>{t||r(n=>n??String(Mq++))},[t]),t||(e?`radix-${e}`:"")}var mC="Collapsible",[Dq,Dde]=Dr(mC),[Bq,xC]=Dq(mC),EI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[c=!1,l]=is({prop:n,defaultProp:s,onChange:o});return C.jsx(Bq,{scope:r,disabled:i,contentId:es(),open:c,onOpenToggle:m.useCallback(()=>l(u=>!u),[l]),children:C.jsx(Ae.div,{"data-state":wC(c),"data-disabled":i?"":void 0,...a,ref:e})})});EI.displayName=mC;var CI="CollapsibleTrigger",kI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=xC(CI,r);return C.jsx(Ae.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":wC(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:ce(t.onClick,s.onOpenToggle)})});kI.displayName=CI;var bC="CollapsibleContent",AI=m.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=xC(bC,t.__scopeCollapsible);return C.jsx(Xr,{present:r||s.open,children:({present:i})=>C.jsx(Lq,{...n,ref:e,present:i})})});AI.displayName=bC;var Lq=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,o=xC(bC,r),[a,c]=m.useState(n),l=m.useRef(null),u=$e(e,l),f=m.useRef(0),d=f.current,h=m.useRef(0),y=h.current,p=o.open||a,b=m.useRef(p),v=m.useRef();return m.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),xr(()=>{const g=l.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,b.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),c(n)}},[o.open,n]),C.jsx(Ae.div,{"data-state":wC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...t.style},children:p&&s})});function wC(t){return t?"open":"closed"}var jq=EI,Fq=kI,Uq=AI,fS="64px",$q="_4j62fl0",Wq="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",Vq="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",Hq="_4j62fl5";const zq=t=>{const{className:e,children:r,defaultOpen:n,open:s,onOpenChange:i,label:o,...a}=t,[c,l]=m.useState(n),u=s??c,f=h=>{s===void 0&&l(h)},d=h=>{f(h),i==null||i(h)};return C.jsx(jq,{open:u,defaultOpen:n,onOpenChange:d,asChild:!0,children:C.jsxs(me,{as:Su.div,className:Mr(e,$q),initial:{height:u?"auto":fS},animate:{height:u?"auto":fS},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[C.jsxs(Fq,{className:Wq,children:[C.jsx(Tt,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),C.jsx(me,{as:Su.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:u?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:C.jsx(wI,{className:Hq,color:"text50"})})]}),C.jsx(lI,{children:u&&C.jsx(Uq,{className:Vq,asChild:!0,forceMount:!0,children:C.jsx(Su.div,{initial:{opacity:u?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function dg(t){const e=t+"CollectionProvider",[r,n]=Dr(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:y,children:p}=h,b=Wr.useRef(null),v=Wr.useRef(new Map).current;return C.jsx(s,{scope:y,itemMap:v,collectionRef:b,children:p})};o.displayName=e;const a=t+"CollectionSlot",c=Wr.forwardRef((h,y)=>{const{scope:p,children:b}=h,v=i(a,p),g=$e(y,v.collectionRef);return C.jsx(ul,{ref:g,children:b})});c.displayName=a;const l=t+"CollectionItemSlot",u="data-radix-collection-item",f=Wr.forwardRef((h,y)=>{const{scope:p,children:b,...v}=h,g=Wr.useRef(null),x=$e(y,g),k=i(l,p);return Wr.useEffect(()=>(k.itemMap.set(g,{ref:g,...v}),()=>void k.itemMap.delete(g))),C.jsx(ul,{[u]:"",ref:x,children:b})});f.displayName=l;function d(h){const y=i(t+"CollectionConsumer",h);return Wr.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((k,S)=>v.indexOf(k.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,n]}var Gq=m.createContext(void 0);function c1(t){const e=m.useContext(Gq);return t||e||"ltr"}function qq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t);m.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var Kq="DismissableLayer",lw="dismissableLayer.update",Qq="dismissableLayer.pointerDownOutside",Jq="dismissableLayer.focusOutside",dS,SI=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hd=m.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,l=m.useContext(SI),[u,f]=m.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),y=$e(e,R=>f(R)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(b),g=u?p.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,k=g>=v,S=Xq(R=>{const _=R.target,V=[...l.branches].some(F=>F.contains(_));!k||V||(s==null||s(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),I=Zq(R=>{const _=R.target;[...l.branches].some(F=>F.contains(_))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return qq(R=>{g===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),m.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(dS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),hS(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=dS)}},[u,d,r,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),hS())},[u,l]),m.useEffect(()=>{const R=()=>h({});return document.addEventListener(lw,R),()=>document.removeEventListener(lw,R)},[]),C.jsx(Ae.div,{...c,ref:y,style:{pointerEvents:x?k?"auto":"none":void 0,...t.style},onFocusCapture:ce(t.onFocusCapture,I.onFocusCapture),onBlurCapture:ce(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ce(t.onPointerDownCapture,S.onPointerDownCapture)})});hd.displayName=Kq;var Yq="DismissableLayerBranch",TI=m.forwardRef((t,e)=>{const r=m.useContext(SI),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),C.jsx(Ae.div,{...t,ref:s})});TI.displayName=Yq;function Xq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){PI(Qq,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Zq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!n.current&&PI(Jq,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hS(){const t=new CustomEvent(lw);document.dispatchEvent(t)}function PI(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?yC(s,i):s.dispatchEvent(i)}var eK=hd,tK=TI,ix=0;function EC(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??pS()),document.body.insertAdjacentElement("beforeend",t[1]??pS()),ix++,()=>{ix===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ix--}},[])}function pS(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var ox="focusScope.autoFocusOnMount",ax="focusScope.autoFocusOnUnmount",yS={bubbles:!1,cancelable:!0},rK="FocusScope",hg=m.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,c]=m.useState(null),l=_r(s),u=_r(i),f=m.useRef(null),d=$e(e,p=>c(p)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let p=function(x){if(h.paused||!a)return;const k=x.target;a.contains(k)?f.current=k:Oo(f.current,{select:!0})},b=function(x){if(h.paused||!a)return;const k=x.relatedTarget;k!==null&&(a.contains(k)||Oo(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Oo(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),g.disconnect()}}},[n,a,h.paused]),m.useEffect(()=>{if(a){gS.add(h);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(ox,yS);a.addEventListener(ox,l),a.dispatchEvent(v),v.defaultPrevented||(nK(cK(II(a)),{select:!0}),document.activeElement===p&&Oo(a))}return()=>{a.removeEventListener(ox,l),setTimeout(()=>{const v=new CustomEvent(ax,yS);a.addEventListener(ax,u),a.dispatchEvent(v),v.defaultPrevented||Oo(p??document.body,{select:!0}),a.removeEventListener(ax,u),gS.remove(h)},0)}}},[a,l,u,h]);const y=m.useCallback(p=>{if(!r&&!n||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const g=p.currentTarget,[x,k]=sK(g);x&&k?!p.shiftKey&&v===k?(p.preventDefault(),r&&Oo(x,{select:!0})):p.shiftKey&&v===x&&(p.preventDefault(),r&&Oo(k,{select:!0})):v===g&&p.preventDefault()}},[r,n,h.paused]);return C.jsx(Ae.div,{tabIndex:-1,...o,ref:d,onKeyDown:y})});hg.displayName=rK;function nK(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Oo(n,{select:e}),document.activeElement!==r)return}function sK(t){const e=II(t),r=vS(e,t),n=vS(e.reverse(),t);return[r,n]}function II(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function vS(t,e){for(const r of t)if(!iK(r,{upTo:e}))return r}function iK(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function oK(t){return t instanceof HTMLInputElement&&"select"in t}function Oo(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&oK(t)&&e&&t.select()}}var gS=aK();function aK(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=mS(t,e),t.unshift(e)},remove(e){var r;t=mS(t,e),(r=t[0])==null||r.resume()}}}function mS(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function cK(t){return t.filter(e=>e.tagName!=="A")}const lK=["top","right","bottom","left"],ai=Math.min,kn=Math.max,qy=Math.round,ep=Math.floor,Ia=t=>({x:t,y:t}),uK={left:"right",right:"left",bottom:"top",top:"bottom"},fK={start:"end",end:"start"};function uw(t,e,r){return kn(t,ai(e,r))}function oo(t,e){return typeof t=="function"?t(e):t}function ao(t){return t.split("-")[0]}function pd(t){return t.split("-")[1]}function CC(t){return t==="x"?"y":"x"}function kC(t){return t==="y"?"height":"width"}function Oa(t){return["top","bottom"].includes(ao(t))?"y":"x"}function AC(t){return CC(Oa(t))}function dK(t,e,r){r===void 0&&(r=!1);const n=pd(t),s=AC(t),i=kC(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ky(o)),[o,Ky(o)]}function hK(t){const e=Ky(t);return[fw(t),e,fw(e)]}function fw(t){return t.replace(/start|end/g,e=>fK[e])}function pK(t,e,r){const n=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:n:e?n:s;case"left":case"right":return e?i:o;default:return[]}}function yK(t,e,r,n){const s=pd(t);let i=pK(ao(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(fw)))),i}function Ky(t){return t.replace(/left|right|bottom|top/g,e=>uK[e])}function vK(t){return{top:0,right:0,bottom:0,left:0,...t}}function OI(t){return typeof t!="number"?vK(t):{top:t,right:t,bottom:t,left:t}}function Qy(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function xS(t,e,r){let{reference:n,floating:s}=t;const i=Oa(e),o=AC(e),a=kC(o),c=ao(e),l=i==="y",u=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,d=n[a]/2-s[a]/2;let h;switch(c){case"top":h={x:u,y:n.y-s.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-s.width,y:f};break;default:h={x:n.x,y:n.y}}switch(pd(e)){case"start":h[o]-=d*(r&&l?-1:1);break;case"end":h[o]+=d*(r&&l?-1:1);break}return h}const gK=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:f}=xS(l,n,c),d=n,h={},y=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=oo(t,e)||{};if(l==null)return{};const f=OI(u),d={x:r,y:n},h=AC(s),y=kC(h),p=await o.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",k=i.reference[y]+i.reference[h]-d[h]-i.floating[y],S=d[h]-i.reference[h],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=I?I[x]:0;(!R||!await(o.isElement==null?void 0:o.isElement(I)))&&(R=a.floating[x]||i.floating[y]);const _=k/2-S/2,V=R/2-p[y]/2-1,F=ai(f[v],V),X=ai(f[g],V),re=F,le=R-p[y]-X,ee=R/2-p[y]/2+_,D=uw(re,ee,le),G=!c.arrow&&pd(s)!=null&&ee!==D&&i.reference[y]/2-(eeee<=0)){var X,re;const ee=(((X=i.flip)==null?void 0:X.index)||0)+1,D=R[ee];if(D)return{data:{index:ee,overflows:F},reset:{placement:D}};let G=(re=F.filter(Z=>Z.overflows[0]<=0).sort((Z,E)=>Z.overflows[1]-E.overflows[1])[0])==null?void 0:re.placement;if(!G)switch(h){case"bestFit":{var le;const Z=(le=F.filter(E=>{if(I){const A=Oa(E.placement);return A===g||A==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(A=>A>0).reduce((A,O)=>A+O,0)]).sort((E,A)=>E[1]-A[1])[0])==null?void 0:le[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function bS(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function wS(t){return lK.some(e=>t[e]>=0)}const bK=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=oo(t,e);switch(n){case"referenceHidden":{const i=await u0(e,{...s,elementContext:"reference"}),o=bS(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:wS(o)}}}case"escaped":{const i=await u0(e,{...s,altBoundary:!0}),o=bS(i,r.floating);return{data:{escapedOffsets:o,escaped:wS(o)}}}default:return{}}}}};async function wK(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=ao(r),a=pd(r),c=Oa(r)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,f=oo(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}const EK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await wK(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},CK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=oo(t,e),l={x:r,y:n},u=await u0(e,c),f=Oa(ao(s)),d=CC(f);let h=l[d],y=l[f];if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=h+u[b],x=h-u[v];h=uw(g,h,x)}if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=y+u[b],x=y-u[v];y=uw(g,y,x)}const p=a.fn({...e,[d]:h,[f]:y});return{...p,data:{x:p.x-r,y:p.y-n}}}}},kK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=oo(t,e),u={x:r,y:n},f=Oa(s),d=CC(f);let h=u[d],y=u[f];const p=oo(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",k=i.reference[d]-i.floating[x]+b.mainAxis,S=i.reference[d]+i.reference[x]-b.mainAxis;hS&&(h=S)}if(l){var v,g;const x=d==="y"?"width":"height",k=["top","left"].includes(ao(s)),S=i.reference[f]-i.floating[x]+(k&&((v=o.offset)==null?void 0:v[f])||0)+(k?0:b.crossAxis),I=i.reference[f]+i.reference[x]+(k?0:((g=o.offset)==null?void 0:g[f])||0)-(k?b.crossAxis:0);yI&&(y=I)}return{[d]:h,[f]:y}}}},AK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:s,elements:i}=e,{apply:o=()=>{},...a}=oo(t,e),c=await u0(e,a),l=ao(r),u=pd(r),f=Oa(r)==="y",{width:d,height:h}=n.floating;let y,p;l==="top"||l==="bottom"?(y=l,p=u===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,y=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=d-c.left-c.right,g=ai(h-c[y],b),x=ai(d-c[p],v),k=!e.middlewareData.shift;let S=g,I=x;if(f?I=u||k?ai(x,v):v:S=u||k?ai(g,b):b,k&&!u){const _=kn(c.left,0),V=kn(c.right,0),F=kn(c.top,0),X=kn(c.bottom,0);f?I=d-2*(_!==0||V!==0?_+V:kn(c.left,c.right)):S=h-2*(F!==0||X!==0?F+X:kn(c.top,c.bottom))}await o({...e,availableWidth:I,availableHeight:S});const R=await s.getDimensions(i.floating);return d!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function yd(t){return RI(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function po(t){var e;return(e=(RI(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function RI(t){return t instanceof Node||t instanceof Pn(t).Node}function vi(t){return t instanceof Element||t instanceof Pn(t).Element}function gi(t){return t instanceof HTMLElement||t instanceof Pn(t).HTMLElement}function ES(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}function l1(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=Ms(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function SK(t){return["table","td","th"].includes(yd(t))}function pg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function SC(t){const e=TC(),r=Ms(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function TK(t){let e=Ra(t);for(;gi(e)&&!$f(e);){if(pg(e))return null;if(SC(e))return e;e=Ra(e)}return null}function TC(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $f(t){return["html","body","#document"].includes(yd(t))}function Ms(t){return Pn(t).getComputedStyle(t)}function yg(t){return vi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ra(t){if(yd(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ES(t)&&t.host||po(t);return ES(e)?e.host:e}function NI(t){const e=Ra(t);return $f(e)?t.ownerDocument?t.ownerDocument.body:t.body:gi(e)&&l1(e)?e:NI(e)}function f0(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=NI(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Pn(s);return i?e.concat(o,o.visualViewport||[],l1(s)?s:[],o.frameElement&&r?f0(o.frameElement):[]):e.concat(s,f0(s,[],r))}function _I(t){const e=Ms(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=gi(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=qy(r)!==i||qy(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function PC(t){return vi(t)?t:t.contextElement}function Tu(t){const e=PC(t);if(!gi(e))return Ia(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=_I(e);let o=(i?qy(r.width):r.width)/n,a=(i?qy(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const PK=Ia(0);function MI(t){const e=Pn(t);return!TC()||!e.visualViewport?PK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function IK(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Pn(t)?!1:e}function fl(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=PC(t);let o=Ia(1);e&&(n?vi(n)&&(o=Tu(n)):o=Tu(t));const a=IK(i,r,n)?MI(i):Ia(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,f=s.height/o.y;if(i){const d=Pn(i),h=n&&vi(n)?Pn(n):n;let y=d,p=y.frameElement;for(;p&&n&&h!==y;){const b=Tu(p),v=p.getBoundingClientRect(),g=Ms(p),x=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,k=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=x,l+=k,y=Pn(p),p=y.frameElement}}return Qy({width:u,height:f,x:c,y:l})}function OK(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=po(n),a=e?pg(e.floating):!1;if(n===o||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Ia(1);const u=Ia(0),f=gi(n);if((f||!f&&!i)&&((yd(n)!=="body"||l1(o))&&(c=yg(n)),gi(n))){const d=fl(n);l=Tu(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function RK(t){return Array.from(t.getClientRects())}function DI(t){return fl(po(t)).left+yg(t).scrollLeft}function NK(t){const e=po(t),r=yg(t),n=t.ownerDocument.body,s=kn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+DI(t);const a=-r.scrollTop;return Ms(n).direction==="rtl"&&(o+=kn(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function _K(t,e){const r=Pn(t),n=po(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=TC();(!l||l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function MK(t,e){const r=fl(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=gi(t)?Tu(t):Ia(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function CS(t,e,r){let n;if(e==="viewport")n=_K(t,r);else if(e==="document")n=NK(po(t));else if(vi(e))n=MK(e,r);else{const s=MI(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Qy(n)}function BI(t,e){const r=Ra(t);return r===e||!vi(r)||$f(r)?!1:Ms(r).position==="fixed"||BI(r,e)}function DK(t,e){const r=e.get(t);if(r)return r;let n=f0(t,[],!1).filter(a=>vi(a)&&yd(a)!=="body"),s=null;const i=Ms(t).position==="fixed";let o=i?Ra(t):t;for(;vi(o)&&!$f(o);){const a=Ms(o),c=SC(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||l1(o)&&!c&&BI(t,o))?n=n.filter(u=>u!==o):s=a,o=Ra(o)}return e.set(t,n),n}function BK(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?pg(e)?[]:DK(e,this._c):[].concat(r),n],a=o[0],c=o.reduce((l,u)=>{const f=CS(e,u,s);return l.top=kn(f.top,l.top),l.right=ai(f.right,l.right),l.bottom=ai(f.bottom,l.bottom),l.left=kn(f.left,l.left),l},CS(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function LK(t){const{width:e,height:r}=_I(t);return{width:e,height:r}}function jK(t,e,r){const n=gi(e),s=po(e),i=r==="fixed",o=fl(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=Ia(0);if(n||!n&&!i)if((yd(e)!=="body"||l1(s))&&(a=yg(e)),n){const f=fl(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else s&&(c.x=DI(s));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function cx(t){return Ms(t).position==="static"}function kS(t,e){return!gi(t)||Ms(t).position==="fixed"?null:e?e(t):t.offsetParent}function LI(t,e){const r=Pn(t);if(pg(t))return r;if(!gi(t)){let s=Ra(t);for(;s&&!$f(s);){if(vi(s)&&!cx(s))return s;s=Ra(s)}return r}let n=kS(t,e);for(;n&&SK(n)&&cx(n);)n=kS(n,e);return n&&$f(n)&&cx(n)&&!SC(n)?r:n||TK(t)||r}const FK=async function(t){const e=this.getOffsetParent||LI,r=this.getDimensions,n=await r(t.floating);return{reference:jK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function UK(t){return Ms(t).direction==="rtl"}const $K={convertOffsetParentRelativeRectToViewportRelativeRect:OK,getDocumentElement:po,getClippingRect:BK,getOffsetParent:LI,getElementRects:FK,getClientRects:RK,getDimensions:LK,getScale:Tu,isElement:vi,isRTL:UK};function WK(t,e){let r=null,n;const s=po(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const h=ep(u),y=ep(s.clientWidth-(l+f)),p=ep(s.clientHeight-(u+d)),b=ep(l),g={rootMargin:-h+"px "+-y+"px "+-p+"px "+-b+"px",threshold:kn(0,ai(1,c))||1};let x=!0;function k(S){const I=S[0].intersectionRatio;if(I!==c){if(!x)return o();I?o(!1,I):n=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(k,{...g,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,g)}r.observe(t)}return o(!0),i}function VK(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=PC(t),u=s||i?[...l?f0(l):[],...f0(e)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const f=l&&a?WK(l,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),r()}),l&&!c&&h.observe(l),h.observe(e));let y,p=c?fl(t):null;c&&b();function b(){const v=fl(t);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&r(),p=v,y=requestAnimationFrame(b)}return r(),()=>{var v;u.forEach(g=>{s&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(y)}}const HK=EK,zK=CK,GK=xK,qK=AK,KK=bK,AS=mK,QK=kK,JK=(t,e,r)=>{const n=new Map,s={platform:$K,...r},i={...s.platform,_c:n};return gK(t,e,{...s,platform:i})};var $p=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Jy(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Jy(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!Jy(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function jI(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function SS(t,e){const r=jI(t);return Math.round(e*r)/r}function TS(t){const e=m.useRef(t);return $p(()=>{e.current=t}),e}function YK(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,f]=m.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=m.useState(n);Jy(d,n)||h(n);const[y,p]=m.useState(null),[b,v]=m.useState(null),g=m.useCallback(Z=>{Z!==I.current&&(I.current=Z,p(Z))},[]),x=m.useCallback(Z=>{Z!==R.current&&(R.current=Z,v(Z))},[]),k=i||y,S=o||b,I=m.useRef(null),R=m.useRef(null),_=m.useRef(u),V=c!=null,F=TS(c),X=TS(s),re=m.useCallback(()=>{if(!I.current||!R.current)return;const Z={placement:e,strategy:r,middleware:d};X.current&&(Z.platform=X.current),JK(I.current,R.current,Z).then(E=>{const A={...E,isPositioned:!0};le.current&&!Jy(_.current,A)&&(_.current=A,Fa.flushSync(()=>{f(A)}))})},[d,e,r,X]);$p(()=>{l===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[l]);const le=m.useRef(!1);$p(()=>(le.current=!0,()=>{le.current=!1}),[]),$p(()=>{if(k&&(I.current=k),S&&(R.current=S),k&&S){if(F.current)return F.current(k,S,re);re()}},[k,S,re,F,V]);const ee=m.useMemo(()=>({reference:I,floating:R,setReference:g,setFloating:x}),[g,x]),D=m.useMemo(()=>({reference:k,floating:S}),[k,S]),G=m.useMemo(()=>{const Z={position:r,left:0,top:0};if(!D.floating)return Z;const E=SS(D.floating,u.x),A=SS(D.floating,u.y);return a?{...Z,transform:"translate("+E+"px, "+A+"px)",...jI(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:E,top:A}},[r,a,D.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:re,refs:ee,elements:D,floatingStyles:G}),[u,re,ee,D,G])}const XK=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?AS({element:n.current,padding:s}).fn(r):{}:n?AS({element:n,padding:s}).fn(r):{}}}},ZK=(t,e)=>({...HK(t),options:[t,e]}),eQ=(t,e)=>({...zK(t),options:[t,e]}),tQ=(t,e)=>({...QK(t),options:[t,e]}),rQ=(t,e)=>({...GK(t),options:[t,e]}),nQ=(t,e)=>({...qK(t),options:[t,e]}),sQ=(t,e)=>({...KK(t),options:[t,e]}),iQ=(t,e)=>({...XK(t),options:[t,e]});var oQ="Arrow",FI=m.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return C.jsx(Ae.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});FI.displayName=oQ;var aQ=FI,IC="Popper",[UI,vd]=Dr(IC),[cQ,$I]=UI(IC),WI=t=>{const{__scopePopper:e,children:r}=t,[n,s]=m.useState(null);return C.jsx(cQ,{scope:e,anchor:n,onAnchorChange:s,children:r})};WI.displayName=IC;var VI="PopperAnchor",HI=m.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=$I(VI,r),o=m.useRef(null),a=$e(e,o);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:C.jsx(Ae.div,{...s,ref:a})});HI.displayName=VI;var OC="PopperContent",[lQ,uQ]=UI(OC),zI=m.forwardRef((t,e)=>{var r,n,s,i,o,a;const{__scopePopper:c,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:v="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:k,...S}=t,I=$I(OC,c),[R,_]=m.useState(null),V=$e(e,Re=>_(Re)),[F,X]=m.useState(null),re=fg(F),le=(re==null?void 0:re.width)??0,ee=(re==null?void 0:re.height)??0,D=l+(f!=="center"?"-"+f:""),G=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(p)?p:[p],E=Z.length>0,A={padding:G,boundary:Z.filter(dQ),altBoundary:E},{refs:O,floatingStyles:M,placement:B,isPositioned:W,middlewareData:q}=YK({strategy:"fixed",placement:D,whileElementsMounted:(...Re)=>VK(...Re,{animationFrame:x==="always"}),elements:{reference:I.anchor},middleware:[ZK({mainAxis:u+ee,alignmentAxis:d}),y&&eQ({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?tQ():void 0,...A}),y&&rQ({...A}),nQ({...A,apply:({elements:Re,rects:xt,availableWidth:tn,availableHeight:br})=>{const{width:U,height:se}=xt.reference,ae=Re.floating.style;ae.setProperty("--radix-popper-available-width",`${tn}px`),ae.setProperty("--radix-popper-available-height",`${br}px`),ae.setProperty("--radix-popper-anchor-width",`${U}px`),ae.setProperty("--radix-popper-anchor-height",`${se}px`)}}),F&&iQ({element:F,padding:h}),hQ({arrowWidth:le,arrowHeight:ee}),g&&sQ({strategy:"referenceHidden",...A})]}),[te,J]=KI(B),$=_r(k);xr(()=>{W&&($==null||$())},[W,$]);const K=(r=q.arrow)==null?void 0:r.x,ue=(n=q.arrow)==null?void 0:n.y,de=((s=q.arrow)==null?void 0:s.centerOffset)!==0,[oe,Ee]=m.useState();return xr(()=>{R&&Ee(window.getComputedStyle(R).zIndex)},[R]),C.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:W?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(o=q.transformOrigin)==null?void 0:o.y].join(" "),...((a=q.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:C.jsx(lQ,{scope:c,placedSide:te,onArrowChange:X,arrowX:K,arrowY:ue,shouldHideArrow:de,children:C.jsx(Ae.div,{"data-side":te,"data-align":J,...S,ref:V,style:{...S.style,animation:W?void 0:"none"}})})})});zI.displayName=OC;var GI="PopperArrow",fQ={top:"bottom",right:"left",bottom:"top",left:"right"},qI=m.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=uQ(GI,n),o=fQ[i.placedSide];return C.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:C.jsx(aQ,{...s,ref:r,style:{...s.style,display:"block"}})})});qI.displayName=GI;function dQ(t){return t!==null}var hQ=t=>({name:"transformOrigin",options:t,fn(e){var r,n,s;const{placement:i,rects:o,middlewareData:a}=e,l=((r=a.arrow)==null?void 0:r.centerOffset)!==0,u=l?0:t.arrowWidth,f=l?0:t.arrowHeight,[d,h]=KI(i),y={start:"0%",center:"50%",end:"100%"}[h],p=(((n=a.arrow)==null?void 0:n.x)??0)+u/2,b=(((s=a.arrow)==null?void 0:s.y)??0)+f/2;let v="",g="";return d==="bottom"?(v=l?y:`${p}px`,g=`${-f}px`):d==="top"?(v=l?y:`${p}px`,g=`${o.floating.height+f}px`):d==="right"?(v=`${-f}px`,g=l?y:`${b}px`):d==="left"&&(v=`${o.floating.width+f}px`,g=l?y:`${b}px`),{data:{x:v,y:g}}}});function KI(t){const[e,r="center"]=t.split("-");return[e,r]}var RC=WI,NC=HI,_C=zI,MC=qI,pQ="Portal",u1=m.forwardRef((t,e)=>{var r;const{container:n,...s}=t,[i,o]=m.useState(!1);xr(()=>o(!0),[]);const a=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return a?yW.createPortal(C.jsx(Ae.div,{...s,ref:e}),a):null});u1.displayName=pQ;var lx="rovingFocusGroup.onEntryFocus",yQ={bubbles:!1,cancelable:!0},vg="RovingFocusGroup",[dw,QI,vQ]=dg(vg),[gQ,gd]=Dr(vg,[vQ]),[mQ,xQ]=gQ(vg),JI=m.forwardRef((t,e)=>C.jsx(dw.Provider,{scope:t.__scopeRovingFocusGroup,children:C.jsx(dw.Slot,{scope:t.__scopeRovingFocusGroup,children:C.jsx(bQ,{...t,ref:e})})}));JI.displayName=vg;var bQ=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...f}=t,d=m.useRef(null),h=$e(e,d),y=c1(i),[p=null,b]=is({prop:o,defaultProp:a,onChange:c}),[v,g]=m.useState(!1),x=_r(l),k=QI(r),S=m.useRef(!1),[I,R]=m.useState(0);return m.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(lx,x),()=>_.removeEventListener(lx,x)},[x]),C.jsx(mQ,{scope:r,orientation:n,dir:y,loop:s,currentTabStopId:p,onItemFocus:m.useCallback(_=>b(_),[b]),onItemShiftTab:m.useCallback(()=>g(!0),[]),onFocusableItemAdd:m.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:m.useCallback(()=>R(_=>_-1),[]),children:C.jsx(Ae.div,{tabIndex:v||I===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:ce(t.onMouseDown,()=>{S.current=!0}),onFocus:ce(t.onFocus,_=>{const V=!S.current;if(_.target===_.currentTarget&&V&&!v){const F=new CustomEvent(lx,yQ);if(_.currentTarget.dispatchEvent(F),!F.defaultPrevented){const X=k().filter(G=>G.focusable),re=X.find(G=>G.active),le=X.find(G=>G.id===p),D=[re,le,...X].filter(Boolean).map(G=>G.ref.current);ZI(D,u)}}S.current=!1}),onBlur:ce(t.onBlur,()=>g(!1))})})}),YI="RovingFocusGroupItem",XI=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...o}=t,a=es(),c=i||a,l=xQ(YI,r),u=l.currentTabStopId===c,f=QI(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=l;return m.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),C.jsx(dw.ItemSlot,{scope:r,id:c,focusable:n,active:s,children:C.jsx(Ae.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...o,ref:e,onMouseDown:ce(t.onMouseDown,y=>{n?l.onItemFocus(c):y.preventDefault()}),onFocus:ce(t.onFocus,()=>l.onItemFocus(c)),onKeyDown:ce(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const p=CQ(y,l.orientation,l.dir);if(p!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let v=f().filter(g=>g.focusable).map(g=>g.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const g=v.indexOf(y.currentTarget);v=l.loop?kQ(v,g+1):v.slice(g+1)}setTimeout(()=>ZI(v))}})})})});XI.displayName=YI;var wQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function EQ(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function CQ(t,e,r){const n=EQ(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return wQ[n]}function ZI(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function kQ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var DC=JI,BC=XI,AQ=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Nl=new WeakMap,tp=new WeakMap,rp={},ux=0,eO=function(t){return t&&(t.host||eO(t.parentNode))},SQ=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=eO(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},TQ=function(t,e,r,n){var s=SQ(e,Array.isArray(t)?t:[t]);rp[r]||(rp[r]=new WeakMap);var i=rp[r],o=[],a=new Set,c=new Set(s),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};s.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(n),y=h!==null&&h!=="false",p=(Nl.get(d)||0)+1,b=(i.get(d)||0)+1;Nl.set(d,p),i.set(d,b),o.push(d),p===1&&y&&tp.set(d,!0),b===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return u(e),a.clear(),ux++,function(){o.forEach(function(f){var d=Nl.get(f)-1,h=i.get(f)-1;Nl.set(f,d),i.set(f,h),d||(tp.has(f)||f.removeAttribute(n),tp.delete(f)),h||f.removeAttribute(r)}),ux--,ux||(Nl=new WeakMap,Nl=new WeakMap,tp=new WeakMap,rp={})}},LC=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=AQ(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),TQ(n,s,r,"aria-hidden")):function(){return null}},oi=function(){return oi=Object.assign||function(e){for(var r,n=1,s=arguments.length;n"u")return HQ;var e=zQ(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},qQ=sO(),Pu="data-scroll-locked",KQ=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` - .`.concat(IQ,` { - overflow: hidden `).concat(n,`; - padding-right: `).concat(a,"px ").concat(n,`; - } - body[`).concat(Pu,`] { - overflow: hidden `).concat(n,`; - overscroll-behavior: contain; - `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` - padding-left: `.concat(s,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` - } - - .`).concat(Wp,` { - right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Vp,` { - margin-right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Wp," .").concat(Wp,` { - right: 0 `).concat(n,`; - } - - .`).concat(Vp," .").concat(Vp,` { - margin-right: 0 `).concat(n,`; - } - - body[`).concat(Pu,`] { - `).concat(OQ,": ").concat(a,`px; - } -`)},IS=function(){var t=parseInt(document.body.getAttribute(Pu)||"0",10);return isFinite(t)?t:0},QQ=function(){m.useEffect(function(){return document.body.setAttribute(Pu,(IS()+1).toString()),function(){var t=IS()-1;t<=0?document.body.removeAttribute(Pu):document.body.setAttribute(Pu,t.toString())}},[])},JQ=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;QQ();var i=m.useMemo(function(){return GQ(s)},[s]);return m.createElement(qQ,{styles:KQ(i,!e,s,r?"":"!important")})},hw=!1;if(typeof window<"u")try{var np=Object.defineProperty({},"passive",{get:function(){return hw=!0,!0}});window.addEventListener("test",np,np),window.removeEventListener("test",np,np)}catch{hw=!1}var _l=hw?{passive:!1}:!1,YQ=function(t){return t.tagName==="TEXTAREA"},iO=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!YQ(t)&&r[e]==="visible")},XQ=function(t){return iO(t,"overflowY")},ZQ=function(t){return iO(t,"overflowX")},OS=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=oO(t,n);if(s){var i=aO(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eJ=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},tJ=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},oO=function(t,e){return t==="v"?XQ(e):ZQ(e)},aO=function(t,e){return t==="v"?eJ(e):tJ(e)},rJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},nJ=function(t,e,r,n,s){var i=rJ(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,c=e.contains(a),l=!1,u=o>0,f=0,d=0;do{var h=aO(t,a),y=h[0],p=h[1],b=h[2],v=p-b-i*y;(y||v)&&oO(t,a)&&(f+=v,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!s)||!u&&(Math.abs(d)<1||!s))&&(l=!0),l},sp=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},RS=function(t){return[t.deltaX,t.deltaY]},NS=function(t){return t&&"current"in t?t.current:t},sJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},iJ=function(t){return` - .block-interactivity-`.concat(t,` {pointer-events: none;} - .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},oJ=0,Ml=[];function aJ(t){var e=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),s=m.useState(oJ++)[0],i=m.useState(sO)[0],o=m.useRef(t);m.useEffect(function(){o.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var p=PQ([t.lockRef.current],(t.shards||[]).map(NS)).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var v=sp(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-v[0],k="deltaY"in p?p.deltaY:g[1]-v[1],S,I=p.target,R=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in p&&R==="h"&&I.type==="range")return!1;var _=OS(R,I);if(!_)return!0;if(_?S=R:(S=R==="v"?"h":"v",_=OS(R,I)),!_)return!1;if(!n.current&&"changedTouches"in p&&(x||k)&&(n.current=S),!S)return!0;var V=n.current||S;return nJ(V,b,p,V==="h"?x:k,!0)},[]),c=m.useCallback(function(p){var b=p;if(!(!Ml.length||Ml[Ml.length-1]!==i)){var v="deltaY"in b?RS(b):sp(b),g=e.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&sJ(S.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(NS).filter(Boolean).filter(function(S){return S.contains(b.target)}),k=x.length>0?a(b,x[0]):!o.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),l=m.useCallback(function(p,b,v,g){var x={name:p,delta:b,target:v,should:g,shadowParent:cJ(v)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(k){return k!==x})},1)},[]),u=m.useCallback(function(p){r.current=sp(p),n.current=void 0},[]),f=m.useCallback(function(p){l(p.type,RS(p),p.target,a(p,t.lockRef.current))},[]),d=m.useCallback(function(p){l(p.type,sp(p),p.target,a(p,t.lockRef.current))},[]);m.useEffect(function(){return Ml.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,_l),document.addEventListener("touchmove",c,_l),document.addEventListener("touchstart",u,_l),function(){Ml=Ml.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,_l),document.removeEventListener("touchmove",c,_l),document.removeEventListener("touchstart",u,_l)}},[]);var h=t.removeScrollBar,y=t.inert;return m.createElement(m.Fragment,null,y?m.createElement(i,{styles:iJ(s)}):null,h?m.createElement(JQ,{gapMode:t.gapMode}):null)}function cJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const lJ=LQ(nO,aJ);var mg=m.forwardRef(function(t,e){return m.createElement(gg,oi({},t,{ref:e,sideCar:lJ}))});mg.classNames=gg.classNames;var pw=["Enter"," "],uJ=["ArrowDown","PageUp","Home"],cO=["ArrowUp","PageDown","End"],fJ=[...uJ,...cO],dJ={ltr:[...pw,"ArrowRight"],rtl:[...pw,"ArrowLeft"]},hJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},f1="Menu",[d0,pJ,yJ]=dg(f1),[Pl,lO]=Dr(f1,[yJ,vd,gd]),xg=vd(),uO=gd(),[vJ,Il]=Pl(f1),[gJ,d1]=Pl(f1),fO=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:s,onOpenChange:i,modal:o=!0}=t,a=xg(e),[c,l]=m.useState(null),u=m.useRef(!1),f=_r(i),d=c1(s);return m.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),C.jsx(RC,{...a,children:C.jsx(vJ,{scope:e,open:r,onOpenChange:f,content:c,onContentChange:l,children:C.jsx(gJ,{scope:e,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:o,children:n})})})};fO.displayName=f1;var mJ="MenuAnchor",jC=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=xg(r);return C.jsx(NC,{...s,...n,ref:e})});jC.displayName=mJ;var FC="MenuPortal",[xJ,dO]=Pl(FC,{forceMount:void 0}),hO=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:s}=t,i=Il(FC,e);return C.jsx(xJ,{scope:e,forceMount:r,children:C.jsx(Xr,{present:r||i.open,children:C.jsx(u1,{asChild:!0,container:s,children:n})})})};hO.displayName=FC;var ts="MenuContent",[bJ,UC]=Pl(ts),pO=m.forwardRef((t,e)=>{const r=dO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Il(ts,t.__scopeMenu),o=d1(ts,t.__scopeMenu);return C.jsx(d0.Provider,{scope:t.__scopeMenu,children:C.jsx(Xr,{present:n||i.open,children:C.jsx(d0.Slot,{scope:t.__scopeMenu,children:o.modal?C.jsx(wJ,{...s,ref:e}):C.jsx(EJ,{...s,ref:e})})})})}),wJ=m.forwardRef((t,e)=>{const r=Il(ts,t.__scopeMenu),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return LC(i)},[]),C.jsx($C,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),EJ=m.forwardRef((t,e)=>{const r=Il(ts,t.__scopeMenu);return C.jsx($C,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),$C=m.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:y,...p}=t,b=Il(ts,r),v=d1(ts,r),g=xg(r),x=uO(r),k=pJ(r),[S,I]=m.useState(null),R=m.useRef(null),_=$e(e,R,b.onContentChange),V=m.useRef(0),F=m.useRef(""),X=m.useRef(0),re=m.useRef(null),le=m.useRef("right"),ee=m.useRef(0),D=y?mg:m.Fragment,G=y?{as:ul,allowPinchZoom:!0}:void 0,Z=A=>{var O,M;const B=F.current+A,W=k().filter(ue=>!ue.disabled),q=document.activeElement,te=(O=W.find(ue=>ue.ref.current===q))==null?void 0:O.textValue,J=W.map(ue=>ue.textValue),$=MJ(J,B,te),K=(M=W.find(ue=>ue.textValue===$))==null?void 0:M.ref.current;(function ue(de){F.current=de,window.clearTimeout(V.current),de!==""&&(V.current=window.setTimeout(()=>ue(""),1e3))})(B),K&&setTimeout(()=>K.focus())};m.useEffect(()=>()=>window.clearTimeout(V.current),[]),EC();const E=m.useCallback(A=>{var O,M;return le.current===((O=re.current)==null?void 0:O.side)&&BJ(A,(M=re.current)==null?void 0:M.area)},[]);return C.jsx(bJ,{scope:r,searchRef:F,onItemEnter:m.useCallback(A=>{E(A)&&A.preventDefault()},[E]),onItemLeave:m.useCallback(A=>{var O;E(A)||((O=R.current)==null||O.focus(),I(null))},[E]),onTriggerLeave:m.useCallback(A=>{E(A)&&A.preventDefault()},[E]),pointerGraceTimerRef:X,onPointerGraceIntentChange:m.useCallback(A=>{re.current=A},[]),children:C.jsx(D,{...G,children:C.jsx(hg,{asChild:!0,trapped:s,onMountAutoFocus:ce(i,A=>{var O;A.preventDefault(),(O=R.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:C.jsx(hd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,children:C.jsx(DC,{asChild:!0,...x,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:ce(c,A=>{v.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:C.jsx(_C,{role:"menu","aria-orientation":"vertical","data-state":OO(b.open),"data-radix-menu-content":"",dir:v.dir,...g,...p,ref:_,style:{outline:"none",...p.style},onKeyDown:ce(p.onKeyDown,A=>{const M=A.target.closest("[data-radix-menu-content]")===A.currentTarget,B=A.ctrlKey||A.altKey||A.metaKey,W=A.key.length===1;M&&(A.key==="Tab"&&A.preventDefault(),!B&&W&&Z(A.key));const q=R.current;if(A.target!==q||!fJ.includes(A.key))return;A.preventDefault();const J=k().filter($=>!$.disabled).map($=>$.ref.current);cO.includes(A.key)&&J.reverse(),NJ(J)}),onBlur:ce(t.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(V.current),F.current="")}),onPointerMove:ce(t.onPointerMove,h0(A=>{const O=A.target,M=ee.current!==A.clientX;if(A.currentTarget.contains(O)&&M){const B=A.clientX>ee.current?"right":"left";le.current=B,ee.current=A.clientX}}))})})})})})})});pO.displayName=ts;var CJ="MenuGroup",WC=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return C.jsx(Ae.div,{role:"group",...n,ref:e})});WC.displayName=CJ;var kJ="MenuLabel",yO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return C.jsx(Ae.div,{...n,ref:e})});yO.displayName=kJ;var Yy="MenuItem",_S="menu.itemSelect",bg=m.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...s}=t,i=m.useRef(null),o=d1(Yy,t.__scopeMenu),a=UC(Yy,t.__scopeMenu),c=$e(e,i),l=m.useRef(!1),u=()=>{const f=i.current;if(!r&&f){const d=new CustomEvent(_S,{bubbles:!0,cancelable:!0});f.addEventListener(_S,h=>n==null?void 0:n(h),{once:!0}),yC(f,d),d.defaultPrevented?l.current=!1:o.onClose()}};return C.jsx(vO,{...s,ref:c,disabled:r,onClick:ce(t.onClick,u),onPointerDown:f=>{var d;(d=t.onPointerDown)==null||d.call(t,f),l.current=!0},onPointerUp:ce(t.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:ce(t.onKeyDown,f=>{const d=a.searchRef.current!=="";r||d&&f.key===" "||pw.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});bg.displayName=Yy;var vO=m.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...i}=t,o=UC(Yy,r),a=uO(r),c=m.useRef(null),l=$e(e,c),[u,f]=m.useState(!1),[d,h]=m.useState("");return m.useEffect(()=>{const y=c.current;y&&h((y.textContent??"").trim())},[i.children]),C.jsx(d0.ItemSlot,{scope:r,disabled:n,textValue:s??d,children:C.jsx(BC,{asChild:!0,...a,focusable:!n,children:C.jsx(Ae.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:l,onPointerMove:ce(t.onPointerMove,h0(y=>{n?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(t.onPointerLeave,h0(y=>o.onItemLeave(y))),onFocus:ce(t.onFocus,()=>f(!0)),onBlur:ce(t.onBlur,()=>f(!1))})})})}),AJ="MenuCheckboxItem",gO=m.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...s}=t;return C.jsx(EO,{scope:t.__scopeMenu,checked:r,children:C.jsx(bg,{role:"menuitemcheckbox","aria-checked":Xy(r)?"mixed":r,...s,ref:e,"data-state":HC(r),onSelect:ce(s.onSelect,()=>n==null?void 0:n(Xy(r)?!0:!r),{checkForDefaultPrevented:!1})})})});gO.displayName=AJ;var mO="MenuRadioGroup",[SJ,TJ]=Pl(mO,{value:void 0,onValueChange:()=>{}}),xO=m.forwardRef((t,e)=>{const{value:r,onValueChange:n,...s}=t,i=_r(n);return C.jsx(SJ,{scope:t.__scopeMenu,value:r,onValueChange:i,children:C.jsx(WC,{...s,ref:e})})});xO.displayName=mO;var bO="MenuRadioItem",wO=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=TJ(bO,t.__scopeMenu),i=r===s.value;return C.jsx(EO,{scope:t.__scopeMenu,checked:i,children:C.jsx(bg,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":HC(i),onSelect:ce(n.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,r)},{checkForDefaultPrevented:!1})})})});wO.displayName=bO;var VC="MenuItemIndicator",[EO,PJ]=Pl(VC,{checked:!1}),CO=m.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...s}=t,i=PJ(VC,r);return C.jsx(Xr,{present:n||Xy(i.checked)||i.checked===!0,children:C.jsx(Ae.span,{...s,ref:e,"data-state":HC(i.checked)})})});CO.displayName=VC;var IJ="MenuSeparator",kO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return C.jsx(Ae.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});kO.displayName=IJ;var OJ="MenuArrow",AO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=xg(r);return C.jsx(MC,{...s,...n,ref:e})});AO.displayName=OJ;var RJ="MenuSub",[Bde,SO]=Pl(RJ),Xd="MenuSubTrigger",TO=m.forwardRef((t,e)=>{const r=Il(Xd,t.__scopeMenu),n=d1(Xd,t.__scopeMenu),s=SO(Xd,t.__scopeMenu),i=UC(Xd,t.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:t.__scopeMenu},u=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>u,[u]),m.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),C.jsx(jC,{asChild:!0,...l,children:C.jsx(vO,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":OO(r.open),...t,ref:lg(e,s.onTriggerChange),onClick:f=>{var d;(d=t.onClick)==null||d.call(t,f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ce(t.onPointerMove,h0(f=>{i.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:ce(t.onPointerLeave,h0(f=>{var d,h;u();const y=(d=r.content)==null?void 0:d.getBoundingClientRect();if(y){const p=(h=r.content)==null?void 0:h.dataset.side,b=p==="right",v=b?-5:5,g=y[b?"left":"right"],x=y[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:g,y:y.top},{x,y:y.top},{x,y:y.bottom},{x:g,y:y.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ce(t.onKeyDown,f=>{var d;const h=i.searchRef.current!=="";t.disabled||h&&f.key===" "||dJ[n.dir].includes(f.key)&&(r.onOpenChange(!0),(d=r.content)==null||d.focus(),f.preventDefault())})})})});TO.displayName=Xd;var PO="MenuSubContent",IO=m.forwardRef((t,e)=>{const r=dO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Il(ts,t.__scopeMenu),o=d1(ts,t.__scopeMenu),a=SO(PO,t.__scopeMenu),c=m.useRef(null),l=$e(e,c);return C.jsx(d0.Provider,{scope:t.__scopeMenu,children:C.jsx(Xr,{present:n||i.open,children:C.jsx(d0.Slot,{scope:t.__scopeMenu,children:C.jsx($C,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ce(t.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ce(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ce(t.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=hJ[o.dir].includes(u.key);d&&h&&(i.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});IO.displayName=PO;function OO(t){return t?"open":"closed"}function Xy(t){return t==="indeterminate"}function HC(t){return Xy(t)?"indeterminate":t?"checked":"unchecked"}function NJ(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function _J(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function MJ(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=_J(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function DJ(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function BJ(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return DJ(r,e)}function h0(t){return e=>e.pointerType==="mouse"?t(e):void 0}var LJ=fO,jJ=jC,FJ=hO,UJ=pO,$J=WC,WJ=yO,VJ=bg,HJ=gO,zJ=xO,GJ=wO,qJ=CO,KJ=kO,QJ=AO,JJ=TO,YJ=IO,zC="DropdownMenu",[XJ,Lde]=Dr(zC,[lO]),Zr=lO(),[ZJ,RO]=XJ(zC),eY=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,c=Zr(e),l=m.useRef(null),[u=!1,f]=is({prop:s,defaultProp:i,onChange:o});return C.jsx(ZJ,{scope:e,triggerId:es(),triggerRef:l,contentId:es(),open:u,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(d=>!d),[f]),modal:a,children:C.jsx(LJ,{...c,open:u,onOpenChange:f,dir:n,modal:a,children:r})})};eY.displayName=zC;var NO="DropdownMenuTrigger",tY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=t,i=RO(NO,r),o=Zr(r);return C.jsx(jJ,{asChild:!0,...o,children:C.jsx(Ae.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:lg(e,i.triggerRef),onPointerDown:ce(t.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:ce(t.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});tY.displayName=NO;var rY="DropdownMenuPortal",nY=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Zr(e);return C.jsx(FJ,{...n,...r})};nY.displayName=rY;var _O="DropdownMenuContent",sY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=RO(_O,r),i=Zr(r),o=m.useRef(!1);return C.jsx(UJ,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...n,ref:e,onCloseAutoFocus:ce(t.onCloseAutoFocus,a=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:ce(t.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!s.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});sY.displayName=_O;var iY="DropdownMenuGroup",oY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx($J,{...s,...n,ref:e})});oY.displayName=iY;var aY="DropdownMenuLabel",cY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(WJ,{...s,...n,ref:e})});cY.displayName=aY;var lY="DropdownMenuItem",uY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(VJ,{...s,...n,ref:e})});uY.displayName=lY;var fY="DropdownMenuCheckboxItem",MO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(HJ,{...s,...n,ref:e})});MO.displayName=fY;var dY="DropdownMenuRadioGroup",hY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(zJ,{...s,...n,ref:e})});hY.displayName=dY;var pY="DropdownMenuRadioItem",DO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(GJ,{...s,...n,ref:e})});DO.displayName=pY;var yY="DropdownMenuItemIndicator",BO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(qJ,{...s,...n,ref:e})});BO.displayName=yY;var vY="DropdownMenuSeparator",gY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(KJ,{...s,...n,ref:e})});gY.displayName=vY;var mY="DropdownMenuArrow",xY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(QJ,{...s,...n,ref:e})});xY.displayName=mY;var bY="DropdownMenuSubTrigger",wY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(JJ,{...s,...n,ref:e})});wY.displayName=bY;var EY="DropdownMenuSubContent",CY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(YJ,{...s,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});CY.displayName=EY;var kY=MO,AY=DO,LO=BO,jO="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",FO="_1k2mbvi5";const SY=({children:t})=>C.jsx(LO,{className:FO,children:t});m.forwardRef(({className:t,children:e,...r},n)=>C.jsxs(kY,{className:Mr(jO,t),...r,ref:n,children:[C.jsx(SY,{children:C.jsx(bI,{size:"xs"})}),C.jsx(Tt,{variant:"small",children:e})]}));m.forwardRef(({className:t,children:e,...r},n)=>C.jsxs(AY,{className:Mr(jO,t),...r,ref:n,children:[C.jsx(LO,{className:FO,children:C.jsx(Tt,{children:"ā€¢"})}),C.jsx(Tt,{variant:"small",children:e})]}));const GC=m.forwardRef((t,e)=>{const{icon:r,size:n="md",...s}=t;return C.jsx(Ve,{leftIcon:r,size:n,flexShrink:"0",ref:e,...s})}),TY=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var PY="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",IY=At({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),OY="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const RY={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"};m.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:s=!1,id:i,label:o="",labelLocation:a="hidden",name:c,onValueChange:l,placeholder:u="Upload a file",validExtensions:f,...d}=t,h=m.useRef(null),y=TY(h,e),[p,b]=m.useState(null),v=x=>{const k=x.currentTarget.files;if(!k||!k[0])return;const S=k[0],I=S.name,R=S.size/1e3;b({name:I,size:R,extension:I.split(".").pop()??""}),l==null||l(S)},g=f.map(x=>RY[x]).join(",");return C.jsx(fd,{description:n,disabled:s,display:"grid",id:i??c,label:o,labelLocation:a,children:C.jsxs(me,{width:"full",minWidth:"0",justifyContent:p?"space-between":"flex-start",gap:"2",color:p?"text100":"text50",className:Mr(PY,IY({borderRadius:r})),children:[p?C.jsxs(me,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[C.jsx(Tt,{ellipsis:!0,children:p.name}),C.jsxs(Tt,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[p.size.toFixed(2)," kb"]})]}):C.jsx(Tt,{ellipsis:!0,children:u}),C.jsx(me,{accept:g,as:"input",className:OY,cursor:"pointer",disabled:s,id:i??c,name:c,onChange:v,ref:y,type:"file",...d}),p&&C.jsx(GC,{cursor:"pointer",icon:gC,size:"xs",onClick:x=>{var k;x.preventDefault(),x.stopPropagation(),(k=h.current)!=null&&k.value&&(h.current.value=""),l==null||l(null),b(null)},zIndex:"10"})]})})});var NY=At({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const yw=1e3,Iu=64,px=Iu/2,yx=(t,e=yw)=>t%e/(yw/Iu),Dl=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let s=0,i;s>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},_Y=(t,e,r)=>{const n=t%360,s=(t+120)%360,i=r%360;return{a:`hsl(${n}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${i}deg 100% 50%)`}},MY=(t,e)=>{const r=[];for(let n=0;n{const i=Iu/10+yx(n.r,yw*1.5/(s+1));return{..._Y(n.a,n.b,n.c),x:yx(n.x),y:yx(n.y),r:i}})};m.memo(t=>{const{className:e,address:r,size:n="md",complexity:s=1,...i}=t,o=MY(r,s);return C.jsxs(me,{as:"svg",className:Mr(e,NY({size:n})),viewBox:`0 0 ${Iu} ${Iu}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...i,children:[C.jsxs("defs",{children:[C.jsx("clipPath",{id:"circle-clip",children:C.jsx("circle",{cx:px,cy:px,r:px})}),C.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[C.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),C.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),C.jsx("feGaussianBlur",{stdDeviation:Iu/10,result:"effect1_foregroundBlur"})]}),C.jsxs("linearGradient",{id:`gradient-background-${r}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[C.jsx("stop",{offset:"0",stopColor:o[0].c}),C.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map((a,c)=>C.jsxs(m.Fragment,{children:[C.jsxs("radialGradient",{id:`gradient-primary-${r}-${c}`,children:[C.jsx("stop",{offset:"0",stopColor:a.a}),C.jsx("stop",{offset:"1",stopColor:a.b})]}),C.jsxs("radialGradient",{id:`gradient-secondary-${r}-${c}`,children:[C.jsx("stop",{offset:"0",stopColor:a.c}),C.jsx("stop",{offset:"1",stopColor:a.b})]})]},c))]}),C.jsxs("g",{clipPath:"url(#circle-clip)",children:[C.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${r})`}),C.jsx("g",{filter:"url(#blur)",children:o.map((a,c)=>C.jsxs(m.Fragment,{children:[C.jsx("circle",{fill:`url(#gradient-primary-${r}-${c})`,cx:a.x,cy:a.y,r:a.r}),C.jsx("circle",{fill:`url(#gradient-secondary-${r}-${c})`,cx:a.y,cy:a.x,r:a.r/2})]},c))})]})]})});const qC=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[s,i]=m.useState(!1),o=a=>{i(!0),r==null||r(a)};return C.jsx(me,{as:Su.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:s?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})};var KC="Dialog",[UO,jde]=Dr(KC),[DY,Fs]=UO(KC),$O=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=is({prop:n,defaultProp:s,onChange:i});return C.jsx(DY,{scope:e,triggerRef:a,contentRef:c,contentId:es(),titleId:es(),descriptionId:es(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};$O.displayName=KC;var WO="DialogTrigger",BY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(WO,r),i=$e(e,s.triggerRef);return C.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":YC(s.open),...n,ref:i,onClick:ce(t.onClick,s.onOpenToggle)})});BY.displayName=WO;var QC="DialogPortal",[LY,VO]=UO(QC,{forceMount:void 0}),HO=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=Fs(QC,e);return C.jsx(LY,{scope:e,forceMount:r,children:m.Children.map(n,o=>C.jsx(Xr,{present:r||i.open,children:C.jsx(u1,{asChild:!0,container:s,children:o})}))})};HO.displayName=QC;var Zy="DialogOverlay",zO=m.forwardRef((t,e)=>{const r=VO(Zy,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fs(Zy,t.__scopeDialog);return i.modal?C.jsx(Xr,{present:n||i.open,children:C.jsx(jY,{...s,ref:e})}):null});zO.displayName=Zy;var jY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(Zy,r);return C.jsx(mg,{as:ul,allowPinchZoom:!0,shards:[s.contentRef],children:C.jsx(Ae.div,{"data-state":YC(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),dl="DialogContent",GO=m.forwardRef((t,e)=>{const r=VO(dl,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fs(dl,t.__scopeDialog);return C.jsx(Xr,{present:n||i.open,children:i.modal?C.jsx(FY,{...s,ref:e}):C.jsx(UY,{...s,ref:e})})});GO.displayName=dl;var FY=m.forwardRef((t,e)=>{const r=Fs(dl,t.__scopeDialog),n=m.useRef(null),s=$e(e,r.contentRef,n);return m.useEffect(()=>{const i=n.current;if(i)return LC(i)},[]),C.jsx(qO,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ce(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault())})}),UY=m.forwardRef((t,e)=>{const r=Fs(dl,t.__scopeDialog),n=m.useRef(!1),s=m.useRef(!1);return C.jsx(qO,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var o,a;(o=t.onInteractOutside)==null||o.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),qO=m.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=Fs(dl,r),c=m.useRef(null),l=$e(e,c);return EC(),C.jsxs(C.Fragment,{children:[C.jsx(hg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:C.jsx(hd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":YC(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(VY,{titleId:a.titleId}),C.jsx(zY,{contentRef:c,descriptionId:a.descriptionId})]})]})}),JC="DialogTitle",$Y=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(JC,r);return C.jsx(Ae.h2,{id:s.titleId,...n,ref:e})});$Y.displayName=JC;var KO="DialogDescription",WY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(KO,r);return C.jsx(Ae.p,{id:s.descriptionId,...n,ref:e})});WY.displayName=KO;var QO="DialogClose",JO=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(QO,r);return C.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,()=>s.onOpenChange(!1))})});JO.displayName=QO;function YC(t){return t?"open":"closed"}var YO="DialogTitleWarning",[Fde,XO]=sq(YO,{contentName:dl,titleName:JC,docsSlug:"dialog"}),VY=({titleId:t})=>{const e=XO(YO),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},HY="DialogDescriptionWarning",zY=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${XO(HY).contentName}}.`;return m.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},GY=$O,qY=HO,KY=zO,QY=GO,JY=JO,YY=At({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),XY=At({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const ZY=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:s,...i}=t;return C.jsx(me,{className:XY({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...i,children:C.jsx(me,{className:YY({direction:n}),background:"backgroundPrimary",...s,children:e})})};function eX(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function tX(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function ZO(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n={};for(var s in t){var i=t[s],o=[...r,s];typeof i=="string"||typeof i=="number"||i==null?n[s]=e(i,o):typeof i=="object"&&!Array.isArray(i)?n[s]=ZO(i,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function MS(t,e,r){t.style.setProperty(eX(e),r)}function DS(t,e,r){if(typeof r=="object"){var n=e;ZO(r,(a,c)=>{a!=null&&MS(t,tX(n,c),String(a))})}else{var s=e;for(var i in s){var o=s[i];o!=null&&MS(t,i,s[i])}}}const XC=["dark","light"],e9="dark",rX="data-theme",BS="@sequence.theme",nX=t=>XC.includes(t),sX=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),t9=t=>t?`${BS}.${t}`:BS,iX=t=>{const e=localStorage.getItem(t9(t));return e&&XC.includes(e)?e:e9},r9=m.createContext(null),oX=t=>{const[e,r]=m.useState(t.theme||e9);m.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),m.useEffect(()=>{t.theme||r(iX(t.scope))},[t.theme,t.scope]),m.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),m.useEffect(()=>{const s=document.querySelector(t.root||":root");s&&(nX(e)?(s.setAttribute(rX,e),DS(s,sS,{colors:MG[e]})):sX(e)&&DS(s,sS,{colors:e}),t.root&&s.classList.add("seq-root"))},[e,t.root]);const n=m.useMemo(()=>({theme:e,root:t.root,setTheme:s=>{XC.includes(s)&&(localStorage.setItem(t9(t.scope),s),r(s))}}),[e,t.root,t.scope]);return C.jsx(r9.Provider,{value:n,children:t.children})},aX=()=>{const t=m.useContext(r9);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var cX="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",lX="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",uX=At({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),fX="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const dX=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:s=!1,isDismissible:i=!0,onClose:o,scroll:a=!0,size:c="lg",overlayProps:l,contentProps:u,rootProps:f={}}=t,{root:d}=aX(),[h,y]=m.useState(null);return m.useEffect(()=>{y(document.querySelector(d||"body"))},[d]),h?C.jsx(GY,{modal:!0,defaultOpen:!0,onOpenChange:o,children:C.jsx(qY,{forceMount:!0,container:h,children:C.jsxs(me,{...f,className:Mr("seq-root",cX,f==null?void 0:f.className),children:[C.jsx(me,{as:KY,asChild:!0,background:r,className:lX,forceMount:!0,children:C.jsx(Su.div,{initial:s?!1:{opacity:0},animate:s?!1:{opacity:1},exit:s?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...l},"modal-overlay")}),C.jsx(QY,{asChild:!0,className:uX({autoHeight:e,size:c}),forceMount:!0,onEscapeKeyDown:p=>{i?o==null||o():p.preventDefault()},onInteractOutside:p=>{i||p.preventDefault()},children:C.jsxs(Su.div,{initial:s?!1:{y:"100%",opacity:c==="sm"?0:1},animate:s?!1:{y:0,opacity:1},exit:s?void 0:{y:"100%",opacity:c==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...u,children:[a?C.jsx(ZY,{children:n}):n,i&&C.jsx(JY,{asChild:!0,children:C.jsx(GC,{icon:gC,backdropFilter:"blur",size:"xs",className:fX,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var hX="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",pX=At({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),yX=At({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const ZC=m.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",leftIcon:u,rightIcon:f,name:d,controls:h,type:y="text",numeric:p=!1,...b}=t;return C.jsx(fd,{description:i,disabled:o,display:"grid",id:a??d,label:c,labelLocation:l,children:C.jsx(me,{width:"full",children:C.jsxs(me,{className:Mr(hX,pX({borderRadius:s})),children:[u&&C.jsx(u,{size:"sm"}),C.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:yX({numeric:p}),disabled:o,id:a??d,name:d,ref:e,type:y,...b}),f&&C.jsx(f,{size:"sm"}),h]})})})}),vX=RegExp("^\\d*(?:\\\\[.])?\\d*$");function gX(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}m.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:s,onBlur:i,...o}=t,a=l=>{let{value:u}=l.target;u=u.replace(/,/g,"."),u.startsWith(".")&&(u="0"+u),u.startsWith("0")&&(u=u.replace(/^0+(?=\d)/,"")),(u===""||vX.test(gX(u)))&&(s==null||s({...l,target:{...l.target,value:u}}))},c=l=>{const{value:u}=l.target;let f=u;f.endsWith(".")&&(f=f.slice(0,-1)),f.endsWith(".0")&&(f=f.slice(0,-2)),f==="0"&&(f=""),i==null||i(l),f!==u&&(s==null||s({...l,target:{...l.target,value:f}}))};return C.jsx(ZC,{name:r,onChange:a,onBlur:c,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});At({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});var e5="Progress",t5=100,[mX,Ude]=Dr(e5),[xX,bX]=mX(e5),wX=m.forwardRef((t,e)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=CX,...o}=t;(s||s===0)&&!LS(s)&&console.error(kX(`${s}`,"Progress"));const a=LS(s)?s:t5;n!==null&&!jS(n,a)&&console.error(AX(`${n}`,"Progress"));const c=jS(n,a)?n:null,l=ev(c)?i(c,a):void 0;return C.jsx(xX,{scope:r,value:c,max:a,children:C.jsx(Ae.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ev(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":s9(c,a),"data-value":c??void 0,"data-max":a,...o,ref:e})})});wX.displayName=e5;var n9="ProgressIndicator",EX=m.forwardRef((t,e)=>{const{__scopeProgress:r,...n}=t,s=bX(n9,r);return C.jsx(Ae.div,{"data-state":s9(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});EX.displayName=n9;function CX(t,e){return`${Math.round(t/e*100)}%`}function s9(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function ev(t){return typeof t=="number"}function LS(t){return ev(t)&&!isNaN(t)&&t>0}function jS(t,e){return ev(t)&&!isNaN(t)&&t<=e&&t>=0}function kX(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${t5}\`.`}function AX(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${t5} if no \`max\` prop is set) - - \`null\` or \`undefined\` if the progress is indeterminate. - -Defaulting to \`null\`.`}var r5="Radio",[SX,i9]=Dr(r5),[TX,PX]=SX(r5),o9=m.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:c,...l}=t,[u,f]=m.useState(null),d=$e(e,p=>f(p)),h=m.useRef(!1),y=u?!!u.closest("form"):!0;return C.jsxs(TX,{scope:r,checked:s,disabled:o,children:[C.jsx(Ae.button,{type:"button",role:"radio","aria-checked":s,"data-state":l9(s),"data-disabled":o?"":void 0,disabled:o,value:a,...l,ref:d,onClick:ce(t.onClick,p=>{s||c==null||c(),y&&(h.current=p.isPropagationStopped(),h.current||p.stopPropagation())})}),y&&C.jsx(IX,{control:u,bubbles:!h.current,name:n,value:a,checked:s,required:i,disabled:o,style:{transform:"translateX(-100%)"}})]})});o9.displayName=r5;var a9="RadioIndicator",c9=m.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...s}=t,i=PX(a9,r);return C.jsx(Xr,{present:n||i.checked,children:C.jsx(Ae.span,{"data-state":l9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});c9.displayName=a9;var IX=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=ug(r),a=fg(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),C.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function l9(t){return t?"checked":"unchecked"}var OX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],n5="RadioGroup",[RX,$de]=Dr(n5,[gd,i9]),u9=gd(),f9=i9(),[NX,_X]=RX(n5),d9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=t,h=u9(r),y=c1(l),[p,b]=is({prop:i,defaultProp:s,onChange:f});return C.jsx(NX,{scope:r,name:n,required:o,disabled:a,value:p,onValueChange:b,children:C.jsx(DC,{asChild:!0,...h,orientation:c,dir:y,loop:u,children:C.jsx(Ae.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":a?"":void 0,dir:y,...d,ref:e})})})});d9.displayName=n5;var h9="RadioGroupItem",p9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...s}=t,i=_X(h9,r),o=i.disabled||n,a=u9(r),c=f9(r),l=m.useRef(null),u=$e(e,l),f=i.value===s.value,d=m.useRef(!1);return m.useEffect(()=>{const h=p=>{OX.includes(p.key)&&(d.current=!0)},y=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",y)}},[]),C.jsx(BC,{asChild:!0,...a,focusable:!o,active:f,children:C.jsx(o9,{disabled:o,required:i.required,checked:f,...c,...s,name:i.name,ref:u,onCheck:()=>i.onValueChange(s.value),onKeyDown:ce(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:ce(s.onFocus,()=>{var h;d.current&&((h=l.current)==null||h.click())})})})});p9.displayName=h9;var MX="RadioGroupIndicator",y9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,s=f9(r);return C.jsx(c9,{...s,...n,ref:e})});y9.displayName=MX;var DX=d9,BX=p9,LX=y9,jX=At({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),FX=At({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const UX=t=>{const{id:e,label:r,size:n="sm",value:s,disabled:i}=t;return C.jsx(me,{alignItems:"center",children:C.jsx(fd,{disabled:i,display:"flex",id:e,label:r,labelLocation:"right",children:C.jsx(BX,{className:jX({size:n}),value:s,id:e,disabled:i,children:C.jsx(LX,{className:FX({size:n})})})})})};m.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:s="2",name:i,options:o,size:a="sm",...c}=t;return C.jsx(DX,{disabled:n,name:i,ref:e,...c,children:C.jsx(me,{flexDirection:r,gap:s,children:o.map(({label:l,value:u,disabled:f})=>C.jsx(UX,{id:`${i}-${u}`,label:l,size:a,value:u,disabled:f},u))})})});function FS(t,[e,r]){return Math.min(r,Math.max(e,t))}var $X="VisuallyHidden",h1=m.forwardRef((t,e)=>C.jsx(Ae.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));h1.displayName=$X;var WX=h1,VX=[" ","Enter","ArrowUp","ArrowDown"],HX=[" ","Enter"],p1="Select",[wg,Eg,zX]=dg(p1),[md,Wde]=Dr(p1,[zX,vd]),Cg=vd(),[GX,$a]=md(p1),[qX,KX]=md(p1),v9=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:h}=t,y=Cg(e),[p,b]=m.useState(null),[v,g]=m.useState(null),[x,k]=m.useState(!1),S=c1(l),[I=!1,R]=is({prop:n,defaultProp:s,onChange:i}),[_,V]=is({prop:o,defaultProp:a,onChange:c}),F=m.useRef(null),X=p?!!p.closest("form"):!0,[re,le]=m.useState(new Set),ee=Array.from(re).map(D=>D.props.value).join(";");return C.jsx(RC,{...y,children:C.jsxs(GX,{required:h,scope:e,trigger:p,onTriggerChange:b,valueNode:v,onValueNodeChange:g,valueNodeHasChildren:x,onValueNodeHasChildrenChange:k,contentId:es(),value:_,onValueChange:V,open:I,onOpenChange:R,dir:S,triggerPointerDownPosRef:F,disabled:d,children:[C.jsx(wg.Provider,{scope:e,children:C.jsx(qX,{scope:t.__scopeSelect,onNativeOptionAdd:m.useCallback(D=>{le(G=>new Set(G).add(D))},[]),onNativeOptionRemove:m.useCallback(D=>{le(G=>{const Z=new Set(G);return Z.delete(D),Z})},[]),children:r})}),X?C.jsxs(B9,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:_,onChange:D=>V(D.target.value),disabled:d,children:[_===void 0?C.jsx("option",{value:""}):null,Array.from(re)]},ee):null]})})};v9.displayName=p1;var g9="SelectTrigger",m9=m.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=Cg(r),o=$a(g9,r),a=o.disabled||n,c=$e(e,o.onTriggerChange),l=Eg(r),[u,f,d]=L9(y=>{const p=l().filter(g=>!g.disabled),b=p.find(g=>g.value===o.value),v=j9(p,y,b);v!==void 0&&o.onValueChange(v.value)}),h=()=>{a||(o.onOpenChange(!0),d())};return C.jsx(NC,{asChild:!0,...i,children:C.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":D9(o.value)?"":void 0,...s,ref:c,onClick:ce(s.onClick,y=>{y.currentTarget.focus()}),onPointerDown:ce(s.onPointerDown,y=>{const p=y.target;p.hasPointerCapture(y.pointerId)&&p.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(h(),o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:ce(s.onKeyDown,y=>{const p=u.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(p&&y.key===" ")&&VX.includes(y.key)&&(h(),y.preventDefault())})})})});m9.displayName=g9;var x9="SelectValue",b9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,c=$a(x9,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,f=$e(e,c.onValueNodeChange);return xr(()=>{l(u)},[l,u]),C.jsx(Ae.span,{...a,ref:f,style:{pointerEvents:"none"},children:D9(c.value)?C.jsx(C.Fragment,{children:o}):i})});b9.displayName=x9;var QX="SelectIcon",w9=m.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return C.jsx(Ae.span,{"aria-hidden":!0,...s,ref:e,children:n||"ā–¼"})});w9.displayName=QX;var hl="SelectContent",E9=m.forwardRef((t,e)=>{const r=$a(hl,t.__scopeSelect),[n,s]=m.useState();if(xr(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?Fa.createPortal(C.jsx(C9,{scope:t.__scopeSelect,children:C.jsx(wg.Slot,{scope:t.__scopeSelect,children:C.jsx("div",{children:t.children})})}),i):null}return C.jsx(k9,{...t,ref:e})});E9.displayName=hl;var Ai=10,[C9,Wa]=md(hl),JX="SelectContentImpl",k9=m.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b,...v}=t,g=$a(hl,r),[x,k]=m.useState(null),[S,I]=m.useState(null),R=$e(e,$=>k($)),[_,V]=m.useState(null),[F,X]=m.useState(null),re=Eg(r),[le,ee]=m.useState(!1),D=m.useRef(!1);m.useEffect(()=>{if(x)return LC(x)},[x]),EC();const G=m.useCallback($=>{const[K,...ue]=re().map(Ee=>Ee.ref.current),[de]=ue.slice(-1),oe=document.activeElement;for(const Ee of $)if(Ee===oe||(Ee==null||Ee.scrollIntoView({block:"nearest"}),Ee===K&&S&&(S.scrollTop=0),Ee===de&&S&&(S.scrollTop=S.scrollHeight),Ee==null||Ee.focus(),document.activeElement!==oe))return},[re,S]),Z=m.useCallback(()=>G([_,x]),[G,_,x]);m.useEffect(()=>{le&&Z()},[le,Z]);const{onOpenChange:E,triggerPointerDownPosRef:A}=g;m.useEffect(()=>{if(x){let $={x:0,y:0};const K=de=>{var oe,Ee;$={x:Math.abs(Math.round(de.pageX)-(((oe=A.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(de.pageY)-(((Ee=A.current)==null?void 0:Ee.y)??0))}},ue=de=>{$.x<=10&&$.y<=10?de.preventDefault():x.contains(de.target)||E(!1),document.removeEventListener("pointermove",K),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ue,{capture:!0})}}},[x,E,A]),m.useEffect(()=>{const $=()=>E(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[E]);const[O,M]=L9($=>{const K=re().filter(oe=>!oe.disabled),ue=K.find(oe=>oe.ref.current===document.activeElement),de=j9(K,$,ue);de&&setTimeout(()=>de.ref.current.focus())}),B=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&(V($),de&&(D.current=!0))},[g.value]),W=m.useCallback(()=>x==null?void 0:x.focus(),[x]),q=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&X($)},[g.value]),te=n==="popper"?vw:A9,J=te===vw?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b}:{};return C.jsx(C9,{scope:r,content:x,viewport:S,onViewportChange:I,itemRefCallback:B,selectedItem:_,onItemLeave:W,itemTextRefCallback:q,focusSelectedItem:Z,selectedItemText:F,position:n,isPositioned:le,searchRef:O,children:C.jsx(mg,{as:ul,allowPinchZoom:!0,children:C.jsx(hg,{asChild:!0,trapped:g.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:ce(s,$=>{var K;(K=g.trigger)==null||K.focus({preventScroll:!0}),$.preventDefault()}),children:C.jsx(hd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:C.jsx(te,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:$=>$.preventDefault(),...v,...J,onPlaced:()=>ee(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ce(v.onKeyDown,$=>{const K=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!K&&$.key.length===1&&M($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let de=re().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes($.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const oe=$.target,Ee=de.indexOf(oe);de=de.slice(Ee+1)}setTimeout(()=>G(de)),$.preventDefault()}})})})})})})});k9.displayName=JX;var YX="SelectItemAlignedPosition",A9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=$a(hl,r),o=Wa(hl,r),[a,c]=m.useState(null),[l,u]=m.useState(null),f=$e(e,R=>u(R)),d=Eg(r),h=m.useRef(!1),y=m.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=o,x=m.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&b&&v){const R=i.trigger.getBoundingClientRect(),_=l.getBoundingClientRect(),V=i.valueNode.getBoundingClientRect(),F=v.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-_.left,Ee=V.left-oe,Re=R.left-Ee,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-Ai,U=FS(Ee,[Ai,br-tn]);a.style.minWidth=xt+"px",a.style.left=U+"px"}else{const oe=_.right-F.right,Ee=window.innerWidth-V.right-oe,Re=window.innerWidth-R.right-Ee,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-Ai,U=FS(Ee,[Ai,br-tn]);a.style.minWidth=xt+"px",a.style.right=U+"px"}const X=d(),re=window.innerHeight-Ai*2,le=p.scrollHeight,ee=window.getComputedStyle(l),D=parseInt(ee.borderTopWidth,10),G=parseInt(ee.paddingTop,10),Z=parseInt(ee.borderBottomWidth,10),E=parseInt(ee.paddingBottom,10),A=D+G+le+E+Z,O=Math.min(b.offsetHeight*5,A),M=window.getComputedStyle(p),B=parseInt(M.paddingTop,10),W=parseInt(M.paddingBottom,10),q=R.top+R.height/2-Ai,te=re-q,J=b.offsetHeight/2,$=b.offsetTop+J,K=D+G+$,ue=A-K;if(K<=q){const oe=b===X[X.length-1].ref.current;a.style.bottom="0px";const Ee=l.clientHeight-p.offsetTop-p.offsetHeight,Re=Math.max(te,J+(oe?W:0)+Ee+Z),xt=K+Re;a.style.height=xt+"px"}else{const oe=b===X[0].ref.current;a.style.top="0px";const Re=Math.max(q,D+p.offsetTop+(oe?B:0)+J)+ue;a.style.height=Re+"px",p.scrollTop=K-q+p.offsetTop}a.style.margin=`${Ai}px 0`,a.style.minHeight=O+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,i.trigger,i.valueNode,a,l,p,b,v,i.dir,n]);xr(()=>x(),[x]);const[k,S]=m.useState();xr(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const I=m.useCallback(R=>{R&&y.current===!0&&(x(),g==null||g(),y.current=!1)},[x,g]);return C.jsx(ZX,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:I,children:C.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:C.jsx(Ae.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});A9.displayName=YX;var XX="SelectPopperPosition",vw=m.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=Ai,...i}=t,o=Cg(r);return C.jsx(_C,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});vw.displayName=XX;var[ZX,s5]=md(hl,{}),gw="SelectViewport",S9=m.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=Wa(gw,r),o=s5(gw,r),a=$e(e,i.onViewportChange),c=m.useRef(0);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),C.jsx(wg.Slot,{scope:r,children:C.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:ce(s.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&f){const h=Math.abs(c.current-u.scrollTop);if(h>0){const y=window.innerHeight-Ai*2,p=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),v=Math.max(p,b);if(v0?k:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});S9.displayName=gw;var T9="SelectGroup",[eZ,tZ]=md(T9),P9=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=es();return C.jsx(eZ,{scope:r,id:s,children:C.jsx(Ae.div,{role:"group","aria-labelledby":s,...n,ref:e})})});P9.displayName=T9;var I9="SelectLabel",rZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=tZ(I9,r);return C.jsx(Ae.div,{id:s.id,...n,ref:e})});rZ.displayName=I9;var tv="SelectItem",[nZ,O9]=md(tv),R9=m.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=$a(tv,r),c=Wa(tv,r),l=a.value===n,[u,f]=m.useState(i??""),[d,h]=m.useState(!1),y=$e(e,v=>{var g;return(g=c.itemRefCallback)==null?void 0:g.call(c,v,n,s)}),p=es(),b=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return C.jsx(nZ,{scope:r,value:n,disabled:s,textId:p,isSelected:l,onItemTextChange:m.useCallback(v=>{f(g=>g||((v==null?void 0:v.textContent)??"").trim())},[]),children:C.jsx(wg.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:C.jsx(Ae.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:ce(o.onFocus,()=>h(!0)),onBlur:ce(o.onBlur,()=>h(!1)),onPointerUp:ce(o.onPointerUp,b),onPointerMove:ce(o.onPointerMove,v=>{var g;s?(g=c.onItemLeave)==null||g.call(c):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(o.onPointerLeave,v=>{var g;v.currentTarget===document.activeElement&&((g=c.onItemLeave)==null||g.call(c))}),onKeyDown:ce(o.onKeyDown,v=>{var g;((g=c.searchRef)==null?void 0:g.current)!==""&&v.key===" "||(HX.includes(v.key)&&b(),v.key===" "&&v.preventDefault())})})})})});R9.displayName=tv;var Zd="SelectItemText",N9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=$a(Zd,r),a=Wa(Zd,r),c=O9(Zd,r),l=KX(Zd,r),[u,f]=m.useState(null),d=$e(e,v=>f(v),c.onItemTextChange,v=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,v,c.value,c.disabled)}),h=u==null?void 0:u.textContent,y=m.useMemo(()=>C.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=l;return xr(()=>(p(y),()=>b(y)),[p,b,y]),C.jsxs(C.Fragment,{children:[C.jsx(Ae.span,{id:c.textId,...i,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Fa.createPortal(i.children,o.valueNode):null]})});N9.displayName=Zd;var _9="SelectItemIndicator",sZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return O9(_9,r).isSelected?C.jsx(Ae.span,{"aria-hidden":!0,...n,ref:e}):null});sZ.displayName=_9;var mw="SelectScrollUpButton",iZ=m.forwardRef((t,e)=>{const r=Wa(mw,t.__scopeSelect),n=s5(mw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?C.jsx(M9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});iZ.displayName=mw;var xw="SelectScrollDownButton",oZ=m.forwardRef((t,e)=>{const r=Wa(xw,t.__scopeSelect),n=s5(xw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?C.jsx(M9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});oZ.displayName=xw;var M9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=Wa("SelectScrollButton",r),o=m.useRef(null),a=Eg(r),c=m.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),xr(()=>{var l;const u=a().find(f=>f.ref.current===document.activeElement);(l=u==null?void 0:u.ref.current)==null||l.scrollIntoView({block:"nearest"})},[a]),C.jsx(Ae.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{c()})})}),aZ="SelectSeparator",cZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return C.jsx(Ae.div,{"aria-hidden":!0,...n,ref:e})});cZ.displayName=aZ;var bw="SelectArrow",lZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Cg(r),i=$a(bw,r),o=Wa(bw,r);return i.open&&o.position==="popper"?C.jsx(MC,{...s,...n,ref:e}):null});lZ.displayName=bw;function D9(t){return t===""||t===void 0}var B9=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=m.useRef(null),i=$e(e,s),o=ug(r);return m.useEffect(()=>{const a=s.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==r&&u){const f=new Event("change",{bubbles:!0});u.call(a,r),a.dispatchEvent(f)}},[o,r]),C.jsx(h1,{asChild:!0,children:C.jsx("select",{...n,ref:i,defaultValue:r})})});B9.displayName="BubbleSelect";function L9(t){const e=_r(t),r=m.useRef(""),n=m.useRef(0),s=m.useCallback(o=>{const a=r.current+o;e(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),i=m.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function j9(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=uZ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function uZ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var fZ=v9,dZ=m9,hZ=b9,pZ=w9,yZ=E9,vZ=S9,gZ=P9,mZ=R9,xZ=N9,bZ="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",wZ=At({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),EZ="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",CZ="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const kZ=m.forwardRef(({children:t,className:e,...r},n)=>C.jsx(mZ,{className:Mr(CZ,e),...r,ref:n,children:C.jsx(xZ,{children:t})})),US=m.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:s,label:i="",description:o,labelLocation:a="hidden",name:c,options:l,placeholder:u,...f}=t;return C.jsx(fd,{disabled:n,display:"grid",id:s??c,label:i,labelLocation:a,description:o,whiteSpace:"nowrap",children:C.jsxs(fZ,{disabled:n,name:c,...f,children:[C.jsxs(dZ,{id:s??c,className:Mr(bZ,wZ({borderRadius:r})),ref:e,children:[C.jsx(hZ,{placeholder:u}),C.jsx(me,{as:pZ,display:"inline-flex",children:C.jsx(wI,{})})]}),C.jsx(yZ,{className:EZ,children:C.jsx(vZ,{children:C.jsx(gZ,{children:l.map(({value:d,label:h,...y})=>C.jsx(kZ,{value:d,...y,children:h},d))})})})]})})});m.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:s="Search",name:i="search",value:o,...a}=t,c=o?C.jsx(GC,{icon:gC,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return C.jsx(ZC,{ref:e,name:i,leftIcon:Tq,controls:r||c,placeholder:s,value:o,onChange:l=>n==null?void 0:n(l),...a})});var AZ=At({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});m.forwardRef((t,e)=>{const{size:r="md",...n}=t;return C.jsx(me,{className:AZ({size:r}),color:"text50",ref:e,...n,children:C.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[C.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),C.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});m.forwardRef(({children:t},e)=>C.jsx(me,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));var i5="Switch",[SZ,Vde]=Dr(i5),[TZ,PZ]=SZ(i5),IZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,g=>d(g)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l});return C.jsxs(TZ,{scope:r,checked:b,disabled:a,children:[C.jsx(Ae.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":U9(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onClick:ce(t.onClick,g=>{v(x=>!x),p&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})}),p&&C.jsx(RZ,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});IZ.displayName=i5;var F9="SwitchThumb",OZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,s=PZ(F9,r);return C.jsx(Ae.span,{"data-state":U9(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});OZ.displayName=F9;var RZ=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=ug(r),a=fg(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),C.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function U9(t){return t?"checked":"unchecked"}At({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});var o5="Tabs",[NZ,Hde]=Dr(o5,[gd]),$9=gd(),[_Z,a5]=NZ(o5),MZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=t,u=c1(a),[f,d]=is({prop:n,onChange:s,defaultProp:i});return C.jsx(_Z,{scope:r,baseId:es(),value:f,onValueChange:d,orientation:o,dir:u,activationMode:c,children:C.jsx(Ae.div,{dir:u,"data-orientation":o,...l,ref:e})})});MZ.displayName=o5;var W9="TabsList",DZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=a5(W9,r),o=$9(r);return C.jsx(DC,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:C.jsx(Ae.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});DZ.displayName=W9;var V9="TabsTrigger",BZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,o=a5(V9,r),a=$9(r),c=z9(o.baseId,n),l=G9(o.baseId,n),u=n===o.value;return C.jsx(BC,{asChild:!0,...a,focusable:!s,active:u,children:C.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:ce(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:ce(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:ce(t.onFocus,()=>{const f=o.activationMode!=="manual";!u&&!s&&f&&o.onValueChange(n)})})})});BZ.displayName=V9;var H9="TabsContent",LZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=t,a=a5(H9,r),c=z9(a.baseId,n),l=G9(a.baseId,n),u=n===a.value,f=m.useRef(u);return m.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),C.jsx(Xr,{present:s||u,children:({present:d})=>C.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:l,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:d&&i})})});LZ.displayName=H9;function z9(t,e){return`${t}-trigger-${e}`}function G9(t,e){return`${t}-content-${e}`}var jZ="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";m.forwardRef((t,e)=>{const{icon:r,label:n,...s}=t;return C.jsxs(me,{className:jZ,ref:e,background:"buttonGlass",color:"text80",...s,children:[r&&C.jsx(r,{size:"xs"}),C.jsx(Tt,{children:n})]})});var FZ="ToastProvider",[q9,UZ,$Z]=dg("Toast"),[K9,zde]=Dr("Toast",[$Z]),[Gde,kg]=K9(FZ),Q9="ToastViewport",WZ=["F8"],ww="toast.viewportPause",Ew="toast.viewportResume",VZ=m.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=WZ,label:s="Notifications ({hotkey})",...i}=t,o=kg(Q9,r),a=UZ(r),c=m.useRef(null),l=m.useRef(null),u=m.useRef(null),f=m.useRef(null),d=$e(e,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;m.useEffect(()=>{const b=v=>{var g;n.every(k=>v[k]||v.code===k)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),m.useEffect(()=>{const b=c.current,v=f.current;if(y&&b&&v){const g=()=>{if(!o.isClosePausedRef.current){const I=new CustomEvent(ww);v.dispatchEvent(I),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const I=new CustomEvent(Ew);v.dispatchEvent(I),o.isClosePausedRef.current=!1}},k=I=>{!b.contains(I.relatedTarget)&&x()},S=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",g),b.addEventListener("focusout",k),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const p=m.useCallback(({tabbingDirection:b})=>{const g=a().map(x=>{const k=x.ref.current,S=[k,...oee(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return m.useEffect(()=>{const b=f.current;if(b){const v=g=>{var x,k,S;const I=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!I){const _=document.activeElement,V=g.shiftKey;if(g.target===b&&V){(x=l.current)==null||x.focus();return}const re=p({tabbingDirection:V?"backwards":"forwards"}),le=re.findIndex(ee=>ee===_);vx(re.slice(le+1))?g.preventDefault():V?(k=l.current)==null||k.focus():(S=u.current)==null||S.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,p]),C.jsxs(tK,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&C.jsx(Cw,{ref:l,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});vx(b)}}),C.jsx(q9.Slot,{scope:r,children:C.jsx(Ae.ol,{tabIndex:-1,...i,ref:d})}),y&&C.jsx(Cw,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});vx(b)}})]})});VZ.displayName=Q9;var J9="ToastFocusProxy",Cw=m.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=kg(J9,r);return C.jsx(h1,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var a;const c=o.relatedTarget;!((a=i.viewport)!=null&&a.contains(c))&&n()}})});Cw.displayName=J9;var Ag="Toast",HZ="toast.swipeStart",zZ="toast.swipeMove",GZ="toast.swipeCancel",qZ="toast.swipeEnd",KZ=m.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a=!0,c]=is({prop:n,defaultProp:s,onChange:i});return C.jsx(Xr,{present:r||a,children:C.jsx(YZ,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:_r(t.onPause),onResume:_r(t.onResume),onSwipeStart:ce(t.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(t.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ce(t.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(t.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});KZ.displayName=Ag;var[QZ,JZ]=K9(Ag,{onClose(){}}),YZ=m.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=t,p=kg(Ag,r),[b,v]=m.useState(null),g=$e(e,ee=>v(ee)),x=m.useRef(null),k=m.useRef(null),S=s||p.duration,I=m.useRef(0),R=m.useRef(S),_=m.useRef(0),{onToastAdd:V,onToastRemove:F}=p,X=_r(()=>{var ee;(b==null?void 0:b.contains(document.activeElement))&&((ee=p.viewport)==null||ee.focus()),o()}),re=m.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(_.current),I.current=new Date().getTime(),_.current=window.setTimeout(X,ee))},[X]);m.useEffect(()=>{const ee=p.viewport;if(ee){const D=()=>{re(R.current),l==null||l()},G=()=>{const Z=new Date().getTime()-I.current;R.current=R.current-Z,window.clearTimeout(_.current),c==null||c()};return ee.addEventListener(ww,G),ee.addEventListener(Ew,D),()=>{ee.removeEventListener(ww,G),ee.removeEventListener(Ew,D)}}},[p.viewport,S,c,l,re]),m.useEffect(()=>{i&&!p.isClosePausedRef.current&&re(S)},[i,S,p.isClosePausedRef,re]),m.useEffect(()=>(V(),()=>F()),[V,F]);const le=m.useMemo(()=>b?tR(b):null,[b]);return p.viewport?C.jsxs(C.Fragment,{children:[le&&C.jsx(XZ,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:le}),C.jsx(QZ,{scope:r,onClose:X,children:Fa.createPortal(C.jsx(q9.ItemSlot,{scope:r,children:C.jsx(eK,{asChild:!0,onEscapeKeyDown:ce(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||X(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:C.jsx(Ae.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ce(t.onKeyDown,ee=>{ee.key==="Escape"&&(a==null||a(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ce(t.onPointerDown,ee=>{ee.button===0&&(x.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:ce(t.onPointerMove,ee=>{if(!x.current)return;const D=ee.clientX-x.current.x,G=ee.clientY-x.current.y,Z=!!k.current,E=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,O=E?A(0,D):0,M=E?0:A(0,G),B=ee.pointerType==="touch"?10:2,W={x:O,y:M},q={originalEvent:ee,delta:W};Z?(k.current=W,ip(zZ,f,q,{discrete:!1})):$S(W,p.swipeDirection,B)?(k.current=W,ip(HZ,u,q,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(D)>B||Math.abs(G)>B)&&(x.current=null)}),onPointerUp:ce(t.onPointerUp,ee=>{const D=k.current,G=ee.target;if(G.hasPointerCapture(ee.pointerId)&&G.releasePointerCapture(ee.pointerId),k.current=null,x.current=null,D){const Z=ee.currentTarget,E={originalEvent:ee,delta:D};$S(D,p.swipeDirection,p.swipeThreshold)?ip(qZ,h,E,{discrete:!0}):ip(GZ,d,E,{discrete:!0}),Z.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),XZ=t=>{const{__scopeToast:e,children:r,...n}=t,s=kg(Ag,e),[i,o]=m.useState(!1),[a,c]=m.useState(!1);return see(()=>o(!0)),m.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:C.jsx(u1,{asChild:!0,children:C.jsx(h1,{...n,children:i&&C.jsxs(C.Fragment,{children:[s.label," ",r]})})})},ZZ="ToastTitle",eee=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return C.jsx(Ae.div,{...n,ref:e})});eee.displayName=ZZ;var tee="ToastDescription",ree=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return C.jsx(Ae.div,{...n,ref:e})});ree.displayName=tee;var Y9="ToastAction",nee=m.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?C.jsx(eR,{altText:r,asChild:!0,children:C.jsx(Z9,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Y9}\`. Expected non-empty \`string\`.`),null)});nee.displayName=Y9;var X9="ToastClose",Z9=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=JZ(X9,r);return C.jsx(eR,{asChild:!0,children:C.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,s.onClose)})})});Z9.displayName=X9;var eR=m.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return C.jsx(Ae.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function tR(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),iee(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...tR(n))}}),e}function ip(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?yC(s,i):s.dispatchEvent(i)}var $S=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function see(t=()=>{}){const e=_r(t);xr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function iee(t){return t.nodeType===t.ELEMENT_NODE}function oee(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function vx(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}At({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});m.createContext(null);var aee="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",cee="_15pztn2";m.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",name:u,rows:f,resize:d=!1,...h}=t;return C.jsx(fd,{description:i,disabled:o,display:"grid",id:a??u,label:c,labelLocation:l,children:C.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:Mr(aee,d&&cee),disabled:o,id:a??u,name:u,ref:e,rows:f,borderRadius:s,...h})})});var lee=At({defaultClassName:"_18h918k5 _18h918k0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"_18h918kc _18h918k2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"_18h918kd _18h918k3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"_18h918ke _18h918k4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),uee="_18h918kf";const fee=m.memo(t=>{const{chainId:e,borderRadius:r="circle",className:n,disableAnimation:s=!1,style:i,src:o,size:a="md",...c}=t,l=o||GG(qG(e),a);return C.jsx(me,{className:Mr(n,lee({borderRadius:r,size:a})),style:i,flexShrink:"0",...c,children:C.jsx(qC,{className:uee,disableAnimation:s,src:l})})});var dee=At({defaultClassName:"bnrreb1 bnrreb0 fyvr11jg fyvr11ko fyvr11hw fyvr11h0",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),hee="bnrreb7",pee="bnrreb9 bnrreb8 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const yee=m.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:s,src:i,symbol:o,size:a="md",withNetwork:c,...l}=t;return C.jsxs(me,{className:Mr(r,dee({size:a})),style:s,flexShrink:"0",...l,children:[i?C.jsx(qC,{className:hee,disableAnimation:n,borderRadius:e,overflow:"hidden",src:i}):C.jsx(Tt,{className:pee,variant:"normal",fontWeight:"medium",color:"text50",borderRadius:e,overflow:"hidden",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)}),c&&C.jsx(me,{position:"absolute",zIndex:"1",borderRadius:"circle",borderWidth:"thin",borderStyle:"solid",borderColor:"backgroundPrimary",background:"backgroundPrimary",placeItems:"center",style:{width:18,height:18,right:-2,bottom:-2},children:C.jsx(fee,{chainId:c,style:{width:16,height:16}})})]})});var[Sg,qde]=Dr("Tooltip",[vd]),Tg=vd(),rR="TooltipProvider",vee=700,kw="tooltip.open",[gee,c5]=Sg(rR),mee=t=>{const{__scopeTooltip:e,delayDuration:r=vee,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,[o,a]=m.useState(!0),c=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),C.jsx(gee,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:i})};mee.displayName=rR;var Pg="Tooltip",[xee,y1]=Sg(Pg),bee=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=c5(Pg,t.__scopeTooltip),l=Tg(e),[u,f]=m.useState(null),d=es(),h=m.useRef(0),y=o??c.disableHoverableContent,p=a??c.delayDuration,b=m.useRef(!1),[v=!1,g]=is({prop:n,defaultProp:s,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(kw))):c.onClose(),i==null||i(R)}}),x=m.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),k=m.useCallback(()=>{window.clearTimeout(h.current),b.current=!1,g(!0)},[g]),S=m.useCallback(()=>{window.clearTimeout(h.current),g(!1)},[g]),I=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,g(!0)},p)},[p,g]);return m.useEffect(()=>()=>window.clearTimeout(h.current),[]),C.jsx(RC,{...l,children:C.jsx(xee,{scope:e,contentId:d,open:v,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayed?I():k()},[c.isOpenDelayed,I,k]),onTriggerLeave:m.useCallback(()=>{y?S():window.clearTimeout(h.current)},[S,y]),onOpen:k,onClose:S,disableHoverableContent:y,children:r})})};bee.displayName=Pg;var Aw="TooltipTrigger",wee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=y1(Aw,r),i=c5(Aw,r),o=Tg(r),a=m.useRef(null),c=$e(e,a,s.onTriggerChange),l=m.useRef(!1),u=m.useRef(!1),f=m.useCallback(()=>l.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),C.jsx(NC,{asChild:!0,...o,children:C.jsx(Ae.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:ce(t.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ce(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ce(t.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ce(t.onFocus,()=>{l.current||s.onOpen()}),onBlur:ce(t.onBlur,s.onClose),onClick:ce(t.onClick,s.onClose)})})});wee.displayName=Aw;var l5="TooltipPortal",[Eee,Cee]=Sg(l5,{forceMount:void 0}),kee=t=>{const{__scopeTooltip:e,forceMount:r,children:n,container:s}=t,i=y1(l5,e);return C.jsx(Eee,{scope:e,forceMount:r,children:C.jsx(Xr,{present:r||i.open,children:C.jsx(u1,{asChild:!0,container:s,children:n})})})};kee.displayName=l5;var Wf="TooltipContent",Aee=m.forwardRef((t,e)=>{const r=Cee(Wf,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=y1(Wf,t.__scopeTooltip);return C.jsx(Xr,{present:n||o.open,children:o.disableHoverableContent?C.jsx(nR,{side:s,...i,ref:e}):C.jsx(See,{side:s,...i,ref:e})})}),See=m.forwardRef((t,e)=>{const r=y1(Wf,t.__scopeTooltip),n=c5(Wf,t.__scopeTooltip),s=m.useRef(null),i=$e(e,s),[o,a]=m.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:f}=n,d=m.useCallback(()=>{a(null),f(!1)},[f]),h=m.useCallback((y,p)=>{const b=y.currentTarget,v={x:y.clientX,y:y.clientY},g=Oee(v,b.getBoundingClientRect()),x=Ree(v,g),k=Nee(p.getBoundingClientRect()),S=Mee([...x,...k]);a(S),f(!0)},[f]);return m.useEffect(()=>()=>d(),[d]),m.useEffect(()=>{if(c&&u){const y=b=>h(b,u),p=b=>h(b,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,h,d]),m.useEffect(()=>{if(o){const y=p=>{const b=p.target,v={x:p.clientX,y:p.clientY},g=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),x=!_ee(v,o);g?d():x&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,o,l,d]),C.jsx(nR,{...t,ref:i})}),[Tee,Pee]=Sg(Pg,{isInside:!1}),nR=m.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=y1(Wf,r),l=Tg(r),{onClose:u}=c;return m.useEffect(()=>(document.addEventListener(kw,u),()=>document.removeEventListener(kw,u)),[u]),m.useEffect(()=>{if(c.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),C.jsx(hd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:C.jsxs(_C,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(yI,{children:n}),C.jsx(Tee,{scope:r,isInside:!0,children:C.jsx(WX,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Aee.displayName=Wf;var sR="TooltipArrow",Iee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Tg(r);return Pee(sR,r).isInside?null:C.jsx(MC,{...s,...n,ref:e})});Iee.displayName=sR;function Oee(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ree(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function Nee(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function _ee(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function Mee(t){const e=t.slice();return e.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),Dee(e)}function Dee(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var iR,WS=Fa;iR=WS.createRoot,WS.hydrateRoot;const u5="6.13.2";function Bee(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[n])))).reduce((n,s,i)=>(n[e[i]]=s,n),{})}function fe(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&Bee(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function du(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(du).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return du(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${du(r)}: ${du(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ht(t,e){return t&&t.code===e}function Ig(t){return Ht(t,"CALL_EXCEPTION")}function ft(t,e,r){let n=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${du(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+du(a))}}i.push(`code=${e}`),i.push(`version=${u5}`),i.length&&(t+=" ("+i.join(", ")+")")}let s;switch(e){case"INVALID_ARGUMENT":s=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(t);break;default:s=new Error(t)}return fe(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&fe(s,{shortMessage:n}),s}function z(t,e,r,n){if(!t)throw ft(e,r,n)}function P(t,e,r,n){z(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function f5(t,e,r){r==null&&(r=""),r&&(r=": "+r),z(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),z(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const Lee=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"Ć©".normalize("NFD")!=="eĢ")throw new Error("broken");t.push(e)}catch{}return t},[]);function d5(t){z(Lee.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function yo(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),z(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function oR(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+VS[s&15]}return r}function Le(t){return"0x"+t.map(e=>H(e).substring(2)).join("")}function ba(t){return et(t,!0)?(t.length-2)/2:Q(t).length}function st(t,e,r){const n=Q(t);return r!=null&&r>n.length&&z(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),H(n.slice(e??0,r??n.length))}function jee(t){let e=H(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function aR(t,e,r){const n=Q(t);z(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),r?s.set(n,e-n.length):s.set(n,0),H(s)}function rs(t,e){return aR(t,e,!0)}function Og(t,e){return aR(t,e,!1)}const Rg=BigInt(0),ks=BigInt(1),hu=9007199254740991;function p0(t,e){const r=v1(t,"value"),n=BigInt(Pe(e,"width"));if(z(r>>n===Rg,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-ks){const s=(ks<=-hu&&t<=hu,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){P(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}P(!1,"invalid BigNumberish value",e||"value",t)}function v1(t,e){const r=ve(t,e);return z(r>=Rg,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const HS="0123456789abcdef";function xd(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=HS[r>>4],e+=HS[r&15];return BigInt(e)}return ve(t)}function Pe(t,e){switch(typeof t){case"bigint":return P(t>=-hu&&t<=hu,"overflow",e||"value",t),Number(t);case"number":return P(Number.isInteger(t),"underflow",e||"value",t),P(t>=-hu&&t<=hu,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return Pe(BigInt(t),e)}catch(r){P(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}P(!1,"invalid numeric value",e||"value",t)}function cR(t){return Pe(xd(t))}function In(t,e){let n=v1(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const s=Pe(e,"width");for(z(s*2>=n.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function Wee(t,e,r,n,s){return t==="OVERLONG"?(P(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),dR(t,e,r))}const hR=Object.freeze({error:$ee,ignore:dR,replace:Wee});function pR(t,e){e==null&&(e=hR.error);const r=Q(t,"bytes"),n=[];let s=0;for(;s>7)){n.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,r,n):s+=e("BAD_PREFIX",s-1,r,n);continue}if(s-1+o>=r.length){s+=e("OVERRUN",s-1,r,n);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=e("OUT_OF_RANGE",s-1-o,r,n,c);continue}if(c>=55296&&c<=57343){s+=e("UTF16_SURROGATE",s-1-o,r,n,c);continue}if(c<=a){s+=e("OVERLONG",s-1-o,r,n,c);continue}n.push(c)}}return n}function mt(t,e){P(typeof t=="string","invalid string value","str",t),e!=null&&(d5(e),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);P(n>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return new Uint8Array(r)}function Vee(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ds(t,e){return Vee(pR(t,e))}function Hee(t,e){return pR(mt(t,e))}function yR(t){async function e(r,n){z(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();z(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),z(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=ft("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=ft("request cancelled","CANCELLED"),o.abort()});const c={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o.signal};let l;try{l=await fetch(r.url,c)}catch(h){throw clearTimeout(a),i||h}clearTimeout(a);const u={};l.headers.forEach((h,y)=>{u[y.toLowerCase()]=h});const f=await l.arrayBuffer(),d=f==null?null:new Uint8Array(f);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:d}}return e}const zee=12,Gee=250;let zS=yR();const qee=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Kee=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let gx=!1;async function vR(t,e){try{const r=t.match(qee);if(!r)throw new Error("invalid data");return new Zi(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?uR(r[3]):Qee(r[3]))}catch{return new Zi(599,"BAD REQUEST (invalid data: URI)",{},null,new qt(t))}}function gR(t){async function e(r,n){try{const s=r.match(Kee);if(!s)throw new Error("invalid link");return new qt(`${t}${s[2]}`)}catch{return new Zi(599,"BAD REQUEST (invalid IPFS URI)",{},null,new qt(r))}}return e}const ap={data:vR,ipfs:gR("https://gateway.ipfs.io/ipfs/")},mR=new WeakMap;var Cc,Fo;class xR{constructor(e){j(this,Cc);j(this,Fo);T(this,Cc,[]),T(this,Fo,!1),mR.set(e,()=>{if(!w(this,Fo)){T(this,Fo,!0);for(const r of w(this,Cc))setTimeout(()=>{r()},0);T(this,Cc,[])}})}addListener(e){z(!w(this,Fo),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),w(this,Cc).push(e)}get cancelled(){return w(this,Fo)}checkSignal(){z(!this.cancelled,"cancelled","CANCELLED",{})}}Cc=new WeakMap,Fo=new WeakMap;function cp(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var Uu,$u,vs,Oi,Wu,Vu,Jt,xn,Ri,kc,Ac,Sc,Qs,gs,Uo,Tc,eh;const Rv=class Rv{constructor(e){j(this,Tc);j(this,Uu);j(this,$u);j(this,vs);j(this,Oi);j(this,Wu);j(this,Vu);j(this,Jt);j(this,xn);j(this,Ri);j(this,kc);j(this,Ac);j(this,Sc);j(this,Qs);j(this,gs);j(this,Uo);T(this,Vu,String(e)),T(this,Uu,!1),T(this,$u,!0),T(this,vs,{}),T(this,Oi,""),T(this,Wu,3e5),T(this,gs,{slotInterval:Gee,maxAttempts:zee}),T(this,Uo,null)}get url(){return w(this,Vu)}set url(e){T(this,Vu,String(e))}get body(){return w(this,Jt)==null?null:new Uint8Array(w(this,Jt))}set body(e){if(e==null)T(this,Jt,void 0),T(this,xn,void 0);else if(typeof e=="string")T(this,Jt,mt(e)),T(this,xn,"text/plain");else if(e instanceof Uint8Array)T(this,Jt,e),T(this,xn,"application/octet-stream");else if(typeof e=="object")T(this,Jt,mt(JSON.stringify(e))),T(this,xn,"application/json");else throw new Error("invalid body")}hasBody(){return w(this,Jt)!=null}get method(){return w(this,Oi)?w(this,Oi):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),T(this,Oi,String(e).toUpperCase())}get headers(){const e=Object.assign({},w(this,vs));return w(this,Ri)&&(e.authorization=`Basic ${fR(mt(w(this,Ri)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&w(this,xn)&&(e["content-type"]=w(this,xn)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){w(this,vs)[String(e).toLowerCase()]=String(r)}clearHeaders(){T(this,vs,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),T(this,Wu,e)}get preflightFunc(){return w(this,kc)||null}set preflightFunc(e){T(this,kc,e)}get processFunc(){return w(this,Ac)||null}set processFunc(e){T(this,Ac,e)}get retryFunc(){return w(this,Sc)||null}set retryFunc(e){T(this,Sc,e)}get getUrlFunc(){return w(this,Uo)||zS}set getUrlFunc(e){T(this,Uo,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(w(this,gs).slotInterval=e.slotInterval),e.maxAttempts!=null&&(w(this,gs).maxAttempts=e.maxAttempts)}send(){return z(w(this,Qs)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),T(this,Qs,new xR(this)),Y(this,Tc,eh).call(this,0,GS()+this.timeout,0,this,new Zi(0,"",{},null,this))}cancel(){z(w(this,Qs)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=mR.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();z(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new Rv(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,T(s,vs,Object.assign({},w(this,vs))),w(this,Jt)&&T(s,Jt,new Uint8Array(w(this,Jt))),T(s,xn,w(this,xn)),s}clone(){const e=new Rv(this.url);return T(e,Oi,w(this,Oi)),w(this,Jt)&&T(e,Jt,w(this,Jt)),T(e,xn,w(this,xn)),T(e,vs,Object.assign({},w(this,vs))),T(e,Ri,w(this,Ri)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),T(e,kc,w(this,kc)),T(e,Ac,w(this,Ac)),T(e,Sc,w(this,Sc)),T(e,gs,Object.assign({},w(this,gs))),T(e,Uo,w(this,Uo)),e}static lockConfig(){gx=!0}static getGateway(e){return ap[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(gx)throw new Error("gateways locked");ap[e]=r}static registerGetUrl(e){if(gx)throw new Error("gateways locked");zS=e}static createGetUrlFunc(e){return yR()}static createDataGateway(){return vR}static createIpfsGatewayFunc(e){return gR(e)}};Uu=new WeakMap,$u=new WeakMap,vs=new WeakMap,Oi=new WeakMap,Wu=new WeakMap,Vu=new WeakMap,Jt=new WeakMap,xn=new WeakMap,Ri=new WeakMap,kc=new WeakMap,Ac=new WeakMap,Sc=new WeakMap,Qs=new WeakMap,gs=new WeakMap,Uo=new WeakMap,Tc=new WeakSet,eh=async function(e,r,n,s,i){var u,f,d;if(e>=w(this,gs).maxAttempts)return i.makeServerError("exceeded maximum retry limit");z(GS()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),n>0&&await Jee(n);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in ap){const h=await ap[a](o.url,cp(w(s,Qs)));if(h instanceof Zi){let y=h;if(this.processFunc){cp(w(s,Qs));try{y=await this.processFunc(o,y)}catch(p){(p.throttle==null||typeof p.stall!="number")&&y.makeServerError("error in post-processing function",p).assertOk()}}return y}o=h}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,cp(w(s,Qs)));let l=new Zi(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const h=l.headers.location||"";return Y(u=o.redirect(h),Tc,eh).call(u,e+1,r,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,e))){const h=l.headers["retry-after"];let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(y=parseInt(h)),Y(f=o.clone(),Tc,eh).call(f,e+1,r,y,s,l)}if(this.processFunc){cp(w(s,Qs));try{l=await this.processFunc(o,l)}catch(h){(h.throttle==null||typeof h.stall!="number")&&l.makeServerError("error in post-processing function",h).assertOk();let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return h.stall>=0&&(y=h.stall),Y(d=o.clone(),Tc,eh).call(d,e+1,r,y,s,l)}}return l};let qt=Rv;var D0,B0,L0,bn,Hu,Pc;const $k=class $k{constructor(e,r,n,s,i){j(this,D0);j(this,B0);j(this,L0);j(this,bn);j(this,Hu);j(this,Pc);T(this,D0,e),T(this,B0,r),T(this,L0,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),T(this,bn,s==null?null:new Uint8Array(s)),T(this,Hu,i||null),T(this,Pc,{message:""})}toString(){return``}get statusCode(){return w(this,D0)}get statusMessage(){return w(this,B0)}get headers(){return Object.assign({},w(this,L0))}get body(){return w(this,bn)==null?null:new Uint8Array(w(this,bn))}get bodyText(){try{return w(this,bn)==null?"":Ds(w(this,bn))}catch{z(!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{z(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw fe(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return w(this,bn)!=null}get request(){return w(this,Hu)}ok(){return w(this,Pc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=w(this,Pc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{w(this,bn)&&(s=Ds(w(this,bn)))}catch{}z(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};D0=new WeakMap,B0=new WeakMap,L0=new WeakMap,bn=new WeakMap,Hu=new WeakMap,Pc=new WeakMap;let Zi=$k;function GS(){return new Date().getTime()}function Qee(t){return mt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function Jee(t){return new Promise(e=>setTimeout(e,t))}const Yee=BigInt(-1),fs=BigInt(0),pu=BigInt(1),Xee=BigInt(5),Bl={};let Ou="0000";for(;Ou.length<80;)Ou+=Ou;function Ya(t){let e=Ou;for(;e.length=-s&&tfs?t=p0(ca(t,n),n):t=-p0(ca(-t,n),n)}else{const s=pu<=0&&ti[a]==null?l:(P(typeof i[a]===c,"invalid fixed format ("+a+" not "+c+")","format."+a,i[a]),i[a]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}P(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),P(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);const s=(e?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:e,width:r,decimals:n,name:s}}function Zee(t,e){let r="";t0?n*=Ya(s):s<0&&(r*=Ya(-s)),rn?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=w(this,nt);return w(this,nt)fs&&(e+=w(this,Lr)-pu),e=w(this,nt)/w(this,Lr)*w(this,Lr),Y(this,Xe,Ei).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=Xee*Ya(r-1);let s=this.value+n;const i=Ya(r);return s=s/i*i,Fd(s,w(this,ms),"round"),new Bo(Bl,s,w(this,ms))}isZero(){return w(this,nt)===fs}isNegative(){return w(this,nt)0){const c=Ya(a);z(o%c===fs,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Ya(-a));return Fd(o,i,"fromValue"),new Bo(Bl,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);P(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=mx(r);let i=n[2]||"0",o=n[3]||"";for(;o.length{z(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const s=qS(t,e+1,n);return r(e+1+n+s),KS(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),KS(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=qS(t,e+1,n);r(e+1+n+s);const i=H(t.slice(e+1+n,e+1+n+s));return{consumed:1+n+s,result:i}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const s=H(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:ete(t[e])}}function g1(t){const e=Q(t,"data"),r=bR(e,0);return P(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function QS(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function wR(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(wR(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=QS(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(Q(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=QS(e.length);return r.unshift(183+r.length),r.concat(e)}const JS="0123456789abcdef";function Na(t){let e="0x";for(const r of wR(t))e+=JS[r>>4],e+=JS[r&15];return e}const ER=["wei","kwei","mwei","gwei","szabo","finney","ether"];function CR(t,e){let r=18;if(typeof e=="string"){const n=ER.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return y0.fromValue(t,r,{decimals:r,width:512}).toString()}function nv(t,e){P(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=ER.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return y0.fromString(t,{decimals:r,width:512}).value}function tte(t){return CR(t,18)}function Rw(t){return nv(t,18)}function kR(t){const e=Q(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=H(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Hr=32,Nw=new Uint8Array(Hr),rte=["then"],lp={},AR=new WeakMap;function ac(t){return AR.get(t)}function YS(t,e){AR.set(t,e)}function Ud(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function _w(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof pl?_w(ac(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof pl&&(o=_w(ac(o),o,r)),n[s]=o),n},{})}var zu;const gu=class gu extends Array{constructor(...r){const n=r[0];let s=r[1],i=(r[2]||[]).slice(),o=!0;n!==lp&&(s=r,i=[],o=!1);super(s.length);j(this,zu);s.forEach((l,u)=>{this[u]=l});const a=i.reduce((l,u)=>(typeof u=="string"&&l.set(u,(l.get(u)||0)+1),l),new Map);if(YS(this,Object.freeze(s.map((l,u)=>{const f=i[u];return f!=null&&a.get(f)===1?f:null}))),T(this,zu,[]),w(this,zu)==null&&w(this,zu),!o)return;Object.freeze(this);const c=new Proxy(this,{get:(l,u,f)=>{if(typeof u=="string"){if(u.match(/^[0-9]+$/)){const h=Pe(u,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const y=l[h];return y instanceof Error&&Ud(`index ${h}`,y),y}if(rte.indexOf(u)>=0)return Reflect.get(l,u,f);const d=l[u];if(d instanceof Function)return function(...h){return d.apply(this===f?l:this,h)};if(!(u in l))return l.getValue.apply(this===f?l:this,[u])}return Reflect.get(l,u,f)}});return YS(c,ac(this)),c}toArray(r){const n=[];return this.forEach((s,i)=>{s instanceof Error&&Ud(`index ${i}`,s),r&&s instanceof gu&&(s=s.toArray(r)),n.push(s)}),n}toObject(r){const n=ac(this);return n.reduce((s,i,o)=>(z(i!=null,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),_w(n,this,r)),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const s=ac(this),i=[],o=[];for(let a=r;a{w(this,Ni)[e]=XS(r)}}}Ni=new WeakMap,Ic=new WeakMap,Gu=new WeakSet,Hp=function(e){return w(this,Ni).push(e),T(this,Ic,w(this,Ic)+e.length),e.length};var rn,wn,Oc,Rc,$o,Cl,Bw,SR;const Wk=class Wk{constructor(e,r,n){j(this,Cl);N(this,"allowLoose");j(this,rn);j(this,wn);j(this,Oc);j(this,Rc);j(this,$o);fe(this,{allowLoose:!!r}),T(this,rn,tr(e)),T(this,Oc,0),T(this,Rc,null),T(this,$o,n??1024),T(this,wn,0)}get data(){return H(w(this,rn))}get dataLength(){return w(this,rn).length}get consumed(){return w(this,wn)}get bytes(){return new Uint8Array(w(this,rn))}subReader(e){const r=new Wk(w(this,rn).slice(w(this,wn)+e),this.allowLoose,w(this,$o));return T(r,Rc,this),r}readBytes(e,r){let n=Y(this,Cl,SR).call(this,0,e,!!r);return Y(this,Cl,Bw).call(this,e),T(this,wn,w(this,wn)+n.length),n.slice(0,e)}readValue(){return xd(this.readBytes(Hr))}readIndex(){return cR(this.readBytes(Hr))}};rn=new WeakMap,wn=new WeakMap,Oc=new WeakMap,Rc=new WeakMap,$o=new WeakMap,Cl=new WeakSet,Bw=function(e){var r;if(w(this,Rc))return Y(r=w(this,Rc),Cl,Bw).call(r,e);T(this,Oc,w(this,Oc)+e),z(w(this,$o)<1||w(this,Oc)<=w(this,$o)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${w(this,$o)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:tr(w(this,rn)),offset:w(this,wn),length:e,info:{bytesRead:w(this,Oc),dataLength:this.dataLength}})},SR=function(e,r,n){let s=Math.ceil(r/Hr)*Hr;return w(this,wn)+s>w(this,rn).length&&(this.allowLoose&&n&&w(this,wn)+r<=w(this,rn).length?s=r:z(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:tr(w(this,rn)),length:w(this,rn).length,offset:w(this,wn)+s})),w(this,rn).slice(w(this,wn),w(this,wn)+s)};let Dw=Wk;function An(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function y5(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function TR(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");An(t.outputLen),An(t.blockLen)}function Vf(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function PR(t,e){y5(t);const r=e.outputLen;if(t.lengtht instanceof Uint8Array,zp=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Gp=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ws=(t,e)=>t<<32-e|t>>>e,ste=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!ste)throw new Error("Non little-endian hardware is not supported");const ite=async()=>{};async function ZS(t,e,r){let n=Date.now();for(let s=0;s=0&&in+s.length,0));let r=0;return t.forEach(n=>{if(!IR(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}let v5=class{clone(){return this._cloneInto()}};const cte={}.toString;function OR(t,e){if(e!==void 0&&cte.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function _g(t){const e=n=>t().update(Hf(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function lte(t=32){if(xx&&typeof xx.getRandomValues=="function")return xx.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class RR extends v5{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,TR(e);const n=Hf(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,i=new Uint8Array(s);i.set(n.length>s?e.create().update(n).digest():n);for(let o=0;onew RR(t,e).update(r).digest();Mg.create=(t,e)=>new RR(t,e);function ute(t,e,r,n){TR(t);const s=OR({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(An(i),An(o),An(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Hf(e),l=Hf(r),u=new Uint8Array(o),f=Mg.create(t,c),d=f._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:f,PRFSalt:d}}function fte(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function g5(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=ute(t,e,r,n);let l;const u=new Uint8Array(4),f=Gp(u),d=new Uint8Array(a.outputLen);for(let h=1,y=0;y>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}class m5 extends v5{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Gp(this.buffer)}update(e){Vf(this);const{view:r,buffer:n,blockLen:s}=this;e=Hf(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;ft&e^~t&r,pte=(t,e,r)=>t&e^t&r^e&r,yte=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]),Eo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Co=new Uint32Array(64);let vte=class extends m5{constructor(){super(64,32,8,!1),this.A=Eo[0]|0,this.B=Eo[1]|0,this.C=Eo[2]|0,this.D=Eo[3]|0,this.E=Eo[4]|0,this.F=Eo[5]|0,this.G=Eo[6]|0,this.H=Eo[7]|0}get(){const{A:e,B:r,C:n,D:s,E:i,F:o,G:a,H:c}=this;return[e,r,n,s,i,o,a,c]}set(e,r,n,s,i,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Co[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){const d=Co[f-15],h=Co[f-2],y=Ws(d,7)^Ws(d,18)^d>>>3,p=Ws(h,17)^Ws(h,19)^h>>>10;Co[f]=p+Co[f-7]+y+Co[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Ws(a,6)^Ws(a,11)^Ws(a,25),h=u+d+hte(a,c,l)+yte[f]+Co[f]|0,p=(Ws(n,2)^Ws(n,13)^Ws(n,22))+pte(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){Co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const bd=_g(()=>new vte),up=BigInt(2**32-1),Lw=BigInt(32);function NR(t,e=!1){return e?{h:Number(t&up),l:Number(t>>Lw&up)}:{h:Number(t>>Lw&up)|0,l:Number(t&up)|0}}function _R(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0),mte=(t,e,r)=>t>>>r,xte=(t,e,r)=>t<<32-r|e>>>r,bte=(t,e,r)=>t>>>r|e<<32-r,wte=(t,e,r)=>t<<32-r|e>>>r,Ete=(t,e,r)=>t<<64-r|e>>>r-32,Cte=(t,e,r)=>t>>>r-32|e<<64-r,kte=(t,e)=>e,Ate=(t,e)=>t,MR=(t,e,r)=>t<>>32-r,DR=(t,e,r)=>e<>>32-r,BR=(t,e,r)=>e<>>64-r,LR=(t,e,r)=>t<>>64-r;function Ste(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Tte=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Pte=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Ite=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Ote=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Rte=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Nte=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Me={fromBig:NR,split:_R,toBig:gte,shrSH:mte,shrSL:xte,rotrSH:bte,rotrSL:wte,rotrBH:Ete,rotrBL:Cte,rotr32H:kte,rotr32L:Ate,rotlSH:MR,rotlSL:DR,rotlBH:BR,rotlBL:LR,add:Ste,add3L:Tte,add3H:Pte,add4L:Ite,add4H:Ote,add5H:Nte,add5L:Rte},[_te,Mte]=Me.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),ko=new Uint32Array(80),Ao=new Uint32Array(80);class Dte extends m5{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:o,Dh:a,Dl:c,Eh:l,El:u,Fh:f,Fl:d,Gh:h,Gl:y,Hh:p,Hl:b}=this;return[e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b]}set(e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=f|0,this.Fl=d|0,this.Gh=h|0,this.Gl=y|0,this.Hh=p|0,this.Hl=b|0}process(e,r){for(let x=0;x<16;x++,r+=4)ko[x]=e.getUint32(r),Ao[x]=e.getUint32(r+=4);for(let x=16;x<80;x++){const k=ko[x-15]|0,S=Ao[x-15]|0,I=Me.rotrSH(k,S,1)^Me.rotrSH(k,S,8)^Me.shrSH(k,S,7),R=Me.rotrSL(k,S,1)^Me.rotrSL(k,S,8)^Me.shrSL(k,S,7),_=ko[x-2]|0,V=Ao[x-2]|0,F=Me.rotrSH(_,V,19)^Me.rotrBH(_,V,61)^Me.shrSH(_,V,6),X=Me.rotrSL(_,V,19)^Me.rotrBL(_,V,61)^Me.shrSL(_,V,6),re=Me.add4L(R,X,Ao[x-7],Ao[x-16]),le=Me.add4H(re,I,F,ko[x-7],ko[x-16]);ko[x]=le|0,Ao[x]=re|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:f,El:d,Fh:h,Fl:y,Gh:p,Gl:b,Hh:v,Hl:g}=this;for(let x=0;x<80;x++){const k=Me.rotrSH(f,d,14)^Me.rotrSH(f,d,18)^Me.rotrBH(f,d,41),S=Me.rotrSL(f,d,14)^Me.rotrSL(f,d,18)^Me.rotrBL(f,d,41),I=f&h^~f&p,R=d&y^~d&b,_=Me.add5L(g,S,R,Mte[x],Ao[x]),V=Me.add5H(_,v,k,I,_te[x],ko[x]),F=_|0,X=Me.rotrSH(n,s,28)^Me.rotrBH(n,s,34)^Me.rotrBH(n,s,39),re=Me.rotrSL(n,s,28)^Me.rotrBL(n,s,34)^Me.rotrBL(n,s,39),le=n&i^n&a^i&a,ee=s&o^s&c^o&c;v=p|0,g=b|0,p=h|0,b=y|0,h=f|0,y=d|0,{h:f,l:d}=Me.add(l|0,u|0,V|0,F|0),l=a|0,u=c|0,a=i|0,c=o|0,i=n|0,o=s|0;const D=Me.add3L(F,re,ee);n=Me.add3H(D,V,X,le),s=D|0}({h:n,l:s}=Me.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Me.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Me.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Me.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:f,l:d}=Me.add(this.Eh|0,this.El|0,f|0,d|0),{h,l:y}=Me.add(this.Fh|0,this.Fl|0,h|0,y|0),{h:p,l:b}=Me.add(this.Gh|0,this.Gl|0,p|0,b|0),{h:v,l:g}=Me.add(this.Hh|0,this.Hl|0,v|0,g|0),this.set(n,s,i,o,a,c,l,u,f,d,h,y,p,b,v,g)}roundClean(){ko.fill(0),Ao.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)}}const x5=_g(()=>new Dte);function Bte(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const e8=Bte(),t8=e8.crypto||e8.msCrypto;function jR(t){switch(t){case"sha256":return bd.create();case"sha512":return x5.create()}P(!1,"invalid hashing algorithm name","algorithm",t)}function Lte(t,e){const r={sha256:bd,sha512:x5}[t];return P(r!=null,"invalid hmac algorithm","algorithm",t),Mg.create(r,e)}function jte(t,e,r,n,s){const i={sha256:bd,sha512:x5}[s];return P(i!=null,"invalid pbkdf2 algorithm","algorithm",s),g5(i,t,e,{c:r,dkLen:n})}function Fte(t){z(t8!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),P(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return t8.getRandomValues(e),e}let FR=!1;const UR=function(t,e,r){return Lte(t,e).update(r).digest()};let $R=UR;function Va(t,e,r){const n=Q(e,"key"),s=Q(r,"data");return H($R(t,n,s))}Va._=UR;Va.lock=function(){FR=!0};Va.register=function(t){if(FR)throw new Error("computeHmac is locked");$R=t};Object.freeze(Va);const[WR,VR,HR]=[[],[],[]],Ute=BigInt(0),$d=BigInt(1),$te=BigInt(2),Wte=BigInt(7),Vte=BigInt(256),Hte=BigInt(113);for(let t=0,e=$d,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],WR.push(2*(5*n+r)),VR.push((t+1)*(t+2)/2%64);let s=Ute;for(let i=0;i<7;i++)e=(e<<$d^(e>>Wte)*Hte)%Vte,e&$te&&(s^=$d<<($d<r>32?BR(t,e,r):MR(t,e,r),n8=(t,e,r)=>r>32?LR(t,e,r):DR(t,e,r);function qte(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],f=r8(l,u,1)^r[a],d=n8(l,u,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=d}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=VR[o],c=r8(s,i,a),l=n8(s,i,a),u=WR[o];s=t[u],i=t[u+1],t[u]=c,t[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=zte[n],t[1]^=Gte[n]}r.fill(0)}class b5 extends v5{constructor(e,r,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,An(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=zp(this.state)}keccak(){qte(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Vf(this);const{blockLen:r,state:n}=this;e=Hf(e);const s=e.length;for(let i=0;i=n&&this.keccak();const o=Math.min(n-this.posOut,i-s);e.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return An(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(PR(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new b5(r,n,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Kte=(t,e,r)=>_g(()=>new b5(e,t,r)),Qte=Kte(1,136,256/8);let zR=!1;const GR=function(t){return Qte(t)};let qR=GR;function _e(t){const e=Q(t,"data");return H(qR(e))}_e._=GR;_e.lock=function(){zR=!0};_e.register=function(t){if(zR)throw new TypeError("keccak256 is locked");qR=t};Object.freeze(_e);const Jte=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),KR=Uint8Array.from({length:16},(t,e)=>e),Yte=KR.map(t=>(9*t+5)%16);let w5=[KR],E5=[Yte];for(let t=0;t<4;t++)for(let e of[w5,E5])e.push(e[t].map(r=>Jte[r]));const QR=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),Xte=w5.map((t,e)=>t.map(r=>QR[e][r])),Zte=E5.map((t,e)=>t.map(r=>QR[e][r])),ere=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),tre=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),fp=(t,e)=>t<>>32-e;function s8(t,e,r,n){return t===0?e^r^n:t===1?e&r|~e&n:t===2?(e|~r)^n:t===3?e&n|r&~n:e^(r|~n)}const dp=new Uint32Array(16);class rre extends m5{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:r,h2:n,h3:s,h4:i}=this;return[e,r,n,s,i]}set(e,r,n,s,i){this.h0=e|0,this.h1=r|0,this.h2=n|0,this.h3=s|0,this.h4=i|0}process(e,r){for(let h=0;h<16;h++,r+=4)dp[h]=e.getUint32(r,!0);let n=this.h0|0,s=n,i=this.h1|0,o=i,a=this.h2|0,c=a,l=this.h3|0,u=l,f=this.h4|0,d=f;for(let h=0;h<5;h++){const y=4-h,p=ere[h],b=tre[h],v=w5[h],g=E5[h],x=Xte[h],k=Zte[h];for(let S=0;S<16;S++){const I=fp(n+s8(h,i,a,l)+dp[v[S]]+p,x[S])+f|0;n=f,f=l,l=fp(a,10)|0,a=i,i=I}for(let S=0;S<16;S++){const I=fp(s+s8(y,o,c,u)+dp[g[S]]+b,k[S])+d|0;s=d,d=u,u=fp(c,10)|0,c=o,o=I}}this.set(this.h1+a+u|0,this.h2+l+d|0,this.h3+f+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){dp.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const nre=_g(()=>new rre);let JR=!1;const YR=function(t){return nre(t)};let XR=YR;function Ha(t){const e=Q(t,"data");return H(XR(e))}Ha._=YR;Ha.lock=function(){JR=!0};Ha.register=function(t){if(JR)throw new TypeError("ripemd160 is locked");XR=t};Object.freeze(Ha);let ZR=!1;const eN=function(t,e,r,n,s){return jte(t,e,r,n,s)};let tN=eN;function bi(t,e,r,n,s){const i=Q(t,"password"),o=Q(e,"salt");return H(tN(i,o,r,n,s))}bi._=eN;bi.lock=function(){ZR=!0};bi.register=function(t){if(ZR)throw new Error("pbkdf2 is locked");tN=t};Object.freeze(bi);let rN=!1;const nN=function(t){return new Uint8Array(Fte(t))};let sN=nN;function Rr(t){return sN(t)}Rr._=nN;Rr.lock=function(){rN=!0};Rr.register=function(t){if(rN)throw new Error("randomBytes is locked");sN=t};Object.freeze(Rr);const qe=(t,e)=>t<>>32-e;function i8(t,e,r,n,s,i){let o=t[e++]^r[n++],a=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],f=t[e++]^r[n++],d=t[e++]^r[n++],h=t[e++]^r[n++],y=t[e++]^r[n++],p=t[e++]^r[n++],b=t[e++]^r[n++],v=t[e++]^r[n++],g=t[e++]^r[n++],x=t[e++]^r[n++],k=t[e++]^r[n++],S=t[e++]^r[n++],I=o,R=a,_=c,V=l,F=u,X=f,re=d,le=h,ee=y,D=p,G=b,Z=v,E=g,A=x,O=k,M=S;for(let B=0;B<8;B+=2)F^=qe(I+E|0,7),ee^=qe(F+I|0,9),E^=qe(ee+F|0,13),I^=qe(E+ee|0,18),D^=qe(X+R|0,7),A^=qe(D+X|0,9),R^=qe(A+D|0,13),X^=qe(R+A|0,18),O^=qe(G+re|0,7),_^=qe(O+G|0,9),re^=qe(_+O|0,13),G^=qe(re+_|0,18),V^=qe(M+Z|0,7),le^=qe(V+M|0,9),Z^=qe(le+V|0,13),M^=qe(Z+le|0,18),R^=qe(I+V|0,7),_^=qe(R+I|0,9),V^=qe(_+R|0,13),I^=qe(V+_|0,18),re^=qe(X+F|0,7),le^=qe(re+X|0,9),F^=qe(le+re|0,13),X^=qe(F+le|0,18),Z^=qe(G+D|0,7),ee^=qe(Z+G|0,9),D^=qe(ee+Z|0,13),G^=qe(D+ee|0,18),E^=qe(M+O|0,7),A^=qe(E+M|0,9),O^=qe(A+E|0,13),M^=qe(O+A|0,18);s[i++]=o+I|0,s[i++]=a+R|0,s[i++]=c+_|0,s[i++]=l+V|0,s[i++]=u+F|0,s[i++]=f+X|0,s[i++]=d+re|0,s[i++]=h+le|0,s[i++]=y+ee|0,s[i++]=p+D|0,s[i++]=b+G|0,s[i++]=v+Z|0,s[i++]=g+E|0,s[i++]=x+A|0,s[i++]=k+O|0,s[i++]=S+M|0}function Ru(t,e,r,n,s){let i=n+0,o=n+16*s;for(let a=0;a<16;a++)r[o+a]=t[e+(2*s-1)*16+a];for(let a=0;a0&&(o+=16),i8(r,i,t,e+=16,r,o)}function iN(t,e,r){const n=OR({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(An(s),An(i),An(o),An(a),An(c),An(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const f=128*i,d=f/4;if(s<=1||s&s-1||s>=2**(f/8)||s>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(o<0||o>(2**32-1)*32/f)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=f*(s+o);if(h>l)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${l} (maxmem)`);const y=g5(bd,t,e,{c:1,dkLen:f*o}),p=zp(y),b=zp(new Uint8Array(f*s)),v=zp(new Uint8Array(f));let g=()=>{};if(u){const x=2*s*o,k=Math.max(Math.floor(x/1e4),1);let S=0;g=()=>{S++,u&&(!(S%k)||S===x)&&u(S/x)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:d,V:b,B32:p,B:y,tmp:v,blockMixCb:g,asyncTick:c}}function oN(t,e,r,n,s){const i=g5(bd,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function sre(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:f,blockMixCb:d}=iN(t,e,r);for(let h=0;h{Ru(c,b,c,b+=a,s),d()}),Ru(c,(n-1)*a,l,p,s),d(),await ZS(n,h,()=>{const v=l[p+a-16]%n;for(let g=0;gt instanceof Uint8Array,are=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function zf(t){if(!Bg(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rn+s.length,0));let r=0;return t.forEach(n=>{if(!Bg(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function lre(t,e){if(t.length!==e.length)return!1;for(let r=0;rxN;t>>=Dg,e+=1);return e}function dre(t,e){return t>>BigInt(e)&Dg}const hre=(t,e,r)=>t|(r?Dg:xN)<(ore<new Uint8Array(t),o8=t=>Uint8Array.from(t);function wN(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=bx(t),s=bx(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...f)=>r(s,n,...f),c=(f=bx())=>{s=a(o8([0]),f),n=a(),f.length!==0&&(s=a(o8([1]),f),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const d=[];for(;f{o(),c(f);let h;for(;!(h=d(l()));)c();return o(),h}}const pre={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function x1(t,e,r={}){const n=(s,i,o)=>{const a=pre[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[s];if(!(o&&c===void 0)&&!a(c,t))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(e))n(s,i,!1);for(const[s,i]of Object.entries(r))n(s,i,!0);return t}const yre=Object.freeze(Object.defineProperty({__proto__:null,bitGet:dre,bitLen:fre,bitMask:S5,bitSet:hre,bytesToHex:zf,bytesToNumberBE:Zc,bytesToNumberLE:k5,concatBytes:v0,createHmacDrbg:wN,ensureBytes:ys,equalBytes:lre,hexToBytes:Gf,hexToNumber:C5,numberToBytesBE:qf,numberToBytesLE:A5,numberToHexUnpadded:bN,numberToVarBytesBE:cre,utf8ToBytes:ure,validateObject:x1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nr=BigInt(0),Mt=BigInt(1),cc=BigInt(2),vre=BigInt(3),jw=BigInt(4),a8=BigInt(5),c8=BigInt(8);BigInt(9);BigInt(16);function on(t,e){const r=t%e;return r>=nr?r:e+r}function gre(t,e,r){if(r<=nr||e 0");if(r===Mt)return nr;let n=Mt;for(;e>nr;)e&Mt&&(n=n*t%r),t=t*t%r,e>>=Mt;return n}function Dn(t,e,r){let n=t;for(;e-- >nr;)n*=n,n%=r;return n}function Fw(t,e){if(t===nr||e<=nr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=on(t,e),n=e,s=nr,i=Mt;for(;r!==nr;){const a=n/r,c=n%r,l=s-i*a;n=r,r=c,s=i,i=l}if(n!==Mt)throw new Error("invert: does not exist");return on(s,e)}function mre(t){const e=(t-Mt)/cc;let r,n,s;for(r=t-Mt,n=0;r%cc===nr;r/=cc,n++);for(s=cc;s(n[s]="function",n),e);return x1(t,r)}function Ere(t,e,r){if(r 0");if(r===nr)return t.ONE;if(r===Mt)return e;let n=t.ONE,s=e;for(;r>nr;)r&Mt&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Mt;return n}function Cre(t,e){const r=new Array(e.length),n=e.reduce((i,o,a)=>t.is0(o)?i:(r[a]=i,t.mul(i,o)),t.ONE),s=t.inv(n);return e.reduceRight((i,o,a)=>t.is0(o)?i:(r[a]=t.mul(i,r[a]),t.mul(i,o)),s),r}function EN(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function kre(t,e,r=!1,n={}){if(t<=nr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=EN(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=xre(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:S5(s),ZERO:nr,ONE:Mt,create:c=>on(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return nr<=c&&cc===nr,isOdd:c=>(c&Mt)===Mt,neg:c=>on(-c,t),eql:(c,l)=>c===l,sqr:c=>on(c*c,t),add:(c,l)=>on(c+l,t),sub:(c,l)=>on(c-l,t),mul:(c,l)=>on(c*l,t),pow:(c,l)=>Ere(a,c,l),div:(c,l)=>on(c*Fw(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Fw(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>Cre(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?A5(c,i):qf(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?k5(c):Zc(c)}});return Object.freeze(a)}function CN(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function kN(t){const e=CN(t);return e+Math.ceil(e/2)}function Are(t,e,r=!1){const n=t.length,s=CN(e),i=kN(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?Zc(t):k5(t),a=on(o,e-Mt)+Mt;return r?A5(a,s):qf(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Sre=BigInt(0),wx=BigInt(1);function Tre(t,e){const r=(s,i)=>{const o=i.negate();return s?o:i},n=s=>{const i=Math.ceil(e/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,i){let o=t.ZERO,a=s;for(;i>Sre;)i&wx&&(o=o.add(a)),a=a.double(),i>>=wx;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let f=0;f>=h,b>c&&(b-=d,o+=wx);const v=p,g=p+Math.abs(b)-1,x=y%2!==0,k=b<0;b===0?u=u.add(r(x,i[v])):l=l.add(r(k,i[g]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function AN(t){return wre(t.Fp),x1(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...EN(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pre(t){const e=AN(t);x1(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ire,hexToBytes:Ore}=yre,mc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=mc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Ire(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=mc,r=typeof t=="string"?Ore(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:s,l:i}=mc._parseInt(r.subarray(2)),{d:o,l:a}=mc._parseInt(i);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(t){const e=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},n=e(r(t.s)),s=e(r(t.r)),i=n.length/2,o=s.length/2,a=r(i),c=r(o);return`30${r(o+i+4)}02${c}${s}02${a}${n}`}},Vi=BigInt(0),qn=BigInt(1);BigInt(2);const l8=BigInt(3);BigInt(4);function Rre(t){const e=Pre(t),{Fp:r}=e,n=e.toBytes||((y,p,b)=>{const v=p.toAffine();return v0(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),s=e.fromBytes||(y=>{const p=y.subarray(1),b=r.fromBytes(p.subarray(0,r.BYTES)),v=r.fromBytes(p.subarray(r.BYTES,2*r.BYTES));return{x:b,y:v}});function i(y){const{a:p,b}=e,v=r.sqr(y),g=r.mul(v,y);return r.add(r.add(g,r.mul(y,p)),b)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(y){return typeof y=="bigint"&&Vir.eql(x,r.ZERO);return g(b)&&g(v)?f.ZERO:new f(b,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=r.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(f.fromAffine)}static fromHex(p){const b=f.fromAffine(s(ys("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return f.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!r.isValid(p)||!r.isValid(b))throw new Error("bad point: x or y not FE");const v=r.sqr(b),g=i(p);if(!r.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(r.isOdd)return!r.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p,I=r.eql(r.mul(b,S),r.mul(x,g)),R=r.eql(r.mul(v,S),r.mul(k,g));return I&&R}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){const{a:p,b}=e,v=r.mul(b,l8),{px:g,py:x,pz:k}=this;let S=r.ZERO,I=r.ZERO,R=r.ZERO,_=r.mul(g,g),V=r.mul(x,x),F=r.mul(k,k),X=r.mul(g,x);return X=r.add(X,X),R=r.mul(g,k),R=r.add(R,R),S=r.mul(p,R),I=r.mul(v,F),I=r.add(S,I),S=r.sub(V,I),I=r.add(V,I),I=r.mul(S,I),S=r.mul(X,S),R=r.mul(v,R),F=r.mul(p,F),X=r.sub(_,F),X=r.mul(p,X),X=r.add(X,R),R=r.add(_,_),_=r.add(R,_),_=r.add(_,F),_=r.mul(_,X),I=r.add(I,_),F=r.mul(x,k),F=r.add(F,F),_=r.mul(F,X),S=r.sub(S,_),R=r.mul(F,V),R=r.add(R,R),R=r.add(R,R),new f(S,I,R)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p;let I=r.ZERO,R=r.ZERO,_=r.ZERO;const V=e.a,F=r.mul(e.b,l8);let X=r.mul(b,x),re=r.mul(v,k),le=r.mul(g,S),ee=r.add(b,v),D=r.add(x,k);ee=r.mul(ee,D),D=r.add(X,re),ee=r.sub(ee,D),D=r.add(b,g);let G=r.add(x,S);return D=r.mul(D,G),G=r.add(X,le),D=r.sub(D,G),G=r.add(v,g),I=r.add(k,S),G=r.mul(G,I),I=r.add(re,le),G=r.sub(G,I),_=r.mul(V,D),I=r.mul(F,le),_=r.add(I,_),I=r.sub(re,_),_=r.add(re,_),R=r.mul(I,_),re=r.add(X,X),re=r.add(re,X),le=r.mul(V,le),D=r.mul(F,D),re=r.add(re,le),le=r.sub(X,le),le=r.mul(V,le),D=r.add(D,le),X=r.mul(re,D),R=r.add(R,X),X=r.mul(G,D),I=r.mul(ee,I),I=r.sub(I,X),X=r.mul(ee,re),_=r.mul(G,_),_=r.add(_,X),new f(I,R,_)}subtract(p){return this.add(p.negate())}is0(){return this.equals(f.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=r.invertBatch(b.map(g=>g.pz));return b.map((g,x)=>g.toAffine(v[x])).map(f.fromAffine)})}multiplyUnsafe(p){const b=f.ZERO;if(p===Vi)return b;if(a(p),p===qn)return this;const{endo:v}=e;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:x,k2neg:k,k2:S}=v.splitScalar(p),I=b,R=b,_=this;for(;x>Vi||S>Vi;)x&qn&&(I=I.add(_)),S&qn&&(R=R.add(_)),_=_.double(),x>>=qn,S>>=qn;return g&&(I=I.negate()),k&&(R=R.negate()),R=new f(r.mul(R.px,v.beta),R.py,R.pz),I.add(R)}multiply(p){a(p);let b=p,v,g;const{endo:x}=e;if(x){const{k1neg:k,k1:S,k2neg:I,k2:R}=x.splitScalar(b);let{p:_,f:V}=this.wNAF(S),{p:F,f:X}=this.wNAF(R);_=h.constTimeNegate(k,_),F=h.constTimeNegate(I,F),F=new f(r.mul(F.px,x.beta),F.py,F.pz),v=_.add(F),g=V.add(X)}else{const{p:k,f:S}=this.wNAF(b);v=k,g=S}return f.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=f.BASE,x=(S,I)=>I===Vi||I===qn||!S.equals(g)?S.multiplyUnsafe(I):S.multiply(I),k=x(this,b).add(x(p,v));return k.is0()?void 0:k}toAffine(p){const{px:b,py:v,pz:g}=this,x=this.is0();p==null&&(p=x?r.ONE:r.inv(g));const k=r.mul(b,p),S=r.mul(v,p),I=r.mul(g,p);if(x)return{x:r.ZERO,y:r.ZERO};if(!r.eql(I,r.ONE))throw new Error("invZ was invalid");return{x:k,y:S}}isTorsionFree(){const{h:p,isTorsionFree:b}=e;if(p===qn)return!0;if(b)return b(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=e;return p===qn?this:b?b(f,this):this.multiplyUnsafe(e.h)}toRawBytes(p=!0){return this.assertValidity(),n(f,this,p)}toHex(p=!0){return zf(this.toRawBytes(p))}}f.BASE=new f(e.Gx,e.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);const d=e.nBitLength,h=Tre(f,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function Nre(t){const e=AN(t);return x1(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function _re(t){const e=Nre(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(D){return Vizf(qf(D,e.nByteLength));function y(D){const G=n>>qn;return D>G}function p(D){return y(D)?a(-D):D}const b=(D,G,Z)=>Zc(D.slice(G,Z));class v{constructor(G,Z,E){this.r=G,this.s=Z,this.recovery=E,this.assertValidity()}static fromCompact(G){const Z=e.nByteLength;return G=ys("compactSignature",G,Z*2),new v(b(G,0,Z),b(G,Z,2*Z))}static fromDER(G){const{r:Z,s:E}=mc.toSig(ys("DER",G));return new v(Z,E)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(G){return new v(this.r,this.s,G)}recoverPublicKey(G){const{r:Z,s:E,recovery:A}=this,O=R(ys("msgHash",G));if(A==null||![0,1,2,3].includes(A))throw new Error("recovery id invalid");const M=A===2||A===3?Z+e.n:Z;if(M>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const B=A&1?"03":"02",W=l.fromHex(B+h(M)),q=c(M),te=a(-O*q),J=a(E*q),$=l.BASE.multiplyAndAddUnsafe(W,te,J);if(!$)throw new Error("point at infinify");return $.assertValidity(),$}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Gf(this.toDERHex())}toDERHex(){return mc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gf(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(D){try{return u(D),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const D=kN(e.n);return Are(e.randomBytes(D),e.n)},precompute(D=8,G=l.BASE){return G._setWindowSize(D),G.multiply(BigInt(3)),G}};function x(D,G=!0){return l.fromPrivateKey(D).toRawBytes(G)}function k(D){const G=D instanceof Uint8Array,Z=typeof D=="string",E=(G||Z)&&D.length;return G?E===s||E===i:Z?E===2*s||E===2*i:D instanceof l}function S(D,G,Z=!0){if(k(D))throw new Error("first arg must be private key");if(!k(G))throw new Error("second arg must be public key");return l.fromHex(G).multiply(u(D)).toRawBytes(Z)}const I=e.bits2int||function(D){const G=Zc(D),Z=D.length*8-e.nBitLength;return Z>0?G>>BigInt(Z):G},R=e.bits2int_modN||function(D){return a(I(D))},_=S5(e.nBitLength);function V(D){if(typeof D!="bigint")throw new Error("bigint expected");if(!(Vi<=D&&D<_))throw new Error(`bigint expected < 2^${e.nBitLength}`);return qf(D,e.nByteLength)}function F(D,G,Z=X){if(["recovered","canonical"].some(ue=>ue in Z))throw new Error("sign() legacy options not supported");const{hash:E,randomBytes:A}=e;let{lowS:O,prehash:M,extraEntropy:B}=Z;O==null&&(O=!0),D=ys("msgHash",D),M&&(D=ys("prehashed msgHash",E(D)));const W=R(D),q=u(G),te=[V(q),V(W)];if(B!=null){const ue=B===!0?A(r.BYTES):B;te.push(ys("extraEntropy",ue))}const J=v0(...te),$=W;function K(ue){const de=I(ue);if(!d(de))return;const oe=c(de),Ee=l.BASE.multiply(de).toAffine(),Re=a(Ee.x);if(Re===Vi)return;const xt=a(oe*a($+Re*q));if(xt===Vi)return;let tn=(Ee.x===Re?0:2)|Number(Ee.y&qn),br=xt;return O&&y(xt)&&(br=p(xt),tn^=1),new v(Re,br,tn)}return{seed:J,k2sig:K}}const X={lowS:e.lowS,prehash:!1},re={lowS:e.lowS,prehash:!1};function le(D,G,Z=X){const{seed:E,k2sig:A}=F(D,G,Z),O=e;return wN(O.hash.outputLen,O.nByteLength,O.hmac)(E,A)}l.BASE._setWindowSize(8);function ee(D,G,Z,E=re){var Ee;const A=D;if(G=ys("msgHash",G),Z=ys("publicKey",Z),"strict"in E)throw new Error("options.strict was renamed to lowS");const{lowS:O,prehash:M}=E;let B,W;try{if(typeof A=="string"||A instanceof Uint8Array)try{B=v.fromDER(A)}catch(Re){if(!(Re instanceof mc.Err))throw Re;B=v.fromCompact(A)}else if(typeof A=="object"&&typeof A.r=="bigint"&&typeof A.s=="bigint"){const{r:Re,s:xt}=A;B=new v(Re,xt)}else throw new Error("PARSE");W=l.fromHex(Z)}catch(Re){if(Re.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(O&&B.hasHighS())return!1;M&&(G=e.hash(G));const{r:q,s:te}=B,J=R(G),$=c(te),K=a(J*$),ue=a(q*$),de=(Ee=l.BASE.multiplyAndAddUnsafe(W,K,ue))==null?void 0:Ee.toAffine();return de?a(de.x)===q:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:S,sign:le,verify:ee,ProjectivePoint:l,Signature:v,utils:g}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Mre(t){return{hash:t,hmac:(e,...r)=>Mg(t,e,ate(...r)),randomBytes:lte}}function Dre(t,e){const r=n=>_re({...t,...Mre(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const SN=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u8=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Bre=BigInt(1),Uw=BigInt(2),f8=(t,e)=>(t+e/Uw)/e;function Lre(t){const e=SN,r=BigInt(3),n=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,u=l*l*t%e,f=Dn(u,r,e)*u%e,d=Dn(f,r,e)*u%e,h=Dn(d,Uw,e)*l%e,y=Dn(h,s,e)*h%e,p=Dn(y,i,e)*y%e,b=Dn(p,a,e)*p%e,v=Dn(b,c,e)*b%e,g=Dn(v,a,e)*p%e,x=Dn(g,r,e)*u%e,k=Dn(x,o,e)*y%e,S=Dn(k,n,e)*l%e,I=Dn(S,Uw,e);if(!$w.eql($w.sqr(I),t))throw new Error("Cannot find square root");return I}const $w=kre(SN,void 0,void 0,{sqrt:Lre}),Ro=Dre({a:BigInt(0),b:BigInt(7),Fp:$w,n:u8,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=u8,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-Bre*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=f8(i*t,e),c=f8(-n*t,e);let l=on(t-a*r-c*s,e),u=on(-a*n-c*i,e);const f=l>o,d=u>o;if(f&&(l=e-l),d&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:l,k2neg:d,k2:u}}}},bd);BigInt(0);Ro.ProjectivePoint;const xi="0x0000000000000000000000000000000000000000",yl="0x0000000000000000000000000000000000000000000000000000000000000000",jre=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Fre=BigInt("1000000000000000000"),TN=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ure=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),$re=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Wre="Īž",PN=`Ethereum Signed Message: -`,d8=BigInt(0),h8=BigInt(1),p8=BigInt(2),y8=BigInt(27),v8=BigInt(28),hp=BigInt(35),Ll={};function g8(t){return rs(rr(t),32)}var qu,Ku,Qu,Nc;const ds=class ds{constructor(e,r,n,s){j(this,qu);j(this,Ku);j(this,Qu);j(this,Nc);yo(e,Ll,"Signature"),T(this,qu,r),T(this,Ku,n),T(this,Qu,s),T(this,Nc,null)}get r(){return w(this,qu)}set r(e){P(ba(e)===32,"invalid r","value",e),T(this,qu,H(e))}get s(){return w(this,Ku)}set s(e){P(ba(e)===32,"invalid s","value",e);const r=H(e);P(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),T(this,Ku,r)}get v(){return w(this,Qu)}set v(e){const r=Pe(e,"value");P(r===27||r===28,"invalid v","v",e),T(this,Qu,r)}get networkV(){return w(this,Nc)}get legacyChainId(){const e=this.networkV;return e==null?null:ds.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=Q(this.s);return this.yParity&&(e[0]|=128),H(e)}get compactSerialized(){return Le([this.r,this.yParityAndS])}get serialized(){return Le([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 e=new ds(Ll,this.r,this.s,this.v);return this.networkV&&T(e,Nc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=ve(e,"v");return r==y8||r==v8?d8:(P(r>=hp,"invalid EIP-155 v","v",e),(r-hp)/p8)}static getChainIdV(e,r){return ve(e)*p8+BigInt(35+r-27)}static getNormalizedV(e){const r=ve(e);return r===d8||r===y8?27:r===h8||r===v8?28:(P(r>=hp,"invalid v","v",e),r&h8?27:28)}static from(e){function r(l,u){P(l,u,"signature",e)}if(e==null)return new ds(Ll,yl,yl,27);if(typeof e=="string"){const l=Q(e,"signature");if(l.length===64){const u=H(l.slice(0,32)),f=l.slice(32,64),d=f[0]&128?28:27;return f[0]&=127,new ds(Ll,u,H(f),d)}if(l.length===65){const u=H(l.slice(0,32)),f=l.slice(32,64);r((f[0]&128)===0,"non-canonical s");const d=ds.getNormalizedV(l[64]);return new ds(Ll,u,H(f),d)}r(!1,"invalid raw signature length")}if(e instanceof ds)return e.clone();const n=e.r;r(n!=null,"missing r");const s=g8(n),i=function(l,u){if(l!=null)return g8(l);if(u!=null){r(et(u,32),"invalid yParityAndS");const f=Q(u);return f[0]&=127,H(f)}r(!1,"missing s")}(e.s,e.yParityAndS);r((Q(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const d=ve(l);return{networkV:d>=hp?d:void 0,v:ds.getNormalizedV(d)}}if(u!=null)return r(et(u,32),"invalid yParityAndS"),{v:Q(u)[0]&128?28:27};if(f!=null){switch(Pe(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new ds(Ll,s,i,a);return o&&T(c,Nc,o),r(e.yParity==null||Pe(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};qu=new WeakMap,Ku=new WeakMap,Qu=new WeakMap,Nc=new WeakMap;let os=ds;var _i;const dc=class dc{constructor(e){j(this,_i);P(ba(e)===32,"invalid private key","privateKey","[REDACTED]"),T(this,_i,H(e))}get privateKey(){return w(this,_i)}get publicKey(){return dc.computePublicKey(w(this,_i))}get compressedPublicKey(){return dc.computePublicKey(w(this,_i),!0)}sign(e){P(ba(e)===32,"invalid digest length","digest",e);const r=Ro.sign(tr(e),tr(w(this,_i)),{lowS:!0});return os.from({r:In(r.r,32),s:In(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=dc.computePublicKey(e);return H(Ro.getSharedSecret(tr(w(this,_i)),Q(r),!1))}static computePublicKey(e,r){let n=Q(e,"key");if(n.length===32){const i=Ro.getPublicKey(n,!!r);return H(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Ro.ProjectivePoint.fromHex(n);return H(s.toRawBytes(r))}static recoverPublicKey(e,r){P(ba(e)===32,"invalid digest length","digest",e);const n=os.from(r);let s=Ro.Signature.fromCompact(tr(Le([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey(tr(e));return P(i!=null,"invalid signautre for digest","signature",r),"0x"+i.toHex(!1)}static addPoints(e,r,n){const s=Ro.ProjectivePoint.fromHex(dc.computePublicKey(e).substring(2)),i=Ro.ProjectivePoint.fromHex(dc.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};_i=new WeakMap;let Rs=dc;function Vre(){Va.lock(),_e.lock(),bi.lock(),Rr.lock(),Ha.lock(),za.lock(),Ga.lock(),Kr.lock(),m1.lock(),Rr.lock()}const Hre=BigInt(0),zre=BigInt(36);function m8(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=Q(_e(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const T5={};for(let t=0;t<10;t++)T5[String(t)]=String(t);for(let t=0;t<26;t++)T5[String.fromCharCode(65+t)]=String(10+t);const x8=15;function IN(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>T5[n]).join("");for(;e.length>=x8;){let n=e.substring(0,x8);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const Gre=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function qre(t){t=t.toLowerCase();let e=Hre;for(let r=0;re.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 w(this,_c)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return w(this,_c)===!0?-1:w(this,_c)===!1?this.value.length:null}static from(e,r){return new Ti(Si,e,r)}static uint8(e){return he(e,8)}static uint16(e){return he(e,16)}static uint24(e){return he(e,24)}static uint32(e){return he(e,32)}static uint40(e){return he(e,40)}static uint48(e){return he(e,48)}static uint56(e){return he(e,56)}static uint64(e){return he(e,64)}static uint72(e){return he(e,72)}static uint80(e){return he(e,80)}static uint88(e){return he(e,88)}static uint96(e){return he(e,96)}static uint104(e){return he(e,104)}static uint112(e){return he(e,112)}static uint120(e){return he(e,120)}static uint128(e){return he(e,128)}static uint136(e){return he(e,136)}static uint144(e){return he(e,144)}static uint152(e){return he(e,152)}static uint160(e){return he(e,160)}static uint168(e){return he(e,168)}static uint176(e){return he(e,176)}static uint184(e){return he(e,184)}static uint192(e){return he(e,192)}static uint200(e){return he(e,200)}static uint208(e){return he(e,208)}static uint216(e){return he(e,216)}static uint224(e){return he(e,224)}static uint232(e){return he(e,232)}static uint240(e){return he(e,240)}static uint248(e){return he(e,248)}static uint256(e){return he(e,256)}static uint(e){return he(e,256)}static int8(e){return he(e,-8)}static int16(e){return he(e,-16)}static int24(e){return he(e,-24)}static int32(e){return he(e,-32)}static int40(e){return he(e,-40)}static int48(e){return he(e,-48)}static int56(e){return he(e,-56)}static int64(e){return he(e,-64)}static int72(e){return he(e,-72)}static int80(e){return he(e,-80)}static int88(e){return he(e,-88)}static int96(e){return he(e,-96)}static int104(e){return he(e,-104)}static int112(e){return he(e,-112)}static int120(e){return he(e,-120)}static int128(e){return he(e,-128)}static int136(e){return he(e,-136)}static int144(e){return he(e,-144)}static int152(e){return he(e,-152)}static int160(e){return he(e,-160)}static int168(e){return he(e,-168)}static int176(e){return he(e,-176)}static int184(e){return he(e,-184)}static int192(e){return he(e,-192)}static int200(e){return he(e,-200)}static int208(e){return he(e,-208)}static int216(e){return he(e,-216)}static int224(e){return he(e,-224)}static int232(e){return he(e,-232)}static int240(e){return he(e,-240)}static int248(e){return he(e,-248)}static int256(e){return he(e,-256)}static int(e){return he(e,-256)}static bytes1(e){return Ke(e,1)}static bytes2(e){return Ke(e,2)}static bytes3(e){return Ke(e,3)}static bytes4(e){return Ke(e,4)}static bytes5(e){return Ke(e,5)}static bytes6(e){return Ke(e,6)}static bytes7(e){return Ke(e,7)}static bytes8(e){return Ke(e,8)}static bytes9(e){return Ke(e,9)}static bytes10(e){return Ke(e,10)}static bytes11(e){return Ke(e,11)}static bytes12(e){return Ke(e,12)}static bytes13(e){return Ke(e,13)}static bytes14(e){return Ke(e,14)}static bytes15(e){return Ke(e,15)}static bytes16(e){return Ke(e,16)}static bytes17(e){return Ke(e,17)}static bytes18(e){return Ke(e,18)}static bytes19(e){return Ke(e,19)}static bytes20(e){return Ke(e,20)}static bytes21(e){return Ke(e,21)}static bytes22(e){return Ke(e,22)}static bytes23(e){return Ke(e,23)}static bytes24(e){return Ke(e,24)}static bytes25(e){return Ke(e,25)}static bytes26(e){return Ke(e,26)}static bytes27(e){return Ke(e,27)}static bytes28(e){return Ke(e,28)}static bytes29(e){return Ke(e,29)}static bytes30(e){return Ke(e,30)}static bytes31(e){return Ke(e,31)}static bytes32(e){return Ke(e,32)}static address(e){return new Ti(Si,"address",e)}static bool(e){return new Ti(Si,"bool",!!e)}static bytes(e){return new Ti(Si,"bytes",e)}static string(e){return new Ti(Si,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Ti(Si,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===b8}static dereference(e,r){if(Ti.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};_c=new WeakMap;let gr=Ti;class Jre extends vo{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=gr.dereference(r,"string");try{n=Te(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Te(In(e.readValue(),20))}}class Yre extends vo{constructor(r){super(r.name,r.type,"_",r.dynamic);N(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function RN(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let c={};n=e.map(l=>{const u=l.localName;return z(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),z(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),c[u]=!0,r[u]})}else P(!1,"invalid tuple value","tuple",r);P(e.length===n.length,"types/value length mismatch","tuple",r);let s=new Mw,i=new Mw,o=[];e.forEach((c,l)=>{let u=n[l];if(c.dynamic){let f=i.length;c.encode(i,u);let d=s.writeUpdatableValue();o.push(h=>{d(h+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function NN(t,e){let r=[],n=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let a=t.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(Ht(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(a){if(Ht(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");r.push(o),n.push(i.localName||null)}),pl.fromItems(r,n)}class Xre extends vo{constructor(r,n,s){const i=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",i,s,o);N(this,"coder");N(this,"length");fe(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let s=0;so||s<-(o+ine))&&this._throwError("value out-of-bounds",n),s=Ng(s,8*Hr)}else(sca(i,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(s)}decode(r){let n=ca(r.readValue(),this.size*8);return this.signed&&(n=p0(n,this.size*8)),n}}class cne extends _N{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,mt(gr.dereference(r,"string")))}decode(e){return Ds(super.decode(e))}}class pp extends vo{constructor(r,n){let s=!1;const i=[];r.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,n,s);N(this,"coders");fe(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];this.coders.forEach(s=>{r.push(s.defaultValue())});const n=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[i]))}),Object.freeze(r)}encode(r,n){const s=gr.dereference(n,"tuple");return RN(r,this.coders,s)}decode(r){return NN(r,this.coders)}}function Qr(t){return _e(mt(t))}var lne="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const w8=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),E8=4;function une(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let S=1;S>--c&1}const f=31,d=2**f,h=d>>>1,y=h>>1,p=d-1;let b=0;for(let S=0;S1;){let F=I+R>>>1;S>>1|u(),_=_<<1^h,V=(V^h)<<1|h|1;g=_,x=1+V-_}let k=n-4;return v.map(S=>{switch(S-k){case 3:return k+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return k+256+(t[a++]<<8|t[a++]);case 1:return k+t[a++];default:return S-1}})}function fne(t){let e=0;return()=>t[e++]}function MN(t){return fne(une(dne(t)))}function dne(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let r=t.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s=8&&(n[i++]=a>>(o-=8));return n}function hne(t){return t&1?~t>>1:t>>1}function pne(t,e){let r=Array(t);for(let n=0,s=0;n{let e=g0(t);if(e.length)return e})}function BN(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(yne(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(vne(r,t))}return e.flat()}function m0(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function LN(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;sn[o].push(i));return n}function yne(t,e){let r=1+e(),n=e(),s=m0(e);return LN(s.length,1+t,e).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let d=f*n;return[c+f*r,l.map(h=>h+d)]})})}function vne(t,e){let r=1+e();return LN(r,1+t,e).map(s=>[s[0],s.slice(1)])}function gne(t){let e=[],r=g0(t);return s(n([]),[]),e;function n(i){let o=t(),a=m0(()=>{let c=g0(t).map(l=>r[l]);if(c.length)return n(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&e.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function mne(t){return t.toString(16).toUpperCase().padStart(2,"0")}function jN(t){return`{${mne(t)}}`}function xne(t){let e=[];for(let r=0,n=t.length;r>24&255}function $N(t){return t&16777215}let Ww,C8,Vw,qp;function Tne(){let t=MN(wne);Ww=new Map(DN(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),C8=new Set(g0(t)),Vw=new Map,qp=new Map;for(let[e,r]of BN(t)){if(!C8.has(e)&&r.length==2){let[n,s]=r,i=qp.get(n);i||(i=new Map,qp.set(n,i)),i.set(s,e)}Vw.set(e,r.reverse())}}function WN(t){return t>=x0&&t=sv&&t=iv&&eov&&e0&&s(ov+l)}else{let o=Vw.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=th(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),s=o;else{let c=Pne(n,a);c>=0?n=c:s==0&&o==0?(e.push(n),n=a):(r.push(a),s=o)}}return n>=0&&e.push(n,...r),e}function HN(t){return VN(t).map($N)}function One(t){return Ine(VN(t))}const k8=45,zN=".",GN=65039,qN=1,cv=t=>Array.from(t);function b0(t,e){return t.P.has(e)||t.Q.has(e)}class Rne extends Array{get is_emoji(){return!0}}let Hw,KN,xc,zw,QN,Nu,Cx,ql,ic,A8,Gw;function O5(){if(Hw)return;let t=MN(lne);const e=()=>g0(t),r=()=>new Set(e()),n=(u,f)=>f.forEach(d=>u.add(d));Hw=new Map(BN(t)),KN=r(),xc=e(),zw=new Set(e().map(u=>xc[u])),xc=new Set(xc),QN=r(),r();let s=DN(t),i=t();const o=()=>{let u=new Set;return e().forEach(f=>n(u,s[f])),n(u,e()),u};Nu=m0(u=>{let f=m0(t).map(d=>d+96);if(f.length){let d=u>=i;f[0]-=32,f=Kf(f),d&&(f=`Restricted[${f}]`);let h=o(),y=o(),p=!t();return{N:f,P:h,Q:y,M:p,R:d}}}),Cx=r(),ql=new Map;let a=e().concat(cv(Cx)).sort((u,f)=>u-f);a.forEach((u,f)=>{let d=t(),h=a[f]=d?a[f-d]:{V:[],M:new Map};h.V.push(u),Cx.has(u)||ql.set(u,h)});for(let{V:u,M:f}of new Set(ql.values())){let d=[];for(let y of u){let p=Nu.filter(v=>b0(v,y)),b=d.find(({G:v})=>p.some(g=>v.has(g)));b||(b={G:new Set,V:[]},d.push(b)),b.V.push(y),n(b.G,p)}let h=d.flatMap(y=>cv(y.G));for(let{G:y,V:p}of d){let b=new Set(h.filter(v=>!y.has(v)));for(let v of p)f.set(v,b)}}ic=new Set;let c=new Set;const l=u=>ic.has(u)?c.add(u):ic.add(u);for(let u of Nu){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of ic)!ql.has(u)&&!c.has(u)&&ql.set(u,qN);n(ic,HN(ic)),A8=gne(t).map(u=>Rne.from(u)).sort(bne),Gw=new Map;for(let u of A8){let f=[Gw];for(let d of u){let h=f.map(y=>{let p=y.get(d);return p||(p=new Map,y.set(d,p)),p});d===GN?f.push(...h):f=h}for(let d of f)d.V=u}}function R5(t){return(JN(t)?"":`${N5(Lg([t]))} `)+jN(t)}function N5(t){return`"${t}"ā€Ž`}function Nne(t){if(t.length>=4&&t[2]==k8&&t[3]==k8)throw new Error(`invalid label extension: "${Kf(t.slice(0,4))}"`)}function _ne(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function Mne(t){let e=t[0],r=w8.get(e);if(r)throw Sh(`leading ${r}`);let n=t.length,s=-1;for(let i=1;ie&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let s=0,i=t.length;for(let o=0;o{let i=xne(s),o={input:i,offset:n};n+=i.length+1;try{let a=o.tokens=Wne(i,e,r),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(_ne(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))Nne(u),l="ASCII";else{let d=a.flatMap(h=>h.is_emoji?[]:h);if(!d.length)l="Emoji";else{if(xc.has(u[0]))throw Sh("leading combining mark");for(let p=1;po.has(a)):cv(o),!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>b0(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function Fne(t){let e=Nu;for(let r of t){let n=e.filter(s=>b0(s,r));if(!n.length)throw Nu.some(s=>b0(s,r))?XN(e[0],r):YN(r);if(e=n,n.length==1)break}return e}function Une(t){return t.map(({input:e,error:r,output:n})=>{if(r){let s=r.message;throw new Error(t.length==1?s:`Invalid label ${N5(Lg(e,63))}: ${s}`)}return Kf(n)}).join(zN)}function YN(t){return new Error(`disallowed character: ${R5(t)}`)}function XN(t,e){let r=R5(e),n=Nu.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function Sh(t){return new Error(`illegal placement: ${t}`)}function $ne(t,e){for(let r of e)if(!b0(t,r))throw XN(t,r);if(t.M){let r=HN(e);for(let n=1,s=r.length;nE8)throw new Error(`excessive non-spacing marks: ${N5(Lg(r.slice(n-1,i)))} (${i-n}/${E8})`);n=i}}}function Wne(t,e,r){let n=[],s=[];for(t=t.slice().reverse();t.length;){let i=Hne(t);if(i)s.length&&(n.push(e(s)),s=[]),n.push(r(i));else{let o=t.pop();if(ic.has(o))s.push(o);else{let a=Hw.get(o);if(a)s.push(...a);else if(!KN.has(o))throw YN(o)}}}return s.length&&n.push(e(s)),n}function Vne(t){return t.filter(e=>e!=GN)}function Hne(t,e){let r=Gw,n,s=t.length;for(;s&&(r=r.get(t[--s]),!!r);){let{V:i}=r;i&&(n=i,t.length=s)}return n}const ZN=new Uint8Array(32);ZN.fill(0);function S8(t){return P(t.length!==0,"invalid ENS name; empty component","comp",t),t}function _5(t){const e=mt(e7(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s{P(n.length<=r,`label ${JSON.stringify(t)} exceeds ${r} bytes`,"name",t);const s=new Uint8Array(n.length+1);return s.set(n,1),s[0]=s.length-1,s})))+"00"}function kx(t,e){return{address:Te(t),storageKeys:e.map((r,n)=>(P(et(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function go(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(P(r.length===2,"invalid slot set",`value[${n}]`,r),kx(r[0],r[1])):(P(r!=null&&typeof r=="object","invalid address-slot set","value",t),kx(r.address,r.storageKeys)));P(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return kx(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function wd(t){let e;return typeof t=="string"?e=Rs.computePublicKey(t,!1):e=t.publicKey,Te(_e("0x"+e.substring(4)).substring(26))}function Jf(t,e){return wd(Rs.recoverPublicKey(t,e))}const Xt=BigInt(0),Gne=BigInt(2),qne=BigInt(27),Kne=BigInt(28),Qne=BigInt(35),Jne=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ax=4096*32;function T8(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=Kr(e).substring(4),"0x"+r}function jg(t){return t==="0x"?null:Te(t)}function M5(t,e){try{return go(t)}catch(r){P(!1,r.message,e,t)}}function b1(t,e){return t==="0x"?0:Pe(t,e)}function Dt(t,e){if(t==="0x")return Xt;const r=ve(t,e);return P(r<=Jne,"value exceeds uint size",e,r),r}function ht(t,e){const r=ve(t,"value"),n=rr(r);return P(n.length<=32,"value too large",`tx.${e}`,r),n}function D5(t){return go(t).map(e=>[e.address,e.storageKeys])}function Yne(t,e){P(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;rs.data),r.map(s=>s.commitment),r.map(s=>s.proof)])]):Le(["0x03",Na(n)])}var Js,Ju,Yu,Xu,Zu,ef,tf,rf,nf,sf,of,af,Mc,Wo,Mi,Vo,cf,Kp;const Pi=class Pi{constructor(){j(this,cf);j(this,Js);j(this,Ju);j(this,Yu);j(this,Xu);j(this,Zu);j(this,ef);j(this,tf);j(this,rf);j(this,nf);j(this,sf);j(this,of);j(this,af);j(this,Mc);j(this,Wo);j(this,Mi);j(this,Vo);T(this,Js,null),T(this,Ju,null),T(this,Xu,0),T(this,Zu,Xt),T(this,ef,null),T(this,tf,null),T(this,rf,null),T(this,Yu,"0x"),T(this,nf,Xt),T(this,sf,Xt),T(this,of,null),T(this,af,null),T(this,Mc,null),T(this,Wo,null),T(this,Vo,null),T(this,Mi,null)}get type(){return w(this,Js)}set type(e){switch(e){case null:T(this,Js,null);break;case 0:case"legacy":T(this,Js,0);break;case 1:case"berlin":case"eip-2930":T(this,Js,1);break;case 2:case"london":case"eip-1559":T(this,Js,2);break;case 3:case"cancun":case"eip-4844":T(this,Js,3);break;default:P(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=w(this,Ju);return e==null&&this.type===3?xi:e}set to(e){T(this,Ju,e==null?null:Te(e))}get nonce(){return w(this,Xu)}set nonce(e){T(this,Xu,Pe(e,"value"))}get gasLimit(){return w(this,Zu)}set gasLimit(e){T(this,Zu,ve(e))}get gasPrice(){const e=w(this,ef);return e==null&&(this.type===0||this.type===1)?Xt:e}set gasPrice(e){T(this,ef,e==null?null:ve(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=w(this,tf);return e??(this.type===2||this.type===3?Xt:null)}set maxPriorityFeePerGas(e){T(this,tf,e==null?null:ve(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=w(this,rf);return e??(this.type===2||this.type===3?Xt:null)}set maxFeePerGas(e){T(this,rf,e==null?null:ve(e,"maxFeePerGas"))}get data(){return w(this,Yu)}set data(e){T(this,Yu,H(e))}get value(){return w(this,nf)}set value(e){T(this,nf,ve(e,"value"))}get chainId(){return w(this,sf)}set chainId(e){T(this,sf,ve(e))}get signature(){return w(this,of)||null}set signature(e){T(this,of,e==null?null:os.from(e))}get accessList(){const e=w(this,af)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){T(this,af,e==null?null:go(e))}get maxFeePerBlobGas(){const e=w(this,Mc);return e==null&&this.type===3?Xt:e}set maxFeePerBlobGas(e){T(this,Mc,e==null?null:ve(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=w(this,Wo);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){P(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;rObject.assign({},e))}set blobs(e){if(e==null){T(this,Vo,null);return}const r=[],n=[];for(let s=0;s=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,s=w(this,Mc)!=null||w(this,Wo);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&z(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),z(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),z(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return this.type!=null?i.push(this.type):r?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(s&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Pi.from(this)}toJSON(){const e=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Pi;if(typeof e=="string"){const n=Q(e);if(n[0]>=127)return Pi.from(Xne(n));switch(n[0]){case 1:return Pi.from(rse(n));case 2:return Pi.from(ese(n));case 3:return Pi.from(sse(n))}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new Pi;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=os.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.blobVersionedHashes!=null&&(r.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(r.kzg=e.kzg),e.blobs!=null&&(r.blobs=e.blobs),e.hash!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),P(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),P(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};Js=new WeakMap,Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,ef=new WeakMap,tf=new WeakMap,rf=new WeakMap,nf=new WeakMap,sf=new WeakMap,of=new WeakMap,af=new WeakMap,Mc=new WeakMap,Wo=new WeakMap,Mi=new WeakMap,Vo=new WeakMap,cf=new WeakSet,Kp=function(e,r){z(!e||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return Zne(this,n);case 1:return nse(this,n);case 2:return tse(this,n);case 3:return ise(this,n,r?this.blobs:null)}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let vl=Pi;function Fg(t){return typeof t=="string"&&(t=mt(t)),_e(Le([mt(PN),mt(String(t.length)),t]))}function r7(t,e){const r=Fg(t);return Jf(r,e)}const ose=new RegExp("^bytes([0-9]+)$"),ase=new RegExp("^(u?int)([0-9]*)$"),cse=new RegExp("^(.*)\\[([0-9]*)\\]$");function n7(t,e,r){switch(t){case"address":return Q(r?rs(e,32):Te(e));case"string":return mt(e);case"bytes":return Q(e);case"bool":return e=e?"0x01":"0x00",Q(r?rs(e,32):e)}let n=t.match(ase);if(n){let s=n[1]==="int",i=parseInt(n[2]||"256");return P((!n[2]||n[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),r&&(i=256),s&&(e=Ng(e,i)),Q(rs(rr(e),i/8))}if(n=t.match(ose),n){const s=parseInt(n[1]);return P(String(s)===n[1]&&s!==0&&s<=32,"invalid bytes type","type",t),P(ba(e)===s,`invalid value for ${t}`,"value",e),r?Q(Og(e,32)):e}if(n=t.match(cse),n&&Array.isArray(e)){const s=n[1],i=parseInt(n[2]||String(e.length));P(i===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(n7(s,a,!0))}),Q(Le(o))}P(!1,"invalid type","type",t)}function De(t,e){P(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,s){r.push(n7(n,e[s]))}),H(Le(r))}function eo(t,e){return _e(De(t,e))}function lse(t,e){return Kr(De(t,e))}const s7=new Uint8Array(32);s7.fill(0);const use=BigInt(-1),i7=BigInt(0),o7=BigInt(1),fse=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function dse(t){const e=Q(t),r=e.length%32;return r?Le([e,s7.slice(r)]):H(e)}const hse=In(o7,32),pse=In(i7,32),P8={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Sx=["name","version","chainId","verifyingContract","salt"];function I8(t){return function(e){return P(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const yse={name:I8("name"),version:I8("version"),chainId:function(t){const e=ve(t,"domain.chainId");return P(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):pr(e)},verifyingContract:function(t){try{return Te(t).toLowerCase()}catch{}P(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Q(t,"domain.salt");return P(e.length===32,'invalid domain value "salt"',"domain.salt",t),H(e)}};function Tx(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);P(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const s=ca(fse,r?n-1:n),i=r?(s+o7)*use:i7;return function(o){const a=ve(o,"value");return P(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),In(r?Ng(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return P(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=Q(n);return P(s.length===r,`invalid length for ${t}`,"value",n),dse(n)}}}switch(t){case"address":return function(e){return rs(Te(e),32)};case"bool":return function(e){return e?hse:pse};case"bytes":return function(e){return _e(e)};case"string":return function(e){return Qr(e)}}return null}function O8(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function yp(t){const e=t.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return e?{base:e[1],index:e[2]+e[4],array:{base:e[1],prefix:e[1]+e[2],count:e[5]?parseInt(e[5]):-1}}:{base:t}}var j0,Di,lf,Nv,a7;const $n=class $n{constructor(e){j(this,Nv);N(this,"primaryType");j(this,j0);j(this,Di);j(this,lf);T(this,Di,new Map),T(this,lf,new Map);const r=new Map,n=new Map,s=new Map,i={};Object.keys(e).forEach(c=>{i[c]=e[c].map(({name:l,type:u})=>{let{base:f,index:d}=yp(u);return f==="int"&&!e.int&&(f="int256"),f==="uint"&&!e.uint&&(f="uint256"),{name:l,type:f+(d||"")}}),r.set(c,new Set),n.set(c,[]),s.set(c,new Set)}),T(this,j0,JSON.stringify(i));for(const c in i){const l=new Set;for(const u of i[c]){P(!l.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(c)}`,"types",e),l.add(u.name);const f=yp(u.type).base;P(f!==c,`circular type reference to ${JSON.stringify(f)}`,"types",e),!Tx(f)&&(P(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(c),r.get(c).add(f))}}const o=Array.from(n.keys()).filter(c=>n.get(c).length===0);P(o.length!==0,"missing primary type","types",e),P(o.length===1,`ambiguous primary types or unused types: ${o.map(c=>JSON.stringify(c)).join(", ")}`,"types",e),fe(this,{primaryType:o[0]});function a(c,l){P(!l.has(c),`circular type reference to ${JSON.stringify(c)}`,"types",e),l.add(c);for(const u of r.get(c))if(n.has(u)){a(u,l);for(const f of l)s.get(f).add(u)}l.delete(c)}a(this.primaryType,new Set);for(const[c,l]of s){const u=Array.from(l);u.sort(),w(this,Di).set(c,O8(c,i[c])+u.map(f=>O8(f,i[f])).join(""))}}get types(){return JSON.parse(w(this,j0))}getEncoder(e){let r=w(this,lf).get(e);return r||(r=Y(this,Nv,a7).call(this,e),w(this,lf).set(e,r)),r}encodeType(e){const r=w(this,Di).get(e);return P(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return _e(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Tx(e))return n(e,r);const s=yp(e).array;if(s)return P(s.count===-1||s.count===r.length,`array length mismatch; expected length ${s.count}`,"value",r),r.map(o=>this._visit(s.prefix,o,n));const i=this.types[e];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,r[a],n),o),{});P(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new $n(e)}static getPrimaryType(e){return $n.from(e).primaryType}static hashStruct(e,r,n){return $n.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=P8[n];P(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>Sx.indexOf(n.name)-Sx.indexOf(s.name)),$n.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Le(["0x1901",$n.hashDomain(e),$n.from(r).hash(n)])}static hash(e,r,n){return _e($n.encode(e,r,n))}static async resolveNames(e,r,n,s){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const i={};e.verifyingContract&&!et(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=$n.from(r);o.visit(n,(a,c)=>(a==="address"&&!et(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:e,value:n}}static getPayload(e,r,n){$n.hashDomain(e);const s={},i=[];Sx.forEach(c=>{const l=e[c];l!=null&&(s[c]=yse[c](l),i.push({name:c,type:P8[c]}))});const o=$n.from(r);r=o.types;const a=Object.assign({},r);return P(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),a.EIP712Domain=i,o.encode(n),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(n,(c,l)=>{if(c.match(/^bytes(\d*)/))return H(Q(l));if(c.match(/^u?int/))return ve(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return P(typeof l=="string","invalid string","value",l),l}P(!1,"unsupported type","type",c)})}}};j0=new WeakMap,Di=new WeakMap,lf=new WeakMap,Nv=new WeakSet,a7=function(e){{const s=Tx(e);if(s)return s}const r=yp(e).array;if(r){const s=r.prefix,i=this.getEncoder(s);return o=>{P(r.count===-1||r.count===o.length,`array length mismatch; expected length ${r.count}`,"value",o);let a=o.map(i);return w(this,Di).has(s)&&(a=a.map(_e)),_e(Le(a))}}const n=this.types[e];if(n){const s=Qr(w(this,Di).get(e));return i=>{const o=n.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return w(this,Di).has(c)?_e(l):l});return o.unshift(s),Le(o)}}P(!1,`unknown type: ${e}`,"type",e)};let Bs=$n;function vse(t,e,r,n){return Jf(Bs.hash(t,e,r),n)}function zr(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const gse="external public payable override",mse=zr(gse.split(" ")),c7="constant external internal payable private public pure view override",xse=zr(c7.split(" ")),l7="constructor error event fallback function receive struct",u7=zr(l7.split(" ")),f7="calldata memory storage payable indexed",bse=zr(f7.split(" ")),wse="tuple returns",Ese=[l7,f7,wse,c7].join(" "),Cse=zr(Ese.split(" ")),kse={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Ase=new RegExp("^(\\s*)"),Sse=new RegExp("^([0-9]+)"),Tse=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),d7=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),h7=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var lr,xs,F0,qw;const _v=class _v{constructor(e){j(this,F0);j(this,lr);j(this,xs);T(this,lr,0),T(this,xs,e.slice())}get offset(){return w(this,lr)}get length(){return w(this,xs).length-w(this,lr)}clone(){return new _v(w(this,xs))}reset(){T(this,lr,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const r=this.peek();throw new Error(`expected ${e}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=Y(this,F0,qw).call(this,w(this,lr)+1,e.match+1);return T(this,lr,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;w(this,lr)=w(this,xs).length)throw new Error("out-of-bounds");return w(this,xs)[w(this,lr)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return Ol(this,lr)._++,e}toString(){const e=[];for(let r=w(this,lr);r`}};lr=new WeakMap,xs=new WeakMap,F0=new WeakSet,qw=function(e=0,r=0){return new _v(w(this,xs).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Ls=_v;function qa(t){const e=[],r=o=>{const a=i0&&e[e.length-1].type==="NUMBER"){const f=e.pop().text;u=f+u,e[e.length-1].value=Pe(f)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match(Tse),a){if(c.text=a[1],i+=c.text.length,Cse.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(h7)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(Sse),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new Ls(e.map(o=>Object.freeze(o)))}function R8(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function Ug(t,e){if(e.peekKeyword(u7)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function co(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function p7(t){let e=co(t,xse);return R8(e,zr("constant payable nonpayable".split(" "))),R8(e,zr("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function to(t,e){return t.popParams().map(r=>or.from(r,e))}function y7(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return ve(t.pop().text);throw new Error("invalid gas")}return null}function gl(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const Pse=new RegExp(/^(.*)\[([0-9]*)\]$/);function N8(t){const e=t.match(h7);if(P(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);P(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);P(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const wt={},pn=Symbol.for("_ethers_internal"),_8="_ParamTypeInternal",M8="_ErrorInternal",D8="_EventInternal",B8="_ConstructorInternal",L8="_FallbackInternal",j8="_FunctionInternal",F8="_StructInternal";var uf,Qp;const Wn=class Wn{constructor(e,r,n,s,i,o,a,c){j(this,uf);N(this,"name");N(this,"type");N(this,"baseType");N(this,"indexed");N(this,"components");N(this,"arrayLength");N(this,"arrayChildren");if(yo(e,wt,"ParamType"),Object.defineProperty(this,pn,{value:_8}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");fe(this,{name:r,type:n,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(s)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(s=>n.arrayChildren.walk(s,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((s,i)=>n.components[i].walk(s,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],s=[e];return Y(this,uf,Qp).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(Wn.isParamType(e))return e;if(typeof e=="string")try{return Wn.from(qa(e),r)}catch{P(!1,"invalid param type","obj",e)}else if(e instanceof Ls){let a="",c="",l=null;co(e,zr(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(p=>Wn.from(p)),a=`tuple(${l.map(p=>p.format()).join(",")})`):(a=N8(e.popType("TYPE")),c=a);let u=null,f=null;for(;e.length&&e.peekType("BRACKET");){const p=e.pop();u=new Wn(wt,"",a,c,null,l,f,u),f=p.value,a+=p.text,c="array",l=null}let d=null;if(co(e,bse).has("indexed")){if(!r)throw new Error("");d=!0}const y=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Wn(wt,y,a,c,d,l,f,u)}const n=e.name;P(!n||typeof n=="string"&&n.match(d7),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(P(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(Pse);if(o){const a=parseInt(o[2]||"-1"),c=Wn.from({type:o[1],components:e.components});return new Wn(wt,n||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(l=>Wn.from(l)):null;return new Wn(wt,n||"",i,"tuple",s,a,null,null)}return i=N8(e.type),new Wn(wt,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[pn]===_8}};uf=new WeakSet,Qp=function(e,r,n,s){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=r.slice();a.forEach((c,l)=>{var u;Y(u=o,uf,Qp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(r))a=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in r))throw new Error(`missing value for component ${c.name}`);return r[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;Y(u=o[l],uf,Qp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}const i=n(this.type,r);i.then?e.push(async function(){s(await i)}()):s(i)};let or=Wn;class _a{constructor(e,r,n){N(this,"type");N(this,"inputs");yo(e,wt,"Fragment"),n=Object.freeze(n.slice()),fe(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{_a.from(JSON.parse(e))}catch{}return _a.from(qa(e))}if(e instanceof Ls)switch(e.peekKeyword(u7)){case"constructor":return ci.from(e);case"error":return Vr.from(e);case"event":return As.from(e);case"fallback":case"receive":return si.from(e);case"function":return Ss.from(e);case"struct":return wa.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return ci.from(e);case"error":return Vr.from(e);case"event":return As.from(e);case"fallback":case"receive":return si.from(e);case"function":return Ss.from(e);case"struct":return wa.from(e)}z(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}P(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return ci.isFragment(e)}static isError(e){return Vr.isFragment(e)}static isEvent(e){return As.isFragment(e)}static isFunction(e){return Ss.isFragment(e)}static isStruct(e){return wa.isFragment(e)}}class w1 extends _a{constructor(r,n,s,i){super(r,n,i);N(this,"name");P(typeof s=="string"&&s.match(d7),"invalid identifier","name",s),i=Object.freeze(i.slice()),fe(this,{name:s})}}function w0(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class Vr extends w1{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,pn,{value:M8})}get selector(){return Qr(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+w0(e,this.inputs)),r.join(" ")}static from(e){if(Vr.isFragment(e))return e;if(typeof e=="string")return Vr.from(qa(e));if(e instanceof Ls){const r=Ug("error",e),n=to(e);return gl(e),new Vr(wt,r,n)}return new Vr(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===M8}}class As extends w1{constructor(r,n,s,i){super(r,"event",n,s);N(this,"anonymous");Object.defineProperty(this,pn,{value:D8}),fe(this,{anonymous:i})}get topicHash(){return Qr(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+w0(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(i=>or.from(i)),new As(wt,r,n,!1).topicHash}static from(r){if(As.isFragment(r))return r;if(typeof r=="string")try{return As.from(qa(r))}catch{P(!1,"invalid event fragment","obj",r)}else if(r instanceof Ls){const n=Ug("event",r),s=to(r,!0),i=!!co(r,zr(["anonymous"])).has("anonymous");return gl(r),new As(wt,n,s,i)}return new As(wt,r.name,r.inputs?r.inputs.map(n=>or.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[pn]===D8}}class ci extends _a{constructor(r,n,s,i,o){super(r,n,s);N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:B8}),fe(this,{payable:i,gas:o})}format(r){if(z(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="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(s=>JSON.parse(s.format(r)))});const n=[`constructor${w0(r,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(ci.isFragment(r))return r;if(typeof r=="string")try{return ci.from(qa(r))}catch{P(!1,"invalid constuctor fragment","obj",r)}else if(r instanceof Ls){co(r,zr(["constructor"]));const n=to(r),s=!!co(r,mse).has("payable"),i=y7(r);return gl(r),new ci(wt,"constructor",n,s,i)}return new ci(wt,"constructor",r.inputs?r.inputs.map(or.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===B8}}class si extends _a{constructor(r,n,s){super(r,"fallback",n);N(this,"payable");Object.defineProperty(this,pn,{value:L8}),fe(this,{payable:s})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:s})}return`${n}()${this.payable?" payable":""}`}static from(r){if(si.isFragment(r))return r;if(typeof r=="string")try{return si.from(qa(r))}catch{P(!1,"invalid fallback fragment","obj",r)}else if(r instanceof Ls){const n=r.toString(),s=r.peekKeyword(zr(["fallback","receive"]));if(P(s,"type must be fallback or receive","obj",n),r.popKeyword(zr(["fallback","receive"]))==="receive"){const c=to(r);return P(c.length===0,"receive cannot have arguments","obj.inputs",c),co(r,zr(["payable"])),gl(r),new si(wt,[],!0)}let o=to(r);o.length?P(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[or.from("bytes")];const a=p7(r);if(P(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),co(r,zr(["returns"])).has("returns")){const c=to(r);P(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return gl(r),new si(wt,o,a==="payable")}if(r.type==="receive")return new si(wt,[],!0);if(r.type==="fallback"){const n=[or.from("bytes")],s=r.stateMutability==="payable";return new si(wt,n,s)}P(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[pn]===L8}}class Ss extends w1{constructor(r,n,s,i,o,a){super(r,"function",n,i);N(this,"constant");N(this,"outputs");N(this,"stateMutability");N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:j8}),o=Object.freeze(o.slice()),fe(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return Qr(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="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(s=>JSON.parse(s.format(r))),outputs:this.outputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+w0(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(w0(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(i=>or.from(i)),new Ss(wt,r,"view",n,[],null).selector}static from(r){if(Ss.isFragment(r))return r;if(typeof r=="string")try{return Ss.from(qa(r))}catch{P(!1,"invalid function fragment","obj",r)}else if(r instanceof Ls){const s=Ug("function",r),i=to(r),o=p7(r);let a=[];co(r,zr(["returns"])).has("returns")&&(a=to(r));const c=y7(r);return gl(r),new Ss(wt,s,o,i,a,c)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new Ss(wt,r.name,n,r.inputs?r.inputs.map(or.from):[],r.outputs?r.outputs.map(or.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===j8}}class wa extends w1{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,pn,{value:F8})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return wa.from(qa(e))}catch{P(!1,"invalid struct fragment","obj",e)}else if(e instanceof Ls){const r=Ug("struct",e),n=to(e);return gl(e),new wa(wt,r,n)}return new wa(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===F8}}const Us=new Map;Us.set(0,"GENERIC_PANIC");Us.set(1,"ASSERT_FALSE");Us.set(17,"OVERFLOW");Us.set(18,"DIVIDE_BY_ZERO");Us.set(33,"ENUM_RANGE_ERROR");Us.set(34,"BAD_STORAGE_DATA");Us.set(49,"STACK_UNDERFLOW");Us.set(50,"ARRAY_RANGE_ERROR");Us.set(65,"OUT_OF_MEMORY");Us.set(81,"UNINITIALIZED_FUNCTION_CALL");const Ise=new RegExp(/^bytes([0-9]*)$/),Ose=new RegExp(/^(u?int)([0-9]*)$/);let Px=null,U8=1024;function Rse(t,e,r,n){let s="missing revert data",i=null;const o=null;let a=null;if(r){s="execution reverted";const l=Q(r);if(r=H(r),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(H(l.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(H(l.slice(0,4))==="0x4e487b71")try{const u=Number(n.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${Us.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?Te(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Te(e.from)),ft(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:c,invocation:o,revert:a})}var Ho,Kl;const Mv=class Mv{constructor(){j(this,Ho)}getDefaultValue(e){const r=e.map(s=>Y(this,Ho,Kl).call(this,or.from(s)));return new pp(r,"_").defaultValue()}encode(e,r){f5(r.length,e.length,"types/values length mismatch");const n=e.map(o=>Y(this,Ho,Kl).call(this,or.from(o))),s=new pp(n,"_"),i=new Mw;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>Y(this,Ho,Kl).call(this,or.from(o)));return new pp(s,"_").decode(new Dw(r,n,U8))}static _setDefaultMaxInflation(e){P(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),U8=e}static defaultAbiCoder(){return Px==null&&(Px=new Mv),Px}static getBuiltinCallException(e,r,n){return Rse(e,r,n,Mv.defaultAbiCoder())}};Ho=new WeakSet,Kl=function(e){if(e.isArray())return new Xre(Y(this,Ho,Kl).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new pp(e.components.map(n=>Y(this,Ho,Kl).call(this,n)),e.name);switch(e.baseType){case"address":return new Jre(e.name);case"bool":return new Zre(e.name);case"string":return new cne(e.name);case"bytes":return new ene(e.name);case"":return new nne(e.name)}let r=e.type.match(Ose);if(r){let n=parseInt(r[2]||"256");return P(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new ane(n/8,r[1]==="int",e.name)}if(r=e.type.match(Ise),r){let n=parseInt(r[1]);return P(n!==0&&n<=32,"invalid bytes length","param",e),new tne(n,e.name)}P(!1,"invalid type","type",e.type)};let Kt=Mv;function Nse(t){const e=mt(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Og(e,32)}function _se(t){const e=Q(t,"bytes");if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Ds(e.slice(0,r))}class v7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"signature");N(this,"topic");N(this,"args");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class g7{constructor(e,r,n,s){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");N(this,"value");const i=e.name,o=e.format();fe(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class m7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class Kw{constructor(e){N(this,"hash");N(this,"_isIndexed");fe(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const $8={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"},W8={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&$8[t.toString()]&&(e=$8[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var Ys,Xs,Zs,Sr,yi,Jp,Yp;const hc=class hc{constructor(e){j(this,yi);N(this,"fragments");N(this,"deploy");N(this,"fallback");N(this,"receive");j(this,Ys);j(this,Xs);j(this,Zs);j(this,Sr);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,T(this,Zs,new Map),T(this,Ys,new Map),T(this,Xs,new Map);const n=[];for(const o of r)try{n.push(_a.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}fe(this,{fragments:Object.freeze(n)});let s=null,i=!1;T(this,Sr,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}fe(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(P(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=w(this,Zs);break;case"event":c=w(this,Xs);break;case"error":c=w(this,Ys);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||fe(this,{deploy:ci.from("constructor()")}),fe(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(s=>s.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return Kt.defaultAbiCoder()}getFunctionName(e){const r=Y(this,yi,Jp).call(this,e,null,!1);return P(r,"no matching function","key",e),r.name}hasFunction(e){return!!Y(this,yi,Jp).call(this,e,null,!1)}getFunction(e,r){return Y(this,yi,Jp).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(w(this,Zs).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;nn.localeCompare(s));for(let n=0;n1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");P(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=Vr.from(e).format(),e==="Error(string)")return Vr.from("error Error(string)");if(e==="Panic(uint256)")return Vr.from("error Panic(uint256)");const n=w(this,Ys).get(e);return n||null}forEachError(e){const r=Array.from(w(this,Ys).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;ni.type==="string"?Qr(o):i.type==="bytes"?_e(H(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=In(o):i.type.match(/^bytes/)?o=Og(o,32):i.type==="address"&&w(this,Sr).encode(["address"],[o]),rs(H(o),32));for(r.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){P(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?P(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?n.push(i.map(c=>s(a,c))):n.push(s(a,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);P(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),P(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const c=r[a];if(o.indexed)if(o.type==="string")n.push(Qr(c));else if(o.type==="bytes")n.push(_e(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(w(this,Sr).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:w(this,Sr).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const h=this.getEvent(e);P(h,"unknown event","eventFragment",e),e=h}if(n!=null&&!e.anonymous){const h=e.topicHash;P(et(n[0],32)&&n[0].toLowerCase()===h,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((h,y)=>{h.indexed?h.type==="string"||h.type==="bytes"||h.baseType==="tuple"||h.baseType==="array"?(s.push(or.from({type:"bytes32",name:h.name})),o.push(!0)):(s.push(h),o.push(!1)):(i.push(h),o.push(!1))});const a=n!=null?w(this,Sr).decode(s,Le(n)):null,c=w(this,Sr).decode(i,r,!0),l=[],u=[];let f=0,d=0;return e.inputs.forEach((h,y)=>{let p=null;if(h.indexed)if(a==null)p=new Kw(null);else if(o[y])p=new Kw(a[d++]);else try{p=a[d++]}catch(b){p=b}else try{p=c[f++]}catch(b){p=b}l.push(p),u.push(h.name||null)}),pl.fromItems(l,u)}parseTransaction(e){const r=Q(e.data,"tx.data"),n=ve(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(H(r.slice(0,4)));if(!s)return null;const i=w(this,Sr).decode(s.inputs,r.slice(4));return new g7(s,s.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new v7(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=H(e),n=this.getError(st(r,0,4));if(!n)return null;const s=w(this,Sr).decode(n.inputs,st(r,4));return new m7(n,n.selector,s)}static from(e){return e instanceof hc?e:typeof e=="string"?new hc(JSON.parse(e)):typeof e.formatJson=="function"?new hc(e.formatJson()):typeof e.format=="function"?new hc(e.format("json")):new hc(e)}};Ys=new WeakMap,Xs=new WeakMap,Zs=new WeakMap,Sr=new WeakMap,yi=new WeakSet,Jp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Zs).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Zs))o.split("(")[0]===e&&i.push(a);if(r){const o=r.length>0?r[r.length-1]:null;let a=r.length,c=!0;gr.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(r[f].type==="overrides")continue;i.splice(l,1);break}if(r[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&r&&r.length!==i[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Zs).get(Ss.from(e).format());return s||null},Yp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Xs).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Xs))o.split("(")[0]===e&&i.push(a);if(r){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Xs).get(As.from(e).format());return s||null};let pt=hc;const x7=BigInt(0);function _u(t){return t??null}function Nt(t){return t==null?null:t.toString()}class Qw{constructor(e,r,n){N(this,"gasPrice");N(this,"maxFeePerGas");N(this,"maxPriorityFeePerGas");fe(this,{gasPrice:_u(e),maxFeePerGas:_u(r),maxPriorityFeePerGas:_u(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Nt(e),maxFeePerGas:Nt(r),maxPriorityFeePerGas:Nt(n)}}}function Yf(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=H(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=ve(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=Pe(t[s],`request.${s}`));return t.accessList&&(e.accessList=go(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),"blobVersionedHashes"in t&&t.blobVersionedHashes&&(e.blobVersionedHashes=t.blobVersionedHashes.slice()),"kzg"in t&&(e.kzg=t.kzg),"blobs"in t&&t.blobs&&(e.blobs=t.blobs.map(s=>mi(s)?H(s):Object.assign({},s))),e}var Bi;class b7{constructor(e,r){N(this,"provider");N(this,"number");N(this,"hash");N(this,"timestamp");N(this,"parentHash");N(this,"parentBeaconBlockRoot");N(this,"nonce");N(this,"difficulty");N(this,"gasLimit");N(this,"gasUsed");N(this,"stateRoot");N(this,"receiptsRoot");N(this,"blobGasUsed");N(this,"excessBlobGas");N(this,"miner");N(this,"prevRandao");N(this,"extraData");N(this,"baseFeePerGas");j(this,Bi);T(this,Bi,e.transactions.map(n=>typeof n!="string"?new Xf(n,r):n)),fe(this,{provider:r,hash:_u(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:_u(e.prevRandao),extraData:e.extraData,baseFeePerGas:_u(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return w(this,Bi).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=w(this,Bi).slice();return e.length===0?[]:(z(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:s,gasUsed:i,hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,timestamp:p,transactions:b}=this;return{_type:"Block",baseFeePerGas:Nt(e),difficulty:Nt(r),extraData:n,gasLimit:Nt(s),gasUsed:Nt(i),blobGasUsed:Nt(this.blobGasUsed),excessBlobGas:Nt(this.excessBlobGas),hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,timestamp:p,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,transactions:b}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>enew Ed(s,r))));let n=x7;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),fe(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return w(this,U0)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:Nt(this.cumulativeGasUsed),from:r,gasPrice:Nt(this.gasPrice),blobGasUsed:Nt(this.blobGasUsed),blobGasPrice:Nt(this.blobGasPrice),gasUsed:Nt(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(a)return null;const{blockNumber:d,nonce:h}=await Pt({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(h{if(d==null||d.status!==0)return d;z(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},u=await this.provider.getTransactionReceipt(this.hash);if(n===0)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),n===0)return null;return await new Promise((d,h)=>{const y=[],p=()=>{y.forEach(v=>v())};if(y.push(()=>{a=!0}),s>0){const v=setTimeout(()=>{p(),h(ft("wait for transaction timeout","TIMEOUT"))},s);y.push(()=>{clearTimeout(v)})}const b=async v=>{if(await v.confirmations()>=n){p();try{d(l(v))}catch(g){h(g)}}};if(y.push(()=>{this.provider.off(this.hash,b)}),this.provider.on(this.hash,b),i>=0){const v=async()=>{try{await c()}catch(g){if(Ht(g,"TRANSACTION_REPLACED")){p(),h(g);return}}a||this.provider.once("block",v)};y.push(()=>{this.provider.off("block",v)}),this.provider.once("block",v)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),E7(this)}reorderedEvent(e){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),z(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),w7(this,e)}replaceableTransaction(e){P(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new Vk(this,this.provider);return T(r,zo,e),r}};zo=new WeakMap;let Xf=Vk;function Mse(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function w7(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function E7(t){return{orphan:"drop-transaction",tx:t}}function Dse(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class $g extends Ed{constructor(r,n,s){super(r,r.provider);N(this,"interface");N(this,"fragment");N(this,"args");const i=n.decodeEventLog(s,r.data,r.topics);fe(this,{args:i,fragment:s,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class j5 extends Ed{constructor(r,n){super(r,r.provider);N(this,"error");fe(this,{error:n})}}var ff;class C7 extends L5{constructor(r,n,s){super(s,n);j(this,ff);T(this,ff,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?w(this,ff).getEvent(r.topics[0]):null;if(n)try{return new $g(r,w(this,ff),n)}catch(s){return new j5(r,s)}return r})}}ff=new WeakMap;var $0;class Wg extends Xf{constructor(r,n,s){super(s,n);j(this,$0);T(this,$0,r)}async wait(r,n){const s=await super.wait(r,n);return s==null?null:new C7(w(this,$0),this.provider,s)}}$0=new WeakMap;class F5 extends p5{constructor(r,n,s,i){super(r,n,s);N(this,"log");fe(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class k7 extends F5{constructor(e,r,n,s,i){super(e,r,n,new $g(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);fe(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const V8=BigInt(0);function A7(t){return t&&typeof t.call=="function"}function S7(t){return t&&typeof t.estimateGas=="function"}function Vg(t){return t&&typeof t.resolveName=="function"}function T7(t){return t&&typeof t.sendTransaction=="function"}function P7(t){if(t!=null){if(Vg(t))return t;if(t.provider)return t.provider}}var W0;class Bse{constructor(e,r,n){j(this,W0);N(this,"fragment");if(fe(this,{fragment:r}),r.inputs.lengthn[c]==null?null:a.walkAsync(n[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(d=>sr(d,i))):sr(f,i):f)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return w(this,W0)}}W0=new WeakMap;function ml(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function bc(t){return t==null?null:t.provider||null}async function U5(t,e){const r=gr.dereference(t,"overrides");P(typeof r=="object","invalid overrides parameter","overrides",t);const n=Yf(r);return P(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),P(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function I7(t,e,r){const n=ml(t,"resolveName"),s=Vg(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(a,c)=>(c=gr.dereference(c,a),a==="address"?sr(c,s):c))))}function Lse(t){const e=async function(o){const a=await U5(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await sr(a.from,P7(t.runner)));const c=t.interface,l=ve(a.value||V8,"overrides.value")===V8,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&P(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return P(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=ml(t.runner,"call");z(A7(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(o);try{return await a.call(c)}catch(l){throw Ig(l)&&l.data?t.interface.makeError(l.data,c):l}},n=async function(o){const a=t.runner;z(T7(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=bc(t.runner);return new Wg(t.interface,l,c)},s=async function(o){const a=ml(t.runner,"estimateGas");return z(S7(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},i=async o=>await n(o);return fe(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function jse(t,e){const r=function(...l){const u=t.interface.getFunction(e,l);return z(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},n=async function(...l){const u=r(...l);let f={};if(u.inputs.length+1===l.length&&(f=await U5(l.pop()),f.from&&(f.from=await sr(f.from,P7(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await I7(t.runner,u.inputs,l);return Object.assign({},f,await Pt({to:t.getAddress(),data:t.interface.encodeFunctionData(u,d)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;z(T7(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await n(...l)),d=bc(t.runner);return new Wg(t.interface,d,f)},o=async function(...l){const u=ml(t.runner,"estimateGas");return z(S7(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...l))},a=async function(...l){const u=ml(t.runner,"call");z(A7(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await n(...l);let d="0x";try{d=await u.call(f)}catch(y){throw Ig(y)&&y.data?t.interface.makeError(y.data,f):y}const h=r(...l);return t.interface.decodeFunctionResult(h,d)},c=async(...l)=>r(...l).constant?await s(...l):await i(...l);return fe(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=t.interface.getFunction(e);return z(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function Fse(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return z(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},n=function(...s){return new Bse(t,r(...s),s)};return fe(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return z(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),n}const uv=Symbol.for("_ethersInternal_contract"),O7=new WeakMap;function Use(t,e){O7.set(t[uv],e)}function mn(t){return O7.get(t[uv])}function $se(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function $5(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(et(o,32))return o;const a=t.interface.getEvent(o);return P(a,"unknown fragment","name",o),a.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?r=[null]:typeof e=="string"?et(e,32)?r=[e]:(n=t.interface.getEvent(e),P(n,"unknown fragment","event",e),r=[n.topicHash]):$se(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):P(!1,"unknown event name","event",e);r=r.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=r.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:s,topics:r}}async function rh(t,e){const{subs:r}=mn(t);return r.get((await $5(t,e)).tag)||null}async function H8(t,e,r){const n=bc(t.runner);z(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await $5(t,r),{addr:a,subs:c}=mn(t);let l=c.get(i);if(!l){const f={address:a||t,topics:o},d=b=>{let v=s;if(v==null)try{v=t.interface.getEvent(b.topics[0])}catch{}if(v){const g=v,x=s?t.interface.decodeEventLog(s,b.data,b.topics):[];Yw(t,r,x,k=>new k7(t,k,r,g,b))}else Yw(t,r,[],g=>new F5(t,g,r,b))};let h=[];l={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(f,d))},stop:async()=>{if(h.length==0)return;let b=h;h=[],await Promise.all(b),n.off(f,d)}},c.set(i,l)}return l}let Jw=Promise.resolve();async function Wse(t,e,r,n){await Jw;const s=await rh(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(r);n&&c.push(n(a?null:o));try{o.call(t,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),mn(t).subs.delete(s.tag)),i>0}async function Yw(t,e,r,n){try{await Jw}catch{}const s=Wse(t,e,r,n);return Jw=s,await s}const vp=["then"];var D3;D3=uv;const Uh=class Uh{constructor(e,r,n,s){N(this,"target");N(this,"interface");N(this,"runner");N(this,"filters");N(this,D3);N(this,"fallback");P(typeof e=="string"||I5(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=pt.from(r);fe(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,uv,{value:{}});let o,a=null,c=null;if(s){const f=bc(n);c=new Wg(this.interface,f,s)}let l=new Map;if(typeof e=="string")if(et(e))a=e,o=Promise.resolve(e);else{const f=ml(n,"resolveName");if(!Vg(f))throw ft("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(e).then(d=>{if(d==null)throw ft("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return mn(this).addr=d,d})}else o=e.getAddress().then(f=>{if(f==null)throw new Error("TODO");return mn(this).addr=f,f});Use(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,d,h)=>{if(typeof d=="symbol"||vp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return this.getEvent(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>vp.indexOf(d)>=0?Reflect.has(f,d):Reflect.has(f,d)||this.interface.hasEvent(String(d))});return fe(this,{filters:u}),fe(this,{fallback:i.receive||i.fallback?Lse(this):null}),new Proxy(this,{get:(f,d,h)=>{if(typeof d=="symbol"||d in f||vp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return f.getFunction(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>typeof d=="symbol"||d in f||vp.indexOf(d)>=0?Reflect.has(f,d):f.interface.hasFunction(d)})}connect(e){return new Uh(this.target,this.interface,e)}attach(e){return new Uh(e,this.interface,this.runner)}async getAddress(){return await mn(this).addrPromise}async getDeployedCode(){const e=bc(this.runner);z(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=bc(this.runner);return z(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);n.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return mn(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),jse(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),Fse(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:s,addrPromise:i}=mn(this),o=s||await i,{fragment:a,topics:c}=await $5(this,e),l={address:o,topics:c,fromBlock:r,toBlock:n},u=bc(this.runner);return z(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let d=a;if(d==null)try{d=this.interface.getEvent(f.topics[0])}catch{}if(d)try{return new $g(f,this.interface,d)}catch(h){return new j5(f,h)}return new Ed(f,u)})}async on(e,r){const n=await H8(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await H8(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await Yw(this,e,r,null)}async listenerCount(e){if(e){const s=await rh(this,e);return s?s.listeners.length:0}const{subs:r}=mn(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await rh(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=mn(this);let n=[];for(const{listeners:s}of r.values())n=n.concat(s.map(({listener:i})=>i));return n}async off(e,r){const n=await rh(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(r==null||n.listeners.length===0)&&(n.stop(),mn(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await rh(this,e);if(!r)return this;r.stop(),mn(this).subs.delete(r.tag)}else{const{subs:r}=mn(this);for(const{tag:n,stop:s}of r.values())s(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends Uh{constructor(s,i=null){super(s,e,i)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let Zf=Uh;function Vse(){return Zf}class dn extends Vse(){}class W5{constructor(e,r,n){N(this,"interface");N(this,"bytecode");N(this,"runner");const s=pt.from(e);r instanceof Uint8Array||(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r)),r=H(Q(r)),fe(this,{bytecode:r,interface:s,runner:n||null})}attach(e){return new Zf(e,this.interface,this.runner)}async getDeployTransaction(...e){let r={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(r=await U5(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await I7(this.runner,n.inputs,e),i=Le([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},r,{data:i})}async deploy(...e){const r=await this.getDeployTransaction(...e);z(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(r),s=P5(n);return new Zf(s,this.interface,this.runner,n)}connect(e){return new W5(this.interface,this.bytecode,e)}static fromSolidity(e,r){P(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let s="";return e.bytecode?s=e.bytecode:e.evm&&e.evm.bytecode&&(s=e.evm.bytecode),new this(n,s,r)}}function Ix(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):P(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class R7{constructor(e){N(this,"name");fe(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const N7=new RegExp("^(ipfs)://(.*)$","i"),z8=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),N7,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Go,Dc,qo,Ql,Dv,_7;const mu=class mu{constructor(e,r,n){j(this,qo);N(this,"provider");N(this,"address");N(this,"name");j(this,Go);j(this,Dc);fe(this,{provider:e,address:r,name:n}),T(this,Go,null),T(this,Dc,new dn(r,["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)"],e))}async supportsWildcard(){return w(this,Go)==null&&T(this,Go,(async()=>{try{return await w(this,Dc).supportsInterface("0x9061b923")}catch(e){if(Ht(e,"CALL_EXCEPTION"))return!1;throw T(this,Go,null),e}})()),await w(this,Go)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await Y(this,qo,Ql).call(this,"addr(bytes32)");return i==null||i===xi?null:i}catch(i){if(Ht(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await Y(this,qo,Ql).call(this,"addr(bytes32,uint)",[i]);if(et(o,20))return Te(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof R7&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await Y(this,qo,Ql).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const s=await r.decodeAddress(e,n);if(s!=null)return s;z(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await Y(this,qo,Ql).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await Y(this,qo,Ql).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=r[1]==="e3010170"?"ipfs":"ipns",i=parseInt(r[4],16);if(r[5].length===i*2)return`${s}://${h5("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;z(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function E1(t,e){return r=>{const n={};for(const s in t){let i=s;if(e&&s in e&&!(i in r)){for(const o of e[s])if(o in r){i=o;break}}try{const o=t[s](r[i]);o!==void 0&&(n[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";z(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:r})}}return n}}function Hse(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}P(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function ed(t){return P(et(t,!0),"invalid data","value",t),t}function hr(t){return P(et(t,32),"invalid hash","value",t),t}const zse=E1({address:Te,blockHash:hr,blockNumber:Pe,data:ed,index:Pe,removed:He(Hse,!1),topics:Hg(hr),transactionHash:hr,transactionIndex:Pe},{index:["logIndex"]});function Gse(t){return zse(t)}const qse=E1({hash:He(hr),parentHash:hr,parentBeaconBlockRoot:He(hr,null),number:Pe,timestamp:Pe,nonce:He(ed),difficulty:ve,gasLimit:ve,gasUsed:ve,stateRoot:He(hr,null),receiptsRoot:He(hr,null),blobGasUsed:He(ve,null),excessBlobGas:He(ve,null),miner:He(Te),prevRandao:He(hr,null),extraData:ed,baseFeePerGas:He(ve)},{prevRandao:["mixHash"]});function Kse(t){const e=qse(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:M7(r)),e}const Qse=E1({transactionIndex:Pe,blockNumber:Pe,transactionHash:hr,address:Te,topics:Hg(hr),data:ed,index:Pe,blockHash:hr},{index:["logIndex"]});function Jse(t){return Qse(t)}const Yse=E1({to:He(Te,null),from:He(Te,null),contractAddress:He(Te,null),index:Pe,root:He(H),gasUsed:ve,blobGasUsed:He(ve,null),logsBloom:He(ed),blockHash:hr,hash:hr,logs:Hg(Jse),blockNumber:Pe,cumulativeGasUsed:ve,effectiveGasPrice:He(ve),blobGasPrice:He(ve,null),status:He(Pe),type:He(Pe,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Xse(t){return Yse(t)}function M7(t){t.to&&ve(t.to)===G8&&(t.to="0x0000000000000000000000000000000000000000");const e=E1({hash:hr,index:He(Pe,void 0),type:r=>r==="0x"||r==null?0:Pe(r),accessList:He(go,null),blobVersionedHashes:He(Hg(hr,!0),null),blockHash:He(hr,null),blockNumber:He(Pe,null),transactionIndex:He(Pe,null),from:Te,gasPrice:He(ve),maxPriorityFeePerGas:He(ve),maxFeePerGas:He(ve),maxFeePerBlobGas:He(ve,null),gasLimit:ve,to:He(Te,null),value:ve,nonce:Pe,data:ed,creates:He(Te,null),chainId:He(ve,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=P5(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=os.from(t.signature):e.signature=os.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&ve(e.blockHash)===G8&&(e.blockHash=null),e}const Zse="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Ka{constructor(e){N(this,"name");fe(this,{name:e})}clone(){return new Ka(this.name)}}class C1 extends Ka{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);N(this,"effectiveBlock");N(this,"txBase");N(this,"txCreate");N(this,"txDataZero");N(this,"txDataNonzero");N(this,"txAccessListStorageKey");N(this,"txAccessListAddress");const s={effectiveBlock:r};function i(o,a){let c=(n||{})[o];c==null&&(c=a),P(typeof c=="number",`invalud value for ${o}`,"costs",n),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),fe(this,s)}clone(){return new C1(this.effectiveBlock,this)}}class k1 extends Ka{constructor(r,n){super("org.ethers.plugins.network.Ens");N(this,"address");N(this,"targetNetwork");fe(this,{address:r||Zse,targetNetwork:n??1})}clone(){return new k1(this.address,this.targetNetwork)}}var Bc;const Hk=class Hk extends Ka{constructor(r){super("org.ethers.plugins.network.FeeData");j(this,Bc);T(this,Bc,r)}get feeDataFunc(){return w(this,Bc)}async getFeeData(r){return await w(this,Bc).call(this,r)}clone(){return new Hk(w(this,Bc))}};Bc=new WeakMap;let Xw=Hk;var V0,H0;class D7 extends Ka{constructor(r,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");j(this,V0);j(this,H0);T(this,V0,r),T(this,H0,n)}get url(){return w(this,V0)}get processFunc(){return w(this,H0)}clone(){return this}}V0=new WeakMap,H0=new WeakMap;const Ox=new Map;var df,hf,Ko;const xu=class xu{constructor(e,r){j(this,df);j(this,hf);j(this,Ko);T(this,df,e),T(this,hf,ve(r)),T(this,Ko,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return w(this,df)}set name(e){T(this,df,e)}get chainId(){return w(this,hf)}set chainId(e){T(this,hf,ve(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===ve(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===ve(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===ve(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(w(this,Ko).values())}attachPlugin(e){if(w(this,Ko).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Ko).set(e.name,e.clone()),this}getPlugin(e){return w(this,Ko).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new xu(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new C1;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s9){let s=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||s++,n[1]=s.toString()}return BigInt(n[0]+n[1])}function K8(t){return new D7(t,async(e,r,n)=>{n.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([n.send(),e()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:q8(a.maxFee,9),maxPriorityFeePerGas:q8(a.maxPriorityFee,9)}}catch(i){z(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:s,error:i})}})}let Q8=!1;function eie(){if(Q8)return;Q8=!0;function t(e,r,n){const s=function(){const i=new ot(e,r);return n.ensNetwork!=null&&i.attachPlugin(new k1(null,n.ensNetwork)),i.attachPlugin(new C1),(n.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};ot.register(e,s),ot.register(r,s),n.altNames&&n.altNames.forEach(i=>{ot.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("holesky",17e3,{ensNetwork:17e3}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("arbitrum-sepolia",421614,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("linea-sepolia",59141,{}),t("matic",137,{ensNetwork:1,plugins:[K8("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[K8("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("optimism-sepolia",11155420,{}),t("xdai",100,{ensNetwork:1})}function Zw(t){return JSON.parse(JSON.stringify(t))}var Li,Vn,Qo,ei,pf,Xp;class tie{constructor(e){j(this,pf);j(this,Li);j(this,Vn);j(this,Qo);j(this,ei);T(this,Li,e),T(this,Vn,null),T(this,Qo,4e3),T(this,ei,-2)}get pollingInterval(){return w(this,Qo)}set pollingInterval(e){T(this,Qo,e)}start(){w(this,Vn)||(T(this,Vn,w(this,Li)._setTimeout(Y(this,pf,Xp).bind(this),w(this,Qo))),Y(this,pf,Xp).call(this))}stop(){w(this,Vn)&&(w(this,Li)._clearTimeout(w(this,Vn)),T(this,Vn,null))}pause(e){this.stop(),e&&T(this,ei,-2)}resume(){this.start()}}Li=new WeakMap,Vn=new WeakMap,Qo=new WeakMap,ei=new WeakMap,pf=new WeakSet,Xp=async function(){try{const e=await w(this,Li).getBlockNumber();if(w(this,ei)===-2){T(this,ei,e);return}if(e!==w(this,ei)){for(let r=w(this,ei)+1;r<=e;r++){if(w(this,Vn)==null)return;await w(this,Li).emit("block",r)}T(this,ei,e)}}catch{}w(this,Vn)!=null&&T(this,Vn,w(this,Li)._setTimeout(Y(this,pf,Xp).bind(this),w(this,Qo)))};var Lc,jc,Jo;class V5{constructor(e){j(this,Lc);j(this,jc);j(this,Jo);T(this,Lc,e),T(this,Jo,!1),T(this,jc,r=>{this._poll(r,w(this,Lc))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){w(this,Jo)||(T(this,Jo,!0),w(this,jc).call(this,-2),w(this,Lc).on("block",w(this,jc)))}stop(){w(this,Jo)&&(T(this,Jo,!1),w(this,Lc).off("block",w(this,jc)))}pause(e){this.stop()}resume(){this.start()}}Lc=new WeakMap,jc=new WeakMap,Jo=new WeakMap;var yf,ji;class rie extends V5{constructor(r,n){super(r);j(this,yf);j(this,ji);T(this,yf,n),T(this,ji,-2)}pause(r){r&&T(this,ji,-2),super.pause(r)}async _poll(r,n){const s=await n.getBlock(w(this,yf));s!=null&&(w(this,ji)===-2?T(this,ji,s.number):s.number>w(this,ji)&&(n.emit(w(this,yf),s.number),T(this,ji,s.number)))}}yf=new WeakMap,ji=new WeakMap;var Bv;class nie extends V5{constructor(r,n){super(r);j(this,Bv);T(this,Bv,Zw(n))}async _poll(r,n){throw new Error("@TODO")}}Bv=new WeakMap;var vf;class sie extends V5{constructor(r,n){super(r);j(this,vf);T(this,vf,n)}async _poll(r,n){const s=await n.getTransactionReceipt(w(this,vf));s&&n.emit(w(this,vf),s)}}vf=new WeakMap;var Fi,gf,mf,Yo,Hn,Lv,B7;class H5{constructor(e,r){j(this,Lv);j(this,Fi);j(this,gf);j(this,mf);j(this,Yo);j(this,Hn);T(this,Fi,e),T(this,gf,Zw(r)),T(this,mf,Y(this,Lv,B7).bind(this)),T(this,Yo,!1),T(this,Hn,-2)}start(){w(this,Yo)||(T(this,Yo,!0),w(this,Hn)===-2&&w(this,Fi).getBlockNumber().then(e=>{T(this,Hn,e)}),w(this,Fi).on("block",w(this,mf)))}stop(){w(this,Yo)&&(T(this,Yo,!1),w(this,Fi).off("block",w(this,mf)))}pause(e){this.stop(),e&&T(this,Hn,-2)}resume(){this.start()}}Fi=new WeakMap,gf=new WeakMap,mf=new WeakMap,Yo=new WeakMap,Hn=new WeakMap,Lv=new WeakSet,B7=async function(e){if(w(this,Hn)===-2)return;const r=Zw(w(this,gf));r.fromBlock=w(this,Hn)+1,r.toBlock=e;const n=await w(this,Fi).getLogs(r);if(n.length===0){w(this,Hn){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const s=Object.keys(n);return s.sort(),s.reduce((i,o)=>(i[o]=n[o],i),{})}return n})}class C0{constructor(e){N(this,"name");fe(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function aie(t){return JSON.parse(JSON.stringify(t))}function e2(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function Rx(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(et(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:Zp("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:Zp("orphan",r),filter:aie(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?e2(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=a=>{et(a)?s.push(a):i.push((async()=>{s.push(await sr(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=e2(s.map(a=>a.toLowerCase()))}return{filter:n,tag:Zp("event",n),type:"event"}}P(!1,"unknown ProviderEvent","event",t)}function Nx(){return new Date().getTime()}const cie={cacheTimeout:250,pollingInterval:4e3};var Tr,Xo,Pr,xf,En,Fc,Zo,Ui,z0,zn,bf,wf,Be,gn,t2,r2,nh,n2,sh,ey;class lo{constructor(e,r){j(this,Be);j(this,Tr);j(this,Xo);j(this,Pr);j(this,xf);j(this,En);j(this,Fc);j(this,Zo);j(this,Ui);j(this,z0);j(this,zn);j(this,bf);j(this,wf);if(T(this,wf,Object.assign({},cie,r||{})),e==="any")T(this,Fc,!0),T(this,En,null);else if(e){const n=ot.from(e);T(this,Fc,!1),T(this,En,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else T(this,Fc,!1),T(this,En,null);T(this,Ui,-1),T(this,Zo,new Map),T(this,Tr,new Map),T(this,Xo,new Map),T(this,Pr,null),T(this,xf,!1),T(this,z0,1),T(this,zn,new Map),T(this,bf,!1)}get pollingInterval(){return w(this,wf).pollingInterval}get provider(){return this}get plugins(){return Array.from(w(this,Xo).values())}attachPlugin(e){if(w(this,Xo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Xo).set(e.name,e.connect(this)),this}getPlugin(e){return w(this,Xo).get(e)||null}get disableCcipRead(){return w(this,bf)}set disableCcipRead(e){T(this,bf,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=r.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:f}}),o.push(f)}z(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new b7(Kse(e),this)}_wrapLog(e,r){return new Ed(Gse(e),this)}_wrapTransactionReceipt(e,r){return new L5(Xse(e),this)}_wrapTransactionResponse(e,r){return new Xf(M7(e),this)}_detectNetwork(){z(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){z(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Pe(await Y(this,Be,gn).call(this,{method:"getBlockNumber"}),"%response");return w(this,Ui)>=0&&T(this,Ui,e),e}_getAddress(e){return sr(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(et(e))return et(e,32)?e:pr(e);if(typeof e=="bigint"&&(e=Pe(e,"blockTag")),typeof e=="number")return e>=0?pr(e):w(this,Ui)>=0?pr(w(this,Ui)+e):this.getBlockNumber().then(r=>pr(r+e));P(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?e2(c.map(l=>l.toLowerCase())):c.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(n&&(l!=null||u!=null))throw new Error("invalid filter");const d={};return f&&(d.address=f),r.length&&(d.topics=r),l&&(d.fromBlock=l),u&&(d.toBlock=u),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(e){const r=Yf(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=sr(r[s],this);gp(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);gp(s)?n.push(async function(){r.blockTag=await s}()):r.blockTag=s}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(w(this,En)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw w(this,En)===s&&T(this,En,null),i}})();return T(this,En,s),(await s).clone()}const e=w(this,En),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(w(this,Fc)?(this.emit("network",n,r),w(this,En)===e&&T(this,En,Promise.resolve(n))):z(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const e=await this.getNetwork(),r=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await Pt({_block:Y(this,Be,n2).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getGasPrice"});return ve(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getPriorityFee"});return ve(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,e);return l&&l.baseFeePerGas&&(c=o??BigInt("1000000000"),a=l.baseFeePerGas*iie+c),new Qw(i,a,c)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const s=new qt(n.url),i=await n.processFunc(r,this,s);return new Qw(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return gp(r)&&(r=await r),ve(await Y(this,Be,gn).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await Pt({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Y(this,Be,r2).call(this,Y(this,Be,t2).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return ve(await Y(this,Be,nh).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return Pe(await Y(this,Be,nh).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return H(await Y(this,Be,nh).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=ve(r,"position");return H(await Y(this,Be,nh).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await Pt({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=vl.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,n2).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await Y(this,Be,gn).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await Pt({network:this.getNetwork(),result:Y(this,Be,gn).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:H(r)}async getLogs(e){let r=this._getFilter(e);gp(r)&&(r=await r);const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){z(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await E0.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Te(e);const r=lv(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await E0.getEnsAddress(this),i=await new dn(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(i==null||i===xi)return null;const a=await new dn(i,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(a)!==e?null:a}catch(n){if(Ht(n,"BAD_DATA")&&n.value==="0x"||Ht(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const s=r??1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(e);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};n!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(ft("timeout","TIMEOUT",{reason:"timeout"})))},n)),c(await this.getBlockNumber())})}async waitForBlock(e){z(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=w(this,zn).get(e);r&&(r.timer&&clearTimeout(r.timer),w(this,zn).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=Ol(this,z0)._++,s=()=>{w(this,zn).delete(n),e()};if(this.paused)w(this,zn).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);w(this,zn).set(n,{timer:i,func:s,time:Nx()})}return n}_forEachSubscriber(e){for(const r of w(this,Tr).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new C0(e.type);case"block":{const r=new tie(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new rie(this,e.type);case"event":return new H5(this,e.filter);case"transaction":return new sie(this,e.hash);case"orphan":return new nie(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of w(this,Tr).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),w(this,Pr)!=null&&r.pause(w(this,Pr));break}}async on(e,r){const n=await Y(this,Be,ey).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async once(e,r){const n=await Y(this,Be,ey).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async emit(e,...r){const n=await Y(this,Be,sh).call(this,e,r);if(!n||n.listeners.length===0)return!1;const s=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:o})=>{const a=new p5(this,o?null:i,e);try{i.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await Y(this,Be,sh).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of w(this,Tr).values())r+=n.length;return r}async listeners(e){if(e){const n=await Y(this,Be,sh).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of w(this,Tr).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await Y(this,Be,sh).call(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await Y(this,Be,ey).call(this,e);n&&s.stop(),w(this,Tr).delete(r)}else for(const[r,{started:n,subscriber:s}]of w(this,Tr))n&&s.stop(),w(this,Tr).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return w(this,xf)}destroy(){this.removeAllListeners();for(const e of w(this,zn).keys())this._clearTimeout(e);T(this,xf,!0)}get paused(){return w(this,Pr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(T(this,Ui,-1),w(this,Pr)!=null){if(w(this,Pr)==!!e)return;z(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),T(this,Pr,!!e);for(const r of w(this,zn).values())r.timer&&clearTimeout(r.timer),r.time=Nx()-r.time}resume(){if(w(this,Pr)!=null){this._forEachSubscriber(e=>e.resume()),T(this,Pr,null);for(const e of w(this,zn).values()){let r=e.time;r<0&&(r=0),e.time=Nx(),setTimeout(e.func,r)}}}}Tr=new WeakMap,Xo=new WeakMap,Pr=new WeakMap,xf=new WeakMap,En=new WeakMap,Fc=new WeakMap,Zo=new WeakMap,Ui=new WeakMap,z0=new WeakMap,zn=new WeakMap,bf=new WeakMap,wf=new WeakMap,Be=new WeakSet,gn=async function(e){const r=w(this,wf).cacheTimeout;if(r<0)return await this._perform(e);const n=Zp(e.method,e);let s=w(this,Zo).get(n);return s||(s=this._perform(e),w(this,Zo).set(n,s),setTimeout(()=>{w(this,Zo).get(n)===s&&w(this,Zo).delete(n)},r)),await s},t2=async function(e,r,n){z(n=0&&r==="latest"&&s.to!=null&&st(i.data,0,4)==="0x556f1830"){const o=i.data,a=await sr(s.to,this);let c;try{c=hie(st(i.data,4))}catch(f){z(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}z(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);z(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Le([c.selector,die([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await Y(this,Be,t2).call(this,u,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},r2=async function(e){const{value:r}=await Pt({network:this.getNetwork(),value:e});return r},nh=async function(e,r,n){let s=this._getAddress(r),i=this._getBlockTag(n);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await Y(this,Be,r2).call(this,Y(this,Be,gn).call(this,Object.assign(e,{address:s,blockTag:i})))},n2=async function(e,r){if(et(e,32))return await Y(this,Be,gn).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await Y(this,Be,gn).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},sh=async function(e,r){let n=await Rx(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await Rx({orphan:"drop-log",log:r[0]},this)),w(this,Tr).get(n.tag)||null},ey=async function(e){const r=await Rx(e,this),n=r.tag;let s=w(this,Tr).get(n);return s||(s={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},w(this,Tr).set(n,s)),s};function lie(t,e){try{const r=s2(t,e);if(r)return Ds(r)}catch{}return null}function s2(t,e){if(t==="0x")return null;try{const r=Pe(st(t,e,e+32)),n=Pe(st(t,r,r+32));return st(t,r+32,r+32+n)}catch{}return null}function J8(t){const e=rr(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function uie(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const fie=new Uint8Array([]);function die(t){const e=[];let r=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=st(t,0,32);z(st(r,0,12)===st(Y8,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=st(r,12);try{const n=[],s=Pe(st(t,32,64)),i=Pe(st(t,s,s+32)),o=st(t,s+32);for(let a=0;ae[n]),e}function jl(t,e){if(t.provider)return t.provider;z(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function X8(t,e){let r=Yf(e);if(r.to!=null&&(r.to=sr(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),sr(n,t)]).then(([s,i])=>(P(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await Pt(r)}class uo{constructor(e){N(this,"provider");fe(this,{provider:e||null})}async getNonce(e){return jl(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await X8(this,e)}async populateTransaction(e){const r=jl(this,"populateTransaction"),n=await X8(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const s=await this.provider.getNetwork();if(n.chainId!=null){const o=ve(n.chainId);P(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=s.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?P(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&P(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();z(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const a=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=a,n.maxPriorityFeePerGas=a}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(z(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):z(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(n.type===2||n.type===3)&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await Pt(n)}async estimateGas(e){return jl(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return jl(this,"call").call(await this.populateCall(e))}async resolveName(e){return await jl(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=jl(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=vl.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}var Ef,ty;const zk=class zk extends uo{constructor(r,n){super(n);j(this,Ef);N(this,"address");fe(this,{address:r})}async getAddress(){return this.address}connect(r){return new zk(this.address,r)}async signTransaction(r){Y(this,Ef,ty).call(this,"transactions","signTransaction")}async signMessage(r){Y(this,Ef,ty).call(this,"messages","signMessage")}async signTypedData(r,n,s){Y(this,Ef,ty).call(this,"typed-data","signTypedData")}};Ef=new WeakSet,ty=function(r,n){z(!1,`VoidSigner cannot sign ${r}`,"UNSUPPORTED_OPERATION",{operation:n})};let fv=zk;const Z8=new Set;function Qa(t){Z8.has(t)||(Z8.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}function pie(t){return JSON.parse(JSON.stringify(t))}var jr,ti,Uc,ea,$c,Cf,Da,i2,o2;class L7{constructor(e){j(this,Da);j(this,jr);j(this,ti);j(this,Uc);j(this,ea);j(this,$c);j(this,Cf);T(this,jr,e),T(this,ti,null),T(this,Uc,Y(this,Da,i2).bind(this)),T(this,ea,!1),T(this,$c,null),T(this,Cf,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){w(this,ea)||(T(this,ea,!0),Y(this,Da,i2).call(this,-2))}stop(){w(this,ea)&&(T(this,ea,!1),T(this,Cf,!0),Y(this,Da,o2).call(this),w(this,jr).off("block",w(this,Uc)))}pause(e){e&&Y(this,Da,o2).call(this),w(this,jr).off("block",w(this,Uc))}resume(){this.start()}}jr=new WeakMap,ti=new WeakMap,Uc=new WeakMap,ea=new WeakMap,$c=new WeakMap,Cf=new WeakMap,Da=new WeakSet,i2=async function(e){try{w(this,ti)==null&&T(this,ti,this._subscribe(w(this,jr)));let r=null;try{r=await w(this,ti)}catch(i){if(!Ht(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(r==null){T(this,ti,null),w(this,jr)._recoverSubscriber(this,this._recover(w(this,jr)));return}const n=await w(this,jr).getNetwork();if(w(this,$c)||T(this,$c,n),w(this,$c).chainId!==n.chainId)throw new Error("chaid changed");if(w(this,Cf))return;const s=await w(this,jr).send("eth_getFilterChanges",[r]);await this._emitResults(w(this,jr),s)}catch(r){console.log("@TODO",r)}w(this,jr).once("block",w(this,Uc))},o2=function(){const e=w(this,ti);e&&(T(this,ti,null),e.then(r=>{w(this,jr).destroyed||w(this,jr).send("eth_uninstallFilter",[r])}))};var Wc;class yie extends L7{constructor(r,n){super(r);j(this,Wc);T(this,Wc,pie(n))}_recover(r){return new H5(r,w(this,Wc))}async _subscribe(r){return await r.send("eth_newFilter",[w(this,Wc)])}async _emitResults(r,n){for(const s of n)r.emit(w(this,Wc),r._wrapLog(s,r._network))}}Wc=new WeakMap;class vie extends L7{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const gie="bigint,boolean,function,number,string,symbol".split(/,/g);function ry(t){if(t==null||gie.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(ry);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function mie(t){return new Promise(e=>{setTimeout(e,t)})}function Fl(t){return t&&t.toLowerCase()}function e3(t){return t&&typeof t.pollingInterval=="number"}const j7={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ny extends uo{constructor(r,n){super(r);N(this,"address");n=Te(n),fe(this,{address:n})}connect(r){z(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=ry(r),s=[];if(n.from){const o=n.from;s.push((async()=>{const a=await sr(o,this.provider);P(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=a})())}else n.from=this.address;if(n.gasLimit==null&&s.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;s.push((async()=>{n.to=await sr(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(r);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(n));return}}catch(u){if(Ht(u,"CANCELLED")||Ht(u,"BAD_DATA")||Ht(u,"NETWORK_ERROR")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(Ht(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",ft("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(r){const n=ry(r);if(n.from){const i=await sr(n.from,this.provider);P(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=i}else n.from=this.address;const s=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[s])}async signMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("personal_sign",[H(n),this.address.toLowerCase()])}async signTypedData(r,n,s){const i=ry(s),o=await Bs.resolveNames(r,n,i,async a=>{const c=await sr(a);return P(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Bs.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),H(n)])}}var Vc,kf,$i,ri,bs,Gn,nn,G0,a2;class z5 extends lo{constructor(r,n){super(r,n);j(this,G0);j(this,Vc);j(this,kf);j(this,$i);j(this,ri);j(this,bs);j(this,Gn);j(this,nn);T(this,kf,1),T(this,Vc,Object.assign({},j7,n||{})),T(this,$i,[]),T(this,ri,null),T(this,Gn,null),T(this,nn,null);{let i=null;const o=new Promise(a=>{i=a});T(this,bs,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(P(!s||r!=="any","staticNetwork cannot be used on special network 'any'","options",n),s&&r!=null&&T(this,Gn,ot.from(r))):s&&(P(r==null||s.matches(r),"staticNetwork MUST match network object","options",n),T(this,Gn,s))}_getOption(r){return w(this,Vc)[r]}get _network(){return z(w(this,Gn),"network is not available yet","NETWORK_ERROR"),w(this,Gn)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let s=r.transaction;if(s&&s.type!=null&&ve(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},s,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)if(r===!0){if(w(this,Gn))return w(this,Gn)}else return r;return w(this,nn)?await w(this,nn):this.ready?(T(this,nn,(async()=>{try{const n=ot.from(ve(await this.send("eth_chainId",[])));return T(this,nn,null),n}catch(n){throw T(this,nn,null),n}})()),await w(this,nn)):(T(this,nn,(async()=>{const n={id:Ol(this,kf)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let s;try{s=(await this._send(n))[0],T(this,nn,null)}catch(i){throw T(this,nn,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return ot.from(ve(s.result));throw this.getRpcError(n,s)})()),await w(this,nn))}_start(){w(this,bs)==null||w(this,bs).resolve==null||(w(this,bs).resolve(),T(this,bs,null),(async()=>{for(;w(this,Gn)==null&&!this.destroyed;)try{T(this,Gn,await this._detectNetwork())}catch(r){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",ft("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await mie(1e3)}Y(this,G0,a2).call(this)})())}async _waitUntilReady(){if(w(this,bs)!=null)return await w(this,bs).promise}_getSubscriber(r){return r.type==="pending"?new vie(this):r.type==="event"?this._getOption("polling")?new H5(this,r.filter):new yie(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new C0("orphan"):super._getSubscriber(r)}get ready(){return w(this,bs)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(r[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),n[i]=pr(ve(r[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{r[s]!=null&&(n[s]=H(r[s]))}),r.accessList&&(n.accessList=go(r.accessList)),r.blobVersionedHashes&&(n.blobVersionedHashes=r.blobVersionedHashes.map(s=>s.toLowerCase())),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[Fl(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Fl(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[Fl(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Fl(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(Fl):r.filter.address=Fl(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:s}=r,{error:i}=n;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return ft("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=c2(i),l=Kt.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",r.params[0],c?c.data:null);return l.info={error:i,payload:r},l}const o=JSON.stringify(xie(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ft("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"}[s]||"unknown",reason:"rejected",info:{payload:r,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return ft("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return ft("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return ft("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return ft("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?ft("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:i,payload:r}}):ft("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const s=Ol(this,kf)._++,i=new Promise((o,a)=>{w(this,$i).push({resolve:o,reject:a,payload:{method:r,params:n,id:s,jsonrpc:"2.0"}})});return Y(this,G0,a2).call(this),i}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const i=await n;if(r>=i.length)throw new Error("no such account");return new ny(this,i[r])}const{accounts:s}=await Pt({network:this.getNetwork(),accounts:n});r=Te(r);for(const i of s)if(Te(i)===r)return new ny(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new ny(this,n))}destroy(){w(this,ri)&&(clearTimeout(w(this,ri)),T(this,ri,null));for(const{payload:r,reject:n}of w(this,$i))n(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));T(this,$i,[]),super.destroy()}}Vc=new WeakMap,kf=new WeakMap,$i=new WeakMap,ri=new WeakMap,bs=new WeakMap,Gn=new WeakMap,nn=new WeakMap,G0=new WeakSet,a2=function(){if(w(this,ri))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");T(this,ri,setTimeout(()=>{T(this,ri,null);const n=w(this,$i);for(T(this,$i,[]);n.length;){const s=[n.shift()];for(;n.length&&s.length!==w(this,Vc).batchMaxCount;)if(s.push(n.shift()),JSON.stringify(s.map(o=>o.payload)).length>w(this,Vc).batchMaxSize){n.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=ft("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},r))};var ta;class F7 extends z5{constructor(r,n){super(r,n);j(this,ta);let s=this._getOption("pollingInterval");s==null&&(s=j7.pollingInterval),T(this,ta,s)}_getSubscriber(r){const n=super._getSubscriber(r);return e3(n)&&(n.pollingInterval=w(this,ta)),n}get pollingInterval(){return w(this,ta)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");T(this,ta,r),this._forEachSubscriber(n=>{e3(n)&&(n.pollingInterval=w(this,ta))})}}ta=new WeakMap;var Af,B3;let zt=(B3=class extends F7{constructor(r,n,s){r==null&&(r="http://localhost:8545");super(n,s);j(this,Af);typeof r=="string"?T(this,Af,new qt(r)):T(this,Af,r.clone())}_getConnection(){return w(this,Af).clone()}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){const n=this._getConnection();n.body=JSON.stringify(r),n.setHeader("content-type","application/json");const s=await n.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}},Af=new WeakMap,B3);function c2(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&et(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=c2(t[e]);if(r)return r}return null}if(typeof t=="string")try{return c2(JSON.parse(t))}catch{}return null}function l2(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)l2(t[r],e);if(typeof t=="string")try{return l2(JSON.parse(t),e)}catch{}}}function xie(t){const e=[];return l2(t,e),e}const mp="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function bie(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}P(!1,"unsupported network","network",t)}class k0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=mp);const i={polling:!0,staticNetwork:s},o=k0.getRequest(s,n);super(o,s,i);N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new k0(r,this.apiKey)}catch{}return super._getProvider(r)}static getRequest(r,n){n==null&&(n=mp);const s=new qt(`https://${bie(r.name)}/${n}`);return s.allowGzip=!0,n===mp&&(s.retryFunc=async(i,o,a)=>(Qa("AnkrProvider"),!0)),s}getRpcError(r,n){return r.method==="eth_sendRawTransaction"&&n&&n.error&&n.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(n.error.message="replacement transaction underpriced"),super.getRpcError(r,n)}isCommunityResource(){return this.apiKey===mp}}const xp="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function wie(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}P(!1,"unsupported network","network",t)}class A0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=xp);const i=A0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new A0(r,this.apiKey)}catch{}return super._getProvider(r)}async _perform(r){if(r.method==="getTransactionResult"){const{trace:n,tx:s}=await Pt({trace:this.send("trace_transaction",[r.hash]),tx:this.getTransaction(r.hash)});if(n==null||s==null)return null;let i,o=!1;try{i=n[0].result.output,o=n[0].error==="Reverted"}catch{}if(i)return z(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:s,invocation:null,revert:null}),i;z(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(r)}isCommunityResource(){return this.apiKey===xp}static getRequest(r,n){n==null&&(n=xp);const s=new qt(`https://${wie(r.name)}/v2/${n}`);return s.allowGzip=!0,n===xp&&(s.retryFunc=async(i,o,a)=>(Qa("alchemy"),!0)),s}}function bp(t){switch(t){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}P(!1,"unsupported network","network",t)}function Eie(t){switch(t){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}P(!1,"unsupported network","network",t)}class S0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=bp(s.name));const i=S0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new S0(r,this.apiKey)}catch{}return super._getProvider(r)}isCommunityResource(){return this.apiKey===bp(this._network.name)}static getRequest(r,n){n==null&&(n=bp(r.name));const s=new qt(`https://${Eie(r.name)}/${n}`);return s.allowGzip=!0,n===bp(r.name)&&(s.retryFunc=async(i,o,a)=>(Qa("ChainstackProvider"),!0)),s}}class U7 extends zt{constructor(e){e==null&&(e="mainnet");const r=ot.from(e);P(r.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}}const t3=2e3;function Cie(t){return t&&typeof t.then=="function"}const $7="org.ethers.plugins.provider.Etherscan";class G5 extends Ka{constructor(r){super($7);N(this,"baseUrl");fe(this,{baseUrl:r})}clone(){return new G5(this.baseUrl)}}const kie=["enableCcipRead"];let Aie=1;var Sf;class W7 extends lo{constructor(r,n){const s=n??null;super();N(this,"network");N(this,"apiKey");j(this,Sf);const i=ot.from(r);T(this,Sf,i.getPlugin($7)),fe(this,{apiKey:s,network:i}),this.getBaseUrl()}getBaseUrl(){if(w(this,Sf))return w(this,Sf).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}P(!1,"unsupported network","network",this.network)}getUrl(r,n){const s=Object.keys(n).reduce((o,a)=>{const c=n[a];return c!=null&&(o+=`&${a}=${c}`),o},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${r}${s}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(r,n){return n.module=r,n.apikey=this.apiKey,n}async detectNetwork(){return this.network}async fetch(r,n,s){const i=Aie++,o=s?this.getPostUrl():this.getUrl(r,n),a=s?this.getPostData(r,n):null;this.emit("debug",{action:"sendRequest",id:i,url:o,payload:a});const c=new qt(o);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(f,d,h)=>(this.isCommunityResource()&&Qa("Etherscan"),Promise.resolve(!0)),c.processFunc=async(f,d)=>{const h=d.hasBody()?JSON.parse(Ds(d.body)):{},y=(typeof h.result=="string"?h.result:"").toLowerCase().indexOf("rate limit")>=0;return r==="proxy"?h&&h.status==0&&h.message=="NOTOK"&&y&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:h}),d.throwThrottleError(h.result,t3)):y&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:h.result}),d.throwThrottleError(h.result,t3)),d},a&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(a).map(f=>`${f}=${a[f]}`).join("&"));const l=await c.send();try{l.assertOk()}catch(f){this.emit("debug",{action:"receiveError",id:i,error:f,reason:"assertOk"}),z(!1,"response error","SERVER_ERROR",{request:c,response:l})}l.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),z(!1,"missing response","SERVER_ERROR",{request:c,response:l}));const u=JSON.parse(Ds(l.body));return r==="proxy"?(u.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"invalid JSON-RPC"}),z(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:l,info:{result:u}})),u.error&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"JSON-RPC error"}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):u.status==0&&(u.message==="No records found"||u.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):((u.status!=1||typeof u.message=="string"&&!u.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:u}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result)}_getTransactionPostData(r){const n={};for(let s in r){if(kie.indexOf(s)>=0||r[s]==null)continue;let i=r[s];if(!(s==="type"&&i===0)&&!(s==="blockTag"&&i==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[s])i=pr(i);else if(s==="accessList")i="["+go(i).map(o=>`{address:"${o.address}",storageKeys:["${o.storageKeys.join('","')}"]}`).join(",")+"]";else if(s==="blobVersionedHashes"){if(i.length===0)continue;z(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:r}})}else i=H(i);n[s]=i}}return n}_checkError(r,n,s){let i="";if(Ht(n,"SERVER_ERROR")){try{i=n.info.result.error.message}catch{}if(!i)try{i=n.info.message}catch{}}if(r.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&z(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.transaction}),(r.method==="call"||r.method==="estimateGas")&&i.match(/execution reverted/i)){let o="";try{o=n.info.result.error.data}catch{}const a=Kt.getBuiltinCallException(r.method,r.transaction,o);throw a.info={request:r,error:n},a}if(i&&r.method==="broadcastTransaction"){const o=vl.from(r.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&z(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:o}),i.match(/insufficient funds/)&&z(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:o}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&z(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:o})}throw n}async _detectNetwork(){return this.network}async _perform(r){switch(r.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(n=>this._checkError(r,n,r.signedTransaction));case"getBlock":if("blockTag"in r)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});z(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.hash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}}return super._perform(r)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(r){let n=this._getAddress(r);Cie(n)&&(n=await n);try{const s=await this.fetch("contract",{action:"getabi",address:n}),i=JSON.parse(s);return new dn(n,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Sf=new WeakMap;function Sie(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Tie=Sie().WebSocket;var ni,q0,ra,Hc,na;class zg{constructor(e,r){j(this,ni);j(this,q0);j(this,ra);j(this,Hc);j(this,na);T(this,ni,e),T(this,q0,JSON.stringify(r)),T(this,ra,null),T(this,Hc,null),T(this,na,null)}get filter(){return JSON.parse(w(this,q0))}start(){T(this,ra,w(this,ni).send("eth_subscribe",this.filter).then(e=>(w(this,ni)._register(e,this),e)))}stop(){w(this,ra).then(e=>{w(this,ni).destroyed||w(this,ni).send("eth_unsubscribe",[e])}),T(this,ra,null)}pause(e){z(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),T(this,Hc,!!e)}resume(){T(this,Hc,null)}_handleMessage(e){if(w(this,ra)!=null&&w(this,Hc)===null){let r=w(this,na);r==null?r=this._emit(w(this,ni),e):r=r.then(async()=>{await this._emit(w(this,ni),e)}),T(this,na,r.then(()=>{w(this,na)===r&&T(this,na,null)}))}}async _emit(e,r){throw new Error("sub-classes must implemente this; _emit")}}ni=new WeakMap,q0=new WeakMap,ra=new WeakMap,Hc=new WeakMap,na=new WeakMap;class V7 extends zg{constructor(e){super(e,["newHeads"])}async _emit(e,r){e.emit("block",parseInt(r.number))}}class H7 extends zg{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,r){e.emit("pending",r)}}var K0;class z7 extends zg{constructor(r,n){super(r,["logs",n]);j(this,K0);T(this,K0,JSON.stringify(n))}get logFilter(){return JSON.parse(w(this,K0))}async _emit(r,n){r.emit(this.logFilter,r._wrapLog(n,r._network))}}K0=new WeakMap;var zc,Tf,sa;class G7 extends z5{constructor(r,n){const s=Object.assign({},n??{});P(s.batchMaxCount==null||s.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",n),s.batchMaxCount=1,s.staticNetwork==null&&(s.staticNetwork=!0);super(r,s);j(this,zc);j(this,Tf);j(this,sa);T(this,zc,new Map),T(this,Tf,new Map),T(this,sa,new Map)}_getSubscriber(r){switch(r.type){case"close":return new C0("close");case"block":return new V7(this);case"pending":return new H7(this);case"event":return new z7(this,r.filter);case"orphan":if(r.filter.orphan==="drop-log")return new C0("drop-log")}return super._getSubscriber(r)}_register(r,n){w(this,Tf).set(r,n);const s=w(this,sa).get(r);if(s){for(const i of s)n._handleMessage(i);w(this,sa).delete(r)}}async _send(r){P(!Array.isArray(r),"WebSocket does not support batch send","payload",r);const n=new Promise((s,i)=>{w(this,zc).set(r.id,{payload:r,resolve:s,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(r)),[await n]}async _processMessage(r){const n=JSON.parse(r);if(n&&typeof n=="object"&&"id"in n){const s=w(this,zc).get(n.id);if(s==null){this.emit("error",ft("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:n}));return}w(this,zc).delete(n.id),s.resolve(n)}else if(n&&n.method==="eth_subscription"){const s=n.params.subscription,i=w(this,Tf).get(s);if(i)i._handleMessage(n.params.result);else{let o=w(this,sa).get(s);o==null&&(o=[],w(this,sa).set(s,o)),o.push(n.params.result)}}else{this.emit("error",ft("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:n}));return}}async _write(r){throw new Error("sub-classes must override this")}}zc=new WeakMap,Tf=new WeakMap,sa=new WeakMap;var Gc,ws;class q5 extends G7{constructor(r,n,s){super(n,s);j(this,Gc);j(this,ws);typeof r=="string"?(T(this,Gc,()=>new Tie(r)),T(this,ws,w(this,Gc).call(this))):typeof r=="function"?(T(this,Gc,r),T(this,ws,r())):(T(this,Gc,null),T(this,ws,r)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(w(this,ws)==null)throw new Error("websocket closed");return w(this,ws)}async _write(r){this.websocket.send(r)}async destroy(){w(this,ws)!=null&&(w(this,ws).close(),T(this,ws,null)),super.destroy()}}Gc=new WeakMap,ws=new WeakMap;const ih="84842078b09946638c03157f83405213";function Pie(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}P(!1,"unsupported network","network",t)}class q7 extends q5{constructor(r,n){const s=new td(r,n),i=s._getConnection();z(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const o=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,s._network);N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:s.projectId,projectSecret:s.projectSecret})}isCommunityResource(){return this.projectId===ih}}class td extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=ih),s==null&&(s=null);const o=td.getRequest(i,n,s);super(o,i,{staticNetwork:i});N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:n,projectSecret:s})}_getProvider(r){try{return new td(r,this.projectId,this.projectSecret)}catch{}return super._getProvider(r)}isCommunityResource(){return this.projectId===ih}static getWebSocketProvider(r,n){return new q7(r,n)}static getRequest(r,n,s){n==null&&(n=ih),s==null&&(s=null);const i=new qt(`https://${Pie(r.name)}/v3/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===ih&&(i.retryFunc=async(o,a,c)=>(Qa("InfuraProvider"),!0)),i}}const wp="919b412a057b5e9c9b6dce193c5a60242d6efadb";function Iie(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}P(!1,"unsupported network","network",t)}class T0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=wp);const i=T0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"token");fe(this,{token:n})}_getProvider(r){try{return new T0(r,this.token)}catch{}return super._getProvider(r)}isCommunityResource(){return this.token===wp}static getRequest(r,n){n==null&&(n=wp);const s=new qt(`https://${Iie(r.name)}/${n}`);return s.allowGzip=!0,n===wp&&(s.retryFunc=async(i,o,a)=>(Qa("QuickNodeProvider"),!0)),s}}const Oie=BigInt("1"),Rie=BigInt("2");function Nie(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}function _ie(t){return new Promise(e=>{setTimeout(e,t)})}function u2(){return new Date().getTime()}function _x(t){return JSON.stringify(t,(e,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}const r3={stallTimeout:400,priority:1,weight:1},n3={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function Mie(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const r=await t.provider.getBlockNumber();r>t.blockNumber&&(t.blockNumber=r)}catch(r){t.blockNumber=-2,t._lastFatalError=r,t._lastFatalErrorTimestamp=u2()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function Th(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(Th).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return Th(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(r=>`${JSON.stringify(r)}:${Th(t[r])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function Mx(t){if("error"in t){const r=t.error;return{tag:Th(r),value:r}}const e=t.result;return{tag:Th(e),value:e}}function sy(t,e){const r=new Map;for(const{value:s,tag:i,weight:o}of e){const a=r.get(i)||{value:s,weight:0};a.weight+=o,r.set(i,a)}let n=null;for(const s of r.values())s.weight>=t&&(!n||s.weight>n.weight)&&(n=s);if(n)return n.value}function f2(t,e){let r=0;const n=new Map;let s=null;const i=[];for(const{value:a,tag:c,weight:l}of e)if(a instanceof Error){const u=n.get(c)||{value:a,weight:0};u.weight+=l,n.set(c,u),(s==null||u.weight>s.weight)&&(s=u)}else i.push(BigInt(a)),r+=l;if(r=t?s.value:void 0;i.sort((a,c)=>aa?1:0);const o=Math.floor(i.length/2);return i.length%2?i[o]:(i[o-1]+i[o]+Oie)/Rie}function Dx(t,e){const r=sy(t,e);if(r!==void 0)return r;for(const n of e)if(n.value)return n.value}function Die(t,e){if(t===1)return Pe(f2(t,e),"%internal");const r=new Map,n=(o,a)=>{const c=r.get(o)||{result:o,weight:0};c.weight+=a,r.set(o,c)};for(const{weight:o,value:a}of e){const c=Pe(a);n(c-1,o),n(c,o),n(c+1,o)}let s=0,i;for(const{weight:o,result:a}of r.values())o>=t&&(o>s||i!=null&&o===s&&a>i)&&(s=o,i=a);return i}var sn,Wi,Pf,yn,Q7,d2,J7,Y7,h2;class K7 extends lo{constructor(r,n,s){super(n,s);j(this,yn);N(this,"quorum");N(this,"eventQuorum");N(this,"eventWorkers");j(this,sn);j(this,Wi);j(this,Pf);T(this,sn,r.map(i=>i instanceof lo?Object.assign({provider:i},r3,n3):Object.assign({},r3,i,n3))),T(this,Wi,-2),T(this,Pf,null),s&&s.quorum!=null?this.quorum=s.quorum:this.quorum=Math.ceil(w(this,sn).reduce((i,o)=>(i+=o.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,P(this.quorum<=w(this,sn).reduce((i,o)=>i+o.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return w(this,sn).map(r=>{const n=Object.assign({},r);for(const s in n)s[0]==="_"&&delete n[s];return n})}async _detectNetwork(){return ot.from(ve(await this._perform({method:"chainId"})))}async _translatePerform(r,n){switch(n.method){case"broadcastTransaction":return await r.broadcastTransaction(n.signedTransaction);case"call":return await r.call(Object.assign({},n.transaction,{blockTag:n.blockTag}));case"chainId":return(await r.getNetwork()).chainId;case"estimateGas":return await r.estimateGas(n.transaction);case"getBalance":return await r.getBalance(n.address,n.blockTag);case"getBlock":{const s="blockHash"in n?n.blockHash:n.blockTag;return await r.getBlock(s,n.includeTransactions)}case"getBlockNumber":return await r.getBlockNumber();case"getCode":return await r.getCode(n.address,n.blockTag);case"getGasPrice":return(await r.getFeeData()).gasPrice;case"getPriorityFee":return(await r.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await r.getLogs(n.filter);case"getStorage":return await r.getStorage(n.address,n.position,n.blockTag);case"getTransaction":return await r.getTransaction(n.hash);case"getTransactionCount":return await r.getTransactionCount(n.address,n.blockTag);case"getTransactionReceipt":return await r.getTransactionReceipt(n.hash);case"getTransactionResult":return await r.getTransactionResult(n.hash)}}async _perform(r){if(r.method==="broadcastTransaction"){const o=w(this,sn).map(l=>null),a=w(this,sn).map(async({provider:l,weight:u},f)=>{try{const d=await l._perform(r);o[f]=Object.assign(Mx({result:d}),{weight:u})}catch(d){o[f]=Object.assign(Mx({error:d}),{weight:u})}});for(;;){const l=o.filter(d=>d!=null);for(const{value:d}of l)if(!(d instanceof Error))return d;const u=sy(this.quorum,o.filter(d=>d!=null));if(Ht(u,"INSUFFICIENT_FUNDS"))throw u;const f=a.filter((d,h)=>o[h]==null);if(f.length===0)break;await Promise.race(f)}const c=Dx(this.quorum,o);if(z(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:o.map(_x)}}),c instanceof Error)throw c;return c}await Y(this,yn,J7).call(this);const n=new Set;let s=0;for(;;){const o=Y(this,yn,d2).call(this,n,r);if(o==null||(s+=o.config.weight,s>=this.quorum))break}const i=await Y(this,yn,h2).call(this,n,r);for(const o of n)o.perform&&o.result==null&&o.config.lateResponses++;return i}async destroy(){for(const{provider:r}of w(this,sn))r.destroy();super.destroy()}}sn=new WeakMap,Wi=new WeakMap,Pf=new WeakMap,yn=new WeakSet,Q7=function(r){const n=Array.from(r).map(i=>i.config),s=w(this,sn).slice();Nie(s),s.sort((i,o)=>i.priority-o.priority);for(const i of s)if(!i._lastFatalError&&n.indexOf(i)===-1)return i;return null},d2=function(r,n){const s=Y(this,yn,Q7).call(this,r);if(s==null)return null;const i={config:s,result:null,didBump:!1,perform:null,staller:null},o=u2();return i.perform=(async()=>{try{s.requests++;const c=await this._translatePerform(s.provider,n);i.result={result:c}}catch(c){s.errorResponses++,i.result={error:c}}const a=u2()-o;s._totalTime+=a,s.rollingDuration=.95*s.rollingDuration+.05*a,i.perform=null})(),i.staller=(async()=>{await _ie(s.stallTimeout),i.staller=null})(),r.add(i),i},J7=async function(){let r=w(this,Pf);if(!r){const n=[];w(this,sn).forEach(s=>{n.push((async()=>{await Mie(s,0),s._lastFatalError||(s._network=await s.provider.getNetwork())})())}),T(this,Pf,r=(async()=>{await Promise.all(n);let s=null;for(const i of w(this,sn)){if(i._lastFatalError)continue;const o=i._network;s==null?s=o.chainId:o.chainId!==s&&z(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await r},Y7=async function(r,n){const s=[];for(const i of r)if(i.result!=null){const{tag:o,value:a}=Mx(i.result);s.push({tag:o,value:a,weight:i.config.weight})}if(!(s.reduce((i,o)=>i+o.weight,0)!o._lastFatalError).map(o=>({value:o.blockNumber,tag:Pe(o.blockNumber).toString(),weight:o.weight}))))));const i=Die(this.quorum,s);return i===void 0?void 0:(i>w(this,Wi)&&T(this,Wi,i),w(this,Wi))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return f2(this.quorum,s);case"getBlock":return"blockTag"in n&&n.blockTag==="pending"?Dx(this.quorum,s):sy(this.quorum,s);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return sy(this.quorum,s);case"broadcastTransaction":return Dx(this.quorum,s)}z(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${_x(n.method)})`})}},h2=async function(r,n){if(r.size===0)throw new Error("no runners?!");const s=[];let i=0;for(const a of r){if(a.perform&&s.push(a.perform),a.staller){s.push(a.staller);continue}a.didBump||(a.didBump=!0,i++)}const o=await Y(this,yn,Y7).call(this,r,n);if(o!==void 0){if(o instanceof Error)throw o;return o}for(let a=0;a0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:Array.from(r).map(a=>_x(a.result))}}),await Promise.race(s),await Y(this,yn,h2).call(this,r,n)};function Bie(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const Lie="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function jie(t,e){e==null&&(e={});const r=o=>e[o]==="-"?!1:typeof e.exclusive=="string"?o===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(o)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new zt(t);if(typeof t=="string"&&t.match(/^wss?:/)||Bie(t))return new q5(t);let n=null;try{n=ot.from(t)}catch{}const s=[];if(r("publicPolygon")&&n&&(n.name==="matic"?s.push(new zt("https://polygon-rpc.com/",n,{staticNetwork:n})):n.name==="matic-amoy"&&s.push(new zt("https://rpc-amoy.polygon.technology/",n,{staticNetwork:n}))),r("alchemy"))try{s.push(new A0(t,e.alchemy))}catch{}if(r("ankr")&&e.ankr!=null)try{s.push(new k0(t,e.ankr))}catch{}if(r("chainstack"))try{s.push(new S0(t,e.chainstack))}catch{}if(r("cloudflare"))try{s.push(new U7(t))}catch{}if(r("etherscan"))try{s.push(new W7(t,e.etherscan))}catch{}if(r("infura"))try{let o=e.infura,a;typeof o=="object"&&(a=o.projectSecret,o=o.projectId),s.push(new td(t,o,a))}catch{}if(r("quicknode"))try{let o=e.quicknode;s.push(new T0(t,o))}catch{}if(z(s.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),s.length===1)return s[0];let i=Math.floor(s.length/2);return i>2&&(i=2),n&&Lie.indexOf(n.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new K7(s,void 0,{quorum:i})}var ia,qc;const Gk=class Gk extends uo{constructor(r){super(r.provider);N(this,"signer");j(this,ia);j(this,qc);fe(this,{signer:r}),T(this,ia,null),T(this,qc,0)}async getAddress(){return this.signer.getAddress()}connect(r){return new Gk(this.signer.connect(r))}async getNonce(r){if(r==="pending"){w(this,ia)==null&&T(this,ia,super.getNonce("pending"));const n=w(this,qc);return await w(this,ia)+n}return super.getNonce(r)}increment(){Ol(this,qc)._++}reset(){T(this,qc,0),T(this,ia,null)}async sendTransaction(r){const n=this.getNonce("pending");return this.increment(),r=await this.signer.populateTransaction(r),r.nonce=await n,await this.signer.sendTransaction(r)}signTransaction(r){return this.signer.signTransaction(r)}signMessage(r){return this.signer.signMessage(r)}signTypedData(r,n,s){return this.signer.signTypedData(r,n,s)}};ia=new WeakMap,qc=new WeakMap;let p2=Gk;var If;class Fie extends F7{constructor(r,n,s){const i=Object.assign({},s??{},{batchMaxCount:1});P(r&&r.request,"invalid EIP-1193 provider","ethereum",r);super(n,i);j(this,If);T(this,If,async(o,a)=>{const c={method:o,params:a};this.emit("debug",{action:"sendEip1193Request",payload:c});try{const l=await r.request(c);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const u=new Error(l.message);throw u.code=l.code,u.data=l.data,u.payload=c,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){P(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await w(this,If).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(s=>s.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await w(this,If).call(this,"eth_requestAccounts",[])}catch(n){const s=n.payload;throw this.getRpcError(s,{id:s.id,error:n})}return await super.getSigner(r)}}If=new WeakMap;const Ep="62e1ad51b37b8e00394bda3b";function Uie(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}P(!1,"unsupported network","network",t)}class dv extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=Ep),s==null&&(s=null);const o={staticNetwork:i},a=dv.getRequest(i,n,s);super(a,i,o);N(this,"applicationId");N(this,"applicationSecret");fe(this,{applicationId:n,applicationSecret:s})}_getProvider(r){try{return new dv(r,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(r)}static getRequest(r,n,s){n==null&&(n=Ep);const i=new qt(`https://${Uie(r.name)}/v1/lb/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===Ep&&(i.retryFunc=async(o,a,c)=>(Qa("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===Ep}}const $ie=void 0;var Of;const qk=class qk extends uo{constructor(r,n){super(n);N(this,"address");j(this,Of);P(r&&typeof r.sign=="function","invalid private key","privateKey","[ REDACTED ]"),T(this,Of,r);const s=wd(this.signingKey.publicKey);fe(this,{address:s})}get signingKey(){return w(this,Of)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(r){return new qk(w(this,Of),r)}async signTransaction(r){r=Yf(r);const{to:n,from:s}=await Pt({to:r.to?sr(r.to,this.provider):void 0,from:r.from?sr(r.from,this.provider):void 0});n!=null&&(r.to=n),s!=null&&(r.from=s),r.from!=null&&(P(Te(r.from)===this.address,"transaction from address mismatch","tx.from",r.from),delete r.from);const i=vl.from(r);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(r){return this.signMessageSync(r)}signMessageSync(r){return this.signingKey.sign(Fg(r)).serialized}async signTypedData(r,n,s){const i=await Bs.resolveNames(r,n,s,async o=>{z(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:o}});const a=await this.provider.resolveName(o);return z(a!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:o}),a});return this.signingKey.sign(Bs.hash(i.domain,n,i.value)).serialized}};Of=new WeakMap;let P0=qk;const hv=" !#$%&'()*+,-./<=>?@[]^_`{|}~",Wie=/^[a-z]*$/i;function s3(t,e){let r=97;return t.reduce((n,s)=>(s===e?r++:s.match(Wie)?n.push(String.fromCharCode(r)+s):(r=97,n.push(s)),n),[])}function Vie(t,e){for(let s=hv.length-1;s>=0;s--)t=t.split(hv[s]).join(e.substring(2*s,2*s+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(s,i,o,a)=>{if(o)for(let c=parseInt(o);c>=0;c--)r.push(";");else r.push(i.toLowerCase());return""});if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return s3(s3(r,";"),":")}function X7(t){return P(t[0]==="0","unsupported auwl data","data",t),Vie(t.substring(1+2*hv.length),t.substring(1,1+2*hv.length))}class Z7{constructor(e){N(this,"locale");fe(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var Rf,Q0,Kc,J0,y2;class K5 extends Z7{constructor(r,n,s){super(r);j(this,J0);j(this,Rf);j(this,Q0);j(this,Kc);T(this,Rf,n),T(this,Q0,s),T(this,Kc,null)}get _data(){return w(this,Rf)}_decodeWords(){return X7(w(this,Rf))}getWord(r){const n=Y(this,J0,y2).call(this);return P(r>=0&&r=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const n=new Uint8Array(Math.ceil(11*r.length/8));let s=0;for(let l=0;l=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let f=0;f<11;f++)u&1<<10-f&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=e_(o),c=Q(Kr(n.slice(0,i/8)))[0]&a;return P(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),H(n.slice(0,i/8))}function jx(t,e){P(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=fo.wordlist());const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&Gie(8-n)),n+=3);const s=t.length/4,i=parseInt(Kr(t).substring(2,4),16)&e_(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const Fx={};class xl{constructor(e,r,n,s,i){N(this,"phrase");N(this,"password");N(this,"wordlist");N(this,"entropy");s==null&&(s=""),i==null&&(i=fo.wordlist()),yo(e,Fx,"Mnemonic"),fe(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=mt("mnemonic"+this.password,"NFKD");return bi(mt(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=Lx(e,n);return e=jx(Q(s),n),new xl(Fx,s,e,r,n)}static fromEntropy(e,r,n){const s=Q(e,"entropy"),i=jx(s,n);return new xl(Fx,H(s),i,r,n)}static entropyToPhrase(e,r){const n=Q(e,"entropy");return jx(n,r)}static phraseToEntropy(e,r){return Lx(e,r)}static isValidMnemonic(e,r){try{return Lx(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var ar=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Ux=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},iy,jn,Hs;const qie={16:10,24:12,32:14},Kie=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Bn=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Cp=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Qie=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Jie=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Yie=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Xie=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Zie=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],eoe=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],toe=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],roe=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],noe=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],soe=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],ioe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],ooe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function $x(t){const e=[];for(let r=0;r>2,ar(this,Hs,"f")[o][u%4]=i[u],ar(this,jn,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c>16&255]<<24^Bn[l>>8&255]<<16^Bn[l&255]<<8^Bn[l>>24&255]^Kie[a]<<24,a+=1,s!=8)for(let h=1;h>8&255]<<8^Bn[l>>16&255]<<16^Bn[l>>24&255]<<24;for(let h=s/2+1;h>2,d=c%4,ar(this,Hs,"f")[f][d]=i[u],ar(this,jn,"f")[r-f][d]=i[u++],c++}for(let u=1;u>24&255]^soe[l>>16&255]^ioe[l>>8&255]^ooe[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=ar(this,Hs,"f").length-1,n=[0,0,0,0];let s=$x(e);for(let a=0;a<4;a++)s[a]^=ar(this,Hs,"f")[0][a];for(let a=1;a>24&255]^Jie[s[(c+1)%4]>>16&255]^Yie[s[(c+2)%4]>>8&255]^Xie[s[(c+3)%4]&255]^ar(this,Hs,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,Hs,"f")[r][a],i[4*a]=(Bn[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Bn[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Bn[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Bn[s[(a+3)%4]&255]^o)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const r=ar(this,jn,"f").length-1,n=[0,0,0,0];let s=$x(e);for(let a=0;a<4;a++)s[a]^=ar(this,jn,"f")[0][a];for(let a=1;a>24&255]^eoe[s[(c+3)%4]>>16&255]^toe[s[(c+2)%4]>>8&255]^roe[s[(c+1)%4]&255]^ar(this,jn,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,jn,"f")[r][a],i[4*a]=(Cp[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Cp[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Cp[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Cp[s[(a+1)%4]&255]^o)&255;return i}}iy=new WeakMap,jn=new WeakMap,Hs=new WeakMap;class t_{constructor(e,r,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new Q5(r)},name:{enumerable:!0,value:e}})}}var kp=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},Ul=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},oh,Ci;class J5 extends t_{constructor(e,r){if(super("ECC",e,J5),oh.set(this,void 0),Ci.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");kp(this,oh,new Uint8Array(r),"f")}else kp(this,oh,new Uint8Array(16),"f");kp(this,Ci,this.iv,"f")}get iv(){return new Uint8Array(Ul(this,oh,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)Ln(this,Fn,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");Ln(this,Fn,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(Ln(this,Fn,"f")[e]===255)Ln(this,Fn,"f")[e]=0;else{Ln(this,Fn,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),P(s>0&&i>0,"invalid kdf","kdf",e);const o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const r=Rt(t,"crypto.kdfparams.salt:data!"),n=Rt(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();P(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Rt(t,"crypto.kdfparams.c:int!"),o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}P(!1,"unsupported key-derivation function","kdf",e)}function i_(t,e){const r=JSON.parse(t),n=A1(e),s=s_(r);if(s.name==="pbkdf2"){const{salt:f,count:d,dkLen:h,algorithm:y}=s,p=bi(n,f,d,h,y);return pv(r,p)}z(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=Ga(n,i,o,a,c,l);return pv(r,u)}function i3(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function o_(t,e,r){const n=JSON.parse(t),s=A1(e),i=s_(n);if(i.name==="pbkdf2"){r&&(r(0),await i3(0));const{salt:d,count:h,dkLen:y,algorithm:p}=i,b=bi(s,d,h,y,p);return r&&(r(1),await i3(0)),pv(n,b)}z(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,f=await za(s,o,a,c,l,u,r);return pv(n,f)}function a_(t){const e=t.salt!=null?Q(t.salt,"options.salt"):Rr(32);let r=1<<17,n=8,s=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(s=t.scrypt.p)),P(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),P(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),P(typeof s=="number"&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:s}}function c_(t,e,r,n){const s=Q(r.privateKey,"privateKey"),i=n.iv!=null?Q(n.iv,"options.iv"):Rr(16);P(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?Q(n.uuid,"options.uuid"):Rr(16);P(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new rd(a,i),u=Q(l.encrypt(s)),f=_e(Le([c,u])),d={address:r.address.substring(2).toLowerCase(),id:kR(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:H(i).substring(2)},ciphertext:H(u).substring(2),kdf:"scrypt",kdfparams:{salt:H(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:f.substring(2)}};if(r.mnemonic){const h=n.client!=null?n.client:`ethers/${u5}`,y=r.mnemonic.path||n_,p=r.mnemonic.locale||"en",b=t.slice(32,64),v=Q(r.mnemonic.entropy,"account.mnemonic.entropy"),g=Rr(16),x=new rd(b,g),k=Q(x.encrypt(v)),S=new Date,R="UTC--"+(S.getUTCFullYear()+"-"+Wd(S.getUTCMonth()+1,2)+"-"+Wd(S.getUTCDate(),2)+"T"+Wd(S.getUTCHours(),2)+"-"+Wd(S.getUTCMinutes(),2)+"-"+Wd(S.getUTCSeconds(),2)+".0Z")+"--"+d.address;d["x-ethers"]={client:h,gethFilename:R,path:y,locale:p,mnemonicCounter:H(g).substring(2),mnemonicCiphertext:H(k).substring(2),version:"0.1"}}return JSON.stringify(d)}function Y5(t,e,r){r==null&&(r={});const n=A1(e),s=a_(r),i=Ga(n,s.salt,s.N,s.r,s.p,64);return c_(Q(i),s,t,r)}async function X5(t,e,r){r==null&&(r={});const n=A1(e),s=a_(r),i=await za(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return c_(Q(i),s,t,r)}const oy="m/44'/60'/0'/0/0",loe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),pi=2147483648,uoe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),foe="0123456789abcdef";function yv(t,e){let r="";for(;t;)r=foe[t%16]+r,t=Math.trunc(t/16);for(;r.length=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=Q(Va("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function u_(t,e){const r=e.split("/");P(r.length>0,"invalid path","path",e),r[0]==="m"&&(P(t.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${t.depth}`,"path",e),r.shift());let n=t;for(let s=0;s=16&&s.length<=64,"invalid seed","seed","[REDACTED]");const i=Q(Va("sha512",loe,s)),o=new Rs(H(i.slice(0,32)));return new hs(qs,o,"0x00000000",H(i.slice(32)),"m",0,0,n,null)},j(hs,Qc);let Mu=hs;class nd extends fv{constructor(r,n,s,i,o,a,c,l,u){super(n,u);N(this,"publicKey");N(this,"fingerprint");N(this,"parentFingerprint");N(this,"chainCode");N(this,"path");N(this,"index");N(this,"depth");yo(r,qs,"HDNodeVoidWallet"),fe(this,{publicKey:s});const f=st(Ha(Kr(s)),0,4);fe(this,{publicKey:s,fingerprint:f,parentFingerprint:i,chainCode:o,path:a,index:c,depth:l})}connect(r){return new nd(qs,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,r)}get extendedKey(){return z(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g2(Le(["0x0488B21E",yv(this.depth,1),this.parentFingerprint,yv(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(r){const n=Pe(r,"index");P(n<=4294967295,"invalid index","index",n);let s=this.path;s&&(s+="/"+(n&~pi),n&pi&&(s+="'"));const{IR:i,IL:o}=l_(n,this.chainCode,this.publicKey,null),a=Rs.addPoints(o,this.publicKey,!0),c=wd(a);return new nd(qs,c,a,this.fingerprint,H(i),s,n,this.depth+1,this.provider)}derivePath(r){return u_(this,r)}}function doe(t){const e=Pe(t,"index");return P(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var X0,ui,w2;let f_=(ui=class extends P0{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new Rs(e):e;super(n,r)}connect(e){return new ui(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await X5(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return Y5(r,e)}static async fromEncryptedJson(e,r,n){var i;let s=null;return v2(e)?s=await o_(e,r,n):x2(e)&&(n&&(n(0),await o3(0)),s=b2(e,r),n&&(n(1),await o3(0))),Y(i=ui,X0,w2).call(i,s)}static fromEncryptedJsonSync(e,r){var s;let n=null;return v2(e)?n=i_(e,r):x2(e)?n=b2(e,r):P(!1,"invalid JSON wallet","json","[ REDACTED ]"),Y(s=ui,X0,w2).call(s,n)}static createRandom(e){const r=Mu.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=Mu.fromPhrase(e);return r?n.connect(r):n}},X0=new WeakSet,w2=function(e){if(P(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const n=xl.fromEntropy(e.mnemonic.entropy),s=Mu.fromMnemonic(n,e.mnemonic.path);if(s.address===e.address&&s.privateKey===e.privateKey)return s;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const r=new ui(e.privateKey);return P(r.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),r},j(ui,X0),ui);const poe=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function yoe(t,e){const r=(1<=t;){const c=s>>i-t;s&=(1<{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);P(s!==null,"internal error parsing accents","accents",e);let i=0;const o=yoe(parseInt(s[3]),s[4]),a=parseInt(s[2]),c=new RegExp(`([${s[1]}])`,"g");r=r.replace(c,(l,u)=>(--o[i]===0&&(u=String.fromCharCode(u.charCodeAt(0),a),i++),u))}),r.split(",")}var Z0;class goe extends K5{constructor(r,n,s,i){super(r,n,i);j(this,Z0);T(this,Z0,s)}get _accent(){return w(this,Z0)}_decodeWords(){return voe(this._data,this._accent)}}Z0=new WeakMap;const moe={en:fo.wordlist()},xoe=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Kt,AbstractProvider:lo,AbstractSigner:uo,AlchemyProvider:A0,AnkrProvider:k0,BaseContract:Zf,BaseWallet:P0,Block:b7,BrowserProvider:Fie,ChainstackProvider:S0,CloudflareProvider:U7,ConstructorFragment:ci,Contract:dn,ContractEventPayload:k7,ContractFactory:W5,ContractTransactionReceipt:C7,ContractTransactionResponse:Wg,ContractUnknownEventPayload:F5,EnsPlugin:k1,EnsResolver:E0,ErrorDescription:m7,ErrorFragment:Vr,EtherSymbol:Wre,EtherscanPlugin:G5,EtherscanProvider:W7,EventFragment:As,EventLog:$g,EventPayload:p5,FallbackFragment:si,FallbackProvider:K7,FeeData:Qw,FeeDataNetworkPlugin:Xw,FetchCancelSignal:xR,FetchRequest:qt,FetchResponse:Zi,FetchUrlFeeDataNetworkPlugin:D7,FixedNumber:y0,Fragment:_a,FunctionFragment:Ss,GasCostPlugin:C1,HDNodeVoidWallet:nd,HDNodeWallet:Mu,Indexed:Kw,InfuraProvider:td,InfuraWebSocketProvider:q7,Interface:pt,IpcSocketProvider:$ie,JsonRpcApiProvider:z5,JsonRpcProvider:zt,JsonRpcSigner:ny,LangEn:fo,Log:Ed,LogDescription:v7,MaxInt256:$re,MaxUint256:TN,MessagePrefix:PN,MinInt256:Ure,Mnemonic:xl,MulticoinProviderPlugin:R7,N:jre,NamedFragment:w1,Network:ot,NetworkPlugin:Ka,NonceManager:p2,ParamType:or,PocketProvider:dv,QuickNodeProvider:T0,Result:pl,Signature:os,SigningKey:Rs,SocketBlockSubscriber:V7,SocketEventSubscriber:z7,SocketPendingSubscriber:H7,SocketProvider:G7,SocketSubscriber:zg,StructFragment:wa,Transaction:vl,TransactionDescription:g7,TransactionReceipt:L5,TransactionResponse:Xf,Typed:gr,TypedDataEncoder:Bs,UndecodedEventLog:j5,UnmanagedSubscriber:C0,Utf8ErrorFuncs:hR,VoidSigner:fv,Wallet:f_,WebSocketProvider:q5,WeiPerEther:Fre,Wordlist:Z7,WordlistOwl:K5,WordlistOwlA:goe,ZeroAddress:xi,ZeroHash:yl,accessListify:go,assert:z,assertArgument:P,assertArgumentCount:f5,assertNormalize:d5,assertPrivate:yo,checkResultErrors:nte,computeAddress:wd,computeHmac:Va,concat:Le,copyRequest:Yf,dataLength:ba,dataSlice:st,decodeBase58:lR,decodeBase64:uR,decodeBytes32String:_se,decodeRlp:g1,decryptCrowdsaleJson:b2,decryptKeystoreJson:o_,decryptKeystoreJsonSync:i_,defaultPath:oy,defineProperties:fe,dnsEncode:t7,encodeBase58:h5,encodeBase64:fR,encodeBytes32String:Nse,encodeRlp:Na,encryptKeystoreJson:X5,encryptKeystoreJsonSync:Y5,ensNormalize:e7,formatEther:tte,formatUnits:CR,fromTwos:p0,getAccountPath:doe,getAddress:Te,getBigInt:ve,getBytes:Q,getBytesCopy:tr,getCreate2Address:Qre,getCreateAddress:P5,getDefaultProvider:jie,getIcapAddress:Kre,getIndexedAccountPath:hoe,getNumber:Pe,getUint:v1,hashMessage:Fg,hexlify:H,id:Qr,isAddress:ON,isAddressable:I5,isBytesLike:mi,isCallException:Ig,isCrowdsaleJson:x2,isError:Ht,isHexString:et,isKeystoreJson:v2,isValidName:zne,keccak256:_e,lock:Vre,makeError:ft,mask:ca,namehash:lv,parseEther:Rw,parseUnits:nv,pbkdf2:bi,randomBytes:Rr,recoverAddress:Jf,resolveAddress:sr,resolveProperties:Pt,ripemd160:Ha,scrypt:za,scryptSync:Ga,sha256:Kr,sha512:m1,showThrottleMessage:Qa,solidityPacked:De,solidityPackedKeccak256:eo,solidityPackedSha256:lse,stripZerosLeft:jee,toBeArray:rr,toBeHex:In,toBigInt:xd,toNumber:cR,toQuantity:pr,toTwos:Ng,toUtf8Bytes:mt,toUtf8CodePoints:Hee,toUtf8String:Ds,uuidV4:kR,verifyMessage:r7,verifyTypedData:vse,version:u5,wordlists:moe,zeroPadBytes:Og,zeroPadValue:rs},Symbol.toStringTag,{value:"Module"})),boe=[{inputs:[{internalType:"bytes32",type:"bytes32"}],name:"getAlternativeSignature",outputs:[{internalType:"string",type:"string"}],stateMutability:"view",type:"function"}];var woe=Object.freeze({__proto__:null,abi:boe});const Eoe=[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],Coe={isValidSignatureBytes32:"0x1626ba7e"};var koe=Object.freeze({__proto__:null,abi:Eoe,returns:Coe});const Aoe=[{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC1271Revert",type:"error"},{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC6492DeployFailed",type:"error"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSig",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"allowSideEffects",type:"bool"},{internalType:"bool",name:"deployAlreadyDeployed",type:"bool"}],name:"isValidSigImpl",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffects",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffectsNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var Soe=Object.freeze({__proto__:null,abi:Aoe});const Toe=[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}];var Poe=Object.freeze({__proto__:null,abi:Toe});const Ioe=[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"},{type:"function",name:"setExtraImageHash",constant:!1,inputs:[{type:"bytes32",name:"imageHash"},{type:"uint256",name:"expiration"}],outputs:[],payable:!1,stateMutability:"nonpayable"}];var Ooe=Object.freeze({__proto__:null,abi:Ioe});const Roe=[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}];var Noe=Object.freeze({__proto__:null,abi:Roe});const _oe=[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}];var Moe=Object.freeze({__proto__:null,abi:_oe});const Doe=[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}];var Boe=Object.freeze({__proto__:null,abi:Doe});const Gt={erc6492:Soe,erc5719:woe,erc1271:koe,factory:Poe,mainModule:Ooe,mainModuleUpgradable:Noe,sequenceUtils:Moe,requireFreshSigner:Boe},Loe=Object.freeze(Object.defineProperty({__proto__:null,walletContracts:Gt},Symbol.toStringTag,{value:"Module"}));function vv(){return vv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Ce({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Ce({},n,s)).then(i=>ke(i).then(o=>({version:o.version})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Ce({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.clock=(n,s)=>this.fetch(this.url("Clock"),Ce({},n,s)).then(i=>ke(i).then(o=>({serverTime:o.serverTime})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Ce({},n,s)).then(i=>ke(i).then(o=>({data:o.data})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getAuthToken=(n,s,i)=>this.fetch(this.url("GetAuthToken"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getAuthToken2=(n,s,i)=>this.fetch(this.url("GetAuthToken2"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.sendPasswordlessLink=(n,s,i)=>this.fetch(this.url("SendPasswordlessLink"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.friendList=(n,s,i)=>this.fetch(this.url("FriendList"),Ce(n,s,i)).then(o=>ke(o).then(a=>({page:a.page,friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getFriendByAddress=(n,s,i)=>this.fetch(this.url("GetFriendByAddress"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.searchFriends=(n,s,i)=>this.fetch(this.url("SearchFriends"),Ce(n,s,i)).then(o=>ke(o).then(a=>({friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addFriend=(n,s,i)=>this.fetch(this.url("AddFriend"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateFriendNickname=(n,s,i)=>this.fetch(this.url("UpdateFriendNickname"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeFriend=(n,s,i)=>this.fetch(this.url("RemoveFriend"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.contractCall=(n,s,i)=>this.fetch(this.url("ContractCall"),Ce(n,s,i)).then(o=>ke(o).then(a=>({returns:a.returns})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.decodeContractCall=(n,s,i)=>this.fetch(this.url("DecodeContractCall"),Ce(n,s,i)).then(o=>ke(o).then(a=>({call:a.call})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.lookupContractCallSelectors=(n,s,i)=>this.fetch(this.url("LookupContractCallSelectors"),Ce(n,s,i)).then(o=>ke(o).then(a=>({signatures:a.signatures})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetch=(n,s,i)=>this.fetch(this.url("UserStorageFetch"),Ce(n,s,i)).then(o=>ke(o).then(a=>({object:a.object})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageSave=(n,s,i)=>this.fetch(this.url("UserStorageSave"),Ce(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageDelete=(n,s,i)=>this.fetch(this.url("UserStorageDelete"),Ce(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetchAll=(n,s,i)=>this.fetch(this.url("UserStorageFetchAll"),Ce(n,s,i)).then(o=>ke(o).then(a=>({objects:a.objects})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getMoonpayLink=(n,s,i)=>this.fetch(this.url("GetMoonpayLink"),Ce(n,s,i)).then(o=>ke(o).then(a=>({signedUrl:a.signedUrl})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineClientToken=(n,s)=>this.fetch(this.url("GetSardineClientToken"),Ce({},n,s)).then(i=>ke(i).then(o=>({token:o.token})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSardineNFTCheckoutToken=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutToken"),Ce(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineNFTCheckoutOrderStatus=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutOrderStatus"),Ce(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.resolveENSAddress=(n,s,i)=>this.fetch(this.url("ResolveENSAddress"),Ce(n,s,i)).then(o=>ke(o).then(a=>({address:a.address,ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidSignature=(n,s,i)=>this.fetch(this.url("IsValidSignature"),Ce(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidMessageSignature=(n,s,i)=>this.fetch(this.url("IsValidMessageSignature"),Ce(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidTypedDataSignature=(n,s,i)=>this.fetch(this.url("IsValidTypedDataSignature"),Ce(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidETHAuthProof=(n,s,i)=>this.fetch(this.url("IsValidETHAuthProof"),Ce(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCoinPrices=(n,s,i)=>this.fetch(this.url("GetCoinPrices"),Ce(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCollectiblePrices=(n,s,i)=>this.fetch(this.url("GetCollectiblePrices"),Ce(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getExchangeRate=(n,s,i)=>this.fetch(this.url("GetExchangeRate"),Ce(n,s,i)).then(o=>ke(o).then(a=>({exchangeRate:a.exchangeRate})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryStore=(n,s,i)=>this.fetch(this.url("MemoryStore"),Ce(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryLoad=(n,s,i)=>this.fetch(this.url("MemoryLoad"),Ce(n,s,i)).then(o=>ke(o).then(a=>({value:a.value})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInviteInfo=(n,s)=>this.fetch(this.url("GetInviteInfo"),Ce({},n,s)).then(i=>ke(i).then(o=>({inviteInfo:o.inviteInfo})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.isValidAccessCode=(n,s,i)=>this.fetch(this.url("IsValidAccessCode"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.internalClaimAccessCode=(n,s,i)=>this.fetch(this.url("InternalClaimAccessCode"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.blockNumberAtTime=(n,s,i)=>this.fetch(this.url("BlockNumberAtTime"),Ce(n,s,i)).then(o=>ke(o).then(a=>({blocks:a.blocks})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret=(n,s,i)=>this.fetch(this.url("PaperSessionSecret"),Ce(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret2=(n,s,i)=>this.fetch(this.url("PaperSessionSecret2"),Ce(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.linkWallet=(n,s,i)=>this.fetch(this.url("LinkWallet"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,linkedWalletAddress:a.linkedWalletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getLinkedWallets=(n,s,i)=>this.fetch(this.url("GetLinkedWallets"),Ce(n,s,i)).then(o=>ke(o).then(a=>({linkedWallets:a.linkedWallets})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeLinkedWallet=(n,s,i)=>this.fetch(this.url("RemoveLinkedWallet"),Ce(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.generateWaaSVerificationURL=(n,s,i)=>this.fetch(this.url("GenerateWaaSVerificationURL"),Ce(n,s,i)).then(o=>ke(o).then(a=>({nonce:a.nonce,verificationURL:a.verificationURL})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.validateWaaSVerificationNonce=(n,s,i)=>this.fetch(this.url("ValidateWaaSVerificationNonce"),Ce(n,s,i)).then(o=>ke(o).then(a=>({walletAddress:a.walletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSwapQuotes=(n,s,i)=>this.fetch(this.url("GetSwapQuotes"),Ce(n,s,i)).then(o=>ke(o).then(a=>({swapQuotes:a.swapQuotes})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addCurrencyGroup=(n,s,i)=>this.fetch(this.url("AddCurrencyGroup"),Ce(n,s,i)).then(o=>ke(o).then(a=>({groupId:a.groupId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateCurrencyGroup=(n,s,i)=>this.fetch(this.url("UpdateCurrencyGroup"),Ce(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listCurrencyGroups=(n,s)=>this.fetch(this.url("ListCurrencyGroups"),Ce({},n,s)).then(i=>ke(i).then(o=>({currencyGroups:o.currencyGroups})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.deleteCurrencyGroup=(n,s,i)=>this.fetch(this.url("DeleteCurrencyGroup"),Ce(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("AddInventoryPaymentConfig"),Ce(n,s,i)).then(o=>ke(o).then(a=>({configId:a.configId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("GetInventoryPaymentConfig"),Ce(n,s,i)).then(o=>ke(o).then(a=>({config:a.config})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listInventoryPaymentConfigs=(n,s,i)=>this.fetch(this.url("ListInventoryPaymentConfigs"),Ce(n,s,i)).then(o=>ke(o).then(a=>({configs:a.configs})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("UpdateInventoryPaymentConfig"),Ce(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.deleteInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("DeleteInventoryPaymentConfig"),Ce(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.requestInventoryPayment=(n,s,i)=>this.fetch(this.url("RequestInventoryPayment"),Ce(n,s,i)).then(o=>ke(o).then(a=>({payment:a.payment})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Ce=(t={},e={},r=null)=>({method:"POST",headers:vv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ke=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Z5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Hoe[n]||Ot).new(r)}return r});let Ot=class h_ extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,h_.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},p_=class y_ extends Ot{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,y_.prototype)}},xe=class v_ extends Ot{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,v_.prototype)}},g_=class m_ extends Ot{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,m_.prototype)}},x_=class b_ extends Ot{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,b_.prototype)}},w_=class E_ extends Ot{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,E_.prototype)}},Z5=class C_ extends Ot{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,C_.prototype)}},k_=class A_ extends Ot{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,A_.prototype)}},S_=class T_ extends Ot{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,T_.prototype)}},P_=class I_ extends Ot{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,I_.prototype)}},O_=class R_ extends Ot{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,R_.prototype)}},N_=class __ extends Ot{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,__.prototype)}},M_=class D_ extends Ot{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,D_.prototype)}},B_=class L_ extends Ot{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,L_.prototype)}},j_=class F_ extends Ot{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,F_.prototype)}},U_=class $_ extends Ot{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$_.prototype)}},W_=class V_ extends Ot{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,V_.prototype)}},H_=class z_ extends Ot{constructor(e="InvalidArgument",r=2e3,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,z_.prototype)}},G_=class q_ extends Ot{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,q_.prototype)}},K_=class Q_ extends Ot{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Q_.prototype)}},J_=class Y_ extends Ot{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Y_.prototype)}},Voe=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.Aborted="Aborted",t.Geoblocked="Geoblocked",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const Hoe={0:p_,[-1]:xe,[-2]:g_,[-3]:x_,[-4]:w_,[-5]:Z5,[-6]:k_,[-7]:S_,[-8]:P_,[-9]:O_,[-10]:N_,1e3:M_,1001:B_,1002:j_,1005:U_,1006:W_,2e3:H_,2002:G_,2003:K_,3e3:J_},a3=globalThis.fetch;class ay extends d_{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,a3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=vv({},i.headers,o),a3(s,i)},this.fetch=this._fetch}}const zoe=Object.freeze(Object.defineProperty({__proto__:null,API:d_,AbortedError:U_,GeoblockedError:W_,InvalidArgumentError:H_,NotFoundError:J_,PermissionDeniedError:B_,QueryFailedError:K_,SequenceAPIClient:ay,SessionExpiredError:j_,SortOrder:$oe,TokenType:Woe,UnauthorizedError:M_,UnavailableError:G_,WebRPCSchemaHash:Uoe,WebRPCSchemaVersion:Foe,WebRPCVersion:joe,WebrpcBadMethodError:x_,WebrpcBadRequestError:w_,WebrpcBadResponseError:Z5,WebrpcBadRouteError:g_,WebrpcClientDisconnectedError:P_,WebrpcEndpointError:p_,WebrpcError:Ot,WebrpcInternalErrorError:S_,WebrpcRequestFailedError:xe,WebrpcServerPanicError:k_,WebrpcStreamFinishedError:N_,WebrpcStreamLostError:O_,errors:Voe},Symbol.toStringTag,{value:"Module"})),X_="3.7.7",Goe=X_,Cd=typeof Buffer=="function",c3=typeof TextDecoder=="function"?new TextDecoder:void 0,l3=typeof TextEncoder=="function"?new TextEncoder:void 0,qoe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lh=Array.prototype.slice.call(qoe),Ap=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(lh),Koe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,fr=String.fromCharCode.bind(String),u3=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Z_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),eM=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),tM=t=>{let e,r,n,s,i="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|s,i+=lh[e>>18&63]+lh[e>>12&63]+lh[e>>6&63]+lh[e&63]}return o?i.slice(0,o-3)+"===".substring(o):i},ek=typeof btoa=="function"?t=>btoa(t):Cd?t=>Buffer.from(t,"binary").toString("base64"):tM,E2=Cd?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,s=t.length;ne?Z_(E2(t)):E2(t),Qoe=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?fr(192|e>>>6)+fr(128|e&63):fr(224|e>>>12&15)+fr(128|e>>>6&63)+fr(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return fr(240|e>>>18&7)+fr(128|e>>>12&63)+fr(128|e>>>6&63)+fr(128|e&63)}},Joe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rM=t=>t.replace(Joe,Qoe),f3=Cd?t=>Buffer.from(t,"utf8").toString("base64"):l3?t=>E2(l3.encode(t)):t=>ek(rM(t)),Du=(t,e=!1)=>e?Z_(f3(t)):f3(t),d3=t=>Du(t,!0),Yoe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Xoe=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return fr((r>>>10)+55296)+fr((r&1023)+56320);case 3:return fr((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return fr((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},nM=t=>t.replace(Yoe,Xoe),sM=t=>{if(t=t.replace(/\s+/g,""),!Koe.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,s;for(let i=0;i>16&255):s===64?fr(e>>16&255,e>>8&255):fr(e>>16&255,e>>8&255,e&255);return r},tk=typeof atob=="function"?t=>atob(eM(t)):Cd?t=>Buffer.from(t,"base64").toString("binary"):sM,iM=Cd?t=>u3(Buffer.from(t,"base64")):t=>u3(tk(t).split("").map(e=>e.charCodeAt(0))),oM=t=>iM(aM(t)),Zoe=Cd?t=>Buffer.from(t,"base64").toString("utf8"):c3?t=>c3.decode(iM(t)):t=>nM(tk(t)),aM=t=>eM(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),C2=t=>Zoe(aM(t)),eae=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},cM=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),lM=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,cM(r));t("fromBase64",function(){return C2(this)}),t("toBase64",function(e){return Du(this,e)}),t("toBase64URI",function(){return Du(this,!0)}),t("toBase64URL",function(){return Du(this,!0)}),t("toUint8Array",function(){return oM(this)})},uM=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,cM(r));t("toBase64",function(e){return cy(this,e)}),t("toBase64URI",function(){return cy(this,!0)}),t("toBase64URL",function(){return cy(this,!0)})},tae=()=>{lM(),uM()},bl={version:X_,VERSION:Goe,atob:tk,atobPolyfill:sM,btoa:ek,btoaPolyfill:tM,fromBase64:C2,toBase64:Du,encode:Du,encodeURI:d3,encodeURL:d3,utob:rM,btou:nM,decode:C2,isValid:eae,fromUint8Array:cy,toUint8Array:oM,extendString:lM,extendUint8Array:uM,extendBuiltins:tae};var k2=function(){return k2=Object.assign||function(e){for(var r,n=1,s=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&(s.types.Claims.push({name:"app",type:"string"}),s.message.app=this.claims.app),this.claims.iat&&this.claims.iat>0&&(s.types.Claims.push({name:"iat",type:"int64"}),s.message.iat=this.claims.iat),this.claims.exp&&this.claims.exp>0&&(s.types.Claims.push({name:"exp",type:"int64"}),s.message.exp=this.claims.exp),this.claims.n&&this.claims.n>0&&(s.types.Claims.push({name:"n",type:"uint64"}),s.message.n=this.claims.n),this.claims.typ&&this.claims.typ.length>0&&(s.types.Claims.push({name:"typ",type:"string"}),s.message.typ=this.claims.typ),this.claims.ogn&&this.claims.ogn.length>0&&(s.types.Claims.push({name:"ogn",type:"string"}),s.message.ogn=this.claims.ogn),this.claims.v&&this.claims.v.length>0&&(s.types.Claims.push({name:"v",type:"string"}),s.message.v=this.claims.v),s},t}(),sae=function(t){if(t.app==="")return{ok:!1,err:new Error("claims: app is empty")};var e=Math.round(new Date().getTime()/1e3),r=5*60,n=60*60*24*365+r;return t.v===""?{ok:!1,err:new Error("claims: ethauth version is empty")}:t.iat&&t.iat!==0&&(t.iat>e+r||t.iate+n?{ok:!1,err:new Error("claims: token has expired")}:{ok:!0}},iae=function(t,e,r){return lc(void 0,void 0,void 0,function(){var n,s;return uc(this,function(i){return n=r.messageDigest(),s=r7(n,r.signature),s.slice(0,2)==="0x"&&s.length===42&&s.toLowerCase()===r.address.toLowerCase()?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]})})},oae=function(t,e,r){return lc(void 0,void 0,void 0,function(){var n,s,i,o,a;return uc(this,function(c){switch(c.label){case 0:return!t||t===void 0?[2,{isValid:!1}]:(n=r.messageDigest(),[4,t.getCode(r.address)]);case 1:if(s=c.sent(),s==="0x"||s.length<=2)throw new Error("ValidateContractAccountProof failed. unable to fetch wallet contract code");return i=["function isValidSignature(bytes32, bytes) public view returns (bytes4)"],o=new dn(r.address,i,t),[4,o.isValidSignature(n,Q(r.signature))];case 2:return a=c.sent(),a===aae?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]}})})},aae="0x1626ba7e",gv=function(){function t(){for(var e=[],r=0;r0&&(c+="."+s.extra),[2,c]}})})},this.decodeProof=function(s,i){return i===void 0&&(i=!1),lc(n,void 0,void 0,function(){var o,a,c,l,u,f,d,h,y,p;return uc(this,function(b){switch(b.label){case 0:if(o=s.split("."),o.length<4||o.length>5)throw new Error("ethauth: invalid proof string");if(a=o[0],c=o[1],l=o[2],u=o[3],f=o[4],a!==A2)throw new Error("ethauth: not an ethauth proof");return d=bl.decode(l),h=JSON.parse(d),y=new rk({address:c,claims:h,signature:u,extra:f}),[4,this.validateProof(y,i)];case 1:if(p=b.sent(),!p)throw new Error("ethauth: proof is invalid");return[2,y]}})})},this.validateProof=function(s,i){return i===void 0&&(i=!1),lc(n,void 0,void 0,function(){var o,a;return uc(this,function(c){switch(c.label){case 0:if(o=this.validateProofClaims(s),o.err)throw new Error("ethauth: proof claims are invalid ".concat(o.err));return i===!0?[3,2]:[4,this.validateProofSignature(s)];case 1:if(a=c.sent(),a!==!0)throw new Error("ethauth: proof signature is invalid");c.label=2;case 2:return[2,!0]}})})},this.validateProofSignature=function(s){return lc(n,void 0,void 0,function(){var i,c,o,a,c;return uc(this,function(l){switch(l.label){case 0:i=[],c=0,l.label=1;case 1:if(!(c{const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=atob(e),n=new Uint8Array(r.length);for(let o=0;ot!=null&&(typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||et(t)||typeof t=="bigint"),el=t=>{const e=t.toString(16);return`${e.length%2===0?"0x":"0x0"}${e}`},pM=(t,e=18)=>{let[r,n="0"]=t.split(".");const s=r.startsWith("-");if(s&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),e===0)r=`${Math.round(+`${r}.${n}`)}`,n="";else if(n.length>e){const[i,o,a]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${o}.${a}`);c>9?n=`${BigInt(i)+1n}0`.padStart(i.length+1,"0"):n=`${i}${c}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${s?"-":""}${r}${n}`)},lae=t=>pM(t,18),yM=(t,e=18)=>{let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");const s=r.slice(0,r.length-e);let i=r.slice(r.length-e);return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`},uae=t=>yM(t,18),Ts=(t,e)=>typeof e=="bigint"?{$bigint:e.toString()}:e,Gg=(t,e)=>e!==null&&typeof e=="object"&&"$bigint"in e&&typeof e.$bigint=="string"?BigInt(e.$bigint):e!==null&&typeof e=="object"&&e.type==="BigNumber"&&et(e.hex)?BigInt(e.hex):e,fae=t=>bl.encode(t,!0),nk=t=>bl.encode(JSON.stringify(t,Ts),!0),dae=t=>{if(t!=null)return bl.decode(t)},sk=t=>{if(t!=null)return JSON.parse(bl.decode(t),Gg)},ik=t=>Q(typeof t=="string"?Qr(t):_e(t)),vM=(t,e,r)=>De(["string","uint256","address","bytes32"],["",e,t,r]),S2=(t,e,r)=>_e(vM(t,e,r)),gM=()=>typeof window>"u"&&typeof process=="object",hae=()=>!gM(),mM=t=>{const e=t.split(".");if(e.length!==3)throw new Error("invalid jwt");return JSON.parse(bl.decode(e[1]))};function mv(){return mv=Object.assign?Object.assign.bind():function(t){for(var e=1;eSe.configure(t);class $t{static bufferIndexOf(e,r,n=!1){if(n)return $t.binarySearch(e,r,$t.compare);const s=(i,o)=>{if(i===o)return!0;if(i.length!==o.length)return!1;for(let a=0;a=0;c--)if(n(e[c],r)!==0)return c+1;return 0}else a<0?s=o+1:i=o-1}return-1}static compare(e,r){const n=Math.min(e.length,r.length);for(let s=0;s$t.bufferify(e(r))}}class pae extends $t{constructor(e,r={}){super(),this.hashFn=void 0,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sortLeaves=!!r.sortLeaves,this.sortPairs=!!r.sortPairs,this.hashFn=$t.bufferifyFn(_e),this.processLeaves(e)}getOptions(){return{sortLeaves:this.sortLeaves,sortPairs:this.sortPairs}}processLeaves(e){this.leaves=e.map($t.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort($t.compare)),this.createHashes(this.leaves)}createHashes(e){for(this.layers=[e];e.length>1;){const r=this.layers.length;this.layers.push([]);const n=e.length;for(let s=0;s=n){this.layers[r].push(...e.slice(n));break}else if(s+1===e.length&&e.length%2===1){this.layers[r].push(e[s]);continue}const i=e[s],o=s+1===e.length?i:e[s+1],a=[i,o];this.sortPairs&&a.sort($t.compare);const c=this.hashFn(Le(a));this.layers[r].push(c)}e=this.layers[r]}}getRoot(){return this.layers.length===0?Uint8Array.from([]):this.layers[this.layers.length-1][0]||Uint8Array.from([])}getHexRoot(){return $t.bufferToHex(this.getRoot())}getProof(e,r){if(typeof e>"u")throw new Error("leaf is required");e=$t.bufferify(e);const n=[];if(!Number.isInteger(r)){r=-1;for(let s=0;s$t.bufferToHex(n.data))}verify(e,r,n){let s=$t.bufferify(r);if(n=$t.bufferify(n),!Array.isArray(e)||!r||!n)return!1;for(let i=0;ithis.toLeaf(r));return new pae(e,{sortPairs:!0,sortLeaves:!0})}generateRoot(){return this.tree||(this.tree=this.generateTree()),this.tree.getHexRoot()}generateProof(e){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.getHexProof(this.toLeaf(e))}verifyProof(e,r){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.verify(r,this.toLeaf(e),this.generateRoot())}}const vae=t=>eo(["address","uint256"],[t.address.toLowerCase(),t.tokenId]),O0=(t,e,r)=>{const n=new qt(t);return r&&n.setHeader("Authorization",`BEARER ${r}`),e&&n.setHeader("X-Access-Key",e),n};let gae=class{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Qr(JSON.stringify(s,mae))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}};function mae(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function xae(t,e){return function(...r){const n=Array.prototype.slice.call(r);return new Promise(async(s,i)=>{try{n.push((o,a)=>o?i(o):s(a)),await t.apply(e,n)}catch(o){i(o)}})}}function bae(t,e){const r=encodeURIComponent(t),n=encodeURIComponent(JSON.stringify(e));return`${r}=${n}`}function wae(t){const e=t.split("&"),r={};for(const n of e){const s=n.split("=");r[decodeURIComponent(s[0])]=JSON.parse(decodeURIComponent(s[1]))}return r}const Eae=(t=0,e=Number.MAX_SAFE_INTEGER)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),wM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\d.]+/);return e&&e.length>0?e[0].trim():""},EM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\s\d]+/);return e&&e.length>0?e[0].trim():""},CM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\d.\-:\/]+/);return e&&e.length>0?e[0].trim():""},Cae=t=>new Promise(e=>{const r=setTimeout(()=>{clearTimeout(r),e()},t)}),kM=t=>{const e=mv({},t.types);return delete e.EIP712Domain,Bs.hash(t.domain,e,t.message)},kd=t=>Q(kM(t)),{defineProperties:kae,resolveProperties:Aae}=xoe,Sae=t=>t.replace(/([^:]\/)\/+/g,"$1"),Tae=Object.freeze(Object.defineProperty({__proto__:null,Logger:xM,MAX_UINT_256:dM,MerkleTreeGenerator:yae,PromiseCache:gae,base64Decode:dae,base64DecodeObject:sk,base64Encode:fae,base64EncodeObject:nk,bigintReplacer:Ts,bigintReviver:Gg,configureLogger:bM,defineProperties:kae,encodeMessageDigest:ik,encodeTypedDataDigest:kd,encodeTypedDataHash:kM,extractProjectIdFromAccessKey:cae,formatEther:uae,formatUnits:yM,getFetchRequest:O0,getRandomInt:Eae,getSaleItemsLeaf:vae,isBigNumberish:hM,isBrowser:hae,isNode:gM,jwtDecodeClaims:mM,logger:Se,packMessageData:vM,parseEther:lae,parseUnits:pM,promisify:xae,queryStringFromObject:bae,queryStringToObject:wae,resolveProperties:Aae,sanitizeAlphanumeric:EM,sanitizeHost:CM,sanitizeNumberString:wM,sleep:Cae,subDigestOf:S2,toHexString:el,urlClean:Sae},Symbol.toStringTag,{value:"Module"}));function sd(){return sd=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="number"?t:t.chainId?t.chainId:Number(t),Iae=t=>{if(t)return AM(t)},SM=(t,e=!1,r=!1)=>{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const s=n.map(l=>l.chainId).sort(),i=s.filter((l,u)=>s.indexOf(l)!==u);if(i.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${i}`);return!1}n.forEach(l=>l.name=l.name.toLowerCase());const o=n.map(l=>l.name).sort(),a=o.filter((l,u)=>o.indexOf(l)!==u);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let c=!1;for(let l=0;l(SM(t,!0,e),t),Oae=(t,e=!0)=>{const r=t.map(s=>s.chainId).sort(),n=r.filter((s,i)=>r.indexOf(s)!==i);if(n.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${n}`);return!1}return!0},Rae=(t,e)=>{if(!(!t||!e)){if(!t.chainId&&!t.name)throw new Error("failed to update network config: source config is missing chainId or name");if(t.chainId!==e.chainId&&t.name!==e.name)throw new Error("failed to update network config: one of chainId or name must match");t.rpcUrl&&(e.rpcUrl=t.rpcUrl,e.provider=void 0),t.provider&&(e.provider=t.provider),t.relayer&&(e.relayer=t.relayer)}},PM=t=>TM(IM(t)),Ns=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=Number(e);return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(typeof e=="bigint"){const r=Number(e);return t.find(n=>n.chainId===r)}else return}},Nae=(t,e)=>t?t.name===e||t.chainId===e:!1,_ae=t=>{const e={};for(let r=0;r{if(!t)return[];const e=t.sort((n,s)=>n.chainId===s.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},qg=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let s=e[n];return typeof s=="function"?s=s():s==null?s="":typeof s=="object"||typeof s=="symbol"?s=s.toString():s=s.valueOf(),s})):"",OM=t=>qg("https://${network}-indexer.sequence.app",{network:t}),RM=t=>qg("https://${network}-relayer.sequence.app",{network:t}),NM=t=>qg("https://nodes.sequence.app/${network}",{network:t});function ok(t){return Ns(id,t)}function _M(t){return typeof t=="bigint"?t:hM(t)?BigInt(t):BigInt(t.chainId)}const We=(t,e)=>{const r=I0[t];if(!r)throw new Error(`Network with chainId ${t} not found`);const n=NM(r.name);return sd({},r,{rpcUrl:n,indexerUrl:OM(r.name),relayer:{url:RM(r.name),provider:{url:n}}},e)},MM=[sd({},I0[L.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),sd({},I0[L.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})],id=PM([sd({},We(L.POLYGON),{isDefaultChain:!0,isAuthChain:!0}),We(L.MAINNET),We(L.BSC),We(L.AVALANCHE),We(L.ARBITRUM),We(L.ARBITRUM_NOVA),We(L.OPTIMISM),We(L.OPTIMISM_SEPOLIA),We(L.POLYGON_ZKEVM),We(L.GNOSIS),We(L.RINKEBY,{disabled:!0}),We(L.GOERLI,{disabled:!0}),We(L.SEPOLIA),We(L.POLYGON_MUMBAI,{disabled:!0}),We(L.POLYGON_AMOY),We(L.BSC_TESTNET),We(L.ARBITRUM_SEPOLIA),We(L.BASE),We(L.BASE_SEPOLIA),We(L.HOMEVERSE),We(L.HOMEVERSE_TESTNET),We(L.XAI),We(L.XAI_SEPOLIA),We(L.AVALANCHE_TESTNET),We(L.ASTAR_ZKEVM),We(L.ASTAR_ZKYOTO),We(L.XR_SEPOLIA),We(L.B3_SEPOLIA),We(L.APECHAIN_TESTNET),We(L.BLAST),We(L.BLAST_SEPOLIA),We(L.TELOS),We(L.BORNE_TESTNET),We(L.SKALE_NEBULA_TESTNET),...MM]);class DM{constructor(e,r){this.sender=void 0,this.handler=void 0,this.sender=r,e&&this.setMiddleware(e)}setMiddleware(e){this.handler=BM(e,this.sender)}request(e){return this.handler.request(e)}}const BM=(t,e)=>{if(t.length===0)return e;const r=s=>s.requestHandler?s.requestHandler:s;let n;n=r(t[t.length-1])(e.request);for(let s=t.length-2;s>=0;s--)n=r(t[s])(n);return{request:n}};function LM(t){return t!==void 0&&t.send!==void 0&&t.constructor.defaultUrl!==void 0&&t.detectNetwork!==void 0&&t.getSigner!==void 0&&t.perform!==void 0}function jM(t){return t!==void 0&&t.send!==void 0}class FM{constructor(e,r){this.provider=void 0,this.defaultChainId=void 0,this.request=n=>(n.chainId||(n.chainId=this.defaultChainId),this.provider(n)),jM(e)?this.provider=n=>e.send(n.method,n.params,n.chainId):LM(e)?this.provider=n=>e.send(n.method,n.params||[]):this.provider=e,this.defaultChainId=r}send(e,r,n){const s={method:e,params:r,chainId:n};return this.request(s)}}class Mae{constructor(e){this.requestHandler=void 0,this.isAllowedFunc=void 0,e?this.isAllowedFunc=e:this.isAllowedFunc=r=>!0,this.requestHandler=T2(this.isAllowedFunc)}setIsAllowedFunc(e){this.isAllowedFunc=e,this.requestHandler=T2(this.isAllowedFunc)}}const T2=t=>e=>r=>{if(!t(r))throw new Error("allowProvider middleware precondition is unmet.");return e(r)};class ak{constructor(e){var r=this;this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.requestHandler=n=>async function(s){if(r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId),a=r.getCacheValue(o);if(a&&a!=="")return{id:s.id,result:a}}const i=await n(s);if((r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method))&&i&&r.shouldCacheResponse(s,i)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId);r.cachableJsonRpcMethods.includes(s.method)?r.setCacheValue(o,i):r.setCacheByBlockValue(o,i)}return i},this.cacheKey=(n,s,i)=>{let o="";return i?o=`${i}:${n}:`:o=`:${n}:`,!s||s.length===0?o+"[]":o+JSON.stringify(s)},this.getCache=()=>this.cache,this.setCache=n=>{this.cache=n,this.onUpdateCallback&&this.onUpdateCallback()},this.getCacheValue=n=>{if(this.cache[n])return this.cache[n];if(this.cacheByBlock[n])return this.cacheByBlock[n]},this.setCacheValue=(n,s)=>{this.cache[n]=s,this.onUpdateCallback&&this.onUpdateCallback(n,s)},this.setCacheByBlockValue=(n,s)=>{this.cacheByBlock[n]=s,this.cacheByBlockResetLock||(this.cacheByBlockResetLock=!0,setTimeout(()=>{this.cacheByBlockResetLock=!1,this.cacheByBlock={}},1500))},this.shouldCacheResponse=(n,s)=>!(!s||n.method==="eth_getCode"&&s.length<=2),this.clearCache=()=>{this.cache={},this.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=e==null?void 0:e.defaultChainId,e!=null&&e.blockCache?(e==null?void 0:e.blockCache)!==!0&&(this.cachableJsonRpcMethodsByBlock=e==null?void 0:e.blockCache):this.cachableJsonRpcMethodsByBlock=[]}onUpdate(e){this.onUpdateCallback=e}}class UM{constructor(e){var r=this;this.options=void 0,this.requestHandler=n=>async function(s){switch(s.method){case"net_version":if(r.options.chainId)return`${r.options.chainId}`;break;case"eth_chainId":if(r.options.chainId)return pr(r.options.chainId);break;case"eth_accounts":if(r.options.accountAddress)return[Te(r.options.accountAddress)];break;case"sequence_getWalletContext":if(r.options.walletContext)return r.options.walletContext;break}return n(s)},this.options=e}}const $M=t=>async e=>{try{return await t(e)}catch(r){throw typeof r=="string"?new Error(r):new Error(r.message)}},WM=t=>async e=>{const r=e.chainId?` chainId:${e.chainId}`:"";Se.info(`[provider request]${r} id:${e.id} method:${e.method} params:`,e.params);try{const n=await t(e);return Se.info(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"result:",n),n}catch(n){Se.warn(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"error:",n)}},Dae=t=>e=>async r=>{const n=t(r);switch(r.method){case"net_version":return`${n}`;case"eth_chainId":return pr(n)}return e(r)},VM=["personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_sendRawTransaction","sequence_sign","sequence_signTypedData_v4","sequence_getWalletContext","sequence_getWalletConfig","sequence_getWalletState","sequence_getNetworks","sequence_updateConfig","sequence_publishConfig","sequence_gasRefundOptions","sequence_getNonce","sequence_relay","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];class Bae{constructor(e){this.provider=void 0,this.requestHandler=r=>n=>VM.includes(n.method)?this.provider.request(n):r(n),this.provider=e}}class Lae{constructor(e){this.privateJsonRpcMethods=["net_version","eth_chainId","eth_accounts",...VM],this.provider=void 0,this.rpcUrl=void 0,this.requestHandler=r=>n=>this.provider&&!this.privateJsonRpcMethods.includes(n.method)?this.provider.send(n.method,n.params||[]):(Se.debug("[public-provider] sending request to signer window",n.method),r(n)),e&&this.setRpcUrl(e)}getRpcUrl(){return this.rpcUrl}setRpcUrl(e){!e||e===""?(this.rpcUrl=void 0,this.provider=void 0):(this.rpcUrl=e,this.provider=new zt(e))}}class HM{constructor(){var e=this;this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.requestHandler=r=>async function(n){if(!e.singleflightJsonRpcMethods.includes(n.method))return r(n);const s=e.requestKey(n.method,n.params||[],n.chainId);if(!e.inflight[s])e.inflight[s]=[];else return new Promise((i,o)=>{e.inflight[s].push({id:n.id,callback:(a,c)=>{a?o(a):i(c)}})});try{const i=await r(n);return e.inflight[s].forEach(({callback:o})=>o(void 0,i)),i}catch(i){throw e.inflight[s].forEach(({callback:o})=>o(i,void 0)),i}finally{delete e.inflight[s]}},this.requestKey=(r,n,s)=>{let i="";return s?i=`${s}:${r}:`:i=`:${r}:`,!n||n.length===0?i+"[]":i+JSON.stringify(n)},this.inflight={}}}function Wl(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jae=0;function ck(t){return"__private_"+jae+++"_"+t}var Xa=ck("chainId"),Wx=ck("nextId"),Vd=ck("sender");class zM extends zt{constructor(e,r,n){var s;super(e,r==null?void 0:r.chainId,n),s=this,this.url=e,Object.defineProperty(this,Xa,{writable:!0,value:void 0}),Object.defineProperty(this,Wx,{writable:!0,value:1}),Object.defineProperty(this,Vd,{writable:!0,value:void 0}),this.fetch=async function(l){if(s.url===void 0)throw new Error("missing provider URL");const{method:u,params:f}=l,d={method:u,params:f,id:Wl(s,Wx)[Wx]++,jsonrpc:"2.0"},h=typeof s.url=="string"?new qt(s.url):s.url;h.body=JSON.stringify(d);try{const y=await h.send();if(y.body)try{const p=JSON.parse(Ds(y.body));return Fae(p)}catch{throw new Error("invalid JSON response")}return null}catch(y){throw y}};const i=r==null?void 0:r.chainId,o=r==null?void 0:r.middlewares,a=r==null?void 0:r.blockCache;Wl(this,Xa)[Xa]=i;const c=new DM(o??[new UM({chainId:i}),new HM,new ak({defaultChainId:i,blockCache:a})],new FM(this.fetch,i));Wl(this,Vd)[Vd]=c}async request(e){return Wl(this,Vd)[Vd].request(e)}async send(e,r,n){return this.request({method:e,params:r,chainId:n})}async getNetwork(){const e=Wl(this,Xa)[Xa];if(e){const r=I0[e],n=(r==null?void 0:r.name)||"",s=r==null?void 0:r.ensAddress;return ot.from({name:n,chainId:e,ensAddress:s})}else{const r=await this.send("eth_chainId",[]);return Wl(this,Xa)[Xa]=Number(r),this.getNetwork()}}}function Fae(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}const Uae=Object.freeze(Object.defineProperty({__proto__:null,AllowProvider:Mae,CachedProvider:ak,ChainId:L,EagerProvider:UM,JsonRpcHandler:FM,JsonRpcProvider:zM,JsonRpcRouter:DM,NetworkType:Ne,PublicProvider:Lae,SigningProvider:Bae,SingleflightMiddleware:HM,allNetworks:id,allowProviderMiddleware:T2,checkNetworkConfig:Nae,createJsonRpcMiddlewareStack:BM,ensureUniqueNetworks:Oae,ensureValidNetworks:TM,exceptionProviderMiddleware:$M,findNetworkConfig:Ns,findSupportedNetwork:ok,getChainId:AM,hardhatNetworks:MM,indexerURL:OM,isJsonRpcProvider:LM,isJsonRpcSender:jM,isNetworkConfig:Pae,isValidNetworkConfig:SM,loggingProviderMiddleware:WM,maybeChainId:Iae,networkProviderMiddleware:Dae,networks:I0,networksIndex:_ae,nodesURL:NM,relayerURL:RM,sortNetworks:IM,stringTemplate:qg,toChainIdNumber:_M,updateNetworkConfig:Rae,validateAndSortNetworks:PM},Symbol.toStringTag,{value:"Module"}));function yr(){return yr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(uk(s))return De(["uint8","uint8","address"],[tl.Address,s.weight,s.address]);if(s.isDynamic){const i=Q(s.signature);return De(["uint8","uint8","address","uint16","bytes"],[tl.DynamicSignature,s.weight,s.address,i.length,i])}return De(["uint8","uint8","bytes"],[tl.EOASignature,s.weight,s.signature])});return De(["uint16",...new Array(n.length).fill("bytes")],[r,...n])}async function YM(t,e,r){const n=S1(e),s=await Promise.all(t.signers.map(async i=>{if(uk(i))return i;if(i.isDynamic){if(!i.address)throw new Error("Dynamic signature part must have address");if(!lk(i.address,n,i.signature,r))throw new Error(`Invalid dynamic signature part ${i.address}`);return{address:i.address,weight:i.weight,signature:i.signature}}else return{address:T1(n,i.signature),weight:i.weight,signature:i.signature}}));return{version:1,payload:e,subdigest:n,config:{version:1,threshold:t.threshold,signers:s}}}function Ph(t,e,r,n){if(r.length!==0)throw new Error("Explicit subdigests not supported on v1");let s=0n;const i=t.signers.map(a=>{if(!e.has(a.address))return a;const c=e.get(a.address),l=Q(c.signature);return s+=BigInt(a.weight),c.isDynamic||l.length!==66?yr({},a,{isDynamic:!0,signature:c.signature,address:a.address}):yr({},a,{isDynamic:!1,signature:c.signature})});return{encoded:fk({version:1,threshold:t.threshold,signers:i}),weight:s}}const dk={decode:t=>JM(t),encode:t=>fk(t),trim:async t=>t,supportsNoChainId:!0,recover:(t,e,r)=>YM(t,e,r),encodeSigners:(t,e,r,n)=>Ph(t,e,r),hasEnoughSigningPower:(t,e)=>{const{weight:r}=dk.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{throw new Error("Signature chaining not supported on v1")},hashSetImageHash:function(t){throw new Error("Image hash not supported on v1")},signaturesOf(t){return t.signers.filter(e=>e.signature!==void 0).map(e=>({address:e.address,signature:e.signature}))},signaturesOfDecoded:function(t){return t.signers.map(e=>e.signature).filter(e=>e!==void 0)}};var Qae=Object.freeze({__proto__:null,SignaturePartType:tl,isAddressMember:uk,isUnrecoveredSignatureMember:KM,isUnrecoveredSignature:QM,decodeSignature:JM,encodeSignature:fk,recoverSignature:YM,encodeSigners:Ph,SignatureCoder:dk});const hk={isWalletConfig:t=>t.version===1&&t.threshold!==void 0&&t.signers!==void 0,imageHashOf:t=>t.signers.reduce((e,r)=>_e(Kt.defaultAbiCoder().encode(["bytes32","uint8","address"],[e,r.weight,r.address])),De(["uint256"],[t.threshold])),hasSubdigest:(t,e)=>!1,isComplete:t=>!0,checkpointOf:t=>0n,signersOf:t=>t.signers.map(e=>({address:e.address,weight:Number(e.weight)})),fromSimple:t=>{if(BigInt(t.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(t.subdigests&&t.subdigests.length>0)throw new Error("v1 wallet config does not support subdigests");return{version:1,threshold:t.threshold,signers:t.signers}},update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt([...Gt.mainModule.abi,...Gt.mainModuleUpgradable.abi]),i=[];return(!n||n==="first")&&i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImplementation"),[r.mainModuleUpgradable]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[hk.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),{entrypoint:t,transactions:i}},decodeTransaction:function(t){throw new Error("Function not implemented.")}},toJSON:function(t){const e=t.signers.map(r=>({weight:BigInt(r.weight).toString(),address:r.address}));return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),signers:e})},fromJSON:function(t){const e=JSON.parse(t),r=e.signers.map(n=>({weight:BigInt(n.weight),address:n.address}));return{version:e.version,threshold:BigInt(e.threshold),signers:r}},editConfig:function(t,e){var r;const n=t.signers.slice();if(e.checkpoint&&BigInt(e.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(e.add)for(const s of e.add)n.find(i=>i.address===s.address)||n.push({weight:s.weight,address:s.address});if(e.remove)for(const s of e.remove){const i=n.findIndex(o=>o.address===s);i>=0&&n.splice(i,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,signers:n}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Ph(t,r,[]);if(a>=BigInt(t.threshold))return o}const n=t.signers;for(const{address:s}of n.sort(({weight:i},{weight:o})=>Number(i)-Number(o))){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Ph(t,r,[]);if(a>=BigInt(t.threshold))return o}return Ph(t,r,[]).encoded}};var Jae=Object.freeze({__proto__:null,ConfigCoder:hk}),Yae=Object.freeze({__proto__:null});const XM=1,ZM={version:XM,factory:"0xf9D09D634Fb818b05149329C1dcCFAeA53639d96",guestModule:"0x02390F3E6E5FD1C6786CB78FD3027C117a9955A7",mainModule:"0xd01F11855bCcb95f88D7A48492F66410d4637313",mainModuleUpgradable:"0x7EFE6cE415956c5f80C6530cC6cc81b4808F6118",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Hi=Object.freeze({__proto__:null,config:Jae,context:Yae,signature:Qae,version:XM,DeployedWalletContext:ZM});const pk="0x8713a7c4465f6fbee2b6e9d6646d1d9f83fec929edfc4baf661f3c865bdd04d1";function eD(t){return _e(tD(t))}function tD(t){return De(["bytes32","bytes32"],[pk,t])}function rD(t){const e=Q(t);if(e.length===64&&H(e.slice(0,32))===pk)return H(e.slice(32,64))}function Xae(t){return rD(t)!==void 0}var Zae=Object.freeze({__proto__:null,SetImageHashPrefix:pk,hashSetImageHash:eD,messageSetImageHash:tD,decodeMessageSetImageHash:rD,isMessageSetImageHash:Xae});let Zt=function(t){return t[t.Legacy=0]="Legacy",t[t.Dynamic=1]="Dynamic",t[t.NoChainIdDynamic=2]="NoChainIdDynamic",t[t.Chained=3]="Chained",t}({}),It=function(t){return t[t.Signature=0]="Signature",t[t.Address=1]="Address",t[t.DynamicSignature=2]="DynamicSignature",t[t.Node=3]="Node",t[t.Branch=4]="Branch",t[t.Subdigest=5]="Subdigest",t[t.Nested=6]="Nested",t}({});const xv=66;function wl(t){return t.left!==void 0&&t.right!==void 0}function Ad(t){return t.tree!==void 0}function P1(t){return t.unrecovered&&t.signature!==void 0&&t.isDynamic!==void 0}function bv(t){let e=Q(t),r;const n=(s,i)=>s?s.right?{left:s,right:i}:{left:s.left,right:i}:{left:i};for(;e.length>0;){const s=e[0];switch(e=e.slice(1),s){case It.Signature:{const i=e[0],o=H(e.slice(1,xv+1));r=n(r,{signature:o,weight:i,unrecovered:!0,isDynamic:!1}),e=e.slice(xv+1)}break;case It.Address:{const i=e[0],o=Te(H(e.slice(1,21)));r=n(r,{address:o,weight:i}),e=e.slice(21)}break;case It.DynamicSignature:{const i=e[0],o=Te(H(e.slice(1,21))),a=e[21]<<16|e[22]<<8|e[23],c=H(e.slice(24,24+a));r=n(r,{address:o,signature:c,weight:i,unrecovered:!0,isDynamic:!0}),e=e.slice(24+a)}break;case It.Node:{const i=H(e.slice(0,32));r=n(r,{nodeHash:i}),e=e.slice(32)}break;case It.Branch:{const i=e[0]<<16|e[1]<<8|e[2],o=bv(e.slice(3,3+i));r=n(r,o),e=e.slice(3+i)}break;case It.Subdigest:{const i=H(e.slice(0,32));r=n(r,{subdigest:i}),e=e.slice(32)}break;case It.Nested:{const i=e[0],o=e[1]<<8|e[2],a=e[3]<<16|e[4]<<8|e[5],c=bv(e.slice(6,6+a));r=n(r,{weight:i,threshold:o,tree:c}),e=e.slice(6+a)}break;default:throw new Error(`Unknown signature part type: ${s}: ${H(e)}`)}}if(!r)throw new Error("Empty signature tree");return r.right?r:r.left}class nD extends Error{constructor(e){super(`Invalid signature leaf: ${JSON.stringify(e)}`),this.leaf=e}}async function rl(t,e,r){if(wl(t)){const[n,s]=await Promise.all([rl(t.left,e,r),rl(t.right,e,r)]);return{left:n,right:s}}if(Ad(t))return{weight:t.weight,threshold:t.threshold,tree:await rl(t.tree,e,r)};if(P1(t))if(t.isDynamic){if(!t.address)throw new Error("Dynamic signature leaf without address");if(!await lk(t.address,e,t.signature,r))throw new nD(t);return{weight:t.weight,address:t.address,signature:t.signature,subdigest:e}}else return{weight:t.weight,address:T1(e,t.signature),signature:t.signature,subdigest:e};return t}const Ar={concat:(t,e)=>De(["bytes","bytes"],[t,e]),node:t=>De(["uint8","bytes32"],[It.Node,t]),branch:t=>{const e=Q(t);return De(["uint8","uint24","bytes"],[It.Branch,e.length,e])},nested:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t,e,n.length,n])},subdigest:t=>De(["uint8","bytes32"],[It.Subdigest,t]),signature:(t,e)=>De(["uint8","uint8","bytes"],[It.Signature,t,e]),dynamicSignature:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t,e,n.length,n])},address:(t,e)=>De(["uint8","uint8","address"],[It.Address,t,e])};function Ih(t,e,r,n,s={}){const i=Oh(t.tree,e,r,s);return BigInt(n)===0n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.NoChainIdDynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:BigInt(t.threshold)>255n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.Dynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:{encoded:De(["uint8","uint8","uint32","bytes"],[Zt.Legacy,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}}function Oh(t,e,r,n={}){const s=!n.disableTrim;if(js(t)){const i=Oh(t.left,e,r),o=Oh(t.right,e,r),a=qr(t.left),c=qr(t.right);return s&&i.weight===0n&&o.weight===0n&&!a&&!c?{encoded:Ar.node(Yn(t)),weight:0n}:s&&o.weight===0n&&!c?{encoded:Ar.concat(i.encoded,Ar.node(Yn(t.right))),weight:i.weight}:s&&i.weight===0n&&!a?{encoded:Ar.concat(Ar.node(Yn(t.left)),Ar.branch(o.encoded)),weight:o.weight}:{encoded:Ar.concat(i.encoded,Ar.branch(o.encoded)),weight:i.weight+o.weight}}if(xo(t)){const i=Oh(t.tree,e,r);return s&&i.weight===0n?{encoded:Ar.node(Yn(t)),weight:0n}:{encoded:Ar.nested(t.weight,t.threshold,i.encoded),weight:i.weight}}if(bo(t))return{encoded:Ar.node(Yn(t)),weight:0n};if(mo(t)){const i=r.includes(t.subdigest);return{encoded:Ar.subdigest(t.subdigest),weight:i?dM:0n}}if(qr(t))if(e.has(t.address)){const o=e.get(t.address),a=o.signature;return n.forceDynamicEncoding||o.isDynamic?{encoded:Ar.dynamicSignature(t.weight,t.address,a),weight:BigInt(t.weight)}:{encoded:Ar.signature(t.weight,a),weight:BigInt(t.weight)}}else return{encoded:Ar.address(t.weight,t.address),weight:0n};throw new Error(`Invalid topology - unknown error: ${JSON.stringify(t)}`)}function yk(t){return gk(t)?yk(t.suffix[t.suffix.length-1]):t.config}function vk(t){return t.type!==void 0&&t.decoded!==void 0&&t.version!==void 0&&t.version===2}function I1(t){return t.suffix!==void 0&&Array.isArray(t.suffix)&&t.suffix.every(vk)}function sD(t){return t.type!==void 0&&t.config!==void 0&&t.digest!==void 0&&t.version!==void 0&&t.version===2}function gk(t){return t.chain!==void 0&&Array.isArray(t.chain)&&t.chain.every(sD)}function Kg(t){const e=Q(t),r=e[0];switch(r){case Zt.Legacy:return{version:2,type:Zt.Legacy,decoded:ly(e)};case Zt.Dynamic:return{version:2,type:Zt.Dynamic,decoded:ly(e.slice(1))};case Zt.NoChainIdDynamic:return{version:2,type:Zt.NoChainIdDynamic,decoded:ly(e.slice(1))};case Zt.Chained:return iD(e);default:throw new Error(`Invalid signature type: ${r}`)}}function ly(t){const e=Q(t),r=e[0]<<8|e[1],n=e[2]<<24|e[3]<<16|e[4]<<8|e[5],s=bv(e.slice(6));return{threshold:r,checkpoint:n,tree:s}}function iD(t){const e=Q(t),r=e[0];if(r!==Zt.Chained)throw new Error(`Expected chained signature type: ${r}`);const n=[];let s=1;for(;sQ(Ca(i))),s=De(n.map(()=>["uint24","bytes"]).flat(),n.map(i=>[i.length,i]).flat());return De(["uint8","bytes"],[Zt.Chained,s])}function Ca(t){if(mi(t))return H(t);if(I1(t)||gk(t))return Qg(Ca(t),(t.suffix||[]).map(Ca));const e=vk(t)?t.decoded:t.config;switch(t.type){case Zt.Legacy:if(BigInt(e.threshold)>255n)throw new Error(`Legacy signature threshold is too large: ${e.threshold} (max 255)`);return P2(e);case Zt.NoChainIdDynamic:case Zt.Dynamic:return De(["uint8","bytes"],[t.type,P2(e)]);case Zt.Chained:throw new Error("Unreachable code: Chained signature should be handled above");default:throw new Error(`Invalid signature type: ${t.type}`)}}function P2(t){return De(["uint16","uint32","bytes"],[t.threshold,t.checkpoint,Rh(t.tree)])}function Rh(t){if(js(t)||wl(t)){const e=Q(Rh(t.right)),r=Q(Rh(t.left));return js(t.right)||wl(t.right)?De(["bytes","uint8","uint24","bytes"],[r,It.Branch,e.length,e]):De(["bytes","bytes"],[r,e])}if(xo(t)||Ad(t)){const e=Q(Rh(t.tree));return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t.weight,t.threshold,e.length,e])}if(P1(t)||qr(t)&&t.signature!==void 0){const e=Q(t.signature);if(t.isDynamic||e.length!==xv){if(!t.address)throw new Error("Dynamic signature leaf must have address");return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t.weight,t.address,e.length,e])}else return De(["uint8","uint8","bytes"],[It.Signature,t.weight,e])}if(qr(t))return De(["uint8","uint8","address"],[It.Address,t.weight,t.address]);if(bo(t))return De(["uint8","bytes32"],[It.Node,t.nodeHash]);if(mo(t))return De(["uint8","bytes32"],[It.Subdigest,t.subdigest]);throw new Error(`Unknown signature tree type: ${t}`)}function Nh(t){return js(t)?[...Nh(t.left),...Nh(t.right)]:xo(t)?Nh(t.tree):qr(t)&&t.signature?[{address:t.address,signature:t.signature}]:[]}function _h(t){return wl(t)?[..._h(t.left),..._h(t.right)]:Ad(t)?_h(t.tree):P1(t)?[t.signature]:[]}function uy(t){return wl(t)?[...uy(t.left),...uy(t.right)]:Ad(t)?uy(t.tree):mo(t)?[t.subdigest]:[]}async function wv(t){const e=typeof t=="string"?Kg(t):t;if(I1(e)){const n=await Promise.all([wv(yr({},e,{suffix:void 0})),...e.suffix.map(s=>wv(s))]);return Qg(n[0],n.slice(1))}const{trimmed:r}=await Mh(e.decoded.tree);return Ca(yr({},e,{decoded:yr({},e.decoded,{tree:r})}))}async function Mh(t,e=!0){if(wl(t)){const[r,n]=await Promise.all([Mh(t.left),Mh(t.right)]);if(r.weight===0&&n.weight===0)try{const s=await rl(t,yl,void 0);return{weight:0,trimmed:{nodeHash:Yn(s)}}}catch{}else return{weight:r.weight+n.weight,trimmed:{left:r.trimmed,right:n.trimmed}}}if(Ad(t)){const r=await Mh(t.tree);if(r.weight===0)try{const n=await rl(t,yl,void 0);return{weight:0,trimmed:{nodeHash:Yn(n)}}}catch{}return{weight:r.weight,trimmed:{weight:t.weight,threshold:t.threshold,tree:r.trimmed}}}return bo(t)&&lD(t.nodeHash)?{weight:0,trimmed:yr({},cD(t.nodeHash))}:P1(t)||qr(t)&&t.signature!==void 0?{weight:Number(t.weight),trimmed:t}:!e&&mo(t)?{weight:1/0,trimmed:t}:{weight:0,trimmed:t}}const Jg={decode:t=>Kg(t),encode:t=>Ca(t),trim:t=>wv(t),supportsNoChainId:!0,recover:(t,e,r)=>mk(t,e,r),encodeSigners:(t,e,r,n)=>Ih(t,e,r,n),hasEnoughSigningPower:(t,e)=>{const{weight:r}=Jg.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{const r=e.reverse(),n=mi(t)?t:Ca(t),s=r.map(i=>mi(i)?i:Ca(i));return Qg(n,s)},hashSetImageHash:function(t){return eD(t)},signaturesOf(t){return Nh(t.tree)},signaturesOfDecoded:function(t){return _h(t.decoded.tree)}};var ece=Object.freeze({__proto__:null,SignatureType:Zt,SignaturePartType:It,SignaturePartTypeLength:xv,isUnrecoveredNode:wl,isUnrecoveredNestedLeaf:Ad,isUnrecoveredSignatureLeaf:P1,decodeSignatureTree:bv,InvalidSignatureLeafError:nD,recoverTopology:rl,partEncoder:Ar,encodeSigners:Ih,encodeTree:Oh,deepestConfigOfSignature:yk,isUnrecoveredSignature:vk,isUnrecoveredChainedSignature:I1,isSignature:sD,isChainedSignature:gk,decodeSignature:Kg,decodeSignatureBody:ly,decodeChainedSignature:iD,setImageHashStruct:oD,recoverSignature:mk,encodeChain:Qg,encodeSignature:Ca,encodeSignatureBody:P2,encodeSignatureTree:Rh,signaturesOf:Nh,signaturesOfDecoded:_h,subdigestsOfDecoded:uy,trimSignature:wv,trimUnrecoveredTree:Mh,SignatureCoder:Jg});function qr(t){return t.address!==void 0&&t.weight!==void 0}function mo(t){return t.subdigest!==void 0&&t.address===void 0}function Dh(t){return js(t)?JSON.stringify({left:Dh(t.left),right:Dh(t.right)}):xo(t)?JSON.stringify({weight:BigInt(t.weight).toString(),threshold:BigInt(t.threshold).toString(),tree:Dh(t.tree)}):qr(t)?JSON.stringify({address:t.address,weight:BigInt(t.weight).toString()}):JSON.stringify(t)}function Bh(t){const e=typeof t=="string"?JSON.parse(t):t;return e.left!==void 0&&e.right!==void 0?{left:Bh(e.left),right:Bh(e.right)}:e.weight!==void 0&&e.threshold!==void 0&&e.tree!==void 0?{weight:BigInt(e.weight),threshold:BigInt(e.threshold),tree:Bh(e.tree)}:e.address!==void 0&&e.weight!==void 0?{address:e.address,weight:BigInt(e.weight)}:e}function xo(t){return t.tree!==void 0&&t.weight!==void 0&&t.threshold!==void 0}function bo(t){return t.nodeHash!==void 0}function xk(t){return qr(t)||mo(t)||xo(t)||bo(t)}function js(t){return t.left!==void 0&&t.right!==void 0}function tce(t){return js(t)||xk(t)}function aD(t){return De(["uint96","address"],[t.weight,t.address])}function cD(t){const e=Q(t);if(e.length!==32)throw new Error("Invalid encoded string length");const r=BigInt(H(e.slice(0,12))),n=Te(H(e.slice(12)));return{weight:r,address:n}}function lD(t){const e=Q(t);return e.length!==32?!1:e.slice(0,11).every(n=>n===0)}function Yn(t){if(qr(t))return aD(t);if(mo(t))return eo(["string","bytes32"],[`Sequence static digest: -`,t.subdigest]);if(xo(t)){const e=Yn(t.tree);return eo(["string","bytes32","uint256","uint256"],[`Sequence nested config: -`,e,t.threshold,t.weight])}return bo(t)?t.nodeHash:eo(["bytes32","bytes32"],[Yn(t.left),Yn(t.right)])}function rce(t){const e=[];let r=t;for(;!xk(r);)e.unshift(r.right),r=r.left;return e.unshift(r),e}function nce(t){return t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&t.version!==void 0&&t.version===2}function bk(t){return eo(["bytes32","uint256"],[eo(["bytes32","uint256"],[Yn(t.tree),t.threshold]),t.checkpoint])}function uD(t){return t.threshold!==void 0&&t.weight!==void 0&&t.members!==void 0}function Bu(t){return qr(t)||mo(t)?[t]:xo(t)?[{threshold:t.threshold,weight:t.weight,members:Bu(t.tree)}]:bo(t)?[]:[...Bu(t.left),...Bu(t.right)]}function I2(t){return bo(t)?!0:js(t)?I2(t.left)||I2(t.right):!1}function sce(t){return{threshold:t.threshold,checkpoint:t.checkpoint,members:Bu(t.tree)}}const fD=(t,e)=>t.map(r=>uD(r)?{tree:e(r.members),threshold:r.threshold,weight:r.weight}:r);function wk(t){if(t.length===0)throw new Error("Empty members array");return fD(t,wk).reduce((r,n)=>({left:r,right:n}))}function Ek(t){if(t.length===0)throw new Error("Empty members array");const e=fD(t,Ek);for(let r=e.length;r>1;r=r/2)for(let n=0;n=r?e[n]=e[s]:e[n]={left:e[s],right:e[i]}}return e[0]}function Ck(t){return t.length>8?Ek(t):wk(t)}function dD(t,e=Ck){return{version:2,threshold:t.threshold,checkpoint:t.checkpoint,tree:e(t.members)}}function Ev(t,e){return mo(t)?t.subdigest===e:js(t)?Ev(t.left,e)||Ev(t.right,e):!1}function O2(t){const e=[t],r=new Set;for(;e.length>0;){const n=e.pop();xo(n)?e.push(n.tree):js(n)?(e.push(n.left),e.push(n.right)):qr(n)&&r.add({address:n.address,weight:Number(n.weight)})}return Array.from(r)}function Cv(t){return js(t)?Cv(t.left)&&Cv(t.right):!bo(t)}const Yg={isWalletConfig:t=>t.version===2&&t.threshold!==void 0&&t.tree!==void 0,imageHashOf:t=>bk(t),hasSubdigest:(t,e)=>Ev(t.tree,e),checkpointOf:t=>BigInt(t.checkpoint),signersOf:t=>O2(t.tree),fromSimple:t=>{var e;return dD(yr({},t,{members:[...t.signers,...((e=t.subdigests)!=null?e:[]).map(r=>({subdigest:r}))]}))},isComplete:t=>Cv(t.tree),update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt(Gt.mainModuleUpgradable.abi);return{entrypoint:t,transactions:[{to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[Yg.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}]}},decodeTransaction:function(t){var e,r,n,s;const i=new pt(Gt.mainModuleUpgradable.abi);if(t.transactions.length!==1)throw new Error("Invalid transaction bundle, expected 1 transaction");const o=t.transactions[0].data;if(!o)throw new Error("Invalid transaction bundle, expected data");const a=i.decodeFunctionData(i.getFunction("updateImageHash"),o);if(!a)throw new Error("Invalid transaction bundle, expected valid data");if(t.transactions[0].to!==t.entrypoint)throw new Error("Invalid transaction bundle, expected to be sent to entrypoint");if(t.transactions[0].delegateCall)throw new Error("Invalid transaction bundle, expected not to be a delegateCall");if(!t.transactions[0].revertOnError)throw new Error("Invalid transaction bundle, expected revertOnError");if(BigInt((e=(r=t.transactions[0])==null?void 0:r.value)!=null?e:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");if(BigInt((n=(s=t.transactions[0])==null?void 0:s.gasLimit)!=null?n:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");return{address:t.entrypoint,newImageHash:a[0],kind:void 0}}},toJSON:function(t){return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),checkpoint:BigInt(t.checkpoint).toString(),tree:Dh(t.tree)})},fromJSON:function(t){const e=JSON.parse(t);return{version:e.version,threshold:BigInt(e.threshold),checkpoint:BigInt(e.checkpoint),tree:Bh(e.tree)}},editConfig:function(t,e){var r,n;const s=Bu(t.tree);if(e.add)for(const i of e.add)s.find(o=>qr(o)&&o.address===i.address)||s.push({address:i.address,weight:i.weight});if(e.remove)for(const i of e.remove){const o=s.findIndex(a=>qr(a)&&a.address===i);o>=0&&s.splice(o,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,checkpoint:(n=e.checkpoint)!=null?n:t.checkpoint,tree:Ck(s)}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Ih(t,r,[],0);if(a>=BigInt(t.threshold))return o}const n=O2(t.tree);for(const{address:s}of n.sort(({weight:i},{weight:o})=>i-o)){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Ih(t,r,[],0);if(a>=BigInt(t.threshold))return o}return Ih(t,r,[],0).encoded}};var ice=Object.freeze({__proto__:null,isSignerLeaf:qr,isSubdigestLeaf:mo,topologyToJSON:Dh,topologyFromJSON:Bh,isNestedLeaf:xo,isNodeLeaf:bo,isLeaf:xk,isNode:js,isTopology:tce,encodeSignerLeaf:aD,decodeSignerLeaf:cD,isEncodedSignerLeaf:lD,hashNode:Yn,leftFace:rce,isWalletConfig:nce,imageHash:bk,isSimpleNestedMember:uD,topologyToMembers:Bu,hasUnknownNodes:I2,toSimpleWalletConfig:sce,legacyTopologyBuilder:wk,merkleTopologyBuilder:Ek,optimized2SignersTopologyBuilder:Ck,toWalletConfig:dD,hasSubdigest:Ev,signersOf:O2,isComplete:Cv,ConfigCoder:Yg}),oce=Object.freeze({__proto__:null});const ace={config:Yg,signature:Jg},hD=2,pD={version:hD,factory:"0xFaA5c0b14d1bED5C888Ca655B9a8A5911F78eF4A",guestModule:"0xfea230Ee243f88BC698dD8f1aE93F8301B6cdfaE",mainModule:"0xfBf8f1A5E00034762D928f46d438B947f5d4065d",mainModuleUpgradable:"0x4222dcA3974E39A8b41c411FeDDE9b09Ae14b911",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var je=Object.freeze({__proto__:null,config:ice,signature:ece,context:oce,chained:Zae,coders:ace,version:hD,DeployedWalletContext:pD});function R2(t,e){const r=_e(De(["bytes","bytes32"],[t.walletCreationCode,rs(t.mainModule,32)])),n=_e(De(["bytes1","address","bytes32","bytes32"],["0xff",t.factory,e,r]));return Te(st(n,12))}async function cce(t,e,r,n,s,i){return(await Promise.all(SD.map(async a=>{try{const c=a.signature.SignatureCoder.decode(H(r)),l=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),u=a.config.ConfigCoder.imageHashOf(l.config);if(R2(i[a.version],u).toLowerCase()===t.toLowerCase())return!0;const d=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),h=a.config.ConfigCoder.imageHashOf(d.config);return R2(i[a.version],h).toLowerCase()===t.toLowerCase()}catch{}return!1}))).some(a=>a)}function lce(t){const e=Object.keys(t).length;for(let r=1;r<=e;r++){const n=t[r];if(!n||n.version!==r)return!1}return!0}function uce(t){const e=Object.keys(t).length;return t[e]}const fce={1:ZM,2:pD};var dce=Object.freeze({__proto__:null,addressOf:R2,isValidCounterfactual:cce,isValidVersionedContext:lce,latestContext:uce,defaultContexts:fce});const Xg=`tuple( - bool delegateCall, - bool revertOnError, - uint256 gasLimit, - address target, - uint256 value, - bytes data -)[]`;function hce(t,e,r,n){return yr({},t,{chainId:r,intent:{id:n,wallet:e}})}function pce(t){return _e(Kt.defaultAbiCoder().encode(["address","uint256","bytes32"],[t.intent.wallet,t.chainId,t.intent.id]))}function yce(t){const e=Kt.defaultAbiCoder().decode(["uint256",Xg],t);if(e.length!==2||!e[0]||!e[1])throw new Error("Invalid meta transaction data");return[e[0],e[1]]}function yD(t,e){return Kt.defaultAbiCoder().encode(["uint256",Xg],[t,R0(e)])}function vD(t,e){return _e(yD(t,e))}function vce(t,e,r,n){return S1({address:t,chainId:e,digest:vD(r,n)})}function gce(t,e,r){return S1({address:t,chainId:e,digest:_e(Kt.defaultAbiCoder().encode(["string",Xg],["guest:",R0(r)]))})}function gD(t,e){return e.map(r=>kk(t,r))}function kk(t,e){if(e.to&&e.to!==xi)return{nonce:Lh(e.nonce)?void 0:BigInt(e.nonce),transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Lh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:e.to,value:BigInt(e.value||0),data:e.data||"0x"}};{const r=new pt(Gt.mainModule.abi),n=r.encodeFunctionData(r.getFunction("createContract"),[e.data]);return{nonce:typeof e.nonce=="number"?BigInt(e.nonce):void 0,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Lh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:t,value:BigInt(e.value||0),data:n}}}}function Zg(t){return t.delegateCall!==void 0||t.revertOnError!==void 0}function mD(t){return t.every(Zg)}function R0(t){return t.map(e=>{var r;return{delegateCall:e.delegateCall===!0,revertOnError:e.revertOnError===!0,gasLimit:Lh(e.gasLimit)?0n:BigInt(e.gasLimit),target:(r=e.to)!=null?r:xi,value:Lh(e.value)?0n:e.value,data:e.data||"0x"}})}function mce(t){return t.map(e=>({delegateCall:e.delegateCall,revertOnError:e.revertOnError,gasLimit:e.gasLimit,to:e.target,value:e.value,data:e.data}))}function xce(t,e){const r=BigInt(t),n=BigInt(e),s=2n**96n;if(n/s!==0n)throw new Error("Space already encoded");return n+r*s}function bce(t){const e=BigInt(t),r=2n**96n;return[e/r,e%r]}function wce(t,e){return Array.isArray(e)?mD(e)?e:gD(t,e).map(n=>n.transaction):Zg(e)?[e]:[kk(t,e).transaction]}function xD(t){return t!==void 0&&t.entrypoint!==void 0&&t.chainId!==void 0&&t.transactions!==void 0&&t.nonce!==void 0&&t.intent!==void 0&&t.intent.id!==void 0&&t.intent.wallet!==void 0&&Array.isArray(t.transactions)&&t.transactions.reduce((e,r)=>e&&Zg(r),!0)}function bD(t){return t!==void 0&&t.signature!==void 0&&t.signature!==""&&xD(t)}function Ece(t){const e=new pt(Gt.mainModule.abi);return e.encodeFunctionData(e.getFunction("execute"),bD(t)?[R0(t.transactions),t.nonce,t.signature]:[R0(t.transactions),0,new Uint8Array([])])}const wD="0x61c2926c",ED=`tuple( - bool delegateCall, - bool revertOnError, - uint256 gasLimit, - address target, - uint256 value, - bytes data -)[]`,N2=(t,e)=>{const r=[],n=new pt(Gt.mainModule.abi);for(const s of e){const i=Q(s.data||"0x");if(s.to===t&&H(i.slice(0,4))===wD){const o=i.slice(4),a=Kt.defaultAbiCoder().decode([ED],o)[0];r.push(...N2(s.to,a.map(c=>yr({},c,{to:c.target}))))}else try{const o=n.decodeFunctionData("execute",i)[0],a=N2(t,o.map(c=>yr({},c.toObject(),{to:c.target})));r.push(...a)}catch{r.push(s)}}return r},Lh=t=>t==null;var Cce=Object.freeze({__proto__:null,MetaTransactionsType:Xg,intendTransactionBundle:hce,intendedTransactionID:pce,unpackMetaTransactionsData:yce,packMetaTransactionsData:yD,digestOfTransactions:vD,subdigestOfTransactions:vce,subdigestOfGuestModuleTransactions:gce,toSequenceTransactions:gD,toSequenceTransaction:kk,isSequenceTransaction:Zg,hasSequenceTransactions:mD,sequenceTxAbiEncode:R0,fromTxAbiEncode:mce,encodeNonce:xce,decodeNonce:bce,fromTransactionish:wce,isTransactionBundle:xD,isSignedTransactionBundle:bD,encodeBundleExecData:Ece,selfExecuteSelector:wD,selfExecuteAbi:ED,unwind:N2});const CD="0x608060405234801561001057600080fd5b5060405161124a38038061124a83398101604081905261002f91610124565b600060405161003d906100dd565b604051809103906000f080158015610059573d6000803e3d6000fd5b5090506000816001600160a01b0316638f0684308686866040518463ffffffff1660e01b815260040161008e939291906101fb565b6020604051808303816000875af11580156100ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d19190610244565b9050806000526001601ff35b610fdc8061026e83390190565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561011b578181015183820152602001610103565b50506000910152565b60008060006060848603121561013957600080fd5b83516001600160a01b038116811461015057600080fd5b6020850151604086015191945092506001600160401b038082111561017457600080fd5b818601915086601f83011261018857600080fd5b81518181111561019a5761019a6100ea565b604051601f8201601f19908116603f011681019083821181831017156101c2576101c26100ea565b816040528281528960208487010111156101db57600080fd5b6101ec836020830160208801610100565b80955050505050509250925092565b60018060a01b0384168152826020820152606060408201526000825180606084015261022e816080850160208701610100565b601f01601f191691909101608001949350505050565b60006020828403121561025657600080fd5b8151801515811461026657600080fd5b939250505056fe608060405234801561001057600080fd5b50610fbc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806376be4cea1161005057806376be4cea146100a65780638f068430146100b957806398ef1ed8146100cc57600080fd5b80631c6453271461006c5780633d787b6314610093575b600080fd5b61007f61007a366004610ad4565b6100df565b604051901515815260200160405180910390f35b61007f6100a1366004610ad4565b61023d565b61007f6100b4366004610b3e565b61031e565b61007f6100c7366004610ad4565b6108e1565b61007f6100da366004610ad4565b61096e565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061012890889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610181575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261017e91810190610c45565b60015b610232573d8080156101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b508051600181900361022757816000815181106101d3576101d3610c69565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250610235915050565b600092505050610235565b90505b949350505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906102879088908890889088906001908990600401610bc3565b6020604051808303816000875af19250505080156102e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102dd91810190610c45565b60015b610232573d80801561030e576040519150601f19603f3d011682016040523d82523d6000602084013e610313565b606091505b506000915050610235565b600073ffffffffffffffffffffffffffffffffffffffff87163b6060827f64926492649264926492649264926492649264926492649264926492649264928888610369602082610c98565b610375928b9290610cd8565b61037e91610d02565b1490508015610484576000606089828a610399602082610c98565b926103a693929190610cd8565b8101906103b39190610e18565b955090925090508415806103c45750865b1561047d576000808373ffffffffffffffffffffffffffffffffffffffff16836040516103f19190610eb2565b6000604051808303816000865af19150503d806000811461042e576040519150601f19603f3d011682016040523d82523d6000602084013e610433565b606091505b50915091508161047a57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b60405180910390fd5b50505b50506104be565b87878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806104ca5750600083115b156106bb576040517f1626ba7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b1690631626ba7e90610523908c908690600401610f2b565b602060405180830381865afa92505050801561057a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261057791810190610f44565b60015b61060f573d8080156105a8576040519150601f19603f3d011682016040523d82523d6000602084013e6105ad565b606091505b50851580156105bc5750600084115b156105db576105d08b8b8b8b8b600161031e565b9450505050506108d7565b806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f1626ba7e000000000000000000000000000000000000000000000000000000001480158161065f575086155b801561066b5750600085115b1561068b5761067f8c8c8c8c8c600161031e565b955050505050506108d7565b841580156106965750825b80156106a0575087155b156106af57806000526001601ffd5b94506108d79350505050565b6041871461074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f5369676e617475726556616c696461746f72237265636f7665725369676e657260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610471565b600061075a6020828a8c610cd8565b61076391610d02565b90506000610775604060208b8d610cd8565b61077e91610d02565b905060008a8a604081811061079557610795610c69565b919091013560f81c915050601b81148015906107b557508060ff16601c14155b15610842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5369676e617475726556616c696461746f723a20696e76616c6964207369676e60448201527f617475726520762076616c7565000000000000000000000000000000000000006064820152608401610471565b6040805160008152602081018083528e905260ff831691810191909152606081018490526080810183905273ffffffffffffffffffffffffffffffffffffffff8e169060019060a0016020604051602081039080840390855afa1580156108ad573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161496505050505050505b9695505050505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061092b9088908890889088906001908990600401610bc3565b6020604051808303816000875af115801561094a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102329190610c45565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906109b790889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610a10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610a0d91810190610c45565b60015b610232573d808015610a3e576040519150601f19603f3d011682016040523d82523d6000602084013e610a43565b606091505b5080516001819003610a6257816000815181106101d3576101d3610c69565b8082fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a8857600080fd5b50565b60008083601f840112610a9d57600080fd5b50813567ffffffffffffffff811115610ab557600080fd5b602083019150836020828501011115610acd57600080fd5b9250929050565b60008060008060608587031215610aea57600080fd5b8435610af581610a66565b935060208501359250604085013567ffffffffffffffff811115610b1857600080fd5b610b2487828801610a8b565b95989497509550505050565b8015158114610a8857600080fd5b60008060008060008060a08789031215610b5757600080fd5b8635610b6281610a66565b955060208701359450604087013567ffffffffffffffff811115610b8557600080fd5b610b9189828a01610a8b565b9095509350506060870135610ba581610b30565b91506080870135610bb581610b30565b809150509295509295509295565b73ffffffffffffffffffffffffffffffffffffffff8716815285602082015260a060408201528360a0820152838560c0830137600060c085830181019190915292151560608201529015156080820152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101019392505050565b600060208284031215610c5757600080fd5b8151610c6281610b30565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81810381811115610cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b60008085851115610ce857600080fd5b83861115610cf557600080fd5b5050820193919092039150565b80356020831015610cd2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d7e57600080fd5b813567ffffffffffffffff80821115610d9957610d99610d3e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610ddf57610ddf610d3e565b81604052838152866020858801011115610df857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610e2d57600080fd5b8335610e3881610a66565b9250602084013567ffffffffffffffff80821115610e5557600080fd5b610e6187838801610d6d565b93506040860135915080821115610e7757600080fd5b50610e8486828701610d6d565b9150509250925092565b60005b83811015610ea9578181015183820152602001610e91565b50506000910152565b60008251610ec4818460208701610e8e565b9190910192915050565b60008151808452610ee6816020860160208601610e8e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c626020830184610ece565b8281526040602082015260006102356040830184610ece565b600060208284031215610f5657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c6257600080fdfea26469706673582212201a72aed4b15ffb05b6502997a9bb655992e06590bd26b336dfbb153d7ff6f34b64736f6c63430008120033",kce="0x6492649264926492649264926492649264926492649264926492649264926492";async function kD(t,e,r,n){try{return await t.call({data:Le([CD,Kt.defaultAbiCoder().encode(["address","bytes32","bytes"],[e,r,n])])})==="0x01"}catch{return!1}}var Ace=Object.freeze({__proto__:null,EIP_6492_OFFCHAIN_DEPLOY_CODE:CD,EIP_6492_SUFFIX:kce,validateEIP6492Offchain:kD});class Sce{constructor(e){this.provider=e,this.isDeployedCache=new Set}module(e){return new dn(e,[...Gt.mainModuleUpgradable.abi,...Gt.mainModule.abi,...Gt.erc1271.abi],this.provider)}async isDeployed(e){if(this.isDeployedCache.has(e))return!0;const n=(await this.provider.getCode(e).then(s=>Q(s))).length!==0;return n&&this.isDeployedCache.add(e),n}async implementation(e){const r=Kt.defaultAbiCoder().encode(["address"],[e]),n=await this.provider.getStorage(e,r).then(s=>Q(s));if(n.length===20)return Te(H(n));if(n.length===32)return Kt.defaultAbiCoder().decode(["address"],n)[0]}async imageHash(e){try{return await this.module(e).imageHash()}catch{}}async nonce(e,r=0){try{return await this.module(e).readNonce(r)}catch(n){if(!await this.isDeployed(e))return 0;throw n}}async isValidSignature(e,r,n){return kD(this.provider,e,r,n)}}var Tce=Object.freeze({__proto__:null,OnChainReader:Sce});function Pce(t){return t&&t.address&&t.digest&&t.chainId!==void 0&&t.config}var ye=Object.freeze({__proto__:null,config:$ae,signature:Wae,context:dce,signer:Kae,EIP1271:zae,transaction:Cce,reader:Tce,EIP6492:Ace,isWalletSignRequestMetadata:Pce});const _2=[{config:hk,signature:dk},{config:Yg,signature:Jg}];function AD(t){const e=t-1;if(e<0||e>=_2.length)throw new Error(`No coder for version: ${t}`);return _2[e]}function Ice(t){return AD(t)}var dr=Object.freeze({__proto__:null,ALL_CODERS:_2,coderFor:AD,genericCoderFor:Ice});const $r="2.0.7",SD=[Hi,je],Oce=Object.freeze(Object.defineProperty({__proto__:null,VERSION:$r,allVersions:SD,commons:ye,universal:dr,v1:Hi,v2:je},Symbol.toStringTag,{value:"Module"}));function Rce(t,e,r){for(let n=0;ne.version)&&(e=r);if(e===void 0)throw new Error("No migrations");return e}async getAllMigratePresignedTransaction(e){const{address:r,fromImageHash:n,fromVersion:s,chainId:i}=e;let o=n,a=s;const c=Object.values(this.contexts),l=[];for(let u=1;uQ(i).length===0))return h3;if(!n.provider)throw new Error("signer.provider is not set, but is required");return n.provider.estimateGas({from:e,to:s.to,data:s.data,value:s.value})}))).map(s=>({executed:!0,succeeded:!0,gasUsed:Number(s),gasLimit:Number(s)}))}async getNonce(e,r,n){if(!this.provider)throw new Error("provider is not set");if(await this.provider.getCode(e)==="0x")return 0;r===void 0&&(r=0);const i=await new dn(e,Gt.mainModule.abi,this.provider).readNonce(r,{blockTag:n});return ye.transaction.encodeNonce(r,i)}async wait(e,r,n=this.waitPollRate,s=5){var i=this;typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e));let o=!1;const a=async function(u,f){let d=0;for(;!o;){try{return await u()}catch(h){if(d++,s!==void 0&&d>=s)throw Se.error(`giving up after ${d} failed attempts${f?`: ${f}`:""}`,h),h;Se.warn(`attempt #${d} failed${f?`: ${f}`:""}`,h)}n>0&&await new Promise(h=>setTimeout(h,n))}throw new Error(`timed out after ${d} failed attempts${f?`: ${f}`:""}`)},c=async function(){let u=i.fromBlockLog;if(u<0&&(u=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number")+u),typeof e!="string")throw new Error("impossible");const f=e.replace("0x","");for(;!o;){const d=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number"),h=await a(()=>i.provider.getLogs({fromBlock:Math.max(0,u-i.deltaBlocksLog),toBlock:d,topics:["0x1f180c27086c7a39ea2a7b25239d1ab92348f07ca7bb59d1438fcf527568f881"]}),`unable to get NonceChange logs for blocks ${Math.max(0,u-i.deltaBlocksLog)} to ${d}`);u=d;const p=(await Promise.all(h.map(b=>a(()=>i.provider.getTransactionReceipt(b.transactionHash),`unable to get receipt for transaction ${b.transactionHash}`)))).find(b=>b==null?void 0:b.logs.find(v=>v.topics.length===0&&v.data.replace("0x","")===f||v.topics.length===1&&v.topics[0]==="0x3dbd1590ea96dd3253a91f24e64e3a502e1225d602a5731357bc12643070ccd7"&&v.data.length>=64&&v.data.replace("0x","").startsWith(f)));if(p){const b=await a(()=>i.provider.getTransaction(p.hash),`unable to get transaction ${p.hash}`);if(!b)throw new Error(`Transaction response not found for ${e}`);const v=b;return v.receipt=p,v}o||await new Promise(b=>setTimeout(b,n))}throw new Error(`Timeout waiting for transaction receipt ${e}`)};return r!==void 0?Promise.race([c(),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):c()}}function jce(t){return typeof t=="object"&&t.signer instanceof uo}class Fce extends RD{constructor(e){if(super(e instanceof uo?{provider:e.provider}:El({},e,{provider:e.signer.provider})),this.signer=void 0,this.txnOptions=void 0,this.signer=e instanceof uo?e:e.signer,!this.signer.provider)throw new Error("Signer must have a provider")}async getFeeOptions(e,...r){return{options:[]}}async getFeeOptionsRaw(e,r,n){return{options:[]}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}setTransactionOptions(e){this.txnOptions=e}async relay(e,r,n=!0){r!==void 0&&Se.warn("LocalRelayer doesn't accept fee quotes");const s=ye.transaction.encodeBundleExecData(e),i=this.signer.sendTransaction(El({to:e.entrypoint,data:s},this.txnOptions,{gasLimit:9e6}));if(n){const o=await i;return o.receipt=await o.wait(),o}else return i}}const Uce="v1",$ce="v0.4.1",Wce="1e27d0fd295aa5897878939595ef0c6adc54b1a3";let la=function(t){return t.UNKNOWN="UNKNOWN",t.DROPPED="DROPPED",t.QUEUED="QUEUED",t.SENT="SENT",t.SUCCEEDED="SUCCEEDED",t.PARTIALLY_FAILED="PARTIALLY_FAILED",t.FAILED="FAILED",t}({}),Vce=function(t){return t.SEND="SEND",t.RECEIVE="RECEIVE",t.BRIDGE_DEPOSIT="BRIDGE_DEPOSIT",t.BRIDGE_WITHDRAW="BRIDGE_WITHDRAW",t.BURN="BURN",t.UNKNOWN="UNKNOWN",t}({}),Hce=function(t){return t.UNKNOWN="UNKNOWN",t.ERC20_TOKEN="ERC20_TOKEN",t.ERC1155_TOKEN="ERC1155_TOKEN",t}({}),zce=function(t){return t.DESC="DESC",t.ASC="ASC",t}({});class ND{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Relayer/",this.ping=(n,s)=>this.fetch(this.url("Ping"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Je({},n,s)).then(i=>Ye(i).then(o=>({version:o.version})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Je({},n,s)).then(i=>Ye(i).then(o=>({data:o.data})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),Je({},n,s)).then(i=>Ye(i).then(o=>({chainID:o.chainID})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.sendMetaTxn=(n,s,i)=>this.fetch(this.url("SendMetaTxn"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,txnHash:a.txnHash})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNonce=(n,s,i)=>this.fetch(this.url("GetMetaTxnNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnReceipt=(n,s,i)=>this.fetch(this.url("GetMetaTxnReceipt"),Je(n,s,i)).then(o=>Ye(o).then(a=>({receipt:a.receipt})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.simulate=(n,s,i)=>this.fetch(this.url("Simulate"),Je(n,s,i)).then(o=>Ye(o).then(a=>({results:a.results})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateMetaTxnGasLimits=(n,s,i)=>this.fetch(this.url("UpdateMetaTxnGasLimits"),Je(n,s,i)).then(o=>Ye(o).then(a=>({payload:a.payload})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.feeTokens=(n,s)=>this.fetch(this.url("FeeTokens"),Je({},n,s)).then(i=>Ye(i).then(o=>({isFeeRequired:o.isFeeRequired,tokens:o.tokens})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.feeOptions=(n,s,i)=>this.fetch(this.url("FeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options,sponsored:a.sponsored,quote:a.quote})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNetworkFeeOptions=(n,s,i)=>this.fetch(this.url("GetMetaTxnNetworkFeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTransactions=(n,s,i)=>this.fetch(this.url("GetMetaTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.sentTransactions=(n,s,i)=>this.fetch(this.url("SentTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.pendingTransactions=(n,s,i)=>this.fetch(this.url("PendingTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTank=(n,s,i)=>this.fetch(this.url("GetGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasTank=(n,s,i)=>this.fetch(this.url("AddGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasTank=(n,s,i)=>this.fetch(this.url("UpdateGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasSponsor=(n,s,i)=>this.fetch(this.url("GetGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addressGasSponsors=(n,s,i)=>this.fetch(this.url("AddressGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasSponsors=(n,s,i)=>this.fetch(this.url("ListGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasSponsor=(n,s,i)=>this.fetch(this.url("AddGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasSponsor=(n,s,i)=>this.fetch(this.url("UpdateGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.removeGasSponsor=(n,s,i)=>this.fetch(this.url("RemoveGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.reportGasSponsorUsage=(n,s,i)=>this.fetch(this.url("ReportGasSponsorUsage"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsorUsage:a.gasSponsorUsage})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.nextGasTankBalanceAdjustmentNonce=(n,s,i)=>this.fetch(this.url("NextGasTankBalanceAdjustmentNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.adjustGasTankBalance=(n,s,i)=>this.fetch(this.url("AdjustGasTankBalance"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTankBalanceAdjustment=(n,s,i)=>this.fetch(this.url("GetGasTankBalanceAdjustment"),Je(n,s,i)).then(o=>Ye(o).then(a=>({adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasTankBalanceAdjustments=(n,s,i)=>this.fetch(this.url("ListGasTankBalanceAdjustments"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,adjustments:a.adjustments})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Je=(t={},e={},r=null)=>({method:"POST",headers:El({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Ye=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Ak.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(qce[n]||Bt).new(r)}return r});let Bt=class _D extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,_D.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},MD=class DD extends Bt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,DD.prototype)}},Qe=class BD extends Bt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BD.prototype)}},LD=class jD extends Bt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jD.prototype)}},FD=class UD extends Bt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UD.prototype)}},$D=class WD extends Bt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,WD.prototype)}},Ak=class VD extends Bt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VD.prototype)}},HD=class zD extends Bt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zD.prototype)}},GD=class qD extends Bt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qD.prototype)}},KD=class QD extends Bt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QD.prototype)}},JD=class YD extends Bt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YD.prototype)}},XD=class ZD extends Bt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZD.prototype)}},eB=class tB extends Bt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tB.prototype)}},rB=class nB extends Bt{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nB.prototype)}},sB=class iB extends Bt{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iB.prototype)}},oB=class aB extends Bt{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aB.prototype)}},cB=class lB extends Bt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lB.prototype)}},uB=class fB extends Bt{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fB.prototype)}},dB=class hB extends Bt{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hB.prototype)}},pB=class yB extends Bt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yB.prototype)}},Gce=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.MethodNotFound="MethodNotFound",t.Aborted="Aborted",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const qce={0:MD,[-1]:Qe,[-2]:LD,[-3]:FD,[-4]:$D,[-5]:Ak,[-6]:HD,[-7]:GD,[-8]:KD,[-9]:JD,[-10]:XD,1e3:eB,1001:rB,1003:sB,1005:oB,2001:cB,2002:uB,2003:dB,3e3:pB};var od=Object.freeze({__proto__:null,WebRPCVersion:Uce,WebRPCSchemaVersion:$ce,WebRPCSchemaHash:Wce,ETHTxnStatus:la,TransferType:Vce,FeeTokenType:Hce,SortOrder:zce,Relayer:ND,WebrpcError:Bt,WebrpcEndpointError:MD,WebrpcRequestFailedError:Qe,WebrpcBadRouteError:LD,WebrpcBadMethodError:FD,WebrpcBadRequestError:$D,WebrpcBadResponseError:Ak,WebrpcServerPanicError:HD,WebrpcInternalErrorError:GD,WebrpcClientDisconnectedError:KD,WebrpcStreamLostError:JD,WebrpcStreamFinishedError:XD,UnauthorizedError:eB,PermissionDeniedError:rB,MethodNotFoundError:sB,AbortedError:oB,InvalidArgumentError:cB,UnavailableError:uB,QueryFailedError:dB,NotFoundError:pB,errors:Gce});const Kce=[la.DROPPED,la.SUCCEEDED,la.PARTIALLY_FAILED,la.FAILED],Qce=[la.DROPPED,la.PARTIALLY_FAILED,la.FAILED];function Jce(t){return t.url!==void 0&&typeof t.url=="string"&&t.provider!==void 0&&t.provider instanceof lo}const Yce=globalThis.fetch;class vB{constructor(e){if(this.options=e,this.service=void 0,this.provider=void 0,this._fetch=(r,n)=>{const s={},{jwtAuth:i,projectAccessKey:o}=this.options;return i&&i.length>0&&(s.Authorization=`BEARER ${i}`),o&&o.length>0&&(s["X-Access-Key"]=o),n.headers=El({},n.headers,s),Yce(r,n)},this.service=new ND(e.url,this._fetch),e.provider instanceof lo)this.provider=e.provider;else{const{jwtAuth:r,projectAccessKey:n}=this.options,s=O0(e.provider.url,n,r);this.provider=new zt(s,void 0,{staticNetwork:!0})}}async waitReceipt(e,r=1e3,n=5,s){typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e)),Se.info(`[rpc-relayer/waitReceipt] waiting for ${e}`);let i=0;for(;s===void 0||!s();){try{const{receipt:o}=await this.service.getMetaTxnReceipt({metaTxID:e});if(o&&o.txnReceipt&&o.txnReceipt!=="null"&&Kce.includes(o.status))return{receipt:o}}catch(o){if(i++,i===n)throw o}(s===void 0||!s())&&await new Promise(o=>setTimeout(o,r))}throw new Error(`Cancelled waiting for transaction receipt ${e}`)}async simulate(e,...r){const s=Kt.defaultAbiCoder().encode([ye.transaction.MetaTransactionsType],[ye.transaction.sequenceTxAbiEncode(r)]);return(await this.service.simulate({wallet:e,transactions:s})).results}async getFeeOptions(e,...r){const n=await this.service.feeTokens();if(n.isFeeRequired){const s=n.tokens.map(c=>c.symbol).join(", ");Se.info(`[rpc-relayer/getFeeOptions] relayer fees are required, accepted tokens are ${s}`);const i=await this.getNonce(e);if(!this.provider)throw Se.warn("[rpc-relayer/getFeeOptions] provider not set, needed for stub signature"),new Error("provider is not set");const{options:o,quote:a}=await this.service.feeOptions({wallet:e,to:e,data:ye.transaction.encodeBundleExecData({entrypoint:e,transactions:r,nonce:i})});return Se.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(o,Ts)}`),{options:o,quote:{_tag:"FeeQuote",_quote:a}}}else return Se.info("[rpc-relayer/getFeeOptions] relayer fees are not required"),{options:[]}}async getFeeOptionsRaw(e,r,n){const{options:s,quote:i}=await this.service.feeOptions({wallet:e,to:e,data:H(r),simulate:n==null?void 0:n.simulate});return{options:s,quote:{_tag:"FeeQuote",_quote:i}}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}async getNonce(e,r){Se.info(`[rpc-relayer/getNonce] get nonce for wallet ${e} space: ${r}`);const n=r!==void 0?el(BigInt(r)):void 0,s=await this.service.getMetaTxnNonce({walletContractAddress:e,space:n}),i=BigInt(s.nonce),[o,a]=ye.transaction.decodeNonce(i);return Se.info(`[rpc-relayer/getNonce] got next nonce for wallet ${e} ${a} space: ${o}`),i}async relay(e,r,n=!0){var s=this;Se.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(e,Ts)} with quote ${JSON.stringify(r,Ts)}`);let i;if(r!==void 0&&(typeof r._quote=="string"?i=r._quote:Se.warn("[rpc-relayer/relay] ignoring invalid fee quote")),!this.provider)throw Se.warn("[rpc-relayer/relay] provider not set, failed relay"),new Error("provider is not set");const o=ye.transaction.encodeBundleExecData(e),a=await this.service.sendMetaTxn({call:{walletAddress:e.intent.wallet,contract:e.entrypoint,input:o},quote:i});if(Se.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(a,Ts)}`),n)return this.wait(e.intent.id);{const c={hash:e.intent.id,confirmations:0,from:e.intent.wallet,wait:u=>Promise.reject(new Error("impossible"))},l=async function(f){var d;if(!s.provider)throw new Error("cannot wait for receipt, relayer has no provider set");const h=await s.wait(e.intent.id),y=(d=h.receipt)==null?void 0:d.transactionHash;if(!y)throw new Error("cannot wait for receipt, unknown native transaction hash");return Object.assign(c,h),s.provider.waitForTransaction(y,f)};return c.wait=l,c}}async wait(e,r,n=1e3,s=5){var i=this;let o=!1;const{receipt:a}=await(r!==void 0?Promise.race([this.waitReceipt(e,n,s,()=>o),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):this.waitReceipt(e,n,s));if(!a.txnReceipt||Qce.includes(a.status))throw new Xce(a);const c=JSON.parse(a.txnReceipt);return{blockHash:c.blockHash,blockNumber:Number(c.blockNumber),confirmations:1,from:typeof e=="string"?void 0:e.intent.wallet,hash:c.transactionHash,raw:a.txnReceipt,receipt:c,wait:async function(l){return i.provider.waitForTransaction(c.transactionHash,l)}}}}class Xce{constructor(e){this.receipt=e}}function gB(t){return typeof t=="object"&&typeof t.simulate=="function"&&typeof t.getFeeOptions=="function"&&typeof t.gasRefundOptions=="function"&&typeof t.getNonce=="function"&&typeof t.relay=="function"&&typeof t.wait=="function"}const Zce=Object.freeze(Object.defineProperty({__proto__:null,LocalRelayer:Fce,ProviderRelayer:RD,ProviderRelayerDefaults:OD,RpcRelayer:vB,RpcRelayerProto:od,isLocalRelayerOptions:jce,isProviderRelayerOptions:Lce,isRelayer:gB,isRpcRelayerOptions:Jce,proto:od},Symbol.toStringTag,{value:"Module"}));function mB(t){return t.getAddress!==void 0&&t.buildDeployTransaction!==void 0&&t.predecorateSignedTransactions!==void 0&&t.decorateTransactions!==void 0&&t.sign!==void 0&&t.notifyStatusChange!==void 0}class xB{constructor(e,r=!0){this.signer=e,this.eoa=r}getAddress(){return this.signer.getAddress()}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}sign(e){return this.signer.signMessage(e)}notifyStatusChange(e,r,n){}suffix(){return new Uint8Array([2])}}var j2=Object.freeze({__proto__:null,isSapientSigner:mB,SignerWrapper:xB});let ua=function(t){return t[t.INITIAL=0]="INITIAL",t[t.SIGNING=1]="SIGNING",t[t.SIGNED=2]="SIGNED",t[t.ERROR=3]="ERROR",t}({});function bB(t){return t===void 0||t.state===ua.INITIAL||t.state===ua.SIGNING}class em{constructor(e,r=em.randomTag()){this.tag=r,this.observers=[],this.signers=[],this.count=0,this.setSigners(e)}static randomTag(){return`default-${H(Rr(8)).slice(2)}`}pullId(){return`${this.tag}-${this.count++}`}setSigners(e){this.signers=e.map(r=>mB(r)?r:new xB(r))}async getSigners(){return Promise.all(this.signers.map(async function(e){return e.getAddress()}))}subscribe(e){return this.observers.push(e),()=>{this.observers=this.observers.filter(r=>r!==e)}}async notifyObservers(e,r,n){await Promise.all([...this.signers.map(async function(s){return s.notifyStatusChange(e,r,n)}),...this.observers.map(async function(s){return s(r,n)})])}async buildDeployTransaction(e){let r;for(const n of this.signers){const s=await n.buildDeployTransaction(e);r===void 0?r=s:s!=null&&s.transactions&&(r.transactions=s.transactions.concat(r.transactions))}return r}async predecorateSignedTransactions(e){const r=[];for(const n of this.signers)r.push(...await n.predecorateSignedTransactions(e??{}));return r}async decorateTransactions(e,r){for(const n of this.signers)e=await n.decorateTransactions(e,r??{});return e}signMessage(e){var r=this;const n=this.pullId();return new Promise(async function(s){const{message:i,metadata:o,callback:a,candidates:c}=e,l={ended:!1,message:i,signers:{}};let u=o??{};const f=p=>{u=p,r.notifyObservers(n,l,u)},d=()=>{try{r.notifyObservers(n,l,u);const p=Object.entries(l.signers).filter(([b,v])=>bB(v));if(a&&a(l,f)||p.length===0){l.ended=!0,s(l),r.notifyObservers(n,l,u);return}}catch(p){console.error("Error while notifying observers",p)}};let h=r.signers;if(c){const p=await Promise.all(r.signers.map(async function(b){return b.getAddress()}));h=r.signers.filter((b,v)=>c.includes(p[v]))}const y=await Promise.allSettled(h.map(async function(p){const b=await p.getAddress();l.signers[b]={state:ua.SIGNING,request:p.sign(i,o??{}).then(v=>{const g=p.suffix();return l.signers[b]={state:ua.SIGNED,signature:v,suffix:g},d(),v}).catch(v=>{throw l.signers[b]={state:ua.ERROR,error:v},d(),v})}}));for(let p=0;pPt(e))):Pt(t)}const y3=t=>{const e=new Map;for(const r of Object.keys(t.signers)){const n=t.signers[r];if(n.state===ua.SIGNED){const s=Q(n.suffix),i=De(["bytes","bytes"],[n.signature,s]);e.set(r,{signature:i,isDynamic:s.length!==1||s[0]!==2})}}return e};class Lu extends uo{constructor(e){var r;if(BigInt(e.chainId)===0n&&!e.coders.signature.supportsNoChainId)throw new Error(`Sequence version ${e.config.version} doesn't support chainId 0`);super((r=e.provider)!=null?r:null),this.context=void 0,this.config=void 0,this.address=void 0,this.chainId=void 0,this.relayer=void 0,this.coders=void 0,this.orchestrator=void 0,this._reader=void 0,this.context=e.context,this.config=e.config,this.orchestrator=e.orchestrator,this.coders=e.coders,this.address=e.address,this.chainId=e.chainId,this.relayer=e.relayer,this._reader=e.reader}static newWallet(e){const r=ye.context.addressOf(e.context,e.coders.config.imageHashOf(e.config));return new Lu(Do({},e,{address:r}))}reader(){if(this._reader)return this._reader;if(!this.provider)throw new Error("Wallet status provider requires a provider");return new ye.reader.OnChainReader(this.provider)}setConfig(e){this.config=e}setOrchestrator(e){this.orchestrator=e}setAddress(e){this.address=e}getSigners(){return this.orchestrator.getSigners()}async getAddress(){return this.address}async decorateTransactions(e){const r=await this.orchestrator.decorateTransactions(e);if(await this.reader().isDeployed(this.address))return r;const n=[{to:r.entrypoint,data:ye.transaction.encodeBundleExecData(r),revertOnError:!0}],s=await this.buildDeployTransaction();return s&&n.unshift(...s.transactions),{entrypoint:this.context.guestModule,chainId:this.chainId,intent:r.intent,transactions:n}}async buildDeployTransaction(e){if(e!=null&&e.ignoreDeployed&&await this.reader().isDeployed(this.address))return;const r=this.coders.config.imageHashOf(this.config);if(ye.context.addressOf(this.context,r)!==this.address)throw new Error(`First address of config ${r} doesn't match wallet address ${this.address}`);const n=Lu.buildDeployTransaction(this.context,r);if(e!=null&&e.includeChildren){const s=await this.orchestrator.buildDeployTransaction(e);s&&(n.transactions=s.transactions.concat(n.transactions))}return n}async deploy(e){const r=await this.buildDeployTransaction(e);if(r!==void 0){if(!this.relayer)throw new Error("Wallet deploy requires a relayer");return this.relayer.relay(Do({},r,{chainId:this.chainId,intent:{id:H(Rr(32)),wallet:this.address}}))}}static buildDeployTransaction(e,r){const n=new pt(Gt.factory.abi);return{entrypoint:e.guestModule,transactions:[{to:e.factory,data:n.encodeFunctionData(n.getFunction("deploy"),[e.mainModule,r]),gasLimit:1e5,delegateCall:!1,revertOnError:!0,value:0}]}}async buildUpdateConfigurationTransaction(e){if(this.coders.config.update.isKindUsed){const r=await this.reader().implementation(this.address),n=r&&r===this.context.mainModuleUpgradable;return this.coders.config.update.buildTransaction(this.address,e,this.context,n?"later":"first")}return this.coders.config.update.buildTransaction(this.address,e,this.context)}async getNonce(e=0){const r=await this.reader().nonce(this.address,e);if(r===void 0)throw new Error("Unable to determine nonce");return Number(r)}async signDigest(e,r){const n=S2(this.address,this.chainId,e);if(this.coders.config.hasSubdigest(this.config,n))return this.coders.signature.encodeSigners(this.config,new Map,[n],this.chainId).encoded;const s=Do({},r,{digest:e,chainId:this.chainId,address:this.address,config:this.config}),i=Q(n),o=await this.orchestrator.signMessage({candidates:this.coders.config.signersOf(this.config).map(c=>c.address),message:i,metadata:s,callback:(c,l)=>{const u=y3(c),f=Do({},s,{parts:u});return l(f),this.coders.signature.hasEnoughSigningPower(this.config,u)}}),a=y3(o);return this.coders.signature.encodeSigners(this.config,a,[],this.chainId).encoded}signMessage(e){return this.signDigest(_e(e),{message:e})}signTypedData(e,r,n){const s=kd({domain:e,types:r,message:n});return this.signDigest(s)}signTransactionBundle(e){if(e.entrypoint!==this.address)throw new Error(`Invalid entrypoint: ${e.entrypoint} !== ${this.address}`);return this.signTransactions(e.transactions,e.nonce)}async fetchNonceOrSpace(e){let r;if(e&&e.space!==void 0)r=BigInt(e.space);else{if(e===void 0)return this.randomNonce();if(e&&e.serial===!0)r=0;else return e}const n=await this.reader().nonce(this.address,r);if(n===void 0)throw new Error("Unable to determine nonce");return ye.transaction.encodeNonce(r,n)}randomNonce(){const e=BigInt(H(Rr(12)));return ye.transaction.encodeNonce(e,0)}async signTransactions(e,r,n){const s=await p3(e),i=ye.transaction.fromTransactionish(this.address,s);i.length===0&&i.push({to:this.address,data:"0x",value:0,gasLimit:0,delegateCall:!1,revertOnError:!0});const o=await this.fetchNonceOrSpace(r),a=ye.transaction.digestOfTransactions(o,i),c=Do({digest:a,transactions:i},n),l=await this.signDigest(a,c);return{intent:{id:S2(this.address,this.chainId,a),wallet:this.address},chainId:this.chainId,transactions:i,entrypoint:this.address,nonce:o,signature:l}}async sendSignedTransaction(e,r){if(!this.relayer)throw new Error("Wallet sendTransaction requires a relayer");return this.relayer.relay(e,r)}async sendTransaction(e,r){let n;(r==null?void 0:r.nonce)!==void 0?n=r.nonce:r!=null&&r.serial?n={serial:!0}:n=this.randomNonce();const s=await this.signTransactions(e,n),i=await this.decorateTransactions(s);return this.sendSignedTransaction(i,r==null?void 0:r.quote)}async fillGasLimits(e){const r=await p3(e),n=ye.transaction.fromTransactionish(this.address,r),s=this.relayer;if(!s)throw new Error("Wallet fillGasLimits requires a relayer");const i=await s.simulate(this.address,...n);return n.map((o,a)=>{const c=o.gasLimit?Number(o.gasLimit):i[a].gasLimit;return Do({},o,i[a],{gasLimit:c})})}connect(e,r){return new Lu({coders:this.coders,context:this.context,config:this.config,chainId:this.chainId,address:this.address,orchestrator:this.orchestrator,reader:this._reader,provider:e,relayer:r??this.relayer})}signTransaction(e){throw new Error("Method not implemented.")}}function Ks(){return Ks=Object.assign?Object.assign.bind():function(t){for(var e=1;e=BigInt(s.value))return s}else if(s.token.contractAddress&&s.token.type===od.FeeTokenType.ERC20_TOKEN&&await new dn(s.token.contractAddress,n,this.provider).balanceOf(this.account.address)>=BigInt(s.value))return s;throw new Error("No fee option available - not enough balance")}async sendTransaction(e,r){var n,s,i,o,a;const c=await this.account.prepareTransactions({txs:e,chainId:this.chainId,stubSignatureOverrides:(n=(s=this.options)==null?void 0:s.stubSignatureOverrides)!=null?n:new Map,simulateForFeeOptions:r==null?void 0:r.simulateForFeeOptions}),u=await((i=(o=this.options)==null?void 0:o.selectFee)!=null?i:this.defaultSelectFee.bind(this))(e,c.feeOptions),f=[...c.transactions,...tle(u)];return this.account.sendTransaction(f,this.chainId,c.feeQuote,void 0,void 0,((a=this.options)==null?void 0:a.nonceSpace)!==void 0?{nonceSpace:this.options.nonceSpace}:void 0)}getBalance(e){return this.provider.getBalance(this.account.address,e)}call(e,r){return this.provider.call(Ks({},e,{blockTag:r}))}async resolveName(e){const r=await this.provider.resolveName(e);if(!r)throw new Error(`Could not resolve name ${e}`);return r}connect(e){throw new Error("Method not implemented.")}signTransaction(e){throw new Error("Method not implemented.")}getTransactionCount(e){throw new Error("Method not implemented.")}estimateGas(e){throw new Error("Method not implemented.")}getChainId(){return Promise.resolve(Number(this.chainId))}getGasPrice(){throw new Error("Method not implemented.")}getFeeData(){throw new Error("Method not implemented.")}getNonce(e){throw new Error("Method not implemented.")}populateCall(e){throw new Error("Method not implemented.")}checkTransaction(e){throw new Error("Method not implemented.")}async populateTransaction(e){throw new Error("Method not implemented.")}_checkProvider(e){throw new Error("Method not implemented.")}}class nle{async isDeployed(e){return!1}async implementation(e){}async imageHash(e){}async nonce(e,r){return 0n}async isValidSignature(e,r,n){throw new Error("Method not supported.")}}class Ki{constructor(e){this.address=void 0,this.networks=void 0,this.tracker=void 0,this.contexts=void 0,this.migrator=void 0,this.migrations=void 0,this.orchestrator=void 0,this.jwt=void 0,this.projectAccessKey=void 0,this.address=Te(e.address),this.contexts=e.contexts,this.tracker=e.tracker,this.networks=e.networks,this.orchestrator=e.orchestrator,this.jwt=e.jwt,this.projectAccessKey=e.projectAccessKey,this.migrations=e.migrations||L2.DefaultMigrations,this.migrator=new B2.Migrator(e.tracker,this.migrations,this.contexts)}getSigner(e,r){return new rle(this,e,r)}static async new(e){var r;const s=new B2.Migrator(e.tracker,(r=e.migrations)!=null?r:L2.DefaultMigrations,e.contexts).lastMigration(),i=s.configCoder,o=i.fromSimple(e.config),a=i.imageHashOf(o),c=e.contexts[s.version],l=ye.context.addressOf(c,a);return await e.tracker.saveCounterfactualWallet({config:o,context:Object.values(e.contexts)}),new Ki({address:l,tracker:e.tracker,contexts:e.contexts,networks:e.networks,orchestrator:e.orchestrator,migrations:e.migrations,projectAccessKey:e.projectAccessKey})}getAddress(){return Promise.resolve(this.address)}get version(){return this.migrator.lastMigration().version}get coders(){const e=this.migrator.lastMigration();return{signature:e.signatureCoder,config:e.configCoder}}network(e){const r=BigInt(e),n=this.networks.find(s=>r===BigInt(s.chainId));if(!n)throw new Error(`Network not found for chainId ${e}`);return n}providerFor(e){const r=this.network(e);if(!r.provider&&!r.rpcUrl)throw new Error(`Provider not found for chainId ${e}`);const n=new ot(r.name,r.chainId);return r.provider||new zt(O0(r.rpcUrl,this.projectAccessKey,this.jwt),n,{staticNetwork:n})}reader(e){return BigInt(e)===0n?new nle:new ye.reader.OnChainReader(this.providerFor(e))}relayer(e){const r=this.network(e);if(!r.relayer)throw new Error(`Relayer not found for chainId ${e}`);return gB(r.relayer)?r.relayer:new vB(Ks({},r.relayer,this.projectAccessKey?{projectAccessKey:this.projectAccessKey}:{jwtAuth:this.jwt}))}setOrchestrator(e){this.orchestrator=e}setJwt(e){this.jwt=e}contextFor(e){const r=this.contexts[e];if(!r)throw new Error(`Context not found for version ${e}`);return r}walletForStatus(e,r){const n=dr.coderFor(r.version);return this.walletFor(e,this.contextFor(r.version),r.config,n)}walletFor(e,r,n,s){const i=BigInt(e)===0n;return new Lu({config:n,context:r,chainId:e,coders:s,relayer:i?void 0:this.relayer(e),address:this.address,orchestrator:this.orchestrator,reader:this.reader(e)})}async status(e,r=!1){var n=this;const s=this.reader(e).isDeployed(this.address),i=this.tracker.imageHashOfCounterfactualWallet({wallet:this.address}).then(S=>{if(!S)throw new Error(`Counterfactual imageHash not found for wallet ${this.address}`);return S}),o=i.then(S=>TD.counterfactualVersion(this.address,S.imageHash,Object.values(this.contexts))),a=async function(){if(!await s)return o;const I=await n.reader(e).implementation(n.address);if(!I)throw new Error(`Implementation not found for wallet ${n.address}`);const R=Object.values(n.contexts);for(let _=0;_0?p[p.length-1].nextImageHash:d,v=await this.tracker.configOfImageHash({imageHash:b});if(!v)throw new Error(`Config not found for imageHash ${b}`);const g=await s,x=await i,k=dr.coderFor(h).config.checkpointOf(v);return{original:Ks({},x,{version:await o}),onChain:{imageHash:f,config:await l,version:u,deployed:g},fullyMigrated:h===this.version,signedMigrations:y,version:h,presignedConfigurations:p,imageHash:b,config:v,checkpoint:k,canOnchainValidate:u===this.version&&g}}mustBeFullyMigrated(e){if(!e.fullyMigrated)throw new Error(`Wallet ${this.address} is not fully migrated`)}async predecorateSignedTransactions(e,r){const n=await this.orchestrator.predecorateSignedTransactions({chainId:r}),s=await this.predecorateTransactions([],e,r);return ye.transaction.fromTransactionish(this.address,s).length>0&&n.push(await this.signTransactions(s,r)),n}async predecorateTransactions(e,r,n){if(r.onChain.imageHash!==r.imageHash){const i=await this.walletForStatus(n,r).buildUpdateConfigurationTransaction(r.config);return[Array.isArray(e)?e:[e],i.transactions].flat()}return e}async decorateTransactions(e,r,n){var s,i;if(!Array.isArray(e))return this.decorateTransactions([e],r,n);n=(s=n)!=null?s:e[0].chainId;const o=await this.buildBootstrapTransactions(r,n),a=o.transactions.length>0;if(!a&&e.length===1)return e[0];const{entrypoint:c}=a?o:e[0],l={entrypoint:c,chainId:n,intent:(i=e[0])==null?void 0:i.intent,transactions:[...o.transactions,...e.map(u=>({to:u.entrypoint,data:ye.transaction.encodeBundleExecData(u),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}))]};if(!r.onChain.deployed){const u=ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,n,l.transactions);l.intent===void 0?l.intent={id:u,wallet:this.address}:l.intent.id=u}return l}async decorateSignature(e,r){if(!r.presignedConfigurations||r.presignedConfigurations.length===0)return e;const n=this.coders.signature,s=r.presignedConfigurations.map(o=>o.signature),i=n.chainSignatures(e,s);return n.trim(i)}async publishWitness(){const e=Qr(`This is a Sequence account woo! ${Date.now()}`),r=await this.signDigest(e,0,!1),n=this.coders.signature.decode(r),s=this.coders.signature.signaturesOfDecoded(n);return this.tracker.saveWitnesses({wallet:this.address,digest:e,chainId:0,signatures:s})}async signDigest(e,r,n=!0,s="ignore",i){const o=BigInt(r)===0n?this.networks[0].chainId:r,a=await this.status(o);if(this.mustBeFullyMigrated(a),!a.canOnchainValidate&&s==="throw")throw new Error("Wallet cannot validate onchain");const l=await this.walletForStatus(r,a).signDigest(e,i),u=n?this.decorateSignature(l,a):l;if(!a.canOnchainValidate)switch(s){case"ignore":return u;case"eip6492":return this.buildEIP6492Signature(await u,a,r)}return u}buildOnChainSignature(e){const r=ye.signature.subdigestOf({digest:H(e),chainId:0,address:this.address}),n=H(r),s=this.coders.config.fromSimple({threshold:32768,checkpoint:0,signers:[],subdigests:[n]}),i=new pt(Gt.mainModule.abi),o={entrypoint:this.address,transactions:[{to:this.address,data:i.encodeFunctionData("setExtraImageHash",[this.coders.config.imageHashOf(s),"57896044618658097711785492504343953926634992332820282019728792003956564819968"]),gasLimit:25e4}]};this.tracker.saveWalletConfig({config:s});const a=this.coders.signature.encodeSigners(s,new Map,[n],0).encoded;return{bundle:o,signature:a}}async buildEIP6492Signature(e,r,n){const s=await this.buildBootstrapTransactions(r,n);if(s.transactions.length===0)throw new Error("Cannot build EIP-6492 signature without bootstrap transactions");const i=Kt.defaultAbiCoder().encode(["address","bytes","bytes"],[s.entrypoint,ye.transaction.encodeBundleExecData(s),e]);return De(["bytes","bytes32"],[i,ye.EIP6492.EIP_6492_SUFFIX])}async editConfig(e){const r=await this.status(0).then(s=>s.config),n=this.coders.config.editConfig(r,Ks({},e,{checkpoint:this.coders.config.checkpointOf(r)+1n}));return this.updateConfig(n)}async updateConfig(e){if(!this.coders.config.isWalletConfig(e))throw new Error(`Invalid config for wallet ${this.address}`);const r=this.coders.config.imageHashOf(e),n=this.coders.signature.hashSetImageHash(r),s=await this.signDigest(n,0,!1);await this.tracker.savePresignedConfiguration({wallet:this.address,nextConfig:e,signature:s});const i=await this.tracker.configOfImageHash({imageHash:r,noCache:!0});if(!i||this.coders.config.imageHashOf(i)!==r)throw Error(`Reverse lookup failed for imageHash ${r}`)}async buildBootstrapTransactions(e,r){var n;const s=await this.orchestrator.buildDeployTransaction({chainId:r}),i=(n=s==null?void 0:s.transactions)!=null?n:[];if(!e.onChain.deployed){const c=Lu.buildDeployTransaction(e.original.context,e.original.imageHash);i.push(...c.transactions)}i.push(...e.signedMigrations.map(c=>({to:c.tx.entrypoint,data:ye.transaction.encodeBundleExecData(c.tx),value:0,gasLimit:0,revertOnError:!0,delegateCall:!1})));const o=e.signedMigrations.length>0?e.signedMigrations[0].tx.intent.id:ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,r,i),{guestModule:a}=this.contextFor(e.version);return{entrypoint:a,transactions:i,chainId:r,intent:{id:o,wallet:this.address}}}async bootstrapTransactions(e,r){const n=r||await this.status(e);return this.buildBootstrapTransactions(n,e)}async doBootstrap(e,r,n){const s=await this.bootstrapTransactions(e,n);return this.relayer(e).relay(Ks({},s,{chainId:e}),r)}signMessage(e,r,n="ignore"){return this.signDigest(_e(e),r,!0,n)}async signTransactions(e,r,n,s){const i=n||await this.status(r);this.mustBeFullyMigrated(i);const o=this.walletForStatus(r,i),a={address:this.address,digest:"",chainId:r,config:{version:this.version},decorate:!0,cantValidateBehavior:"ignore"},c=s!=null&&s.serial?{serial:!0}:(s==null?void 0:s.nonceSpace)!==void 0?{space:s.nonceSpace}:void 0,l=await o.signTransactions(e,c,a);return Ks({},l,{signature:await this.decorateSignature(l.signature,i)})}async signMigrations(e,r){const n=await this.status(e);if(n.fullyMigrated)return!1;const s=this.walletForStatus(e,n),i=r(s.config),o=await this.migrator.signNextMigration(this.address,n.version,s,i);if(!o)return!1;await this.tracker.saveWalletConfig({config:i});const a=dr.coderFor(i.version).config,c=a.imageHashOf(i),l=await this.tracker.configOfImageHash({imageHash:c,noCache:!0});if(!l||a.imageHashOf(l)!==c)throw Error(`Reverse lookup failed for imageHash ${c}`);return await this.tracker.saveMigration(this.address,o,this.contexts),!0}async signAllMigrations(e){var r=this;const n=[];return{signedMigrations:(await Promise.all(this.networks.map(async function(o){try{return await r.signMigrations(o.chainId,e)}catch(a){return console.warn(`Failed to sign migrations for chain ${o.chainId}`,a),n.push(o.chainId),null}}))).filter(o=>o!==null),failedChains:n}}async isMigratedAllChains(){var e=this;const r=[];return{migratedAllChains:(await Promise.all(this.networks.map(async function(i){try{return await e.status(i.chainId)}catch(o){return r.push(i.chainId),console.warn(`Failed to get status for chain ${i.chainId}`,o),{fullyMigrated:!0}}}))).every(i=>i.fullyMigrated),failedChains:r}}async sendSignedTransactions(e,r,n,s,i){if(!Array.isArray(e))return this.sendSignedTransactions([e],r,n,s,i);const o=s||await this.status(r);this.mustBeFullyMigrated(o);const a=await this.decorateTransactions(e,o,r);return i==null||i(a),this.relayer(r).relay(a,n)}async fillGasLimits(e,r,n){return this.walletForStatus(r,n||await this.status(r)).fillGasLimits(e)}async gasRefundQuotes(e,r,n,s,i){const o=s||await this.status(r),a=this.walletForStatus(r,o),c=await this.predecorateTransactions(e,o,r),l=ye.transaction.fromTransactionish(this.address,c),u=a.coders.config.buildStubSignature(a.config,n),f=H(Rr(32)),d={chainId:r,intent:{id:f,wallet:this.address},signature:u,transactions:l,entrypoint:this.address,nonce:0},h=await this.decorateTransactions(d,o),y=ye.transaction.encodeBundleExecData(h),p=await this.relayer(r).getFeeOptionsRaw(h.entrypoint,y,i);return Ks({},p,{decorated:h})}async prepareTransactions(e){const r=await this.status(e.chainId),n=await this.fillGasLimits(e.txs,e.chainId,r),s=await this.gasRefundQuotes(n,e.chainId,e.stubSignatureOverrides,r,{simulate:e.simulateForFeeOptions}),i=ye.transaction.unwind(this.address,s.decorated.transactions);return{transactions:n,flatDecorated:i,feeOptions:s.options,feeQuote:s.quote}}async sendTransaction(e,r,n,s=!1,i,o){const a=await this.status(r),c=s?e:await this.predecorateTransactions(e,a,r),u=ye.transaction.fromTransactionish(this.address,c).length>0?await this.signTransactions(c,r,void 0,o):void 0,f=await this.orchestrator.predecorateSignedTransactions({chainId:r}),d=[];return u!==void 0&&u.transactions.length>0&&d.push(u),d.push(...f.filter(h=>h.transactions.length>0)),this.sendSignedTransactions(d,r,n,void 0,i)}async signTypedData(e,r,n,s,i="ignore"){const o=kd({domain:e,types:r,message:n});return this.signDigest(o,s,!0,i)}async getSigners(){var e=this;const r=n=>n.length?n[n.length-1]:void 0;return(await Promise.all(this.networks.map(async function({chainId:n,name:s}){try{var i;const o=await e.status(n);let a=(i=r(o.presignedConfigurations))==null?void 0:i.nextImageHash;if(!a&&o.onChain.version!==o.version){const f=r(o.signedMigrations);if(f){const{toVersion:d,toConfig:h}=f;a=dr.genericCoderFor(d).config.imageHashOf(h)}}a||(a=o.onChain.imageHash);const c=await e.tracker.configOfImageHash({imageHash:a});if(!c)throw new Error(`unable to find config for image hash ${a}`);return dr.genericCoderFor(c.version).config.signersOf(c).map(f=>Ks({},f,{network:n}))}catch(o){return console.warn(`unable to get signers on network ${n} ${s}`,o),[]}}))).flat()}async getAllSigners(){var e=this;const r=[];return await Promise.all(this.networks.map(async function(n){const s=n.chainId,i=await e.status(s,!0),o=[i.onChain.imageHash,...i.onChain.version!==i.version?i.signedMigrations.map(a=>dr.coderFor(a.toVersion).config.imageHashOf(a.toConfig)):[],...i.presignedConfigurations.map(a=>a.nextImageHash)];return Promise.all(o.map(async function(a,c){const l=c===o.length-1,u=await e.tracker.configOfImageHash({imageHash:a});if(!u){console.warn(`AllSigners may be incomplete, config not found for imageHash ${a}`);return}dr.genericCoderFor(u.version).config.signersOf(u).forEach(h=>{const y=r.find(p=>p.address===h.address&&p.network===s);if(y&&l&&y.flaggedForRemoval){y.flaggedForRemoval=!1;return}y||r.push({address:h.address,weight:h.weight,network:s,flaggedForRemoval:!l})})}))})),r}}function sle(t){return t instanceof Ki}const ile=Object.freeze(Object.defineProperty({__proto__:null,Account:Ki,isAccount:sle},Symbol.toStringTag,{value:"Module"}));function kv(){return kv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),at({},n,s)).then(i=>vt(i).then(o=>({version:o.version})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),at({},n,s)).then(i=>vt(i).then(o=>({chainID:o.chainID})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getEtherBalance=(n,s,i)=>this.fetch(this.url("GetEtherBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({balance:a.balance})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,s,i)=>this.fetch(this.url("GetTokenBalances"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,s,i)=>this.fetch(this.url("GetTokenSupplies"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,s,i)=>this.fetch(this.url("GetTokenSuppliesMap"),at(n,s,i)).then(o=>vt(o).then(a=>({supplies:a.supplies})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,s,i)=>this.fetch(this.url("GetBalanceUpdates"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,s,i)=>this.fetch(this.url("GetTransactionHistory"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,s,i)=>this.fetch(this.url("SyncBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,s,i)=>this.fetch(this.url("FetchTransactionReceipt"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,s,i)=>this.fetch(this.url("GetOrderbookOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,s,i)=>this.fetch(this.url("GetTopOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,s,i)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,s,i)=>this.fetch(this.url("GetAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({listeners:a.listeners})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,s,i)=>this.fetch(this.url("GetWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,s,i)=>this.fetch(this.url("AddWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,s,i)=>this.fetch(this.url("UpdateWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,s,i)=>this.fetch(this.url("RemoveWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.toggleWebhookListener=(n,s,i)=>this.fetch(this.url("ToggleWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({webhookListener:a.webhookListener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.pauseAllWebhookListeners=(n,s,i)=>this.fetch(this.url("PauseAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.resumeAllWebhookListeners=(n,s,i)=>this.fetch(this.url("ResumeAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeReceipts"),at(n,s.headers,s.signal)).then(async function(o){await Vx(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeEvents=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeEvents"),at(n,s.headers,s.signal)).then(async function(o){await Vx(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeBalanceUpdates=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeBalanceUpdates"),at(n,s.headers,s.signal)).then(async function(o){await Vx(o,s,i)},o=>{s.onError(o,i)});return i()},this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Vx=async(t,e,r)=>{const{onMessage:n,onOpen:s,onClose:i,onError:o}=e;if(!t.ok){try{await vt(t)}catch(h){o(h,r)}return}if(!t.body){o(N0.new({status:t.status,cause:"Invalid response, missing body"}),r);return}s&&s();const a=t.body.getReader(),c=new TextDecoder;let l="",u=Date.now();const f=11*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-u>f)throw jh.new({cause:"Stream timed out"})},f);;){let h,y;try{({value:h,done:y}=await a.read()),u=Date.now(),l+=c.decode(h,{stream:!0})}catch(b){let v="";b instanceof Error&&(v=b.message),b instanceof DOMException&&b.name==="AbortError"?o(ct.new({message:"AbortError",cause:`AbortError: ${v}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(jh.new({cause:`reader.read(): ${v}`}),r);return}let p=l.split(` -`);for(let b=0;b({method:"POST",headers:kv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),vt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),N0.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(dL[n]||it).new(r)}return r});let it=class EB extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,EB.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},CB=class kB extends it{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,kB.prototype)}},ct=class AB extends it{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,AB.prototype)}},SB=class TB extends it{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,TB.prototype)}},PB=class IB extends it{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,IB.prototype)}},OB=class RB extends it{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,RB.prototype)}},N0=class NB extends it{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NB.prototype)}},_B=class MB extends it{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MB.prototype)}},DB=class BB extends it{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BB.prototype)}},LB=class jB extends it{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jB.prototype)}},jh=class FB extends it{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,FB.prototype)}},UB=class $B extends it{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$B.prototype)}},WB=class VB extends it{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VB.prototype)}},HB=class zB extends it{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zB.prototype)}},GB=class qB extends it{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qB.prototype)}},KB=class QB extends it{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QB.prototype)}},JB=class YB extends it{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YB.prototype)}},XB=class ZB extends it{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZB.prototype)}},eL=class tL extends it{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tL.prototype)}},rL=class nL extends it{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nL.prototype)}},sL=class iL extends it{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iL.prototype)}},oL=class aL extends it{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aL.prototype)}};class tm extends it{constructor(e="ResourceExhausted",r=2004,n="Resource exhausted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tm.prototype)}}let cL=class lL extends it{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lL.prototype)}},uL=class fL extends it{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fL.prototype)}};class rm extends it{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rm.prototype)}}let gle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Aborted="Aborted",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.ResourceExhausted="ResourceExhausted",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.MetadataCallFailed="MetadataCallFailed",t}({});const dL={0:CB,[-1]:ct,[-2]:SB,[-3]:PB,[-4]:OB,[-5]:N0,[-6]:_B,[-7]:DB,[-8]:LB,[-9]:jh,[-10]:UB,1e3:WB,1001:HB,1002:GB,1003:KB,1004:JB,1005:XB,2e3:eL,2001:rL,2002:sL,2003:oL,2004:tm,3e3:cL,3002:uL,3003:rm},v3=globalThis.fetch;class hL extends wB{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,v3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=kv({},i.headers,o),v3(s,i)},this.fetch=this._fetch}}const mle=Object.freeze(Object.defineProperty({__proto__:null,AbortedError:XB,ContractType:lle,EventLogDataType:fle,EventLogType:ule,Indexer:wB,InvalidArgumentError:rL,MetadataCallFailedError:rm,MethodNotFoundError:KB,NotFoundError:cL,OrderStatus:dle,PermissionDeniedError:HB,ProjectNotFoundError:uL,QueryFailedError:oL,RequestConflictError:JB,ResourceExhaustedError:tm,SequenceIndexer:hL,SessionExpiredError:GB,SortOrder:vle,TimeoutError:eL,TransactionStatus:ple,TransactionType:yle,TxnTransferType:hle,UnauthorizedError:WB,UnavailableError:sL,WebRPCSchemaHash:cle,WebRPCSchemaVersion:ale,WebRPCVersion:ole,WebrpcBadMethodError:PB,WebrpcBadRequestError:OB,WebrpcBadResponseError:N0,WebrpcBadRouteError:SB,WebrpcClientDisconnectedError:LB,WebrpcEndpointError:CB,WebrpcError:it,WebrpcInternalErrorError:DB,WebrpcRequestFailedError:ct,WebrpcServerPanicError:_B,WebrpcStreamFinishedError:UB,WebrpcStreamLostError:jh,errors:gle},Symbol.toStringTag,{value:"Module"}));function _0(){return _0=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),be({},n,s)).then(i=>we(i).then(o=>({version:o.version})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.getTokenMetadata=(n,s,i)=>this.fetch(this.url("GetTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.refreshTokenMetadata=(n,s,i)=>this.fetch(this.url("RefreshTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.enqueueTokensForRefresh=(n,s,i)=>this.fetch(this.url("EnqueueTokensForRefresh"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshStatus=(n,s,i)=>this.fetch(this.url("GetTokenRefreshStatus"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshResult=(n,s,i)=>this.fetch(this.url("GetTokenRefreshResult"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status,tokens:a.tokens,failureReasons:a.failureReasons})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.cancelRefreshJob=(n,s,i)=>this.fetch(this.url("CancelRefreshJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenMetadataBatch=(n,s,i)=>this.fetch(this.url("GetTokenMetadataBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractTokenMetadata:a.contractTokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenMetadata=(n,s,i)=>this.fetch(this.url("SearchTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenIDs=(n,s,i)=>this.fetch(this.url("SearchTokenIDs"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenIds:a.tokenIds})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.tokenCollectionFilters=(n,s,i)=>this.fetch(this.url("TokenCollectionFilters"),be(n,s,i)).then(o=>we(o).then(a=>({filters:a.filters})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfo=(n,s,i)=>this.fetch(this.url("GetContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfoBatch=(n,s,i)=>this.fetch(this.url("GetContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoMap:a.contractInfoMap})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfo=(n,s,i)=>this.fetch(this.url("SearchContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoList:a.contractInfoList})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfoBatch=(n,s,i)=>this.fetch(this.url("SearchContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoByChain:a.contractInfoByChain})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchMetadata=(n,s,i)=>this.fetch(this.url("SearchMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokens=(n,s,i)=>this.fetch(this.url("SearchTokens"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContracts=(n,s,i)=>this.fetch(this.url("SearchContracts"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapTokenQuantity=(n,s,i)=>this.fetch(this.url("GetNiftyswapTokenQuantity"),be(n,s,i)).then(o=>we(o).then(a=>({quantity:a.quantity})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPrices=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPrices"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPricesWithQuantities=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPricesWithQuantities"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.addContractToMintMonitor=(n,s,i)=>this.fetch(this.url("AddContractToMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractFromMintMonitor=(n,s,i)=>this.fetch(this.url("RemoveContractFromMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorJobStatus=(n,s,i)=>this.fetch(this.url("MintMonitorJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({task:a.task})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorTriggerJob=(n,s,i)=>this.fetch(this.url("MintMonitorTriggerJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.syncContractTokens=(n,s,i)=>this.fetch(this.url("SyncContractTokens"),be(n,s,i)).then(o=>we(o).then(a=>({taskID:a.taskID})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.abortContractSync=(n,s,i)=>this.fetch(this.url("AbortContractSync"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.contractSyncJobStatus=(n,s,i)=>this.fetch(this.url("ContractSyncJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({refreshTask:a.refreshTask,syncTask:a.syncTask})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetNetworks=(n,s,i)=>this.fetch(this.url("DirectoryGetNetworks"),be(n,s,i)).then(o=>we(o).then(a=>({networks:a.networks})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetCollections=(n,s,i)=>this.fetch(this.url("DirectoryGetCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directorySearchCollections=(n,s,i)=>this.fetch(this.url("DirectorySearchCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class yL{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Collections/",this.createCollection=(n,s,i)=>this.fetch(this.url("CreateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getCollection=(n,s,i)=>this.fetch(this.url("GetCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listCollections=(n,s,i)=>this.fetch(this.url("ListCollections"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateCollection=(n,s,i)=>this.fetch(this.url("UpdateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteCollection=(n,s,i)=>this.fetch(this.url("DeleteCollection"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.publishCollection=(n,s,i)=>this.fetch(this.url("PublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.unpublishCollection=(n,s,i)=>this.fetch(this.url("UnpublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createContractCollection=(n,s,i)=>this.fetch(this.url("CreateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractCollection=(n,s,i)=>this.fetch(this.url("GetContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listContractCollections=(n,s,i)=>this.fetch(this.url("ListContractCollections"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollections:a.contractCollections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateContractCollection=(n,s,i)=>this.fetch(this.url("UpdateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteContractCollection=(n,s,i)=>this.fetch(this.url("DeleteContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createToken=(n,s,i)=>this.fetch(this.url("CreateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getToken=(n,s,i)=>this.fetch(this.url("GetToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokens=(n,s,i)=>this.fetch(this.url("ListTokens"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokens:a.tokens})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateToken=(n,s,i)=>this.fetch(this.url("UpdateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteToken=(n,s,i)=>this.fetch(this.url("DeleteToken"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createAsset=(n,s,i)=>this.fetch(this.url("CreateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getAsset=(n,s,i)=>this.fetch(this.url("GetAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateAsset=(n,s,i)=>this.fetch(this.url("UpdateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteAsset=(n,s,i)=>this.fetch(this.url("DeleteAsset"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class Sle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Admin/",this.addContractsToTokenDirectory=(n,s,i)=>this.fetch(this.url("AddContractsToTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractsFromTokenDirectory=(n,s,i)=>this.fetch(this.url("RemoveContractsFromTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.modifyFeatureIndex=(n,s,i)=>this.fetch(this.url("ModifyFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getFeatureIndex=(n,s,i)=>this.fetch(this.url("GetFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({featured:a.featured})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokenDirectory=(n,s,i)=>this.fetch(this.url("ListTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const be=(t={},e={},r=null)=>({method:"POST",headers:_0({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),we=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Sk.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Ple[n]||Ze).new(r)}return r});let Ze=class vL extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,vL.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},gL=class mL extends Ze{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mL.prototype)}},ge=class xL extends Ze{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xL.prototype)}},bL=class wL extends Ze{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wL.prototype)}},EL=class CL extends Ze{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,CL.prototype)}},kL=class AL extends Ze{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,AL.prototype)}},Sk=class SL extends Ze{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,SL.prototype)}},TL=class PL extends Ze{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,PL.prototype)}},IL=class OL extends Ze{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OL.prototype)}},RL=class NL extends Ze{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NL.prototype)}},_L=class ML extends Ze{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ML.prototype)}},DL=class BL extends Ze{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BL.prototype)}},LL=class jL extends Ze{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jL.prototype)}},FL=class UL extends Ze{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UL.prototype)}},$L=class WL extends Ze{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,WL.prototype)}};class nm extends Ze{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nm.prototype)}}class sm extends Ze{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sm.prototype)}}class im extends Ze{constructor(e="Fail",r=1005,n="Request Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,im.prototype)}}class om extends Ze{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,om.prototype)}}class am extends Ze{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,am.prototype)}}let VL=class HL extends Ze{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,HL.prototype)}};class cm extends Ze{constructor(e="RequiredArgument",r=2002,n="Required argument missing",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cm.prototype)}}let zL=class GL extends Ze{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,GL.prototype)}},qL=class KL extends Ze{constructor(e="ValidationFailed",r=2004,n="Validation failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,KL.prototype)}};class lm extends Ze{constructor(e="RateLimited",r=2005,n="Rate limited",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lm.prototype)}}let QL=class JL extends Ze{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,JL.prototype)}};class um extends Ze{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,um.prototype)}}class fm extends Ze{constructor(e="ChainNotFound",r=3003,n="Chain not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fm.prototype)}}class dm extends Ze{constructor(e="TokenDirectoryDisabled",r=4001,n="Token Directory is disabled",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dm.prototype)}}let Tle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Fail="Fail",t.Geoblocked="Geoblocked",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.RequiredArgument="RequiredArgument",t.QueryFailed="QueryFailed",t.ValidationFailed="ValidationFailed",t.RateLimited="RateLimited",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.ChainNotFound="ChainNotFound",t.TokenDirectoryDisabled="TokenDirectoryDisabled",t}({});const Ple={0:gL,[-1]:ge,[-2]:bL,[-3]:EL,[-4]:kL,[-5]:Sk,[-6]:TL,[-7]:IL,[-8]:RL,[-9]:_L,[-10]:DL,1e3:LL,1001:FL,1002:$L,1003:nm,1004:sm,1005:im,1006:om,2e3:am,2001:VL,2002:cm,2003:zL,2004:qL,2005:lm,3e3:QL,3002:um,3003:fm,4001:dm},Av=globalThis.fetch;class YL extends pL{constructor(e="https://metadata.sequence.app",r,n){super(e.endsWith("/")?e.slice(0,-1):e,Av),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=_0({},i.headers,o),Av(s,i)},this.fetch=this._fetch}}class Ile extends yL{constructor(e="https://metadata.sequence.app",r){super(e.endsWith("/")?e.slice(0,-1):e,Av),this.jwtAuth=r,this._fetch=(n,s)=>{const i={},o=this.jwtAuth;return o&&o.length>0&&(i.Authorization=`BEARER ${o}`),s.headers=_0({},s.headers,i),Av(n,s)},this.fetch=this._fetch}}const Ole=Object.freeze(Object.defineProperty({__proto__:null,Admin:Sle,ChainNotFoundError:fm,Collections:yL,ContractType:Ele,FailError:im,GeoblockedError:om,InvalidArgumentError:VL,Metadata:pL,MethodNotFoundError:nm,NotFoundError:QL,PermissionDeniedError:FL,ProjectNotFoundError:um,PropertyType:Cle,QueryFailedError:zL,RateLimitedError:lm,RequestConflictError:sm,RequiredArgumentError:cm,SequenceCollections:Ile,SequenceMetadata:YL,SessionExpiredError:$L,SwapType:kle,TaskStatus:Ale,TimeoutError:am,TokenDirectoryDisabledError:dm,UnauthorizedError:LL,ValidationFailedError:qL,WebRPCSchemaHash:wle,WebRPCSchemaVersion:ble,WebRPCVersion:xle,WebrpcBadMethodError:EL,WebrpcBadRequestError:kL,WebrpcBadResponseError:Sk,WebrpcBadRouteError:bL,WebrpcClientDisconnectedError:RL,WebrpcEndpointError:gL,WebrpcError:Ze,WebrpcInternalErrorError:IL,WebrpcRequestFailedError:ge,WebrpcServerPanicError:TL,WebrpcStreamFinishedError:DL,WebrpcStreamLostError:_L,errors:Tle},Symbol.toStringTag,{value:"Module"}));function Rle(t,e){const r=t.replace("ipfs://ipfs/","").replace("ipfs://","");return t.startsWith("ipfs://")?`${e}${r}`:t}function Nle(t){return t.startsWith("ipfs://")}class _le{constructor(e,r,n=1e3){this.provider=e,this.solver=r,this.window=n,this.pending=new Map}async runByEIP5719(e,r,n){const s=`${e}-${r}-${n}`,i=Date.now();if(this.pending.has(s)&&i-this.pending.get(s).timestamp10)throw new Error("EIP5719 - Too many tries");if(ye.signer.canRecover(n)){const c=ye.signer.recoverSigner(r,n);if(c&&c.toLowerCase()===t.toLowerCase())return n}try{if(await ye.signer.isValidSignature(t,r,n,e))return n}catch{}const o=await Dle(Mle(t,e).getAlternativeSignature(r));if(!o||o==="")throw new Error("EIP5719 - Invalid signature and no alternative signature");const a=H(await(s||new Ble).resolve(o));if(!a||a==="")throw new Error("EIP5719 - Empty alternative signature");if(a===H(n))throw new Error("EIP5719 - Alternative signature is invalid or the same");return XL(t,e,r,a,s,i+1)}class Ble{constructor(e="https://cloudflare-ipfs.com/ipfs/"){var r=this;this.gateway=e,this.uri=n=>Nle(n)?Rle(n,this.gateway):n,this.resolve=async function(n){const s=r.uri(n),i=await fetch(s);if(!i.ok)throw new Error(`URISolverIPFS - Failed to fetch ${s}`);return await i.text()}}}const Lle=(t,e)=>e.some(r=>t instanceof r);let g3,m3;function jle(){return g3||(g3=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fle(){return m3||(m3=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ZL=new WeakMap,F2=new WeakMap,ej=new WeakMap,Hx=new WeakMap,Tk=new WeakMap;function Ule(t){const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(ka(t.result)),s()},o=()=>{n(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&ZL.set(r,t)}).catch(()=>{}),Tk.set(e,t),e}function $le(t){if(F2.has(t))return;const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),s()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});F2.set(t,e)}let U2={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return F2.get(t);if(e==="objectStoreNames")return t.objectStoreNames||ej.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ka(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Wle(t){U2=t(U2)}function Vle(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(zx(this),e,...r);return ej.set(n,e.sort?e.sort():[e]),ka(n)}:Fle().includes(t)?function(...e){return t.apply(zx(this),e),ka(ZL.get(this))}:function(...e){return ka(t.apply(zx(this),e))}}function Hle(t){return typeof t=="function"?Vle(t):(t instanceof IDBTransaction&&$le(t),Lle(t,jle())?new Proxy(t,U2):t)}function ka(t){if(t instanceof IDBRequest)return Ule(t);if(Hx.has(t))return Hx.get(t);const e=Hle(t);return e!==t&&(Hx.set(t,e),Tk.set(e,t)),e}const zx=t=>Tk.get(t);function zle(t,e,{blocked:r,upgrade:n,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=ka(o);return n&&o.addEventListener("upgradeneeded",c=>{n(ka(o.result),c.oldVersion,c.newVersion,ka(o.transaction),c)}),r&&o.addEventListener("blocked",c=>r(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",l=>s(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const Gle=["get","getKey","getAll","getAllKeys","count"],qle=["put","add","delete","clear"],Gx=new Map;function x3(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Gx.get(e))return Gx.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,s=qle.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(s||Gle.includes(r)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let l=c.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),s&&c.done]))[0]};return Gx.set(e,i),i}Wle(t=>({...t,get:(e,r,n)=>x3(e,r)||t.get(e,r,n),has:(e,r)=>!!x3(e,r)||t.has(e,r)}));class Kle{constructor(){this.loadPresignedConfiguration=void 0,this.savePresignedConfiguration=void 0,this.saveWitnesses=void 0,this.configOfImageHash=void 0,this.saveWalletConfig=void 0,this.imageHashOfCounterfactualWallet=void 0,this.saveCounterfactualWallet=void 0,this.walletsOfSigner=void 0}}var Qle=Object.freeze({__proto__:null,ConfigTracker:Kle});class Jle{constructor(e){this.tracker=e}async loadPresignedConfiguration(e){return console.debug("? loadPresignedConfiguration"),Br(e,"? "),Br(await this.tracker.loadPresignedConfiguration(e),"! ")}savePresignedConfiguration(e){return console.debug("? savePresignedConfiguration"),Br(e,"? "),this.tracker.savePresignedConfiguration(e)}saveWitnesses(e){return console.debug("? saveWitnesses"),Br(e,"? "),this.tracker.saveWitnesses(e)}async configOfImageHash(e){return console.debug("? configOfImageHash"),Br(e,"? "),Br(await this.tracker.configOfImageHash(e),"! ")}saveWalletConfig(e){return console.debug("? saveWalletConfig"),Br(e,"? "),this.tracker.saveWalletConfig(e)}async imageHashOfCounterfactualWallet(e){return console.debug("? imageHashOfCounterfactualWallet"),Br(e,"? "),Br(await this.tracker.imageHashOfCounterfactualWallet(e),"! ")}saveCounterfactualWallet(e){return console.debug("? saveCounterfactualWallet"),Br(e,"? "),this.tracker.saveCounterfactualWallet(e)}async walletsOfSigner(e){return console.debug("? walletsOfSigner"),Br(e,"? "),Br(await this.tracker.walletsOfSigner(e),"! ")}async getMigration(e,r,n,s){return console.debug("? getMigration"),Br({address:e,fromImageHash:r,fromVersion:n,chainId:s},"? "),Br(await this.tracker.getMigration(e,r,n,s),"! ")}saveMigration(e,r,n){return console.debug("? saveMigration"),Br({address:e,signed:r,contexts:n},"? "),this.tracker.saveMigration(e,r,n)}}function Br(t,e=""){switch(t){case void 0:console.debug(e+"undefined");break;default:JSON.stringify(t,Ts,2).split(` -`).map(r=>e+r).forEach(r=>console.debug(r));break}return t}var Yle=Object.freeze({__proto__:null,DebugConfigTracker:Jle});function Ma(){return Ma=Object.assign?Object.assign.bind():function(t){for(var e=1;ePromise.resolve(this.configs[e]),this.saveConfig=(e,r)=>(this.configs[e]=r,Promise.resolve()),this.loadV2Node=e=>Promise.resolve(this.v2Nodes[e]),this.saveV2Node=(e,r)=>(this.v2Nodes[e]=r,Promise.resolve()),this.loadCounterfactualWallet=e=>Promise.resolve(this.counterfactualWallets[e]),this.saveCounterfactualWallet=(e,r,n)=>(this.counterfactualWallets[e]={imageHash:r,context:n},Promise.resolve()),this.loadPayloadOfSubdigest=e=>Promise.resolve(this.payloads[e]),this.savePayloadOfSubdigest=(e,r)=>(this.payloads[e]=r,Promise.resolve()),this.loadSubdigestsOfSigner=e=>Promise.resolve(Object.keys(this.signatures[e]||{})),this.loadSignatureOfSubdigest=(e,r)=>{var n;return Promise.resolve((n=this.signatures[e])==null?void 0:n[r])},this.saveSignatureOfSubdigest=(e,r,n)=>(this.signatures[e]||(this.signatures[e]={}),this.signatures[e][r]=n,Promise.resolve()),this.loadMigrationsSubdigest=(e,r,n)=>{var s;return Promise.resolve(((s=this.migrations[e])==null||(s=s[r])==null?void 0:s[n])||[])},this.saveMigrationsSubdigest=(e,r,n,s,i)=>(this.migrations[e]||(this.migrations[e]={}),this.migrations[e][r]||(this.migrations[e][r]={}),this.migrations[e][r][n]||(this.migrations[e][r][n]=[]),this.migrations[e][r][n].push({subdigest:s,toImageHash:i}),Promise.resolve())}}function ju(t){if(t===void 0)return;const e={};for(const r of Object.keys(t)){const n=t[r];n._isBigNumber===!0&&n._hex!==void 0&&typeof n._hex=="string"&&n._hex.length!==""?e[r]=BigInt(n._hex):Array.isArray(n)?e[r]=n.map(s=>ju(s)):typeof n=="object"&&n!==null?e[r]=ju(n):e[r]=n}return e}class Xle{constructor(e){var r=this;this.dbName=e,this._lazyDb=void 0,this.loadConfig=async function(n){return(await r.getDb()).get("configs",n).then(i=>ju(i))},this.saveConfig=async function(n,s){await(await r.getDb()).put("configs",s,n)},this.loadV2Node=async function(n){return(await r.getDb()).get("v2Nodes",n).then(i=>ju(i))},this.saveV2Node=async function(n,s){await(await r.getDb()).put("v2Nodes",s,n)},this.loadCounterfactualWallet=async function(n){return(await r.getDb()).get("counterfactualWallets",n)},this.saveCounterfactualWallet=async function(n,s,i){await(await r.getDb()).put("counterfactualWallets",{imageHash:s,context:i},n)},this.loadPayloadOfSubdigest=async function(n){return(await r.getDb()).get("payloads",n).then(i=>ju(i))},this.savePayloadOfSubdigest=async function(n,s){await(await r.getDb()).put("payloads",s,n)},this.loadSubdigestsOfSigner=async function(n){return(await(await r.getDb()).getAllKeysFromIndex("signatures","signer",IDBKeyRange.only(n))).map(o=>o.split("-")[0])},this.loadSignatureOfSubdigest=async function(n,s){const o=await(await r.getDb()).get("signatures",[s,n].join("-"));return o==null?void 0:o.signature},this.saveSignatureOfSubdigest=async function(n,s,i){await(await r.getDb()).put("signatures",{signature:i,signer:n},[s,n].join("-"))},this.loadMigrationsSubdigest=async function(n,s,i){return(await(await r.getDb()).getAllFromIndex("migrations","jump",IDBKeyRange.only([n,s,i]))).map(c=>({subdigest:c.subdigest,toImageHash:c.toImageHash}))},this.saveMigrationsSubdigest=async function(n,s,i,o,a){await(await r.getDb()).put("migrations",{wallet:n,fromVersion:s,toVersion:i,subdigest:o,toImageHash:a},o)}}async getDb(){if(this._lazyDb)return this._lazyDb;const e=this.dbName;return this._lazyDb=await zle(e,1,{upgrade(r,n,s,i){console.log(`upgrading ${e} from ${n} to ${s} - ${i}`),n===0&&(r.createObjectStore("configs"),r.createObjectStore("v2Nodes"),r.createObjectStore("counterfactualWallets"),r.createObjectStore("payloads"),r.createObjectStore("signatures").createIndex("signer","signer",{unique:!1}),r.createObjectStore("migrations").createIndex("jump",["wallet","fromVersion","toVersion"]))}}),this._lazyDb}}function rj(t){return t.left!==void 0&&t.right!==void 0}function nj(t){return t.weight!==void 0&&t.threshold!==void 0&&t.tree!==void 0}function $2(t){return t.version===2&&t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&typeof t.tree=="string"}var Zle=Object.freeze({__proto__:null,isPlainNode:rj,isPlainNested:nj,isPlainV2Config:$2,MemoryTrackerStore:tj,recreateBigNumbers:ju,IndexedDBStore:Xle});class Pk{constructor(e,r=new tj,n=!1){var s=this;this.provider=e,this.store=r,this.useEIP5719=n,this.cachedEIP5719=void 0,this.loadTopology=async function(i){const o=await s.store.loadV2Node(i);if(!o)return{nodeHash:i};if(rj(o)){const[a,c]=await Promise.all([s.loadTopology(o.left),s.loadTopology(o.right)]);return{left:a,right:c}}return nj(o)?{weight:BigInt(o.weight),threshold:BigInt(o.threshold),tree:await s.loadTopology(o.tree)}:o},this.saveTopology=async function(i){if(je.config.isNodeLeaf(i))return;const o=je.config.hashNode(i);if(je.config.isNode(i)){const a=s.saveTopology(i.left),c=s.saveTopology(i.right),l=s.store.saveV2Node(o,{left:je.config.hashNode(i.left),right:je.config.hashNode(i.right)});await Promise.all([a,c,l]);return}if(je.config.isNestedLeaf(i)){const a=s.saveTopology(i.tree),c=s.store.saveV2Node(o,{weight:BigInt(i.weight).toString(),threshold:BigInt(i.threshold).toString(),tree:je.config.hashNode(i.tree)});await Promise.all([a,c]);return}if(je.config.isSignerLeaf(i))return s.store.saveV2Node(o,{address:i.address,weight:i.weight});if(je.config.isSubdigestLeaf(i))return s.store.saveV2Node(o,{subdigest:i.subdigest});throw new Error(`Unknown topology type: ${i}`)},this.saveWalletConfig=async function(i){const{config:o}=i;if(Hi.config.ConfigCoder.isWalletConfig(o)){const a=Hi.config.ConfigCoder.imageHashOf(o);return s.store.saveConfig(a,o)}if(je.config.ConfigCoder.isWalletConfig(o)){const a=je.config.ConfigCoder.imageHashOf(o);if(je.config.isComplete(o.tree))return s.store.saveConfig(a,o)}},this.configOfImageHashCache={},this.configOfImageHash=async function(i){const{imageHash:o}=i;if(s.configOfImageHashCache[i.imageHash])return s.configOfImageHashCache[i.imageHash];const a=await s.store.loadConfig(o);if(a){if(a.version===1||a.version===2&&!$2(a))return s.configOfImageHashCache[i.imageHash]=a,a;if($2(a)){const c={version:2,threshold:BigInt(a.threshold),checkpoint:BigInt(a.checkpoint),tree:await s.loadTopology(a.tree)};return s.configOfImageHashCache[i.imageHash]=c,c}throw new Error(`Unknown config type: ${a}`)}},this.saveCounterfactualWallet=async function(i){const{config:o,context:a}=i,c=dr.genericCoderFor(o.version).config.imageHashOf(o);await Promise.all([s.saveWalletConfig({config:o}),...a.map(l=>{const u=ye.context.addressOf(l,c);return s.store.saveCounterfactualWallet(u,c,l)})])},this.imageHashOfCounterfactualWallet=async function(i){const{wallet:o}=i,a=await s.store.loadCounterfactualWallet(o);if(a)return{imageHash:a.imageHash,context:a.context}},this.savePayload=async function(i){const{payload:o}=i,a=ye.signature.subdigestOf(o);await s.store.savePayloadOfSubdigest(a,o)},this.payloadOfSubdigestCache={},this.payloadOfSubdigest=async function(i){if(s.payloadOfSubdigestCache[i.subdigest])return s.payloadOfSubdigestCache[i.subdigest];const{subdigest:o}=i,a=await s.store.loadPayloadOfSubdigest(o);return a&&(s.payloadOfSubdigestCache[o]=a),a},this.savePresignedConfiguration=async function(i){const o=je.signature.SignatureCoder.decode(i.signature),a=dr.genericCoderFor(i.nextConfig.version).config.imageHashOf(i.nextConfig),c=je.chained.messageSetImageHash(a),l=_e(c),u={message:c,address:i.wallet,chainId:0,digest:l},f=s.savePayload({payload:u}),d=s.saveWalletConfig({config:i.nextConfig}),h=await je.signature.SignatureCoder.recover(o,u,s.provider),y=je.signature.signaturesOf(h.config.tree);await Promise.all([f,d,s.saveWalletConfig({config:h.config}),...y.map(p=>s.store.saveSignatureOfSubdigest(p.address,h.subdigest,p.signature))])},this.loadPresignedConfiguration=async function(i){const{wallet:o,fromImageHash:a,longestPath:c}=i,l=await s.configOfImageHash({imageHash:a});if(!l||!je.config.ConfigCoder.isWalletConfig(l))return[];const u=je.config.signersOf(l.tree).map(x=>x.address),f=await Promise.all(u.map(x=>s.store.loadSubdigestsOfSigner(x))),d=[...new Set(f.flat())],y=(await Promise.all([...new Set(d)].map(async function(x){return Ma({},await s.payloadOfSubdigest({subdigest:x}),{subdigest:x})}))).filter(x=>(x==null?void 0:x.message)&&(x==null?void 0:x.address)&&x.address===o).map(x=>({payload:x,nextImageHash:je.chained.decodeMessageSetImageHash(x.message)})).filter(x=>x==null?void 0:x.nextImageHash);let p;const v=(await Promise.all(y.map(async function({nextImageHash:x,payload:k}){const S=await s.configOfImageHash({imageHash:x});if(!S||!je.config.isWalletConfig(S))return;const I=BigInt(S.checkpoint);return{nextConfig:S,nextCheckpoint:I,nextImageHash:x,payload:k}}))).filter(x=>x!==void 0).filter(x=>x.nextCheckpoint>BigInt(l.checkpoint)).sort((x,k)=>x.nextCheckpoint>k.nextCheckpoint?c?1:-1:c?-1:1);for(const x of v){const{nextConfig:k,nextCheckpoint:S,nextImageHash:I,payload:R}=x;if(p){const F=p.checkpoint;if(c){if(S>=F)continue}else if(S<=F)continue}const _=new Map((await Promise.all(u.map(async function(F){const X=await s.store.loadSignatureOfSubdigest(F,R.subdigest);if(!X)return[F,void 0];const re=H(s.useEIP5719?await s.cachedEIP5719.runByEIP5719(F,R.subdigest,X):X),le=ye.signer.tryRecoverSigner(R.subdigest,re)!==F;return[F,{isDynamic:le,signature:re}]}))).filter(F=>!!F[1]));if(_.size===0)continue;const V=je.signature.SignatureCoder.encodeSigners(l,_,[],0);V.weightye.signer.canRecover(c)).map(c=>{const l=ye.signer.recoverSigner(a,c);return s.store.saveSignatureOfSubdigest(l,a,c)})])},this.walletsOfSigner=async function(i){const o=await s.store.loadSubdigestsOfSigner(i.signer),a=await Promise.all(o.map(l=>s.payloadOfSubdigest({subdigest:l}))).then(l=>l.filter(u=>u!==void 0)),c=[];for(const l of a){const u=l.address;if(c.find(h=>h.wallet===u))continue;const f=ye.signature.subdigestOf(l),d=await s.store.loadSignatureOfSubdigest(i.signer,f);d&&c.push({wallet:u,proof:{digest:l.digest,chainId:BigInt(l.chainId),signature:H(d)}})}return c},this.cachedEIP5719=new _le(e)}async saveMigration(e,r,n){const s=r.fromVersion;if(s!==1)throw new Error("Migration not supported");if(!je.config.isWalletConfig(r.toConfig))throw new Error("Invalid to config");const{newImageHash:i,address:o}=ID.v1v2.decodeTransaction(r.tx,n);if(o!==e)throw new Error("Invalid migration transaction - address");if(je.config.ConfigCoder.imageHashOf(r.toConfig)!=i)throw new Error("Invalid migration transaction - config");const a=ye.transaction.packMetaTransactionsData(r.tx.nonce,r.tx.transactions),c=_e(a),l={chainId:r.tx.chainId,message:a,address:e,digest:c},u=ye.signature.subdigestOf(l),f=this.savePayload({payload:l}),d=this.saveWalletConfig({config:r.toConfig}),h=Hi.signature.SignatureCoder.decode(r.tx.signature),y=await Hi.signature.SignatureCoder.recover(h,l,this.provider),p=Hi.signature.SignatureCoder.signaturesOf(y.config);await Promise.all([f,d,this.saveWalletConfig({config:y.config}),this.store.saveMigrationsSubdigest(e,s,s+1,u,i),...p.map(b=>this.store.saveSignatureOfSubdigest(b.address,y.subdigest,b.signature))])}async getMigration(e,r,n,s){var i=this;const[o,a]=await Promise.all([this.configOfImageHash({imageHash:r}),this.store.loadMigrationsSubdigest(e,n,n+1)]),c=dr.coderFor(n);return!o||!c.config.isWalletConfig(o)?void 0:(await Promise.all(a.map(async function(u){const{subdigest:f,toImageHash:d}=u,h=await i.payloadOfSubdigest({subdigest:f});if(!h||!h.message||BigInt(s)!==BigInt(h.chainId))return;const y=c.config.signersOf(o).map(x=>x.address),p=new Map((await Promise.all(y.map(async function(x){const k=await i.store.loadSignatureOfSubdigest(x,f);if(!k)return[x,void 0];const S=H(i.useEIP5719?await i.cachedEIP5719.runByEIP5719(x,f,k):k),I=ye.signer.tryRecoverSigner(f,S)!==x;return[x,{isDynamic:I,signature:S}]}))).filter(x=>!!x[1])),b=c.signature.encodeSigners(o,p,[],s);if(!b||b.weightu.filter(f=>f!==void 0)))[0]}updateProvider(e){this.provider=e}}var eue=Object.freeze({__proto__:null,LocalConfigTracker:Pk});let qx=function(t){return t.EIP712="EIP712",t.EthSign="EthSign",t.EIP1271="EIP1271",t}({});class tue{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Sessions/",this.ping=(n,s)=>this.fetch(this.url("Ping"),cs({},n,s)).then(i=>ls(i).then(o=>({})),i=>{throw Un.new({cause:`fetch(): ${i.message||""}`})}),this.config=(n,s,i)=>this.fetch(this.url("Config"),cs(n,s,i)).then(o=>ls(o).then(a=>({version:a.version,config:a.config})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.wallets=(n,s,i)=>this.fetch(this.url("Wallets"),cs(n,s,i)).then(o=>ls(o).then(a=>({wallets:a.wallets})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.deployHash=(n,s,i)=>this.fetch(this.url("DeployHash"),cs(n,s,i)).then(o=>ls(o).then(a=>({deployHash:a.deployHash,context:a.context})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.configUpdates=(n,s,i)=>this.fetch(this.url("ConfigUpdates"),cs(n,s,i)).then(o=>ls(o).then(a=>({updates:a.updates})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.migrations=(n,s,i)=>this.fetch(this.url("Migrations"),cs(n,s,i)).then(o=>ls(o).then(a=>({migrations:a.migrations})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveConfig=(n,s,i)=>this.fetch(this.url("SaveConfig"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveWallet=(n,s,i)=>this.fetch(this.url("SaveWallet"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignature=(n,s,i)=>this.fetch(this.url("SaveSignature"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignerSignatures=(n,s,i)=>this.fetch(this.url("SaveSignerSignatures"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveMigration=(n,s,i)=>this.fetch(this.url("SaveMigration"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const cs=(t={},e={},r=null)=>({method:"POST",headers:Ma({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ls=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),uj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(hue[n]||vn).new(r)}return r});let vn=class sj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,sj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},rue=class ij extends vn{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ij.prototype)}},Un=class oj extends vn{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oj.prototype)}},nue=class aj extends vn{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aj.prototype)}},sue=class cj extends vn{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cj.prototype)}},iue=class lj extends vn{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lj.prototype)}},uj=class fj extends vn{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fj.prototype)}},oue=class dj extends vn{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dj.prototype)}},aue=class hj extends vn{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hj.prototype)}},cue=class pj extends vn{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pj.prototype)}},lue=class yj extends vn{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yj.prototype)}},uue=class vj extends vn{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vj.prototype)}},fue=class gj extends vn{constructor(e="InvalidArgument",r=1,n="invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gj.prototype)}},due=class mj extends vn{constructor(e="NotFound",r=2,n="not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mj.prototype)}};const hue={0:rue,[-1]:Un,[-2]:nue,[-3]:sue,[-4]:iue,[-5]:uj,[-6]:oue,[-7]:aue,[-8]:cue,[-9]:lue,[-10]:uue,1:fue,2:due};class pue{constructor(e,r=!0){this.onlyRecoverable=r,this.sessions=void 0,this.sessions=new tue(e,fetch)}async loadPresignedConfiguration(e){try{const{updates:r}=await this.sessions.configUpdates({wallet:e.wallet,fromImageHash:e.fromImageHash,allUpdates:e.longestPath});return r.map(({toImageHash:n,signature:s})=>({wallet:e.wallet,nextImageHash:n,signature:s}))}catch(r){if(Kx(r))return[];throw r}}async savePresignedConfiguration(e){const r=e.nextConfig,n=dr.genericCoderFor(r.version).config.imageHashOf(r),s=je.signature.setImageHashStruct(n),i=_e(s);await this.sessions.saveSignature({wallet:e.wallet,digest:i,chainID:"0",signature:e.signature,toConfig:Sp(r)})}async saveWitnesses(e){let r=e.signatures;this.onlyRecoverable&&(r=r.filter(n=>ye.signer.canRecover(n))),await this.sessions.saveSignerSignatures({wallet:e.wallet,digest:e.digest,chainID:yu(e.chainId),signatures:r})}async configOfImageHash(e){try{const{version:r,config:n}=await this.sessions.config(e);return yue(r,n)}catch(r){if(Kx(r))return;throw r}}async saveWalletConfig(e){const r=Sp(e.config);await this.sessions.saveConfig({version:e.config.version,config:r})}async imageHashOfCounterfactualWallet(e){try{const{deployHash:r,context:n}=await this.sessions.deployHash(e);return{imageHash:r,context:n}}catch(r){if(Kx(r))return;throw r}}async saveCounterfactualWallet(e){const r=Sp(e.config);await this.sessions.saveWallet({version:e.config.version,deployConfig:r})}async walletsOfSigner(e){const{wallets:r}=await this.sessions.wallets(e);return Object.entries(r).map(([n,{digest:s,chainID:i,type:o,signature:a}])=>{switch(o){case qx.EIP712:a+=In(ye.signer.SigType.EIP712).slice(2);break;case qx.EthSign:a+=In(ye.signer.SigType.ETH_SIGN).slice(2);break;case qx.EIP1271:a+=In(ye.signer.SigType.WALLET_BYTES32).slice(2);break}return{wallet:n,proof:{digest:s,signature:a,chainId:BigInt(i)}}})}async getMigration(e,r,n,s){var i=this;const o=yu(s),{migrations:a}=await this.sessions.migrations({wallet:e,fromVersion:n,fromImageHash:r,chainID:o}),c=async function(f){const d=a[f];if(d){const h=Object.keys(d).map(Number).sort((y,p)=>p-y);for(const y of h)for(const[p,b]of Object.entries(d[y]))try{const v=await i.configOfImageHash({imageHash:p});if(v)return{fromVersion:n,toVersion:y,toConfig:v,tx:{entrypoint:b.executor,transactions:b.transactions,nonce:b.nonce,signature:b.signature,chainId:f,intent:{id:ye.transaction.subdigestOfTransactions(e,f,b.nonce,b.transactions),wallet:e}}}}catch(v){console.error(v)}}},l=await c(o);if(l)return l;for(const u in a)if(u!==o){const f=await c(u);if(f)return f}}async saveMigration(e,r,n){await this.sessions.saveMigration({wallet:e,fromVersion:r.fromVersion,toVersion:r.toVersion,toConfig:Sp(r.toConfig),executor:r.tx.entrypoint,transactions:r.tx.transactions.map(vue),nonce:yu(r.tx.nonce),signature:r.tx.signature,chainID:yu(r.tx.chainId)})}}function Sp(t){switch(t.version){case 1:if(Hi.config.ConfigCoder.isWalletConfig(t))return{threshold:wc(t.threshold),signers:t.signers.map(({weight:e,address:r})=>({weight:wc(e),address:r}))};throw new Error(`not a v${t.version} config: ${t}`);case 2:if(je.config.ConfigCoder.isWalletConfig(t))return{threshold:wc(t.threshold),checkpoint:wc(t.checkpoint),tree:fy(t.tree)};throw new Error(`not a v${t.version} config: ${t}`);default:throw new Error(`unknown version ${t.version}`)}}function fy(t){return je.config.isNode(t)?{left:fy(t.left),right:fy(t.right)}:je.config.isSignerLeaf(t)?{weight:wc(t.weight),address:t.address}:je.config.isNestedLeaf(t)?{weight:wc(t.weight),threshold:wc(t.threshold),tree:fy(t.tree)}:je.config.isNodeLeaf(t)?{node:t.nodeHash}:Ma({},t)}function yue(t,e){switch(t){case 1:return Ma({},e,{version:t});case 2:return Ma({},e,{version:t,tree:dy(e.tree)});default:throw new Error(`unknown version ${t}`)}}function dy(t){switch(typeof t){case"object":const e=Ma({},t);return e.left!==void 0&&(e.left=dy(e.left)),e.right!==void 0&&(e.right=dy(e.right)),e.tree!==void 0&&(e.tree=dy(e.tree)),e.node!==void 0&&(e.nodeHash=e.node,delete e.node),e;default:throw new Error(`v2 config tree ${t} is not an object`)}}function vue(t){return{to:t.to,value:t.value!==void 0?yu(t.value):void 0,data:t.data!==void 0?H(t.data):void 0,gasLimit:t.gasLimit!==void 0?yu(t.gasLimit):void 0,delegateCall:t.delegateCall,revertOnError:t.revertOnError}}function wc(t){return Number(t)}function yu(t){return BigInt(t).toString()}function Kx(t){return typeof t=="object"&&t.status===404}var gue=Object.freeze({__proto__:null,RemoteConfigTracker:pue});function W2(t,e,r){return new Promise(n=>{let s=0;t.forEach(i=>i.then(o=>{r(o)?n(o):(s++,s===t.length&&n(e))}).catch(()=>{s++,s===t.length&&n(e)}))})}async function uh(t,e){return Promise.all(t.map(r=>r.catch(()=>e)))}class mue{constructor(e){this.trackers=e}async configOfImageHash(e){const r=this.trackers.map(async function(a,c){return{res:await a.configOfImageHash(e),i:c}}),n=await W2(r,void 0,a=>(a==null?void 0:a.res)===void 0?!1:dr.genericCoderFor(a.res.version).config.isComplete(a.res));if(n!=null&&n.res)return this.saveWalletConfig({config:n.res,skipTracker:n.i}),n.res;const s=new Pk(void 0),i=await uh(r,void 0);for(const a of i)a!=null&&a.res&&await s.saveWalletConfig({config:a.res});const o=await s.configOfImageHash(e);return o&&this.saveWalletConfig({config:o}),o}async saveWalletConfig(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveWalletConfig(e)}))}async imageHashOfCounterfactualWallet(e){const r=await W2(this.trackers.map(n=>n.imageHashOfCounterfactualWallet(e)),void 0,n=>!!n);return r&&this.configOfImageHash({imageHash:r.imageHash}).then(n=>{n&&this.saveCounterfactualWallet({config:n,context:[r.context]})}),r}async saveCounterfactualWallet(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveCounterfactualWallet(e)}))}async walletsOfSigner(e){const r=await uh(this.trackers.map(o=>o.walletsOfSigner(e)),[]).then(o=>o.flat()),n={};for(const o of r)n[o.wallet]=o.proof;const s=Object.keys(n).map(o=>({wallet:o,proof:n[o]})),i=new Map;return s.forEach(({wallet:o,proof:{digest:a,chainId:c,signature:l}})=>{const u=`${o}-${a}-${c}`;let f=i.get(u);f||(f={wallet:o,digest:a,chainId:c,signatures:[]},i.set(u,f)),f.signatures.push(l)}),i.forEach(o=>this.saveWitnesses(o)),s}async saveWitnesses(e){await Promise.all(this.trackers.map(r=>r.saveWitnesses(e)))}async loadPresignedConfiguration(e){var r=this;const n=await uh(this.trackers.map(c=>c.loadPresignedConfiguration(e)),[]),i=(await uh(n.map(async function(c){const l=c[c.length-1],u=await r.configOfImageHash({imageHash:l.nextImageHash});if(u)return{checkpoint:dr.genericCoderFor(u.version).config.checkpointOf(u),result:c}}),void 0)).reduce((c,l)=>l&&(!c||l.checkpoint>c.checkpoint)?l:c);if(!i)return[];const o=new Map,a=c=>(o.has(c)||o.set(c,this.configOfImageHash({imageHash:c})),o.get(c));return i.result.forEach(async function(c){const l=await a(c.nextImageHash);l&&r.savePresignedConfiguration({wallet:e.wallet,nextConfig:l,signature:c.signature})}),i.result}async savePresignedConfiguration(e){await Promise.all(this.trackers.map(r=>r.savePresignedConfiguration(e)))}async getMigration(e,r,n,s){return(await Promise.all(this.trackers.map(o=>o.getMigration(e,r,n,s)))).find(o=>!!o)}async saveMigration(e,r,n){await Promise.all(this.trackers.map(s=>s.saveMigration(e,r,n)))}}class xue{constructor(e,r,n){this.tracker=e,this.cache=r,this.contexts=n}async loadPresignedConfiguration(e){var r=this;const n=[this.tracker.loadPresignedConfiguration(e),this.cache.loadPresignedConfiguration(e)];let s;const[i,o]=await Promise.all(n);if(i.length>0&&o.length>0&&i[i.length-1].nextImageHash===o[o.length-1].nextImageHash)s=e.longestPath===!0?i.length>o.length?i:o:i.lengthf&&(!u||f.checkpoint>u.checkpoint)?f:u))==null?void 0:c.result)!=null?a:[]}return s||[]}async savePresignedConfiguration(e){await Promise.all([this.tracker.savePresignedConfiguration(e),this.cache.savePresignedConfiguration(e)])}async configOfImageHash(e){if(e.noCache!==!0){const n=await this.cache.configOfImageHash(e);if(n)return n}const r=await this.tracker.configOfImageHash(e);return r&&await this.cache.saveWalletConfig({config:r}),r}async saveWalletConfig(e){await Promise.all([this.tracker.saveWalletConfig(e),this.cache.saveWalletConfig(e)])}async imageHashOfCounterfactualWallet(e){if(e.noCache!==!0){const n=await this.cache.imageHashOfCounterfactualWallet(e);if(n)return n}const r=await this.tracker.imageHashOfCounterfactualWallet(e);if(r){const n=await this.configOfImageHash({imageHash:r.imageHash});n&&await this.cache.saveCounterfactualWallet({config:n,context:[r.context]})}return r}async saveCounterfactualWallet(e){await Promise.all([this.tracker.saveCounterfactualWallet(e),this.cache.saveCounterfactualWallet(e)])}async walletsOfSigner(e){if(e.noCache)return this.tracker.walletsOfSigner(e);const r=await Promise.all([this.tracker.walletsOfSigner(e),this.cache.walletsOfSigner(e)]),n=new Map;for(const s of r)for(const i of s)n.set(i.wallet,i);return Array.from(n.values())}async saveWitnesses(e){await Promise.all([this.tracker.saveWitnesses(e),this.cache.saveWitnesses(e)])}async getMigration(e,r,n,s){const i=await this.cache.getMigration(e,r,n,s);if(i)return i;const o=await this.tracker.getMigration(e,r,n,s);return o&&await this.cache.saveMigration(e,o,this.contexts),o}async saveMigration(e,r,n){await Promise.all([this.tracker.saveMigration(e,r,n),this.cache.saveMigration(e,r,n)])}}class b3{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Qr(JSON.stringify(s,bue))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}}function bue(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):typeof e=="bigint"?e.toString():e}function wue(t){return t instanceof xj}class xj{constructor(e,r=50,n=!1){this.tracker=e,this.window=r,this.verbose=n,this.cache=new b3}invalidateCache(){this.cache=new b3}configOfImageHash(e){return this.cache.do("configOfImageHash",this.window,r=>this.tracker.configOfImageHash(r),e)}getMigration(e,r,n,s){return this.cache.do("getMigration",this.window,(...i)=>this.tracker.getMigration(...i),e,r,n,s)}saveMigration(e,r,n){return this.cache.do("saveMigration",void 0,(...s)=>this.tracker.saveMigration(...s),e,r,n)}loadPresignedConfiguration(e){return this.cache.do("loadPresignedConfiguration",this.window,r=>this.tracker.loadPresignedConfiguration(r),e)}savePresignedConfiguration(e){return this.cache.do("savePresignedConfiguration",void 0,r=>this.tracker.savePresignedConfiguration(r),e)}saveWitnesses(e){return this.cache.do("saveWitnesses",void 0,r=>this.tracker.saveWitnesses(r),e)}saveWalletConfig(e){return this.cache.do("saveWalletConfig",void 0,r=>this.tracker.saveWalletConfig(r),e)}imageHashOfCounterfactualWallet(e){return this.cache.do("imageHashOfCounterfactualWallet",void 0,r=>this.tracker.imageHashOfCounterfactualWallet(r),e)}saveCounterfactualWallet(e){return this.cache.do("saveCounterfactualWallet",void 0,r=>this.tracker.saveCounterfactualWallet(r),e)}walletsOfSigner(e){return this.cache.do("walletsOfSigner",this.window,r=>this.tracker.walletsOfSigner(r),e)}updateProvider(e){this.tracker instanceof Pk&&this.tracker.updateProvider(e)}}var Ik=Object.freeze({__proto__:null,debug:Yle,local:eue,remote:gue,stores:Zle,raceUntil:W2,allSafe:uh,MultipleTracker:mue,CachedTracker:xue,isDedupedTracker:wue,DedupedTracker:xj});const Eue=Object.freeze(Object.defineProperty({__proto__:null,tracker:Qle,trackers:Ik},Symbol.toStringTag,{value:"Module"})),bj=60*60*24*7,Cue=60;class w3{constructor(e,r,n={},s){this.account=e,this.settings=r,this.status=n,this._initialAuthRequest=void 0,this.proofStrings=new Map,this.onAuthCallbacks=[],this.apiClient=void 0,this.metadataClient=void 0,this.indexerClients=new Map,this.projectAccessKey=void 0,this.projectAccessKey=s}now(){return Math.floor(Date.now()/1e3)}get expiration(){var e;return Math.max((e=this.settings.metadata.expiration)!=null?e:bj,120)}onAuth(e){return this.onAuthCallbacks.push(e),()=>this.onAuthCallbacks=this.onAuthCallbacks.filter(r=>r!==e)}async dump(){return this.status.jwt?{jwt:{token:await this.status.jwt.token,expiration:this.status.jwt.expiration},metadata:this.status.metadata}:{metadata:this.settings.metadata}}auth(e=5){var r=this;return this._initialAuthRequest?this._initialAuthRequest:(this._initialAuthRequest=async function(){const n=r.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");let s;for(let i=1;;i++)try{s=(await r.getJWT(!0)).token;break}catch(o){if(i===e)throw console.error(`couldn't authenticate after ${e} attempts`,o),o}return new ay(n,void 0,s)}(),this._initialAuthRequest)}async getJWT(e){var r=this;const n=this.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");if(this.status.jwt){const l=this.status.jwt,u=await l.token;if(this.now(){throw this.status.jwt=void 0,l}),expiration:o};return this.status.jwt=a,a.token.then(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"fulfilled",value:l})}catch{}})}).catch(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"rejected",reason:l})}catch{}})}),{token:await a.token,expiration:o}}getProofStringKey(){return`${this.account.address} - ${this.settings.metadata.name}`}async isProofStringValid(e){try{const r=new gv,n=BigInt(this.settings.sequenceApiChainId),s=Ns(this.account.networks,n);if(!s)throw Error("No network found");r.chainId=Number(n);const i=new ot(s.name,n);return r.provider=new zt(O0(s.rpcUrl,this.projectAccessKey),i,{staticNetwork:i}),await r.decodeProof(e),!0}catch{return!1}}async getAPIClient(e=!0){if(!this.apiClient){const r=this.settings.sequenceApiUrl;if(!r)throw Error("No sequence api url");const n=(await this.getJWT(e)).token;this.apiClient=new ay(r,void 0,n)}return this.apiClient}async getMetadataClient(e=!0){if(!this.metadataClient){const r=(await this.getJWT(e)).token;this.metadataClient=new YL(this.settings.sequenceMetadataUrl,void 0,r)}return this.metadataClient}async getIndexerClient(e,r=!0){const n=Ns(this.account.networks,e);if(!n)throw Error(`No network for chain ${e}`);if(!this.indexerClients.has(n.chainId))if(n.indexer)this.indexerClients.set(n.chainId,n.indexer);else if(n.indexerUrl){const s=(await this.getJWT(r)).token;this.indexerClients.set(n.chainId,new hL(n.indexerUrl,void 0,s))}else throw Error(`No indexer url for chain ${e}`);return this.indexerClients.get(n.chainId)}getProofString(e){if(this.proofStrings.has(e)){const l=this.proofStrings.get(e);if(this.now()(r.signature=l,n.encodeProof(r,!0))).catch(l=>{throw this.proofStrings.delete(e),l}),expiration:a};return this.proofStrings.set(e,c),c}}const wj=async(t,e,r)=>{const n=Te(await t.getAddress());if(!n||n===""||n==="0x")throw Ej;const s=new rk;if(s.address=n,!r||!r.app||r.app==="")throw new Ok("authorization options requires app to be set");s.claims.app=r.app,s.claims.ogn=r.origin,s.claims.n=r.nonce,s.setExpiryIn(r.expiry?Math.max(r.expiry,200):bj);const i=s.messageTypedData(),o=_M(e);s.signature=await(t instanceof Ki?t.signTypedData(i.domain,i.types,i.message,o,"eip6492"):t.signTypedData(i.domain,i.types,i.message,o));const c=await new gv().encodeProof(s,!0);return{typedData:i,proofString:c}};class Ok extends Error{constructor(e){super(e),this.name="AuthError"}}const Ej=new Ok("auth error: account address is empty");function fc(){return fc=Object.assign?Object.assign.bind():function(t){for(var e=1;eF.wallet));let _;if(R){if(f==null||f(R),_=new Ki({address:R,tracker:x,networks:g,contexts:v,orchestrator:p,projectAccessKey:b}),l&&l.length>0){let F=await _.status(S);if(F.original.version!==F.version||_.version!==F.version){const{migratedAllChains:le,failedChains:ee}=await _.isMigratedAllChains();if(ee.some(D=>V2.includes(D)))throw Error(`Failed to fetch account status on ${ee.join(", ")}`);if(!le){if(y&&!await y(_))throw Error("Migration cancelled, cannot open session");const{failedChains:D}=await _.signAllMigrations(h||(Z=>Z));if(D.some(Z=>V2.includes(Z)))throw Error(`Failed to sign migrations on ${D.join(", ")}`);Ik.isDedupedTracker(x)&&x.invalidateCache();let G;if([G,F]=await Promise.all([_.isMigratedAllChains().then(Z=>Z.migratedAllChains),_.status(S)]),!G)throw Error("Failed to migrate account")}}F.onChain.version!==F.version&&await _.doBootstrap(S,void 0,F);const X=F.config,re=_.coders.config.editConfig(X,{add:l,threshold:c});if(_.coders.config.imageHashOf(X)!==_.coders.config.imageHashOf(re)){const le=_.coders.config.editConfig(re,{checkpoint:_.coders.config.checkpointOf(X)+1n});await _.updateConfig(le)}}}else{if(!l||l.length===0)throw Error("Cannot create new account without signers");if(!c)throw Error("Cannot create new account without threshold");if(_=await Ki.new({config:{threshold:c,checkpoint:0,signers:l},tracker:x,contexts:v,orchestrator:p,networks:g,projectAccessKey:b}),f==null||f(_.address),await _.publishWitness(),!(await x.walletsOfSigner({signer:a,noCache:!0})).some(X=>X.wallet===_.address))throw Error("Account not found on tracker")}let V;return k&&(V=new w3(_,k),V.auth(),V.onAuth(F=>{F.status==="fulfilled"&&_.setJwt(F.value)})),new Fh(g,v,_,V)}static async load(e){const{dump:r,settings:n,editConfigOnMigration:s,onMigration:i,orchestrator:o}=e,{contexts:a,networks:c,tracker:l,services:u}=fc({},hy,n);let f;if(Cj(r)){var d,h,y;const k=r.config.address||ye.context.addressOf(a[1],Hi.config.ConfigCoder.imageHashOf(fc({},r.config,{version:1}))),S=((d=(h=r.jwt)==null?void 0:h.expiration)!=null?d:0)I.migratedAllChains)){if(i&&!await i(f))throw Error("Migration cancelled, cannot open session");if(console.log("Migrating account..."),await f.signAllMigrations(s),!await f.isMigratedAllChains().then(I=>I.migratedAllChains))throw Error("Failed to migrate account")}}else if(kj(r)){var p,b,v;const k=((p=(b=r.jwt)==null?void 0:b.expiration)!=null?p:0)async(n,s,i)=>{const o=i.messageDigest();return{isValid:await t(s).isValidSignature(i.address,o,i.signature)}},Aue=Object.freeze(Object.defineProperty({__proto__:null,AuthError:Ok,CRITICAL_CHAINS:V2,ErrAccountIsRequired:Ej,Session:Fh,SessionSettingsDefault:hy,ValidateSequenceWalletProof:kue,isSessionDumpV1:Cj,isSessionDumpV2:kj,signAuthorization:wj},Symbol.toStringTag,{value:"Module"}));function Sv(){return Sv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Cr({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Cr({},n,s)).then(i=>kr(i).then(o=>({version:o.version})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Cr({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.getSignerConfig=(n,s,i)=>this.fetch(this.url("GetSignerConfig"),Cr(n,s,i)).then(o=>kr(o).then(a=>({signerConfig:a.signerConfig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.sign=(n,s,i)=>this.fetch(this.url("Sign"),Cr(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.signWith=(n,s,i)=>this.fetch(this.url("SignWith"),Cr(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.patch=(n,s,i)=>this.fetch(this.url("Patch"),Cr(n,s,i)).then(o=>kr(o).then(a=>({txs:a.txs})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.authMethods=(n,s,i)=>this.fetch(this.url("AuthMethods"),Cr(n,s,i)).then(o=>kr(o).then(a=>({methods:a.methods,active:a.active})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.setPIN=(n,s,i)=>this.fetch(this.url("SetPIN"),Cr(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetPIN=(n,s,i)=>this.fetch(this.url("ResetPIN"),Cr(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.createTOTP=(n,s,i)=>this.fetch(this.url("CreateTOTP"),Cr(n,s,i)).then(o=>kr(o).then(a=>({uri:a.uri})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.commitTOTP=(n,s,i)=>this.fetch(this.url("CommitTOTP"),Cr(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetTOTP=(n,s,i)=>this.fetch(this.url("ResetTOTP"),Cr(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.reset2FA=(n,s,i)=>this.fetch(this.url("Reset2FA"),Cr(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.recoveryCodes=(n,s,i)=>this.fetch(this.url("RecoveryCodes"),Cr(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetRecoveryCodes=(n,s,i)=>this.fetch(this.url("ResetRecoveryCodes"),Cr(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Cr=(t={},e={},r=null)=>({method:"POST",headers:Sv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),kr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Nj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Fue[n]||Ft).new(r)}return r});let Ft=class Sj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,Sj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},Sue=class Tj extends Ft{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Tj.prototype)}},cr=class Pj extends Ft{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Pj.prototype)}},Tue=class Ij extends Ft{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ij.prototype)}},Pue=class Oj extends Ft{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Oj.prototype)}},Iue=class Rj extends Ft{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rj.prototype)}},Nj=class _j extends Ft{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_j.prototype)}},Oue=class Mj extends Ft{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Mj.prototype)}},Rue=class Dj extends Ft{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Dj.prototype)}},Nue=class Bj extends Ft{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Bj.prototype)}},_ue=class Lj extends Ft{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Lj.prototype)}},Mue=class jj extends Ft{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jj.prototype)}},Due=class Fj extends Ft{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Fj.prototype)}},Bue=class Uj extends Ft{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Uj.prototype)}};class Rk extends Ft{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rk.prototype)}}class Nk extends Ft{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Nk.prototype)}}class _k extends Ft{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_k.prototype)}}let Lue=class $j extends Ft{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$j.prototype)}};class Mk extends Ft{constructor(e="ValidationFailed",r=2004,n="Validation Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Mk.prototype)}}let jue=class Wj extends Ft{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Wj.prototype)}};const Fue={0:Sue,[-1]:cr,[-2]:Tue,[-3]:Pue,[-4]:Iue,[-5]:Nj,[-6]:Oue,[-7]:Rue,[-8]:Nue,[-9]:_ue,[-10]:Mue,1e3:Due,1002:Bue,1005:Rk,2001:Nk,2002:_k,2003:Lue,2004:Mk,3e3:jue},Uue=globalThis.fetch;class $ue{constructor(e,r,n=!1){this.address=e,this.url=r,this.appendSuffix=n,this.guard=void 0,this.guard=new Aj(r,Uue)}async getAddress(){return this.address}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}async sign(e,r){var n;if(!ye.isWalletSignRequestMetadata(r))throw new Error("expected sequence signature request metadata");const s=r.guardTotpCode,i=dr.genericCoderFor(r.config.version),{encoded:o}=i.signature.encodeSigners(r.config,(n=r.parts)!=null?n:new Map,[],r.chainId);return(await this.guard.signWith({signer:this.address,request:{msg:H(e),auxData:this.packMsgAndSig(r.address,r.digest,o,r.chainId),chainId:Number(r.chainId)},token:s?{id:Tv.TOTP,token:s}:void 0})).sig}notifyStatusChange(e,r,n){}async getAuthMethods(e){let r;if("jwt"in e)r=await this.guard.authMethods({},{Authorization:`BEARER ${e.jwt}`});else{const n=await H2(e);r=await this.guard.authMethods({proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}return Sv({},r,{methods:r.methods.map(Wue)})}async setPin(e,r){const n=await Hd(r);e===void 0?await this.guard.resetPIN({timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`}):await this.guard.setPIN({pin:e,timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`})}resetPin(e){return this.setPin(void 0,e)}async createTotp(e){const r=await Hd(e),{uri:n}=await this.guard.createTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return new URL(n)}async commitTotp(e,r){const{codes:n}=await this.guard.commitTOTP({token:e},{Authorization:`BEARER ${r}`});return n}async resetTotp(e){const r=await Hd(e);await this.guard.resetTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`})}async reset2fa(e,r){if("jwt"in r)await this.guard.reset2FA({code:e},{Authorization:`BEARER ${r.jwt}`});else{const n=await H2(r);await this.guard.reset2FA({code:e,proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}}async getRecoveryCodes(e){const r=await Hd(e),{codes:n}=await this.guard.recoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}async resetRecoveryCodes(e){const r=await Hd(e),{codes:n}=await this.guard.resetRecoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}packMsgAndSig(e,r,n,s){return Kt.defaultAbiCoder().encode(["address","uint256","bytes","bytes"],[e,s,r,n])}suffix(){return new Uint8Array(this.appendSuffix?[3]:[])}}let Tv=function(t){return t.PIN="PIN",t.TOTP="TOTP",t}({});function Wue(t){switch(t){case Tv.PIN:case Tv.TOTP:return t;default:throw new Error(`unknown auth method '${t}'`)}}function Vj(t){return"signerAddress"in t&&typeof t.signerAddress=="string"}async function H2(t){if(Vj(t))return t;{const e=j2.isSapientSigner(t.signer)?t.signer:new j2.SignerWrapper(t.signer),r=await e.getAddress(),n=new Date,s=Hj(t.walletAddress,n),i=kd(s);return{walletAddress:t.walletAddress,timestamp:n,signerAddress:r,signature:H(await e.sign(i,{}))}}}async function Hd(t){if("wallet"in t){var e;const r=new Date,n=zj(r),s=await t.wallet.signTypedData(n.domain,n.types,n.message,(e=n.domain.chainId)!=null?e:1,"eip6492");return{jwt:t.jwt,timestamp:r,signature:s}}else return t}function Hj(t,e){return{domain:Gj,types:{AuthMethods:[{name:"wallet",type:"address"},{name:"timestamp",type:"string"}]},message:{wallet:Te(t),timestamp:qj(e)}}}function zj(t){return{domain:Gj,types:{AuthUpdate:[{name:"timestamp",type:"string"}]},message:{timestamp:qj(t)}}}const Gj={name:"Sequence Guard",version:"1",chainId:1};function qj(t){return t.toUTCString().replace("GMT","UTC")}const Vue=Object.freeze(Object.defineProperty({__proto__:null,AuthMethod:Tv,Guard:Aj,GuardSigner:$ue,getAuthUpdateProofTypedData:zj,getOwnershipProofTypedData:Hj,isSignedOwnershipProof:Vj,signOwnershipProof:H2},Symbol.toStringTag,{value:"Module"}));var Kj={exports:{}};/*! - * EventEmitter2 - * https://github.com/hij1nx/EventEmitter2 - * - * Copyright (c) 2013 hij1nx - * Licensed under the MIT license. - */(function(t,e){(function(r){var n=Object.hasOwnProperty,s=Array.isArray?Array.isArray:function(A){return Object.prototype.toString.call(A)==="[object Array]"},i=10,o=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",c=typeof Reflect=="object",l=typeof setImmediate=="function",u=l?setImmediate:setTimeout,f=a?c&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(E){var A=Object.getOwnPropertyNames(E);return A.push.apply(A,Object.getOwnPropertySymbols(E)),A}:Object.keys;function d(){this._events={},this._conf&&h.call(this,this._conf)}function h(E){E&&(this._conf=E,E.delimiter&&(this.delimiter=E.delimiter),E.maxListeners!==r&&(this._maxListeners=E.maxListeners),E.wildcard&&(this.wildcard=E.wildcard),E.newListener&&(this._newListener=E.newListener),E.removeListener&&(this._removeListener=E.removeListener),E.verboseMemoryLeak&&(this.verboseMemoryLeak=E.verboseMemoryLeak),E.ignoreErrors&&(this.ignoreErrors=E.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(E,A){var O="(node) warning: possible EventEmitter memory leak detected. "+E+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(O+=" Event name: "+A+"."),typeof process<"u"&&process.emitWarning){var M=new Error(O);M.name="MaxListenersExceededWarning",M.emitter=this,M.count=E,process.emitWarning(M)}else console.error(O),console.trace&&console.trace()}var p=function(E,A,O){var M=arguments.length;switch(M){case 0:return[];case 1:return[E];case 2:return[E,A];case 3:return[E,A,O];default:for(var B=new Array(M);M--;)B[M]=arguments[M];return B}};function b(E,A){for(var O={},M,B=E.length,W=0,q=0;q0;)E=W[J],q.call(te,E,O[E]);this._listeners={},this._listenersCount=0,$()}}});function g(E,A,O,M){var B=Object.assign({},A);if(!E)return B;if(typeof E!="object")throw TypeError("options must be an object");var W=Object.keys(E),q=W.length,te,J,$;function K(de){throw Error('Invalid "'+te+'" option value'+(de?". Reason: "+de:""))}for(var ue=0;ue0;)if(te===E[J])return W;q(A)}}var S=k(["function"]),I=k(["object","function"]);function R(E,A,O){var M,B,W=0,q,te=new E(function(J,$,K){O=g(O,{timeout:0,overload:!1},{timeout:function(Ee,Re){return Ee*=1,(typeof Ee!="number"||Ee<0||!Number.isFinite(Ee))&&Re("timeout must be a positive number"),Ee}}),M=!O.overload&&typeof E.prototype.cancel=="function"&&typeof K=="function";function ue(){B&&(B=null),W&&(clearTimeout(W),W=0)}var de=function(Ee){ue(),J(Ee)},oe=function(Ee){ue(),$(Ee)};M?A(de,oe,K):(B=[function(Ee){oe(Ee||Error("canceled"))}],A(de,oe,function(Ee){if(q)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Ee!="function")throw TypeError("onCancel callback must be a function");B.push(Ee)}),q=!0),O.timeout>0&&(W=setTimeout(function(){var Ee=Error("timeout");Ee.code="ETIMEDOUT",W=0,te.cancel(Ee),$(Ee)},O.timeout))});return M||(te.cancel=function(J){if(B){for(var $=B.length,K=1;K<$;K++)B[K](J);B[0](J),B=null}}),te}function _(E){var A=this._observers;if(!A)return-1;for(var O=A.length,M=0;M0;)oe=se[te],oe!=="_listeners"&&(ae=V(E,A,O[oe],M+1,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else if(br==="**"){for(tn=M+1===B||M+2===B&&U==="*",tn&&O._listeners&&(de=V(E,A,O,B,B)),se=f(O),te=se.length;te-- >0;)oe=se[te],oe!=="_listeners"&&(oe==="*"||oe==="**"?(O[oe]._listeners&&!tn&&(ae=V(E,A,O[oe],B,B),ae&&(de?de.push.apply(de,ae):de=ae)),ae=V(E,A,O[oe],M,B)):oe===U?ae=V(E,A,O[oe],M+2,B):ae=V(E,A,O[oe],M,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else O[br]&&(de=V(E,A,O[br],M+1,B));if(Ee=O["*"],Ee&&V(E,A,Ee,M+1,B),Re=O["**"],Re)if(M0;)oe=se[te],oe!=="_listeners"&&(oe===U?V(E,A,Re[oe],M+2,B):oe===br?V(E,A,Re[oe],M+1,B):(xt={},xt[oe]=Re[oe],V(E,A,{"**":xt},M+1,B)));else Re._listeners?V(E,A,Re,B,B):Re["*"]&&Re["*"]._listeners&&V(E,A,Re["*"],B,B);return de}function F(E,A,O){var M=0,B=0,W,q=this.delimiter,te=q.length,J;if(typeof E=="string")if((W=E.indexOf(q))!==-1){J=new Array(5);do J[M++]=E.slice(B,W),B=W+te;while((W=E.indexOf(q,B))!==-1);J[M++]=E.slice(B)}else J=[E],M=1;else J=E,M=E.length;if(M>1){for(W=0;W+10&&$._listeners.length>this._maxListeners&&($._listeners.warned=!0,y.call(this,$._listeners.length,K))):$._listeners=A,!0;return!0}function X(E,A,O,M){for(var B=f(E),W=B.length,q,te,J,$=E._listeners,K;W-- >0;)te=B[W],q=E[te],te==="_listeners"?J=O:J=O?O.concat(te):[te],K=M||typeof te=="symbol",$&&A.push(K?J:J.join(this.delimiter)),typeof q=="object"&&X.call(this,q,A,J,K);return A}function re(E){for(var A=f(E),O=A.length,M,B,W;O-- >0;)B=A[O],M=E[B],M&&(W=!0,B!=="_listeners"&&!re(M)&&delete E[B]);return W}function le(E,A,O){this.emitter=E,this.event=A,this.listener=O}le.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function ee(E,A,O){if(O===!0)B=!0;else if(O===!1)M=!0;else{if(!O||typeof O!="object")throw TypeError("options should be an object or true");var M=O.async,B=O.promisify,W=O.nextTick,q=O.objectify}if(M||W||B){var te=A,J=A._origin||A;if(W&&!o)throw Error("process.nextTick is not supported");B===r&&(B=A.constructor.name==="AsyncFunction"),A=function(){var $=arguments,K=this,ue=this.event;return B?W?Promise.resolve():new Promise(function(de){u(de)}).then(function(){return K.event=ue,te.apply(K,$)}):(W?process.nextTick:u)(function(){K.event=ue,te.apply(K,$)})},A._async=!0,A._origin=J}return[A,q?new le(this,E,A):this]}function D(E){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,E)}D.EventEmitter2=D,D.prototype.listenTo=function(E,A,O){if(typeof E!="object")throw TypeError("target musts be an object");var M=this;O=g(O,{on:r,off:r,reducers:r},{on:S,off:S,reducers:I});function B(W){if(typeof W!="object")throw TypeError("events must be an object");var q=O.reducers,te=_.call(M,E),J;te===-1?J=new v(M,E,O):J=M._observers[te];for(var $=f(W),K=$.length,ue,de=typeof q=="function",oe=0;oe0;)B=O[M],(!E||B._target===E)&&(B.unsubscribe(A),W=!0);return W},D.prototype.delimiter=".",D.prototype.setMaxListeners=function(E){E!==r&&(this._maxListeners=E,this._conf||(this._conf={}),this._conf.maxListeners=E)},D.prototype.getMaxListeners=function(){return this._maxListeners},D.prototype.event="",D.prototype.once=function(E,A,O){return this._once(E,A,!1,O)},D.prototype.prependOnceListener=function(E,A,O){return this._once(E,A,!0,O)},D.prototype._once=function(E,A,O,M){return this._many(E,1,A,O,M)},D.prototype.many=function(E,A,O,M){return this._many(E,A,O,!1,M)},D.prototype.prependMany=function(E,A,O,M){return this._many(E,A,O,!0,M)},D.prototype._many=function(E,A,O,M,B){var W=this;if(typeof O!="function")throw new Error("many only accepts instances of Function");function q(){return--A===0&&W.off(E,q),O.apply(this,arguments)}return q._origin=O,this._on(E,q,M,B)},D.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var E=arguments[0],A,O=this.wildcard,M,B,W,q,te;if(E==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(O&&(A=E,E!=="newListener"&&E!=="removeListener"&&typeof E=="object")){if(B=E.length,a){for(W=0;W3)for(M=new Array(J-1),q=1;q3)for(B=new Array($-1),te=1;te<$;te++)B[te-1]=arguments[te];for(q=0,W=K.length;q0&&this._events[E].length>this._maxListeners&&(this._events[E].warned=!0,y.call(this,this._events[E].length,E))):this._events[E]=A,B)},D.prototype.off=function(E,A){if(typeof A!="function")throw new Error("removeListener only takes instances of Function");var O,M=[];if(this.wildcard){var B=typeof E=="string"?E.split(this.delimiter):E.slice();if(M=V.call(this,null,B,this.listenerTree,0),!M)return this}else{if(!this._events[E])return this;O=this._events[E],M.push({_listeners:O})}for(var W=0;W0){for(M=this._all,A=0,O=M.length;A0;)M=A[O[W]],typeof M=="function"?B.push(M):B.push.apply(B,M);return B}else{if(this.wildcard){if(q=this.listenerTree,!q)return[];var te=[],J=typeof E=="string"?E.split(this.delimiter):E.slice();return V.call(this,te,J,q,0),te}return A?(M=A[E],M?typeof M=="function"?[M]:M:[]):[]}},D.prototype.eventNames=function(E){var A=this._events;return this.wildcard?X.call(this,this.listenerTree,[],null,E):A?f(A):[]},D.prototype.listenerCount=function(E){return this.listeners(E).length},D.prototype.hasListeners=function(E){if(this.wildcard){var A=[],O=typeof E=="string"?E.split(this.delimiter):E.slice();return V.call(this,A,O,this.listenerTree,0),A.length>0}var M=this._events,B=this._all;return!!(B&&B.length||M&&(E===r?f(M).length:M[E]))},D.prototype.listenersAny=function(){return this._all?this._all:[]},D.prototype.waitFor=function(E,A){var O=this,M=typeof A;return M==="number"?A={timeout:A}:M==="function"&&(A={filter:A}),A=g(A,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:S,Promise:x}),R(A.Promise,function(B,W,q){function te(){var J=A.filter;if(!(J&&!J.apply(O,arguments)))if(O.off(E,te),A.handleError){var $=arguments[0];$?W($):B(p.apply(null,arguments).slice(1))}else B(p.apply(null,arguments))}q(function(){O.off(E,te)}),O._on(E,te,!1)},{timeout:A.timeout,overload:A.overload})};function G(E,A,O){O=g(O,{Promise,timeout:0,overload:!1},{Promise:x});var M=O.Promise;return R(M,function(B,W,q){var te;if(typeof E.addEventListener=="function"){te=function(){B(p.apply(null,arguments))},q(function(){E.removeEventListener(A,te)}),E.addEventListener(A,te,{once:!0});return}var J=function(){$&&E.removeListener("error",$),B(p.apply(null,arguments))},$;A!=="error"&&($=function(K){E.removeListener(A,J),W(K)},E.once("error",$)),q(function(){$&&E.removeListener("error",$),E.removeListener(A,J)}),E.once(A,J)},{timeout:O.timeout,overload:O.overload})}var Z=D.prototype;Object.defineProperties(D,{defaultMaxListeners:{get:function(){return Z._maxListeners},set:function(E){if(typeof E!="number"||E<0||Number.isNaN(E))throw TypeError("n must be a non-negative number");Z._maxListeners=E},enumerable:!0},once:{value:G,writable:!0,configurable:!0}}),Object.defineProperties(Z,{_maxListeners:{value:i,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),t.exports=D})()})(Kj);var hm=Kj.exports;function Hue(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Dk(t,...e){if(!Hue(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function E3(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function zue(t,e){Dk(t);const r=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength),Vs=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];const Gue=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function que(t){Dk(t);let e="";for(let r=0;rt().update(Qj(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Yue(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}const Xue=(t,e,r)=>t&e^~t&r,Zue=(t,e,r)=>t&e^t&r^e&r;class efe extends Que{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Qx(this.buffer)}update(e){E3(this);const{view:r,buffer:n,blockLen:s}=this;e=Qj(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f>>3,p=Vs(h,17)^Vs(h,19)^h>>>10;To[f]=p+To[f-7]+y+To[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Vs(a,6)^Vs(a,11)^Vs(a,25),h=u+d+Xue(a,c,l)+tfe[f]+To[f]|0,p=(Vs(n,2)^Vs(n,13)^Vs(n,22))+Zue(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){To.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const nfe=Jue(()=>new rfe);var sfe=class{constructor(t,e){N(this,"hostname");N(this,"fetch");N(this,"path","/rpc/Databeat/");N(this,"ping",(t,e)=>this.fetch(this.url("Ping"),zd({},t,e)).then(r=>Gd(r).then(n=>({status:n.status})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));N(this,"version",(t,e)=>this.fetch(this.url("Version"),zd({},t,e)).then(r=>Gd(r).then(n=>({version:n.version})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));N(this,"runtimeStatus",(t,e)=>this.fetch(this.url("RuntimeStatus"),zd({},t,e)).then(r=>Gd(r).then(n=>({status:n.status})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));N(this,"tick",(t,e,r)=>this.fetch(this.url("Tick"),zd(t,e,r)).then(n=>Gd(n).then(s=>({ok:s.ok})),n=>{throw Jl.new({cause:`fetch(): ${n.message||""}`})}));N(this,"rawEvents",(t,e,r)=>this.fetch(this.url("RawEvents"),zd(t,e,r)).then(n=>Gd(n).then(s=>({ok:s.ok})),n=>{throw Jl.new({cause:`fetch(): ${n.message||""}`})}));this.hostname=t,this.fetch=(r,n)=>e(r,n)}url(t){return this.hostname+this.path+t}},zd=(t={},e={},r=null)=>({method:"POST",headers:{...e,"Content-Type":"application/json"},body:JSON.stringify(t||{}),signal:r}),Gd=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),rF.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(wfe[n]||Qt).new(r)}return r}),Qt=class Jj extends Error{constructor(r,n,s,i,o){super(s);N(this,"name");N(this,"code");N(this,"message");N(this,"status");N(this,"cause");N(this,"msg");this.name=r||"WebrpcError",this.code=typeof n=="number"?n:0,this.message=s||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=o,Object.setPrototypeOf(this,Jj.prototype)}static new(r){return new this(r.error,r.code,r.message||r.msg,r.status,r.cause)}},ife=class Yj extends Qt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Yj.prototype)}},Jl=class Xj extends Qt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Xj.prototype)}},ofe=class Zj extends Qt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Zj.prototype)}},afe=class eF extends Qt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,eF.prototype)}},cfe=class tF extends Qt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tF.prototype)}},rF=class nF extends Qt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nF.prototype)}},lfe=class sF extends Qt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sF.prototype)}},ufe=class iF extends Qt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iF.prototype)}},ffe=class oF extends Qt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oF.prototype)}},dfe=class aF extends Qt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aF.prototype)}},hfe=class cF extends Qt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cF.prototype)}},pfe=class lF extends Qt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lF.prototype)}},yfe=class uF extends Qt{constructor(e="PermissionDenied",r=2e3,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uF.prototype)}},vfe=class fF extends Qt{constructor(e="SessionExpired",r=2001,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fF.prototype)}},gfe=class dF extends Qt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dF.prototype)}},mfe=class hF extends Qt{constructor(e="InvalidAppKey",r=4e3,n="Invalid app key",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hF.prototype)}},xfe=class pF extends Qt{constructor(e="QueryFailed",r=4001,n="DB query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pF.prototype)}},bfe=class yF extends Qt{constructor(e="InvalidProjectId",r=4002,n="Invalid project id",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yF.prototype)}},wfe={0:ife,[-1]:Jl,[-2]:ofe,[-3]:afe,[-4]:cfe,[-5]:rF,[-6]:lfe,[-7]:ufe,[-8]:ffe,[-9]:dfe,[-10]:hfe,1e3:pfe,2e3:yfe,2001:vfe,3e3:gfe,4e3:mfe,4001:xfe,4002:bfe},Efe=class extends sfe{constructor(e,r){const n=globalThis.fetch.bind(globalThis);super(e.endsWith("/")?e.slice(0,-1):e,n);N(this,"_globalFetch");N(this,"_fetch",(e,r)=>{var n;if(this.auth){let s={};((n=this.auth.jwt)==null?void 0:n.length)>0&&(s.Authorization=`BEARER ${this.auth.jwt}`),this.auth.headers&&(s={...s,...this.auth.headers}),r.headers={...r.headers,...s}}return this._globalFetch(e,r)});this.auth=r,this._globalFetch=n,this.fetch=this._fetch}},C3=150,Za={defaultEnabled:!0,noop:!1,privacy:{userIdHash:!0,userAgentSalt:!1},userIdentTracking:!1,strictMode:!1,flushInterval:500,initProps:()=>({})},Cfe=class{constructor(t,e,r){N(this,"rpc");N(this,"auth");N(this,"options");N(this,"enabled");N(this,"ident");N(this,"userId");N(this,"sessionId");N(this,"allowUserTracking");N(this,"projectId");N(this,"queue");N(this,"flushTimeout");N(this,"defaultProps");N(this,"previousPageKey");N(this,"ts");N(this,"flush",async()=>{if(this.flushTimeout!==null&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),!this.enabled||this.options.noop||this.options.strictMode&&!this.allowUserTracking||this.queue.length===0)return;const t=this.dedupedQueue();this.queue=[];try{await this.rpc.tick({events:t})}catch(e){console.warn(`databeat flush failed: ${e}`)}});N(this,"dedupedQueue",()=>{const t=new Map;for(let e=0;eC3&&(this.queue=this.queue.splice(this.queue.length-C3)),this.enabled&&(e&&e.flush?await this.flush():this.flushTimeout===null&&(this.flushTimeout=setTimeout(()=>{this.flush()},this.options.flushInterval)))}trackView(t={}){const e={...this.defaultProps,...t},r=A3(),n=`${r}:${JSON.stringify(e)}:${this.userId}:${this.sessionId}`;this.previousPageKey!==n&&(this.previousPageKey=n,this.track({event:"VIEW",source:r,props:e}))}isEnabled(){return this.enabled}isAnon(){return this.ident===0}getIdent(){return this.ident}getUserId(){return this.userId}getSessionId(){return this.sessionId}getStorageTS(){if(this.ts)return this.ts;const t=z2();if(!(t==null||t.id===null))return this.ts=t.ts,this.ts}enable(){if(!vF(this.auth)){this.enabled=!1;return}Qi()&&(this.enabled=!0,this.ts=Vl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}),this.identify())}disable(){Qi()&&(this.enabled=!1,this.ts=Vl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}))}},Qi=()=>typeof window=="object"&&typeof window.localStorage=="object"&&typeof window.localStorage.getItem=="function"&&typeof window.localStorage.setItem=="function",k3=(t,e)=>{if(!vF(e))return!1;if(!Qi())return!0;const r=z2();return r===null?t??!0:r.on},vF=t=>{var e;return!!(((e=t==null?void 0:t.jwt)==null?void 0:e.length)>0||t!=null&&t.headers&&Object.keys(t.headers).length>0)},A3=()=>{try{return window.location.pathname}catch{return""}},kfe=()=>{if(!Qi())return{};const t=new URL(window.location.href).searchParams,e={};return e.origin=window.location.origin,t.get("ref")&&t.get("ref")!==""&&(e.ref=t.get("ref")||""),t.get("source")&&t.get("source")!==""&&(e.source=t.get("source")||""),t.get("utm_source")&&t.get("utm_source")!==""&&(e.utmSource=t.get("utm_source")||""),t.get("utm_campaign")&&t.get("utm_campaign")!==""&&(e.utmCampaign=t.get("utm_campaign")||""),t.get("utm_medium")&&t.get("utm_medium")!==""&&(e.utmMedium=t.get("utm_medium")||""),t.get("utm_content")&&t.get("utm_content")!==""&&(e.utmContent=t.get("utm_content")||""),t.get("utm_term")&&t.get("utm_term")!==""&&(e.utmTerm=t.get("utm_term")||""),document.referrer&&document.referrer!==""&&(e.referrer=document.referrer),t.get("gclid")&&t.get("gclid")!==""&&(e.gclid=t.get("gclid")||""),t.get("wbraid")&&t.get("wbraid")!==""&&(e.wbraid=t.get("wbraid")||""),e},Pv="_dbeat",z2=()=>{try{return JSON.parse(window.localStorage.getItem(Pv))}catch{return null}},Vl=t=>{try{return t.ts||(t.ts=Math.floor(Date.now()/1e3)),window.localStorage.setItem(Pv,JSON.stringify(t)),t.ts}catch{return}},Afe=(t,e,r)=>{if(!t||t===null||t==="")return{userId:`${Math.floor(Math.random()*1e14)}`,ident:0};if(r.userIdentTracking&&e)return{userId:t,ident:2};if(r.privacy.userIdHash===!0||!r.userIdentTracking||!e)return Qi()&&r.privacy.userAgentSalt===!0&&(t=t+":"+navigator.userAgent),r.privacy.extraSalt&&r.privacy.extraSalt.length>0&&(t=t+":"+r.privacy.extraSalt),{userId:que(nfe(t)).substring(0,50),ident:1};throw new Error("invalid configuration")},Sfe=()=>{if(Qi()&&typeof window.sessionStorage=="object"&&typeof window.sessionStorage.getItem=="function"&&typeof window.sessionStorage.setItem=="function"){const e=window.sessionStorage.getItem(Pv);if(e&&e.length>0)return e;{const r=S3(16);return window.sessionStorage.setItem(Pv,r),r}}else return S3(16)},S3=t=>{let e="";for(let r=0;r[Qr(t).slice(0,10),t]));function G2(t,e){const r=ye.transaction.fromTransactionish(t,e);ye.transaction.unwind(t,r).forEach(s=>Pfe(t,s))}function Pfe(t,e){if(e.to.toLowerCase()===t.toLowerCase()&&e.data){const r=Q(e.data);if(r.length>=4&&!Ife(r))throw new Error("self calls are forbidden")}if(e.delegateCall)throw new Error("delegate calls are forbidden");if(e.data){const n=H(e.data).slice(0,10),s=Tfe.get(n);if(s){const i=s.slice(0,s.indexOf("("));throw new Error(`${i} calls are forbidden`)}}}function Ife(t){const e=new pt(Gt.mainModule.abi);try{return e.decodeFunctionData("createContract",t),!0}catch{return!1}}function er(){return er=Object.assign?Object.assign.bind():function(t){for(var e=1;e++Ofe;class R1{constructor(){var e=this;this.pendingMessageRequests=[],this.responseCallbacks=new Map,this.state=void 0,this.confirmationOnly=!1,this.events=new hm.EventEmitter2,this.openPayload=void 0,this.connectPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this._sessionId=void 0,this._init=void 0,this._registered=void 0,this.sendMessageRequest=async function(r){return new Promise((n,s)=>{(!r.idx||r.idx<=0)&&r.type!=="init"&&s(new Error("message idx not set"));const i=(a,c)=>{if(a)s(a);else if(c)n(c);else throw new Error("no valid response to return")},o=r.idx;e.responseCallbacks.get(o)?s(new Error("duplicate message idx, should never happen")):e.responseCallbacks.set(o,i),e.isOpened()?e.sendMessage(r):(Se.debug("pushing to pending requests",r),e.pendingMessageRequests.push(r))})},this.waitUntilOpened=async function(r=Bk){let n=!1;return Promise.race([new Promise((s,i)=>{const o=setTimeout(()=>{clearTimeout(o),n||(e.state=Kn.CLOSED,e.events.emit("close",{code:1005,message:"opening wallet timed out"})),i(new Error("opening wallet timed out"))},r)}),new Promise(s=>{if(e.isOpened()){var i;n=!0,s((i=e.openPayload)==null?void 0:i.session);return}e.events.once("open",o=>{e.openPayload=o,n=!0,s(o.session)})})])},this.waitUntilConnected=async function(){await e.waitUntilOpened();const r=new Promise(s=>{if(e.connectPayload){s(e.connectPayload);return}e.events.once("connect",i=>{e.connectPayload=i,s(i)})}),n=new Promise((s,i)=>{e.events.once("close",o=>{i(o?new Error(`wallet closed due to ${JSON.stringify(o)}`):new Error("user closed the wallet"))})});return Promise.race([r,n])},this.state=Kn.CLOSED,this._registered=!1,this._init=dt.NIL}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}openWallet(e,r,n){throw new Error("abstract method")}closeWallet(){throw new Error("abstract method")}isOpened(){return this.registered&&this.state===Kn.OPENED}isConnected(){var e;const r=(e=this.openPayload)==null?void 0:e.session;return this.registered&&r!==void 0&&!!r.accountAddress&&r.accountAddress.length===42&&!!r.networks&&r.networks.length>0}async request(e){return this.state===Kn.CLOSED&&(this.confirmationOnly=!0),this.openWallet(void 0,{type:"jsonRpcRequest",method:e.method},e.chainId),this.isOpened()||await this.waitUntilOpened(),(await this.sendMessageRequest({idx:bF(),type:Ue.MESSAGE,data:e,chainId:e.chainId,clientVersion:$r})).data}handleMessage(e){var r=this;if(e.type===Ue.INIT){Se.debug("MessageProvider, received INIT message",e);const{nonce:c}=e.data;if(!c||c.length==0){Se.error("invalid init nonce");return}this._init=dt.OK,this.sendMessage({idx:-1,type:Ue.INIT,data:{sessionId:this._sessionId,nonce:c},clientVersion:$r})}if(this._init!==dt.OK)return;Se.debug("RECEIVED MESSAGE FROM WALLET",e.idx,e);const n=e.idx,s=this.responseCallbacks.get(n);if(n&&this.responseCallbacks.delete(n),e.type===Ue.OPEN&&!this.isOpened()){var i,o;if(this._sessionId&&this._sessionId!==((i=e.data)==null?void 0:i.sessionId)){Se.debug("open event received from wallet, but does not match sessionId",this._sessionId);return}if((o=e.data)!=null&&o.error){var a;const c=new Error(`opening wallet failed: received ${(a=e.data)==null?void 0:a.error}`);throw Se.error(c),this.close(),c}this.state=Kn.OPENED,this.openPayload=e.data,this.events.emit("open",this.openPayload),this.pendingMessageRequests.length!==0&&this.pendingMessageRequests.splice(0,this.pendingMessageRequests.length).forEach(async function(l){r.sendMessage(l)});return}if(e.type===Ue.MESSAGE){if(this.confirmationOnly&&setTimeout(()=>{this.responseCallbacks.size===0&&this.closeWallet()},500),!s)throw new Error("impossible state");if(s){this.events.emit("message",e),s(e.data.error,e);return}}if(e.type===Ue.ACCOUNTS_CHANGED){this.accountsChangedPayload={accounts:[]},e.data&&e.data.length>0?(this.accountsChangedPayload={accounts:[Te(e.data[0])],origin:e.origin},this.events.emit("accountsChanged",this.accountsChangedPayload.accounts,this.accountsChangedPayload.origin)):this.events.emit("accountsChanged",[],e.origin);return}if(e.type===Ue.CHAIN_CHANGED){this.events.emit("chainChanged",e.data,e.origin);return}if(e.type===Ue.NETWORKS){this.networksPayload=e.data,this.events.emit("networks",this.networksPayload);return}if(e.type===Ue.WALLET_CONTEXT){this.walletContextPayload=e.data,this.events.emit("walletContext",this.walletContextPayload);return}e.type===Ue.CLOSE&&this.state!==Kn.CLOSED&&this.close(e.data),e.type===Ue.CONNECT&&(this.connectPayload=e.data,this.events.emit("connect",this.connectPayload)),e.type===Ue.DISCONNECT&&this.isConnected()&&(this.events.emit("disconnect",e.data,e.origin),this.close())}sendMessage(e){throw new Error("abstract method")}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}emit(e,...r){return this.events.emit(e,...r)}close(e){this.state!==Kn.CLOSED&&(this.state=Kn.CLOSED,this.confirmationOnly=!1,this._sessionId=void 0,Se.info("closing wallet and flushing!"),this.pendingMessageRequests.length=0,this.responseCallbacks.forEach(r=>{r(er({},new Error("wallet closed"),{code:4001}))}),this.responseCallbacks.clear(),this.connectPayload=void 0,this.openPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this.events.emit("close",e))}}function Rfe(t){return Nfe.some(e=>e.predicate(t))}const Nfe=[{name:"Decentraland Exception",predicate:Mfe},{name:"0x v3 Exception",predicate:Dfe}],_fe=/^Decentraland Login\nEphemeral address: 0x[a-fA-F0-9]{40}\nExpiration: (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/;function Mfe(t){try{const e=Ds(t);return _fe.test(e)}catch{return!1}}function Dfe(t){const e=new pt(Bfe);try{return e.decodeFunctionData("OrderWithHash",t),!0}catch{return!1}}const Bfe=[{inputs:[{components:[{internalType:"address",name:"makerAddress",type:"address"},{internalType:"address",name:"takerAddress",type:"address"},{internalType:"address",name:"feeRecipientAddress",type:"address"},{internalType:"address",name:"senderAddress",type:"address"},{internalType:"uint256",name:"makerAssetAmount",type:"uint256"},{internalType:"uint256",name:"takerAssetAmount",type:"uint256"},{internalType:"uint256",name:"makerFee",type:"uint256"},{internalType:"uint256",name:"takerFee",type:"uint256"},{internalType:"uint256",name:"expirationTimeSeconds",type:"uint256"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"makerAssetData",type:"bytes"},{internalType:"bytes",name:"takerAssetData",type:"bytes"},{internalType:"bytes",name:"makerFeeAssetData",type:"bytes"},{internalType:"bytes",name:"takerFeeAssetData",type:"bytes"}],internalType:"struct IEIP1271Data.Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderWithHash",outputs:[],stateMutability:"pure",type:"function"}],py=mt(`Ethereum Signed Message: -`),Lk=t=>mi(t)?Q(t):mt(t),pm=t=>{const e=Lk(t);return Rfe(e)?e:Q(Le([py,mt(String(e.length)),e]))},Lfe=t=>{if(JSON.stringify(t.slice(0,py.length))!==JSON.stringify(py))return t;const e=t.slice(py.length),r=String(e.length).length;let n,s;try{s=Number(Ds(e.slice(0,r)))}catch{s=Number(H(e.slice(0,r)))}return s>e.length||!Number.isInteger(s)?n=r-1:n=r,e.slice(n)},ad=async(t,e,r,n)=>new ye.reader.OnChainReader(n).isValidSignature(t,e,r),wF=async(t,e,r,n)=>{const s=pm(e),i=ik(s);return ad(t,i,r,n)},EF=(t,e,r,n)=>ad(t,kd(e),r,n),Iv=()=>window.location.protocol==="chrome-extension:"||window.location.protocol==="moz-extension:",CF=()=>!!navigator.userAgent.match(/UnitySequence/i),kF=t=>t.onChain.deployed&&t.fullyMigrated;class AF{constructor(){this.callbacks=[],this.store={}}getItem(e){return this.store[e]||null}setItem(e,r){this.store[e]=r,this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){delete this.store[e]}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}class M0{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(this.callbacks=[],!M0.isAvailable())throw new Error("LocalStorage is not available");window.addEventListener("storage",e=>{const{key:r}=e;this.callbacks.filter(s=>s.key===r).forEach(s=>s.cb(this.getItem(r)))})}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r),this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){window.localStorage.removeItem(e),this.callbacks.filter(r=>r.key===e).forEach(r=>r.cb(null))}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}function Ov(){return M0.isAvailable()?new M0:new AF}async function SF(t){return Array.isArray(t)?Promise.all(t.map(e=>Pt(e))):Pt(t)}const T3="@sequence.transportSession";class N1{constructor(e){var r=this;this.walletRequestHandler=void 0,this._sessionId=void 0,this._registered=void 0,this._init=void 0,this._initNonce=void 0,this._initCallback=void 0,this.appOrigin=void 0,this.handleMessage=async function(n){const s=n;if(r._init!==dt.OK){if(s.type===Ue.INIT)if(r.isValidInitAck(n))r._initCallback&&r._initCallback();else{r._initCallback&&r._initCallback("invalid init");return}return}switch(s.type){case Ue.OPEN:{if(r._init!==dt.OK)return;const i={sessionId:s.data.sessionId,intent:s.data.intent,networkId:s.data.networkId};await r.open(i);return}case Ue.CLOSE:return r._init!==dt.OK,void 0;case Ue.MESSAGE:{const i=await r.walletRequestHandler.sendMessageRequest(s);r.sendMessage(i),i.data.error;return}default:Se.error(`unexpected payload type ${s.type}`)}},this.sendMessageRequest=async function(n){return r.walletRequestHandler.sendMessageRequest(n)},this.open=async function({sessionId:n,intent:s,networkId:i}){n&&(r._sessionId=wM(n),r.saveTransportSession({sessionId:n,intent:s,networkId:i})),r.walletRequestHandler.setOpenIntent(s),await r.init();let o;try{if(i){const a=ok(i);if(a)o=a.chainId;else throw new Error(`unknown network ${i}`)}else o=r.walletRequestHandler.defaultChainId()}catch(a){console.error(a)}if(s&&s.type==="connect"&&s.options){const a=s.options,c=a;if(r.appOrigin&&c!=null&&c.origin){if(!Iv()&&c.origin!==r.appOrigin)throw new Error("origin is invalid")}else!r.appOrigin&&c!=null&&c.origin?a.origin=CM(c.origin):r.appOrigin&&(a.origin=r.appOrigin);a.app&&(a.app=EM(a.app)),a.networkId?i=a.networkId:i&&(a.networkId=i),r.walletRequestHandler.setConnectOptions(a)}else r.walletRequestHandler.setConnectOptions(void 0);if(await r.walletRequestHandler.getAccount(),await r.walletRequestHandler.isSignedIn())if(s&&s.type==="connect"){(!o||o<=0)&&console.log("Failed to set default network on open"),r.notifyOpen({sessionId:r._sessionId});try{const a=await r.walletRequestHandler.promptConnect(s.options);a.connected&&r.walletRequestHandler.notifyConnect(a)}catch(a){Se.warn("promptConnect not connected:",a)}finally{(!s.options||s.options.keepWalletOpened!==!0)&&r.notifyClose()}}else{if(!o||o<=0)return r.notifyOpen({sessionId:r._sessionId,error:`failed to open wallet on network ${i}`}),!1;r.notifyOpen({sessionId:r._sessionId,chainId:`${o}`,session:await r.walletRequestHandler.walletSession(o)})}else return r.notifyOpen({sessionId:r._sessionId}),!0;return!0},this.saveTransportSession=n=>{Ov().setItem(T3,JSON.stringify(n))},this.getCachedTransportSession=async function(){const n=Ov().getItem(T3);try{return n?JSON.parse(n):null}catch{return console.error(`unable to parse transport session: ${n}`),null}},this.walletRequestHandler=e,this._init=dt.NIL,this.walletRequestHandler.on("connect",n=>{this.registered&&this.notifyConnect(n)}),this.walletRequestHandler.on("disconnect",(n,s)=>{this.registered&&this.notifyDisconnect(n,s)}),this.walletRequestHandler.on("accountsChanged",(n,s)=>{this.registered&&this.notifyAccountsChanged(n,s)}),this.walletRequestHandler.on("networks",n=>{this.registered&&(this.notifyNetworks(n),!n||n.length===0?this.notifyChainChanged("0x0"):this.notifyChainChanged(pr(n.find(s=>s.isDefaultChain).chainId)))}),this.walletRequestHandler.on("chainChanged",(n,s)=>{this.notifyChainChanged(n,s)}),this.walletRequestHandler.on("walletContext",n=>{!this.registered||!n||this.notifyWalletContext(n)}),this.walletRequestHandler.on("close",n=>{this.registered&&this.notifyClose(n)})}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}request(e){throw new Error("abstract method")}sendMessage(e){throw new Error("abstract method")}notifyOpen(e){const{chainId:r,sessionId:n,session:s,error:i}=e;this.sendMessage({idx:-1,type:Ue.OPEN,data:{chainId:r,sessionId:n,session:s,error:i},clientVersion:$r})}notifyClose(e){this.sendMessage({idx:-1,type:Ue.CLOSE,data:e?{error:e}:null,clientVersion:$r})}notifyConnect(e){this.sendMessage({idx:-1,type:Ue.CONNECT,data:e,clientVersion:$r})}notifyDisconnect(e,r){this.sendMessage({idx:-1,type:Ue.DISCONNECT,data:e?{error:e}:null,origin:r,clientVersion:$r})}notifyAccountsChanged(e,r){this.sendMessage({idx:-1,type:Ue.ACCOUNTS_CHANGED,data:e,origin:r,clientVersion:$r})}notifyChainChanged(e,r){this.sendMessage({idx:-1,type:Ue.CHAIN_CHANGED,data:e,origin:r,clientVersion:$r})}notifyNetworks(e){this.sendMessage({idx:-1,type:Ue.NETWORKS,data:e,clientVersion:$r})}notifyWalletContext(e){this.sendMessage({idx:-1,type:Ue.WALLET_CONTEXT,data:e,clientVersion:$r})}isValidInitAck(e){if(this._init===dt.OK)return Se.warn("isValidInitAck, already in init'd state, so inquiry is invalid."),!1;if(e.type!==Ue.INIT)return Se.warn("isValidInitAck, invalid message type, expecting init"),!1;const{sessionId:r,nonce:n}=e.data;return!r||r.length===0||!n||n.length===0?(Se.error("invalid init ack"),!1):r!==this._sessionId||n!==this._initNonce?(Se.error("invalid init ack match"),!1):!0}init(){return new Promise((e,r)=>{if(this._init===dt.OK){e();return}if(this._init!==dt.NIL||this._initCallback){r("transport init is in progress");return}const n=setTimeout(()=>{Se.warn("transport init timed out"),this._initCallback&&this._initCallback("transport init timed out")},Bk/2);this._initCallback=s=>{this._initCallback=void 0,clearTimeout(n),s?r(s):(this._init=dt.OK,e())},this._initNonce=`${performance.now()}`,this.sendMessage({idx:-1,type:Ue.INIT,data:{nonce:this._initNonce},clientVersion:$r}),this._init=dt.SENT_NONCE})}}class jfe{constructor(){this.app=void 0,this.wallet=void 0;const e=new q2,r=new q2;e.conn=r,r.conn=e,this.app=e,this.wallet=r}}class q2{constructor(){this.conn=void 0,this.events=new hm.EventEmitter2,this.handleMessage=e=>{throw new Error("ProxyMessageChannelPort is not registered")},this.sendMessage=e=>{this.conn.handleMessage(e),e.type==="open"&&this.events.emit("open",e),e.type==="close"&&this.events.emit("close",e),e.type==="connect"&&this.events.emit("connect",e),e.type==="disconnect"&&this.events.emit("disconnect",e)}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}}class TF extends R1{constructor(e){if(super(),this.port=void 0,this.register=()=>{this.port.handleMessage=r=>{this.handleMessage(r)},this.on("open",(...r)=>{this.port.events.emit("open",...r)}),this.on("close",(...r)=>{this.port.events.emit("close",...r)}),this.on("connect",(...r)=>{this.port.events.emit("connect",...r)}),this.on("disconnect",(...r)=>{this.port.events.emit("disconnect",...r)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),this.events.removeAllListeners(),this.port.handleMessage=void 0},this.openWallet=(r,n,s)=>{if(this.state===Kn.CLOSED){this.state=Kn.OPENING;const i=`${performance.now()}`;this._sessionId=i,this.sendMessage({idx:-1,type:Ue.OPEN,data:{path:r,intent:n,networkId:s,sessionId:i},clientVersion:$r})}},this.state=Kn.CLOSED,this.port=e,!e)throw new Error("port argument cannot be empty");this._init=dt.OK}closeWallet(){this.sendMessage({idx:-1,type:Ue.CLOSE,data:null,clientVersion:$r}),this.close()}sendMessage(e){if(!e.idx)throw new Error("message idx is empty");this.port.sendMessage(e)}}class Ffe extends N1{constructor(e,r){super(e),this.port=void 0,this.port=r,this._init=dt.OK}register(){this.port.handleMessage=e=>{this.handleMessage(e)},this._registered=!0}async restoreSession(){const e=await this.getCachedTransportSession();e&&this.open(e)}unregister(){this.port.handleMessage=void 0,this._registered=!1}sendMessage(e){this.port.sendMessage(e)}}function PF(t){var e;if((e=window.ue)!=null&&e.sequencewallettransport&&!window.logsOverriddenForUnreal){var r;const n=(r=window.ue)==null?void 0:r.sequencewallettransport;console.log=(...s)=>{n.logfromjs(`${t}: ${Jx(s)}`)},console.warn=(...s)=>{n.warnfromjs(`${t}: ${Jx(s)}`)},console.error=(...s)=>{n.errorfromjs(`${t}: ${Jx(s)}`)},window.logsOverriddenForUnreal=!0}}function Jx(t){return t.map(e=>typeof e=="object"?e instanceof Error?e.message:JSON.stringify(e):String(e)).join(" ")}let Hl;class IF extends R1{constructor(e){super(),this.walletURL=void 0,this.register=()=>{var r;PF("dapp"),Hl&&(Hl.unregister(),Hl=this),(r=window.ue)!=null&&r.sequencewallettransport&&(window.ue.sequencewallettransport.onmessagefromwallet=this.onUnrealCallback),Hl=this,this._registered=!0,console.log("registering transport!")},this.unregister=()=>{var r;this._registered=!1,this.closeWallet(),Hl===this&&(Hl=void 0),((r=window.ue)==null||(r=r.sequencewallettransport)==null?void 0:r.onmessagefromwallet)===this.onUnrealCallback&&delete window.ue.sequencewallettransport.onmessagefromwallet,this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.isOpened()){console.log("wallet already open!");return}console.log("opening wallet!");const i=new URL(this.walletURL.href),o=new O1;r&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&o.set("intent",nk(n)),s&&o.set("net",`${s}`),i.search=o.toString(),console.log("opening wallet to",i.href),window.open(i.href)},this.onUnrealCallback=r=>{if(!r)throw new Error("ProviderMessage object is empty");this.handleMessage(r)},this.walletURL=new URL(e)}closeWallet(){this.close()}sendMessage(e){var r;const n=typeof e!="string"?JSON.stringify(e,Ts):e;console.log("Sending message to wallet:",n),(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetowallet(n)}}class Ufe extends N1{constructor(e){super(e),this.onMessageFromUnreal=r=>{Se.debug("RECEIVED MESSAGE",r),this.handleMessage(r)},this.getUnrealTransportSession=r=>{const n=new O1(r);return{sessionId:n.get("sid"),networkId:n.get("net"),intent:sk(n.get("intent"))}},this._init=dt.NIL}async register(e){var r;if(((r=window.ue)==null?void 0:r.sequencewallettransport)===void 0)return;PF("wallet");const{search:n}=new URL(e||window.location.href);let s=this.getUnrealTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("unreal session is undefined");return}window.ue.sequencewallettransport.onmessagefromsequencejs=this.onMessageFromUnreal,this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){var e;((e=window.ue)==null||(e=e.sequencewallettransport)==null?void 0:e.onmessagefromsequencejs)===this.onMessageFromUnreal&&delete window.ue.sequencewallettransport.onmessagefromsequencejs,this._registered=!1}sendMessage(e){var r;if(e.type!==Ue.INIT&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}const n=JSON.stringify(e,Ts);(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetosequencejs(n)}}const jk="sequence-extension-message-handler";class $fe extends N1{constructor(e,r){super(e),this.runtime=r,this.port=void 0,this._init=dt.OK}register(){this._registered=!0,this.port=this.runtime.connect({name:jk})}sendMessage(e){Se.info("[ExtensionMessageHandler send]",e),this.port.postMessage(e)}}class OF extends R1{constructor(e){super(),this.register=()=>{this._registered=!0},e.onConnect.addListener(r=>{r.name===jk&&(this._init=dt.OK,r.onMessage.addListener(n=>{this.handleMessage(n)}))})}sendMessage(e){}unregister(){}openWallet(e,r,n){}closeWallet(){}}class Wfe extends hm.EventEmitter2{constructor(e){var r;super(),r=this,this.stream=e,this.responseCallbacks=new Map,this._messageIdx=0,this.nextMessageIdx=()=>++this._messageIdx,this.handleMessage=n=>{if(!n.type||!n.data)return;Se.info("[received message]",n);const s=n.idx,i=this.responseCallbacks.get(s);switch(s&&this.responseCallbacks.delete(s),n.type){case Ue.MESSAGE:if(i)this.emit(Ue.MESSAGE,n),i(n.data.error,n);else throw new Error("impossible state");break;case Ue.DISCONNECT:case Ue.ACCOUNTS_CHANGED:case Ue.CHAIN_CHANGED:this.emit(n.type,n.data);break;default:console.error("unknown message type",n);break}},this.sendMessageRequest=async function(n){return new Promise((s,i)=>{(!n.idx||n.idx<=0)&&i(new Error("message idx not set"));const o=(c,l)=>{if(c)i(c);else if(l)s(l);else throw new Error("no valid response to return")},{idx:a}=n;r.responseCallbacks.get(a)?i(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.sendMessage(n)})},this.stream.on("data",this.handleMessage)}sendMessage(e){this.stream.writable||console.error("window post message stream is not writable"),this.stream.write(e)}}let zl;class RF extends R1{constructor(e){super(),this.walletURL=void 0,this.walletWindow=void 0,this.register=()=>{zl&&(zl.unregister(),zl=this),window.addEventListener("message",this.onWindowEvent),zl=this,this.on("open",()=>{const r=this.walletWindow,n=setInterval(()=>{r&&r.closed&&(clearInterval(n),this.close())},500)}),this.on("close",()=>{this.walletWindow&&(this.walletWindow.close(),this.walletWindow=null)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),zl===this&&(zl=void 0),window.removeEventListener("message",this.onWindowEvent),this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.walletWindow&&this.isOpened()){this.walletWindow.focus();return}const i=new URL(this.walletURL.href),o=new O1;r&&r!==""&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&(n.type==="connect"&&(n.options||(n.options={app:window.location.origin}),!Iv()&&!CF()&&n.options&&(n.options.origin=window.location.origin)),o.set("intent",nk(n))),s&&o.set("net",`${s}`);let a,c;Iv()?(a=[450,750],c=[Math.abs(window.screen.width/2-a[0]/2),Math.abs(window.screen.height/2-a[1]/2)]):(a=[450,750],c=[Math.abs(window.screenX+window.innerWidth/2-a[0]/2),Math.abs(window.screenY+window.innerHeight/2-a[1]/2)]);const l=`toolbar=0,location=0,menubar=0,scrollbars=yes,status=yes,width=${a[0]},height=${a[1]},left=${c[0]},top=${c[1]}`;i.search=o.toString(),this.walletWindow=window.open(i.href,"sequence.app",l)},this.onWindowEvent=r=>{if(r.origin!==this.walletURL.origin)return;let n;try{n=JSON.parse(r.data,Gg)}catch{return}if(!n)throw new Error("ProviderMessage object is empty");this.handleMessage(n)},this.walletURL=new URL(e)}closeWallet(){var e;this.close(),(e=this.walletWindow)==null||e.close()}sendMessage(e){if(!this.walletWindow){Se.warn("WindowMessageProvider: sendMessage failed as walletWindow is unavailable");return}const r=typeof e!="string"?JSON.stringify(e,Ts):e;this.walletWindow.postMessage(r,this.walletURL.origin)}}class Vfe extends N1{constructor(e){var r;super(e),r=this,this.parentWindow=void 0,this._isPopup=!1,this.onWindowEvent=async function(n){if(!n.origin||n.origin===""||r.appOrigin&&n.origin!==r.appOrigin)return;let s;try{s=JSON.parse(n.data,Gg)}catch{return}if(Se.debug("RECEIVED MESSAGE",s),r._init!==dt.OK&&r.isValidInitAck(s)&&(r.appOrigin=n.origin),r._init===dt.OK&&(!r.appOrigin||r.appOrigin.length<8)){Se.error("impossible state, init.OK and appOrigin required");return}r.handleMessage(s)},this.getWindowTransportSession=n=>{const s=new O1(n);return{sessionId:s.get("sid"),networkId:s.get("net"),intent:sk(s.get("intent"))}},this._init=dt.NIL}async register(e){const r=parent.window.opener!==null;if(this._isPopup=r,r!==!0)return;const{search:n}=new URL(e||window.location.href);let s=this.getWindowTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("window session is undefined");return}this.parentWindow=parent.window.opener,window.addEventListener("message",this.onWindowEvent,!1),this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){window.removeEventListener("message",this.onWindowEvent),this._registered=!1}sendMessage(e){const r=JSON.stringify(e,Ts);e.type===Ue.INIT?this.postMessage(r,!0):this.postMessage(r)}get isPopup(){return this._isPopup}postMessage(e,r=!1){if(r!==!0&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}r?this.parentWindow.postMessage(e,"*"):this.appOrigin&&this.appOrigin.length>4?this.parentWindow.postMessage(e,this.appOrigin):Se.error("unable to postMessage as parentOrigin is invalid")}}function NF(t){return t&&typeof t=="object"&&(t.windowTransport&&typeof t.windowTransport=="object"||t.proxyTransport&&typeof t.proxyTransport=="object"||t.extensionTransport&&typeof t.extensionTransport=="object"||t.unrealTransport&&typeof t.unrealTransport=="object")&&(t.windowTransport&&t.windowTransport.enabled||t.proxyTransport&&t.proxyTransport.enabled||t.extensionTransport&&t.extensionTransport.enabled||t.unrealTransport&&t.unrealTransport.enabled)}class ym{constructor(...e){var r=this;this.messageProviders=void 0,this.provider=void 0,this.register=()=>{if(this.messageProviders.length===1){this.provider=this.messageProviders[0],this.provider.register();return}this.messageProviders.forEach(n=>{n.register(),n.once("open",()=>{this.provider||(this.provider=n,this.messageProviders.forEach(s=>{this.provider!==s&&s.unregister()}))})})},this.unregister=()=>{this.messageProviders.forEach(n=>n.unregister()),this.provider=void 0},this.openWallet=(n,s,i)=>{if(this.provider){this.provider.openWallet(n,s,i);return}this.messageProviders.forEach(o=>o.openWallet(n,s,i))},this.sendMessageRequest=async function(n){if(r.provider)return r.provider.sendMessageRequest(n);throw new Error("impossible state, wallet must be opened first")},this.waitUntilOpened=async function(){return r.provider?r.provider.waitUntilOpened():Promise.race(r.messageProviders.map(n=>n.waitUntilOpened()))},this.waitUntilConnected=async function(){if(r.provider)return r.provider.waitUntilConnected();throw new Error("impossible state, wallet must be opened first")},this.messageProviders=e,this.provider=void 0}static new(e){var r,n,s,i;const o=new ym;if((r=e.windowTransport)!=null&&r.enabled&&typeof window=="object"&&e.walletAppURL){const a=new RF(e.walletAppURL);o.add(a)}if((n=e.proxyTransport)!=null&&n.enabled){const a=new TF(e.proxyTransport.appPort);o.add(a)}if((s=e.extensionTransport)!=null&&s.enabled){const a=new OF(e.extensionTransport.runtime);o.add(a)}if((i=e.unrealTransport)!=null&&i.enabled&&e.windowTransport&&e.walletAppURL){const a=new IF(e.walletAppURL);o.add(a)}return o.register(),o}add(...e){this.messageProviders.push(...e)}closeWallet(){this.provider&&this.provider.closeWallet()}isOpened(){return this.provider?this.provider.isOpened():!1}isConnected(){return this.provider?this.provider.isConnected():!1}on(e,r){if(this.provider){this.provider.on(e,r);return}this.messageProviders.forEach(n=>{n.on(e,r)})}once(e,r){if(this.provider){this.provider.once(e,r);return}this.messageProviders.forEach(n=>{n.once(e,r)})}emit(e,...r){if(this.provider)return this.provider.emit(e,...r);for(let n=0;n({connected:!1})),a=o;return a.connected&&!a.session&&(a.session=await s.walletSession(i==null?void 0:i.networkId)),o},this.isSignedIn=async function(){return await s.signerReady(),!!s.account},this.getAccount=async function(){if(await s.signerReady(),s.account===void 0)throw new Error("signerReady failed resolve");return s.account},this.account=e,this.prompter=r,this.networks=n}defaultChainId(){var e,r;return(e=(r=this.prompter)==null?void 0:r.getDefaultChainId())!=null?e:this.networks[0].chainId}async signIn(e,r={}){this.setAccount(e);const{connect:n,defaultNetworkId:s}=r;if(n){const a=this._connectOptions;let c;if(this.prompter!==null){var i;c=await((i=this.prompter)==null?void 0:i.promptSignInConnect(a))}else c=await this.connect(a);this.notifyConnect(c),(!a||a.keepWalletOpened!==!0)&&this.notifyClose()}if(s&&this.defaultChainId()!==s){var o;await((o=this.prompter)==null?void 0:o.promptChangeNetwork(s))}}signOut(){this.account&&this.notifyDisconnect(),this.setAccount(null)}signerReset(){this.account=void 0}signerReady(e=Gfe){return new Promise((r,n)=>{this.account!==void 0?r():(setTimeout(()=>{this.account===void 0&&(this.signerReadyCallbacks=[],n("signerReady timed out"))},e),this.signerReadyCallbacks.push(r))})}async connect(e){var r,n;if(!this.account)return{connected:!1,chainId:"0x0",error:"unable to connect without signed in account"};const s=(r=(n=e==null?void 0:e.networkId)!=null?n:this.defaultChainId())!=null?r:L.MAINNET,i=ok(s).chainId,o={connected:!0,chainId:pr(i)};if(e&&e.authorize){const a={app:e.app,origin:e.origin,expiry:e.expiry,nonce:e.authorizeNonce};try{o.proof=await wj(this.account,i,a)}catch(c){return Se.warn(`connect, signAuthorization failed for options: ${JSON.stringify(e)}, due to: ${c.message}`),{connected:!1,chainId:"0x0",error:`signAuthorization failed: ${c.message}`}}}return o.session=this.walletSession(i),o}async sendMessageRequest(e){var r;const s=Number(((r=e.clientVersion)==null?void 0:r.split(".")[0])||"0")<2,i={id:e.data.id,jsonrpc:"2.0",result:null,error:void 0};try{const o=await this.request({method:e.data.method,params:e.data.params,chainId:e.chainId});return er({},e,{data:s?er({},i,{result:o}):o})}catch(o){return er({},e,{data:s?er({},i,{error:o}):{error:o}})}}async request(e){await this.getAccount();try{var r,n;if((!this.account||this.account===null)&&!Kfe.includes(e.method))throw xF;const l=this.account;if(!l)throw new Error("WalletRequestHandler: wallet account is not configured");const u=(r=this.account)==null?void 0:r.providerFor((n=e.chainId)!=null?n:this.defaultChainId());if(!u)throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${e.chainId}`);const f=u instanceof zt?u:void 0;switch(e.method){case"net_version":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("net_version",[])}case"eth_chainId":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("eth_chainId",[])}case"eth_accounts":return[l.address];case"eth_getBalance":{const[d,h]=e.params,y=await u.getBalance(d,h);return el(y)}case"sequence_sign":case"personal_sign":case"eth_sign":{let d;switch(e.method){case"sequence_sign":case"personal_sign":{const[b,v]=e.params;d=b;break}case"eth_sign":{const[b,v]=e.params;d=v;break}}let h="";const y=pm(d),p=e.method==="sequence_sign";if(this.prompter===null){var s;h=await l.signMessage(y,(s=e.chainId)!=null?s:this.defaultChainId(),p?"eip6492":"ignore")}else h=await this.prompter.promptSignMessage({chainId:e.chainId,message:Q(y),eip6492:p},this.connectOptions);if(h&&h.length>0)return h;throw new Error("declined by user")}case"sequence_signTypedData_v4":case"eth_signTypedData":case"eth_signTypedData_v4":{const[d,h]=e.params;let y;if(typeof h=="string")try{y=JSON.parse(h)}catch(v){console.warn("walletRequestHandler: error parsing typedData",v)}else y=h;if(!y||!y.domain||!y.types||!y.message)throw new Error("invalid typedData object");let p="";const b=e.method==="sequence_signTypedData_v4";if(this.prompter===null){var i;p=await l.signTypedData(y.domain,y.types,y.message,(i=e.chainId)!=null?i:this.defaultChainId(),b?"eip6492":"ignore")}else p=await this.prompter.promptSignMessage({chainId:e.chainId,typedData:y,eip6492:b},this.connectOptions);if(p&&p.length>0)return p;throw new Error("declined by user")}case"eth_sendTransaction":{const d=zfe(e.params[0]).map(y=>("gas"in y&&y.gasLimit===void 0&&(y.gasLimit=y.gas,delete y.gas),y));G2(l.address,d);let h="";if(this.prompter===null){var o,a;const y=await l.sendTransaction(d,(o=e.chainId)!=null?o:this.defaultChainId());h=(a=y==null?void 0:y.hash)!=null?a:""}else h=await this.prompter.promptSendTransaction(d,e.chainId,this.connectOptions);if(h)return h;throw new Error("declined by user")}case"eth_signTransaction":{const[d]=e.params;if(Te(d.from)!==l.address)throw new Error("sender address does not match wallet");if(G2(l.address,d),this.prompter===null){var c;return await l.signTransactions(d,(c=e.chainId)!=null?c:this.defaultChainId())}else return await this.prompter.promptSignTransaction(d,e.chainId,this.connectOptions)}case"eth_sendRawTransaction":if(ye.transaction.isSignedTransactionBundle(e.params[0])){const d=Number(e.params[0].chainId);return(await l.relayer(d).relay(e.params[0])).hash}else return(await u.broadcastTransaction(e.params[0])).hash;case"eth_getTransactionCount":{const d=Te(e.params[0]),h=e.params[1],y=await u.getTransactionCount(d,h);return el(BigInt(y))}case"eth_blockNumber":return await u.getBlockNumber();case"eth_getBlockByNumber":return await u.getBlock(e.params[0]);case"eth_getBlockByHash":return await u.getBlock(e.params[0]);case"eth_getTransactionByHash":return await u.getTransaction(e.params[0]);case"eth_call":{const[d,h]=e.params;return await u.call(er({},d,{blockTag:h}))}case"eth_getCode":{const[d,h]=e.params;return await u.getCode(d,h)}case"eth_estimateGas":{const[d]=e.params;return await u.estimateGas(d)}case"eth_gasPrice":{const d=await u.getFeeData();return d.gasPrice===null?null:el(d.gasPrice)}case"wallet_switchEthereumChain":{const[d]=e.params;if(!d.chainId||d.chainId.length===0)throw new Error("invalid chainId");const h=BigInt(d.chainId);return this.setDefaultChainId(Number(h)),null}case"sequence_getWalletContext":return l.contexts;case"sequence_getWalletConfig":{const[d]=e.params;return d?[(await l.status(d)).onChain.config]:await Promise.all(l.networks.map(async function(h){return(await l.status(h.chainId)).onChain.config}))}case"sequence_getWalletState":{const[d]=e.params;return d?[P3(d,await l.status(d))]:await Promise.all(l.networks.map(async function(h){const y=await l.status(h.chainId);return P3(h.chainId,y)}))}case"sequence_getNetworks":return await this.getNetworks(!0);case"sequence_isSequence":return!0;case"sequence_updateConfig":throw new Error("sequence_updateConfig method is not allowed from a dapp");case"sequence_publishConfig":throw new Error("sequence_publishConfig method is not allowed from a dapp");case"sequence_gasRefundOptions":break;case"sequence_getNonce":break;case"sequence_relay":break;case"sequence_setDefaultNetwork":{const[d]=e.params;if(!d)throw new Error("invalid request, method argument defaultChainId cannot be empty");return this.setDefaultChainId(d),await this.getNetworks(!0)}default:{if(!f)throw new Error("Account provider doesn't support send method");return await f.send(e.method,e.params)}}}catch(l){throw Se.error(l),{message:typeof l=="string"?l:(l==null?void 0:l.message)||"unkown error",code:4001}}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}async getAddress(){var e,r;return(e=(r=this.account)==null?void 0:r.address)!=null?e:""}get openIntent(){return this._openIntent}setOpenIntent(e){this._openIntent=e}get connectOptions(){return this._connectOptions}setConnectOptions(e){var r;this._connectOptions=e,(r=this.onConnectOptionsChange)==null||r.call(this,e)}async setDefaultChainId(e){var r;return await((r=this.prompter)==null?void 0:r.promptChangeNetwork(e)),this.defaultChainId()}async getNetworks(e){return this.account?e?this.account.networks.map(r=>{const n=er({},r);return n.provider=void 0,n.relayer=void 0,n}):this.account.networks:(Se.warn("signer not set: getNetworks is returning an empty list"),[])}walletSession(e){if(!this.account)return;const r={walletContext:this.account.contexts,accountAddress:this.account.address,networks:this.account.networks.map(s=>er({},s,{provider:void 0,relayer:void 0}))};if(e){const s=Ns(r.networks,e);if(s){var n;(n=r.networks)==null||n.forEach(i=>delete i.isDefaultChain),s.isDefaultChain=!0}}return r}notifyConnect(e,r){var n;if(console.log("emit connect",e),this.events.emit("connect",e),(n=e.session)!=null&&n.accountAddress){var s;this.events.emit("accountsChanged",[(s=e.session)==null?void 0:s.accountAddress],r)}}notifyDisconnect(e){this.events.emit("accountsChanged",[],e),this.events.emit("disconnect",void 0,e)}notifyChainChanged(e,r){this.events.emit("chainChanged",pr(e),r)}async notifyNetworks(e){const r=e||await this.getNetworks(!0);if(this.events.emit("networks",r),r.length>0){const n=r.find(s=>s.chainId===this.defaultChainId());n&&this.events.emit("chainChanged",pr(n.chainId))}else this.events.emit("chainChanged","0x0")}async notifyWalletContext(){if(!this.account){Se.warn("signer not set: skipping to notify wallet context");return}const e=this.account.contexts;this.events.emit("walletContext",e)}notifyClose(e){this.events.emit("close",e)}setAccount(e){if(this.account=e,e!==void 0){for(let r=0;rc.canOnchainValidate||c.original.version===2&&n,o=await r.status(s);if(i(o))return!0;if(await e.promptConfirmWalletDeploy(s,this.connectOptions)){const c=await r.status(s);return i(c)?!0:(Se.error("WalletRequestHandler: result for promptConfirmWalletDeploy is not correct"),!1)}return!1}}function P3(t,e){return{context:e.original.context,config:e.onChain.config,address:ye.context.addressOf(e.original.context,e.original.imageHash),chainId:t,deployed:e.onChain.deployed,imageHash:e.imageHash,lastImageHash:e.onChain.imageHash,published:!0,status:e}}const Kfe=["net_version","eth_chainId","eth_getBalance","eth_getTransactionCount","eth_blockNumber","eth_getBlockByNumber","eth_getBlockByHash","eth_getTransactionByHash","eth_getCode","eth_estimateGas","eth_gasPrice","sequence_getWalletContext","sequence_getNetworks","sequence_setDefaultNetwork"];function Qfe(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i=0)&&(r[s]=t[s]);return r}class Sd{get utils(){return this.provider.utils}constructor(e,r){this.client=e,this.provider=r,this.singleNetworkSigners={},this._isSequenceSigner=!0}async getAddress(){return this.client.getAddress()}connect(e){if(!Td.is(e))throw new Error("SequenceSigner can only be connected to a SequenceProvider");return new Sd(this.client,e)}getSigner(e){if(!e)return this;const r=this.provider.toChainId(e);return this.singleNetworkSigners[r]||(this.singleNetworkSigners[r]=new Fk(this.client,this.provider,r)),this.singleNetworkSigners[r]}useChainId(e){return this.provider.toChainId(e)||this.client.getChainId()}async signMessage(e,r){const{eip6492:n=!0}=r||{},s=this.useChainId(r==null?void 0:r.chainId);return this.client.signMessage(e,{eip6492:n,chainId:s})}async signTypedData(e,r,n,s){const{eip6492:i=!0}=s||{},o=this.useChainId(s==null?void 0:s.chainId);return this.client.signTypedData({domain:e,types:r,message:n},{eip6492:i,chainId:o})}getProvider(e){return this.provider.getProvider(e)}async sendTransaction(e,r){const n=this.useChainId(r==null?void 0:r.chainId),s=await SF(e),i=await this.client.sendTransaction(s,{chainId:n}),o=this.getProvider(n);try{return await new Promise(c=>{(async function u(){const f=await o.getTransaction(i);if(f!==null)return c(f);await o.once("block",u)})()})}catch(a){throw a.transactionHash=i,a}}async getWalletConfig(e){const r=this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}getNetworks(){return this.client.getNetworks()}async getBalance(e,r){return this.getProvider(r==null?void 0:r.chainId).getBalance(this.getAddress(),e)}async estimateGas(e,r){return this.getProvider(r==null?void 0:r.chainId).estimateGas(e)}async call(e,r){return this.getProvider(r==null?void 0:r.chainId).call(e)}getChainId(){return Promise.resolve(this.client.getChainId())}async getFeeData(e){return this.getProvider(e==null?void 0:e.chainId).getFeeData()}async resolveName(e){const r=await this.provider.resolveName(e);if(r===null)throw new Error(`ENS name not found: ${e}`);return r}_checkProvider(e){}getNonce(e){throw new Error("SequenceSigner does not support getNonce")}populateCall(e){throw new Error("SequenceSigner does not support populateCall")}populateTransaction(e){throw new Error("SequenceSigner does not support populateTransaction")}checkTransaction(e){throw new Error("SequenceSigner does not support checkTransaction")}getTransactionCount(e){throw new Error("SequenceSigner does not support getTransactionCount")}signTransaction(e){throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.")}static is(e){return e&&typeof e=="object"&&e._isSequenceSigner===!0}}class Fk extends Sd{constructor(e,r,n){super(e,r.getProvider(n)),this.chainId=n,this._isSingleNetworkSequenceSigner=!0}_useChainId(e){const r=this.provider.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This signer only supports the network ${this.chainId}, but ${r} was requested.`);return r||this.provider.toChainId(this.chainId)}useChainId(e){return this._useChainId(e)}getChainId(){return Promise.resolve(this.provider.toChainId(this.chainId))}getProvider(e){return super.getProvider(this._useChainId(e))}getSigner(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceSigner===!0}}class Jfe{constructor(e){if(this.signer=e,Fk.is(e))throw new Error("WalletUtils does not support SingleNetworkSequenceSigner")}signMessage(e,r,n){return this.signer.signMessage(e,{chainId:r,eip6492:n})}signTypedData(e,r,n,s,i){return this.signer.signTypedData(e,r,n,{chainId:s,eip6492:i})}async isValidSignature(e,r,n,s){return ad(e,r,n,this.signer.getProvider(s))}async isValidMessageSignature(e,r,n,s){const i=this.signer.getProvider(s),o=pm(r),a=ik(o);return ad(e,a,n,i)}isValidTypedDataSignature(e,r,n,s){return this.isValidSignature(e,kd(r),n,s)}}const Yfe=["method"],I3=["connect","disconnect","chainChanged","accountsChanged"];class Td extends lo{constructor(e,r,n=id,s){super(e.getChainId(),s),this.client=e,this.providerFor=r,this.networks=n,this.options=s,this.singleNetworkProviders={},this._isSequenceProvider=!0,this.utils=void 0,this.signer=void 0,this.eip1193EventListeners=new Map,e.onConnect(i=>{var o;(o=this.eip1193EventListeners.get("connect"))==null||o.forEach(a=>a(i))}),e.onDisconnect(i=>{var o;(o=this.eip1193EventListeners.get("disconnect"))==null||o.forEach(a=>a(i))}),e.onDefaultChainIdChanged(i=>{var o;(o=this.eip1193EventListeners.get("chainChanged"))==null||o.forEach(a=>a(i))}),e.onAccountsChanged(i=>{var o;(o=this.eip1193EventListeners.get("accountsChanged"))==null||o.forEach(a=>a(i))}),this.signer=new Sd(this.client,this),this.utils=new Jfe(this.signer)}async on(e,r){if(I3.includes(e)){const n=this.eip1193EventListeners.get(e)||new Set;return n.add(r),this.eip1193EventListeners.set(e,n),this}return super.on(e,r)}async off(e,r){if(I3.includes(e)){const n=this.eip1193EventListeners.get(e);return n&&(r?n.delete(r):n.clear()),this}return super.off(e,r)}getSigner(e){return this.signer.getSigner(e)}connect(e){return this.client.connect(e)}disconnect(){return this.client.disconnect()}isConnected(){return this.client.isConnected()}getSession(){return this.client.getSession()}listAccounts(){return[this.client.getAddress()]}getAddress(){return this.client.getAddress()}getNetworks(){return this.client.getNetworks()}getChainId(){return this.client.getChainId()}setDefaultChainId(e){return this.client.setDefaultChainId(this.toChainId(e))}isOpened(){return this.client.isOpened()}closeWallet(){return this.client.closeWallet()}getWalletContext(){return this.client.getWalletContext()}async getWalletConfig(e){const r=await this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}authorize(e){return this.client.connect(er({},e,{authorize:!0}))}async openWallet(e,r){return await this.client.openWallet(e,r),!0}toChainId(e){if(e===void 0)return;const r=Ns(this.networks,e);if(!r)throw new Error(`Unsupported network ${e}`);return r.chainId}async useChainId(e){return this.toChainId(e)||this.client.getChainId()}getProvider(e){if(!e)return this;const r=this.toChainId(e);return this.singleNetworkProviders[r]||(this.singleNetworkProviders[r]=new MF(this.client,this.providerFor,r,this.options)),this.singleNetworkProviders[r]}async _getSubprovider(e){const r=await this.useChainId(e),n=this.providerFor(r);if(!n)throw new Error(`Unsupported network ${r}`);return n}async _perform(e){var r;const{method:n}=e,s=Qfe(e,Yfe),i=await this._getSubprovider(),o=(r=i.getRpcRequest(e))!=null?r:{method:n,args:Object.values(s)};if(!o)throw new Error(`Unsupported method ${e.method}`);return i.send(o.method,o.args)}async perform(e,r){if(e==="eth_chainId")return pr(await this.useChainId());if(e==="eth_accounts")return[this.client.getAddress()];if(e==="wallet_switchEthereumChain"){const n=r[0],s=_F(n);return this.setDefaultChainId(s)}return e==="eth_sendTransaction"||e==="eth_sign"||e==="eth_signTypedData"||e==="eth_signTypedData_v4"||e==="personal_sign"||e==="sequence_sign"||e==="sequence_signTypedData_v4"?this.client.request({method:e,params:r,chainId:this.getChainId()}):this._perform(er({method:e},r))}send(e,r){return this.perform(e,r)}request(e){return this.perform(e.method,e.params)}async _detectNetwork(){const e=this.client.getChainId(),r=Ns(this.networks,e);if(!r)throw new Error(`Unknown network ${e}`);return new ot(r.name,r.chainId)}async detectNetwork(){return this._detectNetwork()}async waitForTransaction(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).waitForTransaction(e,r,n)}async getBlockNumber(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getBlockNumber()}async getFeeData(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getFeeData()}async getBalance(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBalance(e,r)}async getTransactionCount(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getTransactionCount(e,r)}async getCode(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getCode(e,r)}async getStorage(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).getStorage(e,r,n)}async call(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).call(e)}async estimateGas(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).estimateGas(e)}async getBlock(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBlock(e,r)}async getTransaction(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getTransaction(e)}async getLogs(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getLogs(e)}async supportsENS(){return(await this.getNetworks()).some(r=>r.chainId===1)}async getResolver(e){return await this.supportsENS()?(await this._getSubprovider(1)).getResolver(e):null}async resolveName(e){return ON(e)?e:await this.supportsENS()?(await this._getSubprovider(1)).resolveName(e):null}async lookupAddress(e){return await this.supportsENS()?(await this._getSubprovider(1)).lookupAddress(e):null}async getAvatar(e){return await this.supportsENS()?(await this._getSubprovider(1)).getAvatar(e):null}}Td.is=t=>t&&typeof t=="object"&&t._isSequenceProvider===!0;function _F(t){return typeof t=="object"?_F(t.chainId):Number(t)}class MF extends Td{constructor(e,r,n,s){super(e,r,void 0,s),this.chainId=n,this._isSingleNetworkSequenceProvider=!0}_useChainId(e){const r=this.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This provider only supports the network ${this.chainId}, but ${r} was requested.`);return r||super.toChainId(this.chainId)}useChainId(e){return Promise.resolve(this._useChainId(e))}getChainId(){return super.toChainId(this.chainId)}async getNetwork(){const e=await this.client.getNetworks(),r=Ns(e,this.chainId);if(!r)throw new Error(`Unsupported network ${this.chainId}`);return new ot(r.name,r.chainId)}getProvider(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}getSigner(e){return super.getSigner(this._useChainId(e))}setDefaultChainId(e){throw new Error(`This provider only supports the network ${this.chainId}; use the parent provider to switch networks.`)}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceProvider===!0}}class Xfe extends Cfe{}const Zfe=(t,e)=>{e||(e="https://nodes.sequence.app");const r=!t,n={};return t&&(n.headers={"X-Access-Key":t}),new Xfe(e,n,{noop:r,defaultEnabled:!0,privacy:{userIdHash:!0,userAgentSalt:!1},initProps:()=>Qi()?{origin:window.location.origin}:{}})};class nl{constructor(e){this.store=e}connectedSession(){const e=this.getSession();if(e&&e.accountAddress&&e.walletContext&&e.networks)return{accountAddress:e.accountAddress,walletContext:e.walletContext,networks:e.networks};throw new Error("Sequence session not connected")}hasSession(){var e;return((e=this.getSession())==null?void 0:e.accountAddress)!==void 0}setSession(e){return this.store.setItem(nl.SESSION_LOCALSTORE_KEY,JSON.stringify(e))}getSession(){const e=this.store.getItem(nl.SESSION_LOCALSTORE_KEY);if(e)return JSON.parse(e)}async clearSession(){return this.store.removeItem(nl.SESSION_LOCALSTORE_KEY)}}nl.SESSION_LOCALSTORE_KEY="@sequence.session";class sl{constructor(e,r=1){this.store=e,this.startingChainId=r,this.callbacks=[],e.onItemChange(sl.SESSION_CHAIN_ID_KEY,n=>{if(n){const s=parseInt(n);this.callbacks.forEach(i=>i(s))}})}onDefaultChainIdChanged(e){return this.callbacks.push(e),()=>{this.callbacks=this.callbacks.filter(r=>r!==e)}}setDefaultChainId(e){e!==this.getDefaultChainId()&&this.store.setItem(sl.SESSION_CHAIN_ID_KEY,e.toString())}getDefaultChainId(){const e=this.store.getItem(sl.SESSION_CHAIN_ID_KEY);return!e||e.length===0?this.startingChainId:parseInt(e)}}sl.SESSION_CHAIN_ID_KEY="@sequence.session.defaultChainId";class Uk{constructor(e,r,n){var s,i;if(this.session=void 0,this.defaultChainId=void 0,this.callbacks={},this.transport=void 0,this.defaultEIP6492=void 0,this.projectAccessKey=void 0,this.analytics=void 0,NF(e))this.transport=ym.new(e);else if(gF(e))this.transport=e;else throw new Error("Invalid transport");const o=n==null?void 0:n.defaultChainId;if(this.defaultEIP6492=(s=n==null?void 0:n.defaultEIP6492)!=null?s:!1,this.session=new nl(r),this.defaultChainId=new sl(r,o),this.transport.on("accountsChanged",l=>{var u;l.length>1&&console.warn("SequenceClient: wallet-webapp returned more than one account"),(u=this.callbacks.accountsChanged)==null||u.forEach(f=>f(l))}),this.transport.on("connect",l=>{var u;const f=pr(this.getChainId());(u=this.callbacks.connect)==null||u.forEach(d=>d(er({},l,{chainId:f})))}),this.transport.on("disconnect",(l,u)=>{var f;(f=this.callbacks.disconnect)==null||f.forEach(d=>d(l,u))}),this.transport.on("networks",l=>{var u;(u=this.callbacks.networks)==null||u.forEach(f=>f(l))}),this.transport.on("walletContext",l=>{var u;(u=this.callbacks.walletContext)==null||u.forEach(f=>f(l))}),this.transport.on("open",l=>{var u;(u=this.callbacks.open)==null||u.forEach(f=>f(l))}),this.transport.on("close",()=>{var l;(l=this.callbacks.close)==null||l.forEach(u=>u())}),this.transport.on("chainChanged",(l,u)=>{var f;(f=this.callbacks.chainChanged)==null||f.forEach(d=>d(l,u))}),this.defaultChainId.onDefaultChainIdChanged(l=>{var u;const f=pr(l);(u=this.callbacks.chainChanged)==null||u.forEach(d=>d(f))}),n!=null&&n.projectAccessKey&&(this.projectAccessKey=n.projectAccessKey),this.projectAccessKey&&n!=null&&n.analytics&&(this.analytics=Zfe(this.projectAccessKey)),(i=this.session.getSession())!=null&&i.accountAddress){var a,c;(a=this.analytics)==null||a.identify((c=this.session.getSession())==null||(c=c.accountAddress)==null?void 0:c.toLowerCase())}}registerCallback(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),()=>{this.callbacks[e]=this.callbacks[e].filter(n=>n!==r)}}onOpen(e){return this.registerCallback("open",e)}onClose(e){return this.registerCallback("close",e)}onConnect(e){return this.registerCallback("connect",e)}onDisconnect(e){return this.registerCallback("disconnect",e)}onNetworks(e){return this.registerCallback("networks",e)}onAccountsChanged(e){return this.registerCallback("accountsChanged",e)}onWalletContext(e){return this.registerCallback("walletContext",e)}onChainChanged(e){return this.registerCallback("chainChanged",e)}onDefaultChainIdChanged(e){return this.registerCallback("chainChanged",e)}getChainId(){return this.defaultChainId.getDefaultChainId()}setDefaultChainId(e){return this.defaultChainId.setDefaultChainId(e)}async openWallet(e,r){return this.transport.openWallet(e,r,this.getChainId()),await this.transport.waitUntilOpened(),this.isOpened()}closeWallet(){return this.transport.closeWallet()}isOpened(){return this.transport.isOpened()}isConnected(){return this.session.hasSession()}getSession(){return this.session.getSession()}getAddress(){return this.session.connectedSession().accountAddress}async connect(e){if((e==null?void 0:e.authorizeVersion)===void 0&&(e.authorizeVersion=2),(e==null?void 0:e.refresh)===!0&&this.disconnect(),e.projectAccessKey=this.projectAccessKey,e&&e.authorize){if(!e.app)throw new Error("connecting with 'authorize' option also requires 'app' to be set");e.authorizeVersion===void 0&&(e.authorizeVersion=2)}await this.openWallet(void 0,{type:"connect",options:er({},e,{networkId:this.getChainId(),clientVersion:$r})});const r=await this.transport.waitUntilConnected().catch(i=>i instanceof Error?{connected:!1,error:i.message}:{connected:!1,error:JSON.stringify(i)});if(r.chainId&&(r.chainId=BigInt(r.chainId).toString()),r.connected){var n;if(!r.session)throw new Error("impossible state, connect response is missing session");if(this.session.setSession(r.session),(n=r.session)!=null&&n.accountAddress){var s;(s=this.analytics)==null||s.identify(r.session.accountAddress.toLowerCase())}}return r}disconnect(){var e;return this.isOpened()&&this.closeWallet(),(e=this.analytics)==null||e.reset(),this.session.clearSession()}async request(e){e.method=this.mapSignMethod(e.method);const r=await this.transport.request(e);return ede(r)}async getNetworks(e){const r=this.session.connectedSession();return e&&(r.networks=await this.request({method:"sequence_getNetworks"}),this.session.setSession(r)),r.networks}signMethod(e){return(e==null?void 0:e.eip6492)===void 0?"personal_sign":e.eip6492?"sequence_sign":"legacy_sign"}signTypedDataMethod(e){return(e==null?void 0:e.eip6492)===void 0?"eth_signTypedData_v4":e.eip6492?"sequence_signTypedData_v4":"legacy_signTypedData_v4"}mapSignMethod(e){return e==="personal_sign"?this.defaultEIP6492?"sequence_sign":"personal_sign":e==="eth_signTypedData_v4"?this.defaultEIP6492?"sequence_signTypedData_v4":"eth_signTypedData_v4":e==="legacy_sign"?"personal_sign":e==="legacy_signTypedData_v4"?"eth_signTypedData_v4":e}async signMessage(e,r){var n;const s=this.signMethod(r);return(n=this.analytics)==null||n.track({event:"SIGN_MESSAGE_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),e=H(Lk(e)),this.request({method:s,params:[e,this.getAddress()],chainId:r==null?void 0:r.chainId})}async signTypedData(e,r){var n;const s=this.signTypedDataMethod(r),i=Bs.getPayload(e.domain,e.types,e.message);return(n=this.analytics)==null||n.track({event:"SIGN_TYPED_DATA_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:s,params:[this.getAddress(),i],chainId:(r==null?void 0:r.chainId)||e.domain.chainId&&Number(e.domain.chainId)||this.getChainId()})}async sendTransaction(e,r){var n;const s=Array.isArray(e)?e:[e],i=Hfe(s);return(n=this.analytics)==null||n.track({event:"SEND_TRANSACTION_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:"eth_sendTransaction",params:[i],chainId:r==null?void 0:r.chainId})}async getWalletContext(){return this.request({method:"sequence_getWalletContext"})}async getOnchainWalletConfig(e){const r=await this.request({method:"sequence_getWalletConfig",params:[(e==null?void 0:e.chainId)||this.getChainId()],chainId:e==null?void 0:e.chainId});return Array.isArray(r)?r[0]:r}}const ede=t=>t&&typeof t=="object"&&"jsonrpc"in t&&"result"in t?t.result:t,K2={transports:{walletAppURL:"https://sequence.app",windowTransport:{enabled:!0},proxyTransport:{enabled:!1}},defaultNetwork:1,analytics:!0};let li;const DF=(t,e)=>{var r,n,s;if(!t||typeof t!="string")throw new Error("Please pass a projectAccessKey in initWallet.");if(li)return li;const i=er({},K2,e,{transports:er({},K2.transports,e==null?void 0:e.transports)}),o={},a=(r=(n=i.networks)==null?void 0:n.filter(h=>{h.rpcUrl!==void 0&&h.chainId!==void 0&&id.find(y=>y.chainId===h.chainId)}))!=null?r:[],c=id.map(h=>{var y;const p=(y=i.networks)==null?void 0:y.find(b=>b.chainId===h.chainId);return p?er({},h,p):h}).concat(a).map(h=>(h.rpcUrl.includes(t)||(h.rpcUrl=h.rpcUrl+`/${t}`),h)),l=h=>{if(!o[h]){var y;const p=(y=c.find(b=>b.chainId===h))==null?void 0:y.rpcUrl;if(!p)throw new Error(`no rpcUrl found for chainId: ${h}`);o[h]=new zM(p,{middlewares:[WM,$M,new ak]},{cacheTimeout:-1})}return o[h]},u=i.defaultNetwork?(s=Ns(c,i.defaultNetwork))==null?void 0:s.chainId:void 0;if(!u&&i.defaultNetwork)throw new Error(`defaultNetwork not found for chainId: ${i.defaultNetwork}`);const f=i.localStorage||Ov(),d=new Uk(i.transports,f,{defaultChainId:u,defaultEIP6492:i.defaultEIP6492,projectAccessKey:t,analytics:i.analytics});return li=new Td(d,l),li},BF=()=>{li&&(li.client.closeWallet(),li.client.transport.unregister(),li=void 0)},LF=()=>{if(!li)throw new Error("Wallet has not been initialized, call sequence.initWallet(config) first.");return li},tde=Object.freeze(Object.defineProperty({__proto__:null,BaseInjectedTransport:Wfe,BaseProviderTransport:R1,BaseWalletTransport:N1,CHANNEL_ID:jk,DefaultChainIdTracker:sl,DefaultProviderConfig:K2,ErrSignedInRequired:xF,EventType:Ue,ExtensionMessageHandler:$fe,ExtensionMessageProvider:OF,InitState:dt,LocalStorage:M0,MemoryItemStore:AF,MuxMessageProvider:ym,OpenState:Kn,PROVIDER_OPEN_TIMEOUT:Bk,ProviderError:mF,ProxyMessageChannel:jfe,ProxyMessageChannelPort:q2,ProxyMessageHandler:Ffe,ProxyMessageProvider:TF,SequenceClient:Uk,SequenceClientSession:nl,SequenceProvider:Td,SequenceSigner:Sd,SingleNetworkSequenceProvider:MF,SingleNetworkSequenceSigner:Fk,UnrealMessageHandler:Ufe,UnrealMessageProvider:IF,WalletRequestHandler:qfe,WindowMessageHandler:Vfe,WindowMessageProvider:RF,WindowSessionParams:O1,getWallet:LF,initWallet:DF,isBrowserExtension:Iv,isMuxTransportTemplate:NF,isProviderTransport:gF,isUnityPlugin:CF,isValidMessageSignature:wF,isValidSignature:ad,isValidTypedDataSignature:EF,isWalletUpToDate:kF,messageToBytes:Lk,nextMessageIdx:bF,prefixEIP191Message:pm,resolveArrayProperties:SF,trimEIP191Prefix:Lfe,unregisterWallet:BF,useBestStore:Ov,validateTransactionRequest:G2},Symbol.toStringTag,{value:"Module"}));function en(t,e){return e.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in t)){var s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(t)}var rde=en({__proto__:null},[Loe]),nde=en({__proto__:null},[zoe]),sde=en({__proto__:null},[Aue]),ide=en({__proto__:null},[Vue]),ode=en({__proto__:null},[mle]),ade=en({__proto__:null},[Ole]),cde=en({__proto__:null},[Uae]),lde=en({__proto__:null},[tde]),ude=en({__proto__:null},[Zce]);const fde=ye.transaction;var dde=Object.freeze({__proto__:null,transactions:fde}),hde=en({__proto__:null,isValidSignature:ad,isValidMessageSignature:wF,isValidTypedDataSignature:EF,isWalletUpToDate:kF},[Tae]),pde=en({__proto__:null},[Oce]),yde=en({__proto__:null},[ele]),vde=en({__proto__:null},[Eue]),gde=en({__proto__:null},[Bce]),mde=en({__proto__:null},[ile]),ze=Object.freeze({__proto__:null,abi:rde,api:nde,auth:sde,guard:ide,indexer:ode,metadata:ade,network:cde,provider:lde,relayer:ude,transactions:dde,utils:hde,core:pde,signhub:yde,sessions:vde,migration:gde,account:mde,initWallet:DF,getWallet:LF,unregisterWallet:BF,SequenceProvider:Td,SequenceClient:Uk,SequenceSigner:Sd});const O3=[{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}];var xde="_1e9z9271";const bde=({message:t,loading:e})=>{const r=()=>t?` -...`:"...";return ie.jsx(zq,{label:"Console",defaultOpen:!0,children:ie.jsxs(me,{as:"pre",color:"text80",style:{fontFamily:"monospace",whiteSpace:"break-spaces",overflowWrap:"anywhere"},children:[t,e&&r(),ie.jsx(me,{className:xde,display:"inline-block",fontSize:"large",lineHeight:"4",style:{top:"-4px",position:"relative"},children:"_"})]})})};var wde="_1q07ov40";const Po=t=>{const{label:e,children:r,style:n,className:s}=t;return ie.jsxs(me,{marginTop:"10",marginBottom:"8",marginX:"0",width:"full",className:s,style:n,children:[e&&ie.jsx(me,{marginBottom:"2",children:ie.jsx(Ede,{children:e})}),ie.jsx(me,{className:wde,children:Wr.Children.map(r,(i,o)=>ie.jsx(me,{children:i},o))})]})},Ede=t=>ie.jsx(Tt,{variant:"normal",fontWeight:"medium",color:"text50",children:t.children}),Cde=()=>{const t=window.localStorage.getItem("defaultChainId");return t==null?null:Number(t)},R3=t=>"0x"+t.toString(16),kde="/demo-dapp/assets/logo-EKCqYZBG.svg",N3="/demo-dapp/assets/skyweaver-banner-AT9gQtXT.png",Ade="/demo-dapp/assets/skyweaver-banner-large-Dt2dVXke.png",_3="AQAAAAAAAAbvrgpWEC2Aefg5qYStQmwjBpA";bM({logLevel:"DEBUG"});const jF=[{name:"production",walletUrl:"https://sequence.app"},{name:"development",walletUrl:"https://dev.sequence.app"},{name:"local",walletUrl:"http://localhost:3333"}],Sde="https://api.sequence.app",M3=Cde()||L.MAINNET,Ec=new URLSearchParams(window.location.search),FF=Ec.get("env")??"production",Tde=jF.find(t=>t.name===FF),vu=Ec.get("walletAppURL")??Tde.walletUrl,Pde=Ec.has("showProhibitedActions");vu&&vu.length>0?ze.initWallet(_3,{defaultNetwork:M3,transports:{walletAppURL:vu}}):ze.initWallet(_3,{defaultNetwork:M3,transports:{walletAppURL:vu}});const Ide=()=>{const[t,e]=m.useState(null),[r,n]=m.useState(null),[s,i]=m.useState(!1),[o,a]=m.useState(!1),c=ze.getWallet().getProvider(),[l,u]=m.useState(c.getChainId()),[f,d]=m.useState(!1),[h,y]=m.useState(!1);m.useMemo(()=>{c.on("chainChanged",U=>{u(Number(BigInt(U)))})},[]),m.useEffect(()=>{a(c.isConnected())},[c]),m.useEffect(()=>{de()},[o]),m.useEffect(()=>{c.client.onOpen(()=>{console.log("wallet window opened")}),c.client.onClose(()=>{console.log("wallet window closed")})},[c]);const p={app:"Demo Dapp",askForEmail:!0},b=async(U={app:"Demo dapp"})=>{if(o){ue(),K("Wallet already connected!"),i(!1);return}U={...p,...U,settings:{...p.settings,...U.settings}};try{ue(),K("Connecting");const se=ze.getWallet(),ae=await se.connect(U);if(U.authorize&&ae.connected){let Oe=Ec.get("apiUrl");(!Oe||Oe.length===0)&&(Oe=Sde);const rt=new ze.api.SequenceAPIClient(Oe),{isValid:Ut}=await rt.isValidETHAuthProof({chainId:ae.chainId,walletAddress:ae.session.accountAddress,ethAuthProofString:ae.proof.proofString});K(`isValid (API)?: ${Ut}`)}if(U.authorize){const Oe=new gv;if(ae.proof){const rt=await Oe.decodeProof(ae.proof.proofString,!0),Ut=await se.utils.isValidTypedDataSignature(se.getAddress(),ae.proof.typedData,rt.signature,Number(BigInt(ae.chainId)));K(`connected using chainId: ${BigInt(ae.chainId).toString()}`),K(`isValid (client)?: ${Ut}`)}}i(!1),ae.connected?(K("Wallet connected!"),K(`shared email: ${ae.email}`),a(!0)):K("Failed to connect wallet - "+ae.error)}catch(se){console.error(se),oe()}},v=()=>{ze.getWallet().disconnect(),de(),a(!1)},g=()=>{ze.getWallet().openWallet()},x=()=>{const U=ze.getWallet(),ae={type:"openWithOptions",options:{app:"Demo Dapp",settings:{theme:"light",includedPaymentProviders:["moonpay","ramp"],defaultFundingCurrency:"eth",defaultPurchaseAmount:400,lockFundingCurrencyToDefault:!1}}};U.openWallet("wallet/add-funds",ae)},k=()=>{ze.getWallet().closeWallet()},S=async()=>{ue();const U=ze.getWallet();K(`isConnected?: ${U.isConnected()}`),i(!1)},I=async()=>{ue();const U=ze.getWallet();K(`isOpened?: ${U.isOpened()}`),i(!1)},R=async()=>{try{ue();const U=c.getChainId();K(`top chainId: ${U}`);const ae=c.getProvider().getChainId();K(`provider.getChainId(): ${ae}`);const rt=await c.getSigner().getChainId();K(`signer.getChainId(): ${rt}`),i(!1)}catch(U){console.error(U),oe()}},_=async()=>{try{ue();const U=ze.getWallet(),se=U.getAddress();K(`getAddress(): ${se}`);const Oe=U.getProvider().listAccounts();K(`accounts: ${JSON.stringify(Oe)}`),i(!1)}catch(U){console.error(U),oe()}},V=async()=>{try{ue();const U=ze.getWallet(),se=U.getProvider(),ae=U.getAddress(),Oe=await se.getBalance(ae);K(`balance check 1: ${Oe.toString()}`);const Ut=await U.getSigner().getBalance();K(`balance check 2: ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},F=async()=>{try{ue();const se=await ze.getWallet().getNetworks();K(`networks: ${JSON.stringify(se,null,2)}`),i(!1)}catch(U){console.error(U),oe()}},X=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=`1915 Robert Frost -The Road Not Taken - -Two roads diverged in a yellow wood, -And sorry I could not travel both -And be one traveler, long I stood -And looked down one as far as I could -To where it bent in the undergrowth - -Then took the other, as just as fair, -And having perhaps the better claim, -Because it was grassy and wanted wear -Though as for that the passing there -Had worn them really about the same, - -And both that morning equally lay -In leaves no step had trodden black. -Oh, I kept the first for another day! -Yet knowing how way leads on to way, -I doubted if I should ever come back. - -I shall be telling this with a sigh -Somewhere ages and ages hence: -Two roads diverged in a wood, and Iā€” -I took the one less traveled by, -And that has made all the difference. - -ā˜ ā˜€ ā˜‚`,Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},re=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=H(mt("Hello, world!")),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},le=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=mt("Hello, world!"),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},ee=async()=>{try{ue();const U=ze.getWallet();K("signing typedData...");const se={types:{Person:[{name:"name",type:"string"},{name:"wallet",type:"address"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person"},{name:"cc",type:"Person[]"},{name:"contents",type:"string"},{name:"attachements",type:"string[]"}]},primaryType:"Mail",domain:{name:"Ether Mail",version:"1",chainId:1,verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},message:{from:{name:"Cow",wallet:"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},to:{name:"Bob",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},cc:[{name:"Dev Team",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},{name:"Accounting",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"}],contents:"Hello, Bob!",attachements:["cat.png","dog.png"]}},ae=U.getSigner(),Oe=await ae.signTypedData(se.domain,se.types,se.message);K(`signature: ${Oe}`);const rt=await U.utils.isValidTypedDataSignature(U.getAddress(),se,Oe,await ae.getChainId());K(`isValid?: ${rt}`),i(!1)}catch(U){console.error(U),oe()}},D=async()=>{try{ue();const U=ze.getWallet(),se="0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",ae=new pt(["function withdraw(uint256 amount)"]),Oe={to:se,data:ae.encodeFunctionData("withdraw",["1000000000000000000"])},Ut=await U.getProvider().estimateGas(Oe);K(`estimated gas needed for wmatic withdrawal : ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},G=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner(),K(`Transfer txn on ${U.getChainId()} chainId`);const ae=await U.getAddress(),Oe={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Rw("1.234"),data:"0x"},rt={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Rw("0.4242"),data:"0x"},Ut=U.provider,wi=await Ut.getBalance(ae);K(`balance of ${ae}, before: ${wi}`);const vm=await U.sendTransaction([Oe,rt]);K(`txnResponse: ${JSON.stringify(vm)}`);const gm=await Ut.getBalance(ae);K(`balance of ${ae}, after: ${gm}`),i(!1)}catch(se){console.error(se),oe()}},Z=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=nv("1",1),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x07865c6e87b9f70255377e024ace6630c1eaa37f",value:0,data:new pt(O3).encodeFunctionData("transfer",[ae,R3(Oe)])},wi=await U.sendTransaction([Ut],{chainId:L.SEPOLIA});K(`txnResponse: ${JSON.stringify(wi)}`),i(!1)}catch(se){console.error(se),oe()}},E=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=nv("0.05",18),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",value:0,data:new pt(O3).encodeFunctionData("transfer",[ae,R3(Oe)])},wi=await U.sendTransaction([Ut]);K(`txnResponse: ${JSON.stringify(wi)}`),i(!1)}catch(se){console.error(se),oe()}},A=async()=>{try{const U=ze.getWallet(),se=U.getChainId()===L.ARBITRUM?L.OPTIMISM:L.ARBITRUM;G(U.getSigner(se))}catch(U){console.error(U),oe()}},O=async()=>{try{ue(),K("TODO"),i(!1)}catch(U){console.error(U),oe()}},M=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=["function balanceOf(address owner) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)","function transfer(address to, uint amount) returns (bool)","event Transfer(address indexed from, address indexed to, uint amount)"],Oe="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",rt=new dn(Oe,ae),Ut=await rt.symbol();K(`Token symbol: ${Ut}`);const wi=await rt.balanceOf(await U.getAddress());K(`Token Balance: ${wi.toString()}`),i(!1)}catch(se){console.error(se),oe()}},B=async()=>{try{ue();const U=ze.getWallet(),ae=await U.getSigner().getAddress(),rt=(await U.getNetworks()).find(gm=>gm.chainId===L.POLYGON);if(!rt)throw new Error("Could not find Polygon network in networks list");const Ut=new ze.indexer.SequenceIndexer(rt.indexerUrl),wi=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0});K(`tokens in your account: ${JSON.stringify(wi)}`);const vm=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0,contractAddress:"0x631998e91476DA5B870D741192fc5Cbc55F5a52E"});K(`skyweaver collectibles in your account: ${JSON.stringify(vm)}`),i(!1)}catch(U){console.error(U),oe()}},W=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModule.abi).encodeFunctionData("updateImplementation",[xi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},q=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModuleUpgradable.abi).encodeFunctionData("updateImageHash",[yl])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},te=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),delegateCall:!0},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},J=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function addHook(bytes4 _signature, address _implementation)"]).encodeFunctionData("addHook",["0x01234567",xi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},$=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function setExtraImageHash(bytes32 _imageHash, uint256 _expiration)"]).encodeFunctionData("setExtraImageHash",[yl,TN])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},K=(U,se=!1)=>(console.log(U),e(se?U:ae=>`${ae} - -${U}`)),ue=()=>{i(!0)},de=()=>{i(!1),e(o?"Status: Wallet is connected :)":"Status: Wallet not connected. Please connect wallet first.")},oe=()=>{i(!1),e("An error occurred")},Ee=[L.RINKEBY,L.HARDHAT,L.HARDHAT_2,L.KOVAN,L.ROPSTEN,L.HOMEVERSE_TESTNET,L.BASE_GOERLI],Re=Object.values(ze.network.networks).filter(U=>U.type===Ne.MAINNET).sort((U,se)=>U.chainId-se.chainId),xt=Object.values(ze.network.networks).filter(U=>U.type===Ne.TESTNET).sort((U,se)=>U.chainId-se.chainId),tn=[...Re,...xt].filter(U=>!U.deprecated&&!Ee.includes(U.chainId));m.useEffect(()=>{r&&!f&&(console.log(r),b({app:"Demo Dapp",authorize:!0,settings:{signInWithEmail:r,theme:"dark",bannerUrl:`${window.location.origin}${N3}`}}),n(null))},[r,f]);const br=U=>(U=U.trim(),!!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(U));return ie.jsxs(me,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[ie.jsx(me,{marginBottom:"10",children:ie.jsx("a",{href:"https://sequence.xyz/",target:"_blank",rel:"noopener",children:ie.jsx(qC,{height:"6",alt:"logo",src:kde})})}),ie.jsx(me,{children:ie.jsx(Tt,{variant:"normal",color:"text100",fontWeight:"bold",children:"Demo Dapp"})}),ie.jsx(me,{marginTop:"1",marginBottom:"4",children:ie.jsx(Tt,{variant:"normal",color:"text80",children:"A dapp example on how to use the Sequence Wallet. This covers how to connect, sign messages and send transctions."})}),ie.jsxs(rq,{background:"backgroundMuted",alignItems:"center",gap:"3",children:[ie.jsx(Iq,{}),ie.jsx(Tt,{variant:"normal",color:"text80",children:"Please open your browser dev inspector to view output of functions below."})]}),ie.jsx(uS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(US,{name:"environment",label:"Environment",labelLocation:"top",onValueChange:U=>{Ec.set("env",U),Ec.delete("walletAppURL"),window.location.search=Ec.toString()},value:FF,options:[...Object.values(jF).map(U=>({label:ie.jsx(me,{alignItems:"center",gap:"2",children:ie.jsx(Tt,{capitalize:!0,children:U.name})}),value:String(U.name)}))]})}),ie.jsxs(me,{marginBottom:"4",children:[ie.jsx(Tt,{as:"div",variant:"small",color:"text100",children:"Wallet URL"}),ie.jsxs(me,{as:"a",href:vu,target:"_blank",rel:"noopener",textDecoration:"none",gap:"1",marginTop:"1",alignItems:"center",color:"text80",children:[ie.jsx(Tt,{as:"div",variant:"normal",color:"text80",children:vu}),ie.jsx(Aq,{})]})]}),ie.jsx(uS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(US,{name:"chainId",label:"Network",labelLocation:"top",onValueChange:U=>c.setDefaultChainId(Number(U)),value:String(l),options:[...Object.values(tn).map(U=>({label:ie.jsxs(me,{alignItems:"center",gap:"2",children:[ie.jsx(yee,{src:U.logoURI,size:"sm"}),ie.jsx(Tt,{children:U.title})]}),value:String(U.chainId)}))]})}),ie.jsxs(Po,{label:"Connection",children:[ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>b(),label:"Connect"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0}),label:"Connect & Auth"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0,settings:{theme:"dark",bannerUrl:`${window.location.origin}${Ade}`,bannerSize:"medium",includedPaymentProviders:["moonpay"],defaultFundingCurrency:"matic",defaultPurchaseAmount:111}}),label:"Connect with Settings"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>{d(!0)},label:"Connect with Email"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>{b({app:"Demo Dapp",authorize:!0,settings:{signInWith:"google",theme:"dark",bannerUrl:`${window.location.origin}${N3}`}})},label:"Connect with Google"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>v(),label:"Disconnect"})]}),ie.jsxs(Po,{label:"Basics",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>g(),label:"Open Wallet"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>x(),label:"Open Wallet with Settings"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>k(),label:"Close Wallet"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>S(),label:"Is Connected?"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>I(),label:"Is Opened?"})]}),ie.jsxs(Po,{label:"State",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>R(),label:"ChainID"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>F(),label:"Networks"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>_(),label:"Get Accounts"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>V(),label:"Get Balance"})]}),ie.jsxs(Po,{label:"Signing",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>X(),label:"Sign Message"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>re(),label:"Sign Message (Hex)"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>le(),label:"Sign Message (Bytes)"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>ee(),label:"Sign TypedData"})]}),ie.jsx(Po,{label:"Simulation",children:ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>D(),label:"Estimate Unwrap Gas"})}),ie.jsxs(Po,{label:"Transactions",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>G(),label:"Send funds"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>A(),label:"Send on L2"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>E(),label:"Send DAI"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o||!0,onClick:()=>O(),label:"Send ERC-1155 Tokens"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>Z(),label:"Send USDC on Sepolia"})]}),ie.jsxs(Po,{label:"Various",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>M(),label:"Read Symbol and Balance"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>B(),label:"Fetch Token Balances"})]}),Pde&&ie.jsxs(Po,{label:"Prohibited Actions - FOR TESTING ONLY! DO NOT CONFIRM!",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>W(),label:"Update Implementation"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>q(),label:"Update Image Hash"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>te(),label:"Delegate Call"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>J(),label:"Add Hook"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>$(),label:"Set Extra Image Hash"})]}),ie.jsx(lI,{children:f&&ie.jsx(dX,{onClose:()=>d(!1),size:"sm",children:ie.jsx(me,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"16",children:ie.jsxs(me,{flexDirection:"column",children:[ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"text80",children:"Auto-email login, please specify the email address"})}),ie.jsx(me,{marginTop:"4",children:ie.jsx(ZC,{onChange:U=>{n(U.target.value)}})}),h?ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"warning",children:"please input an email with correct format"})}):null,ie.jsx(me,{gap:"2",marginY:"4",children:ie.jsx(Ve,{variant:"primary",label:"Login",onClick:()=>{br(r)?(y(!1),d(!1)):y(!0)},"data-id":"login"})})]})})})}),ie.jsx(bde,{message:t,loading:s})]})},Ode=Wr.memo(Ide),Rde=iR(document.getElementById("root"));Rde.render(ie.jsx(Wr.StrictMode,{children:ie.jsx(oX,{children:ie.jsx(Ode,{})})})); diff --git a/assets/index-DHa5VEuO.js b/assets/index-DHa5VEuO.js new file mode 100644 index 0000000..ca908ca --- /dev/null +++ b/assets/index-DHa5VEuO.js @@ -0,0 +1,186 @@ +var XF=Object.defineProperty;var eS=t=>{throw TypeError(t)};var ZF=(t,e,r)=>e in t?XF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var _=(t,e,r)=>ZF(t,typeof e!="symbol"?e+"":e,r),Em=(t,e,r)=>e.has(t)||eS("Cannot "+r);var w=(t,e,r)=>(Em(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>e.has(t)?eS("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),T=(t,e,r,n)=>(Em(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Y=(t,e,r)=>(Em(t,e,"access private method"),r);var Pl=(t,e,r,n)=>({set _(s){T(t,e,s,r)},get _(){return w(t,e,n)}});function eU(t,e){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function q8(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var K8={exports:{}},Wg={},Q8={exports:{}},Ue={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r1=Symbol.for("react.element"),tU=Symbol.for("react.portal"),rU=Symbol.for("react.fragment"),nU=Symbol.for("react.strict_mode"),sU=Symbol.for("react.profiler"),iU=Symbol.for("react.provider"),oU=Symbol.for("react.context"),aU=Symbol.for("react.forward_ref"),cU=Symbol.for("react.suspense"),lU=Symbol.for("react.memo"),uU=Symbol.for("react.lazy"),tS=Symbol.iterator;function fU(t){return t===null||typeof t!="object"?null:(t=tS&&t[tS]||t["@@iterator"],typeof t=="function"?t:null)}var J8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y8=Object.assign,X8={};function ld(t,e,r){this.props=t,this.context=e,this.refs=X8,this.updater=r||J8}ld.prototype.isReactComponent={};ld.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};ld.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Z8(){}Z8.prototype=ld.prototype;function eE(t,e,r){this.props=t,this.context=e,this.refs=X8,this.updater=r||J8}var tE=eE.prototype=new Z8;tE.constructor=eE;Y8(tE,ld.prototype);tE.isPureReactComponent=!0;var rS=Array.isArray,e4=Object.prototype.hasOwnProperty,rE={current:null},t4={key:!0,ref:!0,__self:!0,__source:!0};function r4(t,e,r){var n,s={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)e4.call(e,n)&&!t4.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1>>1,L=E[D];if(0>>1;Ds(te,O))Js($,te)?(E[D]=$,E[J]=O,D=J):(E[D]=te,E[q]=O,D=q);else if(Js($,O))E[D]=$,E[J]=O,D=J;else break e}}return S}function s(E,S){var O=E.sortIndex-S.sortIndex;return O!==0?O:E.id-S.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],l=[],u=1,f=null,d=3,h=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var S=r(l);S!==null;){if(S.callback===null)n(l);else if(S.startTime<=E)n(l),S.sortIndex=S.expirationTime,e(c,S);else break;S=r(l)}}function k(E){if(p=!1,m(E),!y)if(r(c)!==null)y=!0,G(A);else{var S=r(l);S!==null&&Z(k,S.startTime-E)}}function A(E,S){y=!1,p&&(p=!1,g(N),N=-1),h=!0;var O=d;try{for(m(S),f=r(c);f!==null&&(!(f.expirationTime>S)||E&&!X());){var D=f.callback;if(typeof D=="function"){f.callback=null,d=f.priorityLevel;var L=D(f.expirationTime<=S);S=t.unstable_now(),typeof L=="function"?f.callback=L:f===r(c)&&n(c),m(S)}else n(c);f=r(c)}if(f!==null)var W=!0;else{var q=r(l);q!==null&&Z(k,q.startTime-S),W=!1}return W}finally{f=null,d=O,h=!1}}var P=!1,R=null,N=-1,V=5,F=-1;function X(){return!(t.unstable_now()-FE||125D?(E.sortIndex=O,e(l,E),r(c)===null&&E===r(l)&&(p?(g(N),N=-1):p=!0,Z(k,O-D))):(E.sortIndex=L,e(c,E),y||h||(y=!0,G(A))),E},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(E){var S=d;return function(){var O=d;d=S;try{return E.apply(this,arguments)}finally{d=O}}}})(a4);o4.exports=a4;var CU=o4.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kU=x,Rn=CU;function ne(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tb=Object.prototype.hasOwnProperty,SU=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sS={},iS={};function AU(t){return tb.call(iS,t)?!0:tb.call(sS,t)?!1:SU.test(t)?iS[t]=!0:(sS[t]=!0,!1)}function TU(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function IU(t,e,r,n){if(e===null||typeof e>"u"||TU(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Yr(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var xr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){xr[t]=new Yr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];xr[e]=new Yr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){xr[t]=new Yr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){xr[t]=new Yr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){xr[t]=new Yr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){xr[t]=new Yr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){xr[t]=new Yr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){xr[t]=new Yr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){xr[t]=new Yr(t,5,!1,t.toLowerCase(),null,!1,!1)});var sE=/[\-:]([a-z])/g;function iE(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(sE,iE);xr[e]=new Yr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(sE,iE);xr[e]=new Yr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(sE,iE);xr[e]=new Yr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){xr[t]=new Yr(t,1,!1,t.toLowerCase(),null,!1,!1)});xr.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){xr[t]=new Yr(t,1,!1,t.toLowerCase(),null,!0,!0)});function oE(t,e,r,n){var s=xr.hasOwnProperty(e)?xr[e]:null;(s!==null?s.type!==0:n||!(2a||s[o]!==i[a]){var c=` +`+s[o].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{Sm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Jd(t):""}function PU(t){switch(t.tag){case 5:return Jd(t.type);case 16:return Jd("Lazy");case 13:return Jd("Suspense");case 19:return Jd("SuspenseList");case 0:case 2:case 15:return t=Am(t.type,!1),t;case 11:return t=Am(t.type.render,!1),t;case 1:return t=Am(t.type,!0),t;default:return""}}function ib(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Xl:return"Fragment";case Yl:return"Portal";case rb:return"Profiler";case aE:return"StrictMode";case nb:return"Suspense";case sb:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case u4:return(t.displayName||"Context")+".Consumer";case l4:return(t._context.displayName||"Context")+".Provider";case cE:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case lE:return e=t.displayName||null,e!==null?e:ib(t.type)||"Memo";case No:e=t._payload,t=t._init;try{return ib(t(e))}catch{}}return null}function OU(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ib(e);case 8:return e===aE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Sa(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function d4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function RU(t){var e=d4(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function L1(t){t._valueTracker||(t._valueTracker=RU(t))}function h4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=d4(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function my(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ob(t,e){var r=e.checked;return kt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function aS(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Sa(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function p4(t,e){e=e.checked,e!=null&&oE(t,"checked",e,!1)}function ab(t,e){p4(t,e);var r=Sa(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?cb(t,e.type,r):e.hasOwnProperty("defaultValue")&&cb(t,e.type,Sa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function cS(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function cb(t,e,r){(e!=="number"||my(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Yd=Array.isArray;function bu(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=j1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function zh(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var ph={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},NU=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(t){NU.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ph[e]=ph[t]})});function m4(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||ph.hasOwnProperty(t)&&ph[t]?(""+e).trim():e+"px"}function x4(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=m4(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var _U=kt({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 fb(t,e){if(e){if(_U[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ne(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ne(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ne(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ne(62))}}function db(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hb=null;function uE(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var pb=null,wu=null,Eu=null;function fS(t){if(t=i1(t)){if(typeof pb!="function")throw Error(ne(280));var e=t.stateNode;e&&(e=qg(e),pb(t.stateNode,t.type,e))}}function b4(t){wu?Eu?Eu.push(t):Eu=[t]:wu=t}function w4(){if(wu){var t=wu,e=Eu;if(Eu=wu=null,fS(t),e)for(t=0;t>>=0,t===0?32:31-(zU(t)/HU|0)|0}var F1=64,U1=4194304;function Xd(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ey(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Xd(a):(i&=o,i!==0&&(n=Xd(i)))}else o=r&~s,o!==0?n=Xd(o):i!==0&&(n=Xd(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function n1(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Is(e),t[e]=r}function QU(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=gh),bS=" ",wS=!1;function $4(t,e){switch(t){case"keyup":return C$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W4(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Zl=!1;function S$(t,e){switch(t){case"compositionend":return W4(e);case"keypress":return e.which!==32?null:(wS=!0,bS);case"textInput":return t=e.data,t===bS&&wS?null:t;default:return null}}function A$(t,e){if(Zl)return t==="compositionend"||!mE&&$4(t,e)?(t=F4(),_p=yE=oa=null,Zl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=SS(r)}}function G4(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?G4(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function q4(){for(var t=window,e=my();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=my(t.document)}return e}function xE(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function D$(t){var e=q4(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&G4(r.ownerDocument.documentElement,r)){if(n!==null&&xE(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=AS(r,i);var o=AS(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,eu=null,bb=null,mh=null,wb=!1;function TS(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wb||eu==null||eu!==my(n)||(n=eu,"selectionStart"in n&&xE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mh&&Jh(mh,n)||(mh=n,n=Sy(bb,"onSelect"),0nu||(t.current=Tb[nu],Tb[nu]=null,nu--)}function ft(t,e){nu++,Tb[nu]=t.current,t.current=e}var Aa={},_r=Ba(Aa),ln=Ba(!1),il=Aa;function _f(t,e){var r=t.type.contextTypes;if(!r)return Aa;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function un(t){return t=t.childContextTypes,t!=null}function Ty(){gt(ln),gt(_r)}function MS(t,e,r){if(_r.current!==Aa)throw Error(ne(168));ft(_r,e),ft(ln,r)}function rT(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(ne(108,OU(t)||"Unknown",s));return kt({},r,n)}function Iy(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Aa,il=_r.current,ft(_r,t),ft(ln,ln.current),!0}function DS(t,e,r){var n=t.stateNode;if(!n)throw Error(ne(169));r?(t=rT(t,e,il),n.__reactInternalMemoizedMergedChildContext=t,gt(ln),gt(_r),ft(_r,t)):gt(ln),ft(ln,r)}var Oi=null,Kg=!1,Um=!1;function nT(t){Oi===null?Oi=[t]:Oi.push(t)}function q$(t){Kg=!0,nT(t)}function La(){if(!Um&&Oi!==null){Um=!0;var t=0,e=nt;try{var r=Oi;for(nt=1;t>=o,s-=o,Gi=1<<32-Is(e)+s|r<N?(V=R,R=null):V=R.sibling;var F=d(g,R,m[N],k);if(F===null){R===null&&(R=V);break}t&&R&&F.alternate===null&&e(g,R),v=i(F,v,N),P===null?A=F:P.sibling=F,P=F,R=V}if(N===m.length)return r(g,R),vt&&Za(g,N),A;if(R===null){for(;NN?(V=R,R=null):V=R.sibling;var X=d(g,R,F.value,k);if(X===null){R===null&&(R=V);break}t&&R&&X.alternate===null&&e(g,R),v=i(X,v,N),P===null?A=X:P.sibling=X,P=X,R=V}if(F.done)return r(g,R),vt&&Za(g,N),A;if(R===null){for(;!F.done;N++,F=m.next())F=f(g,F.value,k),F!==null&&(v=i(F,v,N),P===null?A=F:P.sibling=F,P=F);return vt&&Za(g,N),A}for(R=n(g,R);!F.done;N++,F=m.next())F=h(R,g,N,F.value,k),F!==null&&(t&&F.alternate!==null&&R.delete(F.key===null?N:F.key),v=i(F,v,N),P===null?A=F:P.sibling=F,P=F);return t&&R.forEach(function(re){return e(g,re)}),vt&&Za(g,N),A}function b(g,v,m,k){if(typeof m=="object"&&m!==null&&m.type===Xl&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case B1:e:{for(var A=m.key,P=v;P!==null;){if(P.key===A){if(A=m.type,A===Xl){if(P.tag===7){r(g,P.sibling),v=s(P,m.props.children),v.return=g,g=v;break e}}else if(P.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===No&&jS(A)===P.type){r(g,P.sibling),v=s(P,m.props),v.ref=Dd(g,P,m),v.return=g,g=v;break e}r(g,P);break}else e(g,P);P=P.sibling}m.type===Xl?(v=Jc(m.props.children,g.mode,k,m.key),v.return=g,g=v):(k=$p(m.type,m.key,m.props,null,g.mode,k),k.ref=Dd(g,v,m),k.return=g,g=k)}return o(g);case Yl:e:{for(P=m.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){r(g,v.sibling),v=s(v,m.children||[]),v.return=g,g=v;break e}else{r(g,v);break}else e(g,v);v=v.sibling}v=Km(m,g.mode,k),v.return=g,g=v}return o(g);case No:return P=m._init,b(g,v,P(m._payload),k)}if(Yd(m))return y(g,v,m,k);if(Od(m))return p(g,v,m,k);q1(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(r(g,v.sibling),v=s(v,m),v.return=g,g=v):(r(g,v),v=qm(m,g.mode,k),v.return=g,g=v),o(g)):r(g,v)}return b}var Df=aT(!0),cT=aT(!1),Ry=Ba(null),Ny=null,ou=null,CE=null;function kE(){CE=ou=Ny=null}function SE(t){var e=Ry.current;gt(Ry),t._currentValue=e}function Ob(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function ku(t,e){Ny=t,CE=ou=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(cn=!0),t.firstContext=null)}function is(t){var e=t._currentValue;if(CE!==t)if(t={context:t,memoizedValue:e,next:null},ou===null){if(Ny===null)throw Error(ne(308));ou=t,Ny.dependencies={lanes:0,firstContext:t}}else ou=ou.next=t;return e}var pc=null;function AE(t){pc===null?pc=[t]:pc.push(t)}function lT(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,AE(e)):(r.next=s.next,s.next=r),e.interleaved=r,oo(t,n)}function oo(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var _o=!1;function TE(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uT(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Yi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ya(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ge&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,oo(t,r)}return s=n.interleaved,s===null?(e.next=e,AE(n)):(e.next=s.next,s.next=e),n.interleaved=e,oo(t,r)}function Dp(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,dE(t,r)}}function FS(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function _y(t,e,r,n){var s=t.updateQueue;_o=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?i=l:o.next=l,o=c;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,u=l=c=null,a=i;do{var d=a.lane,h=a.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=t,p=a;switch(d=e,h=r,p.tag){case 1:if(y=p.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=kt({},f,d);break e;case 2:_o=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=s.effects,d===null?s.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=h,c=f):u=u.next=h,o|=d;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;d=a,a=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(u===null&&(c=f),s.baseState=c,s.firstBaseUpdate=l,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);cl|=o,t.lanes=o,t.memoizedState=f}}function US(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=Wm.transition;Wm.transition={};try{t(!1),e()}finally{nt=r,Wm.transition=n}}function TT(){return os().memoizedState}function Y$(t,e,r){var n=va(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},IT(t))PT(e,r);else if(r=lT(t,e,r,n),r!==null){var s=qr();Ps(r,t,n,s),OT(r,e,n)}}function X$(t,e,r){var n=va(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(IT(t))PT(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,_s(a,o)){var c=e.interleaved;c===null?(s.next=s,AE(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}r=lT(t,e,s,n),r!==null&&(s=qr(),Ps(r,t,n,s),OT(r,e,n))}}function IT(t){var e=t.alternate;return t===Ct||e!==null&&e===Ct}function PT(t,e){xh=Dy=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function OT(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,dE(t,r)}}var By={readContext:is,useCallback:Er,useContext:Er,useEffect:Er,useImperativeHandle:Er,useInsertionEffect:Er,useLayoutEffect:Er,useMemo:Er,useReducer:Er,useRef:Er,useState:Er,useDebugValue:Er,useDeferredValue:Er,useTransition:Er,useMutableSource:Er,useSyncExternalStore:Er,useId:Er,unstable_isNewReconciler:!1},Z$={readContext:is,useCallback:function(t,e){return Hs().memoizedState=[t,e===void 0?null:e],t},useContext:is,useEffect:WS,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Lp(4194308,4,ET.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Lp(4194308,4,t,e)},useInsertionEffect:function(t,e){return Lp(4,2,t,e)},useMemo:function(t,e){var r=Hs();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Hs();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=Y$.bind(null,Ct,t),[n.memoizedState,t]},useRef:function(t){var e=Hs();return t={current:t},e.memoizedState=t},useState:$S,useDebugValue:DE,useDeferredValue:function(t){return Hs().memoizedState=t},useTransition:function(){var t=$S(!1),e=t[0];return t=J$.bind(null,t[1]),Hs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Ct,s=Hs();if(vt){if(r===void 0)throw Error(ne(407));r=r()}else{if(r=e(),ir===null)throw Error(ne(349));al&30||pT(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,WS(gT.bind(null,n,i,t),[t]),n.flags|=2048,s0(9,yT.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Hs(),e=ir.identifierPrefix;if(vt){var r=qi,n=Gi;r=(n&~(1<<32-Is(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=r0++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[ii]=e,t[Zh]=n,UT(t,e,!1,!1),e.stateNode=t;e:{switch(o=db(r,n),r){case"dialog":dt("cancel",t),dt("close",t),s=n;break;case"iframe":case"object":case"embed":dt("load",t),s=n;break;case"video":case"audio":for(s=0;sjf&&(e.flags|=128,n=!0,Bd(i,!1),e.lanes=4194304)}else{if(!n)if(t=My(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Bd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!vt)return Cr(e),null}else 2*_t()-i.renderingStartTime>jf&&r!==1073741824&&(e.flags|=128,n=!0,Bd(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,r=bt.current,ft(bt,n?r&1|2:r&1),e):(Cr(e),null);case 22:case 23:return $E(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?kn&1073741824&&(Cr(e),e.subtreeFlags&6&&(e.flags|=8192)):Cr(e),null;case 24:return null;case 25:return null}throw Error(ne(156,e.tag))}function aW(t,e){switch(wE(e),e.tag){case 1:return un(e.type)&&Ty(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Bf(),gt(ln),gt(_r),OE(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return PE(e),null;case 13:if(gt(bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ne(340));Mf()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return gt(bt),null;case 4:return Bf(),null;case 10:return SE(e.type._context),null;case 22:case 23:return $E(),null;case 24:return null;default:return null}}var Q1=!1,Or=!1,cW=typeof WeakSet=="function"?WeakSet:Set,ge=null;function au(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){At(t,e,n)}else r.current=null}function Fb(t,e,r){try{r()}catch(n){At(t,e,n)}}var ZS=!1;function lW(t,e){if(Eb=Cy,t=q4(),xE(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,l=0,u=0,f=t,d=null;t:for(;;){for(var h;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===r&&++l===s&&(a=o),d===i&&++u===n&&(c=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cb={focusedElem:t,selectionRange:r},Cy=!1,ge=e;ge!==null;)if(e=ge,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ge=t;else for(;ge!==null;){e=ge;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,g=e.stateNode,v=g.getSnapshotBeforeUpdate(e.elementType===e.type?p:ps(e.type,p),b);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(k){At(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,ge=t;break}ge=e.return}return y=ZS,ZS=!1,y}function bh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Fb(e,r,i)}s=s.next}while(s!==n)}}function Yg(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Ub(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function VT(t){var e=t.alternate;e!==null&&(t.alternate=null,VT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ii],delete e[Zh],delete e[Ab],delete e[H$],delete e[G$])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function zT(t){return t.tag===5||t.tag===3||t.tag===4}function e6(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||zT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $b(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Ay));else if(n!==4&&(t=t.child,t!==null))for($b(t,e,r),t=t.sibling;t!==null;)$b(t,e,r),t=t.sibling}function Wb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(Wb(t,e,r),t=t.sibling;t!==null;)Wb(t,e,r),t=t.sibling}var dr=null,Es=!1;function wo(t,e,r){for(r=r.child;r!==null;)HT(t,e,r),r=r.sibling}function HT(t,e,r){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(Vg,r)}catch{}switch(r.tag){case 5:Or||au(r,e);case 6:var n=dr,s=Es;dr=null,wo(t,e,r),dr=n,Es=s,dr!==null&&(Es?(t=dr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):dr.removeChild(r.stateNode));break;case 18:dr!==null&&(Es?(t=dr,r=r.stateNode,t.nodeType===8?Fm(t.parentNode,r):t.nodeType===1&&Fm(t,r),Kh(t)):Fm(dr,r.stateNode));break;case 4:n=dr,s=Es,dr=r.stateNode.containerInfo,Es=!0,wo(t,e,r),dr=n,Es=s;break;case 0:case 11:case 14:case 15:if(!Or&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Fb(r,e,o),s=s.next}while(s!==n)}wo(t,e,r);break;case 1:if(!Or&&(au(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){At(r,e,a)}wo(t,e,r);break;case 21:wo(t,e,r);break;case 22:r.mode&1?(Or=(n=Or)||r.memoizedState!==null,wo(t,e,r),Or=n):wo(t,e,r);break;default:wo(t,e,r)}}function t6(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new cW),e.forEach(function(n){var s=mW.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function ls(t,e){var r=e.deletions;if(r!==null)for(var n=0;ns&&(s=o),n&=~i}if(n=s,n=_t()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fW(n/1960))-n,10t?16:t,aa===null)var n=!1;else{if(t=aa,aa=null,Fy=0,Ge&6)throw Error(ne(331));var s=Ge;for(Ge|=4,ge=t.current;ge!==null;){var i=ge,o=i.child;if(ge.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c_t()-FE?Qc(t,0):jE|=r),fn(t,e)}function ZT(t,e){e===0&&(t.mode&1?(e=U1,U1<<=1,!(U1&130023424)&&(U1=4194304)):e=1);var r=qr();t=oo(t,e),t!==null&&(n1(t,e,r),fn(t,r))}function vW(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),ZT(t,r)}function mW(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ne(314))}n!==null&&n.delete(e),ZT(t,r)}var eI;eI=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ln.current)cn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return cn=!1,iW(t,e,r);cn=!!(t.flags&131072)}else cn=!1,vt&&e.flags&1048576&&sT(e,Oy,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;jp(t,e),t=e.pendingProps;var s=_f(e,_r.current);ku(e,r),s=NE(null,e,n,t,s,r);var i=_E();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,un(n)?(i=!0,Iy(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,TE(e),s.updater=Jg,e.stateNode=s,s._reactInternals=e,Nb(e,n,t,r),e=Db(null,e,n,!0,i,r)):(e.tag=0,vt&&i&&bE(e),$r(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(jp(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=bW(n),t=ps(n,t),s){case 0:e=Mb(null,e,n,t,r);break e;case 1:e=JS(null,e,n,t,r);break e;case 11:e=KS(null,e,n,t,r);break e;case 14:e=QS(null,e,n,ps(n.type,t),r);break e}throw Error(ne(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Mb(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),JS(t,e,n,s,r);case 3:e:{if(LT(e),t===null)throw Error(ne(387));n=e.pendingProps,i=e.memoizedState,s=i.element,uT(t,e),_y(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Lf(Error(ne(423)),e),e=YS(t,e,n,r,s);break e}else if(n!==s){s=Lf(Error(ne(424)),e),e=YS(t,e,n,r,s);break e}else for(Tn=pa(e.stateNode.containerInfo.firstChild),In=e,vt=!0,Cs=null,r=cT(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Mf(),n===s){e=ao(t,e,r);break e}$r(t,e,n,r)}e=e.child}return e;case 5:return fT(e),t===null&&Pb(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,kb(n,s)?o=null:i!==null&&kb(n,i)&&(e.flags|=32),BT(t,e),$r(t,e,o,r),e.child;case 6:return t===null&&Pb(e),null;case 13:return jT(t,e,r);case 4:return IE(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Df(e,null,n,r):$r(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),KS(t,e,n,s,r);case 7:return $r(t,e,e.pendingProps,r),e.child;case 8:return $r(t,e,e.pendingProps.children,r),e.child;case 12:return $r(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,ft(Ry,n._currentValue),n._currentValue=o,i!==null)if(_s(i.value,o)){if(i.children===s.children&&!ln.current){e=ao(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Yi(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Ob(i.return,r,e),a.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ne(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Ob(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}$r(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,ku(e,r),s=is(s),n=n(s),e.flags|=1,$r(t,e,n,r),e.child;case 14:return n=e.type,s=ps(n,e.pendingProps),s=ps(n.type,s),QS(t,e,n,s,r);case 15:return MT(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),jp(t,e),e.tag=1,un(n)?(t=!0,Iy(e)):t=!1,ku(e,r),RT(e,n,s),Nb(e,n,s,r),Db(null,e,n,!0,t,r);case 19:return FT(t,e,r);case 22:return DT(t,e,r)}throw Error(ne(156,e.tag))};function tI(t,e){return I4(t,e)}function xW(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function es(t,e,r,n){return new xW(t,e,r,n)}function VE(t){return t=t.prototype,!(!t||!t.isReactComponent)}function bW(t){if(typeof t=="function")return VE(t)?1:0;if(t!=null){if(t=t.$$typeof,t===cE)return 11;if(t===lE)return 14}return 2}function ma(t,e){var r=t.alternate;return r===null?(r=es(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function $p(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")VE(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Xl:return Jc(r.children,s,i,e);case aE:o=8,s|=8;break;case rb:return t=es(12,r,e,s|2),t.elementType=rb,t.lanes=i,t;case nb:return t=es(13,r,e,s),t.elementType=nb,t.lanes=i,t;case sb:return t=es(19,r,e,s),t.elementType=sb,t.lanes=i,t;case f4:return Zg(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case l4:o=10;break e;case u4:o=9;break e;case cE:o=11;break e;case lE:o=14;break e;case No:o=16,n=null;break e}throw Error(ne(130,t==null?t:typeof t,""))}return e=es(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function Jc(t,e,r,n){return t=es(7,t,n,e),t.lanes=r,t}function Zg(t,e,r,n){return t=es(22,t,n,e),t.elementType=f4,t.lanes=r,t.stateNode={isHidden:!1},t}function qm(t,e,r){return t=es(6,t,null,e),t.lanes=r,t}function Km(t,e,r){return e=es(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function wW(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Im(0),this.expirationTimes=Im(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Im(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function zE(t,e,r,n,s,i,o,a,c){return t=new wW(t,e,r,a,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=es(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},TE(i),t}function EW(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iI)}catch(t){console.error(t)}}iI(),i4.exports=_n;var ja=i4.exports;const TW=q8(ja),oI=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),sv=x.createContext({});function IW(){return x.useContext(sv).visualElement}const iv=x.createContext(null),ov=typeof document<"u",Wy=ov?x.useLayoutEffect:x.useEffect,aI=x.createContext({strict:!1});function PW(t,e,r,n){const s=IW(),i=x.useContext(aI),o=x.useContext(iv),a=x.useContext(oI).reducedMotion,c=x.useRef();n=n||i.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:s,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;return x.useInsertionEffect(()=>{l&&l.update(r,o)}),Wy(()=>{l&&l.render()}),x.useEffect(()=>{l&&l.updateFeatures()}),(window.HandoffAppearAnimations?Wy:x.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),l}function lu(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function OW(t,e,r){return x.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):lu(r)&&(r.current=n))},[e])}function o0(t){return typeof t=="string"||Array.isArray(t)}function av(t){return typeof t=="object"&&typeof t.start=="function"}const KE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],QE=["initial",...KE];function cv(t){return av(t.animate)||QE.some(e=>o0(t[e]))}function cI(t){return!!(cv(t)||t.variants)}function RW(t,e){if(cv(t)){const{initial:r,animate:n}=t;return{initial:r===!1||o0(r)?r:void 0,animate:o0(n)?n:void 0}}return t.inherit!==!1?e:{}}function NW(t){const{initial:e,animate:r}=RW(t,x.useContext(sv));return x.useMemo(()=>({initial:e,animate:r}),[l6(e),l6(r)])}function l6(t){return Array.isArray(t)?t.join(" "):t}const u6={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},a0={};for(const t in u6)a0[t]={isEnabled:e=>u6[t].some(r=>!!e[r])};function _W(t){for(const e in t)a0[e]={...a0[e],...t[e]}}function JE(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ch={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let MW=1;function DW(){return JE(()=>{if(Ch.hasEverUpdated)return MW++})}const YE=x.createContext({}),lI=x.createContext({}),BW=Symbol.for("motionComponentSymbol");function LW({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:s}){t&&_W(t);function i(a,c){let l;const u={...x.useContext(oI),...a,layoutId:jW(a)},{isStatic:f}=u,d=NW(a),h=f?void 0:DW(),y=n(a,f);if(!f&&ov){d.visualElement=PW(s,y,u,e);const p=x.useContext(lI),b=x.useContext(aI).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,b,t,h,p))}return x.createElement(sv.Provider,{value:d},l&&d.visualElement?x.createElement(l,{visualElement:d.visualElement,...u}):null,r(s,a,h,OW(y,d.visualElement,c),y,f,d.visualElement))}const o=x.forwardRef(i);return o[BW]=s,o}function jW({layoutId:t}){const e=x.useContext(YE).id;return e&&t!==void 0?e+"-"+t:t}function FW(t){function e(n,s={}){return LW(t(n,s))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,s)=>(r.has(s)||r.set(s,e(s)),r.get(s))})}const UW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function XE(t){return typeof t!="string"||t.includes("-")?!1:!!(UW.indexOf(t)>-1||/[A-Z]/.test(t))}const Vy={};function $W(t){Object.assign(Vy,t)}const lv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sl=new Set(lv);function uI(t,{layout:e,layoutId:r}){return Sl.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Vy[t]||t==="opacity")}const hn=t=>!!(t&&t.getVelocity),WW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VW=lv.length;function zW(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,s){let i="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),dI=fI("--"),qb=fI("var(--"),HW=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ff=(t,e,r)=>Math.min(Math.max(r,t),e),Al={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kh={...Al,transform:t=>Ff(0,1,t)},X1={...Al,default:1},Sh=t=>Math.round(t*1e5)/1e5,c0=/(-)?([\d]*\.?[\d])+/g,Kb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,GW=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a1(t){return typeof t=="string"}const c1=t=>({test:e=>a1(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Po=c1("deg"),hi=c1("%"),Oe=c1("px"),qW=c1("vh"),KW=c1("vw"),f6={...hi,parse:t=>hi.parse(t)/100,transform:t=>hi.transform(t*100)},d6={...Al,transform:Math.round},hI={borderWidth:Oe,borderTopWidth:Oe,borderRightWidth:Oe,borderBottomWidth:Oe,borderLeftWidth:Oe,borderRadius:Oe,radius:Oe,borderTopLeftRadius:Oe,borderTopRightRadius:Oe,borderBottomRightRadius:Oe,borderBottomLeftRadius:Oe,width:Oe,maxWidth:Oe,height:Oe,maxHeight:Oe,size:Oe,top:Oe,right:Oe,bottom:Oe,left:Oe,padding:Oe,paddingTop:Oe,paddingRight:Oe,paddingBottom:Oe,paddingLeft:Oe,margin:Oe,marginTop:Oe,marginRight:Oe,marginBottom:Oe,marginLeft:Oe,rotate:Po,rotateX:Po,rotateY:Po,rotateZ:Po,scale:X1,scaleX:X1,scaleY:X1,scaleZ:X1,skew:Po,skewX:Po,skewY:Po,distance:Oe,translateX:Oe,translateY:Oe,translateZ:Oe,x:Oe,y:Oe,z:Oe,perspective:Oe,transformPerspective:Oe,opacity:kh,originX:f6,originY:f6,originZ:Oe,zIndex:d6,fillOpacity:kh,strokeOpacity:kh,numOctaves:d6};function ZE(t,e,r,n){const{style:s,vars:i,transform:o,transformOrigin:a}=t;let c=!1,l=!1,u=!0;for(const f in e){const d=e[f];if(dI(f)){i[f]=d;continue}const h=hI[f],y=HW(d,h);if(Sl.has(f)){if(c=!0,o[f]=y,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(l=!0,a[f]=y):s[f]=y}if(e.transform||(c||n?s.transform=zW(t.transform,r,u,n):s.transform&&(s.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;s.transformOrigin=`${f} ${d} ${h}`}}const eC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pI(t,e,r){for(const n in e)!hn(e[n])&&!uI(n,r)&&(t[n]=e[n])}function QW({transformTemplate:t},e,r){return x.useMemo(()=>{const n=eC();return ZE(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function JW(t,e,r){const n=t.style||{},s={};return pI(s,n,t),Object.assign(s,QW(t,e,r)),t.transformValues?t.transformValues(s):s}function YW(t,e,r){const n={},s=JW(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const XW=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function zy(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||XW.has(t)}let yI=t=>!zy(t);function ZW(t){t&&(yI=e=>e.startsWith("on")?!zy(e):t(e))}try{ZW(require("@emotion/is-prop-valid").default)}catch{}function eV(t,e,r){const n={};for(const s in t)s==="values"&&typeof t.values=="object"||(yI(s)||r===!0&&zy(s)||!e&&!zy(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}function h6(t,e,r){return typeof t=="string"?t:Oe.transform(e+r*t)}function tV(t,e,r){const n=h6(e,t.x,t.width),s=h6(r,t.y,t.height);return`${n} ${s}`}const rV={offset:"stroke-dashoffset",array:"stroke-dasharray"},nV={offset:"strokeDashoffset",array:"strokeDasharray"};function sV(t,e,r=1,n=0,s=!0){t.pathLength=1;const i=s?rV:nV;t[i.offset]=Oe.transform(-n);const o=Oe.transform(e),a=Oe.transform(r);t[i.array]=`${o} ${a}`}function tC(t,{attrX:e,attrY:r,originX:n,originY:s,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...c},l,u,f){if(ZE(t,c,l,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:y}=t;d.transform&&(y&&(h.transform=d.transform),delete d.transform),y&&(n!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=tV(y,n!==void 0?n:.5,s!==void 0?s:.5)),e!==void 0&&(d.x=e),r!==void 0&&(d.y=r),i!==void 0&&sV(d,i,o,a,!1)}const gI=()=>({...eC(),attrs:{}}),rC=t=>typeof t=="string"&&t.toLowerCase()==="svg";function iV(t,e,r,n){const s=x.useMemo(()=>{const i=gI();return tC(i,e,{enableHardwareAcceleration:!1},rC(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};pI(i,t.style,t),s.style={...i,...s.style}}return s}function oV(t=!1){return(r,n,s,i,{latestValues:o},a)=>{const l=(XE(r)?iV:YW)(n,o,a,r),f={...eV(n,typeof r=="string",t),...l,ref:i},{children:d}=n,h=x.useMemo(()=>hn(d)?d.get():d,[d]);return s&&(f["data-projection-id"]=s),x.createElement(r,{...f,children:h})}}const nC=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function vI(t,{style:e,vars:r},n,s){Object.assign(t.style,e,s&&s.getProjectionStyles(n));for(const i in r)t.style.setProperty(i,r[i])}const mI=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function xI(t,e,r,n){vI(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(mI.has(s)?s:nC(s),e.attrs[s])}function sC(t,e){const{style:r}=t,n={};for(const s in r)(hn(r[s])||e.style&&hn(e.style[s])||uI(s,t))&&(n[s]=r[s]);return n}function bI(t,e){const r=sC(t,e);for(const n in t)if(hn(t[n])||hn(e[n])){const s=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[s]=t[n]}return r}function iC(t,e,r,n={},s={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),e}const Hy=t=>Array.isArray(t),aV=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cV=t=>Hy(t)?t[t.length-1]||0:t;function Wp(t){const e=hn(t)?t.get():t;return aV(e)?e.toValue():e}function lV({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,s,i){const o={latestValues:uV(n,s,i,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const wI=t=>(e,r)=>{const n=x.useContext(sv),s=x.useContext(iv),i=()=>lV(t,e,n,s);return r?i():JE(i)};function uV(t,e,r,n){const s={},i=n(t,{});for(const d in i)s[d]=Wp(i[d]);let{initial:o,animate:a}=t;const c=cv(t),l=cI(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const f=u?a:o;return f&&typeof f!="boolean"&&!av(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const y=iC(t,h);if(!y)return;const{transitionEnd:p,transition:b,...g}=y;for(const v in g){let m=g[v];if(Array.isArray(m)){const k=u?m.length-1:0;m=m[k]}m!==null&&(s[v]=m)}for(const v in p)s[v]=p[v]}),s}const fV={useVisualState:wI({scrapeMotionValuesFromProps:bI,createRenderState:gI,onMount:(t,e,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}tC(r,n,{enableHardwareAcceleration:!1},rC(e.tagName),t.transformTemplate),xI(e,r)}})},dV={useVisualState:wI({scrapeMotionValuesFromProps:sC,createRenderState:eC})};function hV(t,{forwardMotionProps:e=!1},r,n){return{...XE(t)?fV:dV,preloadedFeatures:r,useRender:oV(e),createVisualElement:n,Component:t}}function Ki(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const EI=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function uv(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const pV=t=>e=>EI(e)&&t(e,uv(e));function Xi(t,e,r,n){return Ki(t,e,pV(r),n)}const yV=(t,e)=>r=>e(t(r)),xa=(...t)=>t.reduce(yV);function CI(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const p6=CI("dragHorizontal"),y6=CI("dragVertical");function kI(t){let e=!1;if(t==="y")e=y6();else if(t==="x")e=p6();else{const r=p6(),n=y6();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function SI(){const t=kI(!0);return t?(t(),!1):!0}class Fa{constructor(e){this.isMounted=!1,this.node=e}update(){}}function g6(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),s=(i,o)=>{if(i.type==="touch"||SI())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&a[n](i,o)};return Xi(t.current,r,s,{passive:!t.getProps()[n]})}class gV extends Fa{mount(){this.unmount=xa(g6(this.node,!0),g6(this.node,!1))}unmount(){}}class vV extends Fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xa(Ki(this.node.current,"focus",()=>this.onFocus()),Ki(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const AI=(t,e)=>e?t===e?!0:AI(t,e.parentElement):!1,Os=t=>t;function Qm(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,uv(r))}class mV extends Fa{constructor(){super(...arguments),this.removeStartListeners=Os,this.removeEndListeners=Os,this.removeAccessibleListeners=Os,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Xi(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();AI(this.node.current,a.target)?l&&l(a,c):u&&u(a,c)},{passive:!(n.onTap||n.onPointerUp)}),o=Xi(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=xa(i,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=i=>{if(i.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Qm("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=Ki(this.node.current,"keyup",o),Qm("down",(a,c)=>{this.startPress(a,c)})},r=Ki(this.node.current,"keydown",e),n=()=>{this.isPressing&&Qm("cancel",(i,o)=>this.cancelPress(i,o))},s=Ki(this.node.current,"blur",n);this.removeAccessibleListeners=xa(r,s)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!SI()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,r)}mount(){const e=this.node.getProps(),r=Xi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Ki(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xa(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Qb=new WeakMap,Jm=new WeakMap,xV=t=>{const e=Qb.get(t.target);e&&e(t)},bV=t=>{t.forEach(xV)};function wV({root:t,...e}){const r=t||document;Jm.has(r)||Jm.set(r,{});const n=Jm.get(r),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(bV,{root:t,...e})),n[s]}function EV(t,e,r){const n=wV(e);return Qb.set(t,r),n.observe(t),()=>{Qb.delete(t),n.unobserve(t)}}const CV={some:0,all:1};class kV extends Fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:i,fallback:o=!0}=e;if(typeof IntersectionObserver>"u"){o&&this.viewportFallback();return}const a={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:CV[s]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=u?f:d;h&&h(l)};return EV(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(SV(e,r))&&this.startObserver()}unmount(){}}function SV({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const AV={inView:{Feature:kV},tap:{Feature:mV},focus:{Feature:vV},hover:{Feature:gV}};function TI(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n/^\-?\d*\.?\d+$/.test(t),IV=t=>/^0[^.\s]+$/.test(t),Zi={delta:0,timestamp:0},II=1/60*1e3,PV=typeof performance<"u"?()=>performance.now():()=>Date.now(),PI=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(PV()),II);function OV(t){let e=[],r=[],n=0,s=!1,i=!1;const o=new WeakSet,a={schedule:(c,l=!1,u=!1)=>{const f=u&&s,d=f?e:r;return l&&o.add(c),d.indexOf(c)===-1&&(d.push(c),f&&s&&(n=e.length)),c},cancel:c=>{const l=r.indexOf(c);l!==-1&&r.splice(l,1),o.delete(c)},process:c=>{if(s){i=!0;return}if(s=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let l=0;l(t[e]=OV(()=>l0=!0),t),{}),Rr=l1.reduce((t,e)=>{const r=fv[e];return t[e]=(n,s=!1,i=!1)=>(l0||_V(),r.schedule(n,s,i)),t},{}),Ta=l1.reduce((t,e)=>(t[e]=fv[e].cancel,t),{}),Ym=l1.reduce((t,e)=>(t[e]=()=>fv[e].process(Zi),t),{}),NV=t=>fv[t].process(Zi),OI=t=>{l0=!1,Zi.delta=Jb?II:Math.max(Math.min(t-Zi.timestamp,RV),1),Zi.timestamp=t,Yb=!0,l1.forEach(NV),Yb=!1,l0&&(Jb=!1,PI(OI))},_V=()=>{l0=!0,Jb=!0,Yb||PI(OI)};function oC(t,e){t.indexOf(e)===-1&&t.push(e)}function aC(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class cC{constructor(){this.subscriptions=[]}add(e){return oC(this.subscriptions,e),()=>aC(this.subscriptions,e)}notify(e,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,r,n);else for(let i=0;i!isNaN(parseFloat(t));class DV{constructor(e,r={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,s=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:o}=Zi;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Rr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Rr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=MV(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new cC);const n=this.events[e].add(r);return e==="change"?()=>{n(),Rr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Uf(t,e){return new DV(t,e)}const uC=(t,e)=>r=>!!(a1(r)&&GW.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),RI=(t,e,r)=>n=>{if(!a1(n))return n;const[s,i,o,a]=n.match(c0);return{[t]:parseFloat(s),[e]:parseFloat(i),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},BV=t=>Ff(0,255,t),Xm={...Al,transform:t=>Math.round(BV(t))},gc={test:uC("rgb","red"),parse:RI("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Xm.transform(t)+", "+Xm.transform(e)+", "+Xm.transform(r)+", "+Sh(kh.transform(n))+")"};function LV(t){let e="",r="",n="",s="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,r+=r,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Xb={test:uC("#"),parse:LV,transform:gc.transform},uu={test:uC("hsl","hue"),parse:RI("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+hi.transform(Sh(e))+", "+hi.transform(Sh(r))+", "+Sh(kh.transform(n))+")"},Ur={test:t=>gc.test(t)||Xb.test(t)||uu.test(t),parse:t=>gc.test(t)?gc.parse(t):uu.test(t)?uu.parse(t):Xb.parse(t),transform:t=>a1(t)?t:t.hasOwnProperty("red")?gc.transform(t):uu.transform(t)},NI="${c}",_I="${n}";function jV(t){var e,r;return isNaN(t)&&a1(t)&&(((e=t.match(c0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Kb))===null||r===void 0?void 0:r.length)||0)>0}function Gy(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0,n=0;const s=t.match(Kb);s&&(r=s.length,t=t.replace(Kb,NI),e.push(...s.map(Ur.parse)));const i=t.match(c0);return i&&(n=i.length,t=t.replace(c0,_I),e.push(...i.map(Al.parse))),{values:e,numColors:r,numNumbers:n,tokenised:t}}function MI(t){return Gy(t).values}function DI(t){const{values:e,numColors:r,tokenised:n}=Gy(t),s=e.length;return i=>{let o=n;for(let a=0;atypeof t=="number"?0:t;function UV(t){const e=MI(t);return DI(t)(e.map(FV))}const Ia={test:jV,parse:MI,createTransformer:DI,getAnimatableNone:UV},$V=new Set(["brightness","contrast","saturate","opacity"]);function WV(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(c0)||[];if(!n)return t;const s=r.replace(n,"");let i=$V.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+s+")"}const VV=/([a-z-]*)\(.*?\)/g,Zb={...Ia,getAnimatableNone:t=>{const e=t.match(VV);return e?e.map(WV).join(" "):t}},zV={...hI,color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:Zb,WebkitFilter:Zb},fC=t=>zV[t];function dC(t,e){let r=fC(t);return r!==Zb&&(r=Ia),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const BI=t=>e=>e.test(t),HV={test:t=>t==="auto",parse:t=>t},LI=[Al,Oe,hi,Po,KW,qW,HV],jd=t=>LI.find(BI(t)),GV=[...LI,Ur,Ia],qV=t=>GV.find(BI(t));function KV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function QV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function dv(t,e,r){const n=t.getProps();return iC(n,e,r!==void 0?r:n.custom,KV(t),QV(t))}function JV(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Uf(r))}function YV(t,e){const r=dv(t,e);let{transitionEnd:n={},transition:s={},...i}=r?t.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const o in i){const a=cV(i[o]);JV(t,o,a)}}function XV(t,e,r){var n,s;const i=Object.keys(e).filter(a=>!t.hasValue(a)),o=i.length;if(o)for(let a=0;at*1e3,nz={current:!1},hC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,pC=t=>e=>1-t(1-e),yC=t=>t*t,sz=pC(yC),gC=hC(yC),Et=(t,e,r)=>-r*t+r*e+t;function Zm(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function iz({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let s=0,i=0,o=0;if(!e)s=i=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,c=2*r-a;s=Zm(c,a,t+1/3),i=Zm(c,a,t),o=Zm(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}const ex=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},oz=[Xb,gc,uu],az=t=>oz.find(e=>e.test(t));function v6(t){const e=az(t);let r=e.parse(t);return e===uu&&(r=iz(r)),r}const jI=(t,e)=>{const r=v6(t),n=v6(e),s={...r};return i=>(s.red=ex(r.red,n.red,i),s.green=ex(r.green,n.green,i),s.blue=ex(r.blue,n.blue,i),s.alpha=Et(r.alpha,n.alpha,i),gc.transform(s))};function FI(t,e){return typeof t=="number"?r=>Et(t,e,r):Ur.test(t)?jI(t,e):$I(t,e)}const UI=(t,e)=>{const r=[...t],n=r.length,s=t.map((i,o)=>FI(i,e[o]));return i=>{for(let o=0;o{const r={...t,...e},n={};for(const s in r)t[s]!==void 0&&e[s]!==void 0&&(n[s]=FI(t[s],e[s]));return s=>{for(const i in n)r[i]=n[i](s);return r}},$I=(t,e)=>{const r=Ia.createTransformer(e),n=Gy(t),s=Gy(e);return n.numColors===s.numColors&&n.numNumbers>=s.numNumbers?xa(UI(n.values,s.values),r):o=>`${o>0?e:t}`},f0=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},m6=(t,e)=>r=>Et(t,e,r);function lz(t){return typeof t=="number"?m6:typeof t=="string"?Ur.test(t)?jI:$I:Array.isArray(t)?UI:typeof t=="object"?cz:m6}function uz(t,e,r){const n=[],s=r||lz(t[0]),i=t.length-1;for(let o=0;ot[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=uz(e,n,s),a=o.length,c=l=>{let u=0;if(a>1)for(;uc(Ff(t[0],t[i-1],l)):c}function fz(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const s=f0(0,e,n);t.push(Et(r,1,s))}}function dz(t){const e=[0];return fz(e,t.length-1),e}function hz(t,e){return t.map(r=>r*e)}const VI=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,pz=1e-7,yz=12;function gz(t,e,r,n,s){let i,o,a=0;do o=e+(r-e)/2,i=VI(o,n,s)-t,i>0?r=o:e=o;while(Math.abs(i)>pz&&++agz(i,0,1,t,r);return i=>i===0||i===1?i:VI(s(i),e,n)}const HI=t=>1-Math.sin(Math.acos(t)),vC=pC(HI),vz=hC(vC),GI=zI(.33,1.53,.69,.99),mC=pC(GI),mz=hC(mC),xz=t=>(t*=2)<1?.5*mC(t):.5*(2-Math.pow(2,-10*(t-1))),x6={linear:Os,easeIn:yC,easeInOut:gC,easeOut:sz,circIn:HI,circInOut:vz,circOut:vC,backIn:mC,backInOut:mz,backOut:GI,anticipate:xz},b6=t=>{if(Array.isArray(t)){u0(t.length===4);const[e,r,n,s]=t;return zI(e,r,n,s)}else if(typeof t=="string")return u0(x6[t]!==void 0),x6[t];return t},bz=t=>Array.isArray(t)&&typeof t[0]!="number";function wz(t,e){return t.map(()=>e||gC).splice(0,t.length-1)}function ew({keyframes:t,ease:e=gC,times:r,duration:n=300}){t=[...t];const s=bz(e)?e.map(b6):b6(e),i={done:!1,value:t[0]},o=hz(r&&r.length===t.length?r:dz(t),n);function a(){return WI(o,t,{ease:Array.isArray(s)?s:wz(t,s)})}let c=a();return{next:l=>(i.value=c(l),i.done=l>=n,i),flipTarget:()=>{t.reverse(),c=a()}}}const tx=.001,Ez=.01,Cz=10,kz=.05,Sz=1;function Az({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let s,i,o=1-e;o=Ff(kz,Sz,o),t=Ff(Ez,Cz,t/1e3),o<1?(s=l=>{const u=l*o,f=u*t,d=u-r,h=tw(l,o),y=Math.exp(-f);return tx-d/h*y},i=l=>{const f=l*o*t,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*t,y=Math.exp(-f),p=tw(Math.pow(l,2),o);return(-s(l)+tx>0?-1:1)*((d-h)*y)/p}):(s=l=>{const u=Math.exp(-l*t),f=(l-r)*t+1;return-tx+u*f},i=l=>{const u=Math.exp(-l*t),f=(r-l)*(t*t);return u*f});const a=5/t,c=Iz(s,i,a);if(t=t*1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:t}}}const Tz=12;function Iz(t,e,r){let n=r;for(let s=1;st[r]!==void 0)}function Rz(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!w6(t,Oz)&&w6(t,Pz)){const r=Az(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}const Nz=5;function qI({keyframes:t,restDelta:e,restSpeed:r,...n}){let s=t[0],i=t[t.length-1];const o={done:!1,value:s},{stiffness:a,damping:c,mass:l,velocity:u,duration:f,isResolvedFromDuration:d}=Rz(n);let h=_z,y=u?-(u/1e3):0;const p=c/(2*Math.sqrt(a*l));function b(){const g=i-s,v=Math.sqrt(a/l)/1e3,m=Math.abs(g)<5;if(r||(r=m?.01:2),e||(e=m?.005:.5),p<1){const k=tw(v,p);h=A=>{const P=Math.exp(-p*v*A);return i-P*((y+p*v*g)/k*Math.sin(k*A)+g*Math.cos(k*A))}}else if(p===1)h=k=>i-Math.exp(-v*k)*(g+(y+v*g)*k);else{const k=v*Math.sqrt(p*p-1);h=A=>{const P=Math.exp(-p*v*A),R=Math.min(k*A,300);return i-P*((y+p*v*g)*Math.sinh(R)+k*g*Math.cosh(R))/k}}}return b(),{next:g=>{const v=h(g);if(d)o.done=g>=f;else{let m=y;if(g!==0)if(p<1){const P=Math.max(0,g-Nz);m=lC(v-h(P),g-P)}else m=0;const k=Math.abs(m)<=r,A=Math.abs(i-v)<=e;o.done=k&&A}return o.value=o.done?i:v,o},flipTarget:()=>{y=-y,[s,i]=[i,s],b()}}}qI.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const _z=t=>0;function Mz({keyframes:t=[0],velocity:e=0,power:r=.8,timeConstant:n=350,restDelta:s=.5,modifyTarget:i}){const o=t[0],a={done:!1,value:o};let c=r*e;const l=o+c,u=i===void 0?l:i(l);return u!==l&&(c=u-o),{next:f=>{const d=-c*Math.exp(-f/n);return a.done=!(d>s||d<-s),a.value=a.done?u:u+d,a},flipTarget:()=>{}}}const Dz={decay:Mz,keyframes:ew,tween:ew,spring:qI};function KI(t,e,r=0){return t-e-r}function Bz(t,e=0,r=0,n=!0){return n?KI(e+-t,e,r):e-(t-e)+r}function Lz(t,e,r,n){return n?t>=e+r:t<=-r}const jz=t=>{const e=({delta:r})=>t(r);return{start:()=>Rr.update(e,!0),stop:()=>Ta.update(e)}};function Ky({duration:t,driver:e=jz,elapsed:r=0,repeat:n=0,repeatType:s="loop",repeatDelay:i=0,keyframes:o,autoplay:a=!0,onPlay:c,onStop:l,onComplete:u,onRepeat:f,onUpdate:d,type:h="keyframes",...y}){const p=r;let b,g=0,v=t,m=!1,k=!0,A;const P=Dz[o.length>2?"keyframes":h]||ew,R=o[0],N=o[o.length-1];let V={done:!1,value:R};const{needsInterpolation:F}=P;F&&F(R,N)&&(A=WI([0,100],[R,N],{clamp:!1}),o=[0,100]);const X=P({...y,duration:t,keyframes:o});function re(){g++,s==="reverse"?(k=g%2===0,r=Bz(r,v,i,k)):(r=KI(r,v,i),s==="mirror"&&X.flipTarget()),m=!1,f&&f()}function le(){b&&b.stop(),u&&u()}function ee(G){k||(G=-G),r+=G,m||(V=X.next(Math.max(0,r)),A&&(V.value=A(V.value)),m=k?V.done:r<=0),d&&d(V.value),m&&(g===0&&(v=v!==void 0?v:r),g{l&&l(),b&&b.stop()},set currentTime(G){r=p,ee(G)},sample:G=>{r=p;const Z=t&&typeof t=="number"?Math.max(t*.5,50):50;let E=0;for(ee(0);E<=G;){const S=G-E;ee(Math.min(S,Z)),E+=Z}return V}}}function Fz(t){return!t||Array.isArray(t)||typeof t=="string"&&QI[t]}const eh=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,QI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eh([0,.65,.55,1]),circOut:eh([.55,0,1,.45]),backIn:eh([.31,.01,.66,-.59]),backOut:eh([.33,1.53,.69,.99])};function Uz(t){if(t)return Array.isArray(t)?eh(t):QI[t]}function $z(t,e,r,{delay:n=0,duration:s,repeat:i=0,repeatType:o="loop",ease:a,times:c}={}){return t.animate({[e]:r,offset:c},{delay:n,duration:s,easing:Uz(a),fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const E6={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rx={},JI={};for(const t in E6)JI[t]=()=>(rx[t]===void 0&&(rx[t]=E6[t]()),rx[t]);function Wz(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const Vz=new Set(["opacity","clipPath","filter","transform"]),Z1=10;function zz(t,e,{onUpdate:r,onComplete:n,...s}){if(!(JI.waapi()&&Vz.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:l}=s;if(s.type==="spring"||!Fz(s.ease)){if(s.repeat===1/0)return;const f=Ky({...s,elapsed:0});let d={done:!1,value:o[0]};const h=[];let y=0;for(;!d.done&&y<2e4;)d=f.sample(y),h.push(d.value),y+=Z1;o=h,a=y-Z1,l="linear"}const u=$z(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:l});return u.onfinish=()=>{t.set(Wz(o,s)),Rr.update(()=>u.cancel()),n&&n()},{get currentTime(){return u.currentTime||0},set currentTime(f){u.currentTime=f},stop:()=>{const{currentTime:f}=u;if(f){const d=Ky({...s,autoplay:!1});t.setWithVelocity(d.sample(f-Z1).value,d.sample(f).value,Z1)}Rr.update(()=>u.cancel())}}}function YI(t,e){const r=performance.now(),n=({timestamp:s})=>{const i=s-r;i>=e&&(Ta.read(n),t(i-e))};return Rr.read(n,!0),()=>Ta.read(n)}function Hz({keyframes:t,elapsed:e,onUpdate:r,onComplete:n}){const s=()=>{r&&r(t[t.length-1]),n&&n()};return e?{stop:YI(s,-e)}:s()}function Gz({keyframes:t,velocity:e=0,min:r,max:n,power:s=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:f,onComplete:d,onStop:h}){const y=t[0];let p;function b(k){return r!==void 0&&kn}function g(k){return r===void 0?n:n===void 0||Math.abs(r-k){f&&f(A),k.onUpdate&&k.onUpdate(A)},onComplete:d,onStop:h})}function m(k){v({type:"spring",stiffness:o,damping:a,restDelta:c,...k})}if(b(y))m({velocity:e,keyframes:[y,g(y)]});else{let k=s*e+y;typeof l<"u"&&(k=l(k));const A=g(k),P=A===r?-1:1;let R,N;const V=F=>{R=N,N=F,e=lC(F-R,Zi.delta),(P===1&&F>A||P===-1&&Fp&&p.stop()}}const qz={type:"spring",stiffness:500,damping:25,restSpeed:10},Kz=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Qz={type:"keyframes",duration:.8},Jz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yz=(t,{keyframes:e})=>e.length>2?Qz:Sl.has(t)?t.startsWith("scale")?Kz(e[1]):qz:Jz,rw=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Ia.test(e)&&!e.startsWith("url("));function Xz({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function C6(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function k6(t){return typeof t=="number"?0:dC("",t)}function XI(t,e){return t[e]||t.default||t}function Zz(t,e,r,n){const s=rw(e,r);let i=n.from!==void 0?n.from:t.get();return i==="none"&&s&&typeof r=="string"?i=dC(e,r):C6(i)&&typeof r=="string"?i=k6(r):!Array.isArray(r)&&C6(r)&&typeof i=="string"&&(r=k6(i)),Array.isArray(r)?(r[0]===null&&(r[0]=i),r):[i,r]}const xC=(t,e,r,n={})=>s=>{const i=XI(n,t)||{},o=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Vp(o);const c=Zz(e,t,r,i),l=c[0],u=c[c.length-1],f=rw(t,l),d=rw(t,u);let h={keyframes:c,velocity:e.getVelocity(),...i,elapsed:a,onUpdate:y=>{e.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{s(),i.onComplete&&i.onComplete()}};if(!f||!d||nz.current||i.type===!1)return Hz(h);if(i.type==="inertia")return Gz(h);if(Xz(i)||(h={...h,...Yz(t,h)}),h.duration&&(h.duration=Vp(h.duration)),h.repeatDelay&&(h.repeatDelay=Vp(h.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const y=zz(e,t,h);if(y)return y}return Ky(h)};function eH(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const s=e.map(i=>nw(t,i,r));n=Promise.all(s)}else if(typeof e=="string")n=nw(t,e,r);else{const s=typeof e=="function"?dv(t,e,r.custom):e;n=ZI(t,s,r)}return n.then(()=>t.notify("AnimationComplete",e))}function nw(t,e,r={}){const n=dv(t,e,r.custom);let{transition:s=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const i=n?()=>ZI(t,n,r):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=s;return tH(t,e,l+c,u,f,r)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[i,o]:[o,i];return c().then(l)}else return Promise.all([i(),o(r.delay)])}function ZI(t,e,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");n&&(i=n);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const f in a){const d=t.getValue(f),h=a[f];if(!d||h===void 0||u&&nH(u,f))continue;const y={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!d.hasAnimated){const b=t.getProps()[rz];b&&(y.elapsed=window.HandoffAppearAnimations(b,f,d,Rr))}let p=d.start(xC(f,d,h,t.shouldReduceMotion&&Sl.has(f)?{type:!1}:y));qy(c)&&(c.add(f),p=p.then(()=>c.remove(f))),l.push(p)}return Promise.all(l).then(()=>{o&&YV(t,o)})}function tH(t,e,r=0,n=0,s=1,i){const o=[],a=(t.variantChildren.size-1)*n,c=s===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(t.variantChildren).sort(rH).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(nw(l,e,{...i,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function rH(t,e){return t.sortNodePosition(e)}function nH({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}const sH=[...KE].reverse(),iH=KE.length;function oH(t){return e=>Promise.all(e.map(({animation:r,options:n})=>eH(t,r,n)))}function aH(t){let e=oH(t);const r=lH();let n=!0;const s=(c,l)=>{const u=dv(t,l);if(u){const{transition:f,transitionEnd:d,...h}=u;c={...c,...h,...d}}return c};function i(c){e=c(t)}function o(c,l){const u=t.getProps(),f=t.getVariantContext(!0)||{},d=[],h=new Set;let y={},p=1/0;for(let g=0;gp&&A;const F=Array.isArray(k)?k:[k];let X=F.reduce(s,{});P===!1&&(X={});const{prevResolvedValues:re={}}=m,le={...re,...X},ee=B=>{V=!0,h.delete(B),m.needsAnimating[B]=!0};for(const B in le){const G=X[B],Z=re[B];y.hasOwnProperty(B)||(G!==Z?Hy(G)&&Hy(Z)?!TI(G,Z)||N?ee(B):m.protectedKeys[B]=!0:G!==void 0?ee(B):h.add(B):G!==void 0&&h.has(B)?ee(B):m.protectedKeys[B]=!0)}m.prevProp=k,m.prevResolvedValues=X,m.isActive&&(y={...y,...X}),n&&t.blockInitialAnimation&&(V=!1),V&&!R&&d.push(...F.map(B=>({animation:B,options:{type:v,...c}})))}if(h.size){const g={};h.forEach(v=>{const m=t.getBaseTarget(v);m!==void 0&&(g[v]=m)}),d.push({animation:g})}let b=!!d.length;return n&&u.initial===!1&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(d):Promise.resolve()}function a(c,l,u){var f;if(r[c].isActive===l)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),r[c].isActive=l;const d=o(u,c);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>r}}function cH(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!TI(e,t):!1}function Qa(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lH(){return{animate:Qa(!0),whileInView:Qa(),whileHover:Qa(),whileTap:Qa(),whileDrag:Qa(),whileFocus:Qa(),exit:Qa()}}class uH extends Fa{constructor(e){super(e),e.animationState||(e.animationState=aH(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),av(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let fH=0;class dH extends Fa{constructor(){super(...arguments),this.id=fH++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&i.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const hH={animation:{Feature:uH},exit:{Feature:dH}},S6=(t,e)=>Math.abs(t-e);function pH(t,e){const r=S6(t.x,e.x),n=S6(t.y,e.y);return Math.sqrt(r**2+n**2)}class eP{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=sx(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=pH(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=Zi;this.history.push({...d,timestamp:h});const{onStart:y,onMove:p}=this.handlers;u||(y&&y(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=nx(u,this.transformPagePoint),Rr.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=sx(l.type==="pointercancel"?this.lastMoveEventInfo:nx(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!EI(e))return;this.handlers=r,this.transformPagePoint=n;const s=uv(e),i=nx(s,this.transformPagePoint),{point:o}=i,{timestamp:a}=Zi;this.history=[{...o,timestamp:a}];const{onSessionStart:c}=r;c&&c(e,sx(i,this.history)),this.removeListeners=xa(Xi(window,"pointermove",this.handlePointerMove),Xi(window,"pointerup",this.handlePointerUp),Xi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ta.update(this.updatePoint)}}function nx(t,e){return e?{point:e(t.point)}:t}function A6(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sx({point:t},e){return{point:t,delta:A6(t,tP(e)),offset:A6(t,yH(e)),velocity:gH(e,.1)}}function yH(t){return t[0]}function tP(t){return t[t.length-1]}function gH(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const s=tP(t);for(;r>=0&&(n=t[r],!(s.timestamp-n.timestamp>Vp(e)));)r--;if(!n)return{x:0,y:0};const i=(s.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};const o={x:(s.x-n.x)/i,y:(s.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Nn(t){return t.max-t.min}function sw(t,e=0,r=.01){return Math.abs(t-e)<=r}function T6(t,e,r,n=.5){t.origin=n,t.originPoint=Et(e.min,e.max,t.origin),t.scale=Nn(r)/Nn(e),(sw(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Et(r.min,r.max,t.origin)-t.originPoint,(sw(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ah(t,e,r,n){T6(t.x,e.x,r.x,n?n.originX:void 0),T6(t.y,e.y,r.y,n?n.originY:void 0)}function I6(t,e,r){t.min=r.min+e.min,t.max=t.min+Nn(e)}function vH(t,e,r){I6(t.x,e.x,r.x),I6(t.y,e.y,r.y)}function P6(t,e,r){t.min=e.min-r.min,t.max=t.min+Nn(e)}function Th(t,e,r){P6(t.x,e.x,r.x),P6(t.y,e.y,r.y)}function mH(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Et(r,t,n.max):Math.min(t,r)),t}function O6(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function xH(t,{top:e,left:r,bottom:n,right:s}){return{x:O6(t.x,r,s),y:O6(t.y,e,n)}}function R6(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=f0(e.min,e.max-n,t.min):n>s&&(r=f0(t.min,t.max-s,e.min)),Ff(0,1,r)}function EH(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const iw=.35;function CH(t=iw){return t===!1?t=0:t===!0&&(t=iw),{x:N6(t,"left","right"),y:N6(t,"top","bottom")}}function N6(t,e,r){return{min:_6(t,e),max:_6(t,r)}}function _6(t,e){return typeof t=="number"?t:t[e]||0}const M6=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ih=()=>({x:M6(),y:M6()}),D6=()=>({min:0,max:0}),Lt=()=>({x:D6(),y:D6()});function Gs(t){return[t("x"),t("y")]}function rP({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function kH({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function SH(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ix(t){return t===void 0||t===1}function ow({scale:t,scaleX:e,scaleY:r}){return!ix(t)||!ix(e)||!ix(r)}function tc(t){return ow(t)||nP(t)||t.z||t.rotate||t.rotateX||t.rotateY}function nP(t){return B6(t.x)||B6(t.y)}function B6(t){return t&&t!=="0%"}function Qy(t,e,r){const n=t-r,s=e*n;return r+s}function L6(t,e,r,n,s){return s!==void 0&&(t=Qy(t,s,n)),Qy(t,r,n)+e}function aw(t,e=0,r=1,n,s){t.min=L6(t.min,e,r,n,s),t.max=L6(t.max,e,r,n,s)}function sP(t,{x:e,y:r}){aw(t.x,e.translate,e.scale,e.originPoint),aw(t.y,r.translate,r.scale,r.originPoint)}function AH(t,e,r,n=!1){const s=r.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Mo(t,e){t.min=t.min+e,t.max=t.max+e}function F6(t,e,[r,n,s]){const i=e[s]!==void 0?e[s]:.5,o=Et(t.min,t.max,i);aw(t,e[r],e[n],o,e.scale)}const TH=["x","scaleX","originX"],IH=["y","scaleY","originY"];function fu(t,e){F6(t.x,e,TH),F6(t.y,e,IH)}function iP(t,e){return rP(SH(t.getBoundingClientRect(),e))}function PH(t,e,r){const n=iP(t,r),{scroll:s}=e;return s&&(Mo(n.x,s.offset.x),Mo(n.y,s.offset.y)),n}const OH=new WeakMap;class RH{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const s=c=>{this.stopAnimation(),r&&this.snapToCursor(uv(c,"page").point)},i=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kI(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Gs(y=>{let p=this.getAxisMotionValue(y).get()||0;if(hi.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const g=b.layout.layoutBox[y];g&&(p=Nn(g)*(parseFloat(p)/100))}}this.originPoint[y]=p}),d&&d(c,l);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(c,l)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:y}=l;if(f&&this.currentDirection===null){this.currentDirection=NH(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,y),this.updateAxis("y",l.point,y),this.visualElement.render(),h&&h(c,l)},a=(c,l)=>this.stop(c,l);this.panSession=new eP(e,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&i(e,r)}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:s}=this.getProps();if(!n||!ep(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=mH(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&lu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=xH(n.layoutBox,e):this.constraints=!1,this.elastic=CH(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Gs(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=EH(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!lu(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=PH(n,s.root,this.visualElement.getTransformPagePoint());let o=bH(s.layout.layoutBox,i);if(r){const a=r(kH(o));this.hasMutatedConstraints=!!a,a&&(o=rP(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Gs(u=>{if(!ep(u,r,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=s?200:1e6,h=s?40:1e7,y={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(xC(e,n,0,r))}stopAnimation(){Gs(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Gs(r=>{const{drag:n}=this.getProps();if(!ep(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[r];i.set(e[r]-Et(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!lu(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Gs(o=>{const a=this.getAxisMotionValue(o);if(a){const c=a.get();s[o]=wH({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Gs(o=>{if(!ep(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Et(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;OH.set(this.visualElement,this);const e=this.visualElement.current,r=Xi(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();lu(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),n();const o=Ki(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Gs(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=iw,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ep(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function NH(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class _H extends Fa{constructor(e){super(e),this.removeGroupControls=Os,this.removeListeners=Os,this.controls=new RH(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Os}unmount(){this.removeGroupControls(),this.removeListeners()}}class MH extends Fa{constructor(){super(...arguments),this.removePointerDownListener=Os}onPointerDown(e){this.session=new eP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:e,onStart:r,onMove:n,onEnd:(i,o)=>{delete this.session,s&&s(i,o)}}}mount(){this.removePointerDownListener=Xi(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function DH(){const t=x.useContext(iv);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,s=x.useId();return x.useEffect(()=>n(s),[]),!e&&r?[!1,()=>r&&r(s)]:[!0]}function U6(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Fd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Oe.test(t))t=parseFloat(t);else return t;const r=U6(t,e.target.x),n=U6(t,e.target.y);return`${r}% ${n}%`}},oP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function BH(t){const e=oP.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function cw(t,e,r=1){const[n,s]=BH(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);return i?i.trim():qb(s)?cw(s,e,r+1):s}function LH(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(s=>{const i=s.get();if(!qb(i))return;const o=cw(i,n);o&&s.set(o)});for(const s in e){const i=e[s];if(!qb(i))continue;const o=cw(i,n);o&&(e[s]=o,r&&r[s]===void 0&&(r[s]=i))}return{target:e,transitionEnd:r}}const $6="_$css",jH={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,s=t.includes("var("),i=[];s&&(t=t.replace(oP,h=>(i.push(h),$6)));const o=Ia.parse(t);if(o.length>5)return n;const a=Ia.createTransformer(t),c=typeof o[0]!="number"?1:0,l=r.x.scale*e.x,u=r.y.scale*e.y;o[0+c]/=l,o[1+c]/=u;const f=Et(l,u,.5);typeof o[2+c]=="number"&&(o[2+c]/=f),typeof o[3+c]=="number"&&(o[3+c]/=f);let d=a(o);if(s){let h=0;d=d.replace($6,()=>{const y=i[h];return h++,y})}return d}};class FH extends Vr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=e;$W(UH),i&&(r.group&&r.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ch.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:s,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,s||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Rr.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function aP(t){const[e,r]=DH(),n=x.useContext(YE);return Vr.createElement(FH,{...t,layoutGroup:n,switchLayoutGroup:x.useContext(lI),isPresent:e,safeToRemove:r})}const UH={borderRadius:{...Fd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fd,borderTopRightRadius:Fd,borderBottomLeftRadius:Fd,borderBottomRightRadius:Fd,boxShadow:jH};function $H(t,e,r={}){const n=hn(t)?t:Uf(t);return n.start(xC("",n,e,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const cP=["TopLeft","TopRight","BottomLeft","BottomRight"],WH=cP.length,W6=t=>typeof t=="string"?parseFloat(t):t,V6=t=>typeof t=="number"||Oe.test(t);function VH(t,e,r,n,s,i){s?(t.opacity=Et(0,r.opacity!==void 0?r.opacity:1,zH(n)),t.opacityExit=Et(e.opacity!==void 0?e.opacity:1,0,HH(n))):i&&(t.opacity=Et(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(f0(t,e,n))}function H6(t,e){t.min=e.min,t.max=e.max}function Dn(t,e){H6(t.x,e.x),H6(t.y,e.y)}function G6(t,e,r,n,s){return t-=e,t=Qy(t,1/r,n),s!==void 0&&(t=Qy(t,1/s,n)),t}function GH(t,e=0,r=1,n=.5,s,i=t,o=t){if(hi.test(e)&&(e=parseFloat(e),e=Et(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Et(i.min,i.max,n);t===i&&(a-=e),t.min=G6(t.min,e,r,a,s),t.max=G6(t.max,e,r,a,s)}function q6(t,e,[r,n,s],i,o){GH(t,e[r],e[n],e[s],e.scale,i,o)}const qH=["x","scaleX","originX"],KH=["y","scaleY","originY"];function K6(t,e,r,n){q6(t.x,e,qH,r?r.x:void 0,n?n.x:void 0),q6(t.y,e,KH,r?r.y:void 0,n?n.y:void 0)}function Q6(t){return t.translate===0&&t.scale===1}function uP(t){return Q6(t.x)&&Q6(t.y)}function lw(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function J6(t){return Nn(t.x)/Nn(t.y)}class QH{constructor(){this.members=[]}add(e){oC(this.members,e),e.scheduleRender()}remove(e){if(aC(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(s=>e===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Y6(t,e,r){let n="";const s=t.x.translate/e.x,i=t.y.translate/e.y;if((s||i)&&(n=`translate3d(${s}px, ${i}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const JH=(t,e)=>t.depth-e.depth;class YH{constructor(){this.children=[],this.isDirty=!1}add(e){oC(this.children,e),this.isDirty=!0}remove(e){aC(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(JH),this.isDirty=!1,this.children.forEach(e)}}function XH(t){window.MotionDebug&&window.MotionDebug.record(t)}const X6=["","X","Y","Z"],Z6=1e3;let ZH=0;const rc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fP({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o,a={},c=e==null?void 0:e()){this.id=ZH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{rc.totalNodes=rc.resolvedTargetDeltas=rc.recalculatedProjection=0,this.nodes.forEach(rG),this.nodes.forEach(oG),this.nodes.forEach(aG),this.nodes.forEach(nG),XH(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=YI(d,250),Ch.hasAnimatedSinceResize&&(Ch.hasAnimatedSinceResize=!1,this.nodes.forEach(tA))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||dG,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=u.getProps(),v=!this.targetLayout||!lw(this.targetLayout,y)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const k={...XI(p,"layout"),onPlay:b,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else!d&&this.animationProgress===0&&tA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ta.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cG),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const A=k/1e3;rA(f.x,o.x,A),rA(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Th(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uG(this.relativeTarget,this.relativeTargetOrigin,d,A),m&&lw(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=Lt()),Dn(m,this.relativeTarget)),p&&(this.animationValues=u,VH(u,l,this.latestValues,A,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ta.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rr.update(()=>{Ch.hasAnimatedSinceResize=!0,this.currentAnimation=$H(0,Z6,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&dP(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Lt();const f=Nn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=Nn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}Dn(a,c),fu(a,u),Ah(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new QH),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(eA),this.root.sharedNodes.clear()}}}function eG(t){t.updateLayout()}function tG(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;i==="size"?Gs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Nn(d);d.min=n[f].min,d.max=d.min+h}):dP(i,r.layoutBox,n)&&Gs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Nn(n[f]);d.max=d.min+h});const a=Ih();Ah(a,n,r.layoutBox);const c=Ih();o?Ah(c,t.applyTransform(s,!0),r.measuredBox):Ah(c,n,r.layoutBox);const l=!uP(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=Lt();Th(y,r.layoutBox,d.layoutBox);const p=Lt();Th(p,n,h.layoutBox),lw(y,p)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function rG(t){rc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sG(t){t.clearSnapshot()}function eA(t){t.clearMeasurements()}function iG(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function oG(t){t.resolveTargetDelta()}function aG(t){t.calcProjection()}function cG(t){t.resetRotation()}function lG(t){t.removeLeadSnapshot()}function rA(t,e,r){t.translate=Et(e.translate,0,r),t.scale=Et(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function nA(t,e,r,n){t.min=Et(e.min,r.min,n),t.max=Et(e.max,r.max,n)}function uG(t,e,r,n){nA(t.x,e.x,r.x,n),nA(t.y,e.y,r.y,n)}function fG(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const dG={duration:.45,ease:[.4,0,.1,1]};function hG(t,e){let r=t.root;for(let i=t.path.length-1;i>=0;i--)if(t.path[i].instance){r=t.path[i];break}const s=(r&&r!==t.root?r.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function sA(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function pG(t){sA(t.x),sA(t.y)}function dP(t,e,r){return t==="position"||t==="preserve-aspect"&&!sw(J6(e),J6(r),.2)}const yG=fP({attachResizeListener:(t,e)=>Ki(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ox={current:void 0},hP=fP({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ox.current){const t=new yG(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ox.current=t}return ox.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),gG={pan:{Feature:MH},drag:{Feature:_H,ProjectionNode:hP,MeasureLayout:aP}},vG=new Set(["width","height","top","left","right","bottom","x","y"]),pP=t=>vG.has(t),mG=t=>Object.keys(t).some(pP),iA=t=>t===Al||t===Oe,oA=(t,e)=>parseFloat(t.split(", ")[e]),aA=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const s=n.match(/^matrix3d\((.+)\)$/);if(s)return oA(s[1],e);{const i=n.match(/^matrix\((.+)\)$/);return i?oA(i[1],t):0}},xG=new Set(["x","y","z"]),bG=lv.filter(t=>!xG.has(t));function wG(t){const e=[];return bG.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const cA={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:aA(4,13),y:aA(5,14)},EG=(t,e,r)=>{const n=e.measureViewportBox(),s=e.current,i=getComputedStyle(s),{display:o}=i,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(l=>{a[l]=cA[l](n,i)}),e.render();const c=e.measureViewportBox();return r.forEach(l=>{const u=e.getValue(l);u&&u.jump(a[l]),t[l]=cA[l](c,i)}),t},CG=(t,e,r={},n={})=>{e={...e},n={...n};const s=Object.keys(e).filter(pP);let i=[],o=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let u=r[c],f=jd(u);const d=e[c];let h;if(Hy(d)){const y=d.length,p=d[0]===null?1:0;u=d[p],f=jd(u);for(let b=p;b=0?window.pageYOffset:null,l=EG(e,t,a);return i.length&&i.forEach(([u,f])=>{t.getValue(u).set(f)}),t.render(),ov&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:e,transitionEnd:n}};function kG(t,e,r,n){return mG(e)?CG(t,e,r,n):{target:e,transitionEnd:n}}const SG=(t,e,r,n)=>{const s=LH(t,e,n);return e=s.target,n=s.transitionEnd,kG(t,e,r,n)},uw={current:null},yP={current:!1};function AG(){if(yP.current=!0,!!ov)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>uw.current=t.matches;t.addListener(e),e()}else uw.current=!1}function TG(t,e,r){const{willChange:n}=e;for(const s in e){const i=e[s],o=r[s];if(hn(i))t.addValue(s,i),qy(n)&&n.add(s);else if(hn(o))t.addValue(s,Uf(i,{owner:t})),qy(n)&&n.remove(s);else if(o!==i)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(i)}else{const a=t.getStaticValue(s);t.addValue(s,Uf(a!==void 0?a:i,{owner:t}))}}for(const s in r)e[s]===void 0&&t.removeValue(s);return e}const gP=Object.keys(a0),IG=gP.length,lA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],PG=QE.length;class OG{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Rr.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=cv(r),this.isVariantNode=cI(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(r,{});for(const f in u){const d=u[f];a[f]!==void 0&&hn(d)&&(d.set(a[f],!1),qy(l)&&l.add(f))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),yP.current||AG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uw.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ta.update(this.notifyUpdate),Ta.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=Sl.has(e),s=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Rr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,s,i,o){let a,c;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:y})}return c}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update(this.props,this.prevProps):(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Uf(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,s=typeof n=="string"||typeof n=="object"?(r=iC(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!hn(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new cC),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class vP extends OG{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:s},i){let o=ez(n,e||{},this);if(s&&(r&&(r=s(r)),n&&(n=s(n)),o&&(o=s(o))),i){XV(this,n,o);const a=SG(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function RG(t){return window.getComputedStyle(t)}class NG extends vP{readValueFromInstance(e,r){if(Sl.has(r)){const n=fC(r);return n&&n.default||0}else{const n=RG(e),s=(dI(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:r}){return iP(e,r)}build(e,r,n,s){ZE(e,r,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,r){return sC(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;hn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,s){vI(e,r,n,s)}}class _G extends vP{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Sl.has(r)){const n=fC(r);return n&&n.default||0}return r=mI.has(r)?r:nC(r),e.getAttribute(r)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(e,r){return bI(e,r)}build(e,r,n,s){tC(e,r,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,r,n,s){xI(e,r,n,s)}mount(e){this.isSVGTag=rC(e.tagName),super.mount(e)}}const MG=(t,e)=>XE(t)?new _G(e,{enableHardwareAcceleration:!1}):new NG(e,{enableHardwareAcceleration:!0}),DG={layout:{ProjectionNode:hP,MeasureLayout:aP}},BG={...hH,...AV,...gG,...DG},Au=FW((t,e)=>hV(t,e,BG,MG));function mP(){const t=x.useRef(!1);return Wy(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function LG(){const t=mP(),[e,r]=x.useState(0),n=x.useCallback(()=>{t.current&&r(e+1)},[e]);return[x.useCallback(()=>Rr.postRender(n),[n]),e]}class jG extends x.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function FG({children:t,isPresent:e}){const r=x.useId(),n=x.useRef(null),s=x.useRef({width:0,height:0,top:0,left:0});return x.useInsertionEffect(()=>{const{width:i,height:o,top:a,left:c}=s.current;if(e||!n.current||!i||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${i}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(l)}},[e]),x.createElement(jG,{isPresent:e,childRef:n,sizeRef:s},x.cloneElement(t,{ref:n}))}const ax=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:i,mode:o})=>{const a=JE(UG),c=x.useId(),l=x.useMemo(()=>({id:c,initial:e,isPresent:r,custom:s,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;n&&n()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?void 0:[r]);return x.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[r]),x.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=x.createElement(FG,{isPresent:r},t)),x.createElement(iv.Provider,{value:l},t)};function UG(){return new Map}function $G(t){return x.useEffect(()=>()=>t(),[])}const Hl=t=>t.key||"";function WG(t,e){t.forEach(r=>{const n=Hl(r);e.set(n,r)})}function VG(t){const e=[];return x.Children.forEach(t,r=>{x.isValidElement(r)&&e.push(r)}),e}const xP=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{s&&(o="wait");let[a]=LG();const c=x.useContext(YE).forceRender;c&&(a=c);const l=mP(),u=VG(t);let f=u;const d=new Set,h=x.useRef(f),y=x.useRef(new Map).current,p=x.useRef(!0);if(Wy(()=>{p.current=!1,WG(u,y),h.current=f}),$G(()=>{p.current=!0,y.clear(),d.clear()}),p.current)return x.createElement(x.Fragment,null,f.map(m=>x.createElement(ax,{key:Hl(m),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:o},m)));f=[...f];const b=h.current.map(Hl),g=u.map(Hl),v=b.length;for(let m=0;m{if(g.indexOf(m)!==-1)return;const k=y.get(m);if(!k)return;const A=b.indexOf(m),P=()=>{y.delete(m),d.delete(m);const R=h.current.findIndex(N=>N.key===m);if(h.current.splice(R,1),!d.size){if(h.current=u,l.current===!1)return;a(),n&&n()}};f.splice(A,0,x.createElement(ax,{key:Hl(k),isPresent:!1,onExitComplete:P,custom:e,presenceAffectsLayout:i,mode:o},k))}),f=f.map(m=>{const k=m.key;return d.has(k)?m:x.createElement(ax,{key:Hl(m),isPresent:!0,presenceAffectsLayout:i,mode:o},m)}),x.createElement(x.Fragment,null,d.size?f:f.map(m=>x.cloneElement(m)))},bP={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( + 243.18deg, + rgba(86, 52, 189, 0.85) 0%, + rgba(49, 41, 223, 0.85) 63.54%, + rgba(7, 98, 149, 0.85) 100% + )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},zG={...bP,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},HG={...bP,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},GG={grey:{50:"#D1D1D1",100:"#B0B0B0",200:"#888888",300:"#6D6D6D",400:"#5D5D5D",500:"#4F4F4F",600:"#454545",700:"#3D3D3D",800:"#262626",900:"#1B1B1B",950:"#101010"},red:{50:"#FDF7EF",100:"#FBECD9",200:"#F6D7B2",300:"#F1BB80",400:"#EA954D",500:"#E5792A",600:"#D66020",700:"#C2501F",800:"#8E3B1E",900:"#72331C",950:"#3E170C"},green:{50:"#F0FDF5",100:"#DCFCE9",200:"#BAF8D4",300:"#85F0B3",400:"#48E089",500:"#1FC266",600:"#14A554",700:"#148144",800:"#156639",900:"#135431",950:"#042F19"},yellow:{50:"#FBFAEB",100:"#F6F2CB",200:"#EFE499",300:"#E5CE5F",400:"#DDB938",500:"#CDA125",600:"#B07E1E",700:"#8D5C1B",800:"#754A1E",900:"#653F1E",950:"#3A200E"},blue:{50:"#F0F8FF",100:"#E0F0FE",200:"#B9E0FE",300:"#7CC8FD",400:"#36AEFA",500:"#0C94EB",600:"#0076CC",700:"#015CA3",800:"#064F86",900:"#0B426F",950:"#072A4A"},indigo:{50:"#F2F2FF",100:"#E9E7FF",200:"#D3D1FF",300:"#B3ADFF",400:"#8E7EFF",500:"#6A4AFF",600:"#5826FF",700:"#4411E1",800:"#3D10C7",900:"#340FA3",950:"#1C066F"},violet:{50:"#F3F2FF",100:"#EBE8FF",200:"#D9D3FF",300:"#BDB0FF",400:"#9D84FF",500:"#7F52FF",600:"#7537F9",700:"#601CE5",800:"#5117C0",900:"#43159D",950:"#270A6B"}},qG={dark:zG,light:HG,palettes:GG},KG={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var uA={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function QG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JG(t){var e=QG(t,"string");return typeof e=="symbol"?e:String(e)}function YG(t,e,r){return e=JG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function cx(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nc.styles)),i=Object.keys(s),o=i.filter(c=>"mappings"in s[c]),a=c=>{var l=[],u={},f=cx({},c),d=!1;for(var h of o){var y=c[h];if(y!=null){var p=s[h];d=!0;for(var b of p.mappings)u[b]=y,f[b]==null&&delete f[b]}}var g=d?cx(cx({},u),f):c,v=function(){var A=g[m],P=s[m];try{if(P.mappings)return 1;if(typeof A=="string"||typeof A=="number")l.push(P.values[A].defaultClass);else if(Array.isArray(A))for(var R=0;Rt,eq=function(){return XG(ZG)(...arguments)},wP=eq({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},18:{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},20:{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"0.25":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},"0.5":{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},"1.5":{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},none:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},px:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},auto:{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},full:{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"1/2":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/3":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"2/3":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},"1/4":{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},"3/4":{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},fit:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},max:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},min:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"},vw:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},vh:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"}}},height:{values:{0:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},1:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},2:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},3:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},4:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},5:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},6:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},7:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},8:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},9:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},10:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},12:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},14:{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},16:{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},18:{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},20:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},"0.25":{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},"0.5":{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},"1.5":{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},none:{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},px:{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},auto:{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},full:{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"1/2":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},"1/3":{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},"2/3":{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},"1/4":{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},"3/4":{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},fit:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"},max:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},min:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},vw:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},vh:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},1:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},2:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},3:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},4:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},5:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},6:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},7:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},8:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},9:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},10:{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},12:{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},14:{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},16:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},18:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},20:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},"0.25":{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"0.5":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1.5":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},none:{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},px:{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},auto:{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},full:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},"1/2":{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},"1/3":{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},"2/3":{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},"1/4":{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"},"3/4":{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},fit:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},max:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},min:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},vw:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},vh:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},1:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},2:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},3:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},4:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},5:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},6:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},7:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},8:{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},9:{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},10:{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},12:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},14:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},16:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},18:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},20:{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"0.25":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"0.5":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1.5":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},none:{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},px:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},auto:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},full:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},"1/2":{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},"1/3":{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"},"2/3":{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},"1/4":{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},"3/4":{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},fit:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},max:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},min:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},vw:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},vh:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},1:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},2:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},3:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},4:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},5:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},6:{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},7:{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},8:{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},9:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},10:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},12:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},14:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},16:{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},18:{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},20:{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"0.25":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"0.5":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},"1.5":{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},none:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},px:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},auto:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},full:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"},"1/2":{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},"1/3":{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},"2/3":{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},"1/4":{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},"3/4":{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},fit:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},max:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},min:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},vw:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},vh:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},1:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},2:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},3:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},4:{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},5:{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},6:{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},7:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},8:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},9:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},10:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},12:{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},14:{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},16:{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},18:{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},20:{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},"0.25":{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},"0.5":{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},"1.5":{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},none:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},px:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"},auto:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},full:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},"1/2":{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},"1/3":{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},"2/3":{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},"1/4":{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},"3/4":{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},fit:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},max:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},min:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},vw:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},vh:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"}}},top:{values:{0:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},1:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},2:{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},3:{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},4:{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},5:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"},6:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},7:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},8:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},9:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},10:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},12:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},14:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},16:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},18:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},20:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},"0.25":{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},"0.5":{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},"1.5":{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},auto:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"}}},bottom:{values:{0:{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},1:{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},2:{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},3:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"},4:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},5:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},6:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},7:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},8:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},9:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},10:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},12:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},14:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},16:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},18:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},20:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},"0.25":{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},"0.5":{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"1.5":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},auto:{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"}}},left:{values:{0:{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},1:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"},2:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},3:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},4:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},5:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},6:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},7:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},8:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},9:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},10:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},12:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},14:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},16:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},18:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},20:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},right:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},18:{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},20:{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"0.25":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"},"0.5":{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},"1.5":{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},auto:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},1:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},2:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},3:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},4:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},5:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},6:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},7:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},8:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},9:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},10:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},12:{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},14:{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},16:{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"},18:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},20:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},"0.25":{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},"0.5":{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},"1.5":{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},1:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},2:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},3:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},4:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},5:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},6:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},7:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},8:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},9:{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},10:{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},12:{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"},14:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},16:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},18:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},20:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},"0.25":{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},"0.5":{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},"1.5":{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},1:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},2:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},3:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},4:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},5:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},6:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},7:{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},8:{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},9:{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"},10:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},12:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},14:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},16:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},18:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},20:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},"0.25":{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},"0.5":{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},"1.5":{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},1:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},2:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},3:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},4:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},5:{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},6:{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},7:{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},8:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"},9:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},10:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},12:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},14:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},16:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},18:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},20:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},"0.25":{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},"0.5":{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},"1.5":{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"}}},marginTop:{values:{0:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},1:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},2:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},3:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},4:{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},5:{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},6:{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},7:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"},8:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},9:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},10:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},12:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},14:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},16:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},18:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},20:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},"0.25":{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},"0.5":{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},"1.5":{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},auto:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},1:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},2:{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},3:{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},4:{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},5:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"},6:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},7:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},8:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},9:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},10:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},12:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},14:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},16:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},18:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},20:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},"0.25":{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},"0.5":{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},"1.5":{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},auto:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},1:{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},2:{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},3:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"},4:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},5:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},6:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},7:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},8:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},9:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},10:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},12:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},14:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},16:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},18:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},20:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},"0.25":{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},"0.5":{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"1.5":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},auto:{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"}}},marginRight:{values:{0:{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"},1:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},2:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},3:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"},4:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},5:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},6:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"},7:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},8:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},9:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"},10:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},12:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},14:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"},16:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},18:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},20:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},"0.25":{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},"0.5":{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},"1.5":{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"},auto:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"}}},gap:{values:{0:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},1:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},2:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},3:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},4:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"},5:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},6:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},7:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},8:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},9:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},10:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"},12:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},14:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},16:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},18:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},20:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},"0.25":{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"},"0.5":{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},"1.5":{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},thin:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},thick:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},thin:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"},thick:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},thin:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},thick:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"},thin:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},thick:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},xs:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"},sm:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},md:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},lg:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},circle:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},xs:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"},sm:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},md:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},lg:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"},circle:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},xs:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},sm:{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},md:{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},lg:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},circle:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},xs:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},sm:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},md:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"},lg:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},circle:{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},xsmall:{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"},small:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},normal:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"},medium:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},large:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"},xlarge:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},normal:{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"},medium:{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},semibold:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},bold:{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},none:{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},normal:{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},wide:{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},5:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},6:{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},7:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"},9:{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},inherit:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},left:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},right:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},display:{values:{block:{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},flex:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},grid:{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},"inline-block":{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},"inline-flex":{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"},none:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},contents:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"}}},position:{values:{absolute:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},fixed:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"},relative:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},sticky:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},"column-reverse":{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"},row:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},"row-reverse":{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ms",md:"fyvr11mt",lg:"fyvr11mu",xl:"fyvr11mv"},defaultClass:"fyvr11ms"},1:{conditions:{sm:"fyvr11mw",md:"fyvr11mx",lg:"fyvr11my",xl:"fyvr11mz"},defaultClass:"fyvr11mw"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11n0",md:"fyvr11n1",lg:"fyvr11n2",xl:"fyvr11n3"},defaultClass:"fyvr11n0"},1:{conditions:{sm:"fyvr11n4",md:"fyvr11n5",lg:"fyvr11n6",xl:"fyvr11n7"},defaultClass:"fyvr11n4"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11n8",md:"fyvr11n9",lg:"fyvr11na",xl:"fyvr11nb"},defaultClass:"fyvr11n8"},wrap:{conditions:{sm:"fyvr11nc",md:"fyvr11nd",lg:"fyvr11ne",xl:"fyvr11nf"},defaultClass:"fyvr11nc"},"wrap-reverse":{conditions:{sm:"fyvr11ng",md:"fyvr11nh",lg:"fyvr11ni",xl:"fyvr11nj"},defaultClass:"fyvr11ng"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11nk",md:"fyvr11nl",lg:"fyvr11nm",xl:"fyvr11nn"},defaultClass:"fyvr11nk"},center:{conditions:{sm:"fyvr11no",md:"fyvr11np",lg:"fyvr11nq",xl:"fyvr11nr"},defaultClass:"fyvr11no"},"flex-end":{conditions:{sm:"fyvr11ns",md:"fyvr11nt",lg:"fyvr11nu",xl:"fyvr11nv"},defaultClass:"fyvr11ns"},stretch:{conditions:{sm:"fyvr11nw",md:"fyvr11nx",lg:"fyvr11ny",xl:"fyvr11nz"},defaultClass:"fyvr11nw"},"space-around":{conditions:{sm:"fyvr11o0",md:"fyvr11o1",lg:"fyvr11o2",xl:"fyvr11o3"},defaultClass:"fyvr11o0"},"space-between":{conditions:{sm:"fyvr11o4",md:"fyvr11o5",lg:"fyvr11o6",xl:"fyvr11o7"},defaultClass:"fyvr11o4"},"space-evenly":{conditions:{sm:"fyvr11o8",md:"fyvr11o9",lg:"fyvr11oa",xl:"fyvr11ob"},defaultClass:"fyvr11o8"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11oc",md:"fyvr11od",lg:"fyvr11oe",xl:"fyvr11of"},defaultClass:"fyvr11oc"},center:{conditions:{sm:"fyvr11og",md:"fyvr11oh",lg:"fyvr11oi",xl:"fyvr11oj"},defaultClass:"fyvr11og"},"flex-end":{conditions:{sm:"fyvr11ok",md:"fyvr11ol",lg:"fyvr11om",xl:"fyvr11on"},defaultClass:"fyvr11ok"},stretch:{conditions:{sm:"fyvr11oo",md:"fyvr11op",lg:"fyvr11oq",xl:"fyvr11or"},defaultClass:"fyvr11oo"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11os",md:"fyvr11ot",lg:"fyvr11ou",xl:"fyvr11ov"},defaultClass:"fyvr11os"},center:{conditions:{sm:"fyvr11ow",md:"fyvr11ox",lg:"fyvr11oy",xl:"fyvr11oz"},defaultClass:"fyvr11ow"},"flex-end":{conditions:{sm:"fyvr11p0",md:"fyvr11p1",lg:"fyvr11p2",xl:"fyvr11p3"},defaultClass:"fyvr11p0"},stretch:{conditions:{sm:"fyvr11p4",md:"fyvr11p5",lg:"fyvr11p6",xl:"fyvr11p7"},defaultClass:"fyvr11p4"},baseline:{conditions:{sm:"fyvr11p8",md:"fyvr11p9",lg:"fyvr11pa",xl:"fyvr11pb"},defaultClass:"fyvr11p8"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11pc",md:"fyvr11pd",lg:"fyvr11pe",xl:"fyvr11pf"},defaultClass:"fyvr11pc"},center:{conditions:{sm:"fyvr11pg",md:"fyvr11ph",lg:"fyvr11pi",xl:"fyvr11pj"},defaultClass:"fyvr11pg"},"flex-end":{conditions:{sm:"fyvr11pk",md:"fyvr11pl",lg:"fyvr11pm",xl:"fyvr11pn"},defaultClass:"fyvr11pk"},stretch:{conditions:{sm:"fyvr11po",md:"fyvr11pp",lg:"fyvr11pq",xl:"fyvr11pr"},defaultClass:"fyvr11po"},baseline:{conditions:{sm:"fyvr11ps",md:"fyvr11pt",lg:"fyvr11pu",xl:"fyvr11pv"},defaultClass:"fyvr11ps"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11pw",md:"fyvr11px",lg:"fyvr11py",xl:"fyvr11pz"},defaultClass:"fyvr11pw"},hidden:{conditions:{sm:"fyvr11q0",md:"fyvr11q1",lg:"fyvr11q2",xl:"fyvr11q3"},defaultClass:"fyvr11q0"},scroll:{conditions:{sm:"fyvr11q4",md:"fyvr11q5",lg:"fyvr11q6",xl:"fyvr11q7"},defaultClass:"fyvr11q4"},visible:{conditions:{sm:"fyvr11q8",md:"fyvr11q9",lg:"fyvr11qa",xl:"fyvr11qb"},defaultClass:"fyvr11q8"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11qc",md:"fyvr11qd",lg:"fyvr11qe",xl:"fyvr11qf"},defaultClass:"fyvr11qc"},hidden:{conditions:{sm:"fyvr11qg",md:"fyvr11qh",lg:"fyvr11qi",xl:"fyvr11qj"},defaultClass:"fyvr11qg"},scroll:{conditions:{sm:"fyvr11qk",md:"fyvr11ql",lg:"fyvr11qm",xl:"fyvr11qn"},defaultClass:"fyvr11qk"},visible:{conditions:{sm:"fyvr11qo",md:"fyvr11qp",lg:"fyvr11qq",xl:"fyvr11qr"},defaultClass:"fyvr11qo"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11qs",md:"fyvr11qt",lg:"fyvr11qu",xl:"fyvr11qv"},defaultClass:"fyvr11qs"},visible:{conditions:{sm:"fyvr11qw",md:"fyvr11qx",lg:"fyvr11qy",xl:"fyvr11qz"},defaultClass:"fyvr11qw"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11r0"},none:{defaultClass:"fyvr11r1"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11r2"},body:{defaultClass:"fyvr11r3"},mono:{defaultClass:"fyvr11r4"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11r5"},clip:{defaultClass:"fyvr11r6"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11r7"},lowercase:{defaultClass:"fyvr11r8"},uppercase:{defaultClass:"fyvr11r9"}}},textDecoration:{values:{none:{defaultClass:"fyvr11ra"},underline:{defaultClass:"fyvr11rb"}}},userSelect:{values:{none:{defaultClass:"fyvr11rc"},text:{defaultClass:"fyvr11rd"},all:{defaultClass:"fyvr11re"},auto:{defaultClass:"fyvr11rf"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11rg"},nowrap:{defaultClass:"fyvr11rh"},initial:{defaultClass:"fyvr11ri"},inherit:{defaultClass:"fyvr11rj"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11rk"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11rl"},"break-word":{defaultClass:"fyvr11rm"},initial:{defaultClass:"fyvr11rn"},inherit:{defaultClass:"fyvr11ro"}}},zIndex:{values:{0:{defaultClass:"fyvr11rp"},1:{defaultClass:"fyvr11rq"},10:{defaultClass:"fyvr11rr"},20:{defaultClass:"fyvr11rs"},30:{defaultClass:"fyvr11rt"},40:{defaultClass:"fyvr11ru"},50:{defaultClass:"fyvr11rv"},"-1":{defaultClass:"fyvr11rw"},auto:{defaultClass:"fyvr11rx"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11ry"},"16/9":{defaultClass:"fyvr11rz"},"4/3":{defaultClass:"fyvr11s0"},"3/1":{defaultClass:"fyvr11s1"},auto:{defaultClass:"fyvr11s2"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11s3",active:"fyvr11s4",disabled:"fyvr11s5",focus:"fyvr11s6",hover:"fyvr11s7",checked:"fyvr11s8"},defaultClass:"fyvr11s3"},white:{conditions:{base:"fyvr11s9",active:"fyvr11sa",disabled:"fyvr11sb",focus:"fyvr11sc",hover:"fyvr11sd",checked:"fyvr11se"},defaultClass:"fyvr11s9"},inherit:{conditions:{base:"fyvr11sf",active:"fyvr11sg",disabled:"fyvr11sh",focus:"fyvr11si",hover:"fyvr11sj",checked:"fyvr11sk"},defaultClass:"fyvr11sf"},transparent:{conditions:{base:"fyvr11sl",active:"fyvr11sm",disabled:"fyvr11sn",focus:"fyvr11so",hover:"fyvr11sp",checked:"fyvr11sq"},defaultClass:"fyvr11sl"},positive:{conditions:{base:"fyvr11sr",active:"fyvr11ss",disabled:"fyvr11st",focus:"fyvr11su",hover:"fyvr11sv",checked:"fyvr11sw"},defaultClass:"fyvr11sr"},negative:{conditions:{base:"fyvr11sx",active:"fyvr11sy",disabled:"fyvr11sz",focus:"fyvr11t0",hover:"fyvr11t1",checked:"fyvr11t2"},defaultClass:"fyvr11sx"},info:{conditions:{base:"fyvr11t3",active:"fyvr11t4",disabled:"fyvr11t5",focus:"fyvr11t6",hover:"fyvr11t7",checked:"fyvr11t8"},defaultClass:"fyvr11t3"},warning:{conditions:{base:"fyvr11t9",active:"fyvr11ta",disabled:"fyvr11tb",focus:"fyvr11tc",hover:"fyvr11td",checked:"fyvr11te"},defaultClass:"fyvr11t9"},gradientBackdrop:{conditions:{base:"fyvr11tf",active:"fyvr11tg",disabled:"fyvr11th",focus:"fyvr11ti",hover:"fyvr11tj",checked:"fyvr11tk"},defaultClass:"fyvr11tf"},gradientPrimary:{conditions:{base:"fyvr11tl",active:"fyvr11tm",disabled:"fyvr11tn",focus:"fyvr11to",hover:"fyvr11tp",checked:"fyvr11tq"},defaultClass:"fyvr11tl"},gradientSecondary:{conditions:{base:"fyvr11tr",active:"fyvr11ts",disabled:"fyvr11tt",focus:"fyvr11tu",hover:"fyvr11tv",checked:"fyvr11tw"},defaultClass:"fyvr11tr"},arbitrumDark:{conditions:{base:"fyvr11tx",active:"fyvr11ty",disabled:"fyvr11tz",focus:"fyvr11u0",hover:"fyvr11u1",checked:"fyvr11u2"},defaultClass:"fyvr11tx"},arbitrumLight:{conditions:{base:"fyvr11u3",active:"fyvr11u4",disabled:"fyvr11u5",focus:"fyvr11u6",hover:"fyvr11u7",checked:"fyvr11u8"},defaultClass:"fyvr11u3"},avalanceDark:{conditions:{base:"fyvr11u9",active:"fyvr11ua",disabled:"fyvr11ub",focus:"fyvr11uc",hover:"fyvr11ud",checked:"fyvr11ue"},defaultClass:"fyvr11u9"},avalanceLight:{conditions:{base:"fyvr11uf",active:"fyvr11ug",disabled:"fyvr11uh",focus:"fyvr11ui",hover:"fyvr11uj",checked:"fyvr11uk"},defaultClass:"fyvr11uf"},bscDark:{conditions:{base:"fyvr11ul",active:"fyvr11um",disabled:"fyvr11un",focus:"fyvr11uo",hover:"fyvr11up",checked:"fyvr11uq"},defaultClass:"fyvr11ul"},bscLight:{conditions:{base:"fyvr11ur",active:"fyvr11us",disabled:"fyvr11ut",focus:"fyvr11uu",hover:"fyvr11uv",checked:"fyvr11uw"},defaultClass:"fyvr11ur"},ethereumDark:{conditions:{base:"fyvr11ux",active:"fyvr11uy",disabled:"fyvr11uz",focus:"fyvr11v0",hover:"fyvr11v1",checked:"fyvr11v2"},defaultClass:"fyvr11ux"},ethereumLight:{conditions:{base:"fyvr11v3",active:"fyvr11v4",disabled:"fyvr11v5",focus:"fyvr11v6",hover:"fyvr11v7",checked:"fyvr11v8"},defaultClass:"fyvr11v3"},gnosisDark:{conditions:{base:"fyvr11v9",active:"fyvr11va",disabled:"fyvr11vb",focus:"fyvr11vc",hover:"fyvr11vd",checked:"fyvr11ve"},defaultClass:"fyvr11v9"},gnosisLight:{conditions:{base:"fyvr11vf",active:"fyvr11vg",disabled:"fyvr11vh",focus:"fyvr11vi",hover:"fyvr11vj",checked:"fyvr11vk"},defaultClass:"fyvr11vf"},polygonDark:{conditions:{base:"fyvr11vl",active:"fyvr11vm",disabled:"fyvr11vn",focus:"fyvr11vo",hover:"fyvr11vp",checked:"fyvr11vq"},defaultClass:"fyvr11vl"},polygonLight:{conditions:{base:"fyvr11vr",active:"fyvr11vs",disabled:"fyvr11vt",focus:"fyvr11vu",hover:"fyvr11vv",checked:"fyvr11vw"},defaultClass:"fyvr11vr"},text100:{conditions:{base:"fyvr11vx",active:"fyvr11vy",disabled:"fyvr11vz",focus:"fyvr11w0",hover:"fyvr11w1",checked:"fyvr11w2"},defaultClass:"fyvr11vx"},text80:{conditions:{base:"fyvr11w3",active:"fyvr11w4",disabled:"fyvr11w5",focus:"fyvr11w6",hover:"fyvr11w7",checked:"fyvr11w8"},defaultClass:"fyvr11w3"},text50:{conditions:{base:"fyvr11w9",active:"fyvr11wa",disabled:"fyvr11wb",focus:"fyvr11wc",hover:"fyvr11wd",checked:"fyvr11we"},defaultClass:"fyvr11w9"},textInverse100:{conditions:{base:"fyvr11wf",active:"fyvr11wg",disabled:"fyvr11wh",focus:"fyvr11wi",hover:"fyvr11wj",checked:"fyvr11wk"},defaultClass:"fyvr11wf"},backgroundPrimary:{conditions:{base:"fyvr11wl",active:"fyvr11wm",disabled:"fyvr11wn",focus:"fyvr11wo",hover:"fyvr11wp",checked:"fyvr11wq"},defaultClass:"fyvr11wl"},backgroundSecondary:{conditions:{base:"fyvr11wr",active:"fyvr11ws",disabled:"fyvr11wt",focus:"fyvr11wu",hover:"fyvr11wv",checked:"fyvr11ww"},defaultClass:"fyvr11wr"},backgroundContrast:{conditions:{base:"fyvr11wx",active:"fyvr11wy",disabled:"fyvr11wz",focus:"fyvr11x0",hover:"fyvr11x1",checked:"fyvr11x2"},defaultClass:"fyvr11wx"},backgroundMuted:{conditions:{base:"fyvr11x3",active:"fyvr11x4",disabled:"fyvr11x5",focus:"fyvr11x6",hover:"fyvr11x7",checked:"fyvr11x8"},defaultClass:"fyvr11x3"},backgroundControl:{conditions:{base:"fyvr11x9",active:"fyvr11xa",disabled:"fyvr11xb",focus:"fyvr11xc",hover:"fyvr11xd",checked:"fyvr11xe"},defaultClass:"fyvr11x9"},backgroundInverse:{conditions:{base:"fyvr11xf",active:"fyvr11xg",disabled:"fyvr11xh",focus:"fyvr11xi",hover:"fyvr11xj",checked:"fyvr11xk"},defaultClass:"fyvr11xf"},backgroundBackdrop:{conditions:{base:"fyvr11xl",active:"fyvr11xm",disabled:"fyvr11xn",focus:"fyvr11xo",hover:"fyvr11xp",checked:"fyvr11xq"},defaultClass:"fyvr11xl"},backgroundOverlay:{conditions:{base:"fyvr11xr",active:"fyvr11xs",disabled:"fyvr11xt",focus:"fyvr11xu",hover:"fyvr11xv",checked:"fyvr11xw"},defaultClass:"fyvr11xr"},backgroundRaised:{conditions:{base:"fyvr11xx",active:"fyvr11xy",disabled:"fyvr11xz",focus:"fyvr11y0",hover:"fyvr11y1",checked:"fyvr11y2"},defaultClass:"fyvr11xx"},buttonGlass:{conditions:{base:"fyvr11y3",active:"fyvr11y4",disabled:"fyvr11y5",focus:"fyvr11y6",hover:"fyvr11y7",checked:"fyvr11y8"},defaultClass:"fyvr11y3"},buttonEmphasis:{conditions:{base:"fyvr11y9",active:"fyvr11ya",disabled:"fyvr11yb",focus:"fyvr11yc",hover:"fyvr11yd",checked:"fyvr11ye"},defaultClass:"fyvr11y9"},buttonInverse:{conditions:{base:"fyvr11yf",active:"fyvr11yg",disabled:"fyvr11yh",focus:"fyvr11yi",hover:"fyvr11yj",checked:"fyvr11yk"},defaultClass:"fyvr11yf"},borderNormal:{conditions:{base:"fyvr11yl",active:"fyvr11ym",disabled:"fyvr11yn",focus:"fyvr11yo",hover:"fyvr11yp",checked:"fyvr11yq"},defaultClass:"fyvr11yl"},borderFocus:{conditions:{base:"fyvr11yr",active:"fyvr11ys",disabled:"fyvr11yt",focus:"fyvr11yu",hover:"fyvr11yv",checked:"fyvr11yw"},defaultClass:"fyvr11yr"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11yx",active:"fyvr11yy",disabled:"fyvr11yz",focus:"fyvr11z0",hover:"fyvr11z1",checked:"fyvr11z2"},defaultClass:"fyvr11yx"},white:{conditions:{base:"fyvr11z3",active:"fyvr11z4",disabled:"fyvr11z5",focus:"fyvr11z6",hover:"fyvr11z7",checked:"fyvr11z8"},defaultClass:"fyvr11z3"},inherit:{conditions:{base:"fyvr11z9",active:"fyvr11za",disabled:"fyvr11zb",focus:"fyvr11zc",hover:"fyvr11zd",checked:"fyvr11ze"},defaultClass:"fyvr11z9"},transparent:{conditions:{base:"fyvr11zf",active:"fyvr11zg",disabled:"fyvr11zh",focus:"fyvr11zi",hover:"fyvr11zj",checked:"fyvr11zk"},defaultClass:"fyvr11zf"},positive:{conditions:{base:"fyvr11zl",active:"fyvr11zm",disabled:"fyvr11zn",focus:"fyvr11zo",hover:"fyvr11zp",checked:"fyvr11zq"},defaultClass:"fyvr11zl"},negative:{conditions:{base:"fyvr11zr",active:"fyvr11zs",disabled:"fyvr11zt",focus:"fyvr11zu",hover:"fyvr11zv",checked:"fyvr11zw"},defaultClass:"fyvr11zr"},info:{conditions:{base:"fyvr11zx",active:"fyvr11zy",disabled:"fyvr11zz",focus:"fyvr1200",hover:"fyvr1201",checked:"fyvr1202"},defaultClass:"fyvr11zx"},warning:{conditions:{base:"fyvr1203",active:"fyvr1204",disabled:"fyvr1205",focus:"fyvr1206",hover:"fyvr1207",checked:"fyvr1208"},defaultClass:"fyvr1203"},gradientBackdrop:{conditions:{base:"fyvr1209",active:"fyvr120a",disabled:"fyvr120b",focus:"fyvr120c",hover:"fyvr120d",checked:"fyvr120e"},defaultClass:"fyvr1209"},gradientPrimary:{conditions:{base:"fyvr120f",active:"fyvr120g",disabled:"fyvr120h",focus:"fyvr120i",hover:"fyvr120j",checked:"fyvr120k"},defaultClass:"fyvr120f"},gradientSecondary:{conditions:{base:"fyvr120l",active:"fyvr120m",disabled:"fyvr120n",focus:"fyvr120o",hover:"fyvr120p",checked:"fyvr120q"},defaultClass:"fyvr120l"},arbitrumDark:{conditions:{base:"fyvr120r",active:"fyvr120s",disabled:"fyvr120t",focus:"fyvr120u",hover:"fyvr120v",checked:"fyvr120w"},defaultClass:"fyvr120r"},arbitrumLight:{conditions:{base:"fyvr120x",active:"fyvr120y",disabled:"fyvr120z",focus:"fyvr1210",hover:"fyvr1211",checked:"fyvr1212"},defaultClass:"fyvr120x"},avalanceDark:{conditions:{base:"fyvr1213",active:"fyvr1214",disabled:"fyvr1215",focus:"fyvr1216",hover:"fyvr1217",checked:"fyvr1218"},defaultClass:"fyvr1213"},avalanceLight:{conditions:{base:"fyvr1219",active:"fyvr121a",disabled:"fyvr121b",focus:"fyvr121c",hover:"fyvr121d",checked:"fyvr121e"},defaultClass:"fyvr1219"},bscDark:{conditions:{base:"fyvr121f",active:"fyvr121g",disabled:"fyvr121h",focus:"fyvr121i",hover:"fyvr121j",checked:"fyvr121k"},defaultClass:"fyvr121f"},bscLight:{conditions:{base:"fyvr121l",active:"fyvr121m",disabled:"fyvr121n",focus:"fyvr121o",hover:"fyvr121p",checked:"fyvr121q"},defaultClass:"fyvr121l"},ethereumDark:{conditions:{base:"fyvr121r",active:"fyvr121s",disabled:"fyvr121t",focus:"fyvr121u",hover:"fyvr121v",checked:"fyvr121w"},defaultClass:"fyvr121r"},ethereumLight:{conditions:{base:"fyvr121x",active:"fyvr121y",disabled:"fyvr121z",focus:"fyvr1220",hover:"fyvr1221",checked:"fyvr1222"},defaultClass:"fyvr121x"},gnosisDark:{conditions:{base:"fyvr1223",active:"fyvr1224",disabled:"fyvr1225",focus:"fyvr1226",hover:"fyvr1227",checked:"fyvr1228"},defaultClass:"fyvr1223"},gnosisLight:{conditions:{base:"fyvr1229",active:"fyvr122a",disabled:"fyvr122b",focus:"fyvr122c",hover:"fyvr122d",checked:"fyvr122e"},defaultClass:"fyvr1229"},polygonDark:{conditions:{base:"fyvr122f",active:"fyvr122g",disabled:"fyvr122h",focus:"fyvr122i",hover:"fyvr122j",checked:"fyvr122k"},defaultClass:"fyvr122f"},polygonLight:{conditions:{base:"fyvr122l",active:"fyvr122m",disabled:"fyvr122n",focus:"fyvr122o",hover:"fyvr122p",checked:"fyvr122q"},defaultClass:"fyvr122l"},text100:{conditions:{base:"fyvr122r",active:"fyvr122s",disabled:"fyvr122t",focus:"fyvr122u",hover:"fyvr122v",checked:"fyvr122w"},defaultClass:"fyvr122r"},text80:{conditions:{base:"fyvr122x",active:"fyvr122y",disabled:"fyvr122z",focus:"fyvr1230",hover:"fyvr1231",checked:"fyvr1232"},defaultClass:"fyvr122x"},text50:{conditions:{base:"fyvr1233",active:"fyvr1234",disabled:"fyvr1235",focus:"fyvr1236",hover:"fyvr1237",checked:"fyvr1238"},defaultClass:"fyvr1233"},textInverse100:{conditions:{base:"fyvr1239",active:"fyvr123a",disabled:"fyvr123b",focus:"fyvr123c",hover:"fyvr123d",checked:"fyvr123e"},defaultClass:"fyvr1239"},backgroundPrimary:{conditions:{base:"fyvr123f",active:"fyvr123g",disabled:"fyvr123h",focus:"fyvr123i",hover:"fyvr123j",checked:"fyvr123k"},defaultClass:"fyvr123f"},backgroundSecondary:{conditions:{base:"fyvr123l",active:"fyvr123m",disabled:"fyvr123n",focus:"fyvr123o",hover:"fyvr123p",checked:"fyvr123q"},defaultClass:"fyvr123l"},backgroundContrast:{conditions:{base:"fyvr123r",active:"fyvr123s",disabled:"fyvr123t",focus:"fyvr123u",hover:"fyvr123v",checked:"fyvr123w"},defaultClass:"fyvr123r"},backgroundMuted:{conditions:{base:"fyvr123x",active:"fyvr123y",disabled:"fyvr123z",focus:"fyvr1240",hover:"fyvr1241",checked:"fyvr1242"},defaultClass:"fyvr123x"},backgroundControl:{conditions:{base:"fyvr1243",active:"fyvr1244",disabled:"fyvr1245",focus:"fyvr1246",hover:"fyvr1247",checked:"fyvr1248"},defaultClass:"fyvr1243"},backgroundInverse:{conditions:{base:"fyvr1249",active:"fyvr124a",disabled:"fyvr124b",focus:"fyvr124c",hover:"fyvr124d",checked:"fyvr124e"},defaultClass:"fyvr1249"},backgroundBackdrop:{conditions:{base:"fyvr124f",active:"fyvr124g",disabled:"fyvr124h",focus:"fyvr124i",hover:"fyvr124j",checked:"fyvr124k"},defaultClass:"fyvr124f"},backgroundOverlay:{conditions:{base:"fyvr124l",active:"fyvr124m",disabled:"fyvr124n",focus:"fyvr124o",hover:"fyvr124p",checked:"fyvr124q"},defaultClass:"fyvr124l"},backgroundRaised:{conditions:{base:"fyvr124r",active:"fyvr124s",disabled:"fyvr124t",focus:"fyvr124u",hover:"fyvr124v",checked:"fyvr124w"},defaultClass:"fyvr124r"},buttonGlass:{conditions:{base:"fyvr124x",active:"fyvr124y",disabled:"fyvr124z",focus:"fyvr1250",hover:"fyvr1251",checked:"fyvr1252"},defaultClass:"fyvr124x"},buttonEmphasis:{conditions:{base:"fyvr1253",active:"fyvr1254",disabled:"fyvr1255",focus:"fyvr1256",hover:"fyvr1257",checked:"fyvr1258"},defaultClass:"fyvr1253"},buttonInverse:{conditions:{base:"fyvr1259",active:"fyvr125a",disabled:"fyvr125b",focus:"fyvr125c",hover:"fyvr125d",checked:"fyvr125e"},defaultClass:"fyvr1259"},borderNormal:{conditions:{base:"fyvr125f",active:"fyvr125g",disabled:"fyvr125h",focus:"fyvr125i",hover:"fyvr125j",checked:"fyvr125k"},defaultClass:"fyvr125f"},borderFocus:{conditions:{base:"fyvr125l",active:"fyvr125m",disabled:"fyvr125n",focus:"fyvr125o",hover:"fyvr125p",checked:"fyvr125q"},defaultClass:"fyvr125l"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr125r",active:"fyvr125s",disabled:"fyvr125t",focus:"fyvr125u",hover:"fyvr125v",checked:"fyvr125w"},defaultClass:"fyvr125r"},dashed:{conditions:{base:"fyvr125x",active:"fyvr125y",disabled:"fyvr125z",focus:"fyvr1260",hover:"fyvr1261",checked:"fyvr1262"},defaultClass:"fyvr125x"},dotted:{conditions:{base:"fyvr1263",active:"fyvr1264",disabled:"fyvr1265",focus:"fyvr1266",hover:"fyvr1267",checked:"fyvr1268"},defaultClass:"fyvr1263"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1269",active:"fyvr126a",disabled:"fyvr126b",focus:"fyvr126c",hover:"fyvr126d",checked:"fyvr126e"},defaultClass:"fyvr1269"},white:{conditions:{base:"fyvr126f",active:"fyvr126g",disabled:"fyvr126h",focus:"fyvr126i",hover:"fyvr126j",checked:"fyvr126k"},defaultClass:"fyvr126f"},inherit:{conditions:{base:"fyvr126l",active:"fyvr126m",disabled:"fyvr126n",focus:"fyvr126o",hover:"fyvr126p",checked:"fyvr126q"},defaultClass:"fyvr126l"},transparent:{conditions:{base:"fyvr126r",active:"fyvr126s",disabled:"fyvr126t",focus:"fyvr126u",hover:"fyvr126v",checked:"fyvr126w"},defaultClass:"fyvr126r"},positive:{conditions:{base:"fyvr126x",active:"fyvr126y",disabled:"fyvr126z",focus:"fyvr1270",hover:"fyvr1271",checked:"fyvr1272"},defaultClass:"fyvr126x"},negative:{conditions:{base:"fyvr1273",active:"fyvr1274",disabled:"fyvr1275",focus:"fyvr1276",hover:"fyvr1277",checked:"fyvr1278"},defaultClass:"fyvr1273"},info:{conditions:{base:"fyvr1279",active:"fyvr127a",disabled:"fyvr127b",focus:"fyvr127c",hover:"fyvr127d",checked:"fyvr127e"},defaultClass:"fyvr1279"},warning:{conditions:{base:"fyvr127f",active:"fyvr127g",disabled:"fyvr127h",focus:"fyvr127i",hover:"fyvr127j",checked:"fyvr127k"},defaultClass:"fyvr127f"},gradientBackdrop:{conditions:{base:"fyvr127l",active:"fyvr127m",disabled:"fyvr127n",focus:"fyvr127o",hover:"fyvr127p",checked:"fyvr127q"},defaultClass:"fyvr127l"},gradientPrimary:{conditions:{base:"fyvr127r",active:"fyvr127s",disabled:"fyvr127t",focus:"fyvr127u",hover:"fyvr127v",checked:"fyvr127w"},defaultClass:"fyvr127r"},gradientSecondary:{conditions:{base:"fyvr127x",active:"fyvr127y",disabled:"fyvr127z",focus:"fyvr1280",hover:"fyvr1281",checked:"fyvr1282"},defaultClass:"fyvr127x"},arbitrumDark:{conditions:{base:"fyvr1283",active:"fyvr1284",disabled:"fyvr1285",focus:"fyvr1286",hover:"fyvr1287",checked:"fyvr1288"},defaultClass:"fyvr1283"},arbitrumLight:{conditions:{base:"fyvr1289",active:"fyvr128a",disabled:"fyvr128b",focus:"fyvr128c",hover:"fyvr128d",checked:"fyvr128e"},defaultClass:"fyvr1289"},avalanceDark:{conditions:{base:"fyvr128f",active:"fyvr128g",disabled:"fyvr128h",focus:"fyvr128i",hover:"fyvr128j",checked:"fyvr128k"},defaultClass:"fyvr128f"},avalanceLight:{conditions:{base:"fyvr128l",active:"fyvr128m",disabled:"fyvr128n",focus:"fyvr128o",hover:"fyvr128p",checked:"fyvr128q"},defaultClass:"fyvr128l"},bscDark:{conditions:{base:"fyvr128r",active:"fyvr128s",disabled:"fyvr128t",focus:"fyvr128u",hover:"fyvr128v",checked:"fyvr128w"},defaultClass:"fyvr128r"},bscLight:{conditions:{base:"fyvr128x",active:"fyvr128y",disabled:"fyvr128z",focus:"fyvr1290",hover:"fyvr1291",checked:"fyvr1292"},defaultClass:"fyvr128x"},ethereumDark:{conditions:{base:"fyvr1293",active:"fyvr1294",disabled:"fyvr1295",focus:"fyvr1296",hover:"fyvr1297",checked:"fyvr1298"},defaultClass:"fyvr1293"},ethereumLight:{conditions:{base:"fyvr1299",active:"fyvr129a",disabled:"fyvr129b",focus:"fyvr129c",hover:"fyvr129d",checked:"fyvr129e"},defaultClass:"fyvr1299"},gnosisDark:{conditions:{base:"fyvr129f",active:"fyvr129g",disabled:"fyvr129h",focus:"fyvr129i",hover:"fyvr129j",checked:"fyvr129k"},defaultClass:"fyvr129f"},gnosisLight:{conditions:{base:"fyvr129l",active:"fyvr129m",disabled:"fyvr129n",focus:"fyvr129o",hover:"fyvr129p",checked:"fyvr129q"},defaultClass:"fyvr129l"},polygonDark:{conditions:{base:"fyvr129r",active:"fyvr129s",disabled:"fyvr129t",focus:"fyvr129u",hover:"fyvr129v",checked:"fyvr129w"},defaultClass:"fyvr129r"},polygonLight:{conditions:{base:"fyvr129x",active:"fyvr129y",disabled:"fyvr129z",focus:"fyvr12a0",hover:"fyvr12a1",checked:"fyvr12a2"},defaultClass:"fyvr129x"},text100:{conditions:{base:"fyvr12a3",active:"fyvr12a4",disabled:"fyvr12a5",focus:"fyvr12a6",hover:"fyvr12a7",checked:"fyvr12a8"},defaultClass:"fyvr12a3"},text80:{conditions:{base:"fyvr12a9",active:"fyvr12aa",disabled:"fyvr12ab",focus:"fyvr12ac",hover:"fyvr12ad",checked:"fyvr12ae"},defaultClass:"fyvr12a9"},text50:{conditions:{base:"fyvr12af",active:"fyvr12ag",disabled:"fyvr12ah",focus:"fyvr12ai",hover:"fyvr12aj",checked:"fyvr12ak"},defaultClass:"fyvr12af"},textInverse100:{conditions:{base:"fyvr12al",active:"fyvr12am",disabled:"fyvr12an",focus:"fyvr12ao",hover:"fyvr12ap",checked:"fyvr12aq"},defaultClass:"fyvr12al"},backgroundPrimary:{conditions:{base:"fyvr12ar",active:"fyvr12as",disabled:"fyvr12at",focus:"fyvr12au",hover:"fyvr12av",checked:"fyvr12aw"},defaultClass:"fyvr12ar"},backgroundSecondary:{conditions:{base:"fyvr12ax",active:"fyvr12ay",disabled:"fyvr12az",focus:"fyvr12b0",hover:"fyvr12b1",checked:"fyvr12b2"},defaultClass:"fyvr12ax"},backgroundContrast:{conditions:{base:"fyvr12b3",active:"fyvr12b4",disabled:"fyvr12b5",focus:"fyvr12b6",hover:"fyvr12b7",checked:"fyvr12b8"},defaultClass:"fyvr12b3"},backgroundMuted:{conditions:{base:"fyvr12b9",active:"fyvr12ba",disabled:"fyvr12bb",focus:"fyvr12bc",hover:"fyvr12bd",checked:"fyvr12be"},defaultClass:"fyvr12b9"},backgroundControl:{conditions:{base:"fyvr12bf",active:"fyvr12bg",disabled:"fyvr12bh",focus:"fyvr12bi",hover:"fyvr12bj",checked:"fyvr12bk"},defaultClass:"fyvr12bf"},backgroundInverse:{conditions:{base:"fyvr12bl",active:"fyvr12bm",disabled:"fyvr12bn",focus:"fyvr12bo",hover:"fyvr12bp",checked:"fyvr12bq"},defaultClass:"fyvr12bl"},backgroundBackdrop:{conditions:{base:"fyvr12br",active:"fyvr12bs",disabled:"fyvr12bt",focus:"fyvr12bu",hover:"fyvr12bv",checked:"fyvr12bw"},defaultClass:"fyvr12br"},backgroundOverlay:{conditions:{base:"fyvr12bx",active:"fyvr12by",disabled:"fyvr12bz",focus:"fyvr12c0",hover:"fyvr12c1",checked:"fyvr12c2"},defaultClass:"fyvr12bx"},backgroundRaised:{conditions:{base:"fyvr12c3",active:"fyvr12c4",disabled:"fyvr12c5",focus:"fyvr12c6",hover:"fyvr12c7",checked:"fyvr12c8"},defaultClass:"fyvr12c3"},buttonGlass:{conditions:{base:"fyvr12c9",active:"fyvr12ca",disabled:"fyvr12cb",focus:"fyvr12cc",hover:"fyvr12cd",checked:"fyvr12ce"},defaultClass:"fyvr12c9"},buttonEmphasis:{conditions:{base:"fyvr12cf",active:"fyvr12cg",disabled:"fyvr12ch",focus:"fyvr12ci",hover:"fyvr12cj",checked:"fyvr12ck"},defaultClass:"fyvr12cf"},buttonInverse:{conditions:{base:"fyvr12cl",active:"fyvr12cm",disabled:"fyvr12cn",focus:"fyvr12co",hover:"fyvr12cp",checked:"fyvr12cq"},defaultClass:"fyvr12cl"},borderNormal:{conditions:{base:"fyvr12cr",active:"fyvr12cs",disabled:"fyvr12ct",focus:"fyvr12cu",hover:"fyvr12cv",checked:"fyvr12cw"},defaultClass:"fyvr12cr"},borderFocus:{conditions:{base:"fyvr12cx",active:"fyvr12cy",disabled:"fyvr12cz",focus:"fyvr12d0",hover:"fyvr12d1",checked:"fyvr12d2"},defaultClass:"fyvr12cx"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr12d3",active:"fyvr12d4",disabled:"fyvr12d5",focus:"fyvr12d6",hover:"fyvr12d7",checked:"fyvr12d8"},defaultClass:"fyvr12d3"},dashed:{conditions:{base:"fyvr12d9",active:"fyvr12da",disabled:"fyvr12db",focus:"fyvr12dc",hover:"fyvr12dd",checked:"fyvr12de"},defaultClass:"fyvr12d9"},dotted:{conditions:{base:"fyvr12df",active:"fyvr12dg",disabled:"fyvr12dh",focus:"fyvr12di",hover:"fyvr12dj",checked:"fyvr12dk"},defaultClass:"fyvr12df"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr12dl",active:"fyvr12dm",disabled:"fyvr12dn",focus:"fyvr12do",hover:"fyvr12dp",checked:"fyvr12dq"},defaultClass:"fyvr12dl"},white:{conditions:{base:"fyvr12dr",active:"fyvr12ds",disabled:"fyvr12dt",focus:"fyvr12du",hover:"fyvr12dv",checked:"fyvr12dw"},defaultClass:"fyvr12dr"},inherit:{conditions:{base:"fyvr12dx",active:"fyvr12dy",disabled:"fyvr12dz",focus:"fyvr12e0",hover:"fyvr12e1",checked:"fyvr12e2"},defaultClass:"fyvr12dx"},transparent:{conditions:{base:"fyvr12e3",active:"fyvr12e4",disabled:"fyvr12e5",focus:"fyvr12e6",hover:"fyvr12e7",checked:"fyvr12e8"},defaultClass:"fyvr12e3"},positive:{conditions:{base:"fyvr12e9",active:"fyvr12ea",disabled:"fyvr12eb",focus:"fyvr12ec",hover:"fyvr12ed",checked:"fyvr12ee"},defaultClass:"fyvr12e9"},negative:{conditions:{base:"fyvr12ef",active:"fyvr12eg",disabled:"fyvr12eh",focus:"fyvr12ei",hover:"fyvr12ej",checked:"fyvr12ek"},defaultClass:"fyvr12ef"},info:{conditions:{base:"fyvr12el",active:"fyvr12em",disabled:"fyvr12en",focus:"fyvr12eo",hover:"fyvr12ep",checked:"fyvr12eq"},defaultClass:"fyvr12el"},warning:{conditions:{base:"fyvr12er",active:"fyvr12es",disabled:"fyvr12et",focus:"fyvr12eu",hover:"fyvr12ev",checked:"fyvr12ew"},defaultClass:"fyvr12er"},gradientBackdrop:{conditions:{base:"fyvr12ex",active:"fyvr12ey",disabled:"fyvr12ez",focus:"fyvr12f0",hover:"fyvr12f1",checked:"fyvr12f2"},defaultClass:"fyvr12ex"},gradientPrimary:{conditions:{base:"fyvr12f3",active:"fyvr12f4",disabled:"fyvr12f5",focus:"fyvr12f6",hover:"fyvr12f7",checked:"fyvr12f8"},defaultClass:"fyvr12f3"},gradientSecondary:{conditions:{base:"fyvr12f9",active:"fyvr12fa",disabled:"fyvr12fb",focus:"fyvr12fc",hover:"fyvr12fd",checked:"fyvr12fe"},defaultClass:"fyvr12f9"},arbitrumDark:{conditions:{base:"fyvr12ff",active:"fyvr12fg",disabled:"fyvr12fh",focus:"fyvr12fi",hover:"fyvr12fj",checked:"fyvr12fk"},defaultClass:"fyvr12ff"},arbitrumLight:{conditions:{base:"fyvr12fl",active:"fyvr12fm",disabled:"fyvr12fn",focus:"fyvr12fo",hover:"fyvr12fp",checked:"fyvr12fq"},defaultClass:"fyvr12fl"},avalanceDark:{conditions:{base:"fyvr12fr",active:"fyvr12fs",disabled:"fyvr12ft",focus:"fyvr12fu",hover:"fyvr12fv",checked:"fyvr12fw"},defaultClass:"fyvr12fr"},avalanceLight:{conditions:{base:"fyvr12fx",active:"fyvr12fy",disabled:"fyvr12fz",focus:"fyvr12g0",hover:"fyvr12g1",checked:"fyvr12g2"},defaultClass:"fyvr12fx"},bscDark:{conditions:{base:"fyvr12g3",active:"fyvr12g4",disabled:"fyvr12g5",focus:"fyvr12g6",hover:"fyvr12g7",checked:"fyvr12g8"},defaultClass:"fyvr12g3"},bscLight:{conditions:{base:"fyvr12g9",active:"fyvr12ga",disabled:"fyvr12gb",focus:"fyvr12gc",hover:"fyvr12gd",checked:"fyvr12ge"},defaultClass:"fyvr12g9"},ethereumDark:{conditions:{base:"fyvr12gf",active:"fyvr12gg",disabled:"fyvr12gh",focus:"fyvr12gi",hover:"fyvr12gj",checked:"fyvr12gk"},defaultClass:"fyvr12gf"},ethereumLight:{conditions:{base:"fyvr12gl",active:"fyvr12gm",disabled:"fyvr12gn",focus:"fyvr12go",hover:"fyvr12gp",checked:"fyvr12gq"},defaultClass:"fyvr12gl"},gnosisDark:{conditions:{base:"fyvr12gr",active:"fyvr12gs",disabled:"fyvr12gt",focus:"fyvr12gu",hover:"fyvr12gv",checked:"fyvr12gw"},defaultClass:"fyvr12gr"},gnosisLight:{conditions:{base:"fyvr12gx",active:"fyvr12gy",disabled:"fyvr12gz",focus:"fyvr12h0",hover:"fyvr12h1",checked:"fyvr12h2"},defaultClass:"fyvr12gx"},polygonDark:{conditions:{base:"fyvr12h3",active:"fyvr12h4",disabled:"fyvr12h5",focus:"fyvr12h6",hover:"fyvr12h7",checked:"fyvr12h8"},defaultClass:"fyvr12h3"},polygonLight:{conditions:{base:"fyvr12h9",active:"fyvr12ha",disabled:"fyvr12hb",focus:"fyvr12hc",hover:"fyvr12hd",checked:"fyvr12he"},defaultClass:"fyvr12h9"},text100:{conditions:{base:"fyvr12hf",active:"fyvr12hg",disabled:"fyvr12hh",focus:"fyvr12hi",hover:"fyvr12hj",checked:"fyvr12hk"},defaultClass:"fyvr12hf"},text80:{conditions:{base:"fyvr12hl",active:"fyvr12hm",disabled:"fyvr12hn",focus:"fyvr12ho",hover:"fyvr12hp",checked:"fyvr12hq"},defaultClass:"fyvr12hl"},text50:{conditions:{base:"fyvr12hr",active:"fyvr12hs",disabled:"fyvr12ht",focus:"fyvr12hu",hover:"fyvr12hv",checked:"fyvr12hw"},defaultClass:"fyvr12hr"},textInverse100:{conditions:{base:"fyvr12hx",active:"fyvr12hy",disabled:"fyvr12hz",focus:"fyvr12i0",hover:"fyvr12i1",checked:"fyvr12i2"},defaultClass:"fyvr12hx"},backgroundPrimary:{conditions:{base:"fyvr12i3",active:"fyvr12i4",disabled:"fyvr12i5",focus:"fyvr12i6",hover:"fyvr12i7",checked:"fyvr12i8"},defaultClass:"fyvr12i3"},backgroundSecondary:{conditions:{base:"fyvr12i9",active:"fyvr12ia",disabled:"fyvr12ib",focus:"fyvr12ic",hover:"fyvr12id",checked:"fyvr12ie"},defaultClass:"fyvr12i9"},backgroundContrast:{conditions:{base:"fyvr12if",active:"fyvr12ig",disabled:"fyvr12ih",focus:"fyvr12ii",hover:"fyvr12ij",checked:"fyvr12ik"},defaultClass:"fyvr12if"},backgroundMuted:{conditions:{base:"fyvr12il",active:"fyvr12im",disabled:"fyvr12in",focus:"fyvr12io",hover:"fyvr12ip",checked:"fyvr12iq"},defaultClass:"fyvr12il"},backgroundControl:{conditions:{base:"fyvr12ir",active:"fyvr12is",disabled:"fyvr12it",focus:"fyvr12iu",hover:"fyvr12iv",checked:"fyvr12iw"},defaultClass:"fyvr12ir"},backgroundInverse:{conditions:{base:"fyvr12ix",active:"fyvr12iy",disabled:"fyvr12iz",focus:"fyvr12j0",hover:"fyvr12j1",checked:"fyvr12j2"},defaultClass:"fyvr12ix"},backgroundBackdrop:{conditions:{base:"fyvr12j3",active:"fyvr12j4",disabled:"fyvr12j5",focus:"fyvr12j6",hover:"fyvr12j7",checked:"fyvr12j8"},defaultClass:"fyvr12j3"},backgroundOverlay:{conditions:{base:"fyvr12j9",active:"fyvr12ja",disabled:"fyvr12jb",focus:"fyvr12jc",hover:"fyvr12jd",checked:"fyvr12je"},defaultClass:"fyvr12j9"},backgroundRaised:{conditions:{base:"fyvr12jf",active:"fyvr12jg",disabled:"fyvr12jh",focus:"fyvr12ji",hover:"fyvr12jj",checked:"fyvr12jk"},defaultClass:"fyvr12jf"},buttonGlass:{conditions:{base:"fyvr12jl",active:"fyvr12jm",disabled:"fyvr12jn",focus:"fyvr12jo",hover:"fyvr12jp",checked:"fyvr12jq"},defaultClass:"fyvr12jl"},buttonEmphasis:{conditions:{base:"fyvr12jr",active:"fyvr12js",disabled:"fyvr12jt",focus:"fyvr12ju",hover:"fyvr12jv",checked:"fyvr12jw"},defaultClass:"fyvr12jr"},buttonInverse:{conditions:{base:"fyvr12jx",active:"fyvr12jy",disabled:"fyvr12jz",focus:"fyvr12k0",hover:"fyvr12k1",checked:"fyvr12k2"},defaultClass:"fyvr12jx"},borderNormal:{conditions:{base:"fyvr12k3",active:"fyvr12k4",disabled:"fyvr12k5",focus:"fyvr12k6",hover:"fyvr12k7",checked:"fyvr12k8"},defaultClass:"fyvr12k3"},borderFocus:{conditions:{base:"fyvr12k9",active:"fyvr12ka",disabled:"fyvr12kb",focus:"fyvr12kc",hover:"fyvr12kd",checked:"fyvr12ke"},defaultClass:"fyvr12k9"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12kf",active:"fyvr12kg",disabled:"fyvr12kh",focus:"fyvr12ki",hover:"fyvr12kj",checked:"fyvr12kk"},defaultClass:"fyvr12kf"},dashed:{conditions:{base:"fyvr12kl",active:"fyvr12km",disabled:"fyvr12kn",focus:"fyvr12ko",hover:"fyvr12kp",checked:"fyvr12kq"},defaultClass:"fyvr12kl"},dotted:{conditions:{base:"fyvr12kr",active:"fyvr12ks",disabled:"fyvr12kt",focus:"fyvr12ku",hover:"fyvr12kv",checked:"fyvr12kw"},defaultClass:"fyvr12kr"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12kx",active:"fyvr12ky",disabled:"fyvr12kz",focus:"fyvr12l0",hover:"fyvr12l1",checked:"fyvr12l2"},defaultClass:"fyvr12kx"},white:{conditions:{base:"fyvr12l3",active:"fyvr12l4",disabled:"fyvr12l5",focus:"fyvr12l6",hover:"fyvr12l7",checked:"fyvr12l8"},defaultClass:"fyvr12l3"},inherit:{conditions:{base:"fyvr12l9",active:"fyvr12la",disabled:"fyvr12lb",focus:"fyvr12lc",hover:"fyvr12ld",checked:"fyvr12le"},defaultClass:"fyvr12l9"},transparent:{conditions:{base:"fyvr12lf",active:"fyvr12lg",disabled:"fyvr12lh",focus:"fyvr12li",hover:"fyvr12lj",checked:"fyvr12lk"},defaultClass:"fyvr12lf"},positive:{conditions:{base:"fyvr12ll",active:"fyvr12lm",disabled:"fyvr12ln",focus:"fyvr12lo",hover:"fyvr12lp",checked:"fyvr12lq"},defaultClass:"fyvr12ll"},negative:{conditions:{base:"fyvr12lr",active:"fyvr12ls",disabled:"fyvr12lt",focus:"fyvr12lu",hover:"fyvr12lv",checked:"fyvr12lw"},defaultClass:"fyvr12lr"},info:{conditions:{base:"fyvr12lx",active:"fyvr12ly",disabled:"fyvr12lz",focus:"fyvr12m0",hover:"fyvr12m1",checked:"fyvr12m2"},defaultClass:"fyvr12lx"},warning:{conditions:{base:"fyvr12m3",active:"fyvr12m4",disabled:"fyvr12m5",focus:"fyvr12m6",hover:"fyvr12m7",checked:"fyvr12m8"},defaultClass:"fyvr12m3"},gradientBackdrop:{conditions:{base:"fyvr12m9",active:"fyvr12ma",disabled:"fyvr12mb",focus:"fyvr12mc",hover:"fyvr12md",checked:"fyvr12me"},defaultClass:"fyvr12m9"},gradientPrimary:{conditions:{base:"fyvr12mf",active:"fyvr12mg",disabled:"fyvr12mh",focus:"fyvr12mi",hover:"fyvr12mj",checked:"fyvr12mk"},defaultClass:"fyvr12mf"},gradientSecondary:{conditions:{base:"fyvr12ml",active:"fyvr12mm",disabled:"fyvr12mn",focus:"fyvr12mo",hover:"fyvr12mp",checked:"fyvr12mq"},defaultClass:"fyvr12ml"},arbitrumDark:{conditions:{base:"fyvr12mr",active:"fyvr12ms",disabled:"fyvr12mt",focus:"fyvr12mu",hover:"fyvr12mv",checked:"fyvr12mw"},defaultClass:"fyvr12mr"},arbitrumLight:{conditions:{base:"fyvr12mx",active:"fyvr12my",disabled:"fyvr12mz",focus:"fyvr12n0",hover:"fyvr12n1",checked:"fyvr12n2"},defaultClass:"fyvr12mx"},avalanceDark:{conditions:{base:"fyvr12n3",active:"fyvr12n4",disabled:"fyvr12n5",focus:"fyvr12n6",hover:"fyvr12n7",checked:"fyvr12n8"},defaultClass:"fyvr12n3"},avalanceLight:{conditions:{base:"fyvr12n9",active:"fyvr12na",disabled:"fyvr12nb",focus:"fyvr12nc",hover:"fyvr12nd",checked:"fyvr12ne"},defaultClass:"fyvr12n9"},bscDark:{conditions:{base:"fyvr12nf",active:"fyvr12ng",disabled:"fyvr12nh",focus:"fyvr12ni",hover:"fyvr12nj",checked:"fyvr12nk"},defaultClass:"fyvr12nf"},bscLight:{conditions:{base:"fyvr12nl",active:"fyvr12nm",disabled:"fyvr12nn",focus:"fyvr12no",hover:"fyvr12np",checked:"fyvr12nq"},defaultClass:"fyvr12nl"},ethereumDark:{conditions:{base:"fyvr12nr",active:"fyvr12ns",disabled:"fyvr12nt",focus:"fyvr12nu",hover:"fyvr12nv",checked:"fyvr12nw"},defaultClass:"fyvr12nr"},ethereumLight:{conditions:{base:"fyvr12nx",active:"fyvr12ny",disabled:"fyvr12nz",focus:"fyvr12o0",hover:"fyvr12o1",checked:"fyvr12o2"},defaultClass:"fyvr12nx"},gnosisDark:{conditions:{base:"fyvr12o3",active:"fyvr12o4",disabled:"fyvr12o5",focus:"fyvr12o6",hover:"fyvr12o7",checked:"fyvr12o8"},defaultClass:"fyvr12o3"},gnosisLight:{conditions:{base:"fyvr12o9",active:"fyvr12oa",disabled:"fyvr12ob",focus:"fyvr12oc",hover:"fyvr12od",checked:"fyvr12oe"},defaultClass:"fyvr12o9"},polygonDark:{conditions:{base:"fyvr12of",active:"fyvr12og",disabled:"fyvr12oh",focus:"fyvr12oi",hover:"fyvr12oj",checked:"fyvr12ok"},defaultClass:"fyvr12of"},polygonLight:{conditions:{base:"fyvr12ol",active:"fyvr12om",disabled:"fyvr12on",focus:"fyvr12oo",hover:"fyvr12op",checked:"fyvr12oq"},defaultClass:"fyvr12ol"},text100:{conditions:{base:"fyvr12or",active:"fyvr12os",disabled:"fyvr12ot",focus:"fyvr12ou",hover:"fyvr12ov",checked:"fyvr12ow"},defaultClass:"fyvr12or"},text80:{conditions:{base:"fyvr12ox",active:"fyvr12oy",disabled:"fyvr12oz",focus:"fyvr12p0",hover:"fyvr12p1",checked:"fyvr12p2"},defaultClass:"fyvr12ox"},text50:{conditions:{base:"fyvr12p3",active:"fyvr12p4",disabled:"fyvr12p5",focus:"fyvr12p6",hover:"fyvr12p7",checked:"fyvr12p8"},defaultClass:"fyvr12p3"},textInverse100:{conditions:{base:"fyvr12p9",active:"fyvr12pa",disabled:"fyvr12pb",focus:"fyvr12pc",hover:"fyvr12pd",checked:"fyvr12pe"},defaultClass:"fyvr12p9"},backgroundPrimary:{conditions:{base:"fyvr12pf",active:"fyvr12pg",disabled:"fyvr12ph",focus:"fyvr12pi",hover:"fyvr12pj",checked:"fyvr12pk"},defaultClass:"fyvr12pf"},backgroundSecondary:{conditions:{base:"fyvr12pl",active:"fyvr12pm",disabled:"fyvr12pn",focus:"fyvr12po",hover:"fyvr12pp",checked:"fyvr12pq"},defaultClass:"fyvr12pl"},backgroundContrast:{conditions:{base:"fyvr12pr",active:"fyvr12ps",disabled:"fyvr12pt",focus:"fyvr12pu",hover:"fyvr12pv",checked:"fyvr12pw"},defaultClass:"fyvr12pr"},backgroundMuted:{conditions:{base:"fyvr12px",active:"fyvr12py",disabled:"fyvr12pz",focus:"fyvr12q0",hover:"fyvr12q1",checked:"fyvr12q2"},defaultClass:"fyvr12px"},backgroundControl:{conditions:{base:"fyvr12q3",active:"fyvr12q4",disabled:"fyvr12q5",focus:"fyvr12q6",hover:"fyvr12q7",checked:"fyvr12q8"},defaultClass:"fyvr12q3"},backgroundInverse:{conditions:{base:"fyvr12q9",active:"fyvr12qa",disabled:"fyvr12qb",focus:"fyvr12qc",hover:"fyvr12qd",checked:"fyvr12qe"},defaultClass:"fyvr12q9"},backgroundBackdrop:{conditions:{base:"fyvr12qf",active:"fyvr12qg",disabled:"fyvr12qh",focus:"fyvr12qi",hover:"fyvr12qj",checked:"fyvr12qk"},defaultClass:"fyvr12qf"},backgroundOverlay:{conditions:{base:"fyvr12ql",active:"fyvr12qm",disabled:"fyvr12qn",focus:"fyvr12qo",hover:"fyvr12qp",checked:"fyvr12qq"},defaultClass:"fyvr12ql"},backgroundRaised:{conditions:{base:"fyvr12qr",active:"fyvr12qs",disabled:"fyvr12qt",focus:"fyvr12qu",hover:"fyvr12qv",checked:"fyvr12qw"},defaultClass:"fyvr12qr"},buttonGlass:{conditions:{base:"fyvr12qx",active:"fyvr12qy",disabled:"fyvr12qz",focus:"fyvr12r0",hover:"fyvr12r1",checked:"fyvr12r2"},defaultClass:"fyvr12qx"},buttonEmphasis:{conditions:{base:"fyvr12r3",active:"fyvr12r4",disabled:"fyvr12r5",focus:"fyvr12r6",hover:"fyvr12r7",checked:"fyvr12r8"},defaultClass:"fyvr12r3"},buttonInverse:{conditions:{base:"fyvr12r9",active:"fyvr12ra",disabled:"fyvr12rb",focus:"fyvr12rc",hover:"fyvr12rd",checked:"fyvr12re"},defaultClass:"fyvr12r9"},borderNormal:{conditions:{base:"fyvr12rf",active:"fyvr12rg",disabled:"fyvr12rh",focus:"fyvr12ri",hover:"fyvr12rj",checked:"fyvr12rk"},defaultClass:"fyvr12rf"},borderFocus:{conditions:{base:"fyvr12rl",active:"fyvr12rm",disabled:"fyvr12rn",focus:"fyvr12ro",hover:"fyvr12rp",checked:"fyvr12rq"},defaultClass:"fyvr12rl"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12rr",active:"fyvr12rs",disabled:"fyvr12rt",focus:"fyvr12ru",hover:"fyvr12rv",checked:"fyvr12rw"},defaultClass:"fyvr12rr"},dashed:{conditions:{base:"fyvr12rx",active:"fyvr12ry",disabled:"fyvr12rz",focus:"fyvr12s0",hover:"fyvr12s1",checked:"fyvr12s2"},defaultClass:"fyvr12rx"},dotted:{conditions:{base:"fyvr12s3",active:"fyvr12s4",disabled:"fyvr12s5",focus:"fyvr12s6",hover:"fyvr12s7",checked:"fyvr12s8"},defaultClass:"fyvr12s3"}}},border:{values:{none:{conditions:{base:"fyvr12s9",active:"fyvr12sa",disabled:"fyvr12sb",focus:"fyvr12sc",hover:"fyvr12sd",checked:"fyvr12se"},defaultClass:"fyvr12s9"}}},color:{values:{black:{conditions:{base:"fyvr12sf",active:"fyvr12sg",disabled:"fyvr12sh",focus:"fyvr12si",hover:"fyvr12sj",checked:"fyvr12sk"},defaultClass:"fyvr12sf"},white:{conditions:{base:"fyvr12sl",active:"fyvr12sm",disabled:"fyvr12sn",focus:"fyvr12so",hover:"fyvr12sp",checked:"fyvr12sq"},defaultClass:"fyvr12sl"},inherit:{conditions:{base:"fyvr12sr",active:"fyvr12ss",disabled:"fyvr12st",focus:"fyvr12su",hover:"fyvr12sv",checked:"fyvr12sw"},defaultClass:"fyvr12sr"},transparent:{conditions:{base:"fyvr12sx",active:"fyvr12sy",disabled:"fyvr12sz",focus:"fyvr12t0",hover:"fyvr12t1",checked:"fyvr12t2"},defaultClass:"fyvr12sx"},positive:{conditions:{base:"fyvr12t3",active:"fyvr12t4",disabled:"fyvr12t5",focus:"fyvr12t6",hover:"fyvr12t7",checked:"fyvr12t8"},defaultClass:"fyvr12t3"},negative:{conditions:{base:"fyvr12t9",active:"fyvr12ta",disabled:"fyvr12tb",focus:"fyvr12tc",hover:"fyvr12td",checked:"fyvr12te"},defaultClass:"fyvr12t9"},info:{conditions:{base:"fyvr12tf",active:"fyvr12tg",disabled:"fyvr12th",focus:"fyvr12ti",hover:"fyvr12tj",checked:"fyvr12tk"},defaultClass:"fyvr12tf"},warning:{conditions:{base:"fyvr12tl",active:"fyvr12tm",disabled:"fyvr12tn",focus:"fyvr12to",hover:"fyvr12tp",checked:"fyvr12tq"},defaultClass:"fyvr12tl"},gradientBackdrop:{conditions:{base:"fyvr12tr",active:"fyvr12ts",disabled:"fyvr12tt",focus:"fyvr12tu",hover:"fyvr12tv",checked:"fyvr12tw"},defaultClass:"fyvr12tr"},gradientPrimary:{conditions:{base:"fyvr12tx",active:"fyvr12ty",disabled:"fyvr12tz",focus:"fyvr12u0",hover:"fyvr12u1",checked:"fyvr12u2"},defaultClass:"fyvr12tx"},gradientSecondary:{conditions:{base:"fyvr12u3",active:"fyvr12u4",disabled:"fyvr12u5",focus:"fyvr12u6",hover:"fyvr12u7",checked:"fyvr12u8"},defaultClass:"fyvr12u3"},arbitrumDark:{conditions:{base:"fyvr12u9",active:"fyvr12ua",disabled:"fyvr12ub",focus:"fyvr12uc",hover:"fyvr12ud",checked:"fyvr12ue"},defaultClass:"fyvr12u9"},arbitrumLight:{conditions:{base:"fyvr12uf",active:"fyvr12ug",disabled:"fyvr12uh",focus:"fyvr12ui",hover:"fyvr12uj",checked:"fyvr12uk"},defaultClass:"fyvr12uf"},avalanceDark:{conditions:{base:"fyvr12ul",active:"fyvr12um",disabled:"fyvr12un",focus:"fyvr12uo",hover:"fyvr12up",checked:"fyvr12uq"},defaultClass:"fyvr12ul"},avalanceLight:{conditions:{base:"fyvr12ur",active:"fyvr12us",disabled:"fyvr12ut",focus:"fyvr12uu",hover:"fyvr12uv",checked:"fyvr12uw"},defaultClass:"fyvr12ur"},bscDark:{conditions:{base:"fyvr12ux",active:"fyvr12uy",disabled:"fyvr12uz",focus:"fyvr12v0",hover:"fyvr12v1",checked:"fyvr12v2"},defaultClass:"fyvr12ux"},bscLight:{conditions:{base:"fyvr12v3",active:"fyvr12v4",disabled:"fyvr12v5",focus:"fyvr12v6",hover:"fyvr12v7",checked:"fyvr12v8"},defaultClass:"fyvr12v3"},ethereumDark:{conditions:{base:"fyvr12v9",active:"fyvr12va",disabled:"fyvr12vb",focus:"fyvr12vc",hover:"fyvr12vd",checked:"fyvr12ve"},defaultClass:"fyvr12v9"},ethereumLight:{conditions:{base:"fyvr12vf",active:"fyvr12vg",disabled:"fyvr12vh",focus:"fyvr12vi",hover:"fyvr12vj",checked:"fyvr12vk"},defaultClass:"fyvr12vf"},gnosisDark:{conditions:{base:"fyvr12vl",active:"fyvr12vm",disabled:"fyvr12vn",focus:"fyvr12vo",hover:"fyvr12vp",checked:"fyvr12vq"},defaultClass:"fyvr12vl"},gnosisLight:{conditions:{base:"fyvr12vr",active:"fyvr12vs",disabled:"fyvr12vt",focus:"fyvr12vu",hover:"fyvr12vv",checked:"fyvr12vw"},defaultClass:"fyvr12vr"},polygonDark:{conditions:{base:"fyvr12vx",active:"fyvr12vy",disabled:"fyvr12vz",focus:"fyvr12w0",hover:"fyvr12w1",checked:"fyvr12w2"},defaultClass:"fyvr12vx"},polygonLight:{conditions:{base:"fyvr12w3",active:"fyvr12w4",disabled:"fyvr12w5",focus:"fyvr12w6",hover:"fyvr12w7",checked:"fyvr12w8"},defaultClass:"fyvr12w3"},text100:{conditions:{base:"fyvr12w9",active:"fyvr12wa",disabled:"fyvr12wb",focus:"fyvr12wc",hover:"fyvr12wd",checked:"fyvr12we"},defaultClass:"fyvr12w9"},text80:{conditions:{base:"fyvr12wf",active:"fyvr12wg",disabled:"fyvr12wh",focus:"fyvr12wi",hover:"fyvr12wj",checked:"fyvr12wk"},defaultClass:"fyvr12wf"},text50:{conditions:{base:"fyvr12wl",active:"fyvr12wm",disabled:"fyvr12wn",focus:"fyvr12wo",hover:"fyvr12wp",checked:"fyvr12wq"},defaultClass:"fyvr12wl"},textInverse100:{conditions:{base:"fyvr12wr",active:"fyvr12ws",disabled:"fyvr12wt",focus:"fyvr12wu",hover:"fyvr12wv",checked:"fyvr12ww"},defaultClass:"fyvr12wr"},backgroundPrimary:{conditions:{base:"fyvr12wx",active:"fyvr12wy",disabled:"fyvr12wz",focus:"fyvr12x0",hover:"fyvr12x1",checked:"fyvr12x2"},defaultClass:"fyvr12wx"},backgroundSecondary:{conditions:{base:"fyvr12x3",active:"fyvr12x4",disabled:"fyvr12x5",focus:"fyvr12x6",hover:"fyvr12x7",checked:"fyvr12x8"},defaultClass:"fyvr12x3"},backgroundContrast:{conditions:{base:"fyvr12x9",active:"fyvr12xa",disabled:"fyvr12xb",focus:"fyvr12xc",hover:"fyvr12xd",checked:"fyvr12xe"},defaultClass:"fyvr12x9"},backgroundMuted:{conditions:{base:"fyvr12xf",active:"fyvr12xg",disabled:"fyvr12xh",focus:"fyvr12xi",hover:"fyvr12xj",checked:"fyvr12xk"},defaultClass:"fyvr12xf"},backgroundControl:{conditions:{base:"fyvr12xl",active:"fyvr12xm",disabled:"fyvr12xn",focus:"fyvr12xo",hover:"fyvr12xp",checked:"fyvr12xq"},defaultClass:"fyvr12xl"},backgroundInverse:{conditions:{base:"fyvr12xr",active:"fyvr12xs",disabled:"fyvr12xt",focus:"fyvr12xu",hover:"fyvr12xv",checked:"fyvr12xw"},defaultClass:"fyvr12xr"},backgroundBackdrop:{conditions:{base:"fyvr12xx",active:"fyvr12xy",disabled:"fyvr12xz",focus:"fyvr12y0",hover:"fyvr12y1",checked:"fyvr12y2"},defaultClass:"fyvr12xx"},backgroundOverlay:{conditions:{base:"fyvr12y3",active:"fyvr12y4",disabled:"fyvr12y5",focus:"fyvr12y6",hover:"fyvr12y7",checked:"fyvr12y8"},defaultClass:"fyvr12y3"},backgroundRaised:{conditions:{base:"fyvr12y9",active:"fyvr12ya",disabled:"fyvr12yb",focus:"fyvr12yc",hover:"fyvr12yd",checked:"fyvr12ye"},defaultClass:"fyvr12y9"},buttonGlass:{conditions:{base:"fyvr12yf",active:"fyvr12yg",disabled:"fyvr12yh",focus:"fyvr12yi",hover:"fyvr12yj",checked:"fyvr12yk"},defaultClass:"fyvr12yf"},buttonEmphasis:{conditions:{base:"fyvr12yl",active:"fyvr12ym",disabled:"fyvr12yn",focus:"fyvr12yo",hover:"fyvr12yp",checked:"fyvr12yq"},defaultClass:"fyvr12yl"},buttonInverse:{conditions:{base:"fyvr12yr",active:"fyvr12ys",disabled:"fyvr12yt",focus:"fyvr12yu",hover:"fyvr12yv",checked:"fyvr12yw"},defaultClass:"fyvr12yr"},borderNormal:{conditions:{base:"fyvr12yx",active:"fyvr12yy",disabled:"fyvr12yz",focus:"fyvr12z0",hover:"fyvr12z1",checked:"fyvr12z2"},defaultClass:"fyvr12yx"},borderFocus:{conditions:{base:"fyvr12z3",active:"fyvr12z4",disabled:"fyvr12z5",focus:"fyvr12z6",hover:"fyvr12z7",checked:"fyvr12z8"},defaultClass:"fyvr12z3"}}},cursor:{values:{default:{conditions:{base:"fyvr12z9",active:"fyvr12za",disabled:"fyvr12zb",focus:"fyvr12zc",hover:"fyvr12zd",checked:"fyvr12ze"},defaultClass:"fyvr12z9"},pointer:{conditions:{base:"fyvr12zf",active:"fyvr12zg",disabled:"fyvr12zh",focus:"fyvr12zi",hover:"fyvr12zj",checked:"fyvr12zk"},defaultClass:"fyvr12zf"},text:{conditions:{base:"fyvr12zl",active:"fyvr12zm",disabled:"fyvr12zn",focus:"fyvr12zo",hover:"fyvr12zp",checked:"fyvr12zq"},defaultClass:"fyvr12zl"}}},opacity:{values:{0:{conditions:{base:"fyvr12zr",active:"fyvr12zs",disabled:"fyvr12zt",focus:"fyvr12zu",hover:"fyvr12zv",checked:"fyvr12zw"},defaultClass:"fyvr12zr"},50:{conditions:{base:"fyvr12zx",active:"fyvr12zy",disabled:"fyvr12zz",focus:"fyvr1300",hover:"fyvr1301",checked:"fyvr1302"},defaultClass:"fyvr12zx"},80:{conditions:{base:"fyvr1303",active:"fyvr1304",disabled:"fyvr1305",focus:"fyvr1306",hover:"fyvr1307",checked:"fyvr1308"},defaultClass:"fyvr1303"},100:{conditions:{base:"fyvr1309",active:"fyvr130a",disabled:"fyvr130b",focus:"fyvr130c",hover:"fyvr130d",checked:"fyvr130e"},defaultClass:"fyvr1309"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr130f",active:"fyvr130g",disabled:"fyvr130h",focus:"fyvr130i",hover:"fyvr130j",checked:"fyvr130k"},defaultClass:"fyvr130f"},auto:{conditions:{base:"fyvr130l",active:"fyvr130m",disabled:"fyvr130n",focus:"fyvr130o",hover:"fyvr130p",checked:"fyvr130q"},defaultClass:"fyvr130l"}}},outline:{values:{none:{conditions:{base:"fyvr130r",active:"fyvr130s",disabled:"fyvr130t",focus:"fyvr130u",hover:"fyvr130v",checked:"fyvr130w"},defaultClass:"fyvr130r"}}},boxShadow:{values:{none:{conditions:{base:"fyvr130x",active:"fyvr130y",disabled:"fyvr130z",focus:"fyvr1310",hover:"fyvr1311",checked:"fyvr1312"},defaultClass:"fyvr130x"}}}}});const tq=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],fw=t=>(t.display||(t.display=Object.keys(t).some(e=>tq.includes(e))?"flex":void 0),wP(t));fw.properties=wP.properties;const rq="https://assets.sequence.info/",nq=5,sq={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},EP=t=>t?sq[t]||t:"medium",iq=(t,e)=>t.replace(/\/(small|medium|large)\//,`/${EP(e)}/`),oq=(t,e)=>rq+`images/networks/${EP(e)}/${t}.webp?v${nq}`;function CP(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e{const{as:r="div",sx:n={},className:s,...i}=t,o={},a={};for(const l in i)fw.properties.has(l)?o[l]=i[l]:a[l]=i[l];const c=fw({...o,...n});return x.createElement(r,{className:or(c,s),...a,ref:e})});var kP={exports:{}},Ud={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dA;function aq(){if(dA)return Ud;dA=1;var t=Vr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,f={},d=null,h=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(f[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:e,type:a,key:d,ref:h,props:f,_owner:s.current}}return Ud.Fragment=r,Ud.jsx=o,Ud.jsxs=o,Ud}kP.exports=aq();var C=kP.exports;function cq(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lq(t){var e=cq(t,"string");return typeof e=="symbol"?e:String(e)}function uq(t,e,r){return e=lq(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function pA(t){for(var e=1;e{for(var n of Object.keys(t)){var s;if(t[n]!==((s=e[n])!==null&&s!==void 0?s:r[n]))return!1}return!0},St=t=>{var e=r=>{var n=t.defaultClassName,s=pA(pA({},t.defaultVariants),r);for(var i in s){var o,a=(o=s[i])!==null&&o!==void 0?o:t.defaultVariants[i];if(a!=null){var c=a;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[i][c];l&&(n+=" "+l)}}for(var[u,f]of t.compoundVariants)fq(u,s,t.defaultVariants)&&(n+=" "+f);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return yA(t.variantClassNames,r=>yA(r,n=>n.split(" ")[0]))}},e};St({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11t3",warning:"_2q9vfj9 _2q9vfj1 fyvr11t9",success:"_2q9vfja _2q9vfj2 fyvr11sr",error:"_2q9vfjb _2q9vfj3 fyvr11sx"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc _2q9vfj4 fyvr1zc fyvr111g fyvr144 fyvr1f4",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _2q9vfj5 fyvr1zg fyvr111k fyvr148 fyvr1f8",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11r3 fyvr11is fyvr11kc fyvr11jw fyvr11jk _2q9vfj6 fyvr1zk fyvr111o fyvr14c fyvr1fc"}},defaultVariants:{},compoundVariants:[]});const gA=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return C.jsx(Ce,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var dq=St({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11r2 fyvr11ic fyvr11ko fyvr11jo fyvr11j4",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11r3 fyvr11j0 fyvr11kk fyvr11js fyvr11jk",large:"_1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg",medium:"_1qxj1ibd _1qxj1ib3 fyvr11r3 fyvr11is fyvr11kc fyvr11jw fyvr11jk",normal:"_1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8",small:"_1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk",code:"_1qxj1ibh _1qxj1ib7 fyvr11r4 fyvr11io fyvr11k8 fyvr11js fyvr11j8"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11q0 fyvr11qg fyvr11rh fyvr11r5"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Tt=x.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:s,hidden:i,italic:o,underline:a,children:c,ellipsis:l,uppercase:u,capitalize:f,...d}=t,h=KG[n];return C.jsx(Ce,{as:r,className:or(s,dq({hidden:i,ellipsis:l,italic:o,underline:a,uppercase:u,capitalize:f})),ref:e,...h,...d,children:c})});var hq=St({defaultClassName:"_140wn8ni _140wn8n0 fyvr11q0 fyvr11qg fyvr11rh fyvr11ow fyvr12s9 fyvr11ra fyvr11l8 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11sl fyvr12w9",ghost:"_140wn8nk _140wn8n2 fyvr11sl fyvr12w9",feature:"_140wn8nl _140wn8n3 fyvr11tr fyvr12sl",primary:"_140wn8nm _140wn8n4 fyvr11tl fyvr12sl",glass:"_140wn8nn _140wn8n5 fyvr11y3 fyvr12w9",emphasis:"_140wn8no _140wn8n6 fyvr11y9 fyvr12w9",raised:"_140wn8np _140wn8n7 fyvr11xx fyvr12w9",danger:"_140wn8nq _140wn8n8 fyvr11sx fyvr12sl",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11r3 fyvr11ik fyvr11k4 fyvr11k0 fyvr11jc _140wn8n9 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr11sl fyvr12wl"},shape:{circle:"_140wn8ns _140wn8na fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw",square:"_140wn8nt _140wn8nb fyvr11h8 fyvr11hw fyvr11fw fyvr11gk"},disabled:{true:"_140wn8nu _140wn8nc fyvr12z9 fyvr12zx",false:"_140wn8nv _140wn8nd fyvr12zf fyvr1309 fyvr1307"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk _140wn8ne fyvr1zg fyvr111k",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8nf fyvr1zk fyvr111o",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8ng fyvr1zo fyvr111s",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _140wn8nh fyvr1zo fyvr111s"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const Ve=x.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:s,disabled:i=!1,display:o="inline-flex",fontWeight:a="bold",pending:c=!1,label:l,leftIcon:u,rightIcon:f,size:d="md",variant:h="glass",width:y="fit",shape:p="circle",type:b="button",...g}=t,v=u!==void 0&&l!==void 0,m=f!==void 0&&l!==void 0,k=u!==void 0&&l===void 0,A=d==="xs"?"xs":"sm";return C.jsx(Ce,{as:r,className:or(s,hq({activeOutline:n,disabled:i||c,hasLeftIcon:v,hasRightIcon:m,iconOnly:k,size:h==="text"?void 0:d,shape:h==="text"?void 0:p,variant:h})),disabled:i||c,display:o,fontWeight:a,ref:e,type:b,width:y,...g,children:k?C.jsx(u,{size:A}):C.jsxs(Ce,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[C.jsxs(Ce,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[u&&C.jsx(u,{size:A}),C.jsx(Tt,{children:l})]}),f&&C.jsx(f,{size:A})]})})});var pq=St({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11ec fyvr11eo fyvr11f0 fyvr11fc fyvr1307 fyvr12zf _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr12rf fyvr12k3 fyvr125f fyvr12cr fyvr12rr fyvr12kf fyvr125r fyvr12d3"},blur:{true:"rhmai67 rhmai62 fyvr11r0"}},defaultVariants:{},compoundVariants:[]});const yq=x.forwardRef((t,e)=>{const{className:r,children:n,clickable:s,outlined:i,disabled:o,blur:a,width:c="full",...l}=t;return C.jsx(Ce,{className:or(r,pq({clickable:s,outlined:i,disabled:o,blur:a})),background:i?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:c,ref:e,...l,children:n})});function gq(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function hv(...t){return e=>t.forEach(r=>gq(r,e))}function We(...t){return x.useCallback(hv(...t),t)}function vq(t,e){const r=x.createContext(e);function n(i){const{children:o,...a}=i,c=x.useMemo(()=>a,Object.values(a));return C.jsx(r.Provider,{value:c,children:o})}function s(i){const o=x.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return n.displayName=t+"Provider",[n,s]}function Br(t,e=[]){let r=[];function n(i,o){const a=x.createContext(o),c=r.length;r=[...r,o];function l(f){const{scope:d,children:h,...y}=f,p=(d==null?void 0:d[t][c])||a,b=x.useMemo(()=>y,Object.values(y));return C.jsx(p.Provider,{value:b,children:h})}function u(f,d){const h=(d==null?void 0:d[t][c])||a,y=x.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=r.map(o=>x.createContext(o));return function(a){const c=(a==null?void 0:a[t])||i;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[n,mq(s,...e)]}function mq(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function Mr(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function as({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,s]=xq({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,a=Mr(r),c=x.useCallback(l=>{if(i){const f=typeof l=="function"?l(t):l;f!==t&&a(f)}else s(l)},[i,t,s,a]);return[o,c]}function xq({defaultProp:t,onChange:e}){const r=x.useState(t),[n]=r,s=x.useRef(n),i=Mr(e);return x.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}function pv(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var br=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{};function yv(t){const[e,r]=x.useState(void 0);return br(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function bq(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var Xr=t=>{const{present:e,children:r}=t,n=wq(e),s=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),i=We(n.ref,Eq(s));return typeof r=="function"||n.isPresent?x.cloneElement(s,{ref:i}):null};Xr.displayName="Presence";function wq(t){const[e,r]=x.useState(),n=x.useRef({}),s=x.useRef(t),i=x.useRef("none"),o=t?"mounted":"unmounted",[a,c]=bq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=tp(n.current);i.current=a==="mounted"?l:"none"},[a]),br(()=>{const l=n.current,u=s.current;if(u!==t){const d=i.current,h=tp(l);t?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),br(()=>{if(e){const l=f=>{const h=tp(n.current).includes(f.animationName);f.target===e&&h&&ja.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===e&&(i.current=tp(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function tp(t){return(t==null?void 0:t.animationName)||"none"}function Eq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var ul=x.forwardRef((t,e)=>{const{children:r,...n}=t,s=x.Children.toArray(r),i=s.find(Cq);if(i){const o=i.props.children,a=s.map(c=>c===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:c);return C.jsx(dw,{...n,ref:e,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return C.jsx(dw,{...n,ref:e,children:r})});ul.displayName="Slot";var dw=x.forwardRef((t,e)=>{const{children:r,...n}=t;if(x.isValidElement(r)){const s=Sq(r);return x.cloneElement(r,{...kq(n,r.props),ref:e?hv(e,s):s})}return x.Children.count(r)>1?x.Children.only(null):null});dw.displayName="SlotClone";var SP=({children:t})=>C.jsx(C.Fragment,{children:t});function Cq(t){return x.isValidElement(t)&&t.type===SP}function kq(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{i(...a),s(...a)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function Sq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var Aq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Se=Aq.reduce((t,e)=>{const r=x.forwardRef((n,s)=>{const{asChild:i,...o}=n,a=i?ul:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(a,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function bC(t,e){t&&ja.flushSync(()=>t.dispatchEvent(e))}var wC="Checkbox",[Tq,Zde]=Br(wC),[Iq,Pq]=Tq(wC),AP=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=x.useState(null),h=We(e,m=>d(m)),y=x.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,g]=as({prop:s,defaultProp:i,onChange:l}),v=x.useRef(b);return x.useEffect(()=>{const m=f==null?void 0:f.form;if(m){const k=()=>g(v.current);return m.addEventListener("reset",k),()=>m.removeEventListener("reset",k)}},[f,g]),C.jsxs(Iq,{scope:r,state:b,disabled:a,children:[C.jsx(Se.button,{type:"button",role:"checkbox","aria-checked":Yc(b)?"mixed":b,"aria-required":o,"data-state":PP(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onKeyDown:ce(t.onKeyDown,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:ce(t.onClick,m=>{g(k=>Yc(k)?!0:!k),p&&(y.current=m.isPropagationStopped(),y.current||m.stopPropagation())})}),p&&C.jsx(Oq,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});AP.displayName=wC;var TP="CheckboxIndicator",IP=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=Pq(TP,r);return C.jsx(Xr,{present:n||Yc(i.state)||i.state===!0,children:C.jsx(Se.span,{"data-state":PP(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});IP.displayName=TP;var Oq=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=x.useRef(null),o=pv(r),a=yv(e);return x.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});c.indeterminate=Yc(r),f.call(c,Yc(r)?!1:r),c.dispatchEvent(d)}},[o,r,n]),C.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Yc(r)?!1:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Yc(t){return t==="indeterminate"}function PP(t){return Yc(t)?"indeterminate":t?"checked":"unchecked"}var Rq=AP,Nq=IP,_q=St({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11p4 fyvr11mc fyvr11ck fyvr11l8",left:"_43lu9r6 _43lu9r1 fyvr11ow fyvr11mk fyvr11ck fyvr11l8",right:"_43lu9r7 _43lu9r2 fyvr11ow fyvr11mk fyvr11ck fyvr11l8",hidden:"_43lu9r8 _43lu9r3 fyvr11c8 fyvr11l8"}},defaultVariants:{},compoundVariants:[]});const dd=t=>{const{id:e,label:r,description:n,labelLocation:s="top",children:i,...o}=t,a=()=>r||n?C.jsxs(Ce,{flexDirection:"column",gap:"0.5",children:[r&&C.jsx(Tt,{variant:"small",color:"text100",hidden:s==="hidden",children:r}),n&&C.jsx(Tt,{variant:"small",color:"text50",hidden:s==="hidden",children:n})]}):null;return C.jsxs(Ce,{as:"label",className:_q({labelLocation:s}),htmlFor:e,...o,children:[["left","top","hidden"].includes(s)&&a(),i,s==="right"&&a()]})};var hd=St({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const Mq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),OP=({size:t="sm",...e})=>C.jsx(Ce,{as:Mq,className:hd({size:t}),...e}),Dq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),RP=({size:t="sm",...e})=>C.jsx(Ce,{as:Dq,className:hd({size:t}),...e}),Bq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),EC=({size:t="sm",...e})=>C.jsx(Ce,{as:Bq,className:hd({size:t}),...e}),Lq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.608 6.75h-5.19v-1.5h7.75V13h-1.5V7.81l-7.72 7.72-1.06-1.06 7.72-7.72Z",clipRule:"evenodd"})}),jq=({size:t="sm",...e})=>C.jsx(Ce,{as:Lq,className:hd({size:t}),...e}),Fq=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),Uq=({size:t="sm",...e})=>C.jsx(Ce,{as:Fq,className:hd({size:t}),...e}),$q=t=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:C.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.28 2.856-6.71 8.887h4.134l-1.424 6.2 6.887-8.71h-4.322l1.435-6.377Z",clipRule:"evenodd"})}),Wq=({size:t="sm",...e})=>C.jsx(Ce,{as:$q,className:hd({size:t}),...e});var Vq=St({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr12rl fyvr12k9 fyvr125l fyvr12cx fyvr12rr fyvr12kf fyvr125r fyvr12d3 fyvr11l8 fyvr11ow fyvr11no fyvr11sl fyvr1309 fyvr1307 fyvr12zz fyvr12zf fyvr12zb _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),zq="_1c9x66f4 fyvr12w9 fyvr11l8 fyvr11ow fyvr11no fyvr12g fyvr164";const Hq=({size:t="sm"})=>C.jsx(Nq,{className:zq,children:C.jsx(OP,{size:t==="lg"?"sm":"xs"})});x.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:s,label:i="",labelLocation:o="left",size:a="sm",...c}=t;return C.jsx(dd,{disabled:r,display:"flex",id:n??s,label:i,labelLocation:o,whiteSpace:"nowrap",children:C.jsx(Rq,{className:Vq({size:a}),disabled:r,id:n??s,name:s,ref:e,...c,children:C.jsx(Hq,{size:a})})})});Vr.createContext(null);var Gq=gU.useId||(()=>{}),qq=0;function rs(t){const[e,r]=x.useState(Gq());return br(()=>{t||r(n=>n??String(qq++))},[t]),t||(e?`radix-${e}`:"")}var CC="Collapsible",[Kq,ehe]=Br(CC),[Qq,kC]=Kq(CC),NP=x.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[c=!1,l]=as({prop:n,defaultProp:s,onChange:o});return C.jsx(Qq,{scope:r,disabled:i,contentId:rs(),open:c,onOpenToggle:x.useCallback(()=>l(u=>!u),[l]),children:C.jsx(Se.div,{"data-state":AC(c),"data-disabled":i?"":void 0,...a,ref:e})})});NP.displayName=CC;var _P="CollapsibleTrigger",MP=x.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=kC(_P,r);return C.jsx(Se.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":AC(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:ce(t.onClick,s.onOpenToggle)})});MP.displayName=_P;var SC="CollapsibleContent",DP=x.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=kC(SC,t.__scopeCollapsible);return C.jsx(Xr,{present:r||s.open,children:({present:i})=>C.jsx(Jq,{...n,ref:e,present:i})})});DP.displayName=SC;var Jq=x.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,o=kC(SC,r),[a,c]=x.useState(n),l=x.useRef(null),u=We(e,l),f=x.useRef(0),d=f.current,h=x.useRef(0),y=h.current,p=o.open||a,b=x.useRef(p),g=x.useRef();return x.useEffect(()=>{const v=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(v)},[]),br(()=>{const v=l.current;if(v){g.current=g.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const m=v.getBoundingClientRect();f.current=m.height,h.current=m.width,b.current||(v.style.transitionDuration=g.current.transitionDuration,v.style.animationName=g.current.animationName),c(n)}},[o.open,n]),C.jsx(Se.div,{"data-state":AC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...t.style},children:p&&s})});function AC(t){return t?"open":"closed"}var Yq=NP,Xq=MP,Zq=DP,vA="64px",eK="_4j62fl0",tK="_4j62fl2 _4j62fl1 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11l8 fyvr11ow fyvr11sl fyvr12g fyvr12zf fyvr11rc _4efw240",rK="_4j62fl4 _4j62fl3 fyvr1zk fyvr111o fyvr1uw fyvr1xg fyvr12g",nK="_4j62fl5";const sK=t=>{const{className:e,children:r,defaultOpen:n,open:s,onOpenChange:i,label:o,...a}=t,[c,l]=x.useState(n),u=s??c,f=h=>{s===void 0&&l(h)},d=h=>{f(h),i==null||i(h)};return C.jsx(Yq,{open:u,defaultOpen:n,onOpenChange:d,asChild:!0,children:C.jsxs(Ce,{as:Au.div,className:or(e,eK),initial:{height:u?"auto":vA},animate:{height:u?"auto":vA},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[C.jsxs(Xq,{className:tK,children:[C.jsx(Tt,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),C.jsx(Ce,{as:Au.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:u?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:C.jsx(RP,{className:nK,color:"text50"})})]}),C.jsx(xP,{children:u&&C.jsx(Zq,{className:rK,asChild:!0,forceMount:!0,children:C.jsx(Au.div,{initial:{opacity:u?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function gv(t){const e=t+"CollectionProvider",[r,n]=Br(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:y,children:p}=h,b=Vr.useRef(null),g=Vr.useRef(new Map).current;return C.jsx(s,{scope:y,itemMap:g,collectionRef:b,children:p})};o.displayName=e;const a=t+"CollectionSlot",c=Vr.forwardRef((h,y)=>{const{scope:p,children:b}=h,g=i(a,p),v=We(y,g.collectionRef);return C.jsx(ul,{ref:v,children:b})});c.displayName=a;const l=t+"CollectionItemSlot",u="data-radix-collection-item",f=Vr.forwardRef((h,y)=>{const{scope:p,children:b,...g}=h,v=Vr.useRef(null),m=We(y,v),k=i(l,p);return Vr.useEffect(()=>(k.itemMap.set(v,{ref:v,...g}),()=>void k.itemMap.delete(v))),C.jsx(ul,{[u]:"",ref:m,children:b})});f.displayName=l;function d(h){const y=i(t+"CollectionConsumer",h);return Vr.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((k,A)=>g.indexOf(k.ref.current)-g.indexOf(A.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,n]}var iK=x.createContext(void 0);function u1(t){const e=x.useContext(iK);return t||e||"ltr"}function oK(t,e=globalThis==null?void 0:globalThis.document){const r=Mr(t);x.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var aK="DismissableLayer",hw="dismissableLayer.update",cK="dismissableLayer.pointerDownOutside",lK="dismissableLayer.focusOutside",mA,BP=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pd=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,l=x.useContext(BP),[u,f]=x.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=x.useState({}),y=We(e,R=>f(R)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(b),v=u?p.indexOf(u):-1,m=l.layersWithOutsidePointerEventsDisabled.size>0,k=v>=g,A=fK(R=>{const N=R.target,V=[...l.branches].some(F=>F.contains(N));!k||V||(s==null||s(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),P=dK(R=>{const N=R.target;[...l.branches].some(F=>F.contains(N))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return oK(R=>{v===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),x.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(mA=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),xA(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=mA)}},[u,d,r,l]),x.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),xA())},[u,l]),x.useEffect(()=>{const R=()=>h({});return document.addEventListener(hw,R),()=>document.removeEventListener(hw,R)},[]),C.jsx(Se.div,{...c,ref:y,style:{pointerEvents:m?k?"auto":"none":void 0,...t.style},onFocusCapture:ce(t.onFocusCapture,P.onFocusCapture),onBlurCapture:ce(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ce(t.onPointerDownCapture,A.onPointerDownCapture)})});pd.displayName=aK;var uK="DismissableLayerBranch",LP=x.forwardRef((t,e)=>{const r=x.useContext(BP),n=x.useRef(null),s=We(e,n);return x.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),C.jsx(Se.div,{...t,ref:s})});LP.displayName=uK;function fK(t,e=globalThis==null?void 0:globalThis.document){const r=Mr(t),n=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){jP(cK,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function dK(t,e=globalThis==null?void 0:globalThis.document){const r=Mr(t),n=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!n.current&&jP(lK,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function xA(){const t=new CustomEvent(hw);document.dispatchEvent(t)}function jP(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?bC(s,i):s.dispatchEvent(i)}var hK=pd,pK=LP,lx=0;function TC(){x.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??bA()),document.body.insertAdjacentElement("beforeend",t[1]??bA()),lx++,()=>{lx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),lx--}},[])}function bA(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var ux="focusScope.autoFocusOnMount",fx="focusScope.autoFocusOnUnmount",wA={bubbles:!1,cancelable:!0},yK="FocusScope",vv=x.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,c]=x.useState(null),l=Mr(s),u=Mr(i),f=x.useRef(null),d=We(e,p=>c(p)),h=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let p=function(m){if(h.paused||!a)return;const k=m.target;a.contains(k)?f.current=k:Oo(f.current,{select:!0})},b=function(m){if(h.paused||!a)return;const k=m.relatedTarget;k!==null&&(a.contains(k)||Oo(f.current,{select:!0}))},g=function(m){if(document.activeElement===document.body)for(const A of m)A.removedNodes.length>0&&Oo(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const v=new MutationObserver(g);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),v.disconnect()}}},[n,a,h.paused]),x.useEffect(()=>{if(a){CA.add(h);const p=document.activeElement;if(!a.contains(p)){const g=new CustomEvent(ux,wA);a.addEventListener(ux,l),a.dispatchEvent(g),g.defaultPrevented||(gK(wK(FP(a)),{select:!0}),document.activeElement===p&&Oo(a))}return()=>{a.removeEventListener(ux,l),setTimeout(()=>{const g=new CustomEvent(fx,wA);a.addEventListener(fx,u),a.dispatchEvent(g),g.defaultPrevented||Oo(p??document.body,{select:!0}),a.removeEventListener(fx,u),CA.remove(h)},0)}}},[a,l,u,h]);const y=x.useCallback(p=>{if(!r&&!n||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(b&&g){const v=p.currentTarget,[m,k]=vK(v);m&&k?!p.shiftKey&&g===k?(p.preventDefault(),r&&Oo(m,{select:!0})):p.shiftKey&&g===m&&(p.preventDefault(),r&&Oo(k,{select:!0})):g===v&&p.preventDefault()}},[r,n,h.paused]);return C.jsx(Se.div,{tabIndex:-1,...o,ref:d,onKeyDown:y})});vv.displayName=yK;function gK(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Oo(n,{select:e}),document.activeElement!==r)return}function vK(t){const e=FP(t),r=EA(e,t),n=EA(e.reverse(),t);return[r,n]}function FP(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function EA(t,e){for(const r of t)if(!mK(r,{upTo:e}))return r}function mK(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function xK(t){return t instanceof HTMLInputElement&&"select"in t}function Oo(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&xK(t)&&e&&t.select()}}var CA=bK();function bK(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=kA(t,e),t.unshift(e)},remove(e){var r;t=kA(t,e),(r=t[0])==null||r.resume()}}}function kA(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function wK(t){return t.filter(e=>e.tagName!=="A")}const EK=["top","right","bottom","left"],ai=Math.min,Sn=Math.max,Jy=Math.round,rp=Math.floor,Pa=t=>({x:t,y:t}),CK={left:"right",right:"left",bottom:"top",top:"bottom"},kK={start:"end",end:"start"};function pw(t,e,r){return Sn(t,ai(e,r))}function co(t,e){return typeof t=="function"?t(e):t}function lo(t){return t.split("-")[0]}function yd(t){return t.split("-")[1]}function IC(t){return t==="x"?"y":"x"}function PC(t){return t==="y"?"height":"width"}function Oa(t){return["top","bottom"].includes(lo(t))?"y":"x"}function OC(t){return IC(Oa(t))}function SK(t,e,r){r===void 0&&(r=!1);const n=yd(t),s=OC(t),i=PC(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Yy(o)),[o,Yy(o)]}function AK(t){const e=Yy(t);return[yw(t),e,yw(e)]}function yw(t){return t.replace(/start|end/g,e=>kK[e])}function TK(t,e,r){const n=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:n:e?n:s;case"left":case"right":return e?i:o;default:return[]}}function IK(t,e,r,n){const s=yd(t);let i=TK(lo(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(yw)))),i}function Yy(t){return t.replace(/left|right|bottom|top/g,e=>CK[e])}function PK(t){return{top:0,right:0,bottom:0,left:0,...t}}function UP(t){return typeof t!="number"?PK(t):{top:t,right:t,bottom:t,left:t}}function Xy(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function SA(t,e,r){let{reference:n,floating:s}=t;const i=Oa(e),o=OC(e),a=PC(o),c=lo(e),l=i==="y",u=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,d=n[a]/2-s[a]/2;let h;switch(c){case"top":h={x:u,y:n.y-s.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-s.width,y:f};break;default:h={x:n.x,y:n.y}}switch(yd(e)){case"start":h[o]-=d*(r&&l?-1:1);break;case"end":h[o]+=d*(r&&l?-1:1);break}return h}const OK=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:f}=SA(l,n,c),d=n,h={},y=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=co(t,e)||{};if(l==null)return{};const f=UP(u),d={x:r,y:n},h=OC(s),y=PC(h),p=await o.getDimensions(l),b=h==="y",g=b?"top":"left",v=b?"bottom":"right",m=b?"clientHeight":"clientWidth",k=i.reference[y]+i.reference[h]-d[h]-i.floating[y],A=d[h]-i.reference[h],P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=P?P[m]:0;(!R||!await(o.isElement==null?void 0:o.isElement(P)))&&(R=a.floating[m]||i.floating[y]);const N=k/2-A/2,V=R/2-p[y]/2-1,F=ai(f[g],V),X=ai(f[v],V),re=F,le=R-p[y]-X,ee=R/2-p[y]/2+N,B=pw(re,ee,le),G=!c.arrow&&yd(s)!=null&&ee!==B&&i.reference[y]/2-(eeee<=0)){var X,re;const ee=(((X=i.flip)==null?void 0:X.index)||0)+1,B=R[ee];if(B)return{data:{index:ee,overflows:F},reset:{placement:B}};let G=(re=F.filter(Z=>Z.overflows[0]<=0).sort((Z,E)=>Z.overflows[1]-E.overflows[1])[0])==null?void 0:re.placement;if(!G)switch(h){case"bestFit":{var le;const Z=(le=F.filter(E=>{if(P){const S=Oa(E.placement);return S===v||S==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(S=>S>0).reduce((S,O)=>S+O,0)]).sort((E,S)=>E[1]-S[1])[0])==null?void 0:le[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function AA(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function TA(t){return EK.some(e=>t[e]>=0)}const _K=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=co(t,e);switch(n){case"referenceHidden":{const i=await d0(e,{...s,elementContext:"reference"}),o=AA(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:TA(o)}}}case"escaped":{const i=await d0(e,{...s,altBoundary:!0}),o=AA(i,r.floating);return{data:{escapedOffsets:o,escaped:TA(o)}}}default:return{}}}}};async function MK(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=lo(r),a=yd(r),c=Oa(r)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,f=co(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}const DK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await MK(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},BK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:g,y:v}=b;return{x:g,y:v}}},...c}=co(t,e),l={x:r,y:n},u=await d0(e,c),f=Oa(lo(s)),d=IC(f);let h=l[d],y=l[f];if(i){const b=d==="y"?"top":"left",g=d==="y"?"bottom":"right",v=h+u[b],m=h-u[g];h=pw(v,h,m)}if(o){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=y+u[b],m=y-u[g];y=pw(v,y,m)}const p=a.fn({...e,[d]:h,[f]:y});return{...p,data:{x:p.x-r,y:p.y-n}}}}},LK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=co(t,e),u={x:r,y:n},f=Oa(s),d=IC(f);let h=u[d],y=u[f];const p=co(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const m=d==="y"?"height":"width",k=i.reference[d]-i.floating[m]+b.mainAxis,A=i.reference[d]+i.reference[m]-b.mainAxis;hA&&(h=A)}if(l){var g,v;const m=d==="y"?"width":"height",k=["top","left"].includes(lo(s)),A=i.reference[f]-i.floating[m]+(k&&((g=o.offset)==null?void 0:g[f])||0)+(k?0:b.crossAxis),P=i.reference[f]+i.reference[m]+(k?0:((v=o.offset)==null?void 0:v[f])||0)-(k?b.crossAxis:0);yP&&(y=P)}return{[d]:h,[f]:y}}}},jK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:s,elements:i}=e,{apply:o=()=>{},...a}=co(t,e),c=await d0(e,a),l=lo(r),u=yd(r),f=Oa(r)==="y",{width:d,height:h}=n.floating;let y,p;l==="top"||l==="bottom"?(y=l,p=u===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,y=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,g=d-c.left-c.right,v=ai(h-c[y],b),m=ai(d-c[p],g),k=!e.middlewareData.shift;let A=v,P=m;if(f?P=u||k?ai(m,g):g:A=u||k?ai(v,b):b,k&&!u){const N=Sn(c.left,0),V=Sn(c.right,0),F=Sn(c.top,0),X=Sn(c.bottom,0);f?P=d-2*(N!==0||V!==0?N+V:Sn(c.left,c.right)):A=h-2*(F!==0||X!==0?F+X:Sn(c.top,c.bottom))}await o({...e,availableWidth:P,availableHeight:A});const R=await s.getDimensions(i.floating);return d!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function gd(t){return $P(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function po(t){var e;return(e=($P(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function $P(t){return t instanceof Node||t instanceof Pn(t).Node}function gi(t){return t instanceof Element||t instanceof Pn(t).Element}function vi(t){return t instanceof HTMLElement||t instanceof Pn(t).HTMLElement}function IA(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}function f1(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=Ms(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function FK(t){return["table","td","th"].includes(gd(t))}function mv(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function RC(t){const e=NC(),r=Ms(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function UK(t){let e=Ra(t);for(;vi(e)&&!$f(e);){if(mv(e))return null;if(RC(e))return e;e=Ra(e)}return null}function NC(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $f(t){return["html","body","#document"].includes(gd(t))}function Ms(t){return Pn(t).getComputedStyle(t)}function xv(t){return gi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ra(t){if(gd(t)==="html")return t;const e=t.assignedSlot||t.parentNode||IA(t)&&t.host||po(t);return IA(e)?e.host:e}function WP(t){const e=Ra(t);return $f(e)?t.ownerDocument?t.ownerDocument.body:t.body:vi(e)&&f1(e)?e:WP(e)}function h0(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=WP(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Pn(s);return i?e.concat(o,o.visualViewport||[],f1(s)?s:[],o.frameElement&&r?h0(o.frameElement):[]):e.concat(s,h0(s,[],r))}function VP(t){const e=Ms(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=vi(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=Jy(r)!==i||Jy(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function _C(t){return gi(t)?t:t.contextElement}function Tu(t){const e=_C(t);if(!vi(e))return Pa(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=VP(e);let o=(i?Jy(r.width):r.width)/n,a=(i?Jy(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const $K=Pa(0);function zP(t){const e=Pn(t);return!NC()||!e.visualViewport?$K:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function WK(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Pn(t)?!1:e}function fl(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=_C(t);let o=Pa(1);e&&(n?gi(n)&&(o=Tu(n)):o=Tu(t));const a=WK(i,r,n)?zP(i):Pa(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,f=s.height/o.y;if(i){const d=Pn(i),h=n&&gi(n)?Pn(n):n;let y=d,p=y.frameElement;for(;p&&n&&h!==y;){const b=Tu(p),g=p.getBoundingClientRect(),v=Ms(p),m=g.left+(p.clientLeft+parseFloat(v.paddingLeft))*b.x,k=g.top+(p.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=m,l+=k,y=Pn(p),p=y.frameElement}}return Xy({width:u,height:f,x:c,y:l})}function VK(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=po(n),a=e?mv(e.floating):!1;if(n===o||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Pa(1);const u=Pa(0),f=vi(n);if((f||!f&&!i)&&((gd(n)!=="body"||f1(o))&&(c=xv(n)),vi(n))){const d=fl(n);l=Tu(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function zK(t){return Array.from(t.getClientRects())}function HP(t){return fl(po(t)).left+xv(t).scrollLeft}function HK(t){const e=po(t),r=xv(t),n=t.ownerDocument.body,s=Sn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Sn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+HP(t);const a=-r.scrollTop;return Ms(n).direction==="rtl"&&(o+=Sn(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function GK(t,e){const r=Pn(t),n=po(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=NC();(!l||l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function qK(t,e){const r=fl(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=vi(t)?Tu(t):Pa(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function PA(t,e,r){let n;if(e==="viewport")n=GK(t,r);else if(e==="document")n=HK(po(t));else if(gi(e))n=qK(e,r);else{const s=zP(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Xy(n)}function GP(t,e){const r=Ra(t);return r===e||!gi(r)||$f(r)?!1:Ms(r).position==="fixed"||GP(r,e)}function KK(t,e){const r=e.get(t);if(r)return r;let n=h0(t,[],!1).filter(a=>gi(a)&&gd(a)!=="body"),s=null;const i=Ms(t).position==="fixed";let o=i?Ra(t):t;for(;gi(o)&&!$f(o);){const a=Ms(o),c=RC(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||f1(o)&&!c&&GP(t,o))?n=n.filter(u=>u!==o):s=a,o=Ra(o)}return e.set(t,n),n}function QK(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?mv(e)?[]:KK(e,this._c):[].concat(r),n],a=o[0],c=o.reduce((l,u)=>{const f=PA(e,u,s);return l.top=Sn(f.top,l.top),l.right=ai(f.right,l.right),l.bottom=ai(f.bottom,l.bottom),l.left=Sn(f.left,l.left),l},PA(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function JK(t){const{width:e,height:r}=VP(t);return{width:e,height:r}}function YK(t,e,r){const n=vi(e),s=po(e),i=r==="fixed",o=fl(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=Pa(0);if(n||!n&&!i)if((gd(e)!=="body"||f1(s))&&(a=xv(e)),n){const f=fl(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else s&&(c.x=HP(s));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function dx(t){return Ms(t).position==="static"}function OA(t,e){return!vi(t)||Ms(t).position==="fixed"?null:e?e(t):t.offsetParent}function qP(t,e){const r=Pn(t);if(mv(t))return r;if(!vi(t)){let s=Ra(t);for(;s&&!$f(s);){if(gi(s)&&!dx(s))return s;s=Ra(s)}return r}let n=OA(t,e);for(;n&&FK(n)&&dx(n);)n=OA(n,e);return n&&$f(n)&&dx(n)&&!RC(n)?r:n||UK(t)||r}const XK=async function(t){const e=this.getOffsetParent||qP,r=this.getDimensions,n=await r(t.floating);return{reference:YK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ZK(t){return Ms(t).direction==="rtl"}const eQ={convertOffsetParentRelativeRectToViewportRelativeRect:VK,getDocumentElement:po,getClippingRect:QK,getOffsetParent:qP,getElementRects:XK,getClientRects:zK,getDimensions:JK,getScale:Tu,isElement:gi,isRTL:ZK};function tQ(t,e){let r=null,n;const s=po(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const h=rp(u),y=rp(s.clientWidth-(l+f)),p=rp(s.clientHeight-(u+d)),b=rp(l),v={rootMargin:-h+"px "+-y+"px "+-p+"px "+-b+"px",threshold:Sn(0,ai(1,c))||1};let m=!0;function k(A){const P=A[0].intersectionRatio;if(P!==c){if(!m)return o();P?o(!1,P):n=setTimeout(()=>{o(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(k,{...v,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,v)}r.observe(t)}return o(!0),i}function rQ(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=_C(t),u=s||i?[...l?h0(l):[],...h0(e)]:[];u.forEach(g=>{s&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const f=l&&a?tQ(l,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(g=>{let[v]=g;v&&v.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(e)})),r()}),l&&!c&&h.observe(l),h.observe(e));let y,p=c?fl(t):null;c&&b();function b(){const g=fl(t);p&&(g.x!==p.x||g.y!==p.y||g.width!==p.width||g.height!==p.height)&&r(),p=g,y=requestAnimationFrame(b)}return r(),()=>{var g;u.forEach(v=>{s&&v.removeEventListener("scroll",r),i&&v.removeEventListener("resize",r)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,c&&cancelAnimationFrame(y)}}const nQ=DK,sQ=BK,iQ=NK,oQ=jK,aQ=_K,RA=RK,cQ=LK,lQ=(t,e,r)=>{const n=new Map,s={platform:eQ,...r},i={...s.platform,_c:n};return OK(t,e,{...s,platform:i})};var zp=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Zy(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Zy(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!Zy(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function KP(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function NA(t,e){const r=KP(t);return Math.round(e*r)/r}function _A(t){const e=x.useRef(t);return zp(()=>{e.current=t}),e}function uQ(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,f]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=x.useState(n);Zy(d,n)||h(n);const[y,p]=x.useState(null),[b,g]=x.useState(null),v=x.useCallback(Z=>{Z!==P.current&&(P.current=Z,p(Z))},[]),m=x.useCallback(Z=>{Z!==R.current&&(R.current=Z,g(Z))},[]),k=i||y,A=o||b,P=x.useRef(null),R=x.useRef(null),N=x.useRef(u),V=c!=null,F=_A(c),X=_A(s),re=x.useCallback(()=>{if(!P.current||!R.current)return;const Z={placement:e,strategy:r,middleware:d};X.current&&(Z.platform=X.current),lQ(P.current,R.current,Z).then(E=>{const S={...E,isPositioned:!0};le.current&&!Zy(N.current,S)&&(N.current=S,ja.flushSync(()=>{f(S)}))})},[d,e,r,X]);zp(()=>{l===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[l]);const le=x.useRef(!1);zp(()=>(le.current=!0,()=>{le.current=!1}),[]),zp(()=>{if(k&&(P.current=k),A&&(R.current=A),k&&A){if(F.current)return F.current(k,A,re);re()}},[k,A,re,F,V]);const ee=x.useMemo(()=>({reference:P,floating:R,setReference:v,setFloating:m}),[v,m]),B=x.useMemo(()=>({reference:k,floating:A}),[k,A]),G=x.useMemo(()=>{const Z={position:r,left:0,top:0};if(!B.floating)return Z;const E=NA(B.floating,u.x),S=NA(B.floating,u.y);return a?{...Z,transform:"translate("+E+"px, "+S+"px)",...KP(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:E,top:S}},[r,a,B.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:re,refs:ee,elements:B,floatingStyles:G}),[u,re,ee,B,G])}const fQ=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?RA({element:n.current,padding:s}).fn(r):{}:n?RA({element:n,padding:s}).fn(r):{}}}},dQ=(t,e)=>({...nQ(t),options:[t,e]}),hQ=(t,e)=>({...sQ(t),options:[t,e]}),pQ=(t,e)=>({...cQ(t),options:[t,e]}),yQ=(t,e)=>({...iQ(t),options:[t,e]}),gQ=(t,e)=>({...oQ(t),options:[t,e]}),vQ=(t,e)=>({...aQ(t),options:[t,e]}),mQ=(t,e)=>({...fQ(t),options:[t,e]});var xQ="Arrow",QP=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return C.jsx(Se.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});QP.displayName=xQ;var bQ=QP,MC="Popper",[JP,vd]=Br(MC),[wQ,YP]=JP(MC),XP=t=>{const{__scopePopper:e,children:r}=t,[n,s]=x.useState(null);return C.jsx(wQ,{scope:e,anchor:n,onAnchorChange:s,children:r})};XP.displayName=MC;var ZP="PopperAnchor",eO=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=YP(ZP,r),o=x.useRef(null),a=We(e,o);return x.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:C.jsx(Se.div,{...s,ref:a})});eO.displayName=ZP;var DC="PopperContent",[EQ,CQ]=JP(DC),tO=x.forwardRef((t,e)=>{var r,n,s,i,o,a;const{__scopePopper:c,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:k,...A}=t,P=YP(DC,c),[R,N]=x.useState(null),V=We(e,_e=>N(_e)),[F,X]=x.useState(null),re=yv(F),le=(re==null?void 0:re.width)??0,ee=(re==null?void 0:re.height)??0,B=l+(f!=="center"?"-"+f:""),G=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(p)?p:[p],E=Z.length>0,S={padding:G,boundary:Z.filter(SQ),altBoundary:E},{refs:O,floatingStyles:D,placement:L,isPositioned:W,middlewareData:q}=uQ({strategy:"fixed",placement:B,whileElementsMounted:(..._e)=>rQ(..._e,{animationFrame:m==="always"}),elements:{reference:P.anchor},middleware:[dQ({mainAxis:u+ee,alignmentAxis:d}),y&&hQ({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?pQ():void 0,...S}),y&&yQ({...S}),gQ({...S,apply:({elements:_e,rects:xt,availableWidth:tn,availableHeight:wr})=>{const{width:U,height:se}=xt.reference,ae=_e.floating.style;ae.setProperty("--radix-popper-available-width",`${tn}px`),ae.setProperty("--radix-popper-available-height",`${wr}px`),ae.setProperty("--radix-popper-anchor-width",`${U}px`),ae.setProperty("--radix-popper-anchor-height",`${se}px`)}}),F&&mQ({element:F,padding:h}),AQ({arrowWidth:le,arrowHeight:ee}),v&&vQ({strategy:"referenceHidden",...S})]}),[te,J]=sO(L),$=Mr(k);br(()=>{W&&($==null||$())},[W,$]);const K=(r=q.arrow)==null?void 0:r.x,ue=(n=q.arrow)==null?void 0:n.y,he=((s=q.arrow)==null?void 0:s.centerOffset)!==0,[oe,ke]=x.useState();return br(()=>{R&&ke(window.getComputedStyle(R).zIndex)},[R]),C.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:W?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(o=q.transformOrigin)==null?void 0:o.y].join(" "),...((a=q.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:C.jsx(EQ,{scope:c,placedSide:te,onArrowChange:X,arrowX:K,arrowY:ue,shouldHideArrow:he,children:C.jsx(Se.div,{"data-side":te,"data-align":J,...A,ref:V,style:{...A.style,animation:W?void 0:"none"}})})})});tO.displayName=DC;var rO="PopperArrow",kQ={top:"bottom",right:"left",bottom:"top",left:"right"},nO=x.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=CQ(rO,n),o=kQ[i.placedSide];return C.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:C.jsx(bQ,{...s,ref:r,style:{...s.style,display:"block"}})})});nO.displayName=rO;function SQ(t){return t!==null}var AQ=t=>({name:"transformOrigin",options:t,fn(e){var r,n,s;const{placement:i,rects:o,middlewareData:a}=e,l=((r=a.arrow)==null?void 0:r.centerOffset)!==0,u=l?0:t.arrowWidth,f=l?0:t.arrowHeight,[d,h]=sO(i),y={start:"0%",center:"50%",end:"100%"}[h],p=(((n=a.arrow)==null?void 0:n.x)??0)+u/2,b=(((s=a.arrow)==null?void 0:s.y)??0)+f/2;let g="",v="";return d==="bottom"?(g=l?y:`${p}px`,v=`${-f}px`):d==="top"?(g=l?y:`${p}px`,v=`${o.floating.height+f}px`):d==="right"?(g=`${-f}px`,v=l?y:`${b}px`):d==="left"&&(g=`${o.floating.width+f}px`,v=l?y:`${b}px`),{data:{x:g,y:v}}}});function sO(t){const[e,r="center"]=t.split("-");return[e,r]}var BC=XP,LC=eO,jC=tO,FC=nO,TQ="Portal",d1=x.forwardRef((t,e)=>{var r;const{container:n,...s}=t,[i,o]=x.useState(!1);br(()=>o(!0),[]);const a=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return a?TW.createPortal(C.jsx(Se.div,{...s,ref:e}),a):null});d1.displayName=TQ;var hx="rovingFocusGroup.onEntryFocus",IQ={bubbles:!1,cancelable:!0},bv="RovingFocusGroup",[gw,iO,PQ]=gv(bv),[OQ,md]=Br(bv,[PQ]),[RQ,NQ]=OQ(bv),oO=x.forwardRef((t,e)=>C.jsx(gw.Provider,{scope:t.__scopeRovingFocusGroup,children:C.jsx(gw.Slot,{scope:t.__scopeRovingFocusGroup,children:C.jsx(_Q,{...t,ref:e})})}));oO.displayName=bv;var _Q=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...f}=t,d=x.useRef(null),h=We(e,d),y=u1(i),[p=null,b]=as({prop:o,defaultProp:a,onChange:c}),[g,v]=x.useState(!1),m=Mr(l),k=iO(r),A=x.useRef(!1),[P,R]=x.useState(0);return x.useEffect(()=>{const N=d.current;if(N)return N.addEventListener(hx,m),()=>N.removeEventListener(hx,m)},[m]),C.jsx(RQ,{scope:r,orientation:n,dir:y,loop:s,currentTabStopId:p,onItemFocus:x.useCallback(N=>b(N),[b]),onItemShiftTab:x.useCallback(()=>v(!0),[]),onFocusableItemAdd:x.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:x.useCallback(()=>R(N=>N-1),[]),children:C.jsx(Se.div,{tabIndex:g||P===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:ce(t.onMouseDown,()=>{A.current=!0}),onFocus:ce(t.onFocus,N=>{const V=!A.current;if(N.target===N.currentTarget&&V&&!g){const F=new CustomEvent(hx,IQ);if(N.currentTarget.dispatchEvent(F),!F.defaultPrevented){const X=k().filter(G=>G.focusable),re=X.find(G=>G.active),le=X.find(G=>G.id===p),B=[re,le,...X].filter(Boolean).map(G=>G.ref.current);lO(B,u)}}A.current=!1}),onBlur:ce(t.onBlur,()=>v(!1))})})}),aO="RovingFocusGroupItem",cO=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...o}=t,a=rs(),c=i||a,l=NQ(aO,r),u=l.currentTabStopId===c,f=iO(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=l;return x.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),C.jsx(gw.ItemSlot,{scope:r,id:c,focusable:n,active:s,children:C.jsx(Se.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...o,ref:e,onMouseDown:ce(t.onMouseDown,y=>{n?l.onItemFocus(c):y.preventDefault()}),onFocus:ce(t.onFocus,()=>l.onItemFocus(c)),onKeyDown:ce(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const p=BQ(y,l.orientation,l.dir);if(p!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let g=f().filter(v=>v.focusable).map(v=>v.ref.current);if(p==="last")g.reverse();else if(p==="prev"||p==="next"){p==="prev"&&g.reverse();const v=g.indexOf(y.currentTarget);g=l.loop?LQ(g,v+1):g.slice(v+1)}setTimeout(()=>lO(g))}})})})});cO.displayName=aO;var MQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function DQ(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function BQ(t,e,r){const n=DQ(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return MQ[n]}function lO(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function LQ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var UC=oO,$C=cO,jQ=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Rl=new WeakMap,np=new WeakMap,sp={},px=0,uO=function(t){return t&&(t.host||uO(t.parentNode))},FQ=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=uO(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},UQ=function(t,e,r,n){var s=FQ(e,Array.isArray(t)?t:[t]);sp[r]||(sp[r]=new WeakMap);var i=sp[r],o=[],a=new Set,c=new Set(s),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};s.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(n),y=h!==null&&h!=="false",p=(Rl.get(d)||0)+1,b=(i.get(d)||0)+1;Rl.set(d,p),i.set(d,b),o.push(d),p===1&&y&&np.set(d,!0),b===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return u(e),a.clear(),px++,function(){o.forEach(function(f){var d=Rl.get(f)-1,h=i.get(f)-1;Rl.set(f,d),i.set(f,h),d||(np.has(f)||f.removeAttribute(n),np.delete(f)),h||f.removeAttribute(r)}),px--,px||(Rl=new WeakMap,Rl=new WeakMap,np=new WeakMap,sp={})}},WC=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=jQ(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),UQ(n,s,r,"aria-hidden")):function(){return null}},oi=function(){return oi=Object.assign||function(e){for(var r,n=1,s=arguments.length;n"u")return nJ;var e=sJ(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},oJ=pO(),Iu="data-scroll-locked",aJ=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` + .`.concat(WQ,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(a,"px ").concat(n,`; + } + body[`).concat(Iu,`] { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(Hp,` { + right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Gp,` { + margin-right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Hp," .").concat(Hp,` { + right: 0 `).concat(n,`; + } + + .`).concat(Gp," .").concat(Gp,` { + margin-right: 0 `).concat(n,`; + } + + body[`).concat(Iu,`] { + `).concat(VQ,": ").concat(a,`px; + } +`)},DA=function(){var t=parseInt(document.body.getAttribute(Iu)||"0",10);return isFinite(t)?t:0},cJ=function(){x.useEffect(function(){return document.body.setAttribute(Iu,(DA()+1).toString()),function(){var t=DA()-1;t<=0?document.body.removeAttribute(Iu):document.body.setAttribute(Iu,t.toString())}},[])},lJ=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;cJ();var i=x.useMemo(function(){return iJ(s)},[s]);return x.createElement(oJ,{styles:aJ(i,!e,s,r?"":"!important")})},vw=!1;if(typeof window<"u")try{var ip=Object.defineProperty({},"passive",{get:function(){return vw=!0,!0}});window.addEventListener("test",ip,ip),window.removeEventListener("test",ip,ip)}catch{vw=!1}var Nl=vw?{passive:!1}:!1,uJ=function(t){return t.tagName==="TEXTAREA"},yO=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!uJ(t)&&r[e]==="visible")},fJ=function(t){return yO(t,"overflowY")},dJ=function(t){return yO(t,"overflowX")},BA=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=gO(t,n);if(s){var i=vO(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hJ=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},pJ=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},gO=function(t,e){return t==="v"?fJ(e):dJ(e)},vO=function(t,e){return t==="v"?hJ(e):pJ(e)},yJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},gJ=function(t,e,r,n,s){var i=yJ(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,c=e.contains(a),l=!1,u=o>0,f=0,d=0;do{var h=vO(t,a),y=h[0],p=h[1],b=h[2],g=p-b-i*y;(y||g)&&gO(t,a)&&(f+=g,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!s)||!u&&(Math.abs(d)<1||!s))&&(l=!0),l},op=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},LA=function(t){return[t.deltaX,t.deltaY]},jA=function(t){return t&&"current"in t?t.current:t},vJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},mJ=function(t){return` + .block-interactivity-`.concat(t,` {pointer-events: none;} + .allow-interactivity-`).concat(t,` {pointer-events: all;} +`)},xJ=0,_l=[];function bJ(t){var e=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),s=x.useState(xJ++)[0],i=x.useState(pO)[0],o=x.useRef(t);x.useEffect(function(){o.current=t},[t]),x.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var p=$Q([t.lockRef.current],(t.shards||[]).map(jA)).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=x.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var g=op(p),v=r.current,m="deltaX"in p?p.deltaX:v[0]-g[0],k="deltaY"in p?p.deltaY:v[1]-g[1],A,P=p.target,R=Math.abs(m)>Math.abs(k)?"h":"v";if("touches"in p&&R==="h"&&P.type==="range")return!1;var N=BA(R,P);if(!N)return!0;if(N?A=R:(A=R==="v"?"h":"v",N=BA(R,P)),!N)return!1;if(!n.current&&"changedTouches"in p&&(m||k)&&(n.current=A),!A)return!0;var V=n.current||A;return gJ(V,b,p,V==="h"?m:k,!0)},[]),c=x.useCallback(function(p){var b=p;if(!(!_l.length||_l[_l.length-1]!==i)){var g="deltaY"in b?LA(b):op(b),v=e.current.filter(function(A){return A.name===b.type&&(A.target===b.target||b.target===A.shadowParent)&&vJ(A.delta,g)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var m=(o.current.shards||[]).map(jA).filter(Boolean).filter(function(A){return A.contains(b.target)}),k=m.length>0?a(b,m[0]):!o.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),l=x.useCallback(function(p,b,g,v){var m={name:p,delta:b,target:g,should:v,shadowParent:wJ(g)};e.current.push(m),setTimeout(function(){e.current=e.current.filter(function(k){return k!==m})},1)},[]),u=x.useCallback(function(p){r.current=op(p),n.current=void 0},[]),f=x.useCallback(function(p){l(p.type,LA(p),p.target,a(p,t.lockRef.current))},[]),d=x.useCallback(function(p){l(p.type,op(p),p.target,a(p,t.lockRef.current))},[]);x.useEffect(function(){return _l.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Nl),document.addEventListener("touchmove",c,Nl),document.addEventListener("touchstart",u,Nl),function(){_l=_l.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Nl),document.removeEventListener("touchmove",c,Nl),document.removeEventListener("touchstart",u,Nl)}},[]);var h=t.removeScrollBar,y=t.inert;return x.createElement(x.Fragment,null,y?x.createElement(i,{styles:mJ(s)}):null,h?x.createElement(lJ,{gapMode:t.gapMode}):null)}function wJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const EJ=JQ(hO,bJ);var Ev=x.forwardRef(function(t,e){return x.createElement(wv,oi({},t,{ref:e,sideCar:EJ}))});Ev.classNames=wv.classNames;var mw=["Enter"," "],CJ=["ArrowDown","PageUp","Home"],mO=["ArrowUp","PageDown","End"],kJ=[...CJ,...mO],SJ={ltr:[...mw,"ArrowRight"],rtl:[...mw,"ArrowLeft"]},AJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},h1="Menu",[p0,TJ,IJ]=gv(h1),[Tl,xO]=Br(h1,[IJ,vd,md]),Cv=vd(),bO=md(),[PJ,Il]=Tl(h1),[OJ,p1]=Tl(h1),wO=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:s,onOpenChange:i,modal:o=!0}=t,a=Cv(e),[c,l]=x.useState(null),u=x.useRef(!1),f=Mr(i),d=u1(s);return x.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),C.jsx(BC,{...a,children:C.jsx(PJ,{scope:e,open:r,onOpenChange:f,content:c,onContentChange:l,children:C.jsx(OJ,{scope:e,onClose:x.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:o,children:n})})})};wO.displayName=h1;var RJ="MenuAnchor",VC=x.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=Cv(r);return C.jsx(LC,{...s,...n,ref:e})});VC.displayName=RJ;var zC="MenuPortal",[NJ,EO]=Tl(zC,{forceMount:void 0}),CO=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:s}=t,i=Il(zC,e);return C.jsx(NJ,{scope:e,forceMount:r,children:C.jsx(Xr,{present:r||i.open,children:C.jsx(d1,{asChild:!0,container:s,children:n})})})};CO.displayName=zC;var ns="MenuContent",[_J,HC]=Tl(ns),kO=x.forwardRef((t,e)=>{const r=EO(ns,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Il(ns,t.__scopeMenu),o=p1(ns,t.__scopeMenu);return C.jsx(p0.Provider,{scope:t.__scopeMenu,children:C.jsx(Xr,{present:n||i.open,children:C.jsx(p0.Slot,{scope:t.__scopeMenu,children:o.modal?C.jsx(MJ,{...s,ref:e}):C.jsx(DJ,{...s,ref:e})})})})}),MJ=x.forwardRef((t,e)=>{const r=Il(ns,t.__scopeMenu),n=x.useRef(null),s=We(e,n);return x.useEffect(()=>{const i=n.current;if(i)return WC(i)},[]),C.jsx(GC,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),DJ=x.forwardRef((t,e)=>{const r=Il(ns,t.__scopeMenu);return C.jsx(GC,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),GC=x.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:y,...p}=t,b=Il(ns,r),g=p1(ns,r),v=Cv(r),m=bO(r),k=TJ(r),[A,P]=x.useState(null),R=x.useRef(null),N=We(e,R,b.onContentChange),V=x.useRef(0),F=x.useRef(""),X=x.useRef(0),re=x.useRef(null),le=x.useRef("right"),ee=x.useRef(0),B=y?Ev:x.Fragment,G=y?{as:ul,allowPinchZoom:!0}:void 0,Z=S=>{var O,D;const L=F.current+S,W=k().filter(ue=>!ue.disabled),q=document.activeElement,te=(O=W.find(ue=>ue.ref.current===q))==null?void 0:O.textValue,J=W.map(ue=>ue.textValue),$=qJ(J,L,te),K=(D=W.find(ue=>ue.textValue===$))==null?void 0:D.ref.current;(function ue(he){F.current=he,window.clearTimeout(V.current),he!==""&&(V.current=window.setTimeout(()=>ue(""),1e3))})(L),K&&setTimeout(()=>K.focus())};x.useEffect(()=>()=>window.clearTimeout(V.current),[]),TC();const E=x.useCallback(S=>{var O,D;return le.current===((O=re.current)==null?void 0:O.side)&&QJ(S,(D=re.current)==null?void 0:D.area)},[]);return C.jsx(_J,{scope:r,searchRef:F,onItemEnter:x.useCallback(S=>{E(S)&&S.preventDefault()},[E]),onItemLeave:x.useCallback(S=>{var O;E(S)||((O=R.current)==null||O.focus(),P(null))},[E]),onTriggerLeave:x.useCallback(S=>{E(S)&&S.preventDefault()},[E]),pointerGraceTimerRef:X,onPointerGraceIntentChange:x.useCallback(S=>{re.current=S},[]),children:C.jsx(B,{...G,children:C.jsx(vv,{asChild:!0,trapped:s,onMountAutoFocus:ce(i,S=>{var O;S.preventDefault(),(O=R.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:C.jsx(pd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,children:C.jsx(UC,{asChild:!0,...m,dir:g.dir,orientation:"vertical",loop:n,currentTabStopId:A,onCurrentTabStopIdChange:P,onEntryFocus:ce(c,S=>{g.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:C.jsx(jC,{role:"menu","aria-orientation":"vertical","data-state":UO(b.open),"data-radix-menu-content":"",dir:g.dir,...v,...p,ref:N,style:{outline:"none",...p.style},onKeyDown:ce(p.onKeyDown,S=>{const D=S.target.closest("[data-radix-menu-content]")===S.currentTarget,L=S.ctrlKey||S.altKey||S.metaKey,W=S.key.length===1;D&&(S.key==="Tab"&&S.preventDefault(),!L&&W&&Z(S.key));const q=R.current;if(S.target!==q||!kJ.includes(S.key))return;S.preventDefault();const J=k().filter($=>!$.disabled).map($=>$.ref.current);mO.includes(S.key)&&J.reverse(),HJ(J)}),onBlur:ce(t.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(V.current),F.current="")}),onPointerMove:ce(t.onPointerMove,y0(S=>{const O=S.target,D=ee.current!==S.clientX;if(S.currentTarget.contains(O)&&D){const L=S.clientX>ee.current?"right":"left";le.current=L,ee.current=S.clientX}}))})})})})})})});kO.displayName=ns;var BJ="MenuGroup",qC=x.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return C.jsx(Se.div,{role:"group",...n,ref:e})});qC.displayName=BJ;var LJ="MenuLabel",SO=x.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return C.jsx(Se.div,{...n,ref:e})});SO.displayName=LJ;var eg="MenuItem",FA="menu.itemSelect",kv=x.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...s}=t,i=x.useRef(null),o=p1(eg,t.__scopeMenu),a=HC(eg,t.__scopeMenu),c=We(e,i),l=x.useRef(!1),u=()=>{const f=i.current;if(!r&&f){const d=new CustomEvent(FA,{bubbles:!0,cancelable:!0});f.addEventListener(FA,h=>n==null?void 0:n(h),{once:!0}),bC(f,d),d.defaultPrevented?l.current=!1:o.onClose()}};return C.jsx(AO,{...s,ref:c,disabled:r,onClick:ce(t.onClick,u),onPointerDown:f=>{var d;(d=t.onPointerDown)==null||d.call(t,f),l.current=!0},onPointerUp:ce(t.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:ce(t.onKeyDown,f=>{const d=a.searchRef.current!=="";r||d&&f.key===" "||mw.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});kv.displayName=eg;var AO=x.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...i}=t,o=HC(eg,r),a=bO(r),c=x.useRef(null),l=We(e,c),[u,f]=x.useState(!1),[d,h]=x.useState("");return x.useEffect(()=>{const y=c.current;y&&h((y.textContent??"").trim())},[i.children]),C.jsx(p0.ItemSlot,{scope:r,disabled:n,textValue:s??d,children:C.jsx($C,{asChild:!0,...a,focusable:!n,children:C.jsx(Se.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:l,onPointerMove:ce(t.onPointerMove,y0(y=>{n?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(t.onPointerLeave,y0(y=>o.onItemLeave(y))),onFocus:ce(t.onFocus,()=>f(!0)),onBlur:ce(t.onBlur,()=>f(!1))})})})}),jJ="MenuCheckboxItem",TO=x.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...s}=t;return C.jsx(NO,{scope:t.__scopeMenu,checked:r,children:C.jsx(kv,{role:"menuitemcheckbox","aria-checked":tg(r)?"mixed":r,...s,ref:e,"data-state":QC(r),onSelect:ce(s.onSelect,()=>n==null?void 0:n(tg(r)?!0:!r),{checkForDefaultPrevented:!1})})})});TO.displayName=jJ;var IO="MenuRadioGroup",[FJ,UJ]=Tl(IO,{value:void 0,onValueChange:()=>{}}),PO=x.forwardRef((t,e)=>{const{value:r,onValueChange:n,...s}=t,i=Mr(n);return C.jsx(FJ,{scope:t.__scopeMenu,value:r,onValueChange:i,children:C.jsx(qC,{...s,ref:e})})});PO.displayName=IO;var OO="MenuRadioItem",RO=x.forwardRef((t,e)=>{const{value:r,...n}=t,s=UJ(OO,t.__scopeMenu),i=r===s.value;return C.jsx(NO,{scope:t.__scopeMenu,checked:i,children:C.jsx(kv,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":QC(i),onSelect:ce(n.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,r)},{checkForDefaultPrevented:!1})})})});RO.displayName=OO;var KC="MenuItemIndicator",[NO,$J]=Tl(KC,{checked:!1}),_O=x.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...s}=t,i=$J(KC,r);return C.jsx(Xr,{present:n||tg(i.checked)||i.checked===!0,children:C.jsx(Se.span,{...s,ref:e,"data-state":QC(i.checked)})})});_O.displayName=KC;var WJ="MenuSeparator",MO=x.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return C.jsx(Se.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});MO.displayName=WJ;var VJ="MenuArrow",DO=x.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=Cv(r);return C.jsx(FC,{...s,...n,ref:e})});DO.displayName=VJ;var zJ="MenuSub",[the,BO]=Tl(zJ),th="MenuSubTrigger",LO=x.forwardRef((t,e)=>{const r=Il(th,t.__scopeMenu),n=p1(th,t.__scopeMenu),s=BO(th,t.__scopeMenu),i=HC(th,t.__scopeMenu),o=x.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:t.__scopeMenu},u=x.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return x.useEffect(()=>u,[u]),x.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),C.jsx(VC,{asChild:!0,...l,children:C.jsx(AO,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":UO(r.open),...t,ref:hv(e,s.onTriggerChange),onClick:f=>{var d;(d=t.onClick)==null||d.call(t,f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ce(t.onPointerMove,y0(f=>{i.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:ce(t.onPointerLeave,y0(f=>{var d,h;u();const y=(d=r.content)==null?void 0:d.getBoundingClientRect();if(y){const p=(h=r.content)==null?void 0:h.dataset.side,b=p==="right",g=b?-5:5,v=y[b?"left":"right"],m=y[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+g,y:f.clientY},{x:v,y:y.top},{x:m,y:y.top},{x:m,y:y.bottom},{x:v,y:y.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ce(t.onKeyDown,f=>{var d;const h=i.searchRef.current!=="";t.disabled||h&&f.key===" "||SJ[n.dir].includes(f.key)&&(r.onOpenChange(!0),(d=r.content)==null||d.focus(),f.preventDefault())})})})});LO.displayName=th;var jO="MenuSubContent",FO=x.forwardRef((t,e)=>{const r=EO(ns,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Il(ns,t.__scopeMenu),o=p1(ns,t.__scopeMenu),a=BO(jO,t.__scopeMenu),c=x.useRef(null),l=We(e,c);return C.jsx(p0.Provider,{scope:t.__scopeMenu,children:C.jsx(Xr,{present:n||i.open,children:C.jsx(p0.Slot,{scope:t.__scopeMenu,children:C.jsx(GC,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ce(t.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ce(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ce(t.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=AJ[o.dir].includes(u.key);d&&h&&(i.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});FO.displayName=jO;function UO(t){return t?"open":"closed"}function tg(t){return t==="indeterminate"}function QC(t){return tg(t)?"indeterminate":t?"checked":"unchecked"}function HJ(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function GJ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function qJ(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=GJ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function KJ(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function QJ(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return KJ(r,e)}function y0(t){return e=>e.pointerType==="mouse"?t(e):void 0}var JJ=wO,YJ=VC,XJ=CO,ZJ=kO,eY=qC,tY=SO,rY=kv,nY=TO,sY=PO,iY=RO,oY=_O,aY=MO,cY=DO,lY=LO,uY=FO,JC="DropdownMenu",[fY,rhe]=Br(JC,[xO]),Zr=xO(),[dY,$O]=fY(JC),hY=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,c=Zr(e),l=x.useRef(null),[u=!1,f]=as({prop:s,defaultProp:i,onChange:o});return C.jsx(dY,{scope:e,triggerId:rs(),triggerRef:l,contentId:rs(),open:u,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(d=>!d),[f]),modal:a,children:C.jsx(JJ,{...c,open:u,onOpenChange:f,dir:n,modal:a,children:r})})};hY.displayName=JC;var WO="DropdownMenuTrigger",pY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=t,i=$O(WO,r),o=Zr(r);return C.jsx(YJ,{asChild:!0,...o,children:C.jsx(Se.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:hv(e,i.triggerRef),onPointerDown:ce(t.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:ce(t.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});pY.displayName=WO;var yY="DropdownMenuPortal",gY=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Zr(e);return C.jsx(XJ,{...n,...r})};gY.displayName=yY;var VO="DropdownMenuContent",vY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=$O(VO,r),i=Zr(r),o=x.useRef(!1);return C.jsx(ZJ,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...n,ref:e,onCloseAutoFocus:ce(t.onCloseAutoFocus,a=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:ce(t.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!s.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vY.displayName=VO;var mY="DropdownMenuGroup",xY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(eY,{...s,...n,ref:e})});xY.displayName=mY;var bY="DropdownMenuLabel",wY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(tY,{...s,...n,ref:e})});wY.displayName=bY;var EY="DropdownMenuItem",CY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(rY,{...s,...n,ref:e})});CY.displayName=EY;var kY="DropdownMenuCheckboxItem",zO=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(nY,{...s,...n,ref:e})});zO.displayName=kY;var SY="DropdownMenuRadioGroup",AY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(sY,{...s,...n,ref:e})});AY.displayName=SY;var TY="DropdownMenuRadioItem",HO=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(iY,{...s,...n,ref:e})});HO.displayName=TY;var IY="DropdownMenuItemIndicator",GO=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(oY,{...s,...n,ref:e})});GO.displayName=IY;var PY="DropdownMenuSeparator",OY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(aY,{...s,...n,ref:e})});OY.displayName=PY;var RY="DropdownMenuArrow",NY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(cY,{...s,...n,ref:e})});NY.displayName=RY;var _Y="DropdownMenuSubTrigger",MY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(lY,{...s,...n,ref:e})});MY.displayName=_Y;var DY="DropdownMenuSubContent",BY=x.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return C.jsx(uY,{...s,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});BY.displayName=DY;var LY=zO,jY=HO,qO=GO,KO="_1k2mbvi4 _1k2mbvi3 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr1zs fyvr111g fyvr1v0 fyvr1x4 fyvr1310 fyvr130u fyvr11l8 fyvr11ow fyvr11o4 fyvr12zf fyvr11rc fyvr11m4 fyvr12wf",QO="_1k2mbvi5";const FY=({children:t})=>C.jsx(qO,{className:QO,children:t});x.forwardRef(({className:t,children:e,...r},n)=>C.jsxs(LY,{className:or(KO,t),...r,ref:n,children:[C.jsx(FY,{children:C.jsx(OP,{size:"xs"})}),C.jsx(Tt,{variant:"small",children:e})]}));x.forwardRef(({className:t,children:e,...r},n)=>C.jsxs(jY,{className:or(KO,t),...r,ref:n,children:[C.jsx(qO,{className:QO,children:C.jsx(Tt,{children:"ā€¢"})}),C.jsx(Tt,{variant:"small",children:e})]}));const YC=x.forwardRef((t,e)=>{const{icon:r,size:n="md",...s}=t;return C.jsx(Ve,{leftIcon:r,size:n,flexShrink:"0",ref:e,...s})}),UY=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var $Y="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _1hq71vk0 fyvr11eg fyvr11es fyvr11f4 fyvr11fg fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr12rf fyvr12k3 fyvr125f fyvr12cr fyvr12rx fyvr12kl fyvr125x fyvr12d9 fyvr11ow fyvr11lk fyvr11mk fyvr11nk fyvr1h4 fyvr11m4",WY=St({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"_1hq71vk7 _1hq71vk3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"_1hq71vk8 _1hq71vk4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),VY="_1hq71vka _1hq71vk9 fyvr130x fyvr130r fyvr11lw fyvr12zr fyvr1m0 fyvr1qg fyvr1o8 fyvr1so";const zY={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"};x.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:s=!1,id:i,label:o="",labelLocation:a="hidden",name:c,onValueChange:l,placeholder:u="Upload a file",validExtensions:f,...d}=t,h=x.useRef(null),y=UY(h,e),[p,b]=x.useState(null),g=m=>{const k=m.currentTarget.files;if(!k||!k[0])return;const A=k[0],P=A.name,R=A.size/1e3;b({name:P,size:R,extension:P.split(".").pop()??""}),l==null||l(A)},v=f.map(m=>zY[m]).join(",");return C.jsx(dd,{description:n,disabled:s,display:"grid",id:i??c,label:o,labelLocation:a,children:C.jsxs(Ce,{width:"full",minWidth:"0",justifyContent:p?"space-between":"flex-start",gap:"2",color:p?"text100":"text50",className:or($Y,WY({borderRadius:r})),children:[p?C.jsxs(Ce,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[C.jsx(Tt,{ellipsis:!0,children:p.name}),C.jsxs(Tt,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[p.size.toFixed(2)," kb"]})]}):C.jsx(Tt,{ellipsis:!0,children:u}),C.jsx(Ce,{accept:v,as:"input",className:VY,cursor:"pointer",disabled:s,id:i??c,name:c,onChange:g,ref:y,type:"file",...d}),p&&C.jsx(YC,{cursor:"pointer",icon:EC,size:"xs",onClick:m=>{var k;m.preventDefault(),m.stopPropagation(),(k=h.current)!=null&&k.value&&(h.current.value=""),l==null||l(null),b(null)},zIndex:"10"})]})})});var HY=St({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const xw=1e3,Pu=64,mx=Pu/2,xx=(t,e=xw)=>t%e/(xw/Pu),Ml=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let s=0,i;s>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},GY=(t,e,r)=>{const n=t%360,s=(t+120)%360,i=r%360;return{a:`hsl(${n}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${i}deg 100% 50%)`}},qY=(t,e)=>{const r=[];for(let n=0;n{const i=Pu/10+xx(n.r,xw*1.5/(s+1));return{...GY(n.a,n.b,n.c),x:xx(n.x),y:xx(n.y),r:i}})};x.memo(t=>{const{className:e,address:r,size:n="md",complexity:s=1,...i}=t,o=qY(r,s);return C.jsxs(Ce,{as:"svg",className:or(e,HY({size:n})),viewBox:`0 0 ${Pu} ${Pu}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...i,children:[C.jsxs("defs",{children:[C.jsx("clipPath",{id:"circle-clip",children:C.jsx("circle",{cx:mx,cy:mx,r:mx})}),C.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[C.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),C.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),C.jsx("feGaussianBlur",{stdDeviation:Pu/10,result:"effect1_foregroundBlur"})]}),C.jsxs("linearGradient",{id:`gradient-background-${r}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[C.jsx("stop",{offset:"0",stopColor:o[0].c}),C.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map((a,c)=>C.jsxs(x.Fragment,{children:[C.jsxs("radialGradient",{id:`gradient-primary-${r}-${c}`,children:[C.jsx("stop",{offset:"0",stopColor:a.a}),C.jsx("stop",{offset:"1",stopColor:a.b})]}),C.jsxs("radialGradient",{id:`gradient-secondary-${r}-${c}`,children:[C.jsx("stop",{offset:"0",stopColor:a.c}),C.jsx("stop",{offset:"1",stopColor:a.b})]})]},c))]}),C.jsxs("g",{clipPath:"url(#circle-clip)",children:[C.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${r})`}),C.jsx("g",{filter:"url(#blur)",children:o.map((a,c)=>C.jsxs(x.Fragment,{children:[C.jsx("circle",{fill:`url(#gradient-primary-${r}-${c})`,cx:a.x,cy:a.y,r:a.r}),C.jsx("circle",{fill:`url(#gradient-secondary-${r}-${c})`,cx:a.y,cy:a.x,r:a.r/2})]},c))})]})]})});const XC=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[s,i]=x.useState(!1),o=a=>{i(!0),r==null||r(a)};return C.jsx(Ce,{as:Au.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:s?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})};var ZC="Dialog",[JO,nhe]=Br(ZC),[KY,Fs]=JO(ZC),YO=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=x.useRef(null),c=x.useRef(null),[l=!1,u]=as({prop:n,defaultProp:s,onChange:i});return C.jsx(KY,{scope:e,triggerRef:a,contentRef:c,contentId:rs(),titleId:rs(),descriptionId:rs(),open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};YO.displayName=ZC;var XO="DialogTrigger",QY=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(XO,r),i=We(e,s.triggerRef);return C.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":rk(s.open),...n,ref:i,onClick:ce(t.onClick,s.onOpenToggle)})});QY.displayName=XO;var ek="DialogPortal",[JY,ZO]=JO(ek,{forceMount:void 0}),e9=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=Fs(ek,e);return C.jsx(JY,{scope:e,forceMount:r,children:x.Children.map(n,o=>C.jsx(Xr,{present:r||i.open,children:C.jsx(d1,{asChild:!0,container:s,children:o})}))})};e9.displayName=ek;var rg="DialogOverlay",t9=x.forwardRef((t,e)=>{const r=ZO(rg,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fs(rg,t.__scopeDialog);return i.modal?C.jsx(Xr,{present:n||i.open,children:C.jsx(YY,{...s,ref:e})}):null});t9.displayName=rg;var YY=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(rg,r);return C.jsx(Ev,{as:ul,allowPinchZoom:!0,shards:[s.contentRef],children:C.jsx(Se.div,{"data-state":rk(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),dl="DialogContent",r9=x.forwardRef((t,e)=>{const r=ZO(dl,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fs(dl,t.__scopeDialog);return C.jsx(Xr,{present:n||i.open,children:i.modal?C.jsx(XY,{...s,ref:e}):C.jsx(ZY,{...s,ref:e})})});r9.displayName=dl;var XY=x.forwardRef((t,e)=>{const r=Fs(dl,t.__scopeDialog),n=x.useRef(null),s=We(e,r.contentRef,n);return x.useEffect(()=>{const i=n.current;if(i)return WC(i)},[]),C.jsx(n9,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ce(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault())})}),ZY=x.forwardRef((t,e)=>{const r=Fs(dl,t.__scopeDialog),n=x.useRef(!1),s=x.useRef(!1);return C.jsx(n9,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var o,a;(o=t.onInteractOutside)==null||o.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),n9=x.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=Fs(dl,r),c=x.useRef(null),l=We(e,c);return TC(),C.jsxs(C.Fragment,{children:[C.jsx(vv,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:C.jsx(pd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":rk(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(rX,{titleId:a.titleId}),C.jsx(sX,{contentRef:c,descriptionId:a.descriptionId})]})]})}),tk="DialogTitle",eX=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(tk,r);return C.jsx(Se.h2,{id:s.titleId,...n,ref:e})});eX.displayName=tk;var s9="DialogDescription",tX=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(s9,r);return C.jsx(Se.p,{id:s.descriptionId,...n,ref:e})});tX.displayName=s9;var i9="DialogClose",o9=x.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fs(i9,r);return C.jsx(Se.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,()=>s.onOpenChange(!1))})});o9.displayName=i9;function rk(t){return t?"open":"closed"}var a9="DialogTitleWarning",[she,c9]=vq(a9,{contentName:dl,titleName:tk,docsSlug:"dialog"}),rX=({titleId:t})=>{const e=c9(a9),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return x.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},nX="DialogDescriptionWarning",sX=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${c9(nX).contentName}}.`;return x.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},iX=YO,oX=e9,aX=t9,cX=r9,lX=o9,uX=St({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr12g fyvr164",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),fX=St({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const dX=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:s,...i}=t;return C.jsx(Ce,{className:fX({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...i,children:C.jsx(Ce,{className:uX({direction:n}),background:"backgroundPrimary",...s,children:e})})};function hX(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function pX(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function l9(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n={};for(var s in t){var i=t[s],o=[...r,s];typeof i=="string"||typeof i=="number"||i==null?n[s]=e(i,o):typeof i=="object"&&!Array.isArray(i)?n[s]=l9(i,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function UA(t,e,r){t.style.setProperty(hX(e),r)}function $A(t,e,r){if(typeof r=="object"){var n=e;l9(r,(a,c)=>{a!=null&&UA(t,pX(n,c),String(a))})}else{var s=e;for(var i in s){var o=s[i];o!=null&&UA(t,i,s[i])}}}const nk=["dark","light"],WA="dark",yX="data-theme",VA="@sequence.theme",gX=t=>nk.includes(t),vX=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),u9=t=>t?`${VA}.${t}`:VA,mX=t=>{const e=localStorage.getItem(u9(t));return e&&nk.includes(e)?e:null},xX=()=>matchMedia("(prefers-color-scheme: light)").matches?"light":matchMedia("(prefers-color-scheme: dark)").matches?"dark":null,f9=x.createContext(null),bX=t=>{const[e,r]=x.useState(t.theme||WA);x.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),x.useEffect(()=>{const s=t.theme||mX(t.scope)||t.prefersColorScheme&&xX()||WA;r(s)},[t.theme,t.scope,t.prefersColorScheme]),x.useEffect(()=>{const s=document.querySelector(t.root||":root");s&&(gX(e)?(s.setAttribute(yX,e),$A(s,uA,{colors:qG[e]})):vX(e)&&$A(s,uA,{colors:e}),t.root&&s.classList.add("seq-root"))},[e,t.root]);const n=x.useMemo(()=>({theme:e,root:t.root,setTheme:s=>{nk.includes(s)&&(localStorage.setItem(u9(t.scope),s),r(s))}}),[e,t.root,t.scope]);return C.jsx(f9.Provider,{value:n,children:t.children})},wX=()=>{const t=x.useContext(f9);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var EX="_5b32m91 _5b32m90 fyvr11no fyvr11ow fyvr11l8 fyvr11m0 fyvr11rs fyvr1m0 fyvr1qg fyvr1so fyvr1o8",CX="_5b32m93 _5b32m92 fyvr11m0 fyvr1m0 fyvr1qg fyvr1so fyvr1o8",kX=St({defaultClassName:"_5b32m95 _5b32m94 fyvr11hg fyvr11i4 fyvr11fo fyvr11g6 fyvr11gc fyvr11gu fyvr11q0 fyvr11qg fyvr1310 fyvr130u fyvr11l8 fyvr11mc fyvr11m0 fyvr11wl fyvr1o8 fyvr1qe",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),SX="_5b32m9b _5b32m9a fyvr113s fyvr1160 fyvr1188 fyvr11ag fyvr11lw fyvr1so fyvr1m0 fyvr11rs";const AX=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:s=!1,isDismissible:i=!0,onClose:o,scroll:a=!0,size:c="lg",overlayProps:l,contentProps:u,rootProps:f={}}=t,{root:d}=wX(),[h,y]=x.useState(null);return x.useEffect(()=>{y(document.querySelector(d||"body"))},[d]),h?C.jsx(iX,{modal:!0,defaultOpen:!0,onOpenChange:o,children:C.jsx(oX,{forceMount:!0,container:h,children:C.jsxs(Ce,{...f,className:or("seq-root",EX,f==null?void 0:f.className),children:[C.jsx(Ce,{as:aX,asChild:!0,background:r,className:CX,forceMount:!0,children:C.jsx(Au.div,{initial:s?!1:{opacity:0},animate:s?!1:{opacity:1},exit:s?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...l},"modal-overlay")}),C.jsx(cX,{asChild:!0,className:kX({autoHeight:e,size:c}),forceMount:!0,onEscapeKeyDown:p=>{i?o==null||o():p.preventDefault()},onInteractOutside:p=>{i||p.preventDefault()},children:C.jsxs(Au.div,{initial:s?!1:{y:"100%",opacity:c==="sm"?0:1},animate:s?!1:{y:0,opacity:1},exit:s?void 0:{y:"100%",opacity:c==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...u,children:[a?C.jsx(dX,{children:n}):n,i&&C.jsx(lX,{asChild:!0,children:C.jsx(YC,{icon:EC,backdropFilter:"blur",size:"xs",className:SX,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var TX="_1acm19y1 _1acm19y0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1zk fyvr111o fyvr11lk fyvr11ow fyvr11sl fyvr12w9 fyvr1h4 fyvr11cg",IX=St({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"_1acm19y7 _1acm19y3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"_1acm19y8 _1acm19y4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),PX=St({defaultClassName:"_1acm19ya _1acm19y9 fyvr1z4 fyvr1118 fyvr1vc fyvr1xg fyvr130x fyvr130r fyvr11l4 fyvr11sl fyvr12w9 fyvr12s9 fyvr12g fyvr164",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11r3 fyvr11iw fyvr11kg fyvr11jw fyvr11jg"}},defaultVariants:{},compoundVariants:[]});const sk=x.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",leftIcon:u,rightIcon:f,name:d,controls:h,type:y="text",numeric:p=!1,...b}=t;return C.jsx(dd,{description:i,disabled:o,display:"grid",id:a??d,label:c,labelLocation:l,children:C.jsx(Ce,{width:"full",children:C.jsxs(Ce,{className:or(TX,IX({borderRadius:s})),children:[u&&C.jsx(u,{size:"sm"}),C.jsx(Ce,{as:r,autoComplete:n,spellCheck:"false",className:PX({numeric:p}),disabled:o,id:a??d,name:d,ref:e,type:y,...b}),f&&C.jsx(f,{size:"sm"}),h]})})})}),OX=RegExp("^\\d*(?:\\\\[.])?\\d*$");function RX(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}x.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:s,onBlur:i,...o}=t,a=l=>{let{value:u}=l.target;u=u.replace(/,/g,"."),u.startsWith(".")&&(u="0"+u),u.startsWith("0")&&(u=u.replace(/^0+(?=\d)/,"")),(u===""||OX.test(RX(u)))&&(s==null||s({...l,target:{...l.target,value:u}}))},c=l=>{const{value:u}=l.target;let f=u;f.endsWith(".")&&(f=f.slice(0,-1)),f.endsWith(".0")&&(f=f.slice(0,-2)),f==="0"&&(f=""),i==null||i(l),f!==u&&(s==null||s({...l,target:{...l.target,value:f}}))};return C.jsx(sk,{name:r,onChange:a,onBlur:c,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});St({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});var ik="Progress",ok=100,[NX,ihe]=Br(ik),[_X,MX]=NX(ik),DX=x.forwardRef((t,e)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=LX,...o}=t;(s||s===0)&&!zA(s)&&console.error(jX(`${s}`,"Progress"));const a=zA(s)?s:ok;n!==null&&!HA(n,a)&&console.error(FX(`${n}`,"Progress"));const c=HA(n,a)?n:null,l=ng(c)?i(c,a):void 0;return C.jsx(_X,{scope:r,value:c,max:a,children:C.jsx(Se.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ng(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":h9(c,a),"data-value":c??void 0,"data-max":a,...o,ref:e})})});DX.displayName=ik;var d9="ProgressIndicator",BX=x.forwardRef((t,e)=>{const{__scopeProgress:r,...n}=t,s=MX(d9,r);return C.jsx(Se.div,{"data-state":h9(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});BX.displayName=d9;function LX(t,e){return`${Math.round(t/e*100)}%`}function h9(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function ng(t){return typeof t=="number"}function zA(t){return ng(t)&&!isNaN(t)&&t>0}function HA(t,e){return ng(t)&&!isNaN(t)&&t<=e&&t>=0}function jX(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ok}\`.`}function FX(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${ok} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`}var ak="Radio",[UX,p9]=Br(ak),[$X,WX]=UX(ak),y9=x.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:c,...l}=t,[u,f]=x.useState(null),d=We(e,p=>f(p)),h=x.useRef(!1),y=u?!!u.closest("form"):!0;return C.jsxs($X,{scope:r,checked:s,disabled:o,children:[C.jsx(Se.button,{type:"button",role:"radio","aria-checked":s,"data-state":m9(s),"data-disabled":o?"":void 0,disabled:o,value:a,...l,ref:d,onClick:ce(t.onClick,p=>{s||c==null||c(),y&&(h.current=p.isPropagationStopped(),h.current||p.stopPropagation())})}),y&&C.jsx(VX,{control:u,bubbles:!h.current,name:n,value:a,checked:s,required:i,disabled:o,style:{transform:"translateX(-100%)"}})]})});y9.displayName=ak;var g9="RadioIndicator",v9=x.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...s}=t,i=WX(g9,r);return C.jsx(Xr,{present:n||i.checked,children:C.jsx(Se.span,{"data-state":m9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});v9.displayName=g9;var VX=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=x.useRef(null),o=pv(r),a=yv(e);return x.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),C.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function m9(t){return t?"checked":"unchecked"}var zX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ck="RadioGroup",[HX,ohe]=Br(ck,[md,p9]),x9=md(),b9=p9(),[GX,qX]=HX(ck),w9=x.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=t,h=x9(r),y=u1(l),[p,b]=as({prop:i,defaultProp:s,onChange:f});return C.jsx(GX,{scope:r,name:n,required:o,disabled:a,value:p,onValueChange:b,children:C.jsx(UC,{asChild:!0,...h,orientation:c,dir:y,loop:u,children:C.jsx(Se.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":a?"":void 0,dir:y,...d,ref:e})})})});w9.displayName=ck;var E9="RadioGroupItem",C9=x.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...s}=t,i=qX(E9,r),o=i.disabled||n,a=x9(r),c=b9(r),l=x.useRef(null),u=We(e,l),f=i.value===s.value,d=x.useRef(!1);return x.useEffect(()=>{const h=p=>{zX.includes(p.key)&&(d.current=!0)},y=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",y)}},[]),C.jsx($C,{asChild:!0,...a,focusable:!o,active:f,children:C.jsx(y9,{disabled:o,required:i.required,checked:f,...c,...s,name:i.name,ref:u,onCheck:()=>i.onValueChange(s.value),onKeyDown:ce(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:ce(s.onFocus,()=>{var h;d.current&&((h=l.current)==null||h.click())})})})});C9.displayName=E9;var KX="RadioGroupIndicator",k9=x.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,s=b9(r);return C.jsx(v9,{...s,...n,ref:e})});k9.displayName=KX;var QX=w9,JX=C9,YX=k9,XX=St({defaultClassName:"io59uy3 io59uy0 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr1uw fyvr1x0 fyvr1z4 fyvr1118 fyvr12rl fyvr12k9 fyvr125l fyvr12cx fyvr12rr fyvr12kf fyvr125r fyvr12d3 fyvr11sl fyvr12zf fyvr12zb fyvr1307 fyvr12zz _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11eg fyvr11es fyvr11f4 fyvr11fg",lg:"io59uy5 io59uy2 fyvr11ek fyvr11ew fyvr11f8 fyvr11fk"}},defaultVariants:{},compoundVariants:[]}),ZX=St({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11l8 fyvr11ow fyvr11no fyvr11m4 fyvr12g fyvr164 fyvr12w9",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const eZ=t=>{const{id:e,label:r,size:n="sm",value:s,disabled:i}=t;return C.jsx(Ce,{alignItems:"center",children:C.jsx(dd,{disabled:i,display:"flex",id:e,label:r,labelLocation:"right",children:C.jsx(JX,{className:XX({size:n}),value:s,id:e,disabled:i,children:C.jsx(YX,{className:ZX({size:n})})})})})};x.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:s="2",name:i,options:o,size:a="sm",...c}=t;return C.jsx(QX,{disabled:n,name:i,ref:e,...c,children:C.jsx(Ce,{flexDirection:r,gap:s,children:o.map(({label:l,value:u,disabled:f})=>C.jsx(eZ,{id:`${i}-${u}`,label:l,size:a,value:u,disabled:f},u))})})});function GA(t,[e,r]){return Math.min(r,Math.max(e,t))}var tZ="VisuallyHidden",y1=x.forwardRef((t,e)=>C.jsx(Se.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));y1.displayName=tZ;var rZ=y1,nZ=[" ","Enter","ArrowUp","ArrowDown"],sZ=[" ","Enter"],g1="Select",[Sv,Av,iZ]=gv(g1),[xd,ahe]=Br(g1,[iZ,vd]),Tv=vd(),[oZ,Ua]=xd(g1),[aZ,cZ]=xd(g1),S9=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:h}=t,y=Tv(e),[p,b]=x.useState(null),[g,v]=x.useState(null),[m,k]=x.useState(!1),A=u1(l),[P=!1,R]=as({prop:n,defaultProp:s,onChange:i}),[N,V]=as({prop:o,defaultProp:a,onChange:c}),F=x.useRef(null),X=p?!!p.closest("form"):!0,[re,le]=x.useState(new Set),ee=Array.from(re).map(B=>B.props.value).join(";");return C.jsx(BC,{...y,children:C.jsxs(oZ,{required:h,scope:e,trigger:p,onTriggerChange:b,valueNode:g,onValueNodeChange:v,valueNodeHasChildren:m,onValueNodeHasChildrenChange:k,contentId:rs(),value:N,onValueChange:V,open:P,onOpenChange:R,dir:A,triggerPointerDownPosRef:F,disabled:d,children:[C.jsx(Sv.Provider,{scope:e,children:C.jsx(aZ,{scope:t.__scopeSelect,onNativeOptionAdd:x.useCallback(B=>{le(G=>new Set(G).add(B))},[]),onNativeOptionRemove:x.useCallback(B=>{le(G=>{const Z=new Set(G);return Z.delete(B),Z})},[]),children:r})}),X?C.jsxs(H9,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:N,onChange:B=>V(B.target.value),disabled:d,children:[N===void 0?C.jsx("option",{value:""}):null,Array.from(re)]},ee):null]})})};S9.displayName=g1;var A9="SelectTrigger",T9=x.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=Tv(r),o=Ua(A9,r),a=o.disabled||n,c=We(e,o.onTriggerChange),l=Av(r),[u,f,d]=G9(y=>{const p=l().filter(v=>!v.disabled),b=p.find(v=>v.value===o.value),g=q9(p,y,b);g!==void 0&&o.onValueChange(g.value)}),h=()=>{a||(o.onOpenChange(!0),d())};return C.jsx(LC,{asChild:!0,...i,children:C.jsx(Se.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":z9(o.value)?"":void 0,...s,ref:c,onClick:ce(s.onClick,y=>{y.currentTarget.focus()}),onPointerDown:ce(s.onPointerDown,y=>{const p=y.target;p.hasPointerCapture(y.pointerId)&&p.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(h(),o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:ce(s.onKeyDown,y=>{const p=u.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(p&&y.key===" ")&&nZ.includes(y.key)&&(h(),y.preventDefault())})})})});T9.displayName=A9;var I9="SelectValue",P9=x.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,c=Ua(I9,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,f=We(e,c.onValueNodeChange);return br(()=>{l(u)},[l,u]),C.jsx(Se.span,{...a,ref:f,style:{pointerEvents:"none"},children:z9(c.value)?C.jsx(C.Fragment,{children:o}):i})});P9.displayName=I9;var lZ="SelectIcon",O9=x.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return C.jsx(Se.span,{"aria-hidden":!0,...s,ref:e,children:n||"ā–¼"})});O9.displayName=lZ;var hl="SelectContent",R9=x.forwardRef((t,e)=>{const r=Ua(hl,t.__scopeSelect),[n,s]=x.useState();if(br(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?ja.createPortal(C.jsx(N9,{scope:t.__scopeSelect,children:C.jsx(Sv.Slot,{scope:t.__scopeSelect,children:C.jsx("div",{children:t.children})})}),i):null}return C.jsx(_9,{...t,ref:e})});R9.displayName=hl;var Ai=10,[N9,$a]=xd(hl),uZ="SelectContentImpl",_9=x.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b,...g}=t,v=Ua(hl,r),[m,k]=x.useState(null),[A,P]=x.useState(null),R=We(e,$=>k($)),[N,V]=x.useState(null),[F,X]=x.useState(null),re=Av(r),[le,ee]=x.useState(!1),B=x.useRef(!1);x.useEffect(()=>{if(m)return WC(m)},[m]),TC();const G=x.useCallback($=>{const[K,...ue]=re().map(ke=>ke.ref.current),[he]=ue.slice(-1),oe=document.activeElement;for(const ke of $)if(ke===oe||(ke==null||ke.scrollIntoView({block:"nearest"}),ke===K&&A&&(A.scrollTop=0),ke===he&&A&&(A.scrollTop=A.scrollHeight),ke==null||ke.focus(),document.activeElement!==oe))return},[re,A]),Z=x.useCallback(()=>G([N,m]),[G,N,m]);x.useEffect(()=>{le&&Z()},[le,Z]);const{onOpenChange:E,triggerPointerDownPosRef:S}=v;x.useEffect(()=>{if(m){let $={x:0,y:0};const K=he=>{var oe,ke;$={x:Math.abs(Math.round(he.pageX)-(((oe=S.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(he.pageY)-(((ke=S.current)==null?void 0:ke.y)??0))}},ue=he=>{$.x<=10&&$.y<=10?he.preventDefault():m.contains(he.target)||E(!1),document.removeEventListener("pointermove",K),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ue,{capture:!0})}}},[m,E,S]),x.useEffect(()=>{const $=()=>E(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[E]);const[O,D]=G9($=>{const K=re().filter(oe=>!oe.disabled),ue=K.find(oe=>oe.ref.current===document.activeElement),he=q9(K,$,ue);he&&setTimeout(()=>he.ref.current.focus())}),L=x.useCallback(($,K,ue)=>{const he=!B.current&&!ue;(v.value!==void 0&&v.value===K||he)&&(V($),he&&(B.current=!0))},[v.value]),W=x.useCallback(()=>m==null?void 0:m.focus(),[m]),q=x.useCallback(($,K,ue)=>{const he=!B.current&&!ue;(v.value!==void 0&&v.value===K||he)&&X($)},[v.value]),te=n==="popper"?bw:M9,J=te===bw?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b}:{};return C.jsx(N9,{scope:r,content:m,viewport:A,onViewportChange:P,itemRefCallback:L,selectedItem:N,onItemLeave:W,itemTextRefCallback:q,focusSelectedItem:Z,selectedItemText:F,position:n,isPositioned:le,searchRef:O,children:C.jsx(Ev,{as:ul,allowPinchZoom:!0,children:C.jsx(vv,{asChild:!0,trapped:v.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:ce(s,$=>{var K;(K=v.trigger)==null||K.focus({preventScroll:!0}),$.preventDefault()}),children:C.jsx(pd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:C.jsx(te,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:$=>$.preventDefault(),...g,...J,onPlaced:()=>ee(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ce(g.onKeyDown,$=>{const K=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!K&&$.key.length===1&&D($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let he=re().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes($.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const oe=$.target,ke=he.indexOf(oe);he=he.slice(ke+1)}setTimeout(()=>G(he)),$.preventDefault()}})})})})})})});_9.displayName=uZ;var fZ="SelectItemAlignedPosition",M9=x.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Ua(hl,r),o=$a(hl,r),[a,c]=x.useState(null),[l,u]=x.useState(null),f=We(e,R=>u(R)),d=Av(r),h=x.useRef(!1),y=x.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:g,focusSelectedItem:v}=o,m=x.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&b&&g){const R=i.trigger.getBoundingClientRect(),N=l.getBoundingClientRect(),V=i.valueNode.getBoundingClientRect(),F=g.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-N.left,ke=V.left-oe,_e=R.left-ke,xt=R.width+_e,tn=Math.max(xt,N.width),wr=window.innerWidth-Ai,U=GA(ke,[Ai,wr-tn]);a.style.minWidth=xt+"px",a.style.left=U+"px"}else{const oe=N.right-F.right,ke=window.innerWidth-V.right-oe,_e=window.innerWidth-R.right-ke,xt=R.width+_e,tn=Math.max(xt,N.width),wr=window.innerWidth-Ai,U=GA(ke,[Ai,wr-tn]);a.style.minWidth=xt+"px",a.style.right=U+"px"}const X=d(),re=window.innerHeight-Ai*2,le=p.scrollHeight,ee=window.getComputedStyle(l),B=parseInt(ee.borderTopWidth,10),G=parseInt(ee.paddingTop,10),Z=parseInt(ee.borderBottomWidth,10),E=parseInt(ee.paddingBottom,10),S=B+G+le+E+Z,O=Math.min(b.offsetHeight*5,S),D=window.getComputedStyle(p),L=parseInt(D.paddingTop,10),W=parseInt(D.paddingBottom,10),q=R.top+R.height/2-Ai,te=re-q,J=b.offsetHeight/2,$=b.offsetTop+J,K=B+G+$,ue=S-K;if(K<=q){const oe=b===X[X.length-1].ref.current;a.style.bottom="0px";const ke=l.clientHeight-p.offsetTop-p.offsetHeight,_e=Math.max(te,J+(oe?W:0)+ke+Z),xt=K+_e;a.style.height=xt+"px"}else{const oe=b===X[0].ref.current;a.style.top="0px";const _e=Math.max(q,B+p.offsetTop+(oe?L:0)+J)+ue;a.style.height=_e+"px",p.scrollTop=K-q+p.offsetTop}a.style.margin=`${Ai}px 0`,a.style.minHeight=O+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,i.trigger,i.valueNode,a,l,p,b,g,i.dir,n]);br(()=>m(),[m]);const[k,A]=x.useState();br(()=>{l&&A(window.getComputedStyle(l).zIndex)},[l]);const P=x.useCallback(R=>{R&&y.current===!0&&(m(),v==null||v(),y.current=!1)},[m,v]);return C.jsx(hZ,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:P,children:C.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:C.jsx(Se.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});M9.displayName=fZ;var dZ="SelectPopperPosition",bw=x.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=Ai,...i}=t,o=Tv(r);return C.jsx(jC,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});bw.displayName=dZ;var[hZ,lk]=xd(hl,{}),ww="SelectViewport",D9=x.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=$a(ww,r),o=lk(ww,r),a=We(e,i.onViewportChange),c=x.useRef(0);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),C.jsx(Sv.Slot,{scope:r,children:C.jsx(Se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:ce(s.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&f){const h=Math.abs(c.current-u.scrollTop);if(h>0){const y=window.innerHeight-Ai*2,p=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),g=Math.max(p,b);if(g0?k:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});D9.displayName=ww;var B9="SelectGroup",[pZ,yZ]=xd(B9),L9=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=rs();return C.jsx(pZ,{scope:r,id:s,children:C.jsx(Se.div,{role:"group","aria-labelledby":s,...n,ref:e})})});L9.displayName=B9;var j9="SelectLabel",gZ=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=yZ(j9,r);return C.jsx(Se.div,{id:s.id,...n,ref:e})});gZ.displayName=j9;var sg="SelectItem",[vZ,F9]=xd(sg),U9=x.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=Ua(sg,r),c=$a(sg,r),l=a.value===n,[u,f]=x.useState(i??""),[d,h]=x.useState(!1),y=We(e,g=>{var v;return(v=c.itemRefCallback)==null?void 0:v.call(c,g,n,s)}),p=rs(),b=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return C.jsx(vZ,{scope:r,value:n,disabled:s,textId:p,isSelected:l,onItemTextChange:x.useCallback(g=>{f(v=>v||((g==null?void 0:g.textContent)??"").trim())},[]),children:C.jsx(Sv.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:C.jsx(Se.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:ce(o.onFocus,()=>h(!0)),onBlur:ce(o.onBlur,()=>h(!1)),onPointerUp:ce(o.onPointerUp,b),onPointerMove:ce(o.onPointerMove,g=>{var v;s?(v=c.onItemLeave)==null||v.call(c):g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(o.onPointerLeave,g=>{var v;g.currentTarget===document.activeElement&&((v=c.onItemLeave)==null||v.call(c))}),onKeyDown:ce(o.onKeyDown,g=>{var v;((v=c.searchRef)==null?void 0:v.current)!==""&&g.key===" "||(sZ.includes(g.key)&&b(),g.key===" "&&g.preventDefault())})})})})});U9.displayName=sg;var rh="SelectItemText",$9=x.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=Ua(rh,r),a=$a(rh,r),c=F9(rh,r),l=cZ(rh,r),[u,f]=x.useState(null),d=We(e,g=>f(g),c.onItemTextChange,g=>{var v;return(v=a.itemTextRefCallback)==null?void 0:v.call(a,g,c.value,c.disabled)}),h=u==null?void 0:u.textContent,y=x.useMemo(()=>C.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=l;return br(()=>(p(y),()=>b(y)),[p,b,y]),C.jsxs(C.Fragment,{children:[C.jsx(Se.span,{id:c.textId,...i,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ja.createPortal(i.children,o.valueNode):null]})});$9.displayName=rh;var W9="SelectItemIndicator",mZ=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return F9(W9,r).isSelected?C.jsx(Se.span,{"aria-hidden":!0,...n,ref:e}):null});mZ.displayName=W9;var Ew="SelectScrollUpButton",xZ=x.forwardRef((t,e)=>{const r=$a(Ew,t.__scopeSelect),n=lk(Ew,t.__scopeSelect),[s,i]=x.useState(!1),o=We(e,n.onScrollButtonChange);return br(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?C.jsx(V9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});xZ.displayName=Ew;var Cw="SelectScrollDownButton",bZ=x.forwardRef((t,e)=>{const r=$a(Cw,t.__scopeSelect),n=lk(Cw,t.__scopeSelect),[s,i]=x.useState(!1),o=We(e,n.onScrollButtonChange);return br(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?C.jsx(V9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});bZ.displayName=Cw;var V9=x.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=$a("SelectScrollButton",r),o=x.useRef(null),a=Av(r),c=x.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return x.useEffect(()=>()=>c(),[c]),br(()=>{var l;const u=a().find(f=>f.ref.current===document.activeElement);(l=u==null?void 0:u.ref.current)==null||l.scrollIntoView({block:"nearest"})},[a]),C.jsx(Se.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{c()})})}),wZ="SelectSeparator",EZ=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return C.jsx(Se.div,{"aria-hidden":!0,...n,ref:e})});EZ.displayName=wZ;var kw="SelectArrow",CZ=x.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Tv(r),i=Ua(kw,r),o=$a(kw,r);return i.open&&o.position==="popper"?C.jsx(FC,{...s,...n,ref:e}):null});CZ.displayName=kw;function z9(t){return t===""||t===void 0}var H9=x.forwardRef((t,e)=>{const{value:r,...n}=t,s=x.useRef(null),i=We(e,s),o=pv(r);return x.useEffect(()=>{const a=s.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==r&&u){const f=new Event("change",{bubbles:!0});u.call(a,r),a.dispatchEvent(f)}},[o,r]),C.jsx(y1,{asChild:!0,children:C.jsx("select",{...n,ref:i,defaultValue:r})})});H9.displayName="BubbleSelect";function G9(t){const e=Mr(t),r=x.useRef(""),n=x.useRef(0),s=x.useCallback(o=>{const a=r.current+o;e(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),i=x.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function q9(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=kZ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function kZ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var SZ=S9,AZ=T9,TZ=P9,IZ=O9,PZ=R9,OZ=D9,RZ=L9,NZ=U9,_Z=$9,MZ="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 gohwum0 fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11ow fyvr11sl fyvr11lk fyvr11jc fyvr12w9 fyvr11cc fyvr11o4 fyvr11rc fyvr12zf fyvr12s9",DZ=St({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg",sm:"gohwum7 gohwum3 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk",md:"gohwum8 gohwum4 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go"}},defaultVariants:{},compoundVariants:[]}),BZ="gohwuma gohwum9 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr11q0 fyvr11qg fyvr11r0 fyvr11y3 fyvr12w9 fyvr11rt",LZ="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 gohwumd fyvr1zk fyvr111o fyvr1v8 fyvr1xc fyvr1310 fyvr1311 fyvr130u fyvr130v fyvr11l8 fyvr11o4 fyvr11ow fyvr12zf fyvr12zb fyvr12w9 fyvr1309 fyvr12zz";const jZ=x.forwardRef(({children:t,className:e,...r},n)=>C.jsx(NZ,{className:or(LZ,e),...r,ref:n,children:C.jsx(_Z,{children:t})})),qA=x.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:s,label:i="",description:o,labelLocation:a="hidden",name:c,options:l,placeholder:u,...f}=t;return C.jsx(dd,{disabled:n,display:"grid",id:s??c,label:i,labelLocation:a,description:o,whiteSpace:"nowrap",children:C.jsxs(SZ,{disabled:n,name:c,...f,children:[C.jsxs(AZ,{id:s??c,className:or(MZ,DZ({borderRadius:r})),ref:e,children:[C.jsx(TZ,{placeholder:u}),C.jsx(Ce,{as:IZ,display:"inline-flex",children:C.jsx(RP,{})})]}),C.jsx(PZ,{className:BZ,children:C.jsx(OZ,{children:C.jsx(RZ,{children:l.map(({value:d,label:h,...y})=>C.jsx(jZ,{value:d,...y,children:h},d))})})})]})})});x.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:s="Search",name:i="search",value:o,...a}=t,c=o?C.jsx(YC,{icon:EC,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return C.jsx(sk,{ref:e,name:i,leftIcon:Uq,controls:r||c,placeholder:s,value:o,onChange:l=>n==null?void 0:n(l),...a})});var FZ=St({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});x.forwardRef((t,e)=>{const{size:r="md",...n}=t;return C.jsx(Ce,{className:FZ({size:r}),color:"text50",ref:e,...n,children:C.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[C.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),C.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});x.forwardRef(({children:t},e)=>C.jsx(Ce,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));var uk="Switch",[UZ,che]=Br(uk),[$Z,WZ]=UZ(uk),VZ=x.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=x.useState(null),h=We(e,v=>d(v)),y=x.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,g]=as({prop:s,defaultProp:i,onChange:l});return C.jsxs($Z,{scope:r,checked:b,disabled:a,children:[C.jsx(Se.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":Q9(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onClick:ce(t.onClick,v=>{g(m=>!m),p&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})}),p&&C.jsx(HZ,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});VZ.displayName=uk;var K9="SwitchThumb",zZ=x.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,s=WZ(K9,r);return C.jsx(Se.span,{"data-state":Q9(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});zZ.displayName=K9;var HZ=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=x.useRef(null),o=pv(r),a=yv(e);return x.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),C.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Q9(t){return t?"checked":"unchecked"}St({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11k8"},active:{true:"nwwh3zb nwwh3z2 fyvr130d",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12zx"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11yf fyvr12wr"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11sl fyvr12wf"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12w9"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12wf"]]});var fk="Tabs",[GZ,lhe]=Br(fk,[md]),J9=md(),[qZ,dk]=GZ(fk),KZ=x.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=t,u=u1(a),[f,d]=as({prop:n,onChange:s,defaultProp:i});return C.jsx(qZ,{scope:r,baseId:rs(),value:f,onValueChange:d,orientation:o,dir:u,activationMode:c,children:C.jsx(Se.div,{dir:u,"data-orientation":o,...l,ref:e})})});KZ.displayName=fk;var Y9="TabsList",QZ=x.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=dk(Y9,r),o=J9(r);return C.jsx(UC,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:C.jsx(Se.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});QZ.displayName=Y9;var X9="TabsTrigger",JZ=x.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,o=dk(X9,r),a=J9(r),c=eR(o.baseId,n),l=tR(o.baseId,n),u=n===o.value;return C.jsx($C,{asChild:!0,...a,focusable:!s,active:u,children:C.jsx(Se.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:ce(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:ce(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:ce(t.onFocus,()=>{const f=o.activationMode!=="manual";!u&&!s&&f&&o.onValueChange(n)})})})});JZ.displayName=X9;var Z9="TabsContent",YZ=x.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=t,a=dk(Z9,r),c=eR(a.baseId,n),l=tR(a.baseId,n),u=n===a.value,f=x.useRef(u);return x.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),C.jsx(Xr,{present:s||u,children:({present:d})=>C.jsx(Se.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:l,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:d&&i})})});YZ.displayName=Z9;function eR(t,e){return`${t}-trigger-${e}`}function tR(t,e){return`${t}-content-${e}`}var XZ="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11r3 fyvr11ig fyvr11k4 fyvr11k0 fyvr11jk _1ppqbnx0 fyvr11h4 fyvr11hs fyvr11fs fyvr11gg fyvr1zc fyvr111g fyvr1v0 fyvr1x4 fyvr11lk fyvr11cc fyvr11rh";x.forwardRef((t,e)=>{const{icon:r,label:n,...s}=t;return C.jsxs(Ce,{className:XZ,ref:e,background:"buttonGlass",color:"text80",...s,children:[r&&C.jsx(r,{size:"xs"}),C.jsx(Tt,{children:n})]})});var ZZ="ToastProvider",[rR,eee,tee]=gv("Toast"),[nR,uhe]=Br("Toast",[tee]),[fhe,Iv]=nR(ZZ),sR="ToastViewport",ree=["F8"],Sw="toast.viewportPause",Aw="toast.viewportResume",nee=x.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=ree,label:s="Notifications ({hotkey})",...i}=t,o=Iv(sR,r),a=eee(r),c=x.useRef(null),l=x.useRef(null),u=x.useRef(null),f=x.useRef(null),d=We(e,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;x.useEffect(()=>{const b=g=>{var v;n.every(k=>g[k]||g.code===k)&&((v=f.current)==null||v.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),x.useEffect(()=>{const b=c.current,g=f.current;if(y&&b&&g){const v=()=>{if(!o.isClosePausedRef.current){const P=new CustomEvent(Sw);g.dispatchEvent(P),o.isClosePausedRef.current=!0}},m=()=>{if(o.isClosePausedRef.current){const P=new CustomEvent(Aw);g.dispatchEvent(P),o.isClosePausedRef.current=!1}},k=P=>{!b.contains(P.relatedTarget)&&m()},A=()=>{b.contains(document.activeElement)||m()};return b.addEventListener("focusin",v),b.addEventListener("focusout",k),b.addEventListener("pointermove",v),b.addEventListener("pointerleave",A),window.addEventListener("blur",v),window.addEventListener("focus",m),()=>{b.removeEventListener("focusin",v),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",v),b.removeEventListener("pointerleave",A),window.removeEventListener("blur",v),window.removeEventListener("focus",m)}}},[y,o.isClosePausedRef]);const p=x.useCallback(({tabbingDirection:b})=>{const v=a().map(m=>{const k=m.ref.current,A=[k,...bee(k)];return b==="forwards"?A:A.reverse()});return(b==="forwards"?v.reverse():v).flat()},[a]);return x.useEffect(()=>{const b=f.current;if(b){const g=v=>{var m,k,A;const P=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!P){const N=document.activeElement,V=v.shiftKey;if(v.target===b&&V){(m=l.current)==null||m.focus();return}const re=p({tabbingDirection:V?"backwards":"forwards"}),le=re.findIndex(ee=>ee===N);bx(re.slice(le+1))?v.preventDefault():V?(k=l.current)==null||k.focus():(A=u.current)==null||A.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[a,p]),C.jsxs(pK,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&C.jsx(Tw,{ref:l,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});bx(b)}}),C.jsx(rR.Slot,{scope:r,children:C.jsx(Se.ol,{tabIndex:-1,...i,ref:d})}),y&&C.jsx(Tw,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});bx(b)}})]})});nee.displayName=sR;var iR="ToastFocusProxy",Tw=x.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=Iv(iR,r);return C.jsx(y1,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var a;const c=o.relatedTarget;!((a=i.viewport)!=null&&a.contains(c))&&n()}})});Tw.displayName=iR;var Pv="Toast",see="toast.swipeStart",iee="toast.swipeMove",oee="toast.swipeCancel",aee="toast.swipeEnd",cee=x.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a=!0,c]=as({prop:n,defaultProp:s,onChange:i});return C.jsx(Xr,{present:r||a,children:C.jsx(fee,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:Mr(t.onPause),onResume:Mr(t.onResume),onSwipeStart:ce(t.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(t.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ce(t.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(t.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});cee.displayName=Pv;var[lee,uee]=nR(Pv,{onClose(){}}),fee=x.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=t,p=Iv(Pv,r),[b,g]=x.useState(null),v=We(e,ee=>g(ee)),m=x.useRef(null),k=x.useRef(null),A=s||p.duration,P=x.useRef(0),R=x.useRef(A),N=x.useRef(0),{onToastAdd:V,onToastRemove:F}=p,X=Mr(()=>{var ee;(b==null?void 0:b.contains(document.activeElement))&&((ee=p.viewport)==null||ee.focus()),o()}),re=x.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(N.current),P.current=new Date().getTime(),N.current=window.setTimeout(X,ee))},[X]);x.useEffect(()=>{const ee=p.viewport;if(ee){const B=()=>{re(R.current),l==null||l()},G=()=>{const Z=new Date().getTime()-P.current;R.current=R.current-Z,window.clearTimeout(N.current),c==null||c()};return ee.addEventListener(Sw,G),ee.addEventListener(Aw,B),()=>{ee.removeEventListener(Sw,G),ee.removeEventListener(Aw,B)}}},[p.viewport,A,c,l,re]),x.useEffect(()=>{i&&!p.isClosePausedRef.current&&re(A)},[i,A,p.isClosePausedRef,re]),x.useEffect(()=>(V(),()=>F()),[V,F]);const le=x.useMemo(()=>b?uR(b):null,[b]);return p.viewport?C.jsxs(C.Fragment,{children:[le&&C.jsx(dee,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:le}),C.jsx(lee,{scope:r,onClose:X,children:ja.createPortal(C.jsx(rR.ItemSlot,{scope:r,children:C.jsx(hK,{asChild:!0,onEscapeKeyDown:ce(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||X(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:C.jsx(Se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:v,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ce(t.onKeyDown,ee=>{ee.key==="Escape"&&(a==null||a(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ce(t.onPointerDown,ee=>{ee.button===0&&(m.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:ce(t.onPointerMove,ee=>{if(!m.current)return;const B=ee.clientX-m.current.x,G=ee.clientY-m.current.y,Z=!!k.current,E=["left","right"].includes(p.swipeDirection),S=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,O=E?S(0,B):0,D=E?0:S(0,G),L=ee.pointerType==="touch"?10:2,W={x:O,y:D},q={originalEvent:ee,delta:W};Z?(k.current=W,ap(iee,f,q,{discrete:!1})):KA(W,p.swipeDirection,L)?(k.current=W,ap(see,u,q,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(B)>L||Math.abs(G)>L)&&(m.current=null)}),onPointerUp:ce(t.onPointerUp,ee=>{const B=k.current,G=ee.target;if(G.hasPointerCapture(ee.pointerId)&&G.releasePointerCapture(ee.pointerId),k.current=null,m.current=null,B){const Z=ee.currentTarget,E={originalEvent:ee,delta:B};KA(B,p.swipeDirection,p.swipeThreshold)?ap(aee,h,E,{discrete:!0}):ap(oee,d,E,{discrete:!0}),Z.addEventListener("click",S=>S.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),dee=t=>{const{__scopeToast:e,children:r,...n}=t,s=Iv(Pv,e),[i,o]=x.useState(!1),[a,c]=x.useState(!1);return mee(()=>o(!0)),x.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:C.jsx(d1,{asChild:!0,children:C.jsx(y1,{...n,children:i&&C.jsxs(C.Fragment,{children:[s.label," ",r]})})})},hee="ToastTitle",pee=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return C.jsx(Se.div,{...n,ref:e})});pee.displayName=hee;var yee="ToastDescription",gee=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return C.jsx(Se.div,{...n,ref:e})});gee.displayName=yee;var oR="ToastAction",vee=x.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?C.jsx(lR,{altText:r,asChild:!0,children:C.jsx(cR,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${oR}\`. Expected non-empty \`string\`.`),null)});vee.displayName=oR;var aR="ToastClose",cR=x.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=uee(aR,r);return C.jsx(lR,{asChild:!0,children:C.jsx(Se.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,s.onClose)})})});cR.displayName=aR;var lR=x.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return C.jsx(Se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function uR(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),xee(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...uR(n))}}),e}function ap(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?bC(s,i):s.dispatchEvent(i)}var KA=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function mee(t=()=>{}){const e=Mr(t);br(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function xee(t){return t.nodeType===t.ELEMENT_NODE}function bee(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function bx(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}St({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});x.createContext(null);var wee="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11r3 fyvr11io fyvr11k8 fyvr11k0 fyvr11j8 _15pztn0 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11ow fyvr11sl fyvr12w9 fyvr12s9 fyvr130r fyvr12g fyvr11l8",Eee="_15pztn2";x.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",name:u,rows:f,resize:d=!1,...h}=t;return C.jsx(dd,{description:i,disabled:o,display:"grid",id:a??u,label:c,labelLocation:l,children:C.jsx(Ce,{as:r,autoComplete:n,spellCheck:"false",className:or(wee,d&&Eee),disabled:o,id:a??u,name:u,ref:e,rows:f,borderRadius:s,...h})})});var Cee=St({defaultClassName:"_18h918k5 _18h918k0 fyvr11q0 fyvr11qg fyvr11no fyvr11ow fyvr11l8",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw",lg:"_18h918kc _18h918k2 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs",md:"_18h918kd _18h918k3 fyvr11hc fyvr11i0 fyvr11g0 fyvr11go",sm:"_18h918ke _18h918k4 fyvr11h8 fyvr11hw fyvr11fw fyvr11gk"}},defaultVariants:{},compoundVariants:[]}),kee="_18h918kf";const See=x.memo(t=>{const{chainId:e,borderRadius:r="circle",className:n,disableAnimation:s=!1,style:i,src:o,size:a="md",...c}=t,l=o||iq(oq(e),a);return C.jsx(Ce,{className:or(n,Cee({borderRadius:r,size:a})),style:i,flexShrink:"0",...c,children:C.jsx(XC,{className:kee,disableAnimation:s,src:l})})});var Aee=St({defaultClassName:"bnrreb1 bnrreb0 fyvr11no fyvr11ow fyvr11m4 fyvr11l8",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),Tee="bnrreb7",Iee="bnrreb9 bnrreb8 fyvr11hk fyvr11i8 fyvr11g8 fyvr11gw fyvr11q0 fyvr11qg fyvr11no fyvr11ow fyvr11wr fyvr12g fyvr164 fyvr11l8",QA="bnrreba";const JA="40%",YA="-2%",Pee=x.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:s,src:i,symbol:o,size:a="md",withNetwork:c,...l}=t;return C.jsxs(Ce,{className:or(r,Aee({size:a})),style:s,flexShrink:"0",...l,children:[i?C.jsx(XC,{className:or(Tee,c&&QA),disableAnimation:n,borderRadius:e,overflow:"hidden",src:i}):C.jsx(Tt,{className:or(Iee,c&&QA),variant:"normal",fontWeight:"medium",color:"text50",borderRadius:e,overflow:"hidden",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)}),c&&C.jsx(See,{chainId:c,position:"absolute",zIndex:"1",disableAnimation:n,style:{width:JA,height:JA,right:YA,bottom:YA}})]})});var[Ov,dhe]=Br("Tooltip",[vd]),Rv=vd(),fR="TooltipProvider",Oee=700,Iw="tooltip.open",[Ree,hk]=Ov(fR),Nee=t=>{const{__scopeTooltip:e,delayDuration:r=Oee,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,[o,a]=x.useState(!0),c=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),C.jsx(Ree,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:x.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:i})};Nee.displayName=fR;var Nv="Tooltip",[_ee,v1]=Ov(Nv),Mee=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=hk(Nv,t.__scopeTooltip),l=Rv(e),[u,f]=x.useState(null),d=rs(),h=x.useRef(0),y=o??c.disableHoverableContent,p=a??c.delayDuration,b=x.useRef(!1),[g=!1,v]=as({prop:n,defaultProp:s,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Iw))):c.onClose(),i==null||i(R)}}),m=x.useMemo(()=>g?b.current?"delayed-open":"instant-open":"closed",[g]),k=x.useCallback(()=>{window.clearTimeout(h.current),b.current=!1,v(!0)},[v]),A=x.useCallback(()=>{window.clearTimeout(h.current),v(!1)},[v]),P=x.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,v(!0)},p)},[p,v]);return x.useEffect(()=>()=>window.clearTimeout(h.current),[]),C.jsx(BC,{...l,children:C.jsx(_ee,{scope:e,contentId:d,open:g,stateAttribute:m,trigger:u,onTriggerChange:f,onTriggerEnter:x.useCallback(()=>{c.isOpenDelayed?P():k()},[c.isOpenDelayed,P,k]),onTriggerLeave:x.useCallback(()=>{y?A():window.clearTimeout(h.current)},[A,y]),onOpen:k,onClose:A,disableHoverableContent:y,children:r})})};Mee.displayName=Nv;var Pw="TooltipTrigger",Dee=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=v1(Pw,r),i=hk(Pw,r),o=Rv(r),a=x.useRef(null),c=We(e,a,s.onTriggerChange),l=x.useRef(!1),u=x.useRef(!1),f=x.useCallback(()=>l.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),C.jsx(LC,{asChild:!0,...o,children:C.jsx(Se.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:ce(t.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ce(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ce(t.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ce(t.onFocus,()=>{l.current||s.onOpen()}),onBlur:ce(t.onBlur,s.onClose),onClick:ce(t.onClick,s.onClose)})})});Dee.displayName=Pw;var pk="TooltipPortal",[Bee,Lee]=Ov(pk,{forceMount:void 0}),jee=t=>{const{__scopeTooltip:e,forceMount:r,children:n,container:s}=t,i=v1(pk,e);return C.jsx(Bee,{scope:e,forceMount:r,children:C.jsx(Xr,{present:r||i.open,children:C.jsx(d1,{asChild:!0,container:s,children:n})})})};jee.displayName=pk;var Wf="TooltipContent",Fee=x.forwardRef((t,e)=>{const r=Lee(Wf,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=v1(Wf,t.__scopeTooltip);return C.jsx(Xr,{present:n||o.open,children:o.disableHoverableContent?C.jsx(dR,{side:s,...i,ref:e}):C.jsx(Uee,{side:s,...i,ref:e})})}),Uee=x.forwardRef((t,e)=>{const r=v1(Wf,t.__scopeTooltip),n=hk(Wf,t.__scopeTooltip),s=x.useRef(null),i=We(e,s),[o,a]=x.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:f}=n,d=x.useCallback(()=>{a(null),f(!1)},[f]),h=x.useCallback((y,p)=>{const b=y.currentTarget,g={x:y.clientX,y:y.clientY},v=zee(g,b.getBoundingClientRect()),m=Hee(g,v),k=Gee(p.getBoundingClientRect()),A=Kee([...m,...k]);a(A),f(!0)},[f]);return x.useEffect(()=>()=>d(),[d]),x.useEffect(()=>{if(c&&u){const y=b=>h(b,u),p=b=>h(b,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,h,d]),x.useEffect(()=>{if(o){const y=p=>{const b=p.target,g={x:p.clientX,y:p.clientY},v=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),m=!qee(g,o);v?d():m&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,o,l,d]),C.jsx(dR,{...t,ref:i})}),[$ee,Wee]=Ov(Nv,{isInside:!1}),dR=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=v1(Wf,r),l=Rv(r),{onClose:u}=c;return x.useEffect(()=>(document.addEventListener(Iw,u),()=>document.removeEventListener(Iw,u)),[u]),x.useEffect(()=>{if(c.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),C.jsx(pd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:C.jsxs(jC,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(SP,{children:n}),C.jsx($ee,{scope:r,isInside:!0,children:C.jsx(rZ,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Fee.displayName=Wf;var hR="TooltipArrow",Vee=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Rv(r);return Wee(hR,r).isInside?null:C.jsx(FC,{...s,...n,ref:e})});Vee.displayName=hR;function zee(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Hee(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function Gee(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function qee(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function Kee(t){const e=t.slice();return e.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),Qee(e)}function Qee(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var pR,XA=ja;pR=XA.createRoot,XA.hydrateRoot;const yk="6.13.4";function Jee(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[n])))).reduce((n,s,i)=>(n[e[i]]=s,n),{})}function fe(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&Jee(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function du(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(du).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return du(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${du(r)}: ${du(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ft(t,e){return t&&t.code===e}function _v(t){return Ft(t,"CALL_EXCEPTION")}function ht(t,e,r){let n=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${du(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+du(a))}}i.push(`code=${e}`),i.push(`version=${yk}`),i.length&&(t+=" ("+i.join(", ")+")")}let s;switch(e){case"INVALID_ARGUMENT":s=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(t);break;default:s=new Error(t)}return fe(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&fe(s,{shortMessage:n}),s}function H(t,e,r,n){if(!t)throw ht(e,r,n)}function I(t,e,r,n){H(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function gk(t,e,r){r==null&&(r=""),r&&(r=": "+r),H(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),H(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const Yee=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"Ć©".normalize("NFD")!=="eĢ")throw new Error("broken");t.push(e)}catch{}return t},[]);function vk(t){H(Yee.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function yo(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),H(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function yR(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+ZA[s&15]}return r}function Fe(t){return"0x"+t.map(e=>z(e).substring(2)).join("")}function ba(t){return qe(t,!0)?(t.length-2)/2:Q(t).length}function at(t,e,r){const n=Q(t);return r!=null&&r>n.length&&H(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),z(n.slice(e??0,r??n.length))}function Xee(t){let e=z(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function gR(t,e,r){const n=Q(t);H(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),r?s.set(n,e-n.length):s.set(n,0),z(s)}function ss(t,e){return gR(t,e,!0)}function Mv(t,e){return gR(t,e,!1)}const Dv=BigInt(0),ks=BigInt(1),hu=9007199254740991;function g0(t,e){const r=m1(t,"value"),n=BigInt(Pe(e,"width"));if(H(r>>n===Dv,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-ks){const s=(ks<=-hu&&t<=hu,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){I(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}I(!1,"invalid BigNumberish value",e||"value",t)}function m1(t,e){const r=xe(t,e);return H(r>=Dv,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const e3="0123456789abcdef";function bd(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=e3[r>>4],e+=e3[r&15];return BigInt(e)}return xe(t)}function Pe(t,e){switch(typeof t){case"bigint":return I(t>=-hu&&t<=hu,"overflow",e||"value",t),Number(t);case"number":return I(Number.isInteger(t),"underflow",e||"value",t),I(t>=-hu&&t<=hu,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return Pe(BigInt(t),e)}catch(r){I(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}I(!1,"invalid numeric value",e||"value",t)}function vR(t){return Pe(bd(t))}function On(t,e){let n=m1(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const s=Pe(e,"width");for(H(s*2>=n.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function rte(t,e,r,n,s){return t==="OVERLONG"?(I(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),wR(t,e,r))}const ER=Object.freeze({error:tte,ignore:wR,replace:rte});function CR(t,e){e==null&&(e=ER.error);const r=Q(t,"bytes"),n=[];let s=0;for(;s>7)){n.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,r,n):s+=e("BAD_PREFIX",s-1,r,n);continue}if(s-1+o>=r.length){s+=e("OVERRUN",s-1,r,n);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=e("OUT_OF_RANGE",s-1-o,r,n,c);continue}if(c>=55296&&c<=57343){s+=e("UTF16_SURROGATE",s-1-o,r,n,c);continue}if(c<=a){s+=e("OVERLONG",s-1-o,r,n,c);continue}n.push(c)}}return n}function mt(t,e){I(typeof t=="string","invalid string value","str",t),e!=null&&(vk(e),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);I(n>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return new Uint8Array(r)}function nte(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ds(t,e){return nte(CR(t,e))}function ste(t,e){return CR(mt(t,e))}function kR(t){async function e(r,n){H(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();H(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),H(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=ht("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=ht("request cancelled","CANCELLED"),o.abort()});const c={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o.signal};let l;try{l=await fetch(r.url,c)}catch(h){throw clearTimeout(a),i||h}clearTimeout(a);const u={};l.headers.forEach((h,y)=>{u[y.toLowerCase()]=h});const f=await l.arrayBuffer(),d=f==null?null:new Uint8Array(f);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:d}}return e}const ite=12,ote=250;let t3=kR();const ate=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),cte=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let wx=!1;async function SR(t,e){try{const r=t.match(ate);if(!r)throw new Error("invalid data");return new eo(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?xR(r[3]):lte(r[3]))}catch{return new eo(599,"BAD REQUEST (invalid data: URI)",{},null,new Gt(t))}}function AR(t){async function e(r,n){try{const s=r.match(cte);if(!s)throw new Error("invalid link");return new Gt(`${t}${s[2]}`)}catch{return new eo(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Gt(r))}}return e}const lp={data:SR,ipfs:AR("https://gateway.ipfs.io/ipfs/")},TR=new WeakMap;var Ec,Fo;class IR{constructor(e){j(this,Ec);j(this,Fo);T(this,Ec,[]),T(this,Fo,!1),TR.set(e,()=>{if(!w(this,Fo)){T(this,Fo,!0);for(const r of w(this,Ec))setTimeout(()=>{r()},0);T(this,Ec,[])}})}addListener(e){H(!w(this,Fo),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),w(this,Ec).push(e)}get cancelled(){return w(this,Fo)}checkSignal(){H(!this.cancelled,"cancelled","CANCELLED",{})}}Ec=new WeakMap,Fo=new WeakMap;function up(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var Uu,$u,gs,Ri,Wu,Vu,Qt,bn,Ni,Cc,kc,Sc,Qs,vs,Uo,Ac,nh;const Dg=class Dg{constructor(e){j(this,Ac);j(this,Uu);j(this,$u);j(this,gs);j(this,Ri);j(this,Wu);j(this,Vu);j(this,Qt);j(this,bn);j(this,Ni);j(this,Cc);j(this,kc);j(this,Sc);j(this,Qs);j(this,vs);j(this,Uo);T(this,Vu,String(e)),T(this,Uu,!1),T(this,$u,!0),T(this,gs,{}),T(this,Ri,""),T(this,Wu,3e5),T(this,vs,{slotInterval:ote,maxAttempts:ite}),T(this,Uo,null)}get url(){return w(this,Vu)}set url(e){T(this,Vu,String(e))}get body(){return w(this,Qt)==null?null:new Uint8Array(w(this,Qt))}set body(e){if(e==null)T(this,Qt,void 0),T(this,bn,void 0);else if(typeof e=="string")T(this,Qt,mt(e)),T(this,bn,"text/plain");else if(e instanceof Uint8Array)T(this,Qt,e),T(this,bn,"application/octet-stream");else if(typeof e=="object")T(this,Qt,mt(JSON.stringify(e))),T(this,bn,"application/json");else throw new Error("invalid body")}hasBody(){return w(this,Qt)!=null}get method(){return w(this,Ri)?w(this,Ri):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),T(this,Ri,String(e).toUpperCase())}get headers(){const e=Object.assign({},w(this,gs));return w(this,Ni)&&(e.authorization=`Basic ${bR(mt(w(this,Ni)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&w(this,bn)&&(e["content-type"]=w(this,bn)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){w(this,gs)[String(e).toLowerCase()]=String(r)}clearHeaders(){T(this,gs,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),T(this,Wu,e)}get preflightFunc(){return w(this,Cc)||null}set preflightFunc(e){T(this,Cc,e)}get processFunc(){return w(this,kc)||null}set processFunc(e){T(this,kc,e)}get retryFunc(){return w(this,Sc)||null}set retryFunc(e){T(this,Sc,e)}get getUrlFunc(){return w(this,Uo)||t3}set getUrlFunc(e){T(this,Uo,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(w(this,vs).slotInterval=e.slotInterval),e.maxAttempts!=null&&(w(this,vs).maxAttempts=e.maxAttempts)}send(){return H(w(this,Qs)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),T(this,Qs,new IR(this)),Y(this,Ac,nh).call(this,0,r3()+this.timeout,0,this,new eo(0,"",{},null,this))}cancel(){H(w(this,Qs)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=TR.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();H(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new Dg(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,T(s,gs,Object.assign({},w(this,gs))),w(this,Qt)&&T(s,Qt,new Uint8Array(w(this,Qt))),T(s,bn,w(this,bn)),s}clone(){const e=new Dg(this.url);return T(e,Ri,w(this,Ri)),w(this,Qt)&&T(e,Qt,w(this,Qt)),T(e,bn,w(this,bn)),T(e,gs,Object.assign({},w(this,gs))),T(e,Ni,w(this,Ni)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),T(e,Cc,w(this,Cc)),T(e,kc,w(this,kc)),T(e,Sc,w(this,Sc)),T(e,vs,Object.assign({},w(this,vs))),T(e,Uo,w(this,Uo)),e}static lockConfig(){wx=!0}static getGateway(e){return lp[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(wx)throw new Error("gateways locked");lp[e]=r}static registerGetUrl(e){if(wx)throw new Error("gateways locked");t3=e}static createGetUrlFunc(e){return kR()}static createDataGateway(){return SR}static createIpfsGatewayFunc(e){return AR(e)}};Uu=new WeakMap,$u=new WeakMap,gs=new WeakMap,Ri=new WeakMap,Wu=new WeakMap,Vu=new WeakMap,Qt=new WeakMap,bn=new WeakMap,Ni=new WeakMap,Cc=new WeakMap,kc=new WeakMap,Sc=new WeakMap,Qs=new WeakMap,vs=new WeakMap,Uo=new WeakMap,Ac=new WeakSet,nh=async function(e,r,n,s,i){var u,f,d;if(e>=w(this,vs).maxAttempts)return i.makeServerError("exceeded maximum retry limit");H(r3()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),n>0&&await ute(n);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in lp){const h=await lp[a](o.url,up(w(s,Qs)));if(h instanceof eo){let y=h;if(this.processFunc){up(w(s,Qs));try{y=await this.processFunc(o,y)}catch(p){(p.throttle==null||typeof p.stall!="number")&&y.makeServerError("error in post-processing function",p).assertOk()}}return y}o=h}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,up(w(s,Qs)));let l=new eo(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const h=l.headers.location||"";return Y(u=o.redirect(h),Ac,nh).call(u,e+1,r,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,e))){const h=l.headers["retry-after"];let y=w(this,vs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(y=parseInt(h)),Y(f=o.clone(),Ac,nh).call(f,e+1,r,y,s,l)}if(this.processFunc){up(w(s,Qs));try{l=await this.processFunc(o,l)}catch(h){(h.throttle==null||typeof h.stall!="number")&&l.makeServerError("error in post-processing function",h).assertOk();let y=w(this,vs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return h.stall>=0&&(y=h.stall),Y(d=o.clone(),Ac,nh).call(d,e+1,r,y,s,l)}}return l};let Gt=Dg;var L0,j0,F0,wn,zu,Tc;const q5=class q5{constructor(e,r,n,s,i){j(this,L0);j(this,j0);j(this,F0);j(this,wn);j(this,zu);j(this,Tc);T(this,L0,e),T(this,j0,r),T(this,F0,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),T(this,wn,s==null?null:new Uint8Array(s)),T(this,zu,i||null),T(this,Tc,{message:""})}toString(){return``}get statusCode(){return w(this,L0)}get statusMessage(){return w(this,j0)}get headers(){return Object.assign({},w(this,F0))}get body(){return w(this,wn)==null?null:new Uint8Array(w(this,wn))}get bodyText(){try{return w(this,wn)==null?"":Ds(w(this,wn))}catch{H(!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{H(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw fe(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return w(this,wn)!=null}get request(){return w(this,zu)}ok(){return w(this,Tc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=w(this,Tc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{w(this,wn)&&(s=Ds(w(this,wn)))}catch{}H(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};L0=new WeakMap,j0=new WeakMap,F0=new WeakMap,wn=new WeakMap,zu=new WeakMap,Tc=new WeakMap;let eo=q5;function r3(){return new Date().getTime()}function lte(t){return mt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function ute(t){return new Promise(e=>setTimeout(e,t))}const fte=BigInt(-1),fs=BigInt(0),pu=BigInt(1),dte=BigInt(5),Dl={};let Ou="0000";for(;Ou.length<80;)Ou+=Ou;function Ja(t){let e=Ou;for(;e.length=-s&&tfs?t=g0(ca(t,n),n):t=-g0(ca(-t,n),n)}else{const s=pu<=0&&ti[a]==null?l:(I(typeof i[a]===c,"invalid fixed format ("+a+" not "+c+")","format."+a,i[a]),i[a]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}I(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),I(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);const s=(e?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:e,width:r,decimals:n,name:s}}function hte(t,e){let r="";t0?n*=Ja(s):s<0&&(r*=Ja(-s)),rn?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=w(this,ot);return w(this,ot)fs&&(e+=w(this,jr)-pu),e=w(this,ot)/w(this,jr)*w(this,jr),Y(this,tt,Ci).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=dte*Ja(r-1);let s=this.value+n;const i=Ja(r);return s=s/i*i,$d(s,w(this,ms),"round"),new Bo(Dl,s,w(this,ms))}isZero(){return w(this,ot)===fs}isNegative(){return w(this,ot)0){const c=Ja(a);H(o%c===fs,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Ja(-a));return $d(o,i,"fromValue"),new Bo(Dl,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);I(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=Ex(r);let i=n[2]||"0",o=n[3]||"";for(;o.length{H(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const s=n3(t,e+1,n);return r(e+1+n+s),s3(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),s3(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=n3(t,e+1,n);r(e+1+n+s);const i=z(t.slice(e+1+n,e+1+n+s));return{consumed:1+n+s,result:i}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const s=z(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:pte(t[e])}}function x1(t){const e=Q(t,"data"),r=PR(e,0);return I(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function i3(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function OR(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(OR(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=i3(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(Q(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=i3(e.length);return r.unshift(183+r.length),r.concat(e)}const o3="0123456789abcdef";function Na(t){let e="0x";for(const r of OR(t))e+=o3[r>>4],e+=o3[r&15];return e}const RR=["wei","kwei","mwei","gwei","szabo","finney","ether"];function NR(t,e){let r=18;if(typeof e=="string"){const n=RR.indexOf(e);I(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return v0.fromValue(t,r,{decimals:r,width:512}).toString()}function og(t,e){I(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=RR.indexOf(e);I(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return v0.fromString(t,{decimals:r,width:512}).value}function yte(t){return NR(t,18)}function Dw(t){return og(t,18)}function _R(t){const e=Q(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=z(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Hr=32,Bw=new Uint8Array(Hr),gte=["then"],fp={},MR=new WeakMap;function oc(t){return MR.get(t)}function a3(t,e){MR.set(t,e)}function Wd(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function Lw(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof pl?Lw(oc(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof pl&&(o=Lw(oc(o),o,r)),n[s]=o),n},{})}var Hu;const vu=class vu extends Array{constructor(...r){const n=r[0];let s=r[1],i=(r[2]||[]).slice(),o=!0;n!==fp&&(s=r,i=[],o=!1);super(s.length);j(this,Hu);s.forEach((l,u)=>{this[u]=l});const a=i.reduce((l,u)=>(typeof u=="string"&&l.set(u,(l.get(u)||0)+1),l),new Map);if(a3(this,Object.freeze(s.map((l,u)=>{const f=i[u];return f!=null&&a.get(f)===1?f:null}))),T(this,Hu,[]),w(this,Hu)==null&&w(this,Hu),!o)return;Object.freeze(this);const c=new Proxy(this,{get:(l,u,f)=>{if(typeof u=="string"){if(u.match(/^[0-9]+$/)){const h=Pe(u,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const y=l[h];return y instanceof Error&&Wd(`index ${h}`,y),y}if(gte.indexOf(u)>=0)return Reflect.get(l,u,f);const d=l[u];if(d instanceof Function)return function(...h){return d.apply(this===f?l:this,h)};if(!(u in l))return l.getValue.apply(this===f?l:this,[u])}return Reflect.get(l,u,f)}});return a3(c,oc(this)),c}toArray(r){const n=[];return this.forEach((s,i)=>{s instanceof Error&&Wd(`index ${i}`,s),r&&s instanceof vu&&(s=s.toArray(r)),n.push(s)}),n}toObject(r){const n=oc(this);return n.reduce((s,i,o)=>(H(i!=null,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),Lw(n,this,r)),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const s=oc(this),i=[],o=[];for(let a=r;a{w(this,_i)[e]=c3(r)}}}_i=new WeakMap,Ic=new WeakMap,Gu=new WeakSet,qp=function(e){return w(this,_i).push(e),T(this,Ic,w(this,Ic)+e.length),e.length};var rn,En,Pc,Oc,$o,El,Uw,DR;const K5=class K5{constructor(e,r,n){j(this,El);_(this,"allowLoose");j(this,rn);j(this,En);j(this,Pc);j(this,Oc);j(this,$o);fe(this,{allowLoose:!!r}),T(this,rn,tr(e)),T(this,Pc,0),T(this,Oc,null),T(this,$o,n??1024),T(this,En,0)}get data(){return z(w(this,rn))}get dataLength(){return w(this,rn).length}get consumed(){return w(this,En)}get bytes(){return new Uint8Array(w(this,rn))}subReader(e){const r=new K5(w(this,rn).slice(w(this,En)+e),this.allowLoose,w(this,$o));return T(r,Oc,this),r}readBytes(e,r){let n=Y(this,El,DR).call(this,0,e,!!r);return Y(this,El,Uw).call(this,e),T(this,En,w(this,En)+n.length),n.slice(0,e)}readValue(){return bd(this.readBytes(Hr))}readIndex(){return vR(this.readBytes(Hr))}};rn=new WeakMap,En=new WeakMap,Pc=new WeakMap,Oc=new WeakMap,$o=new WeakMap,El=new WeakSet,Uw=function(e){var r;if(w(this,Oc))return Y(r=w(this,Oc),El,Uw).call(r,e);T(this,Pc,w(this,Pc)+e),H(w(this,$o)<1||w(this,Pc)<=w(this,$o)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${w(this,$o)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:tr(w(this,rn)),offset:w(this,En),length:e,info:{bytesRead:w(this,Pc),dataLength:this.dataLength}})},DR=function(e,r,n){let s=Math.ceil(r/Hr)*Hr;return w(this,En)+s>w(this,rn).length&&(this.allowLoose&&n&&w(this,En)+r<=w(this,rn).length?s=r:H(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:tr(w(this,rn)),length:w(this,rn).length,offset:w(this,En)+s})),w(this,rn).slice(w(this,En),w(this,En)+s)};let Fw=K5;function An(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function bk(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function BR(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");An(t.outputLen),An(t.blockLen)}function Vf(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function LR(t,e){bk(t);const r=e.outputLen;if(t.lengtht instanceof Uint8Array,Kp=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Qp=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ws=(t,e)=>t<<32-e|t>>>e,mte=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!mte)throw new Error("Non little-endian hardware is not supported");const xte=async()=>{};async function l3(t,e,r){let n=Date.now();for(let s=0;s=0&&in+s.length,0));let r=0;return t.forEach(n=>{if(!jR(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}let wk=class{clone(){return this._cloneInto()}};const Ete={}.toString;function FR(t,e){if(e!==void 0&&Ete.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function Lv(t){const e=n=>t().update(zf(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Cte(t=32){if(Cx&&typeof Cx.getRandomValues=="function")return Cx.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class UR extends wk{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,BR(e);const n=zf(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,i=new Uint8Array(s);i.set(n.length>s?e.create().update(n).digest():n);for(let o=0;onew UR(t,e).update(r).digest();jv.create=(t,e)=>new UR(t,e);function kte(t,e,r,n){BR(t);const s=FR({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(An(i),An(o),An(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=zf(e),l=zf(r),u=new Uint8Array(o),f=jv.create(t,c),d=f._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:f,PRFSalt:d}}function Ste(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function Ek(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=kte(t,e,r,n);let l;const u=new Uint8Array(4),f=Qp(u),d=new Uint8Array(a.outputLen);for(let h=1,y=0;y>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}class Ck extends wk{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Qp(this.buffer)}update(e){Vf(this);const{view:r,buffer:n,blockLen:s}=this;e=zf(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;ft&e^~t&r,Ite=(t,e,r)=>t&e^t&r^e&r,Pte=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]),Eo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Co=new Uint32Array(64);let Ote=class extends Ck{constructor(){super(64,32,8,!1),this.A=Eo[0]|0,this.B=Eo[1]|0,this.C=Eo[2]|0,this.D=Eo[3]|0,this.E=Eo[4]|0,this.F=Eo[5]|0,this.G=Eo[6]|0,this.H=Eo[7]|0}get(){const{A:e,B:r,C:n,D:s,E:i,F:o,G:a,H:c}=this;return[e,r,n,s,i,o,a,c]}set(e,r,n,s,i,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Co[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){const d=Co[f-15],h=Co[f-2],y=Ws(d,7)^Ws(d,18)^d>>>3,p=Ws(h,17)^Ws(h,19)^h>>>10;Co[f]=p+Co[f-7]+y+Co[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Ws(a,6)^Ws(a,11)^Ws(a,25),h=u+d+Tte(a,c,l)+Pte[f]+Co[f]|0,p=(Ws(n,2)^Ws(n,13)^Ws(n,22))+Ite(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){Co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const wd=Lv(()=>new Ote),dp=BigInt(2**32-1),$w=BigInt(32);function $R(t,e=!1){return e?{h:Number(t&dp),l:Number(t>>$w&dp)}:{h:Number(t>>$w&dp)|0,l:Number(t&dp)|0}}function WR(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<<$w|BigInt(e>>>0),Nte=(t,e,r)=>t>>>r,_te=(t,e,r)=>t<<32-r|e>>>r,Mte=(t,e,r)=>t>>>r|e<<32-r,Dte=(t,e,r)=>t<<32-r|e>>>r,Bte=(t,e,r)=>t<<64-r|e>>>r-32,Lte=(t,e,r)=>t>>>r-32|e<<64-r,jte=(t,e)=>e,Fte=(t,e)=>t,VR=(t,e,r)=>t<>>32-r,zR=(t,e,r)=>e<>>32-r,HR=(t,e,r)=>e<>>64-r,GR=(t,e,r)=>t<>>64-r;function Ute(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const $te=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Wte=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Vte=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),zte=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Hte=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Gte=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Be={fromBig:$R,split:WR,toBig:Rte,shrSH:Nte,shrSL:_te,rotrSH:Mte,rotrSL:Dte,rotrBH:Bte,rotrBL:Lte,rotr32H:jte,rotr32L:Fte,rotlSH:VR,rotlSL:zR,rotlBH:HR,rotlBL:GR,add:Ute,add3L:$te,add3H:Wte,add4L:Vte,add4H:zte,add5H:Gte,add5L:Hte},[qte,Kte]=Be.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),ko=new Uint32Array(80),So=new Uint32Array(80);class Qte extends Ck{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:o,Dh:a,Dl:c,Eh:l,El:u,Fh:f,Fl:d,Gh:h,Gl:y,Hh:p,Hl:b}=this;return[e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b]}set(e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=f|0,this.Fl=d|0,this.Gh=h|0,this.Gl=y|0,this.Hh=p|0,this.Hl=b|0}process(e,r){for(let m=0;m<16;m++,r+=4)ko[m]=e.getUint32(r),So[m]=e.getUint32(r+=4);for(let m=16;m<80;m++){const k=ko[m-15]|0,A=So[m-15]|0,P=Be.rotrSH(k,A,1)^Be.rotrSH(k,A,8)^Be.shrSH(k,A,7),R=Be.rotrSL(k,A,1)^Be.rotrSL(k,A,8)^Be.shrSL(k,A,7),N=ko[m-2]|0,V=So[m-2]|0,F=Be.rotrSH(N,V,19)^Be.rotrBH(N,V,61)^Be.shrSH(N,V,6),X=Be.rotrSL(N,V,19)^Be.rotrBL(N,V,61)^Be.shrSL(N,V,6),re=Be.add4L(R,X,So[m-7],So[m-16]),le=Be.add4H(re,P,F,ko[m-7],ko[m-16]);ko[m]=le|0,So[m]=re|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:f,El:d,Fh:h,Fl:y,Gh:p,Gl:b,Hh:g,Hl:v}=this;for(let m=0;m<80;m++){const k=Be.rotrSH(f,d,14)^Be.rotrSH(f,d,18)^Be.rotrBH(f,d,41),A=Be.rotrSL(f,d,14)^Be.rotrSL(f,d,18)^Be.rotrBL(f,d,41),P=f&h^~f&p,R=d&y^~d&b,N=Be.add5L(v,A,R,Kte[m],So[m]),V=Be.add5H(N,g,k,P,qte[m],ko[m]),F=N|0,X=Be.rotrSH(n,s,28)^Be.rotrBH(n,s,34)^Be.rotrBH(n,s,39),re=Be.rotrSL(n,s,28)^Be.rotrBL(n,s,34)^Be.rotrBL(n,s,39),le=n&i^n&a^i&a,ee=s&o^s&c^o&c;g=p|0,v=b|0,p=h|0,b=y|0,h=f|0,y=d|0,{h:f,l:d}=Be.add(l|0,u|0,V|0,F|0),l=a|0,u=c|0,a=i|0,c=o|0,i=n|0,o=s|0;const B=Be.add3L(F,re,ee);n=Be.add3H(B,V,X,le),s=B|0}({h:n,l:s}=Be.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Be.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Be.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Be.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:f,l:d}=Be.add(this.Eh|0,this.El|0,f|0,d|0),{h,l:y}=Be.add(this.Fh|0,this.Fl|0,h|0,y|0),{h:p,l:b}=Be.add(this.Gh|0,this.Gl|0,p|0,b|0),{h:g,l:v}=Be.add(this.Hh|0,this.Hl|0,g|0,v|0),this.set(n,s,i,o,a,c,l,u,f,d,h,y,p,b,g,v)}roundClean(){ko.fill(0),So.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)}}const kk=Lv(()=>new Qte);function Jte(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const u3=Jte(),f3=u3.crypto||u3.msCrypto;function qR(t){switch(t){case"sha256":return wd.create();case"sha512":return kk.create()}I(!1,"invalid hashing algorithm name","algorithm",t)}function Yte(t,e){const r={sha256:wd,sha512:kk}[t];return I(r!=null,"invalid hmac algorithm","algorithm",t),jv.create(r,e)}function Xte(t,e,r,n,s){const i={sha256:wd,sha512:kk}[s];return I(i!=null,"invalid pbkdf2 algorithm","algorithm",s),Ek(i,t,e,{c:r,dkLen:n})}function Zte(t){H(f3!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),I(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return f3.getRandomValues(e),e}let KR=!1;const QR=function(t,e,r){return Yte(t,e).update(r).digest()};let JR=QR;function Wa(t,e,r){const n=Q(e,"key"),s=Q(r,"data");return z(JR(t,n,s))}Wa._=QR;Wa.lock=function(){KR=!0};Wa.register=function(t){if(KR)throw new Error("computeHmac is locked");JR=t};Object.freeze(Wa);const[YR,XR,ZR]=[[],[],[]],ere=BigInt(0),Vd=BigInt(1),tre=BigInt(2),rre=BigInt(7),nre=BigInt(256),sre=BigInt(113);for(let t=0,e=Vd,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],YR.push(2*(5*n+r)),XR.push((t+1)*(t+2)/2%64);let s=ere;for(let i=0;i<7;i++)e=(e<>rre)*sre)%nre,e&tre&&(s^=Vd<<(Vd<r>32?HR(t,e,r):VR(t,e,r),h3=(t,e,r)=>r>32?GR(t,e,r):zR(t,e,r);function are(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],f=d3(l,u,1)^r[a],d=h3(l,u,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=d}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=XR[o],c=d3(s,i,a),l=h3(s,i,a),u=YR[o];s=t[u],i=t[u+1],t[u]=c,t[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=ire[n],t[1]^=ore[n]}r.fill(0)}class Sk extends wk{constructor(e,r,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,An(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Kp(this.state)}keccak(){are(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Vf(this);const{blockLen:r,state:n}=this;e=zf(e);const s=e.length;for(let i=0;i=n&&this.keccak();const o=Math.min(n-this.posOut,i-s);e.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return An(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(LR(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new Sk(r,n,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const cre=(t,e,r)=>Lv(()=>new Sk(e,t,r)),lre=cre(1,136,256/8);let eN=!1;const tN=function(t){return lre(t)};let rN=tN;function Me(t){const e=Q(t,"data");return z(rN(e))}Me._=tN;Me.lock=function(){eN=!0};Me.register=function(t){if(eN)throw new TypeError("keccak256 is locked");rN=t};Object.freeze(Me);const ure=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),nN=Uint8Array.from({length:16},(t,e)=>e),fre=nN.map(t=>(9*t+5)%16);let Ak=[nN],Tk=[fre];for(let t=0;t<4;t++)for(let e of[Ak,Tk])e.push(e[t].map(r=>ure[r]));const sN=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),dre=Ak.map((t,e)=>t.map(r=>sN[e][r])),hre=Tk.map((t,e)=>t.map(r=>sN[e][r])),pre=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),yre=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),hp=(t,e)=>t<>>32-e;function p3(t,e,r,n){return t===0?e^r^n:t===1?e&r|~e&n:t===2?(e|~r)^n:t===3?e&n|r&~n:e^(r|~n)}const pp=new Uint32Array(16);class gre extends Ck{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:r,h2:n,h3:s,h4:i}=this;return[e,r,n,s,i]}set(e,r,n,s,i){this.h0=e|0,this.h1=r|0,this.h2=n|0,this.h3=s|0,this.h4=i|0}process(e,r){for(let h=0;h<16;h++,r+=4)pp[h]=e.getUint32(r,!0);let n=this.h0|0,s=n,i=this.h1|0,o=i,a=this.h2|0,c=a,l=this.h3|0,u=l,f=this.h4|0,d=f;for(let h=0;h<5;h++){const y=4-h,p=pre[h],b=yre[h],g=Ak[h],v=Tk[h],m=dre[h],k=hre[h];for(let A=0;A<16;A++){const P=hp(n+p3(h,i,a,l)+pp[g[A]]+p,m[A])+f|0;n=f,f=l,l=hp(a,10)|0,a=i,i=P}for(let A=0;A<16;A++){const P=hp(s+p3(y,o,c,u)+pp[v[A]]+b,k[A])+d|0;s=d,d=u,u=hp(c,10)|0,c=o,o=P}}this.set(this.h1+a+u|0,this.h2+l+d|0,this.h3+f+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){pp.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const vre=Lv(()=>new gre);let iN=!1;const oN=function(t){return vre(t)};let aN=oN;function Va(t){const e=Q(t,"data");return z(aN(e))}Va._=oN;Va.lock=function(){iN=!0};Va.register=function(t){if(iN)throw new TypeError("ripemd160 is locked");aN=t};Object.freeze(Va);let cN=!1;const lN=function(t,e,r,n,s){return Xte(t,e,r,n,s)};let uN=lN;function wi(t,e,r,n,s){const i=Q(t,"password"),o=Q(e,"salt");return z(uN(i,o,r,n,s))}wi._=lN;wi.lock=function(){cN=!0};wi.register=function(t){if(cN)throw new Error("pbkdf2 is locked");uN=t};Object.freeze(wi);let fN=!1;const dN=function(t){return new Uint8Array(Zte(t))};let hN=dN;function Nr(t){return hN(t)}Nr._=dN;Nr.lock=function(){fN=!0};Nr.register=function(t){if(fN)throw new Error("randomBytes is locked");hN=t};Object.freeze(Nr);const Ke=(t,e)=>t<>>32-e;function y3(t,e,r,n,s,i){let o=t[e++]^r[n++],a=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],f=t[e++]^r[n++],d=t[e++]^r[n++],h=t[e++]^r[n++],y=t[e++]^r[n++],p=t[e++]^r[n++],b=t[e++]^r[n++],g=t[e++]^r[n++],v=t[e++]^r[n++],m=t[e++]^r[n++],k=t[e++]^r[n++],A=t[e++]^r[n++],P=o,R=a,N=c,V=l,F=u,X=f,re=d,le=h,ee=y,B=p,G=b,Z=g,E=v,S=m,O=k,D=A;for(let L=0;L<8;L+=2)F^=Ke(P+E|0,7),ee^=Ke(F+P|0,9),E^=Ke(ee+F|0,13),P^=Ke(E+ee|0,18),B^=Ke(X+R|0,7),S^=Ke(B+X|0,9),R^=Ke(S+B|0,13),X^=Ke(R+S|0,18),O^=Ke(G+re|0,7),N^=Ke(O+G|0,9),re^=Ke(N+O|0,13),G^=Ke(re+N|0,18),V^=Ke(D+Z|0,7),le^=Ke(V+D|0,9),Z^=Ke(le+V|0,13),D^=Ke(Z+le|0,18),R^=Ke(P+V|0,7),N^=Ke(R+P|0,9),V^=Ke(N+R|0,13),P^=Ke(V+N|0,18),re^=Ke(X+F|0,7),le^=Ke(re+X|0,9),F^=Ke(le+re|0,13),X^=Ke(F+le|0,18),Z^=Ke(G+B|0,7),ee^=Ke(Z+G|0,9),B^=Ke(ee+Z|0,13),G^=Ke(B+ee|0,18),E^=Ke(D+O|0,7),S^=Ke(E+D|0,9),O^=Ke(S+E|0,13),D^=Ke(O+S|0,18);s[i++]=o+P|0,s[i++]=a+R|0,s[i++]=c+N|0,s[i++]=l+V|0,s[i++]=u+F|0,s[i++]=f+X|0,s[i++]=d+re|0,s[i++]=h+le|0,s[i++]=y+ee|0,s[i++]=p+B|0,s[i++]=b+G|0,s[i++]=g+Z|0,s[i++]=v+E|0,s[i++]=m+S|0,s[i++]=k+O|0,s[i++]=A+D|0}function Ru(t,e,r,n,s){let i=n+0,o=n+16*s;for(let a=0;a<16;a++)r[o+a]=t[e+(2*s-1)*16+a];for(let a=0;a0&&(o+=16),y3(r,i,t,e+=16,r,o)}function pN(t,e,r){const n=FR({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(An(s),An(i),An(o),An(a),An(c),An(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const f=128*i,d=f/4;if(s<=1||s&s-1||s>=2**(f/8)||s>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(o<0||o>(2**32-1)*32/f)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=f*(s+o);if(h>l)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${l} (maxmem)`);const y=Ek(wd,t,e,{c:1,dkLen:f*o}),p=Kp(y),b=Kp(new Uint8Array(f*s)),g=Kp(new Uint8Array(f));let v=()=>{};if(u){const m=2*s*o,k=Math.max(Math.floor(m/1e4),1);let A=0;v=()=>{A++,u&&(!(A%k)||A===m)&&u(A/m)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:d,V:b,B32:p,B:y,tmp:g,blockMixCb:v,asyncTick:c}}function yN(t,e,r,n,s){const i=Ek(wd,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function mre(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:f,blockMixCb:d}=pN(t,e,r);for(let h=0;h{Ru(c,b,c,b+=a,s),d()}),Ru(c,(n-1)*a,l,p,s),d(),await l3(n,h,()=>{const g=l[p+a-16]%n;for(let v=0;vt instanceof Uint8Array,wre=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Hf(t){if(!Uv(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rn+s.length,0));let r=0;return t.forEach(n=>{if(!Uv(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function Cre(t,e){if(t.length!==e.length)return!1;for(let r=0;rIN;t>>=Fv,e+=1);return e}function Are(t,e){return t>>BigInt(e)&Fv}const Tre=(t,e,r)=>t|(r?Fv:IN)<(bre<new Uint8Array(t),g3=t=>Uint8Array.from(t);function ON(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=kx(t),s=kx(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...f)=>r(s,n,...f),c=(f=kx())=>{s=a(g3([0]),f),n=a(),f.length!==0&&(s=a(g3([1]),f),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const d=[];for(;f{o(),c(f);let h;for(;!(h=d(l()));)c();return o(),h}}const Ire={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function w1(t,e,r={}){const n=(s,i,o)=>{const a=Ire[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[s];if(!(o&&c===void 0)&&!a(c,t))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(e))n(s,i,!1);for(const[s,i]of Object.entries(r))n(s,i,!0);return t}const Pre=Object.freeze(Object.defineProperty({__proto__:null,bitGet:Are,bitLen:Sre,bitMask:Rk,bitSet:Tre,bytesToHex:Hf,bytesToNumberBE:Xc,bytesToNumberLE:Pk,concatBytes:m0,createHmacDrbg:ON,ensureBytes:ys,equalBytes:Cre,hexToBytes:Gf,hexToNumber:Ik,numberToBytesBE:qf,numberToBytesLE:Ok,numberToHexUnpadded:PN,numberToVarBytesBE:Ere,utf8ToBytes:kre,validateObject:w1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nr=BigInt(0),Mt=BigInt(1),ac=BigInt(2),Ore=BigInt(3),Ww=BigInt(4),v3=BigInt(5),m3=BigInt(8);BigInt(9);BigInt(16);function on(t,e){const r=t%e;return r>=nr?r:e+r}function Rre(t,e,r){if(r<=nr||e 0");if(r===Mt)return nr;let n=Mt;for(;e>nr;)e&Mt&&(n=n*t%r),t=t*t%r,e>>=Mt;return n}function Bn(t,e,r){let n=t;for(;e-- >nr;)n*=n,n%=r;return n}function Vw(t,e){if(t===nr||e<=nr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=on(t,e),n=e,s=nr,i=Mt;for(;r!==nr;){const a=n/r,c=n%r,l=s-i*a;n=r,r=c,s=i,i=l}if(n!==Mt)throw new Error("invert: does not exist");return on(s,e)}function Nre(t){const e=(t-Mt)/ac;let r,n,s;for(r=t-Mt,n=0;r%ac===nr;r/=ac,n++);for(s=ac;s(n[s]="function",n),e);return w1(t,r)}function Bre(t,e,r){if(r 0");if(r===nr)return t.ONE;if(r===Mt)return e;let n=t.ONE,s=e;for(;r>nr;)r&Mt&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Mt;return n}function Lre(t,e){const r=new Array(e.length),n=e.reduce((i,o,a)=>t.is0(o)?i:(r[a]=i,t.mul(i,o)),t.ONE),s=t.inv(n);return e.reduceRight((i,o,a)=>t.is0(o)?i:(r[a]=t.mul(i,r[a]),t.mul(i,o)),s),r}function RN(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function jre(t,e,r=!1,n={}){if(t<=nr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=RN(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=_re(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:Rk(s),ZERO:nr,ONE:Mt,create:c=>on(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return nr<=c&&cc===nr,isOdd:c=>(c&Mt)===Mt,neg:c=>on(-c,t),eql:(c,l)=>c===l,sqr:c=>on(c*c,t),add:(c,l)=>on(c+l,t),sub:(c,l)=>on(c-l,t),mul:(c,l)=>on(c*l,t),pow:(c,l)=>Bre(a,c,l),div:(c,l)=>on(c*Vw(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Vw(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>Lre(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?Ok(c,i):qf(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?Pk(c):Xc(c)}});return Object.freeze(a)}function NN(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function _N(t){const e=NN(t);return e+Math.ceil(e/2)}function Fre(t,e,r=!1){const n=t.length,s=NN(e),i=_N(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?Xc(t):Pk(t),a=on(o,e-Mt)+Mt;return r?Ok(a,s):qf(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ure=BigInt(0),Sx=BigInt(1);function $re(t,e){const r=(s,i)=>{const o=i.negate();return s?o:i},n=s=>{const i=Math.ceil(e/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,i){let o=t.ZERO,a=s;for(;i>Ure;)i&Sx&&(o=o.add(a)),a=a.double(),i>>=Sx;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let f=0;f>=h,b>c&&(b-=d,o+=Sx);const g=p,v=p+Math.abs(b)-1,m=y%2!==0,k=b<0;b===0?u=u.add(r(m,i[g])):l=l.add(r(k,i[v]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function MN(t){return Dre(t.Fp),w1(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...RN(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Wre(t){const e=MN(t);w1(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Vre,hexToBytes:zre}=Pre,vc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=vc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Vre(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=vc,r=typeof t=="string"?zre(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:s,l:i}=vc._parseInt(r.subarray(2)),{d:o,l:a}=vc._parseInt(i);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(t){const e=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},n=e(r(t.s)),s=e(r(t.r)),i=n.length/2,o=s.length/2,a=r(i),c=r(o);return`30${r(o+i+4)}02${c}${s}02${a}${n}`}},zi=BigInt(0),Qn=BigInt(1);BigInt(2);const x3=BigInt(3);BigInt(4);function Hre(t){const e=Wre(t),{Fp:r}=e,n=e.toBytes||((y,p,b)=>{const g=p.toAffine();return m0(Uint8Array.from([4]),r.toBytes(g.x),r.toBytes(g.y))}),s=e.fromBytes||(y=>{const p=y.subarray(1),b=r.fromBytes(p.subarray(0,r.BYTES)),g=r.fromBytes(p.subarray(r.BYTES,2*r.BYTES));return{x:b,y:g}});function i(y){const{a:p,b}=e,g=r.sqr(y),v=r.mul(g,y);return r.add(r.add(v,r.mul(y,p)),b)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(y){return typeof y=="bigint"&&zir.eql(m,r.ZERO);return v(b)&&v(g)?f.ZERO:new f(b,g,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=r.invertBatch(p.map(g=>g.pz));return p.map((g,v)=>g.toAffine(b[v])).map(f.fromAffine)}static fromHex(p){const b=f.fromAffine(s(ys("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return f.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!r.isValid(p)||!r.isValid(b))throw new Error("bad point: x or y not FE");const g=r.sqr(b),v=i(p);if(!r.eql(g,v))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(r.isOdd)return!r.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:g,pz:v}=this,{px:m,py:k,pz:A}=p,P=r.eql(r.mul(b,A),r.mul(m,v)),R=r.eql(r.mul(g,A),r.mul(k,v));return P&&R}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){const{a:p,b}=e,g=r.mul(b,x3),{px:v,py:m,pz:k}=this;let A=r.ZERO,P=r.ZERO,R=r.ZERO,N=r.mul(v,v),V=r.mul(m,m),F=r.mul(k,k),X=r.mul(v,m);return X=r.add(X,X),R=r.mul(v,k),R=r.add(R,R),A=r.mul(p,R),P=r.mul(g,F),P=r.add(A,P),A=r.sub(V,P),P=r.add(V,P),P=r.mul(A,P),A=r.mul(X,A),R=r.mul(g,R),F=r.mul(p,F),X=r.sub(N,F),X=r.mul(p,X),X=r.add(X,R),R=r.add(N,N),N=r.add(R,N),N=r.add(N,F),N=r.mul(N,X),P=r.add(P,N),F=r.mul(m,k),F=r.add(F,F),N=r.mul(F,X),A=r.sub(A,N),R=r.mul(F,V),R=r.add(R,R),R=r.add(R,R),new f(A,P,R)}add(p){u(p);const{px:b,py:g,pz:v}=this,{px:m,py:k,pz:A}=p;let P=r.ZERO,R=r.ZERO,N=r.ZERO;const V=e.a,F=r.mul(e.b,x3);let X=r.mul(b,m),re=r.mul(g,k),le=r.mul(v,A),ee=r.add(b,g),B=r.add(m,k);ee=r.mul(ee,B),B=r.add(X,re),ee=r.sub(ee,B),B=r.add(b,v);let G=r.add(m,A);return B=r.mul(B,G),G=r.add(X,le),B=r.sub(B,G),G=r.add(g,v),P=r.add(k,A),G=r.mul(G,P),P=r.add(re,le),G=r.sub(G,P),N=r.mul(V,B),P=r.mul(F,le),N=r.add(P,N),P=r.sub(re,N),N=r.add(re,N),R=r.mul(P,N),re=r.add(X,X),re=r.add(re,X),le=r.mul(V,le),B=r.mul(F,B),re=r.add(re,le),le=r.sub(X,le),le=r.mul(V,le),B=r.add(B,le),X=r.mul(re,B),R=r.add(R,X),X=r.mul(G,B),P=r.mul(ee,P),P=r.sub(P,X),X=r.mul(ee,re),N=r.mul(G,N),N=r.add(N,X),new f(P,R,N)}subtract(p){return this.add(p.negate())}is0(){return this.equals(f.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const g=r.invertBatch(b.map(v=>v.pz));return b.map((v,m)=>v.toAffine(g[m])).map(f.fromAffine)})}multiplyUnsafe(p){const b=f.ZERO;if(p===zi)return b;if(a(p),p===Qn)return this;const{endo:g}=e;if(!g)return h.unsafeLadder(this,p);let{k1neg:v,k1:m,k2neg:k,k2:A}=g.splitScalar(p),P=b,R=b,N=this;for(;m>zi||A>zi;)m&Qn&&(P=P.add(N)),A&Qn&&(R=R.add(N)),N=N.double(),m>>=Qn,A>>=Qn;return v&&(P=P.negate()),k&&(R=R.negate()),R=new f(r.mul(R.px,g.beta),R.py,R.pz),P.add(R)}multiply(p){a(p);let b=p,g,v;const{endo:m}=e;if(m){const{k1neg:k,k1:A,k2neg:P,k2:R}=m.splitScalar(b);let{p:N,f:V}=this.wNAF(A),{p:F,f:X}=this.wNAF(R);N=h.constTimeNegate(k,N),F=h.constTimeNegate(P,F),F=new f(r.mul(F.px,m.beta),F.py,F.pz),g=N.add(F),v=V.add(X)}else{const{p:k,f:A}=this.wNAF(b);g=k,v=A}return f.normalizeZ([g,v])[0]}multiplyAndAddUnsafe(p,b,g){const v=f.BASE,m=(A,P)=>P===zi||P===Qn||!A.equals(v)?A.multiplyUnsafe(P):A.multiply(P),k=m(this,b).add(m(p,g));return k.is0()?void 0:k}toAffine(p){const{px:b,py:g,pz:v}=this,m=this.is0();p==null&&(p=m?r.ONE:r.inv(v));const k=r.mul(b,p),A=r.mul(g,p),P=r.mul(v,p);if(m)return{x:r.ZERO,y:r.ZERO};if(!r.eql(P,r.ONE))throw new Error("invZ was invalid");return{x:k,y:A}}isTorsionFree(){const{h:p,isTorsionFree:b}=e;if(p===Qn)return!0;if(b)return b(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=e;return p===Qn?this:b?b(f,this):this.multiplyUnsafe(e.h)}toRawBytes(p=!0){return this.assertValidity(),n(f,this,p)}toHex(p=!0){return Hf(this.toRawBytes(p))}}f.BASE=new f(e.Gx,e.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);const d=e.nBitLength,h=$re(f,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function Gre(t){const e=MN(t);return w1(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function qre(t){const e=Gre(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(B){return ziHf(qf(B,e.nByteLength));function y(B){const G=n>>Qn;return B>G}function p(B){return y(B)?a(-B):B}const b=(B,G,Z)=>Xc(B.slice(G,Z));class g{constructor(G,Z,E){this.r=G,this.s=Z,this.recovery=E,this.assertValidity()}static fromCompact(G){const Z=e.nByteLength;return G=ys("compactSignature",G,Z*2),new g(b(G,0,Z),b(G,Z,2*Z))}static fromDER(G){const{r:Z,s:E}=vc.toSig(ys("DER",G));return new g(Z,E)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(G){return new g(this.r,this.s,G)}recoverPublicKey(G){const{r:Z,s:E,recovery:S}=this,O=R(ys("msgHash",G));if(S==null||![0,1,2,3].includes(S))throw new Error("recovery id invalid");const D=S===2||S===3?Z+e.n:Z;if(D>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const L=S&1?"03":"02",W=l.fromHex(L+h(D)),q=c(D),te=a(-O*q),J=a(E*q),$=l.BASE.multiplyAndAddUnsafe(W,te,J);if(!$)throw new Error("point at infinify");return $.assertValidity(),$}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new g(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Gf(this.toDERHex())}toDERHex(){return vc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gf(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const v={isValidPrivateKey(B){try{return u(B),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const B=_N(e.n);return Fre(e.randomBytes(B),e.n)},precompute(B=8,G=l.BASE){return G._setWindowSize(B),G.multiply(BigInt(3)),G}};function m(B,G=!0){return l.fromPrivateKey(B).toRawBytes(G)}function k(B){const G=B instanceof Uint8Array,Z=typeof B=="string",E=(G||Z)&&B.length;return G?E===s||E===i:Z?E===2*s||E===2*i:B instanceof l}function A(B,G,Z=!0){if(k(B))throw new Error("first arg must be private key");if(!k(G))throw new Error("second arg must be public key");return l.fromHex(G).multiply(u(B)).toRawBytes(Z)}const P=e.bits2int||function(B){const G=Xc(B),Z=B.length*8-e.nBitLength;return Z>0?G>>BigInt(Z):G},R=e.bits2int_modN||function(B){return a(P(B))},N=Rk(e.nBitLength);function V(B){if(typeof B!="bigint")throw new Error("bigint expected");if(!(zi<=B&&Bue in Z))throw new Error("sign() legacy options not supported");const{hash:E,randomBytes:S}=e;let{lowS:O,prehash:D,extraEntropy:L}=Z;O==null&&(O=!0),B=ys("msgHash",B),D&&(B=ys("prehashed msgHash",E(B)));const W=R(B),q=u(G),te=[V(q),V(W)];if(L!=null){const ue=L===!0?S(r.BYTES):L;te.push(ys("extraEntropy",ue))}const J=m0(...te),$=W;function K(ue){const he=P(ue);if(!d(he))return;const oe=c(he),ke=l.BASE.multiply(he).toAffine(),_e=a(ke.x);if(_e===zi)return;const xt=a(oe*a($+_e*q));if(xt===zi)return;let tn=(ke.x===_e?0:2)|Number(ke.y&Qn),wr=xt;return O&&y(xt)&&(wr=p(xt),tn^=1),new g(_e,wr,tn)}return{seed:J,k2sig:K}}const X={lowS:e.lowS,prehash:!1},re={lowS:e.lowS,prehash:!1};function le(B,G,Z=X){const{seed:E,k2sig:S}=F(B,G,Z),O=e;return ON(O.hash.outputLen,O.nByteLength,O.hmac)(E,S)}l.BASE._setWindowSize(8);function ee(B,G,Z,E=re){var ke;const S=B;if(G=ys("msgHash",G),Z=ys("publicKey",Z),"strict"in E)throw new Error("options.strict was renamed to lowS");const{lowS:O,prehash:D}=E;let L,W;try{if(typeof S=="string"||S instanceof Uint8Array)try{L=g.fromDER(S)}catch(_e){if(!(_e instanceof vc.Err))throw _e;L=g.fromCompact(S)}else if(typeof S=="object"&&typeof S.r=="bigint"&&typeof S.s=="bigint"){const{r:_e,s:xt}=S;L=new g(_e,xt)}else throw new Error("PARSE");W=l.fromHex(Z)}catch(_e){if(_e.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(O&&L.hasHighS())return!1;D&&(G=e.hash(G));const{r:q,s:te}=L,J=R(G),$=c(te),K=a(J*$),ue=a(q*$),he=(ke=l.BASE.multiplyAndAddUnsafe(W,K,ue))==null?void 0:ke.toAffine();return he?a(he.x)===q:!1}return{CURVE:e,getPublicKey:m,getSharedSecret:A,sign:le,verify:ee,ProjectivePoint:l,Signature:g,utils:v}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Kre(t){return{hash:t,hmac:(e,...r)=>jv(t,e,wte(...r)),randomBytes:Cte}}function Qre(t,e){const r=n=>qre({...t,...Kre(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const DN=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),b3=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Jre=BigInt(1),zw=BigInt(2),w3=(t,e)=>(t+e/zw)/e;function Yre(t){const e=DN,r=BigInt(3),n=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,u=l*l*t%e,f=Bn(u,r,e)*u%e,d=Bn(f,r,e)*u%e,h=Bn(d,zw,e)*l%e,y=Bn(h,s,e)*h%e,p=Bn(y,i,e)*y%e,b=Bn(p,a,e)*p%e,g=Bn(b,c,e)*b%e,v=Bn(g,a,e)*p%e,m=Bn(v,r,e)*u%e,k=Bn(m,o,e)*y%e,A=Bn(k,n,e)*l%e,P=Bn(A,zw,e);if(!Hw.eql(Hw.sqr(P),t))throw new Error("Cannot find square root");return P}const Hw=jre(DN,void 0,void 0,{sqrt:Yre}),Ro=Qre({a:BigInt(0),b:BigInt(7),Fp:Hw,n:b3,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=b3,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-Jre*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=w3(i*t,e),c=w3(-n*t,e);let l=on(t-a*r-c*s,e),u=on(-a*n-c*i,e);const f=l>o,d=u>o;if(f&&(l=e-l),d&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:l,k2neg:d,k2:u}}}},wd);BigInt(0);Ro.ProjectivePoint;const xi="0x0000000000000000000000000000000000000000",yl="0x0000000000000000000000000000000000000000000000000000000000000000",Xre=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Zre=BigInt("1000000000000000000"),BN=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ene=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),tne=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),rne="Īž",LN=`Ethereum Signed Message: +`,E3=BigInt(0),C3=BigInt(1),k3=BigInt(2),S3=BigInt(27),A3=BigInt(28),yp=BigInt(35),Bl={};function T3(t){return ss(rr(t),32)}var qu,Ku,Qu,Rc;const ds=class ds{constructor(e,r,n,s){j(this,qu);j(this,Ku);j(this,Qu);j(this,Rc);yo(e,Bl,"Signature"),T(this,qu,r),T(this,Ku,n),T(this,Qu,s),T(this,Rc,null)}get r(){return w(this,qu)}set r(e){I(ba(e)===32,"invalid r","value",e),T(this,qu,z(e))}get s(){return w(this,Ku)}set s(e){I(ba(e)===32,"invalid s","value",e);const r=z(e);I(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),T(this,Ku,r)}get v(){return w(this,Qu)}set v(e){const r=Pe(e,"value");I(r===27||r===28,"invalid v","v",e),T(this,Qu,r)}get networkV(){return w(this,Rc)}get legacyChainId(){const e=this.networkV;return e==null?null:ds.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=Q(this.s);return this.yParity&&(e[0]|=128),z(e)}get compactSerialized(){return Fe([this.r,this.yParityAndS])}get serialized(){return Fe([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 e=new ds(Bl,this.r,this.s,this.v);return this.networkV&&T(e,Rc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=xe(e,"v");return r==S3||r==A3?E3:(I(r>=yp,"invalid EIP-155 v","v",e),(r-yp)/k3)}static getChainIdV(e,r){return xe(e)*k3+BigInt(35+r-27)}static getNormalizedV(e){const r=xe(e);return r===E3||r===S3?27:r===C3||r===A3?28:(I(r>=yp,"invalid v","v",e),r&C3?27:28)}static from(e){function r(l,u){I(l,u,"signature",e)}if(e==null)return new ds(Bl,yl,yl,27);if(typeof e=="string"){const l=Q(e,"signature");if(l.length===64){const u=z(l.slice(0,32)),f=l.slice(32,64),d=f[0]&128?28:27;return f[0]&=127,new ds(Bl,u,z(f),d)}if(l.length===65){const u=z(l.slice(0,32)),f=l.slice(32,64);r((f[0]&128)===0,"non-canonical s");const d=ds.getNormalizedV(l[64]);return new ds(Bl,u,z(f),d)}r(!1,"invalid raw signature length")}if(e instanceof ds)return e.clone();const n=e.r;r(n!=null,"missing r");const s=T3(n),i=function(l,u){if(l!=null)return T3(l);if(u!=null){r(qe(u,32),"invalid yParityAndS");const f=Q(u);return f[0]&=127,z(f)}r(!1,"missing s")}(e.s,e.yParityAndS);r((Q(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const d=xe(l);return{networkV:d>=yp?d:void 0,v:ds.getNormalizedV(d)}}if(u!=null)return r(qe(u,32),"invalid yParityAndS"),{v:Q(u)[0]&128?28:27};if(f!=null){switch(Pe(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new ds(Bl,s,i,a);return o&&T(c,Rc,o),r(e.yParity==null||Pe(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};qu=new WeakMap,Ku=new WeakMap,Qu=new WeakMap,Rc=new WeakMap;let cs=ds;var Mi;const fc=class fc{constructor(e){j(this,Mi);I(ba(e)===32,"invalid private key","privateKey","[REDACTED]"),T(this,Mi,z(e))}get privateKey(){return w(this,Mi)}get publicKey(){return fc.computePublicKey(w(this,Mi))}get compressedPublicKey(){return fc.computePublicKey(w(this,Mi),!0)}sign(e){I(ba(e)===32,"invalid digest length","digest",e);const r=Ro.sign(tr(e),tr(w(this,Mi)),{lowS:!0});return cs.from({r:On(r.r,32),s:On(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=fc.computePublicKey(e);return z(Ro.getSharedSecret(tr(w(this,Mi)),Q(r),!1))}static computePublicKey(e,r){let n=Q(e,"key");if(n.length===32){const i=Ro.getPublicKey(n,!!r);return z(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Ro.ProjectivePoint.fromHex(n);return z(s.toRawBytes(r))}static recoverPublicKey(e,r){I(ba(e)===32,"invalid digest length","digest",e);const n=cs.from(r);let s=Ro.Signature.fromCompact(tr(Fe([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey(tr(e));return I(i!=null,"invalid signautre for digest","signature",r),"0x"+i.toHex(!1)}static addPoints(e,r,n){const s=Ro.ProjectivePoint.fromHex(fc.computePublicKey(e).substring(2)),i=Ro.ProjectivePoint.fromHex(fc.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};Mi=new WeakMap;let Rs=fc;function nne(){Wa.lock(),Me.lock(),wi.lock(),Nr.lock(),Va.lock(),za.lock(),Ha.lock(),Qr.lock(),b1.lock(),Nr.lock()}const sne=BigInt(0),ine=BigInt(36);function I3(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=Q(Me(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const Nk={};for(let t=0;t<10;t++)Nk[String(t)]=String(t);for(let t=0;t<26;t++)Nk[String.fromCharCode(65+t)]=String(10+t);const P3=15;function jN(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>Nk[n]).join("");for(;e.length>=P3;){let n=e.substring(0,P3);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const one=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function ane(t){t=t.toLowerCase();let e=sne;for(let r=0;re.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 w(this,Nc)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return w(this,Nc)===!0?-1:w(this,Nc)===!1?this.value.length:null}static from(e,r){return new Ii(Ti,e,r)}static uint8(e){return pe(e,8)}static uint16(e){return pe(e,16)}static uint24(e){return pe(e,24)}static uint32(e){return pe(e,32)}static uint40(e){return pe(e,40)}static uint48(e){return pe(e,48)}static uint56(e){return pe(e,56)}static uint64(e){return pe(e,64)}static uint72(e){return pe(e,72)}static uint80(e){return pe(e,80)}static uint88(e){return pe(e,88)}static uint96(e){return pe(e,96)}static uint104(e){return pe(e,104)}static uint112(e){return pe(e,112)}static uint120(e){return pe(e,120)}static uint128(e){return pe(e,128)}static uint136(e){return pe(e,136)}static uint144(e){return pe(e,144)}static uint152(e){return pe(e,152)}static uint160(e){return pe(e,160)}static uint168(e){return pe(e,168)}static uint176(e){return pe(e,176)}static uint184(e){return pe(e,184)}static uint192(e){return pe(e,192)}static uint200(e){return pe(e,200)}static uint208(e){return pe(e,208)}static uint216(e){return pe(e,216)}static uint224(e){return pe(e,224)}static uint232(e){return pe(e,232)}static uint240(e){return pe(e,240)}static uint248(e){return pe(e,248)}static uint256(e){return pe(e,256)}static uint(e){return pe(e,256)}static int8(e){return pe(e,-8)}static int16(e){return pe(e,-16)}static int24(e){return pe(e,-24)}static int32(e){return pe(e,-32)}static int40(e){return pe(e,-40)}static int48(e){return pe(e,-48)}static int56(e){return pe(e,-56)}static int64(e){return pe(e,-64)}static int72(e){return pe(e,-72)}static int80(e){return pe(e,-80)}static int88(e){return pe(e,-88)}static int96(e){return pe(e,-96)}static int104(e){return pe(e,-104)}static int112(e){return pe(e,-112)}static int120(e){return pe(e,-120)}static int128(e){return pe(e,-128)}static int136(e){return pe(e,-136)}static int144(e){return pe(e,-144)}static int152(e){return pe(e,-152)}static int160(e){return pe(e,-160)}static int168(e){return pe(e,-168)}static int176(e){return pe(e,-176)}static int184(e){return pe(e,-184)}static int192(e){return pe(e,-192)}static int200(e){return pe(e,-200)}static int208(e){return pe(e,-208)}static int216(e){return pe(e,-216)}static int224(e){return pe(e,-224)}static int232(e){return pe(e,-232)}static int240(e){return pe(e,-240)}static int248(e){return pe(e,-248)}static int256(e){return pe(e,-256)}static int(e){return pe(e,-256)}static bytes1(e){return Qe(e,1)}static bytes2(e){return Qe(e,2)}static bytes3(e){return Qe(e,3)}static bytes4(e){return Qe(e,4)}static bytes5(e){return Qe(e,5)}static bytes6(e){return Qe(e,6)}static bytes7(e){return Qe(e,7)}static bytes8(e){return Qe(e,8)}static bytes9(e){return Qe(e,9)}static bytes10(e){return Qe(e,10)}static bytes11(e){return Qe(e,11)}static bytes12(e){return Qe(e,12)}static bytes13(e){return Qe(e,13)}static bytes14(e){return Qe(e,14)}static bytes15(e){return Qe(e,15)}static bytes16(e){return Qe(e,16)}static bytes17(e){return Qe(e,17)}static bytes18(e){return Qe(e,18)}static bytes19(e){return Qe(e,19)}static bytes20(e){return Qe(e,20)}static bytes21(e){return Qe(e,21)}static bytes22(e){return Qe(e,22)}static bytes23(e){return Qe(e,23)}static bytes24(e){return Qe(e,24)}static bytes25(e){return Qe(e,25)}static bytes26(e){return Qe(e,26)}static bytes27(e){return Qe(e,27)}static bytes28(e){return Qe(e,28)}static bytes29(e){return Qe(e,29)}static bytes30(e){return Qe(e,30)}static bytes31(e){return Qe(e,31)}static bytes32(e){return Qe(e,32)}static address(e){return new Ii(Ti,"address",e)}static bool(e){return new Ii(Ti,"bool",!!e)}static bytes(e){return new Ii(Ti,"bytes",e)}static string(e){return new Ii(Ti,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Ii(Ti,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===O3}static dereference(e,r){if(Ii.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};Nc=new WeakMap;let mr=Ii;class une extends go{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=mr.dereference(r,"string");try{n=Ae(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Ae(On(e.readValue(),20))}}class fne extends go{constructor(r){super(r.name,r.type,"_",r.dynamic);_(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function FN(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let c={};n=e.map(l=>{const u=l.localName;return H(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),H(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),c[u]=!0,r[u]})}else I(!1,"invalid tuple value","tuple",r);I(e.length===n.length,"types/value length mismatch","tuple",r);let s=new jw,i=new jw,o=[];e.forEach((c,l)=>{let u=n[l];if(c.dynamic){let f=i.length;c.encode(i,u);let d=s.writeUpdatableValue();o.push(h=>{d(h+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function UN(t,e){let r=[],n=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let a=t.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(Ft(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(a){if(Ft(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");r.push(o),n.push(i.localName||null)}),pl.fromItems(r,n)}class dne extends go{constructor(r,n,s){const i=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",i,s,o);_(this,"coder");_(this,"length");fe(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let s=0;so||s<-(o+xne))&&this._throwError("value out-of-bounds",n),s=Bv(s,8*Hr)}else(sca(i,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(s)}decode(r){let n=ca(r.readValue(),this.size*8);return this.signed&&(n=g0(n,this.size*8)),n}}class Ene extends $N{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,mt(mr.dereference(r,"string")))}decode(e){return Ds(super.decode(e))}}class gp extends go{constructor(r,n){let s=!1;const i=[];r.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,n,s);_(this,"coders");fe(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];this.coders.forEach(s=>{r.push(s.defaultValue())});const n=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[i]))}),Object.freeze(r)}encode(r,n){const s=mr.dereference(n,"tuple");return FN(r,this.coders,s)}decode(r){return UN(r,this.coders)}}function Dr(t){return Me(mt(t))}var Cne="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const R3=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),N3=4;function kne(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let A=1;A>--c&1}const f=31,d=2**f,h=d>>>1,y=h>>1,p=d-1;let b=0;for(let A=0;A1;){let F=P+R>>>1;A>>1|u(),N=N<<1^h,V=(V^h)<<1|h|1;v=N,m=1+V-N}let k=n-4;return g.map(A=>{switch(A-k){case 3:return k+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return k+256+(t[a++]<<8|t[a++]);case 1:return k+t[a++];default:return A-1}})}function Sne(t){let e=0;return()=>t[e++]}function WN(t){return Sne(kne(Ane(t)))}function Ane(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let r=t.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s=8&&(n[i++]=a>>(o-=8));return n}function Tne(t){return t&1?~t>>1:t>>1}function Ine(t,e){let r=Array(t);for(let n=0,s=0;n{let e=x0(t);if(e.length)return e})}function zN(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(Pne(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(One(r,t))}return e.flat()}function b0(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function HN(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;sn[o].push(i));return n}function Pne(t,e){let r=1+e(),n=e(),s=b0(e);return HN(s.length,1+t,e).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let d=f*n;return[c+f*r,l.map(h=>h+d)]})})}function One(t,e){let r=1+e();return HN(r,1+t,e).map(s=>[s[0],s.slice(1)])}function Rne(t){let e=[],r=x0(t);return s(n([]),[]),e;function n(i){let o=t(),a=b0(()=>{let c=x0(t).map(l=>r[l]);if(c.length)return n(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&e.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function Nne(t){return t.toString(16).toUpperCase().padStart(2,"0")}function GN(t){return`{${Nne(t)}}`}function _ne(t){let e=[];for(let r=0,n=t.length;r>24&255}function QN(t){return t&16777215}let Gw,_3,qw,Jp;function $ne(){let t=WN(Dne);Gw=new Map(VN(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),_3=new Set(x0(t)),qw=new Map,Jp=new Map;for(let[e,r]of zN(t)){if(!_3.has(e)&&r.length==2){let[n,s]=r,i=Jp.get(n);i||(i=new Map,Jp.set(n,i)),i.set(s,e)}qw.set(e,r.reverse())}}function JN(t){return t>=w0&&t=cg&&t=lg&&eug&&e0&&s(ug+l)}else{let o=qw.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=sh(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),s=o;else{let c=Wne(n,a);c>=0?n=c:s==0&&o==0?(e.push(n),n=a):(r.push(a),s=o)}}return n>=0&&e.push(n,...r),e}function XN(t){return YN(t).map(QN)}function zne(t){return Vne(YN(t))}const M3=45,ZN=".",e7=65039,t7=1,dg=t=>Array.from(t);function E0(t,e){return t.P.has(e)||t.Q.has(e)}class Hne extends Array{get is_emoji(){return!0}}let Kw,r7,mc,Qw,n7,Nu,Tx,Gl,sc,D3,Jw;function Dk(){if(Kw)return;let t=WN(Cne);const e=()=>x0(t),r=()=>new Set(e()),n=(u,f)=>f.forEach(d=>u.add(d));Kw=new Map(zN(t)),r7=r(),mc=e(),Qw=new Set(e().map(u=>mc[u])),mc=new Set(mc),n7=r(),r();let s=VN(t),i=t();const o=()=>{let u=new Set;return e().forEach(f=>n(u,s[f])),n(u,e()),u};Nu=b0(u=>{let f=b0(t).map(d=>d+96);if(f.length){let d=u>=i;f[0]-=32,f=Kf(f),d&&(f=`Restricted[${f}]`);let h=o(),y=o(),p=!t();return{N:f,P:h,Q:y,M:p,R:d}}}),Tx=r(),Gl=new Map;let a=e().concat(dg(Tx)).sort((u,f)=>u-f);a.forEach((u,f)=>{let d=t(),h=a[f]=d?a[f-d]:{V:[],M:new Map};h.V.push(u),Tx.has(u)||Gl.set(u,h)});for(let{V:u,M:f}of new Set(Gl.values())){let d=[];for(let y of u){let p=Nu.filter(g=>E0(g,y)),b=d.find(({G:g})=>p.some(v=>g.has(v)));b||(b={G:new Set,V:[]},d.push(b)),b.V.push(y),n(b.G,p)}let h=d.flatMap(y=>dg(y.G));for(let{G:y,V:p}of d){let b=new Set(h.filter(g=>!y.has(g)));for(let g of p)f.set(g,b)}}sc=new Set;let c=new Set;const l=u=>sc.has(u)?c.add(u):sc.add(u);for(let u of Nu){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of sc)!Gl.has(u)&&!c.has(u)&&Gl.set(u,t7);n(sc,XN(sc)),D3=Rne(t).map(u=>Hne.from(u)).sort(Mne),Jw=new Map;for(let u of D3){let f=[Jw];for(let d of u){let h=f.map(y=>{let p=y.get(d);return p||(p=new Map,y.set(d,p)),p});d===e7?f.push(...h):f=h}for(let d of f)d.V=u}}function Bk(t){return(s7(t)?"":`${Lk($v([t]))} `)+GN(t)}function Lk(t){return`"${t}"ā€Ž`}function Gne(t){if(t.length>=4&&t[2]==M3&&t[3]==M3)throw new Error(`invalid label extension: "${Kf(t.slice(0,4))}"`)}function qne(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function Kne(t){let e=t[0],r=R3.get(e);if(r)throw Ph(`leading ${r}`);let n=t.length,s=-1;for(let i=1;ie&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let s=0,i=t.length;for(let o=0;o{let i=_ne(s),o={input:i,offset:n};n+=i.length+1;try{let a=o.tokens=rse(i,e,r),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(qne(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))Gne(u),l="ASCII";else{let d=a.flatMap(h=>h.is_emoji?[]:h);if(!d.length)l="Emoji";else{if(mc.has(u[0]))throw Ph("leading combining mark");for(let p=1;po.has(a)):dg(o),!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>E0(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function Zne(t){let e=Nu;for(let r of t){let n=e.filter(s=>E0(s,r));if(!n.length)throw Nu.some(s=>E0(s,r))?o7(e[0],r):i7(r);if(e=n,n.length==1)break}return e}function ese(t){return t.map(({input:e,error:r,output:n})=>{if(r){let s=r.message;throw new Error(t.length==1?s:`Invalid label ${Lk($v(e,63))}: ${s}`)}return Kf(n)}).join(ZN)}function i7(t){return new Error(`disallowed character: ${Bk(t)}`)}function o7(t,e){let r=Bk(e),n=Nu.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function Ph(t){return new Error(`illegal placement: ${t}`)}function tse(t,e){for(let r of e)if(!E0(t,r))throw o7(t,r);if(t.M){let r=XN(e);for(let n=1,s=r.length;nN3)throw new Error(`excessive non-spacing marks: ${Lk($v(r.slice(n-1,i)))} (${i-n}/${N3})`);n=i}}}function rse(t,e,r){let n=[],s=[];for(t=t.slice().reverse();t.length;){let i=sse(t);if(i)s.length&&(n.push(e(s)),s=[]),n.push(r(i));else{let o=t.pop();if(sc.has(o))s.push(o);else{let a=Kw.get(o);if(a)s.push(...a);else if(!r7.has(o))throw i7(o)}}}return s.length&&n.push(e(s)),n}function nse(t){return t.filter(e=>e!=e7)}function sse(t,e){let r=Jw,n,s=t.length;for(;s&&(r=r.get(t[--s]),!!r);){let{V:i}=r;i&&(n=i,t.length=s)}return n}const a7=new Uint8Array(32);a7.fill(0);function B3(t){return I(t.length!==0,"invalid ENS name; empty component","comp",t),t}function jk(t){const e=mt(c7(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s{I(n.length<=r,`label ${JSON.stringify(t)} exceeds ${r} bytes`,"name",t);const s=new Uint8Array(n.length+1);return s.set(n,1),s[0]=s.length-1,s})))+"00"}function Ix(t,e){return{address:Ae(t),storageKeys:e.map((r,n)=>(I(qe(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function vo(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(I(r.length===2,"invalid slot set",`value[${n}]`,r),Ix(r[0],r[1])):(I(r!=null&&typeof r=="object","invalid address-slot set","value",t),Ix(r.address,r.storageKeys)));I(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return Ix(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function Ed(t){let e;return typeof t=="string"?e=Rs.computePublicKey(t,!1):e=t.publicKey,Ae(Me("0x"+e.substring(4)).substring(26))}function Jf(t,e){return Ed(Rs.recoverPublicKey(t,e))}const Yt=BigInt(0),ose=BigInt(2),ase=BigInt(27),cse=BigInt(28),lse=BigInt(35),use=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Px=4096*32;function L3(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=Qr(e).substring(4),"0x"+r}function Wv(t){return t==="0x"?null:Ae(t)}function Fk(t,e){try{return vo(t)}catch(r){I(!1,r.message,e,t)}}function E1(t,e){return t==="0x"?0:Pe(t,e)}function Dt(t,e){if(t==="0x")return Yt;const r=xe(t,e);return I(r<=use,"value exceeds uint size",e,r),r}function yt(t,e){const r=xe(t,"value"),n=rr(r);return I(n.length<=32,"value too large",`tx.${e}`,r),n}function Uk(t){return vo(t).map(e=>[e.address,e.storageKeys])}function fse(t,e){I(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;rs.data),r.map(s=>s.commitment),r.map(s=>s.proof)])]):Fe(["0x03",Na(n)])}var Js,Ju,Yu,Xu,Zu,ef,tf,rf,nf,sf,of,af,_c,Wo,Di,Vo,cf,Yp;const Pi=class Pi{constructor(){j(this,cf);j(this,Js);j(this,Ju);j(this,Yu);j(this,Xu);j(this,Zu);j(this,ef);j(this,tf);j(this,rf);j(this,nf);j(this,sf);j(this,of);j(this,af);j(this,_c);j(this,Wo);j(this,Di);j(this,Vo);T(this,Js,null),T(this,Ju,null),T(this,Xu,0),T(this,Zu,Yt),T(this,ef,null),T(this,tf,null),T(this,rf,null),T(this,Yu,"0x"),T(this,nf,Yt),T(this,sf,Yt),T(this,of,null),T(this,af,null),T(this,_c,null),T(this,Wo,null),T(this,Vo,null),T(this,Di,null)}get type(){return w(this,Js)}set type(e){switch(e){case null:T(this,Js,null);break;case 0:case"legacy":T(this,Js,0);break;case 1:case"berlin":case"eip-2930":T(this,Js,1);break;case 2:case"london":case"eip-1559":T(this,Js,2);break;case 3:case"cancun":case"eip-4844":T(this,Js,3);break;default:I(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=w(this,Ju);return e==null&&this.type===3?xi:e}set to(e){T(this,Ju,e==null?null:Ae(e))}get nonce(){return w(this,Xu)}set nonce(e){T(this,Xu,Pe(e,"value"))}get gasLimit(){return w(this,Zu)}set gasLimit(e){T(this,Zu,xe(e))}get gasPrice(){const e=w(this,ef);return e==null&&(this.type===0||this.type===1)?Yt:e}set gasPrice(e){T(this,ef,e==null?null:xe(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=w(this,tf);return e??(this.type===2||this.type===3?Yt:null)}set maxPriorityFeePerGas(e){T(this,tf,e==null?null:xe(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=w(this,rf);return e??(this.type===2||this.type===3?Yt:null)}set maxFeePerGas(e){T(this,rf,e==null?null:xe(e,"maxFeePerGas"))}get data(){return w(this,Yu)}set data(e){T(this,Yu,z(e))}get value(){return w(this,nf)}set value(e){T(this,nf,xe(e,"value"))}get chainId(){return w(this,sf)}set chainId(e){T(this,sf,xe(e))}get signature(){return w(this,of)||null}set signature(e){T(this,of,e==null?null:cs.from(e))}get accessList(){const e=w(this,af)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){T(this,af,e==null?null:vo(e))}get maxFeePerBlobGas(){const e=w(this,_c);return e==null&&this.type===3?Yt:e}set maxFeePerBlobGas(e){T(this,_c,e==null?null:xe(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=w(this,Wo);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){I(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;rObject.assign({},e))}set blobs(e){if(e==null){T(this,Vo,null);return}const r=[],n=[];for(let s=0;s=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,s=w(this,_c)!=null||w(this,Wo);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&H(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),H(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),H(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return this.type!=null?i.push(this.type):r?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(s&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Pi.from(this)}toJSON(){const e=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Pi;if(typeof e=="string"){const n=Q(e);if(n[0]>=127)return Pi.from(dse(n));switch(n[0]){case 1:return Pi.from(gse(n));case 2:return Pi.from(pse(n));case 3:return Pi.from(mse(n))}H(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new Pi;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=cs.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.blobVersionedHashes!=null&&(r.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(r.kzg=e.kzg),e.blobs!=null&&(r.blobs=e.blobs),e.hash!=null&&(I(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),I(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(I(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),I(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};Js=new WeakMap,Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,ef=new WeakMap,tf=new WeakMap,rf=new WeakMap,nf=new WeakMap,sf=new WeakMap,of=new WeakMap,af=new WeakMap,_c=new WeakMap,Wo=new WeakMap,Di=new WeakMap,Vo=new WeakMap,cf=new WeakSet,Yp=function(e,r){H(!e||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return hse(this,n);case 1:return vse(this,n);case 2:return yse(this,n);case 3:return xse(this,n,r?this.blobs:null)}H(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let gl=Pi;function Vv(t){return typeof t=="string"&&(t=mt(t)),Me(Fe([mt(LN),mt(String(t.length)),t]))}function u7(t,e){const r=Vv(t);return Jf(r,e)}const bse=new RegExp("^bytes([0-9]+)$"),wse=new RegExp("^(u?int)([0-9]*)$"),Ese=new RegExp("^(.*)\\[([0-9]*)\\]$");function f7(t,e,r){switch(t){case"address":return Q(r?ss(e,32):Ae(e));case"string":return mt(e);case"bytes":return Q(e);case"bool":return e=e?"0x01":"0x00",Q(r?ss(e,32):e)}let n=t.match(wse);if(n){let s=n[1]==="int",i=parseInt(n[2]||"256");return I((!n[2]||n[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),r&&(i=256),s&&(e=Bv(e,i)),Q(ss(rr(e),i/8))}if(n=t.match(bse),n){const s=parseInt(n[1]);return I(String(s)===n[1]&&s!==0&&s<=32,"invalid bytes type","type",t),I(ba(e)===s,`invalid value for ${t}`,"value",e),r?Q(Mv(e,32)):e}if(n=t.match(Ese),n&&Array.isArray(e)){const s=n[1],i=parseInt(n[2]||String(e.length));I(i===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(f7(s,a,!0))}),Q(Fe(o))}I(!1,"invalid type","type",t)}function Le(t,e){I(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,s){r.push(f7(n,e[s]))}),z(Fe(r))}function to(t,e){return Me(Le(t,e))}function Cse(t,e){return Qr(Le(t,e))}const d7=new Uint8Array(32);d7.fill(0);const kse=BigInt(-1),h7=BigInt(0),p7=BigInt(1),Sse=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Ase(t){const e=Q(t),r=e.length%32;return r?Fe([e,d7.slice(r)]):z(e)}const Tse=On(p7,32),Ise=On(h7,32),j3={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ox=["name","version","chainId","verifyingContract","salt"];function F3(t){return function(e){return I(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const Pse={name:F3("name"),version:F3("version"),chainId:function(t){const e=xe(t,"domain.chainId");return I(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):yr(e)},verifyingContract:function(t){try{return Ae(t).toLowerCase()}catch{}I(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Q(t,"domain.salt");return I(e.length===32,'invalid domain value "salt"',"domain.salt",t),z(e)}};function Rx(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);I(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const s=ca(Sse,r?n-1:n),i=r?(s+p7)*kse:h7;return function(o){const a=xe(o,"value");return I(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),On(r?Bv(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return I(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=Q(n);return I(s.length===r,`invalid length for ${t}`,"value",n),Ase(n)}}}switch(t){case"address":return function(e){return ss(Ae(e),32)};case"bool":return function(e){return e?Tse:Ise};case"bytes":return function(e){return Me(e)};case"string":return function(e){return Dr(e)}}return null}function U3(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function vp(t){const e=t.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return e?{base:e[1],index:e[2]+e[4],array:{base:e[1],prefix:e[1]+e[2],count:e[5]?parseInt(e[5]):-1}}:{base:t}}var U0,Bi,lf,Bg,y7;const Vn=class Vn{constructor(e){j(this,Bg);_(this,"primaryType");j(this,U0);j(this,Bi);j(this,lf);T(this,Bi,new Map),T(this,lf,new Map);const r=new Map,n=new Map,s=new Map,i={};Object.keys(e).forEach(c=>{i[c]=e[c].map(({name:l,type:u})=>{let{base:f,index:d}=vp(u);return f==="int"&&!e.int&&(f="int256"),f==="uint"&&!e.uint&&(f="uint256"),{name:l,type:f+(d||"")}}),r.set(c,new Set),n.set(c,[]),s.set(c,new Set)}),T(this,U0,JSON.stringify(i));for(const c in i){const l=new Set;for(const u of i[c]){I(!l.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(c)}`,"types",e),l.add(u.name);const f=vp(u.type).base;I(f!==c,`circular type reference to ${JSON.stringify(f)}`,"types",e),!Rx(f)&&(I(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(c),r.get(c).add(f))}}const o=Array.from(n.keys()).filter(c=>n.get(c).length===0);I(o.length!==0,"missing primary type","types",e),I(o.length===1,`ambiguous primary types or unused types: ${o.map(c=>JSON.stringify(c)).join(", ")}`,"types",e),fe(this,{primaryType:o[0]});function a(c,l){I(!l.has(c),`circular type reference to ${JSON.stringify(c)}`,"types",e),l.add(c);for(const u of r.get(c))if(n.has(u)){a(u,l);for(const f of l)s.get(f).add(u)}l.delete(c)}a(this.primaryType,new Set);for(const[c,l]of s){const u=Array.from(l);u.sort(),w(this,Bi).set(c,U3(c,i[c])+u.map(f=>U3(f,i[f])).join(""))}}get types(){return JSON.parse(w(this,U0))}getEncoder(e){let r=w(this,lf).get(e);return r||(r=Y(this,Bg,y7).call(this,e),w(this,lf).set(e,r)),r}encodeType(e){const r=w(this,Bi).get(e);return I(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Me(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Rx(e))return n(e,r);const s=vp(e).array;if(s)return I(s.count===-1||s.count===r.length,`array length mismatch; expected length ${s.count}`,"value",r),r.map(o=>this._visit(s.prefix,o,n));const i=this.types[e];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,r[a],n),o),{});I(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Vn(e)}static getPrimaryType(e){return Vn.from(e).primaryType}static hashStruct(e,r,n){return Vn.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=j3[n];I(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>Ox.indexOf(n.name)-Ox.indexOf(s.name)),Vn.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Fe(["0x1901",Vn.hashDomain(e),Vn.from(r).hash(n)])}static hash(e,r,n){return Me(Vn.encode(e,r,n))}static async resolveNames(e,r,n,s){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const i={};e.verifyingContract&&!qe(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=Vn.from(r);o.visit(n,(a,c)=>(a==="address"&&!qe(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:e,value:n}}static getPayload(e,r,n){Vn.hashDomain(e);const s={},i=[];Ox.forEach(c=>{const l=e[c];l!=null&&(s[c]=Pse[c](l),i.push({name:c,type:j3[c]}))});const o=Vn.from(r);r=o.types;const a=Object.assign({},r);return I(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),a.EIP712Domain=i,o.encode(n),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(n,(c,l)=>{if(c.match(/^bytes(\d*)/))return z(Q(l));if(c.match(/^u?int/))return xe(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return I(typeof l=="string","invalid string","value",l),l}I(!1,"unsupported type","type",c)})}}};U0=new WeakMap,Bi=new WeakMap,lf=new WeakMap,Bg=new WeakSet,y7=function(e){{const s=Rx(e);if(s)return s}const r=vp(e).array;if(r){const s=r.prefix,i=this.getEncoder(s);return o=>{I(r.count===-1||r.count===o.length,`array length mismatch; expected length ${r.count}`,"value",o);let a=o.map(i);return w(this,Bi).has(s)&&(a=a.map(Me)),Me(Fe(a))}}const n=this.types[e];if(n){const s=Dr(w(this,Bi).get(e));return i=>{const o=n.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return w(this,Bi).has(c)?Me(l):l});return o.unshift(s),Fe(o)}}I(!1,`unknown type: ${e}`,"type",e)};let Bs=Vn;function Ose(t,e,r,n){return Jf(Bs.hash(t,e,r),n)}function Gr(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const Rse="external public payable override",Nse=Gr(Rse.split(" ")),g7="constant external internal payable private public pure view override",_se=Gr(g7.split(" ")),v7="constructor error event fallback function receive struct",m7=Gr(v7.split(" ")),x7="calldata memory storage payable indexed",Mse=Gr(x7.split(" ")),Dse="tuple returns",Bse=[v7,x7,Dse,g7].join(" "),Lse=Gr(Bse.split(" ")),jse={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Fse=new RegExp("^(\\s*)"),Use=new RegExp("^([0-9]+)"),$se=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),b7=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),w7=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var fr,xs,$0,Yw;const Lg=class Lg{constructor(e){j(this,$0);j(this,fr);j(this,xs);T(this,fr,0),T(this,xs,e.slice())}get offset(){return w(this,fr)}get length(){return w(this,xs).length-w(this,fr)}clone(){return new Lg(w(this,xs))}reset(){T(this,fr,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const r=this.peek();throw new Error(`expected ${e}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=Y(this,$0,Yw).call(this,w(this,fr)+1,e.match+1);return T(this,fr,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;w(this,fr)=w(this,xs).length)throw new Error("out-of-bounds");return w(this,xs)[w(this,fr)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return Pl(this,fr)._++,e}toString(){const e=[];for(let r=w(this,fr);r`}};fr=new WeakMap,xs=new WeakMap,$0=new WeakSet,Yw=function(e=0,r=0){return new Lg(w(this,xs).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Ls=Lg;function Ga(t){const e=[],r=o=>{const a=i0&&e[e.length-1].type==="NUMBER"){const f=e.pop().text;u=f+u,e[e.length-1].value=Pe(f)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match($se),a){if(c.text=a[1],i+=c.text.length,Lse.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(w7)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(Use),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new Ls(e.map(o=>Object.freeze(o)))}function $3(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function zv(t,e){if(e.peekKeyword(m7)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function uo(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function E7(t){let e=uo(t,_se);return $3(e,Gr("constant payable nonpayable".split(" "))),$3(e,Gr("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function ro(t,e){return t.popParams().map(r=>ar.from(r,e))}function C7(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return xe(t.pop().text);throw new Error("invalid gas")}return null}function vl(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const Wse=new RegExp(/^(.*)\[([0-9]*)\]$/);function W3(t){const e=t.match(w7);if(I(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);I(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);I(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const wt={},pn=Symbol.for("_ethers_internal"),V3="_ParamTypeInternal",z3="_ErrorInternal",H3="_EventInternal",G3="_ConstructorInternal",q3="_FallbackInternal",K3="_FunctionInternal",Q3="_StructInternal";var uf,Xp;const zn=class zn{constructor(e,r,n,s,i,o,a,c){j(this,uf);_(this,"name");_(this,"type");_(this,"baseType");_(this,"indexed");_(this,"components");_(this,"arrayLength");_(this,"arrayChildren");if(yo(e,wt,"ParamType"),Object.defineProperty(this,pn,{value:V3}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");fe(this,{name:r,type:n,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(s)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(s=>n.arrayChildren.walk(s,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((s,i)=>n.components[i].walk(s,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],s=[e];return Y(this,uf,Xp).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(zn.isParamType(e))return e;if(typeof e=="string")try{return zn.from(Ga(e),r)}catch{I(!1,"invalid param type","obj",e)}else if(e instanceof Ls){let a="",c="",l=null;uo(e,Gr(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(p=>zn.from(p)),a=`tuple(${l.map(p=>p.format()).join(",")})`):(a=W3(e.popType("TYPE")),c=a);let u=null,f=null;for(;e.length&&e.peekType("BRACKET");){const p=e.pop();u=new zn(wt,"",a,c,null,l,f,u),f=p.value,a+=p.text,c="array",l=null}let d=null;if(uo(e,Mse).has("indexed")){if(!r)throw new Error("");d=!0}const y=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new zn(wt,y,a,c,d,l,f,u)}const n=e.name;I(!n||typeof n=="string"&&n.match(b7),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(I(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(Wse);if(o){const a=parseInt(o[2]||"-1"),c=zn.from({type:o[1],components:e.components});return new zn(wt,n||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(l=>zn.from(l)):null;return new zn(wt,n||"",i,"tuple",s,a,null,null)}return i=W3(e.type),new zn(wt,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[pn]===V3}};uf=new WeakSet,Xp=function(e,r,n,s){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=r.slice();a.forEach((c,l)=>{var u;Y(u=o,uf,Xp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(r))a=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in r))throw new Error(`missing value for component ${c.name}`);return r[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;Y(u=o[l],uf,Xp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}const i=n(this.type,r);i.then?e.push(async function(){s(await i)}()):s(i)};let ar=zn;class _a{constructor(e,r,n){_(this,"type");_(this,"inputs");yo(e,wt,"Fragment"),n=Object.freeze(n.slice()),fe(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{_a.from(JSON.parse(e))}catch{}return _a.from(Ga(e))}if(e instanceof Ls)switch(e.peekKeyword(m7)){case"constructor":return ci.from(e);case"error":return zr.from(e);case"event":return Ss.from(e);case"fallback":case"receive":return si.from(e);case"function":return As.from(e);case"struct":return wa.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return ci.from(e);case"error":return zr.from(e);case"event":return Ss.from(e);case"fallback":case"receive":return si.from(e);case"function":return As.from(e);case"struct":return wa.from(e)}H(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}I(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return ci.isFragment(e)}static isError(e){return zr.isFragment(e)}static isEvent(e){return Ss.isFragment(e)}static isFunction(e){return As.isFragment(e)}static isStruct(e){return wa.isFragment(e)}}class C1 extends _a{constructor(r,n,s,i){super(r,n,i);_(this,"name");I(typeof s=="string"&&s.match(b7),"invalid identifier","name",s),i=Object.freeze(i.slice()),fe(this,{name:s})}}function C0(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class zr extends C1{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,pn,{value:z3})}get selector(){return Dr(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+C0(e,this.inputs)),r.join(" ")}static from(e){if(zr.isFragment(e))return e;if(typeof e=="string")return zr.from(Ga(e));if(e instanceof Ls){const r=zv("error",e),n=ro(e);return vl(e),new zr(wt,r,n)}return new zr(wt,e.name,e.inputs?e.inputs.map(ar.from):[])}static isFragment(e){return e&&e[pn]===z3}}class Ss extends C1{constructor(r,n,s,i){super(r,"event",n,s);_(this,"anonymous");Object.defineProperty(this,pn,{value:H3}),fe(this,{anonymous:i})}get topicHash(){return Dr(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+C0(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(i=>ar.from(i)),new Ss(wt,r,n,!1).topicHash}static from(r){if(Ss.isFragment(r))return r;if(typeof r=="string")try{return Ss.from(Ga(r))}catch{I(!1,"invalid event fragment","obj",r)}else if(r instanceof Ls){const n=zv("event",r),s=ro(r,!0),i=!!uo(r,Gr(["anonymous"])).has("anonymous");return vl(r),new Ss(wt,n,s,i)}return new Ss(wt,r.name,r.inputs?r.inputs.map(n=>ar.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[pn]===H3}}class ci extends _a{constructor(r,n,s,i,o){super(r,n,s);_(this,"payable");_(this,"gas");Object.defineProperty(this,pn,{value:G3}),fe(this,{payable:i,gas:o})}format(r){if(H(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="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(s=>JSON.parse(s.format(r)))});const n=[`constructor${C0(r,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(ci.isFragment(r))return r;if(typeof r=="string")try{return ci.from(Ga(r))}catch{I(!1,"invalid constuctor fragment","obj",r)}else if(r instanceof Ls){uo(r,Gr(["constructor"]));const n=ro(r),s=!!uo(r,Nse).has("payable"),i=C7(r);return vl(r),new ci(wt,"constructor",n,s,i)}return new ci(wt,"constructor",r.inputs?r.inputs.map(ar.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===G3}}class si extends _a{constructor(r,n,s){super(r,"fallback",n);_(this,"payable");Object.defineProperty(this,pn,{value:q3}),fe(this,{payable:s})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:s})}return`${n}()${this.payable?" payable":""}`}static from(r){if(si.isFragment(r))return r;if(typeof r=="string")try{return si.from(Ga(r))}catch{I(!1,"invalid fallback fragment","obj",r)}else if(r instanceof Ls){const n=r.toString(),s=r.peekKeyword(Gr(["fallback","receive"]));if(I(s,"type must be fallback or receive","obj",n),r.popKeyword(Gr(["fallback","receive"]))==="receive"){const c=ro(r);return I(c.length===0,"receive cannot have arguments","obj.inputs",c),uo(r,Gr(["payable"])),vl(r),new si(wt,[],!0)}let o=ro(r);o.length?I(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[ar.from("bytes")];const a=E7(r);if(I(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),uo(r,Gr(["returns"])).has("returns")){const c=ro(r);I(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return vl(r),new si(wt,o,a==="payable")}if(r.type==="receive")return new si(wt,[],!0);if(r.type==="fallback"){const n=[ar.from("bytes")],s=r.stateMutability==="payable";return new si(wt,n,s)}I(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[pn]===q3}}class As extends C1{constructor(r,n,s,i,o,a){super(r,"function",n,i);_(this,"constant");_(this,"outputs");_(this,"stateMutability");_(this,"payable");_(this,"gas");Object.defineProperty(this,pn,{value:K3}),o=Object.freeze(o.slice()),fe(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return Dr(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="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(s=>JSON.parse(s.format(r))),outputs:this.outputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+C0(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(C0(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(i=>ar.from(i)),new As(wt,r,"view",n,[],null).selector}static from(r){if(As.isFragment(r))return r;if(typeof r=="string")try{return As.from(Ga(r))}catch{I(!1,"invalid function fragment","obj",r)}else if(r instanceof Ls){const s=zv("function",r),i=ro(r),o=E7(r);let a=[];uo(r,Gr(["returns"])).has("returns")&&(a=ro(r));const c=C7(r);return vl(r),new As(wt,s,o,i,a,c)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new As(wt,r.name,n,r.inputs?r.inputs.map(ar.from):[],r.outputs?r.outputs.map(ar.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===K3}}class wa extends C1{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,pn,{value:Q3})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return wa.from(Ga(e))}catch{I(!1,"invalid struct fragment","obj",e)}else if(e instanceof Ls){const r=zv("struct",e),n=ro(e);return vl(e),new wa(wt,r,n)}return new wa(wt,e.name,e.inputs?e.inputs.map(ar.from):[])}static isFragment(e){return e&&e[pn]===Q3}}const Us=new Map;Us.set(0,"GENERIC_PANIC");Us.set(1,"ASSERT_FALSE");Us.set(17,"OVERFLOW");Us.set(18,"DIVIDE_BY_ZERO");Us.set(33,"ENUM_RANGE_ERROR");Us.set(34,"BAD_STORAGE_DATA");Us.set(49,"STACK_UNDERFLOW");Us.set(50,"ARRAY_RANGE_ERROR");Us.set(65,"OUT_OF_MEMORY");Us.set(81,"UNINITIALIZED_FUNCTION_CALL");const Vse=new RegExp(/^bytes([0-9]*)$/),zse=new RegExp(/^(u?int)([0-9]*)$/);let Nx=null,J3=1024;function Hse(t,e,r,n){let s="missing revert data",i=null;const o=null;let a=null;if(r){s="execution reverted";const l=Q(r);if(r=z(r),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(z(l.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(z(l.slice(0,4))==="0x4e487b71")try{const u=Number(n.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${Us.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?Ae(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Ae(e.from)),ht(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:c,invocation:o,revert:a})}var zo,ql;const jg=class jg{constructor(){j(this,zo)}getDefaultValue(e){const r=e.map(s=>Y(this,zo,ql).call(this,ar.from(s)));return new gp(r,"_").defaultValue()}encode(e,r){gk(r.length,e.length,"types/values length mismatch");const n=e.map(o=>Y(this,zo,ql).call(this,ar.from(o))),s=new gp(n,"_"),i=new jw;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>Y(this,zo,ql).call(this,ar.from(o)));return new gp(s,"_").decode(new Fw(r,n,J3))}static _setDefaultMaxInflation(e){I(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),J3=e}static defaultAbiCoder(){return Nx==null&&(Nx=new jg),Nx}static getBuiltinCallException(e,r,n){return Hse(e,r,n,jg.defaultAbiCoder())}};zo=new WeakSet,ql=function(e){if(e.isArray())return new dne(Y(this,zo,ql).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new gp(e.components.map(n=>Y(this,zo,ql).call(this,n)),e.name);switch(e.baseType){case"address":return new une(e.name);case"bool":return new hne(e.name);case"string":return new Ene(e.name);case"bytes":return new pne(e.name);case"":return new vne(e.name)}let r=e.type.match(zse);if(r){let n=parseInt(r[2]||"256");return I(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new wne(n/8,r[1]==="int",e.name)}if(r=e.type.match(Vse),r){let n=parseInt(r[1]);return I(n!==0&&n<=32,"invalid bytes length","param",e),new yne(n,e.name)}I(!1,"invalid type","type",e.type)};let qt=jg;function Gse(t){const e=mt(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Mv(e,32)}function qse(t){const e=Q(t,"bytes");if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Ds(e.slice(0,r))}class k7{constructor(e,r,n){_(this,"fragment");_(this,"name");_(this,"signature");_(this,"topic");_(this,"args");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class S7{constructor(e,r,n,s){_(this,"fragment");_(this,"name");_(this,"args");_(this,"signature");_(this,"selector");_(this,"value");const i=e.name,o=e.format();fe(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class A7{constructor(e,r,n){_(this,"fragment");_(this,"name");_(this,"args");_(this,"signature");_(this,"selector");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class Xw{constructor(e){_(this,"hash");_(this,"_isIndexed");fe(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const Y3={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"},X3={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&Y3[t.toString()]&&(e=Y3[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var Ys,Xs,Zs,Tr,yi,Zp,ey;const dc=class dc{constructor(e){j(this,yi);_(this,"fragments");_(this,"deploy");_(this,"fallback");_(this,"receive");j(this,Ys);j(this,Xs);j(this,Zs);j(this,Tr);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,T(this,Zs,new Map),T(this,Ys,new Map),T(this,Xs,new Map);const n=[];for(const o of r)try{n.push(_a.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}fe(this,{fragments:Object.freeze(n)});let s=null,i=!1;T(this,Tr,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}fe(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(I(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=w(this,Zs);break;case"event":c=w(this,Xs);break;case"error":c=w(this,Ys);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||fe(this,{deploy:ci.from("constructor()")}),fe(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(s=>s.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return qt.defaultAbiCoder()}getFunctionName(e){const r=Y(this,yi,Zp).call(this,e,null,!1);return I(r,"no matching function","key",e),r.name}hasFunction(e){return!!Y(this,yi,Zp).call(this,e,null,!1)}getFunction(e,r){return Y(this,yi,Zp).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(w(this,Zs).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;nn.localeCompare(s));for(let n=0;n1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");I(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=zr.from(e).format(),e==="Error(string)")return zr.from("error Error(string)");if(e==="Panic(uint256)")return zr.from("error Panic(uint256)");const n=w(this,Ys).get(e);return n||null}forEachError(e){const r=Array.from(w(this,Ys).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;ni.type==="string"?Dr(o):i.type==="bytes"?Me(z(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=On(o):i.type.match(/^bytes/)?o=Mv(o,32):i.type==="address"&&w(this,Tr).encode(["address"],[o]),ss(z(o),32));for(r.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){I(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?I(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?n.push(i.map(c=>s(a,c))):n.push(s(a,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);I(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),I(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const c=r[a];if(o.indexed)if(o.type==="string")n.push(Dr(c));else if(o.type==="bytes")n.push(Me(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(w(this,Tr).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:w(this,Tr).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const h=this.getEvent(e);I(h,"unknown event","eventFragment",e),e=h}if(n!=null&&!e.anonymous){const h=e.topicHash;I(qe(n[0],32)&&n[0].toLowerCase()===h,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((h,y)=>{h.indexed?h.type==="string"||h.type==="bytes"||h.baseType==="tuple"||h.baseType==="array"?(s.push(ar.from({type:"bytes32",name:h.name})),o.push(!0)):(s.push(h),o.push(!1)):(i.push(h),o.push(!1))});const a=n!=null?w(this,Tr).decode(s,Fe(n)):null,c=w(this,Tr).decode(i,r,!0),l=[],u=[];let f=0,d=0;return e.inputs.forEach((h,y)=>{let p=null;if(h.indexed)if(a==null)p=new Xw(null);else if(o[y])p=new Xw(a[d++]);else try{p=a[d++]}catch(b){p=b}else try{p=c[f++]}catch(b){p=b}l.push(p),u.push(h.name||null)}),pl.fromItems(l,u)}parseTransaction(e){const r=Q(e.data,"tx.data"),n=xe(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(z(r.slice(0,4)));if(!s)return null;const i=w(this,Tr).decode(s.inputs,r.slice(4));return new S7(s,s.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new k7(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=z(e),n=this.getError(at(r,0,4));if(!n)return null;const s=w(this,Tr).decode(n.inputs,at(r,4));return new A7(n,n.selector,s)}static from(e){return e instanceof dc?e:typeof e=="string"?new dc(JSON.parse(e)):typeof e.formatJson=="function"?new dc(e.formatJson()):typeof e.format=="function"?new dc(e.format("json")):new dc(e)}};Ys=new WeakMap,Xs=new WeakMap,Zs=new WeakMap,Tr=new WeakMap,yi=new WeakSet,Zp=function(e,r,n){if(qe(e)){const i=e.toLowerCase();for(const o of w(this,Zs).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Zs))o.split("(")[0]===e&&i.push(a);if(r){const o=r.length>0?r[r.length-1]:null;let a=r.length,c=!0;mr.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(r[f].type==="overrides")continue;i.splice(l,1);break}if(r[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&r&&r.length!==i[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");I(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Zs).get(As.from(e).format());return s||null},ey=function(e,r,n){if(qe(e)){const i=e.toLowerCase();for(const o of w(this,Xs).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Xs))o.split("(")[0]===e&&i.push(a);if(r){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");I(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Xs).get(Ss.from(e).format());return s||null};let ut=dc;const T7=BigInt(0);function _u(t){return t??null}function Nt(t){return t==null?null:t.toString()}class Zw{constructor(e,r,n){_(this,"gasPrice");_(this,"maxFeePerGas");_(this,"maxPriorityFeePerGas");fe(this,{gasPrice:_u(e),maxFeePerGas:_u(r),maxPriorityFeePerGas:_u(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Nt(e),maxFeePerGas:Nt(r),maxPriorityFeePerGas:Nt(n)}}}function Yf(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=z(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=xe(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=Pe(t[s],`request.${s}`));return t.accessList&&(e.accessList=vo(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),"blobVersionedHashes"in t&&t.blobVersionedHashes&&(e.blobVersionedHashes=t.blobVersionedHashes.slice()),"kzg"in t&&(e.kzg=t.kzg),"blobs"in t&&t.blobs&&(e.blobs=t.blobs.map(s=>mi(s)?z(s):Object.assign({},s))),e}var Li;class I7{constructor(e,r){_(this,"provider");_(this,"number");_(this,"hash");_(this,"timestamp");_(this,"parentHash");_(this,"parentBeaconBlockRoot");_(this,"nonce");_(this,"difficulty");_(this,"gasLimit");_(this,"gasUsed");_(this,"stateRoot");_(this,"receiptsRoot");_(this,"blobGasUsed");_(this,"excessBlobGas");_(this,"miner");_(this,"prevRandao");_(this,"extraData");_(this,"baseFeePerGas");j(this,Li);T(this,Li,e.transactions.map(n=>typeof n!="string"?new Xf(n,r):n)),fe(this,{provider:r,hash:_u(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:_u(e.prevRandao),extraData:e.extraData,baseFeePerGas:_u(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return w(this,Li).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=w(this,Li).slice();return e.length===0?[]:(H(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:s,gasUsed:i,hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,timestamp:p,transactions:b}=this;return{_type:"Block",baseFeePerGas:Nt(e),difficulty:Nt(r),extraData:n,gasLimit:Nt(s),gasUsed:Nt(i),blobGasUsed:Nt(this.blobGasUsed),excessBlobGas:Nt(this.excessBlobGas),hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,timestamp:p,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,transactions:b}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>enew Cd(s,r))));let n=T7;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),fe(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return w(this,W0)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:Nt(this.cumulativeGasUsed),from:r,gasPrice:Nt(this.gasPrice),blobGasUsed:Nt(this.blobGasUsed),blobGasPrice:Nt(this.blobGasPrice),gasUsed:Nt(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(a)return null;const{blockNumber:d,nonce:h}=await It({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(h{if(d==null||d.status!==0)return d;H(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},u=await this.provider.getTransactionReceipt(this.hash);if(n===0)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),n===0)return null;return await new Promise((d,h)=>{const y=[],p=()=>{y.forEach(g=>g())};if(y.push(()=>{a=!0}),s>0){const g=setTimeout(()=>{p(),h(ht("wait for transaction timeout","TIMEOUT"))},s);y.push(()=>{clearTimeout(g)})}const b=async g=>{if(await g.confirmations()>=n){p();try{d(l(g))}catch(v){h(v)}}};if(y.push(()=>{this.provider.off(this.hash,b)}),this.provider.on(this.hash,b),i>=0){const g=async()=>{try{await c()}catch(v){if(Ft(v,"TRANSACTION_REPLACED")){p(),h(v);return}}a||this.provider.once("block",g)};y.push(()=>{this.provider.off("block",g)}),this.provider.once("block",g)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return H(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),O7(this)}reorderedEvent(e){return H(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),H(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),P7(this,e)}replaceableTransaction(e){I(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new Q5(this,this.provider);return T(r,Ho,e),r}};Ho=new WeakMap;let Xf=Q5;function Kse(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function P7(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function O7(t){return{orphan:"drop-transaction",tx:t}}function Qse(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class Hv extends Cd{constructor(r,n,s){super(r,r.provider);_(this,"interface");_(this,"fragment");_(this,"args");const i=n.decodeEventLog(s,r.data,r.topics);fe(this,{args:i,fragment:s,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class Vk extends Cd{constructor(r,n){super(r,r.provider);_(this,"error");fe(this,{error:n})}}var ff;class R7 extends Wk{constructor(r,n,s){super(s,n);j(this,ff);T(this,ff,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?w(this,ff).getEvent(r.topics[0]):null;if(n)try{return new Hv(r,w(this,ff),n)}catch(s){return new Vk(r,s)}return r})}}ff=new WeakMap;var V0;class Gv extends Xf{constructor(r,n,s){super(s,n);j(this,V0);T(this,V0,r)}async wait(r,n){const s=await super.wait(r,n);return s==null?null:new R7(w(this,V0),this.provider,s)}}V0=new WeakMap;class zk extends xk{constructor(r,n,s,i){super(r,n,s);_(this,"log");fe(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class N7 extends zk{constructor(e,r,n,s,i){super(e,r,n,new Hv(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);fe(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const Z3=BigInt(0);function _7(t){return t&&typeof t.call=="function"}function M7(t){return t&&typeof t.estimateGas=="function"}function qv(t){return t&&typeof t.resolveName=="function"}function D7(t){return t&&typeof t.sendTransaction=="function"}function B7(t){if(t!=null){if(qv(t))return t;if(t.provider)return t.provider}}var z0;class Jse{constructor(e,r,n){j(this,z0);_(this,"fragment");if(fe(this,{fragment:r}),r.inputs.lengthn[c]==null?null:a.walkAsync(n[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(d=>sr(d,i))):sr(f,i):f)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return w(this,z0)}}z0=new WeakMap;function ml(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function xc(t){return t==null?null:t.provider||null}async function Hk(t,e){const r=mr.dereference(t,"overrides");I(typeof r=="object","invalid overrides parameter","overrides",t);const n=Yf(r);return I(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),I(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function L7(t,e,r){const n=ml(t,"resolveName"),s=qv(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(a,c)=>(c=mr.dereference(c,a),a==="address"?sr(c,s):c))))}function Yse(t){const e=async function(o){const a=await Hk(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await sr(a.from,B7(t.runner)));const c=t.interface,l=xe(a.value||Z3,"overrides.value")===Z3,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&I(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),I(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return I(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),I(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=ml(t.runner,"call");H(_7(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(o);try{return await a.call(c)}catch(l){throw _v(l)&&l.data?t.interface.makeError(l.data,c):l}},n=async function(o){const a=t.runner;H(D7(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=xc(t.runner);return new Gv(t.interface,l,c)},s=async function(o){const a=ml(t.runner,"estimateGas");return H(M7(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},i=async o=>await n(o);return fe(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function Xse(t,e){const r=function(...l){const u=t.interface.getFunction(e,l);return H(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},n=async function(...l){const u=r(...l);let f={};if(u.inputs.length+1===l.length&&(f=await Hk(l.pop()),f.from&&(f.from=await sr(f.from,B7(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await L7(t.runner,u.inputs,l);return Object.assign({},f,await It({to:t.getAddress(),data:t.interface.encodeFunctionData(u,d)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;H(D7(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await n(...l)),d=xc(t.runner);return new Gv(t.interface,d,f)},o=async function(...l){const u=ml(t.runner,"estimateGas");return H(M7(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...l))},a=async function(...l){const u=ml(t.runner,"call");H(_7(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await n(...l);let d="0x";try{d=await u.call(f)}catch(y){throw _v(y)&&y.data?t.interface.makeError(y.data,f):y}const h=r(...l);return t.interface.decodeFunctionResult(h,d)},c=async(...l)=>r(...l).constant?await s(...l):await i(...l);return fe(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=t.interface.getFunction(e);return H(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function Zse(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return H(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},n=function(...s){return new Jse(t,r(...s),s)};return fe(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return H(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),n}const pg=Symbol.for("_ethersInternal_contract"),j7=new WeakMap;function eie(t,e){j7.set(t[pg],e)}function xn(t){return j7.get(t[pg])}function tie(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function Gk(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(qe(o,32))return o;const a=t.interface.getEvent(o);return I(a,"unknown fragment","name",o),a.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?r=[null]:typeof e=="string"?qe(e,32)?r=[e]:(n=t.interface.getEvent(e),I(n,"unknown fragment","event",e),r=[n.topicHash]):tie(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):I(!1,"unknown event name","event",e);r=r.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=r.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:s,topics:r}}async function ih(t,e){const{subs:r}=xn(t);return r.get((await Gk(t,e)).tag)||null}async function e8(t,e,r){const n=xc(t.runner);H(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await Gk(t,r),{addr:a,subs:c}=xn(t);let l=c.get(i);if(!l){const f={address:a||t,topics:o},d=b=>{let g=s;if(g==null)try{g=t.interface.getEvent(b.topics[0])}catch{}if(g){const v=g,m=s?t.interface.decodeEventLog(s,b.data,b.topics):[];t2(t,r,m,k=>new N7(t,k,r,v,b))}else t2(t,r,[],v=>new zk(t,v,r,b))};let h=[];l={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(f,d))},stop:async()=>{if(h.length==0)return;let b=h;h=[],await Promise.all(b),n.off(f,d)}},c.set(i,l)}return l}let e2=Promise.resolve();async function rie(t,e,r,n){await e2;const s=await ih(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(r);n&&c.push(n(a?null:o));try{o.call(t,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),xn(t).subs.delete(s.tag)),i>0}async function t2(t,e,r,n){try{await e2}catch{}const s=rie(t,e,r,n);return e2=s,await s}const mp=["then"];var H8;H8=pg;const Wh=class Wh{constructor(e,r,n,s){_(this,"target");_(this,"interface");_(this,"runner");_(this,"filters");_(this,H8);_(this,"fallback");I(typeof e=="string"||Mk(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=ut.from(r);fe(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,pg,{value:{}});let o,a=null,c=null;if(s){const f=xc(n);c=new Gv(this.interface,f,s)}let l=new Map;if(typeof e=="string")if(qe(e))a=e,o=Promise.resolve(e);else{const f=ml(n,"resolveName");if(!qv(f))throw ht("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(e).then(d=>{if(d==null)throw ht("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return xn(this).addr=d,d})}else o=e.getAddress().then(f=>{if(f==null)throw new Error("TODO");return xn(this).addr=f,f});eie(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,d,h)=>{if(typeof d=="symbol"||mp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return this.getEvent(d)}catch(y){if(!Ft(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>mp.indexOf(d)>=0?Reflect.has(f,d):Reflect.has(f,d)||this.interface.hasEvent(String(d))});return fe(this,{filters:u}),fe(this,{fallback:i.receive||i.fallback?Yse(this):null}),new Proxy(this,{get:(f,d,h)=>{if(typeof d=="symbol"||d in f||mp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return f.getFunction(d)}catch(y){if(!Ft(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>typeof d=="symbol"||d in f||mp.indexOf(d)>=0?Reflect.has(f,d):f.interface.hasFunction(d)})}connect(e){return new Wh(this.target,this.interface,e)}attach(e){return new Wh(e,this.interface,this.runner)}async getAddress(){return await xn(this).addrPromise}async getDeployedCode(){const e=xc(this.runner);H(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=xc(this.runner);return H(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);n.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return xn(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),Xse(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),Zse(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:s,addrPromise:i}=xn(this),o=s||await i,{fragment:a,topics:c}=await Gk(this,e),l={address:o,topics:c,fromBlock:r,toBlock:n},u=xc(this.runner);return H(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let d=a;if(d==null)try{d=this.interface.getEvent(f.topics[0])}catch{}if(d)try{return new Hv(f,this.interface,d)}catch(h){return new Vk(f,h)}return new Cd(f,u)})}async on(e,r){const n=await e8(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await e8(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await t2(this,e,r,null)}async listenerCount(e){if(e){const s=await ih(this,e);return s?s.listeners.length:0}const{subs:r}=xn(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await ih(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=xn(this);let n=[];for(const{listeners:s}of r.values())n=n.concat(s.map(({listener:i})=>i));return n}async off(e,r){const n=await ih(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(r==null||n.listeners.length===0)&&(n.stop(),xn(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await ih(this,e);if(!r)return this;r.stop(),xn(this).subs.delete(r.tag)}else{const{subs:r}=xn(this);for(const{tag:n,stop:s}of r.values())s(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends Wh{constructor(s,i=null){super(s,e,i)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let Zf=Wh;function nie(){return Zf}class dn extends nie(){}class qk{constructor(e,r,n){_(this,"interface");_(this,"bytecode");_(this,"runner");const s=ut.from(e);r instanceof Uint8Array||(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r)),r=z(Q(r)),fe(this,{bytecode:r,interface:s,runner:n||null})}attach(e){return new Zf(e,this.interface,this.runner)}async getDeployTransaction(...e){let r={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(r=await Hk(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await L7(this.runner,n.inputs,e),i=Fe([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},r,{data:i})}async deploy(...e){const r=await this.getDeployTransaction(...e);H(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(r),s=_k(n);return new Zf(s,this.interface,this.runner,n)}connect(e){return new qk(this.interface,this.bytecode,e)}static fromSolidity(e,r){I(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let s="";return e.bytecode?s=e.bytecode:e.evm&&e.evm.bytecode&&(s=e.evm.bytecode),new this(n,s,r)}}function _x(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):I(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class F7{constructor(e){_(this,"name");fe(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const U7=new RegExp("^(ipfs)://(.*)$","i"),t8=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),U7,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Go,Mc,qo,Kl,Fg,$7;const mu=class mu{constructor(e,r,n){j(this,qo);_(this,"provider");_(this,"address");_(this,"name");j(this,Go);j(this,Mc);fe(this,{provider:e,address:r,name:n}),T(this,Go,null),T(this,Mc,new dn(r,["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)"],e))}async supportsWildcard(){return w(this,Go)==null&&T(this,Go,(async()=>{try{return await w(this,Mc).supportsInterface("0x9061b923")}catch(e){if(Ft(e,"CALL_EXCEPTION"))return!1;throw T(this,Go,null),e}})()),await w(this,Go)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await Y(this,qo,Kl).call(this,"addr(bytes32)");return i==null||i===xi?null:i}catch(i){if(Ft(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await Y(this,qo,Kl).call(this,"addr(bytes32,uint)",[i]);if(qe(o,20))return Ae(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof F7&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await Y(this,qo,Kl).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const s=await r.decodeAddress(e,n);if(s!=null)return s;H(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await Y(this,qo,Kl).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await Y(this,qo,Kl).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=r[1]==="e3010170"?"ipfs":"ipns",i=parseInt(r[4],16);if(r[5].length===i*2)return`${s}://${mk("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;H(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function k1(t,e){return r=>{const n={};for(const s in t){let i=s;if(e&&s in e&&!(i in r)){for(const o of e[s])if(o in r){i=o;break}}try{const o=t[s](r[i]);o!==void 0&&(n[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";H(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:r})}}return n}}function sie(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}I(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function ed(t){return I(qe(t,!0),"invalid data","value",t),t}function pr(t){return I(qe(t,32),"invalid hash","value",t),t}const iie=k1({address:Ae,blockHash:pr,blockNumber:Pe,data:ed,index:Pe,removed:ze(sie,!1),topics:Kv(pr),transactionHash:pr,transactionIndex:Pe},{index:["logIndex"]});function oie(t){return iie(t)}const aie=k1({hash:ze(pr),parentHash:pr,parentBeaconBlockRoot:ze(pr,null),number:Pe,timestamp:Pe,nonce:ze(ed),difficulty:xe,gasLimit:xe,gasUsed:xe,stateRoot:ze(pr,null),receiptsRoot:ze(pr,null),blobGasUsed:ze(xe,null),excessBlobGas:ze(xe,null),miner:ze(Ae),prevRandao:ze(pr,null),extraData:ed,baseFeePerGas:ze(xe)},{prevRandao:["mixHash"]});function cie(t){const e=aie(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:W7(r)),e}const lie=k1({transactionIndex:Pe,blockNumber:Pe,transactionHash:pr,address:Ae,topics:Kv(pr),data:ed,index:Pe,blockHash:pr},{index:["logIndex"]});function uie(t){return lie(t)}const fie=k1({to:ze(Ae,null),from:ze(Ae,null),contractAddress:ze(Ae,null),index:Pe,root:ze(z),gasUsed:xe,blobGasUsed:ze(xe,null),logsBloom:ze(ed),blockHash:pr,hash:pr,logs:Kv(uie),blockNumber:Pe,cumulativeGasUsed:xe,effectiveGasPrice:ze(xe),blobGasPrice:ze(xe,null),status:ze(Pe),type:ze(Pe,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function die(t){return fie(t)}function W7(t){t.to&&xe(t.to)===r8&&(t.to="0x0000000000000000000000000000000000000000");const e=k1({hash:pr,index:ze(Pe,void 0),type:r=>r==="0x"||r==null?0:Pe(r),accessList:ze(vo,null),blobVersionedHashes:ze(Kv(pr,!0),null),blockHash:ze(pr,null),blockNumber:ze(Pe,null),transactionIndex:ze(Pe,null),from:Ae,gasPrice:ze(xe),maxPriorityFeePerGas:ze(xe),maxFeePerGas:ze(xe),maxFeePerBlobGas:ze(xe,null),gasLimit:xe,to:ze(Ae,null),value:xe,nonce:Pe,data:ed,creates:ze(Ae,null),chainId:ze(xe,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=_k(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=cs.from(t.signature):e.signature=cs.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&xe(e.blockHash)===r8&&(e.blockHash=null),e}const hie="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class qa{constructor(e){_(this,"name");fe(this,{name:e})}clone(){return new qa(this.name)}}class S1 extends qa{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);_(this,"effectiveBlock");_(this,"txBase");_(this,"txCreate");_(this,"txDataZero");_(this,"txDataNonzero");_(this,"txAccessListStorageKey");_(this,"txAccessListAddress");const s={effectiveBlock:r};function i(o,a){let c=(n||{})[o];c==null&&(c=a),I(typeof c=="number",`invalud value for ${o}`,"costs",n),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),fe(this,s)}clone(){return new S1(this.effectiveBlock,this)}}class A1 extends qa{constructor(r,n){super("org.ethers.plugins.network.Ens");_(this,"address");_(this,"targetNetwork");fe(this,{address:r||hie,targetNetwork:n??1})}clone(){return new A1(this.address,this.targetNetwork)}}var Dc;const J5=class J5 extends qa{constructor(r){super("org.ethers.plugins.network.FeeData");j(this,Dc);T(this,Dc,r)}get feeDataFunc(){return w(this,Dc)}async getFeeData(r){return await w(this,Dc).call(this,r)}clone(){return new J5(w(this,Dc))}};Dc=new WeakMap;let r2=J5;var H0,G0;class V7 extends qa{constructor(r,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");j(this,H0);j(this,G0);T(this,H0,r),T(this,G0,n)}get url(){return w(this,H0)}get processFunc(){return w(this,G0)}clone(){return this}}H0=new WeakMap,G0=new WeakMap;const Mx=new Map;var df,hf,Ko;const xu=class xu{constructor(e,r){j(this,df);j(this,hf);j(this,Ko);T(this,df,e),T(this,hf,xe(r)),T(this,Ko,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return w(this,df)}set name(e){T(this,df,e)}get chainId(){return w(this,hf)}set chainId(e){T(this,hf,xe(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===xe(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===xe(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===xe(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(w(this,Ko).values())}attachPlugin(e){if(w(this,Ko).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Ko).set(e.name,e.clone()),this}getPlugin(e){return w(this,Ko).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new xu(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new S1;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s9){let s=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||s++,n[1]=s.toString()}return BigInt(n[0]+n[1])}function s8(t){return new V7(t,async(e,r,n)=>{n.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([n.send(),e()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:n8(a.maxFee,9),maxPriorityFeePerGas:n8(a.maxPriorityFee,9)}}catch(i){H(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:s,error:i})}})}let i8=!1;function pie(){if(i8)return;i8=!0;function t(e,r,n){const s=function(){const i=new lt(e,r);return n.ensNetwork!=null&&i.attachPlugin(new A1(null,n.ensNetwork)),i.attachPlugin(new S1),(n.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};lt.register(e,s),lt.register(r,s),n.altNames&&n.altNames.forEach(i=>{lt.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("holesky",17e3,{ensNetwork:17e3}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("arbitrum-sepolia",421614,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("linea-sepolia",59141,{}),t("matic",137,{ensNetwork:1,plugins:[s8("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[s8("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("optimism-sepolia",11155420,{}),t("xdai",100,{ensNetwork:1})}function n2(t){return JSON.parse(JSON.stringify(t))}var ji,Hn,Qo,ei,pf,ty;class yie{constructor(e){j(this,pf);j(this,ji);j(this,Hn);j(this,Qo);j(this,ei);T(this,ji,e),T(this,Hn,null),T(this,Qo,4e3),T(this,ei,-2)}get pollingInterval(){return w(this,Qo)}set pollingInterval(e){T(this,Qo,e)}start(){w(this,Hn)||(T(this,Hn,w(this,ji)._setTimeout(Y(this,pf,ty).bind(this),w(this,Qo))),Y(this,pf,ty).call(this))}stop(){w(this,Hn)&&(w(this,ji)._clearTimeout(w(this,Hn)),T(this,Hn,null))}pause(e){this.stop(),e&&T(this,ei,-2)}resume(){this.start()}}ji=new WeakMap,Hn=new WeakMap,Qo=new WeakMap,ei=new WeakMap,pf=new WeakSet,ty=async function(){try{const e=await w(this,ji).getBlockNumber();if(w(this,ei)===-2){T(this,ei,e);return}if(e!==w(this,ei)){for(let r=w(this,ei)+1;r<=e;r++){if(w(this,Hn)==null)return;await w(this,ji).emit("block",r)}T(this,ei,e)}}catch{}w(this,Hn)!=null&&T(this,Hn,w(this,ji)._setTimeout(Y(this,pf,ty).bind(this),w(this,Qo)))};var Bc,Lc,Jo;class Kk{constructor(e){j(this,Bc);j(this,Lc);j(this,Jo);T(this,Bc,e),T(this,Jo,!1),T(this,Lc,r=>{this._poll(r,w(this,Bc))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){w(this,Jo)||(T(this,Jo,!0),w(this,Lc).call(this,-2),w(this,Bc).on("block",w(this,Lc)))}stop(){w(this,Jo)&&(T(this,Jo,!1),w(this,Bc).off("block",w(this,Lc)))}pause(e){this.stop()}resume(){this.start()}}Bc=new WeakMap,Lc=new WeakMap,Jo=new WeakMap;var yf,Fi;class gie extends Kk{constructor(r,n){super(r);j(this,yf);j(this,Fi);T(this,yf,n),T(this,Fi,-2)}pause(r){r&&T(this,Fi,-2),super.pause(r)}async _poll(r,n){const s=await n.getBlock(w(this,yf));s!=null&&(w(this,Fi)===-2?T(this,Fi,s.number):s.number>w(this,Fi)&&(n.emit(w(this,yf),s.number),T(this,Fi,s.number)))}}yf=new WeakMap,Fi=new WeakMap;var Ug;class vie extends Kk{constructor(r,n){super(r);j(this,Ug);T(this,Ug,n2(n))}async _poll(r,n){throw new Error("@TODO")}}Ug=new WeakMap;var gf;class mie extends Kk{constructor(r,n){super(r);j(this,gf);T(this,gf,n)}async _poll(r,n){const s=await n.getTransactionReceipt(w(this,gf));s&&n.emit(w(this,gf),s)}}gf=new WeakMap;var Ui,vf,mf,Yo,Gn,$g,z7;class Qk{constructor(e,r){j(this,$g);j(this,Ui);j(this,vf);j(this,mf);j(this,Yo);j(this,Gn);T(this,Ui,e),T(this,vf,n2(r)),T(this,mf,Y(this,$g,z7).bind(this)),T(this,Yo,!1),T(this,Gn,-2)}start(){w(this,Yo)||(T(this,Yo,!0),w(this,Gn)===-2&&w(this,Ui).getBlockNumber().then(e=>{T(this,Gn,e)}),w(this,Ui).on("block",w(this,mf)))}stop(){w(this,Yo)&&(T(this,Yo,!1),w(this,Ui).off("block",w(this,mf)))}pause(e){this.stop(),e&&T(this,Gn,-2)}resume(){this.start()}}Ui=new WeakMap,vf=new WeakMap,mf=new WeakMap,Yo=new WeakMap,Gn=new WeakMap,$g=new WeakSet,z7=async function(e){if(w(this,Gn)===-2)return;const r=n2(w(this,vf));r.fromBlock=w(this,Gn)+1,r.toBlock=e;const n=await w(this,Ui).getLogs(r);if(n.length===0){w(this,Gn){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const s=Object.keys(n);return s.sort(),s.reduce((i,o)=>(i[o]=n[o],i),{})}return n})}class S0{constructor(e){_(this,"name");fe(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function wie(t){return JSON.parse(JSON.stringify(t))}function s2(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function Dx(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(qe(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:ry("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:ry("orphan",r),filter:wie(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?s2(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=a=>{qe(a)?s.push(a):i.push((async()=>{s.push(await sr(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=s2(s.map(a=>a.toLowerCase()))}return{filter:n,tag:ry("event",n),type:"event"}}I(!1,"unknown ProviderEvent","event",t)}function Bx(){return new Date().getTime()}const Eie={cacheTimeout:250,pollingInterval:4e3};var Ir,Xo,Pr,xf,Cn,jc,Zo,$i,q0,qn,bf,wf,je,vn,i2,o2,oh,a2,ah,ny;class td{constructor(e,r){j(this,je);j(this,Ir);j(this,Xo);j(this,Pr);j(this,xf);j(this,Cn);j(this,jc);j(this,Zo);j(this,$i);j(this,q0);j(this,qn);j(this,bf);j(this,wf);if(T(this,wf,Object.assign({},Eie,r||{})),e==="any")T(this,jc,!0),T(this,Cn,null);else if(e){const n=lt.from(e);T(this,jc,!1),T(this,Cn,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else T(this,jc,!1),T(this,Cn,null);T(this,$i,-1),T(this,Zo,new Map),T(this,Ir,new Map),T(this,Xo,new Map),T(this,Pr,null),T(this,xf,!1),T(this,q0,1),T(this,qn,new Map),T(this,bf,!1)}get pollingInterval(){return w(this,wf).pollingInterval}get provider(){return this}get plugins(){return Array.from(w(this,Xo).values())}attachPlugin(e){if(w(this,Xo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Xo).set(e.name,e.connect(this)),this}getPlugin(e){return w(this,Xo).get(e)||null}get disableCcipRead(){return w(this,bf)}set disableCcipRead(e){T(this,bf,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=r.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:f}}),o.push(f)}H(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new I7(cie(e),this)}_wrapLog(e,r){return new Cd(oie(e),this)}_wrapTransactionReceipt(e,r){return new Wk(die(e),this)}_wrapTransactionResponse(e,r){return new Xf(W7(e),this)}_detectNetwork(){H(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){H(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Pe(await Y(this,je,vn).call(this,{method:"getBlockNumber"}),"%response");return w(this,$i)>=0&&T(this,$i,e),e}_getAddress(e){return sr(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(qe(e))return qe(e,32)?e:yr(e);if(typeof e=="bigint"&&(e=Pe(e,"blockTag")),typeof e=="number")return e>=0?yr(e):w(this,$i)>=0?yr(w(this,$i)+e):this.getBlockNumber().then(r=>yr(r+e));I(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?s2(c.map(l=>l.toLowerCase())):c.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(n&&(l!=null||u!=null))throw new Error("invalid filter");const d={};return f&&(d.address=f),r.length&&(d.topics=r),l&&(d.fromBlock=l),u&&(d.toBlock=u),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(e){const r=Yf(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=sr(r[s],this);xp(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);xp(s)?n.push(async function(){r.blockTag=await s}()):r.blockTag=s}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(w(this,Cn)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw w(this,Cn)===s&&T(this,Cn,null),i}})();return T(this,Cn,s),(await s).clone()}const e=w(this,Cn),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(w(this,jc)?(this.emit("network",n,r),w(this,Cn)===e&&T(this,Cn,Promise.resolve(n))):H(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const e=await this.getNetwork(),r=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await It({_block:Y(this,je,a2).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await Y(this,je,vn).call(this,{method:"getGasPrice"});return xe(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await Y(this,je,vn).call(this,{method:"getPriorityFee"});return xe(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,e);return l&&l.baseFeePerGas&&(c=o??BigInt("1000000000"),a=l.baseFeePerGas*xie+c),new Zw(i,a,c)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const s=new Gt(n.url),i=await n.processFunc(r,this,s);return new Zw(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return xp(r)&&(r=await r),xe(await Y(this,je,vn).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await It({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Y(this,je,o2).call(this,Y(this,je,i2).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return xe(await Y(this,je,oh).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return Pe(await Y(this,je,oh).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return z(await Y(this,je,oh).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=xe(r,"position");return z(await Y(this,je,oh).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await It({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=gl.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:s}=await It({network:this.getNetwork(),params:Y(this,je,a2).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await It({network:this.getNetwork(),params:Y(this,je,vn).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await It({network:this.getNetwork(),params:Y(this,je,vn).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await Y(this,je,vn).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await It({network:this.getNetwork(),result:Y(this,je,vn).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:z(r)}async getLogs(e){let r=this._getFilter(e);xp(r)&&(r=await r);const{network:n,params:s}=await It({network:this.getNetwork(),params:Y(this,je,vn).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){H(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await k0.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Ae(e);const r=hg(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await k0.getEnsAddress(this),i=await new dn(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(i==null||i===xi)return null;const a=await new dn(i,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(a)!==e?null:a}catch(n){if(Ft(n,"BAD_DATA")&&n.value==="0x"||Ft(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const s=r??1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(e);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};n!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(ht("timeout","TIMEOUT",{reason:"timeout"})))},n)),c(await this.getBlockNumber())})}async waitForBlock(e){H(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=w(this,qn).get(e);r&&(r.timer&&clearTimeout(r.timer),w(this,qn).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=Pl(this,q0)._++,s=()=>{w(this,qn).delete(n),e()};if(this.paused)w(this,qn).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);w(this,qn).set(n,{timer:i,func:s,time:Bx()})}return n}_forEachSubscriber(e){for(const r of w(this,Ir).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new S0(e.type);case"block":{const r=new yie(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new gie(this,e.type);case"event":return new Qk(this,e.filter);case"transaction":return new mie(this,e.hash);case"orphan":return new vie(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of w(this,Ir).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),w(this,Pr)!=null&&r.pause(w(this,Pr));break}}async on(e,r){const n=await Y(this,je,ny).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async once(e,r){const n=await Y(this,je,ny).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async emit(e,...r){const n=await Y(this,je,ah).call(this,e,r);if(!n||n.listeners.length===0)return!1;const s=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:o})=>{const a=new xk(this,o?null:i,e);try{i.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),w(this,Ir).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await Y(this,je,ah).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of w(this,Ir).values())r+=n.length;return r}async listeners(e){if(e){const n=await Y(this,je,ah).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of w(this,Ir).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await Y(this,je,ah).call(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),w(this,Ir).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await Y(this,je,ny).call(this,e);n&&s.stop(),w(this,Ir).delete(r)}else for(const[r,{started:n,subscriber:s}]of w(this,Ir))n&&s.stop(),w(this,Ir).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return w(this,xf)}destroy(){this.removeAllListeners();for(const e of w(this,qn).keys())this._clearTimeout(e);T(this,xf,!0)}get paused(){return w(this,Pr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(T(this,$i,-1),w(this,Pr)!=null){if(w(this,Pr)==!!e)return;H(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),T(this,Pr,!!e);for(const r of w(this,qn).values())r.timer&&clearTimeout(r.timer),r.time=Bx()-r.time}resume(){if(w(this,Pr)!=null){this._forEachSubscriber(e=>e.resume()),T(this,Pr,null);for(const e of w(this,qn).values()){let r=e.time;r<0&&(r=0),e.time=Bx(),setTimeout(e.func,r)}}}}Ir=new WeakMap,Xo=new WeakMap,Pr=new WeakMap,xf=new WeakMap,Cn=new WeakMap,jc=new WeakMap,Zo=new WeakMap,$i=new WeakMap,q0=new WeakMap,qn=new WeakMap,bf=new WeakMap,wf=new WeakMap,je=new WeakSet,vn=async function(e){const r=w(this,wf).cacheTimeout;if(r<0)return await this._perform(e);const n=ry(e.method,e);let s=w(this,Zo).get(n);return s||(s=this._perform(e),w(this,Zo).set(n,s),setTimeout(()=>{w(this,Zo).get(n)===s&&w(this,Zo).delete(n)},r)),await s},i2=async function(e,r,n){H(n=0&&r==="latest"&&s.to!=null&&at(i.data,0,4)==="0x556f1830"){const o=i.data,a=await sr(s.to,this);let c;try{c=Tie(at(i.data,4))}catch(f){H(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}H(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);H(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Fe([c.selector,Aie([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await Y(this,je,i2).call(this,u,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},o2=async function(e){const{value:r}=await It({network:this.getNetwork(),value:e});return r},oh=async function(e,r,n){let s=this._getAddress(r),i=this._getBlockTag(n);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await Y(this,je,o2).call(this,Y(this,je,vn).call(this,Object.assign(e,{address:s,blockTag:i})))},a2=async function(e,r){if(qe(e,32))return await Y(this,je,vn).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await Y(this,je,vn).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},ah=async function(e,r){let n=await Dx(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await Dx({orphan:"drop-log",log:r[0]},this)),w(this,Ir).get(n.tag)||null},ny=async function(e){const r=await Dx(e,this),n=r.tag;let s=w(this,Ir).get(n);return s||(s={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},w(this,Ir).set(n,s)),s};function Cie(t,e){try{const r=c2(t,e);if(r)return Ds(r)}catch{}return null}function c2(t,e){if(t==="0x")return null;try{const r=Pe(at(t,e,e+32)),n=Pe(at(t,r,r+32));return at(t,r+32,r+32+n)}catch{}return null}function o8(t){const e=rr(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function kie(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const Sie=new Uint8Array([]);function Aie(t){const e=[];let r=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=at(t,0,32);H(at(r,0,12)===at(a8,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=at(r,12);try{const n=[],s=Pe(at(t,32,64)),i=Pe(at(t,s,s+32)),o=at(t,s+32);for(let a=0;ae[n]),e}function Ll(t,e){if(t.provider)return t.provider;H(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function c8(t,e){let r=Yf(e);if(r.to!=null&&(r.to=sr(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),sr(n,t)]).then(([s,i])=>(I(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await It(r)}class kd{constructor(e){_(this,"provider");fe(this,{provider:e||null})}async getNonce(e){return Ll(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await c8(this,e)}async populateTransaction(e){const r=Ll(this,"populateTransaction"),n=await c8(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const s=await this.provider.getNetwork();if(n.chainId!=null){const o=xe(n.chainId);I(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=s.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?I(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&I(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();H(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const a=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=a,n.maxPriorityFeePerGas=a}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(H(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):H(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(n.type===2||n.type===3)&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await It(n)}async estimateGas(e){return Ll(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Ll(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Ll(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=Ll(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=gl.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}var Ef,sy;const Y5=class Y5 extends kd{constructor(r,n){super(n);j(this,Ef);_(this,"address");fe(this,{address:r})}async getAddress(){return this.address}connect(r){return new Y5(this.address,r)}async signTransaction(r){Y(this,Ef,sy).call(this,"transactions","signTransaction")}async signMessage(r){Y(this,Ef,sy).call(this,"messages","signMessage")}async signTypedData(r,n,s){Y(this,Ef,sy).call(this,"typed-data","signTypedData")}};Ef=new WeakSet,sy=function(r,n){H(!1,`VoidSigner cannot sign ${r}`,"UNSUPPORTED_OPERATION",{operation:n})};let yg=Y5;const l8=new Set;function Ka(t){l8.has(t)||(l8.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}function Iie(t){return JSON.parse(JSON.stringify(t))}var Fr,ti,Fc,ea,Uc,Cf,Ma,l2,u2;class H7{constructor(e){j(this,Ma);j(this,Fr);j(this,ti);j(this,Fc);j(this,ea);j(this,Uc);j(this,Cf);T(this,Fr,e),T(this,ti,null),T(this,Fc,Y(this,Ma,l2).bind(this)),T(this,ea,!1),T(this,Uc,null),T(this,Cf,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){w(this,ea)||(T(this,ea,!0),Y(this,Ma,l2).call(this,-2))}stop(){w(this,ea)&&(T(this,ea,!1),T(this,Cf,!0),Y(this,Ma,u2).call(this),w(this,Fr).off("block",w(this,Fc)))}pause(e){e&&Y(this,Ma,u2).call(this),w(this,Fr).off("block",w(this,Fc))}resume(){this.start()}}Fr=new WeakMap,ti=new WeakMap,Fc=new WeakMap,ea=new WeakMap,Uc=new WeakMap,Cf=new WeakMap,Ma=new WeakSet,l2=async function(e){try{w(this,ti)==null&&T(this,ti,this._subscribe(w(this,Fr)));let r=null;try{r=await w(this,ti)}catch(i){if(!Ft(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(r==null){T(this,ti,null),w(this,Fr)._recoverSubscriber(this,this._recover(w(this,Fr)));return}const n=await w(this,Fr).getNetwork();if(w(this,Uc)||T(this,Uc,n),w(this,Uc).chainId!==n.chainId)throw new Error("chaid changed");if(w(this,Cf))return;const s=await w(this,Fr).send("eth_getFilterChanges",[r]);await this._emitResults(w(this,Fr),s)}catch(r){console.log("@TODO",r)}w(this,Fr).once("block",w(this,Fc))},u2=function(){const e=w(this,ti);e&&(T(this,ti,null),e.then(r=>{w(this,Fr).destroyed||w(this,Fr).send("eth_uninstallFilter",[r])}))};var $c;class Pie extends H7{constructor(r,n){super(r);j(this,$c);T(this,$c,Iie(n))}_recover(r){return new Qk(r,w(this,$c))}async _subscribe(r){return await r.send("eth_newFilter",[w(this,$c)])}async _emitResults(r,n){for(const s of n)r.emit(w(this,$c),r._wrapLog(s,r._network))}}$c=new WeakMap;class Oie extends H7{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const Rie="bigint,boolean,function,number,string,symbol".split(/,/g);function iy(t){if(t==null||Rie.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(iy);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function Nie(t){return new Promise(e=>{setTimeout(e,t)})}function jl(t){return t&&t.toLowerCase()}function u8(t){return t&&typeof t.pollingInterval=="number"}const G7={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class oy extends kd{constructor(r,n){super(r);_(this,"address");n=Ae(n),fe(this,{address:n})}connect(r){H(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=iy(r),s=[];if(n.from){const o=n.from;s.push((async()=>{const a=await sr(o,this.provider);I(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=a})())}else n.from=this.address;if(n.gasLimit==null&&s.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;s.push((async()=>{n.to=await sr(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(r);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(n));return}}catch(u){if(Ft(u,"CANCELLED")||Ft(u,"BAD_DATA")||Ft(u,"NETWORK_ERROR")||Ft(u,"UNSUPPORTED_OPERATION")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(Ft(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",ht("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(r){const n=iy(r);if(n.from){const i=await sr(n.from,this.provider);I(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=i}else n.from=this.address;const s=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[s])}async signMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("personal_sign",[z(n),this.address.toLowerCase()])}async signTypedData(r,n,s){const i=iy(s),o=await Bs.resolveNames(r,n,i,async a=>{const c=await sr(a);return I(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Bs.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),z(n)])}}var Wc,kf,Wi,ri,bs,Kn,nn,K0,f2;class Jk extends td{constructor(r,n){super(r,n);j(this,K0);j(this,Wc);j(this,kf);j(this,Wi);j(this,ri);j(this,bs);j(this,Kn);j(this,nn);T(this,kf,1),T(this,Wc,Object.assign({},G7,n||{})),T(this,Wi,[]),T(this,ri,null),T(this,Kn,null),T(this,nn,null);{let i=null;const o=new Promise(a=>{i=a});T(this,bs,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(I(!s||r!=="any","staticNetwork cannot be used on special network 'any'","options",n),s&&r!=null&&T(this,Kn,lt.from(r))):s&&(I(r==null||s.matches(r),"staticNetwork MUST match network object","options",n),T(this,Kn,s))}_getOption(r){return w(this,Wc)[r]}get _network(){return H(w(this,Kn),"network is not available yet","NETWORK_ERROR"),w(this,Kn)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let s=r.transaction;if(s&&s.type!=null&&xe(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},s,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)if(r===!0){if(w(this,Kn))return w(this,Kn)}else return r;return w(this,nn)?await w(this,nn):this.ready?(T(this,nn,(async()=>{try{const n=lt.from(xe(await this.send("eth_chainId",[])));return T(this,nn,null),n}catch(n){throw T(this,nn,null),n}})()),await w(this,nn)):(T(this,nn,(async()=>{const n={id:Pl(this,kf)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let s;try{s=(await this._send(n))[0],T(this,nn,null)}catch(i){throw T(this,nn,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return lt.from(xe(s.result));throw this.getRpcError(n,s)})()),await w(this,nn))}_start(){w(this,bs)==null||w(this,bs).resolve==null||(w(this,bs).resolve(),T(this,bs,null),(async()=>{for(;w(this,Kn)==null&&!this.destroyed;)try{T(this,Kn,await this._detectNetwork())}catch(r){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",ht("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await Nie(1e3)}Y(this,K0,f2).call(this)})())}async _waitUntilReady(){if(w(this,bs)!=null)return await w(this,bs).promise}_getSubscriber(r){return r.type==="pending"?new Oie(this):r.type==="event"?this._getOption("polling")?new Qk(this,r.filter):new Pie(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new S0("orphan"):super._getSubscriber(r)}get ready(){return w(this,bs)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(r[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),n[i]=yr(xe(r[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{r[s]!=null&&(n[s]=z(r[s]))}),r.accessList&&(n.accessList=vo(r.accessList)),r.blobVersionedHashes&&(n.blobVersionedHashes=r.blobVersionedHashes.map(s=>s.toLowerCase())),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[jl(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[jl(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[jl(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[jl(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(jl):r.filter.address=jl(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:s}=r,{error:i}=n;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return ht("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=d2(i),l=qt.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",r.params[0],c?c.data:null);return l.info={error:i,payload:r},l}const o=JSON.stringify(_ie(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ht("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"}[s]||"unknown",reason:"rejected",info:{payload:r,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return ht("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return ht("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return ht("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return ht("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?ht("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:i,payload:r}}):ht("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(ht("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const s=Pl(this,kf)._++,i=new Promise((o,a)=>{w(this,Wi).push({resolve:o,reject:a,payload:{method:r,params:n,id:s,jsonrpc:"2.0"}})});return Y(this,K0,f2).call(this),i}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const i=await n;if(r>=i.length)throw new Error("no such account");return new oy(this,i[r])}const{accounts:s}=await It({network:this.getNetwork(),accounts:n});r=Ae(r);for(const i of s)if(Ae(i)===r)return new oy(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new oy(this,n))}destroy(){w(this,ri)&&(clearTimeout(w(this,ri)),T(this,ri,null));for(const{payload:r,reject:n}of w(this,Wi))n(ht("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));T(this,Wi,[]),super.destroy()}}Wc=new WeakMap,kf=new WeakMap,Wi=new WeakMap,ri=new WeakMap,bs=new WeakMap,Kn=new WeakMap,nn=new WeakMap,K0=new WeakSet,f2=function(){if(w(this,ri))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");T(this,ri,setTimeout(()=>{T(this,ri,null);const n=w(this,Wi);for(T(this,Wi,[]);n.length;){const s=[n.shift()];for(;n.length&&s.length!==w(this,Wc).batchMaxCount;)if(s.push(n.shift()),JSON.stringify(s.map(o=>o.payload)).length>w(this,Wc).batchMaxSize){n.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(ht("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=ht("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},r))};var ta;class q7 extends Jk{constructor(r,n){super(r,n);j(this,ta);let s=this._getOption("pollingInterval");s==null&&(s=G7.pollingInterval),T(this,ta,s)}_getSubscriber(r){const n=super._getSubscriber(r);return u8(n)&&(n.pollingInterval=w(this,ta)),n}get pollingInterval(){return w(this,ta)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");T(this,ta,r),this._forEachSubscriber(n=>{u8(n)&&(n.pollingInterval=w(this,ta))})}}ta=new WeakMap;var Sf,G8;let cr=(G8=class extends q7{constructor(r,n,s){r==null&&(r="http://localhost:8545");super(n,s);j(this,Sf);typeof r=="string"?T(this,Sf,new Gt(r)):T(this,Sf,r.clone())}_getConnection(){return w(this,Sf).clone()}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){const n=this._getConnection();n.body=JSON.stringify(r),n.setHeader("content-type","application/json");const s=await n.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}},Sf=new WeakMap,G8);function d2(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&qe(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=d2(t[e]);if(r)return r}return null}if(typeof t=="string")try{return d2(JSON.parse(t))}catch{}return null}function h2(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)h2(t[r],e);if(typeof t=="string")try{return h2(JSON.parse(t),e)}catch{}}}function _ie(t){const e=[];return h2(t,e),e}const bp="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Mie(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}I(!1,"unsupported network","network",t)}class A0 extends cr{constructor(r,n){r==null&&(r="mainnet");const s=lt.from(r);n==null&&(n=bp);const i={polling:!0,staticNetwork:s},o=A0.getRequest(s,n);super(o,s,i);_(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new A0(r,this.apiKey)}catch{}return super._getProvider(r)}static getRequest(r,n){n==null&&(n=bp);const s=new Gt(`https://${Mie(r.name)}/${n}`);return s.allowGzip=!0,n===bp&&(s.retryFunc=async(i,o,a)=>(Ka("AnkrProvider"),!0)),s}getRpcError(r,n){return r.method==="eth_sendRawTransaction"&&n&&n.error&&n.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(n.error.message="replacement transaction underpriced"),super.getRpcError(r,n)}isCommunityResource(){return this.apiKey===bp}}const wp="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function Die(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}I(!1,"unsupported network","network",t)}class T0 extends cr{constructor(r,n){r==null&&(r="mainnet");const s=lt.from(r);n==null&&(n=wp);const i=T0.getRequest(s,n);super(i,s,{staticNetwork:s});_(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new T0(r,this.apiKey)}catch{}return super._getProvider(r)}async _perform(r){if(r.method==="getTransactionResult"){const{trace:n,tx:s}=await It({trace:this.send("trace_transaction",[r.hash]),tx:this.getTransaction(r.hash)});if(n==null||s==null)return null;let i,o=!1;try{i=n[0].result.output,o=n[0].error==="Reverted"}catch{}if(i)return H(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:s,invocation:null,revert:null}),i;H(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(r)}isCommunityResource(){return this.apiKey===wp}static getRequest(r,n){n==null&&(n=wp);const s=new Gt(`https://${Die(r.name)}/v2/${n}`);return s.allowGzip=!0,n===wp&&(s.retryFunc=async(i,o,a)=>(Ka("alchemy"),!0)),s}}function Ep(t){switch(t){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}I(!1,"unsupported network","network",t)}function Bie(t){switch(t){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}I(!1,"unsupported network","network",t)}class I0 extends cr{constructor(r,n){r==null&&(r="mainnet");const s=lt.from(r);n==null&&(n=Ep(s.name));const i=I0.getRequest(s,n);super(i,s,{staticNetwork:s});_(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new I0(r,this.apiKey)}catch{}return super._getProvider(r)}isCommunityResource(){return this.apiKey===Ep(this._network.name)}static getRequest(r,n){n==null&&(n=Ep(r.name));const s=new Gt(`https://${Bie(r.name)}/${n}`);return s.allowGzip=!0,n===Ep(r.name)&&(s.retryFunc=async(i,o,a)=>(Ka("ChainstackProvider"),!0)),s}}class K7 extends cr{constructor(e){e==null&&(e="mainnet");const r=lt.from(e);I(r.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}}const f8=2e3;function Lie(t){return t&&typeof t.then=="function"}const Q7="org.ethers.plugins.provider.Etherscan";class Yk extends qa{constructor(r){super(Q7);_(this,"baseUrl");fe(this,{baseUrl:r})}clone(){return new Yk(this.baseUrl)}}const jie=["enableCcipRead"];let Fie=1;var Af;class J7 extends td{constructor(r,n){const s=n??null;super();_(this,"network");_(this,"apiKey");j(this,Af);const i=lt.from(r);T(this,Af,i.getPlugin(Q7)),fe(this,{apiKey:s,network:i}),this.getBaseUrl()}getBaseUrl(){if(w(this,Af))return w(this,Af).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}I(!1,"unsupported network","network",this.network)}getUrl(r,n){const s=Object.keys(n).reduce((o,a)=>{const c=n[a];return c!=null&&(o+=`&${a}=${c}`),o},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${r}${s}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(r,n){return n.module=r,n.apikey=this.apiKey,n}async detectNetwork(){return this.network}async fetch(r,n,s){const i=Fie++,o=s?this.getPostUrl():this.getUrl(r,n),a=s?this.getPostData(r,n):null;this.emit("debug",{action:"sendRequest",id:i,url:o,payload:a});const c=new Gt(o);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(f,d,h)=>(this.isCommunityResource()&&Ka("Etherscan"),Promise.resolve(!0)),c.processFunc=async(f,d)=>{const h=d.hasBody()?JSON.parse(Ds(d.body)):{},y=(typeof h.result=="string"?h.result:"").toLowerCase().indexOf("rate limit")>=0;return r==="proxy"?h&&h.status==0&&h.message=="NOTOK"&&y&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:h}),d.throwThrottleError(h.result,f8)):y&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:h.result}),d.throwThrottleError(h.result,f8)),d},a&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(a).map(f=>`${f}=${a[f]}`).join("&"));const l=await c.send();try{l.assertOk()}catch(f){this.emit("debug",{action:"receiveError",id:i,error:f,reason:"assertOk"}),H(!1,"response error","SERVER_ERROR",{request:c,response:l})}l.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),H(!1,"missing response","SERVER_ERROR",{request:c,response:l}));const u=JSON.parse(Ds(l.body));return r==="proxy"?(u.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"invalid JSON-RPC"}),H(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:l,info:{result:u}})),u.error&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"JSON-RPC error"}),H(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):u.status==0&&(u.message==="No records found"||u.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):((u.status!=1||typeof u.message=="string"&&!u.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:u}),H(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result)}_getTransactionPostData(r){const n={};for(let s in r){if(jie.indexOf(s)>=0||r[s]==null)continue;let i=r[s];if(!(s==="type"&&i===0)&&!(s==="blockTag"&&i==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[s])i=yr(i);else if(s==="accessList")i="["+vo(i).map(o=>`{address:"${o.address}",storageKeys:["${o.storageKeys.join('","')}"]}`).join(",")+"]";else if(s==="blobVersionedHashes"){if(i.length===0)continue;H(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:r}})}else i=z(i);n[s]=i}}return n}_checkError(r,n,s){let i="";if(Ft(n,"SERVER_ERROR")){try{i=n.info.result.error.message}catch{}if(!i)try{i=n.info.message}catch{}}if(r.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&H(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.transaction}),(r.method==="call"||r.method==="estimateGas")&&i.match(/execution reverted/i)){let o="";try{o=n.info.result.error.data}catch{}const a=qt.getBuiltinCallException(r.method,r.transaction,o);throw a.info={request:r,error:n},a}if(i&&r.method==="broadcastTransaction"){const o=gl.from(r.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&H(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:o}),i.match(/insufficient funds/)&&H(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:o}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&H(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:o})}throw n}async _detectNetwork(){return this.network}async _perform(r){switch(r.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(n=>this._checkError(r,n,r.signedTransaction));case"getBlock":if("blockTag"in r)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});H(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.hash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}}return super._perform(r)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(r){let n=this._getAddress(r);Lie(n)&&(n=await n);try{const s=await this.fetch("contract",{action:"getabi",address:n}),i=JSON.parse(s);return new dn(n,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Af=new WeakMap;function Uie(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const $ie=Uie().WebSocket;var ni,Q0,ra,Vc,na;class Qv{constructor(e,r){j(this,ni);j(this,Q0);j(this,ra);j(this,Vc);j(this,na);T(this,ni,e),T(this,Q0,JSON.stringify(r)),T(this,ra,null),T(this,Vc,null),T(this,na,null)}get filter(){return JSON.parse(w(this,Q0))}start(){T(this,ra,w(this,ni).send("eth_subscribe",this.filter).then(e=>(w(this,ni)._register(e,this),e)))}stop(){w(this,ra).then(e=>{w(this,ni).destroyed||w(this,ni).send("eth_unsubscribe",[e])}),T(this,ra,null)}pause(e){H(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),T(this,Vc,!!e)}resume(){T(this,Vc,null)}_handleMessage(e){if(w(this,ra)!=null&&w(this,Vc)===null){let r=w(this,na);r==null?r=this._emit(w(this,ni),e):r=r.then(async()=>{await this._emit(w(this,ni),e)}),T(this,na,r.then(()=>{w(this,na)===r&&T(this,na,null)}))}}async _emit(e,r){throw new Error("sub-classes must implemente this; _emit")}}ni=new WeakMap,Q0=new WeakMap,ra=new WeakMap,Vc=new WeakMap,na=new WeakMap;class Y7 extends Qv{constructor(e){super(e,["newHeads"])}async _emit(e,r){e.emit("block",parseInt(r.number))}}class X7 extends Qv{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,r){e.emit("pending",r)}}var J0;class Z7 extends Qv{constructor(r,n){super(r,["logs",n]);j(this,J0);T(this,J0,JSON.stringify(n))}get logFilter(){return JSON.parse(w(this,J0))}async _emit(r,n){r.emit(this.logFilter,r._wrapLog(n,r._network))}}J0=new WeakMap;var zc,Tf,sa;class e_ extends Jk{constructor(r,n){const s=Object.assign({},n??{});I(s.batchMaxCount==null||s.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",n),s.batchMaxCount=1,s.staticNetwork==null&&(s.staticNetwork=!0);super(r,s);j(this,zc);j(this,Tf);j(this,sa);T(this,zc,new Map),T(this,Tf,new Map),T(this,sa,new Map)}_getSubscriber(r){switch(r.type){case"close":return new S0("close");case"block":return new Y7(this);case"pending":return new X7(this);case"event":return new Z7(this,r.filter);case"orphan":if(r.filter.orphan==="drop-log")return new S0("drop-log")}return super._getSubscriber(r)}_register(r,n){w(this,Tf).set(r,n);const s=w(this,sa).get(r);if(s){for(const i of s)n._handleMessage(i);w(this,sa).delete(r)}}async _send(r){I(!Array.isArray(r),"WebSocket does not support batch send","payload",r);const n=new Promise((s,i)=>{w(this,zc).set(r.id,{payload:r,resolve:s,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(r)),[await n]}async _processMessage(r){const n=JSON.parse(r);if(n&&typeof n=="object"&&"id"in n){const s=w(this,zc).get(n.id);if(s==null){this.emit("error",ht("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:n}));return}w(this,zc).delete(n.id),s.resolve(n)}else if(n&&n.method==="eth_subscription"){const s=n.params.subscription,i=w(this,Tf).get(s);if(i)i._handleMessage(n.params.result);else{let o=w(this,sa).get(s);o==null&&(o=[],w(this,sa).set(s,o)),o.push(n.params.result)}}else{this.emit("error",ht("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:n}));return}}async _write(r){throw new Error("sub-classes must override this")}}zc=new WeakMap,Tf=new WeakMap,sa=new WeakMap;var Hc,ws;class Xk extends e_{constructor(r,n,s){super(n,s);j(this,Hc);j(this,ws);typeof r=="string"?(T(this,Hc,()=>new $ie(r)),T(this,ws,w(this,Hc).call(this))):typeof r=="function"?(T(this,Hc,r),T(this,ws,r())):(T(this,Hc,null),T(this,ws,r)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(w(this,ws)==null)throw new Error("websocket closed");return w(this,ws)}async _write(r){this.websocket.send(r)}async destroy(){w(this,ws)!=null&&(w(this,ws).close(),T(this,ws,null)),super.destroy()}}Hc=new WeakMap,ws=new WeakMap;const ch="84842078b09946638c03157f83405213";function Wie(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}I(!1,"unsupported network","network",t)}class t_ extends Xk{constructor(r,n){const s=new rd(r,n),i=s._getConnection();H(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const o=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,s._network);_(this,"projectId");_(this,"projectSecret");fe(this,{projectId:s.projectId,projectSecret:s.projectSecret})}isCommunityResource(){return this.projectId===ch}}class rd extends cr{constructor(r,n,s){r==null&&(r="mainnet");const i=lt.from(r);n==null&&(n=ch),s==null&&(s=null);const o=rd.getRequest(i,n,s);super(o,i,{staticNetwork:i});_(this,"projectId");_(this,"projectSecret");fe(this,{projectId:n,projectSecret:s})}_getProvider(r){try{return new rd(r,this.projectId,this.projectSecret)}catch{}return super._getProvider(r)}isCommunityResource(){return this.projectId===ch}static getWebSocketProvider(r,n){return new t_(r,n)}static getRequest(r,n,s){n==null&&(n=ch),s==null&&(s=null);const i=new Gt(`https://${Wie(r.name)}/v3/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===ch&&(i.retryFunc=async(o,a,c)=>(Ka("InfuraProvider"),!0)),i}}const Cp="919b412a057b5e9c9b6dce193c5a60242d6efadb";function Vie(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}I(!1,"unsupported network","network",t)}class P0 extends cr{constructor(r,n){r==null&&(r="mainnet");const s=lt.from(r);n==null&&(n=Cp);const i=P0.getRequest(s,n);super(i,s,{staticNetwork:s});_(this,"token");fe(this,{token:n})}_getProvider(r){try{return new P0(r,this.token)}catch{}return super._getProvider(r)}isCommunityResource(){return this.token===Cp}static getRequest(r,n){n==null&&(n=Cp);const s=new Gt(`https://${Vie(r.name)}/${n}`);return s.allowGzip=!0,n===Cp&&(s.retryFunc=async(i,o,a)=>(Ka("QuickNodeProvider"),!0)),s}}const zie=BigInt("1"),Hie=BigInt("2");function Gie(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}function qie(t){return new Promise(e=>{setTimeout(e,t)})}function p2(){return new Date().getTime()}function Lx(t){return JSON.stringify(t,(e,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}const d8={stallTimeout:400,priority:1,weight:1},h8={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function Kie(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const r=await t.provider.getBlockNumber();r>t.blockNumber&&(t.blockNumber=r)}catch(r){t.blockNumber=-2,t._lastFatalError=r,t._lastFatalErrorTimestamp=p2()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function Oh(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(Oh).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return Oh(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(r=>`${JSON.stringify(r)}:${Oh(t[r])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function jx(t){if("error"in t){const r=t.error;return{tag:Oh(r),value:r}}const e=t.result;return{tag:Oh(e),value:e}}function ay(t,e){const r=new Map;for(const{value:s,tag:i,weight:o}of e){const a=r.get(i)||{value:s,weight:0};a.weight+=o,r.set(i,a)}let n=null;for(const s of r.values())s.weight>=t&&(!n||s.weight>n.weight)&&(n=s);if(n)return n.value}function y2(t,e){let r=0;const n=new Map;let s=null;const i=[];for(const{value:a,tag:c,weight:l}of e)if(a instanceof Error){const u=n.get(c)||{value:a,weight:0};u.weight+=l,n.set(c,u),(s==null||u.weight>s.weight)&&(s=u)}else i.push(BigInt(a)),r+=l;if(r=t?s.value:void 0;i.sort((a,c)=>aa?1:0);const o=Math.floor(i.length/2);return i.length%2?i[o]:(i[o-1]+i[o]+zie)/Hie}function Fx(t,e){const r=ay(t,e);if(r!==void 0)return r;for(const n of e)if(n.value)return n.value}function Qie(t,e){if(t===1)return Pe(y2(t,e),"%internal");const r=new Map,n=(o,a)=>{const c=r.get(o)||{result:o,weight:0};c.weight+=a,r.set(o,c)};for(const{weight:o,value:a}of e){const c=Pe(a);n(c-1,o),n(c,o),n(c+1,o)}let s=0,i;for(const{weight:o,result:a}of r.values())o>=t&&(o>s||i!=null&&o===s&&a>i)&&(s=o,i=a);return i}var sn,Vi,If,yn,n_,g2,s_,i_,v2;class r_ extends td{constructor(r,n,s){super(n,s);j(this,yn);_(this,"quorum");_(this,"eventQuorum");_(this,"eventWorkers");j(this,sn);j(this,Vi);j(this,If);T(this,sn,r.map(i=>i instanceof td?Object.assign({provider:i},d8,h8):Object.assign({},d8,i,h8))),T(this,Vi,-2),T(this,If,null),s&&s.quorum!=null?this.quorum=s.quorum:this.quorum=Math.ceil(w(this,sn).reduce((i,o)=>(i+=o.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,I(this.quorum<=w(this,sn).reduce((i,o)=>i+o.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return w(this,sn).map(r=>{const n=Object.assign({},r);for(const s in n)s[0]==="_"&&delete n[s];return n})}async _detectNetwork(){return lt.from(xe(await this._perform({method:"chainId"})))}async _translatePerform(r,n){switch(n.method){case"broadcastTransaction":return await r.broadcastTransaction(n.signedTransaction);case"call":return await r.call(Object.assign({},n.transaction,{blockTag:n.blockTag}));case"chainId":return(await r.getNetwork()).chainId;case"estimateGas":return await r.estimateGas(n.transaction);case"getBalance":return await r.getBalance(n.address,n.blockTag);case"getBlock":{const s="blockHash"in n?n.blockHash:n.blockTag;return await r.getBlock(s,n.includeTransactions)}case"getBlockNumber":return await r.getBlockNumber();case"getCode":return await r.getCode(n.address,n.blockTag);case"getGasPrice":return(await r.getFeeData()).gasPrice;case"getPriorityFee":return(await r.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await r.getLogs(n.filter);case"getStorage":return await r.getStorage(n.address,n.position,n.blockTag);case"getTransaction":return await r.getTransaction(n.hash);case"getTransactionCount":return await r.getTransactionCount(n.address,n.blockTag);case"getTransactionReceipt":return await r.getTransactionReceipt(n.hash);case"getTransactionResult":return await r.getTransactionResult(n.hash)}}async _perform(r){if(r.method==="broadcastTransaction"){const o=w(this,sn).map(l=>null),a=w(this,sn).map(async({provider:l,weight:u},f)=>{try{const d=await l._perform(r);o[f]=Object.assign(jx({result:d}),{weight:u})}catch(d){o[f]=Object.assign(jx({error:d}),{weight:u})}});for(;;){const l=o.filter(d=>d!=null);for(const{value:d}of l)if(!(d instanceof Error))return d;const u=ay(this.quorum,o.filter(d=>d!=null));if(Ft(u,"INSUFFICIENT_FUNDS"))throw u;const f=a.filter((d,h)=>o[h]==null);if(f.length===0)break;await Promise.race(f)}const c=Fx(this.quorum,o);if(H(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:o.map(Lx)}}),c instanceof Error)throw c;return c}await Y(this,yn,s_).call(this);const n=new Set;let s=0;for(;;){const o=Y(this,yn,g2).call(this,n,r);if(o==null||(s+=o.config.weight,s>=this.quorum))break}const i=await Y(this,yn,v2).call(this,n,r);for(const o of n)o.perform&&o.result==null&&o.config.lateResponses++;return i}async destroy(){for(const{provider:r}of w(this,sn))r.destroy();super.destroy()}}sn=new WeakMap,Vi=new WeakMap,If=new WeakMap,yn=new WeakSet,n_=function(r){const n=Array.from(r).map(i=>i.config),s=w(this,sn).slice();Gie(s),s.sort((i,o)=>i.priority-o.priority);for(const i of s)if(!i._lastFatalError&&n.indexOf(i)===-1)return i;return null},g2=function(r,n){const s=Y(this,yn,n_).call(this,r);if(s==null)return null;const i={config:s,result:null,didBump:!1,perform:null,staller:null},o=p2();return i.perform=(async()=>{try{s.requests++;const c=await this._translatePerform(s.provider,n);i.result={result:c}}catch(c){s.errorResponses++,i.result={error:c}}const a=p2()-o;s._totalTime+=a,s.rollingDuration=.95*s.rollingDuration+.05*a,i.perform=null})(),i.staller=(async()=>{await qie(s.stallTimeout),i.staller=null})(),r.add(i),i},s_=async function(){let r=w(this,If);if(!r){const n=[];w(this,sn).forEach(s=>{n.push((async()=>{await Kie(s,0),s._lastFatalError||(s._network=await s.provider.getNetwork())})())}),T(this,If,r=(async()=>{await Promise.all(n);let s=null;for(const i of w(this,sn)){if(i._lastFatalError)continue;const o=i._network;s==null?s=o.chainId:o.chainId!==s&&H(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await r},i_=async function(r,n){const s=[];for(const i of r)if(i.result!=null){const{tag:o,value:a}=jx(i.result);s.push({tag:o,value:a,weight:i.config.weight})}if(!(s.reduce((i,o)=>i+o.weight,0)!o._lastFatalError).map(o=>({value:o.blockNumber,tag:Pe(o.blockNumber).toString(),weight:o.weight}))))));const i=Qie(this.quorum,s);return i===void 0?void 0:(i>w(this,Vi)&&T(this,Vi,i),w(this,Vi))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return y2(this.quorum,s);case"getBlock":return"blockTag"in n&&n.blockTag==="pending"?Fx(this.quorum,s):ay(this.quorum,s);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return ay(this.quorum,s);case"broadcastTransaction":return Fx(this.quorum,s)}H(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${Lx(n.method)})`})}},v2=async function(r,n){if(r.size===0)throw new Error("no runners?!");const s=[];let i=0;for(const a of r){if(a.perform&&s.push(a.perform),a.staller){s.push(a.staller);continue}a.didBump||(a.didBump=!0,i++)}const o=await Y(this,yn,i_).call(this,r,n);if(o!==void 0){if(o instanceof Error)throw o;return o}for(let a=0;a0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:Array.from(r).map(a=>Lx(a.result))}}),await Promise.race(s),await Y(this,yn,v2).call(this,r,n)};function Jie(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const Yie="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function Xie(t,e){e==null&&(e={});const r=o=>e[o]==="-"?!1:typeof e.exclusive=="string"?o===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(o)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new cr(t);if(typeof t=="string"&&t.match(/^wss?:/)||Jie(t))return new Xk(t);let n=null;try{n=lt.from(t)}catch{}const s=[];if(r("publicPolygon")&&n&&(n.name==="matic"?s.push(new cr("https://polygon-rpc.com/",n,{staticNetwork:n})):n.name==="matic-amoy"&&s.push(new cr("https://rpc-amoy.polygon.technology/",n,{staticNetwork:n}))),r("alchemy"))try{s.push(new T0(t,e.alchemy))}catch{}if(r("ankr")&&e.ankr!=null)try{s.push(new A0(t,e.ankr))}catch{}if(r("chainstack"))try{s.push(new I0(t,e.chainstack))}catch{}if(r("cloudflare"))try{s.push(new K7(t))}catch{}if(r("etherscan"))try{s.push(new J7(t,e.etherscan))}catch{}if(r("infura"))try{let o=e.infura,a;typeof o=="object"&&(a=o.projectSecret,o=o.projectId),s.push(new rd(t,o,a))}catch{}if(r("quicknode"))try{let o=e.quicknode;s.push(new P0(t,o))}catch{}if(H(s.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),s.length===1)return s[0];let i=Math.floor(s.length/2);return i>2&&(i=2),n&&Yie.indexOf(n.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new r_(s,void 0,{quorum:i})}var ia,Gc;const X5=class X5 extends kd{constructor(r){super(r.provider);_(this,"signer");j(this,ia);j(this,Gc);fe(this,{signer:r}),T(this,ia,null),T(this,Gc,0)}async getAddress(){return this.signer.getAddress()}connect(r){return new X5(this.signer.connect(r))}async getNonce(r){if(r==="pending"){w(this,ia)==null&&T(this,ia,super.getNonce("pending"));const n=w(this,Gc);return await w(this,ia)+n}return super.getNonce(r)}increment(){Pl(this,Gc)._++}reset(){T(this,Gc,0),T(this,ia,null)}async sendTransaction(r){const n=this.getNonce("pending");return this.increment(),r=await this.signer.populateTransaction(r),r.nonce=await n,await this.signer.sendTransaction(r)}signTransaction(r){return this.signer.signTransaction(r)}signMessage(r){return this.signer.signMessage(r)}signTypedData(r,n,s){return this.signer.signTypedData(r,n,s)}};ia=new WeakMap,Gc=new WeakMap;let m2=X5;var Pf;class Zie extends q7{constructor(r,n,s){const i=Object.assign({},s??{},{batchMaxCount:1});I(r&&r.request,"invalid EIP-1193 provider","ethereum",r);super(n,i);j(this,Pf);T(this,Pf,async(o,a)=>{const c={method:o,params:a};this.emit("debug",{action:"sendEip1193Request",payload:c});try{const l=await r.request(c);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const u=new Error(l.message);throw u.code=l.code,u.data=l.data,u.payload=c,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){I(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await w(this,Pf).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(s=>s.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await w(this,Pf).call(this,"eth_requestAccounts",[])}catch(n){const s=n.payload;throw this.getRpcError(s,{id:s.id,error:n})}return await super.getSigner(r)}}Pf=new WeakMap;const kp="62e1ad51b37b8e00394bda3b";function eoe(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}I(!1,"unsupported network","network",t)}class gg extends cr{constructor(r,n,s){r==null&&(r="mainnet");const i=lt.from(r);n==null&&(n=kp),s==null&&(s=null);const o={staticNetwork:i},a=gg.getRequest(i,n,s);super(a,i,o);_(this,"applicationId");_(this,"applicationSecret");fe(this,{applicationId:n,applicationSecret:s})}_getProvider(r){try{return new gg(r,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(r)}static getRequest(r,n,s){n==null&&(n=kp);const i=new Gt(`https://${eoe(r.name)}/v1/lb/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===kp&&(i.retryFunc=async(o,a,c)=>(Ka("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===kp}}const toe=void 0;var Of;const Z5=class Z5 extends kd{constructor(r,n){super(n);_(this,"address");j(this,Of);I(r&&typeof r.sign=="function","invalid private key","privateKey","[ REDACTED ]"),T(this,Of,r);const s=Ed(this.signingKey.publicKey);fe(this,{address:s})}get signingKey(){return w(this,Of)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(r){return new Z5(w(this,Of),r)}async signTransaction(r){r=Yf(r);const{to:n,from:s}=await It({to:r.to?sr(r.to,this.provider):void 0,from:r.from?sr(r.from,this.provider):void 0});n!=null&&(r.to=n),s!=null&&(r.from=s),r.from!=null&&(I(Ae(r.from)===this.address,"transaction from address mismatch","tx.from",r.from),delete r.from);const i=gl.from(r);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(r){return this.signMessageSync(r)}signMessageSync(r){return this.signingKey.sign(Vv(r)).serialized}async signTypedData(r,n,s){const i=await Bs.resolveNames(r,n,s,async o=>{H(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:o}});const a=await this.provider.resolveName(o);return H(a!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:o}),a});return this.signingKey.sign(Bs.hash(i.domain,n,i.value)).serialized}};Of=new WeakMap;let O0=Z5;const vg=" !#$%&'()*+,-./<=>?@[]^_`{|}~",roe=/^[a-z]*$/i;function p8(t,e){let r=97;return t.reduce((n,s)=>(s===e?r++:s.match(roe)?n.push(String.fromCharCode(r)+s):(r=97,n.push(s)),n),[])}function noe(t,e){for(let s=vg.length-1;s>=0;s--)t=t.split(vg[s]).join(e.substring(2*s,2*s+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(s,i,o,a)=>{if(o)for(let c=parseInt(o);c>=0;c--)r.push(";");else r.push(i.toLowerCase());return""});if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return p8(p8(r,";"),":")}function o_(t){return I(t[0]==="0","unsupported auwl data","data",t),noe(t.substring(1+2*vg.length),t.substring(1,1+2*vg.length))}class a_{constructor(e){_(this,"locale");fe(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var Rf,Y0,qc,X0,x2;class Zk extends a_{constructor(r,n,s){super(r);j(this,X0);j(this,Rf);j(this,Y0);j(this,qc);T(this,Rf,n),T(this,Y0,s),T(this,qc,null)}get _data(){return w(this,Rf)}_decodeWords(){return o_(w(this,Rf))}getWord(r){const n=Y(this,X0,x2).call(this);return I(r>=0&&r=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const n=new Uint8Array(Math.ceil(11*r.length/8));let s=0;for(let l=0;l=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let f=0;f<11;f++)u&1<<10-f&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=c_(o),c=Q(Qr(n.slice(0,i/8)))[0]&a;return I(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),z(n.slice(0,i/8))}function Wx(t,e){I(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=fo.wordlist());const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&ooe(8-n)),n+=3);const s=t.length/4,i=parseInt(Qr(t).substring(2,4),16)&c_(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const Vx={};class xl{constructor(e,r,n,s,i){_(this,"phrase");_(this,"password");_(this,"wordlist");_(this,"entropy");s==null&&(s=""),i==null&&(i=fo.wordlist()),yo(e,Vx,"Mnemonic"),fe(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=mt("mnemonic"+this.password,"NFKD");return wi(mt(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=$x(e,n);return e=Wx(Q(s),n),new xl(Vx,s,e,r,n)}static fromEntropy(e,r,n){const s=Q(e,"entropy"),i=Wx(s,n);return new xl(Vx,z(s),i,r,n)}static entropyToPhrase(e,r){const n=Q(e,"entropy");return Wx(n,r)}static phraseToEntropy(e,r){return $x(e,r)}static isValidMnemonic(e,r){try{return $x(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var lr=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},zx=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},cy,$n,zs;const aoe={16:10,24:12,32:14},coe=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Ln=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Sp=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],loe=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],uoe=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],foe=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],doe=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],hoe=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],poe=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],yoe=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],goe=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],voe=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],moe=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],xoe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],boe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Hx(t){const e=[];for(let r=0;r>2,lr(this,zs,"f")[o][u%4]=i[u],lr(this,$n,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c>16&255]<<24^Ln[l>>8&255]<<16^Ln[l&255]<<8^Ln[l>>24&255]^coe[a]<<24,a+=1,s!=8)for(let h=1;h>8&255]<<8^Ln[l>>16&255]<<16^Ln[l>>24&255]<<24;for(let h=s/2+1;h>2,d=c%4,lr(this,zs,"f")[f][d]=i[u],lr(this,$n,"f")[r-f][d]=i[u++],c++}for(let u=1;u>24&255]^moe[l>>16&255]^xoe[l>>8&255]^boe[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=lr(this,zs,"f").length-1,n=[0,0,0,0];let s=Hx(e);for(let a=0;a<4;a++)s[a]^=lr(this,zs,"f")[0][a];for(let a=1;a>24&255]^uoe[s[(c+1)%4]>>16&255]^foe[s[(c+2)%4]>>8&255]^doe[s[(c+3)%4]&255]^lr(this,zs,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=lr(this,zs,"f")[r][a],i[4*a]=(Ln[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Ln[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Ln[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Ln[s[(a+3)%4]&255]^o)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const r=lr(this,$n,"f").length-1,n=[0,0,0,0];let s=Hx(e);for(let a=0;a<4;a++)s[a]^=lr(this,$n,"f")[0][a];for(let a=1;a>24&255]^poe[s[(c+3)%4]>>16&255]^yoe[s[(c+2)%4]>>8&255]^goe[s[(c+1)%4]&255]^lr(this,$n,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=lr(this,$n,"f")[r][a],i[4*a]=(Sp[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Sp[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Sp[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Sp[s[(a+1)%4]&255]^o)&255;return i}}cy=new WeakMap,$n=new WeakMap,zs=new WeakMap;class l_{constructor(e,r,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new e5(r)},name:{enumerable:!0,value:e}})}}var Ap=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},Fl=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lh,ki;class t5 extends l_{constructor(e,r){if(super("ECC",e,t5),lh.set(this,void 0),ki.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Ap(this,lh,new Uint8Array(r),"f")}else Ap(this,lh,new Uint8Array(16),"f");Ap(this,ki,this.iv,"f")}get iv(){return new Uint8Array(Fl(this,lh,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)jn(this,Wn,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");jn(this,Wn,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(jn(this,Wn,"f")[e]===255)jn(this,Wn,"f")[e]=0;else{jn(this,Wn,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),I(s>0&&i>0,"invalid kdf","kdf",e);const o=Rt(t,"crypto.kdfparams.dklen:int!");return I(o===32,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const r=Rt(t,"crypto.kdfparams.salt:data!"),n=Rt(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();I(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Rt(t,"crypto.kdfparams.c:int!"),o=Rt(t,"crypto.kdfparams.dklen:int!");return I(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}I(!1,"unsupported key-derivation function","kdf",e)}function h_(t,e){const r=JSON.parse(t),n=T1(e),s=d_(r);if(s.name==="pbkdf2"){const{salt:f,count:d,dkLen:h,algorithm:y}=s,p=wi(n,f,d,h,y);return mg(r,p)}H(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=Ha(n,i,o,a,c,l);return mg(r,u)}function y8(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function p_(t,e,r){const n=JSON.parse(t),s=T1(e),i=d_(n);if(i.name==="pbkdf2"){r&&(r(0),await y8(0));const{salt:d,count:h,dkLen:y,algorithm:p}=i,b=wi(s,d,h,y,p);return r&&(r(1),await y8(0)),mg(n,b)}H(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,f=await za(s,o,a,c,l,u,r);return mg(n,f)}function y_(t){const e=t.salt!=null?Q(t.salt,"options.salt"):Nr(32);let r=1<<17,n=8,s=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(s=t.scrypt.p)),I(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),I(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),I(typeof s=="number"&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:s}}function g_(t,e,r,n){const s=Q(r.privateKey,"privateKey"),i=n.iv!=null?Q(n.iv,"options.iv"):Nr(16);I(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?Q(n.uuid,"options.uuid"):Nr(16);I(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new nd(a,i),u=Q(l.encrypt(s)),f=Me(Fe([c,u])),d={address:r.address.substring(2).toLowerCase(),id:_R(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:z(i).substring(2)},ciphertext:z(u).substring(2),kdf:"scrypt",kdfparams:{salt:z(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:f.substring(2)}};if(r.mnemonic){const h=n.client!=null?n.client:`ethers/${yk}`,y=r.mnemonic.path||f_,p=r.mnemonic.locale||"en",b=t.slice(32,64),g=Q(r.mnemonic.entropy,"account.mnemonic.entropy"),v=Nr(16),m=new nd(b,v),k=Q(m.encrypt(g)),A=new Date,R="UTC--"+(A.getUTCFullYear()+"-"+zd(A.getUTCMonth()+1,2)+"-"+zd(A.getUTCDate(),2)+"T"+zd(A.getUTCHours(),2)+"-"+zd(A.getUTCMinutes(),2)+"-"+zd(A.getUTCSeconds(),2)+".0Z")+"--"+d.address;d["x-ethers"]={client:h,gethFilename:R,path:y,locale:p,mnemonicCounter:z(v).substring(2),mnemonicCiphertext:z(k).substring(2),version:"0.1"}}return JSON.stringify(d)}function r5(t,e,r){r==null&&(r={});const n=T1(e),s=y_(r),i=Ha(n,s.salt,s.N,s.r,s.p,64);return g_(Q(i),s,t,r)}async function n5(t,e,r){r==null&&(r={});const n=T1(e),s=y_(r),i=await za(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return g_(Q(i),s,t,r)}const ly="m/44'/60'/0'/0/0",Coe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),pi=2147483648,koe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Soe="0123456789abcdef";function xg(t,e){let r="";for(;t;)r=Soe[t%16]+r,t=Math.trunc(t/16);for(;r.length=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=Q(Wa("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function m_(t,e){const r=e.split("/");I(r.length>0,"invalid path","path",e),r[0]==="m"&&(I(t.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${t.depth}`,"path",e),r.shift());let n=t;for(let s=0;s=16&&s.length<=64,"invalid seed","seed","[REDACTED]");const i=Q(Wa("sha512",Coe,s)),o=new Rs(z(i.slice(0,32)));return new hs(qs,o,"0x00000000",z(i.slice(32)),"m",0,0,n,null)},j(hs,Kc);let Mu=hs;class sd extends yg{constructor(r,n,s,i,o,a,c,l,u){super(n,u);_(this,"publicKey");_(this,"fingerprint");_(this,"parentFingerprint");_(this,"chainCode");_(this,"path");_(this,"index");_(this,"depth");yo(r,qs,"HDNodeVoidWallet"),fe(this,{publicKey:s});const f=at(Va(Qr(s)),0,4);fe(this,{publicKey:s,fingerprint:f,parentFingerprint:i,chainCode:o,path:a,index:c,depth:l})}connect(r){return new sd(qs,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,r)}get extendedKey(){return H(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),w2(Fe(["0x0488B21E",xg(this.depth,1),this.parentFingerprint,xg(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(r){const n=Pe(r,"index");I(n<=4294967295,"invalid index","index",n);let s=this.path;s&&(s+="/"+(n&~pi),n&pi&&(s+="'"));const{IR:i,IL:o}=v_(n,this.chainCode,this.publicKey,null),a=Rs.addPoints(o,this.publicKey,!0),c=Ed(a);return new sd(qs,c,a,this.fingerprint,z(i),s,n,this.depth+1,this.provider)}derivePath(r){return m_(this,r)}}function Aoe(t){const e=Pe(t,"index");return I(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var e1,ui,S2;let x_=(ui=class extends O0{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new Rs(e):e;super(n,r)}connect(e){return new ui(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await n5(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return r5(r,e)}static async fromEncryptedJson(e,r,n){var i;let s=null;return b2(e)?s=await p_(e,r,n):C2(e)&&(n&&(n(0),await g8(0)),s=k2(e,r),n&&(n(1),await g8(0))),Y(i=ui,e1,S2).call(i,s)}static fromEncryptedJsonSync(e,r){var s;let n=null;return b2(e)?n=h_(e,r):C2(e)?n=k2(e,r):I(!1,"invalid JSON wallet","json","[ REDACTED ]"),Y(s=ui,e1,S2).call(s,n)}static createRandom(e){const r=Mu.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=Mu.fromPhrase(e);return r?n.connect(r):n}},e1=new WeakSet,S2=function(e){if(I(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const n=xl.fromEntropy(e.mnemonic.entropy),s=Mu.fromMnemonic(n,e.mnemonic.path);if(s.address===e.address&&s.privateKey===e.privateKey)return s;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const r=new ui(e.privateKey);return I(r.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),r},j(ui,e1),ui);const Ioe=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function Poe(t,e){const r=(1<=t;){const c=s>>i-t;s&=(1<{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);I(s!==null,"internal error parsing accents","accents",e);let i=0;const o=Poe(parseInt(s[3]),s[4]),a=parseInt(s[2]),c=new RegExp(`([${s[1]}])`,"g");r=r.replace(c,(l,u)=>(--o[i]===0&&(u=String.fromCharCode(u.charCodeAt(0),a),i++),u))}),r.split(",")}var t1;class Roe extends Zk{constructor(r,n,s,i){super(r,n,i);j(this,t1);T(this,t1,s)}get _accent(){return w(this,t1)}_decodeWords(){return Ooe(this._data,this._accent)}}t1=new WeakMap;const Noe={en:fo.wordlist()},_oe=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:qt,AbstractProvider:td,AbstractSigner:kd,AlchemyProvider:T0,AnkrProvider:A0,BaseContract:Zf,BaseWallet:O0,Block:I7,BrowserProvider:Zie,ChainstackProvider:I0,CloudflareProvider:K7,ConstructorFragment:ci,Contract:dn,ContractEventPayload:N7,ContractFactory:qk,ContractTransactionReceipt:R7,ContractTransactionResponse:Gv,ContractUnknownEventPayload:zk,EnsPlugin:A1,EnsResolver:k0,ErrorDescription:A7,ErrorFragment:zr,EtherSymbol:rne,EtherscanPlugin:Yk,EtherscanProvider:J7,EventFragment:Ss,EventLog:Hv,EventPayload:xk,FallbackFragment:si,FallbackProvider:r_,FeeData:Zw,FeeDataNetworkPlugin:r2,FetchCancelSignal:IR,FetchRequest:Gt,FetchResponse:eo,FetchUrlFeeDataNetworkPlugin:V7,FixedNumber:v0,Fragment:_a,FunctionFragment:As,GasCostPlugin:S1,HDNodeVoidWallet:sd,HDNodeWallet:Mu,Indexed:Xw,InfuraProvider:rd,InfuraWebSocketProvider:t_,Interface:ut,IpcSocketProvider:toe,JsonRpcApiProvider:Jk,JsonRpcProvider:cr,JsonRpcSigner:oy,LangEn:fo,Log:Cd,LogDescription:k7,MaxInt256:tne,MaxUint256:BN,MessagePrefix:LN,MinInt256:ene,Mnemonic:xl,MulticoinProviderPlugin:F7,N:Xre,NamedFragment:C1,Network:lt,NetworkPlugin:qa,NonceManager:m2,ParamType:ar,PocketProvider:gg,QuickNodeProvider:P0,Result:pl,Signature:cs,SigningKey:Rs,SocketBlockSubscriber:Y7,SocketEventSubscriber:Z7,SocketPendingSubscriber:X7,SocketProvider:e_,SocketSubscriber:Qv,StructFragment:wa,Transaction:gl,TransactionDescription:S7,TransactionReceipt:Wk,TransactionResponse:Xf,Typed:mr,TypedDataEncoder:Bs,UndecodedEventLog:Vk,UnmanagedSubscriber:S0,Utf8ErrorFuncs:ER,VoidSigner:yg,Wallet:x_,WebSocketProvider:Xk,WeiPerEther:Zre,Wordlist:a_,WordlistOwl:Zk,WordlistOwlA:Roe,ZeroAddress:xi,ZeroHash:yl,accessListify:vo,assert:H,assertArgument:I,assertArgumentCount:gk,assertNormalize:vk,assertPrivate:yo,checkResultErrors:vte,computeAddress:Ed,computeHmac:Wa,concat:Fe,copyRequest:Yf,dataLength:ba,dataSlice:at,decodeBase58:mR,decodeBase64:xR,decodeBytes32String:qse,decodeRlp:x1,decryptCrowdsaleJson:k2,decryptKeystoreJson:p_,decryptKeystoreJsonSync:h_,defaultPath:ly,defineProperties:fe,dnsEncode:l7,encodeBase58:mk,encodeBase64:bR,encodeBytes32String:Gse,encodeRlp:Na,encryptKeystoreJson:n5,encryptKeystoreJsonSync:r5,ensNormalize:c7,formatEther:yte,formatUnits:NR,fromTwos:g0,getAccountPath:Aoe,getAddress:Ae,getBigInt:xe,getBytes:Q,getBytesCopy:tr,getCreate2Address:lne,getCreateAddress:_k,getDefaultProvider:Xie,getIcapAddress:cne,getIndexedAccountPath:Toe,getNumber:Pe,getUint:m1,hashMessage:Vv,hexlify:z,id:Dr,isAddress:ag,isAddressable:Mk,isBytesLike:mi,isCallException:_v,isCrowdsaleJson:C2,isError:Ft,isHexString:qe,isKeystoreJson:b2,isValidName:ise,keccak256:Me,lock:nne,makeError:ht,mask:ca,namehash:hg,parseEther:Dw,parseUnits:og,pbkdf2:wi,randomBytes:Nr,recoverAddress:Jf,resolveAddress:sr,resolveProperties:It,ripemd160:Va,scrypt:za,scryptSync:Ha,sha256:Qr,sha512:b1,showThrottleMessage:Ka,solidityPacked:Le,solidityPackedKeccak256:to,solidityPackedSha256:Cse,stripZerosLeft:Xee,toBeArray:rr,toBeHex:On,toBigInt:bd,toNumber:vR,toQuantity:yr,toTwos:Bv,toUtf8Bytes:mt,toUtf8CodePoints:ste,toUtf8String:Ds,uuidV4:_R,verifyMessage:u7,verifyTypedData:Ose,version:yk,wordlists:Noe,zeroPadBytes:Mv,zeroPadValue:ss},Symbol.toStringTag,{value:"Module"})),Moe=[{inputs:[{internalType:"bytes32",type:"bytes32"}],name:"getAlternativeSignature",outputs:[{internalType:"string",type:"string"}],stateMutability:"view",type:"function"}];var Doe=Object.freeze({__proto__:null,abi:Moe});const Boe=[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],Loe={isValidSignatureBytes32:"0x1626ba7e"};var joe=Object.freeze({__proto__:null,abi:Boe,returns:Loe});const Foe=[{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC1271Revert",type:"error"},{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC6492DeployFailed",type:"error"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSig",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"allowSideEffects",type:"bool"},{internalType:"bool",name:"deployAlreadyDeployed",type:"bool"}],name:"isValidSigImpl",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffects",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffectsNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var Uoe=Object.freeze({__proto__:null,abi:Foe});const $oe=[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}];var Woe=Object.freeze({__proto__:null,abi:$oe});const Voe=[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"},{type:"function",name:"setExtraImageHash",constant:!1,inputs:[{type:"bytes32",name:"imageHash"},{type:"uint256",name:"expiration"}],outputs:[],payable:!1,stateMutability:"nonpayable"}];var zoe=Object.freeze({__proto__:null,abi:Voe});const Hoe=[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}];var Goe=Object.freeze({__proto__:null,abi:Hoe});const qoe=[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}];var Koe=Object.freeze({__proto__:null,abi:qoe});const Qoe=[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}];var Joe=Object.freeze({__proto__:null,abi:Qoe});const Ht={erc6492:Uoe,erc5719:Doe,erc1271:joe,factory:Woe,mainModule:zoe,mainModuleUpgradable:Goe,sequenceUtils:Koe,requireFreshSigner:Joe},Yoe=Object.freeze(Object.defineProperty({__proto__:null,walletContracts:Ht},Symbol.toStringTag,{value:"Module"}));function bg(){return bg=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),ve({},n,s)).then(i=>me(i).then(o=>({status:o.status})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),ve({},n,s)).then(i=>me(i).then(o=>({version:o.version})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),ve({},n,s)).then(i=>me(i).then(o=>({status:o.status})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.clock=(n,s)=>this.fetch(this.url("Clock"),ve({},n,s)).then(i=>me(i).then(o=>({serverTime:o.serverTime})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),ve({},n,s)).then(i=>me(i).then(o=>({data:o.data})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.getAuthToken=(n,s,i)=>this.fetch(this.url("GetAuthToken"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getAuthToken2=(n,s,i)=>this.fetch(this.url("GetAuthToken2"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.sendPasswordlessLink=(n,s,i)=>this.fetch(this.url("SendPasswordlessLink"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.friendList=(n,s,i)=>this.fetch(this.url("FriendList"),ve(n,s,i)).then(o=>me(o).then(a=>({page:a.page,friends:a.friends})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getFriendByAddress=(n,s,i)=>this.fetch(this.url("GetFriendByAddress"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.searchFriends=(n,s,i)=>this.fetch(this.url("SearchFriends"),ve(n,s,i)).then(o=>me(o).then(a=>({friends:a.friends})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.addFriend=(n,s,i)=>this.fetch(this.url("AddFriend"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.updateFriendNickname=(n,s,i)=>this.fetch(this.url("UpdateFriendNickname"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.removeFriend=(n,s,i)=>this.fetch(this.url("RemoveFriend"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.contractCall=(n,s,i)=>this.fetch(this.url("ContractCall"),ve(n,s,i)).then(o=>me(o).then(a=>({returns:a.returns})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.decodeContractCall=(n,s,i)=>this.fetch(this.url("DecodeContractCall"),ve(n,s,i)).then(o=>me(o).then(a=>({call:a.call})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.lookupContractCallSelectors=(n,s,i)=>this.fetch(this.url("LookupContractCallSelectors"),ve(n,s,i)).then(o=>me(o).then(a=>({signatures:a.signatures})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetch=(n,s,i)=>this.fetch(this.url("UserStorageFetch"),ve(n,s,i)).then(o=>me(o).then(a=>({object:a.object})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageSave=(n,s,i)=>this.fetch(this.url("UserStorageSave"),ve(n,s,i)).then(o=>me(o).then(a=>({ok:a.ok})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageDelete=(n,s,i)=>this.fetch(this.url("UserStorageDelete"),ve(n,s,i)).then(o=>me(o).then(a=>({ok:a.ok})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetchAll=(n,s,i)=>this.fetch(this.url("UserStorageFetchAll"),ve(n,s,i)).then(o=>me(o).then(a=>({objects:a.objects})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getMoonpayLink=(n,s,i)=>this.fetch(this.url("GetMoonpayLink"),ve(n,s,i)).then(o=>me(o).then(a=>({signedUrl:a.signedUrl})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.resolveENSAddress=(n,s,i)=>this.fetch(this.url("ResolveENSAddress"),ve(n,s,i)).then(o=>me(o).then(a=>({address:a.address,ok:a.ok})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.isValidSignature=(n,s,i)=>this.fetch(this.url("IsValidSignature"),ve(n,s,i)).then(o=>me(o).then(a=>({isValid:a.isValid})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.isValidMessageSignature=(n,s,i)=>this.fetch(this.url("IsValidMessageSignature"),ve(n,s,i)).then(o=>me(o).then(a=>({isValid:a.isValid})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.isValidTypedDataSignature=(n,s,i)=>this.fetch(this.url("IsValidTypedDataSignature"),ve(n,s,i)).then(o=>me(o).then(a=>({isValid:a.isValid})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.isValidETHAuthProof=(n,s,i)=>this.fetch(this.url("IsValidETHAuthProof"),ve(n,s,i)).then(o=>me(o).then(a=>({isValid:a.isValid})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.sardineGetClientToken=(n,s)=>this.fetch(this.url("SardineGetClientToken"),ve({},n,s)).then(i=>me(i).then(o=>({token:o.token})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.sardineGetNFTCheckoutToken=(n,s,i)=>this.fetch(this.url("SardineGetNFTCheckoutToken"),ve(n,s,i)).then(o=>me(o).then(a=>({resp:a.resp})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.sardineGetNFTCheckoutOrderStatus=(n,s,i)=>this.fetch(this.url("SardineGetNFTCheckoutOrderStatus"),ve(n,s,i)).then(o=>me(o).then(a=>({resp:a.resp})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.sardineGetSupportedRegions=(n,s)=>this.fetch(this.url("SardineGetSupportedRegions"),ve({},n,s)).then(i=>me(i).then(o=>({regions:o.regions})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.sardineGetSupportedFiatCurrencies=(n,s)=>this.fetch(this.url("SardineGetSupportedFiatCurrencies"),ve({},n,s)).then(i=>me(i).then(o=>({tokens:o.tokens})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.sardineGetSupportedTokens=(n,s)=>this.fetch(this.url("SardineGetSupportedTokens"),ve({},n,s)).then(i=>me(i).then(o=>({tokens:o.tokens})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.sardineGetEnabledTokens=(n,s)=>this.fetch(this.url("SardineGetEnabledTokens"),ve({},n,s)).then(i=>me(i).then(o=>({tokens:o.tokens})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.sardineGetQuote=(n,s,i)=>this.fetch(this.url("SardineGetQuote"),ve(n,s,i)).then(o=>me(o).then(a=>({quote:a.quote})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineClientToken=(n,s)=>this.fetch(this.url("GetSardineClientToken"),ve({},n,s)).then(i=>me(i).then(o=>({token:o.token})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.getSardineNFTCheckoutToken=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutToken"),ve(n,s,i)).then(o=>me(o).then(a=>({resp:a.resp})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineNFTCheckoutOrderStatus=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutOrderStatus"),ve(n,s,i)).then(o=>me(o).then(a=>({resp:a.resp})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getCoinPrices=(n,s,i)=>this.fetch(this.url("GetCoinPrices"),ve(n,s,i)).then(o=>me(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getCollectiblePrices=(n,s,i)=>this.fetch(this.url("GetCollectiblePrices"),ve(n,s,i)).then(o=>me(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getExchangeRate=(n,s,i)=>this.fetch(this.url("GetExchangeRate"),ve(n,s,i)).then(o=>me(o).then(a=>({exchangeRate:a.exchangeRate})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.memoryStore=(n,s,i)=>this.fetch(this.url("MemoryStore"),ve(n,s,i)).then(o=>me(o).then(a=>({ok:a.ok})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.memoryLoad=(n,s,i)=>this.fetch(this.url("MemoryLoad"),ve(n,s,i)).then(o=>me(o).then(a=>({value:a.value})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getInviteInfo=(n,s)=>this.fetch(this.url("GetInviteInfo"),ve({},n,s)).then(i=>me(i).then(o=>({inviteInfo:o.inviteInfo})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.isValidAccessCode=(n,s,i)=>this.fetch(this.url("IsValidAccessCode"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.internalClaimAccessCode=(n,s,i)=>this.fetch(this.url("InternalClaimAccessCode"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.blockNumberAtTime=(n,s,i)=>this.fetch(this.url("BlockNumberAtTime"),ve(n,s,i)).then(o=>me(o).then(a=>({blocks:a.blocks})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret=(n,s,i)=>this.fetch(this.url("PaperSessionSecret"),ve(n,s,i)).then(o=>me(o).then(a=>({secret:a.secret})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret2=(n,s,i)=>this.fetch(this.url("PaperSessionSecret2"),ve(n,s,i)).then(o=>me(o).then(a=>({secret:a.secret})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.linkWallet=(n,s,i)=>this.fetch(this.url("LinkWallet"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getLinkedWallets=(n,s,i)=>this.fetch(this.url("GetLinkedWallets"),ve(n,s,i)).then(o=>me(o).then(a=>({linkedWallets:a.linkedWallets})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.removeLinkedWallet=(n,s,i)=>this.fetch(this.url("RemoveLinkedWallet"),ve(n,s,i)).then(o=>me(o).then(a=>({status:a.status})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.generateWaaSVerificationURL=(n,s,i)=>this.fetch(this.url("GenerateWaaSVerificationURL"),ve(n,s,i)).then(o=>me(o).then(a=>({nonce:a.nonce,verificationURL:a.verificationURL})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.validateWaaSVerificationNonce=(n,s,i)=>this.fetch(this.url("ValidateWaaSVerificationNonce"),ve(n,s,i)).then(o=>me(o).then(a=>({walletAddress:a.walletAddress})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getSwapPrices=(n,s,i)=>this.fetch(this.url("GetSwapPrices"),ve(n,s,i)).then(o=>me(o).then(a=>({swapPrices:a.swapPrices})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getSwapQuote=(n,s,i)=>this.fetch(this.url("GetSwapQuote"),ve(n,s,i)).then(o=>me(o).then(a=>({swapQuote:a.swapQuote})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.listCurrencyGroups=(n,s)=>this.fetch(this.url("ListCurrencyGroups"),ve({},n,s)).then(i=>me(i).then(o=>({currencyGroups:o.currencyGroups})),i=>{throw ye.new({cause:`fetch(): ${i.message||""}`})}),this.addOffchainInventory=(n,s,i)=>this.fetch(this.url("AddOffchainInventory"),ve(n,s,i)).then(o=>me(o).then(a=>({inventoryId:a.inventoryId})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.getOffchainInventory=(n,s,i)=>this.fetch(this.url("GetOffchainInventory"),ve(n,s,i)).then(o=>me(o).then(a=>({inventory:a.inventory})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.listOffchainInventories=(n,s,i)=>this.fetch(this.url("ListOffchainInventories"),ve(n,s,i)).then(o=>me(o).then(a=>({inventory:a.inventory})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.updateOffchainInventory=(n,s,i)=>this.fetch(this.url("UpdateOffchainInventory"),ve(n,s,i)).then(o=>me(o).then(a=>({})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.deleteOffchainInventory=(n,s,i)=>this.fetch(this.url("DeleteOffchainInventory"),ve(n,s,i)).then(o=>me(o).then(a=>({ok:a.ok})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.requestOffchainPayment=(n,s,i)=>this.fetch(this.url("RequestOffchainPayment"),ve(n,s,i)).then(o=>me(o).then(a=>({payment:a.payment})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.listOffchainPayments=(n,s,i)=>this.fetch(this.url("ListOffchainPayments"),ve(n,s,i)).then(o=>me(o).then(a=>({page:a.page,payments:a.payments})),o=>{throw ye.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const ve=(t={},e={},r=null)=>({method:"POST",headers:bg({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),me=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),s5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(oae[n]||Ot).new(r)}return r});let Ot=class w_ extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,w_.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},E_=class C_ extends Ot{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,C_.prototype)}},ye=class k_ extends Ot{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,k_.prototype)}},S_=class A_ extends Ot{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,A_.prototype)}},T_=class I_ extends Ot{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,I_.prototype)}},P_=class O_ extends Ot{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,O_.prototype)}},s5=class R_ extends Ot{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,R_.prototype)}},N_=class __ extends Ot{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,__.prototype)}},M_=class D_ extends Ot{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,D_.prototype)}},B_=class L_ extends Ot{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,L_.prototype)}},j_=class F_ extends Ot{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,F_.prototype)}},U_=class $_ extends Ot{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$_.prototype)}},W_=class V_ extends Ot{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,V_.prototype)}},z_=class H_ extends Ot{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,H_.prototype)}},G_=class q_ extends Ot{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,q_.prototype)}},K_=class Q_ extends Ot{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Q_.prototype)}},J_=class Y_ extends Ot{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Y_.prototype)}},X_=class Z_ extends Ot{constructor(e="InvalidArgument",r=2e3,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Z_.prototype)}},eM=class tM extends Ot{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tM.prototype)}},rM=class nM extends Ot{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nM.prototype)}},sM=class iM extends Ot{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iM.prototype)}},iae=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.Aborted="Aborted",t.Geoblocked="Geoblocked",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const oae={0:E_,[-1]:ye,[-2]:S_,[-3]:T_,[-4]:P_,[-5]:s5,[-6]:N_,[-7]:M_,[-8]:B_,[-9]:j_,[-10]:U_,1e3:W_,1001:z_,1002:G_,1005:K_,1006:J_,2e3:X_,2002:eM,2003:rM,3e3:sM},v8=globalThis.fetch;class uy extends b_{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,v8),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=bg({},i.headers,o),v8(s,i)},this.fetch=this._fetch}}const aae=Object.freeze(Object.defineProperty({__proto__:null,API:b_,AbortedError:K_,GeoblockedError:J_,InvalidArgumentError:X_,NotFoundError:sM,PermissionDeniedError:z_,QueryFailedError:rM,SardinePaymentType:rae,SardineQuoteType:nae,SequenceAPIClient:uy,SessionExpiredError:G_,SortOrder:tae,TokenType:sae,UnauthorizedError:W_,UnavailableError:eM,WebRPCSchemaHash:eae,WebRPCSchemaVersion:Zoe,WebRPCVersion:Xoe,WebrpcBadMethodError:T_,WebrpcBadRequestError:P_,WebrpcBadResponseError:s5,WebrpcBadRouteError:S_,WebrpcClientDisconnectedError:B_,WebrpcEndpointError:E_,WebrpcError:Ot,WebrpcInternalErrorError:M_,WebrpcRequestFailedError:ye,WebrpcServerPanicError:N_,WebrpcStreamFinishedError:U_,WebrpcStreamLostError:j_,errors:iae},Symbol.toStringTag,{value:"Module"})),oM="3.7.7",cae=oM,Sd=typeof Buffer=="function",m8=typeof TextDecoder=="function"?new TextDecoder:void 0,x8=typeof TextEncoder=="function"?new TextEncoder:void 0,lae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",dh=Array.prototype.slice.call(lae),Tp=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(dh),uae=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,hr=String.fromCharCode.bind(String),b8=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),aM=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),cM=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),lM=t=>{let e,r,n,s,i="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|s,i+=dh[e>>18&63]+dh[e>>12&63]+dh[e>>6&63]+dh[e&63]}return o?i.slice(0,o-3)+"===".substring(o):i},i5=typeof btoa=="function"?t=>btoa(t):Sd?t=>Buffer.from(t,"binary").toString("base64"):lM,A2=Sd?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,s=t.length;ne?aM(A2(t)):A2(t),fae=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?hr(192|e>>>6)+hr(128|e&63):hr(224|e>>>12&15)+hr(128|e>>>6&63)+hr(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return hr(240|e>>>18&7)+hr(128|e>>>12&63)+hr(128|e>>>6&63)+hr(128|e&63)}},dae=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,uM=t=>t.replace(dae,fae),w8=Sd?t=>Buffer.from(t,"utf8").toString("base64"):x8?t=>A2(x8.encode(t)):t=>i5(uM(t)),Du=(t,e=!1)=>e?aM(w8(t)):w8(t),E8=t=>Du(t,!0),hae=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pae=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return hr((r>>>10)+55296)+hr((r&1023)+56320);case 3:return hr((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return hr((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},fM=t=>t.replace(hae,pae),dM=t=>{if(t=t.replace(/\s+/g,""),!uae.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,s;for(let i=0;i>16&255):s===64?hr(e>>16&255,e>>8&255):hr(e>>16&255,e>>8&255,e&255);return r},o5=typeof atob=="function"?t=>atob(cM(t)):Sd?t=>Buffer.from(t,"base64").toString("binary"):dM,hM=Sd?t=>b8(Buffer.from(t,"base64")):t=>b8(o5(t).split("").map(e=>e.charCodeAt(0))),pM=t=>hM(yM(t)),yae=Sd?t=>Buffer.from(t,"base64").toString("utf8"):m8?t=>m8.decode(hM(t)):t=>fM(o5(t)),yM=t=>cM(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),T2=t=>yae(yM(t)),gae=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},gM=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),vM=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,gM(r));t("fromBase64",function(){return T2(this)}),t("toBase64",function(e){return Du(this,e)}),t("toBase64URI",function(){return Du(this,!0)}),t("toBase64URL",function(){return Du(this,!0)}),t("toUint8Array",function(){return pM(this)})},mM=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,gM(r));t("toBase64",function(e){return fy(this,e)}),t("toBase64URI",function(){return fy(this,!0)}),t("toBase64URL",function(){return fy(this,!0)})},vae=()=>{vM(),mM()},bl={version:oM,VERSION:cae,atob:o5,atobPolyfill:dM,btoa:i5,btoaPolyfill:lM,fromBase64:T2,toBase64:Du,encode:Du,encodeURI:E8,encodeURL:E8,utob:uM,btou:fM,decode:T2,isValid:gae,fromUint8Array:fy,toUint8Array:pM,extendString:vM,extendUint8Array:mM,extendBuiltins:vae};var I2=function(){return I2=Object.assign||function(e){for(var r,n=1,s=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&(s.types.Claims.push({name:"app",type:"string"}),s.message.app=this.claims.app),this.claims.iat&&this.claims.iat>0&&(s.types.Claims.push({name:"iat",type:"int64"}),s.message.iat=this.claims.iat),this.claims.exp&&this.claims.exp>0&&(s.types.Claims.push({name:"exp",type:"int64"}),s.message.exp=this.claims.exp),this.claims.n&&this.claims.n>0&&(s.types.Claims.push({name:"n",type:"uint64"}),s.message.n=this.claims.n),this.claims.typ&&this.claims.typ.length>0&&(s.types.Claims.push({name:"typ",type:"string"}),s.message.typ=this.claims.typ),this.claims.ogn&&this.claims.ogn.length>0&&(s.types.Claims.push({name:"ogn",type:"string"}),s.message.ogn=this.claims.ogn),this.claims.v&&this.claims.v.length>0&&(s.types.Claims.push({name:"v",type:"string"}),s.message.v=this.claims.v),s},t}(),bae=function(t){if(t.app==="")return{ok:!1,err:new Error("claims: app is empty")};var e=Math.round(new Date().getTime()/1e3),r=5*60,n=60*60*24*365+r;return t.v===""?{ok:!1,err:new Error("claims: ethauth version is empty")}:t.iat&&t.iat!==0&&(t.iat>e+r||t.iate+n?{ok:!1,err:new Error("claims: token has expired")}:{ok:!0}},wae=function(t,e,r){return cc(void 0,void 0,void 0,function(){var n,s;return lc(this,function(i){return n=r.messageDigest(),s=u7(n,r.signature),s.slice(0,2)==="0x"&&s.length===42&&s.toLowerCase()===r.address.toLowerCase()?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]})})},Eae=function(t,e,r){return cc(void 0,void 0,void 0,function(){var n,s,i,o,a;return lc(this,function(c){switch(c.label){case 0:return!t||t===void 0?[2,{isValid:!1}]:(n=r.messageDigest(),[4,t.getCode(r.address)]);case 1:if(s=c.sent(),s==="0x"||s.length<=2)throw new Error("ValidateContractAccountProof failed. unable to fetch wallet contract code");return i=["function isValidSignature(bytes32, bytes) public view returns (bytes4)"],o=new dn(r.address,i,t),[4,o.isValidSignature(n,Q(r.signature))];case 2:return a=c.sent(),a===Cae?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]}})})},Cae="0x1626ba7e",wg=function(){function t(){for(var e=[],r=0;r0&&(c+="."+s.extra),[2,c]}})})},this.decodeProof=function(s,i){return i===void 0&&(i=!1),cc(n,void 0,void 0,function(){var o,a,c,l,u,f,d,h,y,p;return lc(this,function(b){switch(b.label){case 0:if(o=s.split("."),o.length<4||o.length>5)throw new Error("ethauth: invalid proof string");if(a=o[0],c=o[1],l=o[2],u=o[3],f=o[4],a!==P2)throw new Error("ethauth: not an ethauth proof");return d=bl.decode(l),h=JSON.parse(d),y=new a5({address:c,claims:h,signature:u,extra:f}),[4,this.validateProof(y,i)];case 1:if(p=b.sent(),!p)throw new Error("ethauth: proof is invalid");return[2,y]}})})},this.validateProof=function(s,i){return i===void 0&&(i=!1),cc(n,void 0,void 0,function(){var o,a;return lc(this,function(c){switch(c.label){case 0:if(o=this.validateProofClaims(s),o.err)throw new Error("ethauth: proof claims are invalid ".concat(o.err));return i===!0?[3,2]:[4,this.validateProofSignature(s)];case 1:if(a=c.sent(),a!==!0)throw new Error("ethauth: proof signature is invalid");c.label=2;case 2:return[2,!0]}})})},this.validateProofSignature=function(s){return cc(n,void 0,void 0,function(){var i,c,o,a,c;return lc(this,function(l){switch(l.label){case 0:i=[],c=0,l.label=1;case 1:if(!(c{const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=atob(e),n=new Uint8Array(r.length);for(let o=0;ot!=null&&(typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||qe(t)||typeof t=="bigint"),Zc=t=>{const e=t.toString(16);return`${e.length%2===0?"0x":"0x0"}${e}`},EM=(t,e=18)=>{let[r,n="0"]=t.split(".");const s=r.startsWith("-");if(s&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),e===0)r=`${Math.round(+`${r}.${n}`)}`,n="";else if(n.length>e){const[i,o,a]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${o}.${a}`);c>9?n=`${BigInt(i)+1n}0`.padStart(i.length+1,"0"):n=`${i}${c}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${s?"-":""}${r}${n}`)},Sae=t=>EM(t,18),CM=(t,e=18)=>{let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");const s=r.slice(0,r.length-e);let i=r.slice(r.length-e);return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`},Aae=t=>CM(t,18),Ts=(t,e)=>typeof e=="bigint"?{$bigint:e.toString()}:e,Jv=(t,e)=>e!==null&&typeof e=="object"&&"$bigint"in e&&typeof e.$bigint=="string"?BigInt(e.$bigint):e!==null&&typeof e=="object"&&e.type==="BigNumber"&&qe(e.hex)?BigInt(e.hex):e,Tae=t=>bl.encode(t,!0),c5=t=>bl.encode(JSON.stringify(t,Ts),!0),Iae=t=>{if(t!=null)return bl.decode(t)},l5=t=>{if(t!=null)return JSON.parse(bl.decode(t),Jv)},u5=t=>Q(typeof t=="string"?Dr(t):Me(t)),kM=(t,e,r)=>Le(["string","uint256","address","bytes32"],["",e,t,r]),O2=(t,e,r)=>Me(kM(t,e,r)),SM=()=>typeof window>"u"&&typeof process=="object",Pae=()=>!SM(),AM=t=>{const e=t.split(".");if(e.length!==3)throw new Error("invalid jwt");return JSON.parse(bl.decode(e[1]))};function Eg(){return Eg=Object.assign?Object.assign.bind():function(t){for(var e=1;eTe.configure(t);class Wt{static bufferIndexOf(e,r,n=!1){if(n)return Wt.binarySearch(e,r,Wt.compare);const s=(i,o)=>{if(i===o)return!0;if(i.length!==o.length)return!1;for(let a=0;a=0;c--)if(n(e[c],r)!==0)return c+1;return 0}else a<0?s=o+1:i=o-1}return-1}static compare(e,r){const n=Math.min(e.length,r.length);for(let s=0;sWt.bufferify(e(r))}}class Oae extends Wt{constructor(e,r={}){super(),this.hashFn=void 0,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sortLeaves=!!r.sortLeaves,this.sortPairs=!!r.sortPairs,this.hashFn=Wt.bufferifyFn(Me),this.processLeaves(e)}getOptions(){return{sortLeaves:this.sortLeaves,sortPairs:this.sortPairs}}processLeaves(e){this.leaves=e.map(Wt.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(Wt.compare)),this.createHashes(this.leaves)}createHashes(e){for(this.layers=[e];e.length>1;){const r=this.layers.length;this.layers.push([]);const n=e.length;for(let s=0;s=n){this.layers[r].push(...e.slice(n));break}else if(s+1===e.length&&e.length%2===1){this.layers[r].push(e[s]);continue}const i=e[s],o=s+1===e.length?i:e[s+1],a=[i,o];this.sortPairs&&a.sort(Wt.compare);const c=this.hashFn(Fe(a));this.layers[r].push(c)}e=this.layers[r]}}getRoot(){return this.layers.length===0?Uint8Array.from([]):this.layers[this.layers.length-1][0]||Uint8Array.from([])}getHexRoot(){return Wt.bufferToHex(this.getRoot())}getProof(e,r){if(typeof e>"u")throw new Error("leaf is required");e=Wt.bufferify(e);const n=[];if(!Number.isInteger(r)){r=-1;for(let s=0;sWt.bufferToHex(n.data))}verify(e,r,n){let s=Wt.bufferify(r);if(n=Wt.bufferify(n),!Array.isArray(e)||!r||!n)return!1;for(let i=0;ithis.toLeaf(r));return new Oae(e,{sortPairs:!0,sortLeaves:!0})}generateRoot(){return this.tree||(this.tree=this.generateTree()),this.tree.getHexRoot()}generateProof(e){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.getHexProof(this.toLeaf(e))}verifyProof(e,r){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.verify(r,this.toLeaf(e),this.generateRoot())}}const Nae=t=>to(["address","uint256"],[t.address.toLowerCase(),t.tokenId]),N0=(t,e,r)=>{const n=new Gt(t);return r&&n.setHeader("Authorization",`BEARER ${r}`),e&&n.setHeader("X-Access-Key",e),n};let _ae=class{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Dr(JSON.stringify(s,Mae))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}};function Mae(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function Dae(t,e){return function(...r){const n=Array.prototype.slice.call(r);return new Promise(async(s,i)=>{try{n.push((o,a)=>o?i(o):s(a)),await t.apply(e,n)}catch(o){i(o)}})}}function Bae(t,e){const r=encodeURIComponent(t),n=encodeURIComponent(JSON.stringify(e));return`${r}=${n}`}function Lae(t){const e=t.split("&"),r={};for(const n of e){const s=n.split("=");r[decodeURIComponent(s[0])]=JSON.parse(decodeURIComponent(s[1]))}return r}const jae=(t=0,e=Number.MAX_SAFE_INTEGER)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),PM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\d.]+/);return e&&e.length>0?e[0].trim():""},OM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\s\d]+/);return e&&e.length>0?e[0].trim():""},RM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\d.\-:\/]+/);return e&&e.length>0?e[0].trim():""},Fae=t=>new Promise(e=>{const r=setTimeout(()=>{clearTimeout(r),e()},t)}),NM=t=>{const e=Eg({},t.types);return delete e.EIP712Domain,Bs.hash(t.domain,e,t.message)},Ad=t=>Q(NM(t)),{defineProperties:Uae,resolveProperties:$ae}=_oe,Wae=t=>t.replace(/([^:]\/)\/+/g,"$1"),Vae=Object.freeze(Object.defineProperty({__proto__:null,Logger:TM,MAX_UINT_256:bM,MerkleTreeGenerator:Rae,PromiseCache:_ae,base64Decode:Iae,base64DecodeObject:l5,base64Encode:Tae,base64EncodeObject:c5,bigintReplacer:Ts,bigintReviver:Jv,configureLogger:IM,defineProperties:Uae,encodeMessageDigest:u5,encodeTypedDataDigest:Ad,encodeTypedDataHash:NM,extractProjectIdFromAccessKey:kae,formatEther:Aae,formatUnits:CM,getFetchRequest:N0,getRandomInt:jae,getSaleItemsLeaf:Nae,isBigNumberish:wM,isBrowser:Pae,isNode:SM,jwtDecodeClaims:AM,logger:Te,packMessageData:kM,parseEther:Sae,parseUnits:EM,promisify:Dae,queryStringFromObject:Bae,queryStringToObject:Lae,resolveProperties:$ae,sanitizeAlphanumeric:OM,sanitizeHost:RM,sanitizeNumberString:PM,sleep:Fae,subDigestOf:O2,toHexString:Zc,urlClean:Wae},Symbol.toStringTag,{value:"Module"}));function id(){return id=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="number"?t:t.chainId?t.chainId:Number(t),Hae=t=>{if(t)return _M(t)},MM=(t,e=!1,r=!1)=>{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const s=n.map(l=>l.chainId).sort(),i=s.filter((l,u)=>s.indexOf(l)!==u);if(i.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${i}`);return!1}n.forEach(l=>l.name=l.name.toLowerCase());const o=n.map(l=>l.name).sort(),a=o.filter((l,u)=>o.indexOf(l)!==u);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let c=!1;for(let l=0;l(MM(t,!0,e),t),Gae=(t,e=!0)=>{const r=t.map(s=>s.chainId).sort(),n=r.filter((s,i)=>r.indexOf(s)!==i);if(n.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${n}`);return!1}return!0},qae=(t,e)=>{if(!(!t||!e)){if(!t.chainId&&!t.name)throw new Error("failed to update network config: source config is missing chainId or name");if(t.chainId!==e.chainId&&t.name!==e.name)throw new Error("failed to update network config: one of chainId or name must match");t.rpcUrl&&(e.rpcUrl=t.rpcUrl,e.provider=void 0),t.provider&&(e.provider=t.provider),t.relayer&&(e.relayer=t.relayer)}},BM=t=>DM(LM(t)),Ns=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=Number(e);return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(typeof e=="bigint"){const r=Number(e);return t.find(n=>n.chainId===r)}else return}},Kae=(t,e)=>t?t.name===e||t.chainId===e:!1,Qae=t=>{const e={};for(let r=0;r{if(!t)return[];const e=t.sort((n,s)=>n.chainId===s.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},Yv=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let s=e[n];return typeof s=="function"?s=s():s==null?s="":typeof s=="object"||typeof s=="symbol"?s=s.toString():s=s.valueOf(),s})):"",jM=t=>Yv("https://${network}-indexer.sequence.app",{network:t}),FM=t=>Yv("https://${network}-relayer.sequence.app",{network:t}),UM=t=>Yv("https://nodes.sequence.app/${network}",{network:t});function f5(t){return Ns(od,t)}function $M(t){return typeof t=="bigint"?t:wM(t)?BigInt(t):BigInt(t.chainId)}const De=(t,e)=>{const r=R0[t];if(!r)throw new Error(`Network with chainId ${t} not found`);const n=UM(r.name);return id({},r,{rpcUrl:n,indexerUrl:jM(r.name),relayer:{url:FM(r.name),provider:{url:n}}},e)},WM=[id({},R0[M.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),id({},R0[M.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})],od=BM([id({},De(M.POLYGON),{isDefaultChain:!0,isAuthChain:!0}),De(M.MAINNET),De(M.BSC),De(M.AVALANCHE),De(M.ARBITRUM),De(M.ARBITRUM_NOVA),De(M.OPTIMISM),De(M.OPTIMISM_SEPOLIA),De(M.POLYGON_ZKEVM),De(M.GNOSIS),De(M.RINKEBY,{disabled:!0}),De(M.GOERLI,{disabled:!0}),De(M.SEPOLIA),De(M.POLYGON_MUMBAI,{disabled:!0}),De(M.POLYGON_AMOY),De(M.BSC_TESTNET),De(M.ARBITRUM_SEPOLIA),De(M.BASE),De(M.BASE_SEPOLIA),De(M.HOMEVERSE),De(M.HOMEVERSE_TESTNET),De(M.XAI),De(M.XAI_SEPOLIA),De(M.AVALANCHE_TESTNET),De(M.XR_SEPOLIA),De(M.B3),De(M.B3_SEPOLIA),De(M.APECHAIN),De(M.APECHAIN_TESTNET),De(M.BLAST),De(M.BLAST_SEPOLIA),De(M.TELOS),De(M.BORNE_TESTNET),De(M.SKALE_NEBULA),De(M.SKALE_NEBULA_TESTNET),De(M.SONEIUM_MINATO),De(M.TOY_TESTNET),De(M.IMMUTABLE_ZKEVM),De(M.IMMUTABLE_ZKEVM_TESTNET),De(M.ROOT_NETWORK),De(M.ROOT_NETWORK_PORCINI),...WM]);class VM{constructor(e,r){this.sender=void 0,this.handler=void 0,this.sender=r,e&&this.setMiddleware(e)}setMiddleware(e){this.handler=zM(e,this.sender)}request(e){return this.handler.request(e)}}const zM=(t,e)=>{if(t.length===0)return e;const r=s=>s.requestHandler?s.requestHandler:s;let n;n=r(t[t.length-1])(e.request);for(let s=t.length-2;s>=0;s--)n=r(t[s])(n);return{request:n}};function HM(t){return t!==void 0&&t.send!==void 0&&t.constructor.defaultUrl!==void 0&&t.detectNetwork!==void 0&&t.getSigner!==void 0&&t.perform!==void 0}function GM(t){return t!==void 0&&t.send!==void 0}class qM{constructor(e,r){this.provider=void 0,this.defaultChainId=void 0,this.request=n=>(n.chainId||(n.chainId=this.defaultChainId),this.provider(n)),GM(e)?this.provider=n=>e.send(n.method,n.params,n.chainId):HM(e)?this.provider=n=>e.send(n.method,n.params||[]):this.provider=e,this.defaultChainId=r}send(e,r,n){const s={method:e,params:r,chainId:n};return this.request(s)}}class Jae{constructor(e){this.requestHandler=void 0,this.isAllowedFunc=void 0,e?this.isAllowedFunc=e:this.isAllowedFunc=r=>!0,this.requestHandler=R2(this.isAllowedFunc)}setIsAllowedFunc(e){this.isAllowedFunc=e,this.requestHandler=R2(this.isAllowedFunc)}}const R2=t=>e=>r=>{if(!t(r))throw new Error("allowProvider middleware precondition is unmet.");return e(r)};class d5{constructor(e){var r=this;this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.requestHandler=n=>async function(s){if(r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId),a=r.getCacheValue(o);if(a&&a!=="")return{id:s.id,result:a}}const i=await n(s);if((r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method))&&i&&r.shouldCacheResponse(s,i)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId);r.cachableJsonRpcMethods.includes(s.method)?r.setCacheValue(o,i):r.setCacheByBlockValue(o,i)}return i},this.cacheKey=(n,s,i)=>{let o="";return i?o=`${i}:${n}:`:o=`:${n}:`,!s||s.length===0?o+"[]":o+JSON.stringify(s)},this.getCache=()=>this.cache,this.setCache=n=>{this.cache=n,this.onUpdateCallback&&this.onUpdateCallback()},this.getCacheValue=n=>{if(this.cache[n])return this.cache[n];if(this.cacheByBlock[n])return this.cacheByBlock[n]},this.setCacheValue=(n,s)=>{this.cache[n]=s,this.onUpdateCallback&&this.onUpdateCallback(n,s)},this.setCacheByBlockValue=(n,s)=>{this.cacheByBlock[n]=s,this.cacheByBlockResetLock||(this.cacheByBlockResetLock=!0,setTimeout(()=>{this.cacheByBlockResetLock=!1,this.cacheByBlock={}},1500))},this.shouldCacheResponse=(n,s)=>!(!s||n.method==="eth_getCode"&&s.length<=2),this.clearCache=()=>{this.cache={},this.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=e==null?void 0:e.defaultChainId,e!=null&&e.blockCache?(e==null?void 0:e.blockCache)!==!0&&(this.cachableJsonRpcMethodsByBlock=e==null?void 0:e.blockCache):this.cachableJsonRpcMethodsByBlock=[]}onUpdate(e){this.onUpdateCallback=e}}class KM{constructor(e){var r=this;this.options=void 0,this.requestHandler=n=>async function(s){switch(s.method){case"net_version":if(r.options.chainId)return`${r.options.chainId}`;break;case"eth_chainId":if(r.options.chainId)return yr(r.options.chainId);break;case"eth_accounts":if(r.options.accountAddress)return[Ae(r.options.accountAddress)];break;case"sequence_getWalletContext":if(r.options.walletContext)return r.options.walletContext;break}return n(s)},this.options=e}}const QM=t=>async e=>{try{return await t(e)}catch(r){throw typeof r=="string"?new Error(r):new Error(r.message)}},JM=t=>async e=>{const r=e.chainId?` chainId:${e.chainId}`:"";Te.info(`[provider request]${r} id:${e.id} method:${e.method} params:`,e.params);try{const n=await t(e);return Te.info(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"result:",n),n}catch(n){Te.warn(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"error:",n)}},Yae=t=>e=>async r=>{const n=t(r);switch(r.method){case"net_version":return`${n}`;case"eth_chainId":return yr(n)}return e(r)},YM=["personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_sendRawTransaction","sequence_sign","sequence_signTypedData_v4","sequence_getWalletContext","sequence_getWalletConfig","sequence_getWalletState","sequence_getNetworks","sequence_updateConfig","sequence_publishConfig","sequence_gasRefundOptions","sequence_getNonce","sequence_relay","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];class Xae{constructor(e){this.provider=void 0,this.requestHandler=r=>n=>YM.includes(n.method)?this.provider.request(n):r(n),this.provider=e}}class Zae{constructor(e){this.privateJsonRpcMethods=["net_version","eth_chainId","eth_accounts",...YM],this.provider=void 0,this.rpcUrl=void 0,this.requestHandler=r=>n=>this.provider&&!this.privateJsonRpcMethods.includes(n.method)?this.provider.send(n.method,n.params||[]):(Te.debug("[public-provider] sending request to signer window",n.method),r(n)),e&&this.setRpcUrl(e)}getRpcUrl(){return this.rpcUrl}setRpcUrl(e){!e||e===""?(this.rpcUrl=void 0,this.provider=void 0):(this.rpcUrl=e,this.provider=new cr(e))}}class XM{constructor(){var e=this;this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.requestHandler=r=>async function(n){if(!e.singleflightJsonRpcMethods.includes(n.method))return r(n);const s=e.requestKey(n.method,n.params||[],n.chainId);if(!e.inflight[s])e.inflight[s]=[];else return new Promise((i,o)=>{e.inflight[s].push({id:n.id,callback:(a,c)=>{a?o(a):i(c)}})});try{const i=await r(n);return e.inflight[s].forEach(({callback:o})=>o(void 0,i)),i}catch(i){throw e.inflight[s].forEach(({callback:o})=>o(i,void 0)),i}finally{delete e.inflight[s]}},this.requestKey=(r,n,s)=>{let i="";return s?i=`${s}:${r}:`:i=`:${r}:`,!n||n.length===0?i+"[]":i+JSON.stringify(n)},this.inflight={}}}function $l(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var ece=0;function h5(t){return"__private_"+ece+++"_"+t}var Ya=h5("chainId"),Gx=h5("nextId"),Hd=h5("sender");class ZM extends cr{constructor(e,r,n){var s;super(e,r==null?void 0:r.chainId,n),s=this,this.url=e,Object.defineProperty(this,Ya,{writable:!0,value:void 0}),Object.defineProperty(this,Gx,{writable:!0,value:1}),Object.defineProperty(this,Hd,{writable:!0,value:void 0}),this.fetch=async function(l){if(s.url===void 0)throw new Error("missing provider URL");const{method:u,params:f}=l,d={method:u,params:f,id:$l(s,Gx)[Gx]++,jsonrpc:"2.0"},h=typeof s.url=="string"?new Gt(s.url):s.url;h.body=JSON.stringify(d);try{const y=await h.send();if(y.body)try{const p=JSON.parse(Ds(y.body));return tce(p)}catch{throw new Error("invalid JSON response")}return null}catch(y){throw y}};const i=r==null?void 0:r.chainId,o=r==null?void 0:r.middlewares,a=r==null?void 0:r.blockCache;$l(this,Ya)[Ya]=i;const c=new VM(o??[new KM({chainId:i}),new XM,new d5({defaultChainId:i,blockCache:a})],new qM(this.fetch,i));$l(this,Hd)[Hd]=c}async request(e){return $l(this,Hd)[Hd].request(e)}async send(e,r,n){return this.request({method:e,params:r,chainId:n})}async getNetwork(){const e=$l(this,Ya)[Ya];if(e){const r=R0[e],n=(r==null?void 0:r.name)||"",s=r==null?void 0:r.ensAddress;return lt.from({name:n,chainId:e,ensAddress:s})}else{const r=await this.send("eth_chainId",[]);return $l(this,Ya)[Ya]=Number(r),this.getNetwork()}}}function tce(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}const rce=Object.freeze(Object.defineProperty({__proto__:null,AllowProvider:Jae,CachedProvider:d5,ChainId:M,EagerProvider:KM,JsonRpcHandler:qM,JsonRpcProvider:ZM,JsonRpcRouter:VM,NetworkType:Ie,PublicProvider:Zae,SigningProvider:Xae,SingleflightMiddleware:XM,allNetworks:od,allowProviderMiddleware:R2,checkNetworkConfig:Kae,createJsonRpcMiddlewareStack:zM,ensureUniqueNetworks:Gae,ensureValidNetworks:DM,exceptionProviderMiddleware:QM,findNetworkConfig:Ns,findSupportedNetwork:f5,getChainId:_M,hardhatNetworks:WM,indexerURL:jM,isJsonRpcProvider:HM,isJsonRpcSender:GM,isNetworkConfig:zae,isValidNetworkConfig:MM,loggingProviderMiddleware:JM,maybeChainId:Hae,networkProviderMiddleware:Yae,networks:R0,networksIndex:Qae,nodesURL:UM,relayerURL:FM,sortNetworks:LM,stringTemplate:Yv,toChainIdNumber:$M,updateNetworkConfig:qae,validateAndSortNetworks:BM},Symbol.toStringTag,{value:"Module"}));function gr(){return gr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(y5(s))return Le(["uint8","uint8","address"],[el.Address,s.weight,s.address]);if(s.isDynamic){const i=Q(s.signature);return Le(["uint8","uint8","address","uint16","bytes"],[el.DynamicSignature,s.weight,s.address,i.length,i])}return Le(["uint8","uint8","bytes"],[el.EOASignature,s.weight,s.signature])});return Le(["uint16",...new Array(n.length).fill("bytes")],[r,...n])}async function iD(t,e,r){const n=I1(e),s=await Promise.all(t.signers.map(async i=>{if(y5(i))return i;if(i.isDynamic){if(!i.address)throw new Error("Dynamic signature part must have address");if(!p5(i.address,n,i.signature,r))throw new Error(`Invalid dynamic signature part ${i.address}`);return{address:i.address,weight:i.weight,signature:i.signature}}else return{address:P1(n,i.signature),weight:i.weight,signature:i.signature}}));return{version:1,payload:e,subdigest:n,config:{version:1,threshold:t.threshold,signers:s}}}function Rh(t,e,r,n){if(r.length!==0)throw new Error("Explicit subdigests not supported on v1");let s=0n;const i=t.signers.map(a=>{if(!e.has(a.address))return a;const c=e.get(a.address),l=Q(c.signature);return s+=BigInt(a.weight),c.isDynamic||l.length!==66?gr({},a,{isDynamic:!0,signature:c.signature,address:a.address}):gr({},a,{isDynamic:!1,signature:c.signature})});return{encoded:g5({version:1,threshold:t.threshold,signers:i}),weight:s}}const v5={decode:t=>sD(t),encode:t=>g5(t),trim:async t=>t,supportsNoChainId:!0,recover:(t,e,r)=>iD(t,e,r),encodeSigners:(t,e,r,n)=>Rh(t,e,r),hasEnoughSigningPower:(t,e)=>{const{weight:r}=v5.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{throw new Error("Signature chaining not supported on v1")},hashSetImageHash:function(t){throw new Error("Image hash not supported on v1")},signaturesOf(t){return t.signers.filter(e=>e.signature!==void 0).map(e=>({address:e.address,signature:e.signature}))},signaturesOfDecoded:function(t){return t.signers.map(e=>e.signature).filter(e=>e!==void 0)}};var uce=Object.freeze({__proto__:null,SignaturePartType:el,isAddressMember:y5,isUnrecoveredSignatureMember:rD,isUnrecoveredSignature:nD,decodeSignature:sD,encodeSignature:g5,recoverSignature:iD,encodeSigners:Rh,SignatureCoder:v5});const m5={isWalletConfig:t=>t.version===1&&t.threshold!==void 0&&t.signers!==void 0,imageHashOf:t=>t.signers.reduce((e,r)=>Me(qt.defaultAbiCoder().encode(["bytes32","uint8","address"],[e,r.weight,r.address])),Le(["uint256"],[t.threshold])),hasSubdigest:(t,e)=>!1,isComplete:t=>!0,checkpointOf:t=>0n,signersOf:t=>t.signers.map(e=>({address:e.address,weight:Number(e.weight)})),fromSimple:t=>{if(BigInt(t.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(t.subdigests&&t.subdigests.length>0)throw new Error("v1 wallet config does not support subdigests");return{version:1,threshold:t.threshold,signers:t.signers}},update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new ut([...Ht.mainModule.abi,...Ht.mainModuleUpgradable.abi]),i=[];return(!n||n==="first")&&i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImplementation"),[r.mainModuleUpgradable]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[m5.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),{entrypoint:t,transactions:i}},decodeTransaction:function(t){throw new Error("Function not implemented.")}},toJSON:function(t){const e=t.signers.map(r=>({weight:BigInt(r.weight).toString(),address:r.address}));return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),signers:e})},fromJSON:function(t){const e=JSON.parse(t),r=e.signers.map(n=>({weight:BigInt(n.weight),address:n.address}));return{version:e.version,threshold:BigInt(e.threshold),signers:r}},editConfig:function(t,e){var r;const n=t.signers.slice();if(e.checkpoint&&BigInt(e.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(e.add)for(const s of e.add)n.find(i=>i.address===s.address)||n.push({weight:s.weight,address:s.address});if(e.remove)for(const s of e.remove){const i=n.findIndex(o=>o.address===s);i>=0&&n.splice(i,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,signers:n}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Rh(t,r,[]);if(a>=BigInt(t.threshold))return o}const n=t.signers;for(const{address:s}of n.sort(({weight:i},{weight:o})=>Number(i)-Number(o))){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Rh(t,r,[]);if(a>=BigInt(t.threshold))return o}return Rh(t,r,[]).encoded}};var fce=Object.freeze({__proto__:null,ConfigCoder:m5}),dce=Object.freeze({__proto__:null});const oD=1,aD={version:oD,factory:"0xf9D09D634Fb818b05149329C1dcCFAeA53639d96",guestModule:"0x02390F3E6E5FD1C6786CB78FD3027C117a9955A7",mainModule:"0xd01F11855bCcb95f88D7A48492F66410d4637313",mainModuleUpgradable:"0x7EFE6cE415956c5f80C6530cC6cc81b4808F6118",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Hi=Object.freeze({__proto__:null,config:fce,context:dce,signature:uce,version:oD,DeployedWalletContext:aD});const x5="0x8713a7c4465f6fbee2b6e9d6646d1d9f83fec929edfc4baf661f3c865bdd04d1";function cD(t){return Me(lD(t))}function lD(t){return Le(["bytes32","bytes32"],[x5,t])}function uD(t){const e=Q(t);if(e.length===64&&z(e.slice(0,32))===x5)return z(e.slice(32,64))}function hce(t){return uD(t)!==void 0}var pce=Object.freeze({__proto__:null,SetImageHashPrefix:x5,hashSetImageHash:cD,messageSetImageHash:lD,decodeMessageSetImageHash:uD,isMessageSetImageHash:hce});let Xt=function(t){return t[t.Legacy=0]="Legacy",t[t.Dynamic=1]="Dynamic",t[t.NoChainIdDynamic=2]="NoChainIdDynamic",t[t.Chained=3]="Chained",t}({}),Pt=function(t){return t[t.Signature=0]="Signature",t[t.Address=1]="Address",t[t.DynamicSignature=2]="DynamicSignature",t[t.Node=3]="Node",t[t.Branch=4]="Branch",t[t.Subdigest=5]="Subdigest",t[t.Nested=6]="Nested",t}({});const Cg=66;function wl(t){return t.left!==void 0&&t.right!==void 0}function Td(t){return t.tree!==void 0}function O1(t){return t.unrecovered&&t.signature!==void 0&&t.isDynamic!==void 0}function kg(t){let e=Q(t),r;const n=(s,i)=>s?s.right?{left:s,right:i}:{left:s.left,right:i}:{left:i};for(;e.length>0;){const s=e[0];switch(e=e.slice(1),s){case Pt.Signature:{const i=e[0],o=z(e.slice(1,Cg+1));r=n(r,{signature:o,weight:i,unrecovered:!0,isDynamic:!1}),e=e.slice(Cg+1)}break;case Pt.Address:{const i=e[0],o=Ae(z(e.slice(1,21)));r=n(r,{address:o,weight:i}),e=e.slice(21)}break;case Pt.DynamicSignature:{const i=e[0],o=Ae(z(e.slice(1,21))),a=e[21]<<16|e[22]<<8|e[23],c=z(e.slice(24,24+a));r=n(r,{address:o,signature:c,weight:i,unrecovered:!0,isDynamic:!0}),e=e.slice(24+a)}break;case Pt.Node:{const i=z(e.slice(0,32));r=n(r,{nodeHash:i}),e=e.slice(32)}break;case Pt.Branch:{const i=e[0]<<16|e[1]<<8|e[2],o=kg(e.slice(3,3+i));r=n(r,o),e=e.slice(3+i)}break;case Pt.Subdigest:{const i=z(e.slice(0,32));r=n(r,{subdigest:i}),e=e.slice(32)}break;case Pt.Nested:{const i=e[0],o=e[1]<<8|e[2],a=e[3]<<16|e[4]<<8|e[5],c=kg(e.slice(6,6+a));r=n(r,{weight:i,threshold:o,tree:c}),e=e.slice(6+a)}break;default:throw new Error(`Unknown signature part type: ${s}: ${z(e)}`)}}if(!r)throw new Error("Empty signature tree");return r.right?r:r.left}class fD extends Error{constructor(e){super(`Invalid signature leaf: ${JSON.stringify(e)}`),this.leaf=e}}async function tl(t,e,r){if(wl(t)){const[n,s]=await Promise.all([tl(t.left,e,r),tl(t.right,e,r)]);return{left:n,right:s}}if(Td(t))return{weight:t.weight,threshold:t.threshold,tree:await tl(t.tree,e,r)};if(O1(t))if(t.isDynamic){if(!t.address)throw new Error("Dynamic signature leaf without address");if(!await p5(t.address,e,t.signature,r))throw new fD(t);return{weight:t.weight,address:t.address,signature:t.signature,subdigest:e}}else return{weight:t.weight,address:P1(e,t.signature),signature:t.signature,subdigest:e};return t}const Ar={concat:(t,e)=>Le(["bytes","bytes"],[t,e]),node:t=>Le(["uint8","bytes32"],[Pt.Node,t]),branch:t=>{const e=Q(t);return Le(["uint8","uint24","bytes"],[Pt.Branch,e.length,e])},nested:(t,e,r)=>{const n=Q(r);return Le(["uint8","uint8","uint16","uint24","bytes"],[Pt.Nested,t,e,n.length,n])},subdigest:t=>Le(["uint8","bytes32"],[Pt.Subdigest,t]),signature:(t,e)=>Le(["uint8","uint8","bytes"],[Pt.Signature,t,e]),dynamicSignature:(t,e,r)=>{const n=Q(r);return Le(["uint8","uint8","address","uint24","bytes"],[Pt.DynamicSignature,t,e,n.length,n])},address:(t,e)=>Le(["uint8","uint8","address"],[Pt.Address,t,e])};function Nh(t,e,r,n,s={}){const i=_h(t.tree,e,r,s);return BigInt(n)===0n?{encoded:Le(["uint8","uint16","uint32","bytes"],[Xt.NoChainIdDynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:BigInt(t.threshold)>255n?{encoded:Le(["uint8","uint16","uint32","bytes"],[Xt.Dynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:{encoded:Le(["uint8","uint8","uint32","bytes"],[Xt.Legacy,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}}function _h(t,e,r,n={}){const s=!n.disableTrim;if(js(t)){const i=_h(t.left,e,r),o=_h(t.right,e,r),a=Kr(t.left),c=Kr(t.right);return s&&i.weight===0n&&o.weight===0n&&!a&&!c?{encoded:Ar.node(Zn(t)),weight:0n}:s&&o.weight===0n&&!c?{encoded:Ar.concat(i.encoded,Ar.node(Zn(t.right))),weight:i.weight}:s&&i.weight===0n&&!a?{encoded:Ar.concat(Ar.node(Zn(t.left)),Ar.branch(o.encoded)),weight:o.weight}:{encoded:Ar.concat(i.encoded,Ar.branch(o.encoded)),weight:i.weight+o.weight}}if(xo(t)){const i=_h(t.tree,e,r);return s&&i.weight===0n?{encoded:Ar.node(Zn(t)),weight:0n}:{encoded:Ar.nested(t.weight,t.threshold,i.encoded),weight:i.weight}}if(bo(t))return{encoded:Ar.node(Zn(t)),weight:0n};if(mo(t)){const i=r.includes(t.subdigest);return{encoded:Ar.subdigest(t.subdigest),weight:i?bM:0n}}if(Kr(t))if(e.has(t.address)){const o=e.get(t.address),a=o.signature;return n.forceDynamicEncoding||o.isDynamic?{encoded:Ar.dynamicSignature(t.weight,t.address,a),weight:BigInt(t.weight)}:{encoded:Ar.signature(t.weight,a),weight:BigInt(t.weight)}}else return{encoded:Ar.address(t.weight,t.address),weight:0n};throw new Error(`Invalid topology - unknown error: ${JSON.stringify(t)}`)}function b5(t){return E5(t)?b5(t.suffix[t.suffix.length-1]):t.config}function w5(t){return t.type!==void 0&&t.decoded!==void 0&&t.version!==void 0&&t.version===2}function R1(t){return t.suffix!==void 0&&Array.isArray(t.suffix)&&t.suffix.every(w5)}function dD(t){return t.type!==void 0&&t.config!==void 0&&t.digest!==void 0&&t.version!==void 0&&t.version===2}function E5(t){return t.chain!==void 0&&Array.isArray(t.chain)&&t.chain.every(dD)}function Xv(t){const e=Q(t),r=e[0];switch(r){case Xt.Legacy:return{version:2,type:Xt.Legacy,decoded:dy(e)};case Xt.Dynamic:return{version:2,type:Xt.Dynamic,decoded:dy(e.slice(1))};case Xt.NoChainIdDynamic:return{version:2,type:Xt.NoChainIdDynamic,decoded:dy(e.slice(1))};case Xt.Chained:return hD(e);default:throw new Error(`Invalid signature type: ${r}`)}}function dy(t){const e=Q(t),r=e[0]<<8|e[1],n=e[2]<<24|e[3]<<16|e[4]<<8|e[5],s=kg(e.slice(6));return{threshold:r,checkpoint:n,tree:s}}function hD(t){const e=Q(t),r=e[0];if(r!==Xt.Chained)throw new Error(`Expected chained signature type: ${r}`);const n=[];let s=1;for(;sQ(Ca(i))),s=Le(n.map(()=>["uint24","bytes"]).flat(),n.map(i=>[i.length,i]).flat());return Le(["uint8","bytes"],[Xt.Chained,s])}function Ca(t){if(mi(t))return z(t);if(R1(t)||E5(t))return Zv(Ca(t),(t.suffix||[]).map(Ca));const e=w5(t)?t.decoded:t.config;switch(t.type){case Xt.Legacy:if(BigInt(e.threshold)>255n)throw new Error(`Legacy signature threshold is too large: ${e.threshold} (max 255)`);return N2(e);case Xt.NoChainIdDynamic:case Xt.Dynamic:return Le(["uint8","bytes"],[t.type,N2(e)]);case Xt.Chained:throw new Error("Unreachable code: Chained signature should be handled above");default:throw new Error(`Invalid signature type: ${t.type}`)}}function N2(t){return Le(["uint16","uint32","bytes"],[t.threshold,t.checkpoint,Mh(t.tree)])}function Mh(t){if(js(t)||wl(t)){const e=Q(Mh(t.right)),r=Q(Mh(t.left));return js(t.right)||wl(t.right)?Le(["bytes","uint8","uint24","bytes"],[r,Pt.Branch,e.length,e]):Le(["bytes","bytes"],[r,e])}if(xo(t)||Td(t)){const e=Q(Mh(t.tree));return Le(["uint8","uint8","uint16","uint24","bytes"],[Pt.Nested,t.weight,t.threshold,e.length,e])}if(O1(t)||Kr(t)&&t.signature!==void 0){const e=Q(t.signature);if(t.isDynamic||e.length!==Cg){if(!t.address)throw new Error("Dynamic signature leaf must have address");return Le(["uint8","uint8","address","uint24","bytes"],[Pt.DynamicSignature,t.weight,t.address,e.length,e])}else return Le(["uint8","uint8","bytes"],[Pt.Signature,t.weight,e])}if(Kr(t))return Le(["uint8","uint8","address"],[Pt.Address,t.weight,t.address]);if(bo(t))return Le(["uint8","bytes32"],[Pt.Node,t.nodeHash]);if(mo(t))return Le(["uint8","bytes32"],[Pt.Subdigest,t.subdigest]);throw new Error(`Unknown signature tree type: ${t}`)}function Dh(t){return js(t)?[...Dh(t.left),...Dh(t.right)]:xo(t)?Dh(t.tree):Kr(t)&&t.signature?[{address:t.address,signature:t.signature}]:[]}function Bh(t){return wl(t)?[...Bh(t.left),...Bh(t.right)]:Td(t)?Bh(t.tree):O1(t)?[t.signature]:[]}function hy(t){return wl(t)?[...hy(t.left),...hy(t.right)]:Td(t)?hy(t.tree):mo(t)?[t.subdigest]:[]}async function Sg(t){const e=typeof t=="string"?Xv(t):t;if(R1(e)){const n=await Promise.all([Sg(gr({},e,{suffix:void 0})),...e.suffix.map(s=>Sg(s))]);return Zv(n[0],n.slice(1))}const{trimmed:r}=await Lh(e.decoded.tree);return Ca(gr({},e,{decoded:gr({},e.decoded,{tree:r})}))}async function Lh(t,e=!0){if(wl(t)){const[r,n]=await Promise.all([Lh(t.left),Lh(t.right)]);if(r.weight===0&&n.weight===0)try{const s=await tl(t,yl,void 0);return{weight:0,trimmed:{nodeHash:Zn(s)}}}catch{}else return{weight:r.weight+n.weight,trimmed:{left:r.trimmed,right:n.trimmed}}}if(Td(t)){const r=await Lh(t.tree);if(r.weight===0)try{const n=await tl(t,yl,void 0);return{weight:0,trimmed:{nodeHash:Zn(n)}}}catch{}return{weight:r.weight,trimmed:{weight:t.weight,threshold:t.threshold,tree:r.trimmed}}}return bo(t)&&vD(t.nodeHash)?{weight:0,trimmed:gr({},gD(t.nodeHash))}:O1(t)||Kr(t)&&t.signature!==void 0?{weight:Number(t.weight),trimmed:t}:!e&&mo(t)?{weight:1/0,trimmed:t}:{weight:0,trimmed:t}}const em={decode:t=>Xv(t),encode:t=>Ca(t),trim:t=>Sg(t),supportsNoChainId:!0,recover:(t,e,r)=>C5(t,e,r),encodeSigners:(t,e,r,n)=>Nh(t,e,r,n),hasEnoughSigningPower:(t,e)=>{const{weight:r}=em.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{const r=e.reverse(),n=mi(t)?t:Ca(t),s=r.map(i=>mi(i)?i:Ca(i));return Zv(n,s)},hashSetImageHash:function(t){return cD(t)},signaturesOf(t){return Dh(t.tree)},signaturesOfDecoded:function(t){return Bh(t.decoded.tree)}};var yce=Object.freeze({__proto__:null,SignatureType:Xt,SignaturePartType:Pt,SignaturePartTypeLength:Cg,isUnrecoveredNode:wl,isUnrecoveredNestedLeaf:Td,isUnrecoveredSignatureLeaf:O1,decodeSignatureTree:kg,InvalidSignatureLeafError:fD,recoverTopology:tl,partEncoder:Ar,encodeSigners:Nh,encodeTree:_h,deepestConfigOfSignature:b5,isUnrecoveredSignature:w5,isUnrecoveredChainedSignature:R1,isSignature:dD,isChainedSignature:E5,decodeSignature:Xv,decodeSignatureBody:dy,decodeChainedSignature:hD,setImageHashStruct:pD,recoverSignature:C5,encodeChain:Zv,encodeSignature:Ca,encodeSignatureBody:N2,encodeSignatureTree:Mh,signaturesOf:Dh,signaturesOfDecoded:Bh,subdigestsOfDecoded:hy,trimSignature:Sg,trimUnrecoveredTree:Lh,SignatureCoder:em});function Kr(t){return t.address!==void 0&&t.weight!==void 0}function mo(t){return t.subdigest!==void 0&&t.address===void 0}function jh(t){return js(t)?JSON.stringify({left:jh(t.left),right:jh(t.right)}):xo(t)?JSON.stringify({weight:BigInt(t.weight).toString(),threshold:BigInt(t.threshold).toString(),tree:jh(t.tree)}):Kr(t)?JSON.stringify({address:t.address,weight:BigInt(t.weight).toString()}):JSON.stringify(t)}function Fh(t){const e=typeof t=="string"?JSON.parse(t):t;return e.left!==void 0&&e.right!==void 0?{left:Fh(e.left),right:Fh(e.right)}:e.weight!==void 0&&e.threshold!==void 0&&e.tree!==void 0?{weight:BigInt(e.weight),threshold:BigInt(e.threshold),tree:Fh(e.tree)}:e.address!==void 0&&e.weight!==void 0?{address:e.address,weight:BigInt(e.weight)}:e}function xo(t){return t.tree!==void 0&&t.weight!==void 0&&t.threshold!==void 0}function bo(t){return t.nodeHash!==void 0}function k5(t){return Kr(t)||mo(t)||xo(t)||bo(t)}function js(t){return t.left!==void 0&&t.right!==void 0}function gce(t){return js(t)||k5(t)}function yD(t){return Le(["uint96","address"],[t.weight,t.address])}function gD(t){const e=Q(t);if(e.length!==32)throw new Error("Invalid encoded string length");const r=BigInt(z(e.slice(0,12))),n=Ae(z(e.slice(12)));return{weight:r,address:n}}function vD(t){const e=Q(t);return e.length!==32?!1:e.slice(0,11).every(n=>n===0)}function Zn(t){if(Kr(t))return yD(t);if(mo(t))return to(["string","bytes32"],[`Sequence static digest: +`,t.subdigest]);if(xo(t)){const e=Zn(t.tree);return to(["string","bytes32","uint256","uint256"],[`Sequence nested config: +`,e,t.threshold,t.weight])}return bo(t)?t.nodeHash:to(["bytes32","bytes32"],[Zn(t.left),Zn(t.right)])}function vce(t){const e=[];let r=t;for(;!k5(r);)e.unshift(r.right),r=r.left;return e.unshift(r),e}function mce(t){return t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&t.version!==void 0&&t.version===2}function S5(t){return to(["bytes32","uint256"],[to(["bytes32","uint256"],[Zn(t.tree),t.threshold]),t.checkpoint])}function mD(t){return t.threshold!==void 0&&t.weight!==void 0&&t.members!==void 0}function Bu(t){return Kr(t)||mo(t)?[t]:xo(t)?[{threshold:t.threshold,weight:t.weight,members:Bu(t.tree)}]:bo(t)?[]:[...Bu(t.left),...Bu(t.right)]}function _2(t){return bo(t)?!0:js(t)?_2(t.left)||_2(t.right):!1}function xce(t){return{threshold:t.threshold,checkpoint:t.checkpoint,members:Bu(t.tree)}}const xD=(t,e)=>t.map(r=>mD(r)?{tree:e(r.members),threshold:r.threshold,weight:r.weight}:r);function A5(t){if(t.length===0)throw new Error("Empty members array");return xD(t,A5).reduce((r,n)=>({left:r,right:n}))}function T5(t){if(t.length===0)throw new Error("Empty members array");const e=xD(t,T5);for(let r=e.length;r>1;r=r/2)for(let n=0;n=r?e[n]=e[s]:e[n]={left:e[s],right:e[i]}}return e[0]}function I5(t){return t.length>8?T5(t):A5(t)}function bD(t,e=I5){return{version:2,threshold:t.threshold,checkpoint:t.checkpoint,tree:e(t.members)}}function Ag(t,e){return mo(t)?t.subdigest===e:js(t)?Ag(t.left,e)||Ag(t.right,e):!1}function M2(t){const e=[t],r=new Set;for(;e.length>0;){const n=e.pop();xo(n)?e.push(n.tree):js(n)?(e.push(n.left),e.push(n.right)):Kr(n)&&r.add({address:n.address,weight:Number(n.weight)})}return Array.from(r)}function Tg(t){return js(t)?Tg(t.left)&&Tg(t.right):!bo(t)}const tm={isWalletConfig:t=>t.version===2&&t.threshold!==void 0&&t.tree!==void 0,imageHashOf:t=>S5(t),hasSubdigest:(t,e)=>Ag(t.tree,e),checkpointOf:t=>BigInt(t.checkpoint),signersOf:t=>M2(t.tree),fromSimple:t=>{var e;return bD(gr({},t,{members:[...t.signers,...((e=t.subdigests)!=null?e:[]).map(r=>({subdigest:r}))]}))},isComplete:t=>Tg(t.tree),update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new ut(Ht.mainModuleUpgradable.abi);return{entrypoint:t,transactions:[{to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[tm.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}]}},decodeTransaction:function(t){var e,r,n,s;const i=new ut(Ht.mainModuleUpgradable.abi);if(t.transactions.length!==1)throw new Error("Invalid transaction bundle, expected 1 transaction");const o=t.transactions[0].data;if(!o)throw new Error("Invalid transaction bundle, expected data");const a=i.decodeFunctionData(i.getFunction("updateImageHash"),o);if(!a)throw new Error("Invalid transaction bundle, expected valid data");if(t.transactions[0].to!==t.entrypoint)throw new Error("Invalid transaction bundle, expected to be sent to entrypoint");if(t.transactions[0].delegateCall)throw new Error("Invalid transaction bundle, expected not to be a delegateCall");if(!t.transactions[0].revertOnError)throw new Error("Invalid transaction bundle, expected revertOnError");if(BigInt((e=(r=t.transactions[0])==null?void 0:r.value)!=null?e:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");if(BigInt((n=(s=t.transactions[0])==null?void 0:s.gasLimit)!=null?n:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");return{address:t.entrypoint,newImageHash:a[0],kind:void 0}}},toJSON:function(t){return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),checkpoint:BigInt(t.checkpoint).toString(),tree:jh(t.tree)})},fromJSON:function(t){const e=JSON.parse(t);return{version:e.version,threshold:BigInt(e.threshold),checkpoint:BigInt(e.checkpoint),tree:Fh(e.tree)}},editConfig:function(t,e){var r,n;const s=Bu(t.tree);if(e.add)for(const i of e.add)s.find(o=>Kr(o)&&o.address===i.address)||s.push({address:i.address,weight:i.weight});if(e.remove)for(const i of e.remove){const o=s.findIndex(a=>Kr(a)&&a.address===i);o>=0&&s.splice(o,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,checkpoint:(n=e.checkpoint)!=null?n:t.checkpoint,tree:I5(s)}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Nh(t,r,[],0);if(a>=BigInt(t.threshold))return o}const n=M2(t.tree);for(const{address:s}of n.sort(({weight:i},{weight:o})=>i-o)){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Nh(t,r,[],0);if(a>=BigInt(t.threshold))return o}return Nh(t,r,[],0).encoded}};var bce=Object.freeze({__proto__:null,isSignerLeaf:Kr,isSubdigestLeaf:mo,topologyToJSON:jh,topologyFromJSON:Fh,isNestedLeaf:xo,isNodeLeaf:bo,isLeaf:k5,isNode:js,isTopology:gce,encodeSignerLeaf:yD,decodeSignerLeaf:gD,isEncodedSignerLeaf:vD,hashNode:Zn,leftFace:vce,isWalletConfig:mce,imageHash:S5,isSimpleNestedMember:mD,topologyToMembers:Bu,hasUnknownNodes:_2,toSimpleWalletConfig:xce,legacyTopologyBuilder:A5,merkleTopologyBuilder:T5,optimized2SignersTopologyBuilder:I5,toWalletConfig:bD,hasSubdigest:Ag,signersOf:M2,isComplete:Tg,ConfigCoder:tm}),wce=Object.freeze({__proto__:null});const Ece={config:tm,signature:em},wD=2,ED={version:wD,factory:"0xFaA5c0b14d1bED5C888Ca655B9a8A5911F78eF4A",guestModule:"0xfea230Ee243f88BC698dD8f1aE93F8301B6cdfaE",mainModule:"0xfBf8f1A5E00034762D928f46d438B947f5d4065d",mainModuleUpgradable:"0x4222dcA3974E39A8b41c411FeDDE9b09Ae14b911",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Ne=Object.freeze({__proto__:null,config:bce,signature:yce,context:wce,chained:pce,coders:Ece,version:wD,DeployedWalletContext:ED}),Cce=Object.freeze({__proto__:null});function D2(t,e){const r=Me(Le(["bytes","bytes32"],[t.walletCreationCode,ss(t.mainModule,32)])),n=Me(Le(["bytes1","address","bytes32","bytes32"],["0xff",t.factory,e,r]));return Ae(at(n,12))}async function kce(t,e,r,n,s,i){return(await Promise.all(MD.map(async a=>{try{const c=a.signature.SignatureCoder.decode(z(r)),l=await a.signature.SignatureCoder.recover(c,{address:t,digest:z(e),chainId:n},s),u=a.config.ConfigCoder.imageHashOf(l.config);if(D2(i[a.version],u).toLowerCase()===t.toLowerCase())return!0;const d=await a.signature.SignatureCoder.recover(c,{address:t,digest:z(e),chainId:n},s),h=a.config.ConfigCoder.imageHashOf(d.config);return D2(i[a.version],h).toLowerCase()===t.toLowerCase()}catch{}return!1}))).some(a=>a)}function Sce(t){const e=Object.keys(t).length;for(let r=1;r<=e;r++){const n=t[r];if(!n||n.version!==r)return!1}return!0}function Ace(t){const e=Object.keys(t).length;return t[e]}const Tce={1:aD,2:ED};var Ice=Object.freeze({__proto__:null,addressOf:D2,isValidCounterfactual:kce,isValidVersionedContext:Sce,latestContext:Ace,defaultContexts:Tce});const rm=`tuple( + bool delegateCall, + bool revertOnError, + uint256 gasLimit, + address target, + uint256 value, + bytes data +)[]`;function Pce(t,e,r,n){return gr({},t,{chainId:r,intent:{id:n,wallet:e}})}function Oce(t){return Me(qt.defaultAbiCoder().encode(["address","uint256","bytes32"],[t.intent.wallet,t.chainId,t.intent.id]))}function Rce(t){const e=qt.defaultAbiCoder().decode(["uint256",rm],t);if(e.length!==2||!e[0]||!e[1])throw new Error("Invalid meta transaction data");return[e[0],e[1]]}function CD(t,e){return qt.defaultAbiCoder().encode(["uint256",rm],[t,_0(e)])}function kD(t,e){return Me(CD(t,e))}function Nce(t,e,r,n){return I1({address:t,chainId:e,digest:kD(r,n)})}function _ce(t,e,r){return I1({address:t,chainId:e,digest:Me(qt.defaultAbiCoder().encode(["string",rm],["guest:",_0(r)]))})}function SD(t,e){return e.map(r=>P5(t,r))}function P5(t,e){if(e.to&&e.to!==xi)return{nonce:Uh(e.nonce)?void 0:BigInt(e.nonce),transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Uh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:e.to,value:BigInt(e.value||0),data:e.data||"0x"}};{const r=new ut(Ht.mainModule.abi),n=r.encodeFunctionData(r.getFunction("createContract"),[e.data]);return{nonce:typeof e.nonce=="number"?BigInt(e.nonce):void 0,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Uh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:t,value:BigInt(e.value||0),data:n}}}}function nm(t){return t.delegateCall!==void 0||t.revertOnError!==void 0}function AD(t){return t.every(nm)}function _0(t){return t.map(e=>{var r;return{delegateCall:e.delegateCall===!0,revertOnError:e.revertOnError===!0,gasLimit:Uh(e.gasLimit)?0n:BigInt(e.gasLimit),target:(r=e.to)!=null?r:xi,value:Uh(e.value)?0n:e.value,data:e.data||"0x"}})}function Mce(t){return t.map(e=>({delegateCall:e.delegateCall,revertOnError:e.revertOnError,gasLimit:e.gasLimit,to:e.target,value:e.value,data:e.data}))}function Dce(t,e){const r=BigInt(t),n=BigInt(e),s=2n**96n;if(n/s!==0n)throw new Error("Space already encoded");return n+r*s}function Bce(t){const e=BigInt(t),r=2n**96n;return[e/r,e%r]}function Lce(t,e){return Array.isArray(e)?AD(e)?e:SD(t,e).map(n=>n.transaction):nm(e)?[e]:[P5(t,e).transaction]}function TD(t){return t!==void 0&&t.entrypoint!==void 0&&t.chainId!==void 0&&t.transactions!==void 0&&t.nonce!==void 0&&t.intent!==void 0&&t.intent.id!==void 0&&t.intent.wallet!==void 0&&Array.isArray(t.transactions)&&t.transactions.reduce((e,r)=>e&&nm(r),!0)}function ID(t){return t!==void 0&&t.signature!==void 0&&t.signature!==""&&TD(t)}function jce(t){const e=new ut(Ht.mainModule.abi);return e.encodeFunctionData(e.getFunction("execute"),ID(t)?[_0(t.transactions),t.nonce,t.signature]:[_0(t.transactions),0,new Uint8Array([])])}const PD="0x61c2926c",OD=`tuple( + bool delegateCall, + bool revertOnError, + uint256 gasLimit, + address target, + uint256 value, + bytes data +)[]`,B2=(t,e)=>{const r=[],n=new ut(Ht.mainModule.abi);for(const s of e){const i=Q(s.data||"0x");if(s.to===t&&z(i.slice(0,4))===PD){const o=i.slice(4),a=qt.defaultAbiCoder().decode([OD],o)[0];r.push(...B2(s.to,a.map(c=>gr({},c,{to:c.target}))))}else try{const o=n.decodeFunctionData("execute",i)[0],a=B2(t,o.map(c=>gr({},c.toObject(),{to:c.target})));r.push(...a)}catch{r.push(s)}}return r},Uh=t=>t==null;var Fce=Object.freeze({__proto__:null,MetaTransactionsType:rm,intendTransactionBundle:Pce,intendedTransactionID:Oce,unpackMetaTransactionsData:Rce,packMetaTransactionsData:CD,digestOfTransactions:kD,subdigestOfTransactions:Nce,subdigestOfGuestModuleTransactions:_ce,toSequenceTransactions:SD,toSequenceTransaction:P5,isSequenceTransaction:nm,hasSequenceTransactions:AD,sequenceTxAbiEncode:_0,fromTxAbiEncode:Mce,encodeNonce:Dce,decodeNonce:Bce,fromTransactionish:Lce,isTransactionBundle:TD,isSignedTransactionBundle:ID,encodeBundleExecData:jce,selfExecuteSelector:PD,selfExecuteAbi:OD,unwind:B2});const RD="0x608060405234801561001057600080fd5b5060405161124a38038061124a83398101604081905261002f91610124565b600060405161003d906100dd565b604051809103906000f080158015610059573d6000803e3d6000fd5b5090506000816001600160a01b0316638f0684308686866040518463ffffffff1660e01b815260040161008e939291906101fb565b6020604051808303816000875af11580156100ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d19190610244565b9050806000526001601ff35b610fdc8061026e83390190565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561011b578181015183820152602001610103565b50506000910152565b60008060006060848603121561013957600080fd5b83516001600160a01b038116811461015057600080fd5b6020850151604086015191945092506001600160401b038082111561017457600080fd5b818601915086601f83011261018857600080fd5b81518181111561019a5761019a6100ea565b604051601f8201601f19908116603f011681019083821181831017156101c2576101c26100ea565b816040528281528960208487010111156101db57600080fd5b6101ec836020830160208801610100565b80955050505050509250925092565b60018060a01b0384168152826020820152606060408201526000825180606084015261022e816080850160208701610100565b601f01601f191691909101608001949350505050565b60006020828403121561025657600080fd5b8151801515811461026657600080fd5b939250505056fe608060405234801561001057600080fd5b50610fbc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806376be4cea1161005057806376be4cea146100a65780638f068430146100b957806398ef1ed8146100cc57600080fd5b80631c6453271461006c5780633d787b6314610093575b600080fd5b61007f61007a366004610ad4565b6100df565b604051901515815260200160405180910390f35b61007f6100a1366004610ad4565b61023d565b61007f6100b4366004610b3e565b61031e565b61007f6100c7366004610ad4565b6108e1565b61007f6100da366004610ad4565b61096e565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061012890889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610181575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261017e91810190610c45565b60015b610232573d8080156101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b508051600181900361022757816000815181106101d3576101d3610c69565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250610235915050565b600092505050610235565b90505b949350505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906102879088908890889088906001908990600401610bc3565b6020604051808303816000875af19250505080156102e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102dd91810190610c45565b60015b610232573d80801561030e576040519150601f19603f3d011682016040523d82523d6000602084013e610313565b606091505b506000915050610235565b600073ffffffffffffffffffffffffffffffffffffffff87163b6060827f64926492649264926492649264926492649264926492649264926492649264928888610369602082610c98565b610375928b9290610cd8565b61037e91610d02565b1490508015610484576000606089828a610399602082610c98565b926103a693929190610cd8565b8101906103b39190610e18565b955090925090508415806103c45750865b1561047d576000808373ffffffffffffffffffffffffffffffffffffffff16836040516103f19190610eb2565b6000604051808303816000865af19150503d806000811461042e576040519150601f19603f3d011682016040523d82523d6000602084013e610433565b606091505b50915091508161047a57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b60405180910390fd5b50505b50506104be565b87878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806104ca5750600083115b156106bb576040517f1626ba7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b1690631626ba7e90610523908c908690600401610f2b565b602060405180830381865afa92505050801561057a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261057791810190610f44565b60015b61060f573d8080156105a8576040519150601f19603f3d011682016040523d82523d6000602084013e6105ad565b606091505b50851580156105bc5750600084115b156105db576105d08b8b8b8b8b600161031e565b9450505050506108d7565b806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f1626ba7e000000000000000000000000000000000000000000000000000000001480158161065f575086155b801561066b5750600085115b1561068b5761067f8c8c8c8c8c600161031e565b955050505050506108d7565b841580156106965750825b80156106a0575087155b156106af57806000526001601ffd5b94506108d79350505050565b6041871461074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f5369676e617475726556616c696461746f72237265636f7665725369676e657260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610471565b600061075a6020828a8c610cd8565b61076391610d02565b90506000610775604060208b8d610cd8565b61077e91610d02565b905060008a8a604081811061079557610795610c69565b919091013560f81c915050601b81148015906107b557508060ff16601c14155b15610842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5369676e617475726556616c696461746f723a20696e76616c6964207369676e60448201527f617475726520762076616c7565000000000000000000000000000000000000006064820152608401610471565b6040805160008152602081018083528e905260ff831691810191909152606081018490526080810183905273ffffffffffffffffffffffffffffffffffffffff8e169060019060a0016020604051602081039080840390855afa1580156108ad573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161496505050505050505b9695505050505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061092b9088908890889088906001908990600401610bc3565b6020604051808303816000875af115801561094a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102329190610c45565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906109b790889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610a10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610a0d91810190610c45565b60015b610232573d808015610a3e576040519150601f19603f3d011682016040523d82523d6000602084013e610a43565b606091505b5080516001819003610a6257816000815181106101d3576101d3610c69565b8082fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a8857600080fd5b50565b60008083601f840112610a9d57600080fd5b50813567ffffffffffffffff811115610ab557600080fd5b602083019150836020828501011115610acd57600080fd5b9250929050565b60008060008060608587031215610aea57600080fd5b8435610af581610a66565b935060208501359250604085013567ffffffffffffffff811115610b1857600080fd5b610b2487828801610a8b565b95989497509550505050565b8015158114610a8857600080fd5b60008060008060008060a08789031215610b5757600080fd5b8635610b6281610a66565b955060208701359450604087013567ffffffffffffffff811115610b8557600080fd5b610b9189828a01610a8b565b9095509350506060870135610ba581610b30565b91506080870135610bb581610b30565b809150509295509295509295565b73ffffffffffffffffffffffffffffffffffffffff8716815285602082015260a060408201528360a0820152838560c0830137600060c085830181019190915292151560608201529015156080820152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101019392505050565b600060208284031215610c5757600080fd5b8151610c6281610b30565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81810381811115610cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b60008085851115610ce857600080fd5b83861115610cf557600080fd5b5050820193919092039150565b80356020831015610cd2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d7e57600080fd5b813567ffffffffffffffff80821115610d9957610d99610d3e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610ddf57610ddf610d3e565b81604052838152866020858801011115610df857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610e2d57600080fd5b8335610e3881610a66565b9250602084013567ffffffffffffffff80821115610e5557600080fd5b610e6187838801610d6d565b93506040860135915080821115610e7757600080fd5b50610e8486828701610d6d565b9150509250925092565b60005b83811015610ea9578181015183820152602001610e91565b50506000910152565b60008251610ec4818460208701610e8e565b9190910192915050565b60008151808452610ee6816020860160208601610e8e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c626020830184610ece565b8281526040602082015260006102356040830184610ece565b600060208284031215610f5657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c6257600080fdfea26469706673582212201a72aed4b15ffb05b6502997a9bb655992e06590bd26b336dfbb153d7ff6f34b64736f6c63430008120033",Uce="0x6492649264926492649264926492649264926492649264926492649264926492";async function ND(t,e,r,n){try{return await t.call({data:Fe([RD,qt.defaultAbiCoder().encode(["address","bytes32","bytes"],[e,r,n])])})==="0x01"}catch{return!1}}var $ce=Object.freeze({__proto__:null,EIP_6492_OFFCHAIN_DEPLOY_CODE:RD,EIP_6492_SUFFIX:Uce,validateEIP6492Offchain:ND});class Wce{constructor(e){this.provider=e,this.isDeployedCache=new Set}module(e){return new dn(e,[...Ht.mainModuleUpgradable.abi,...Ht.mainModule.abi,...Ht.erc1271.abi],this.provider)}async isDeployed(e){if(this.isDeployedCache.has(e))return!0;const n=(await this.provider.getCode(e).then(s=>Q(s))).length!==0;return n&&this.isDeployedCache.add(e),n}async implementation(e){const r=qt.defaultAbiCoder().encode(["address"],[e]),n=await this.provider.getStorage(e,r).then(s=>Q(s));if(n.length===20)return Ae(z(n));if(n.length===32)return qt.defaultAbiCoder().decode(["address"],n)[0]}async imageHash(e){try{return await this.module(e).imageHash()}catch{}}async nonce(e,r=0){try{return await this.module(e).readNonce(r)}catch(n){if(!await this.isDeployed(e))return 0;throw n}}async isValidSignature(e,r,n){return ND(this.provider,e,r,n)}}var Vce=Object.freeze({__proto__:null,OnChainReader:Wce});function zce(t){return t&&t.address&&t.digest&&t.chainId!==void 0&&t.config}var de=Object.freeze({__proto__:null,config:Cce,signature:nce,context:Ice,signer:lce,EIP1271:oce,transaction:Fce,reader:Vce,EIP6492:$ce,isWalletSignRequestMetadata:zce});const L2=[{config:m5,signature:v5},{config:tm,signature:em}];function _D(t){const e=t-1;if(e<0||e>=L2.length)throw new Error(`No coder for version: ${t}`);return L2[e]}function Hce(t){return _D(t)}var Zt=Object.freeze({__proto__:null,ALL_CODERS:L2,coderFor:_D,genericCoderFor:Hce});const Wr="2.1.4",MD=[Hi,Ne],Gce=Object.freeze(Object.defineProperty({__proto__:null,VERSION:Wr,allVersions:MD,commons:de,universal:Zt,v1:Hi,v2:Ne},Symbol.toStringTag,{value:"Module"}));function qce(t,e,r){for(let n=0;ne.version)&&(e=r);if(e===void 0)throw new Error("No migrations");return e}async getAllMigratePresignedTransaction(e){const{address:r,fromImageHash:n,fromVersion:s,chainId:i}=e;let o=n,a=s;const c=Object.values(this.contexts),l=[];for(let u=1;uQ(i).length===0))return C8;if(!n.provider)throw new Error("signer.provider is not set, but is required");return n.provider.estimateGas({from:e,to:s.to,data:s.data,value:s.value})}))).map(s=>({executed:!0,succeeded:!0,gasUsed:Number(s),gasLimit:Number(s)}))}async getNonce(e,r,n){if(!this.provider)throw new Error("provider is not set");if(await this.provider.getCode(e)==="0x")return 0;r===void 0&&(r=0);const i=await new dn(e,Ht.mainModule.abi,this.provider).readNonce(r,{blockTag:n});return de.transaction.encodeNonce(r,i)}async wait(e,r,n=this.waitPollRate,s=5){var i=this;typeof e!="string"&&(e=de.transaction.intendedTransactionID(e));let o=!1;const a=async function(u,f){let d=0;for(;!o;){try{return await u()}catch(h){if(d++,s!==void 0&&d>=s)throw Te.error(`giving up after ${d} failed attempts${f?`: ${f}`:""}`,h),h;Te.warn(`attempt #${d} failed${f?`: ${f}`:""}`,h)}n>0&&await new Promise(h=>setTimeout(h,n))}throw new Error(`timed out after ${d} failed attempts${f?`: ${f}`:""}`)},c=async function(){let u=i.fromBlockLog;if(u<0&&(u=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number")+u),typeof e!="string")throw new Error("impossible");const f=e.replace("0x","");for(;!o;){const d=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number"),h=await a(()=>i.provider.getLogs({fromBlock:Math.max(0,u-i.deltaBlocksLog),toBlock:d,topics:["0x1f180c27086c7a39ea2a7b25239d1ab92348f07ca7bb59d1438fcf527568f881"]}),`unable to get NonceChange logs for blocks ${Math.max(0,u-i.deltaBlocksLog)} to ${d}`);u=d;const p=(await Promise.all(h.map(b=>a(()=>i.provider.getTransactionReceipt(b.transactionHash),`unable to get receipt for transaction ${b.transactionHash}`)))).find(b=>b==null?void 0:b.logs.find(g=>g.topics.length===0&&g.data.replace("0x","")===f||g.topics.length===1&&g.topics[0]==="0x3dbd1590ea96dd3253a91f24e64e3a502e1225d602a5731357bc12643070ccd7"&&g.data.length>=64&&g.data.replace("0x","").startsWith(f)));if(p){const b=await a(()=>i.provider.getTransaction(p.hash),`unable to get transaction ${p.hash}`);if(!b)throw new Error(`Transaction response not found for ${e}`);const g=b;return g.receipt=p,g}o||await new Promise(b=>setTimeout(b,n))}throw new Error(`Timeout waiting for transaction receipt ${e}`)};return r!==void 0?Promise.race([c(),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):c()}}function ele(t){return t&&typeof t=="object"&&typeof t.getNetwork=="function"&&typeof t.getBlockNumber=="function"}function tle(t){return typeof t=="object"&&W2(t.signer)}class rle extends FD{constructor(e){if(super(W2(e)?{provider:e.provider}:no({},e,{provider:e.signer.provider})),this.signer=void 0,this.txnOptions=void 0,this.signer=W2(e)?e:e.signer,!this.signer.provider)throw new Error("Signer must have a provider")}async getFeeOptions(e,...r){return{options:[]}}async getFeeOptionsRaw(e,r,n){return{options:[]}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}setTransactionOptions(e){this.txnOptions=e}async relay(e,r,n=!0){r!==void 0&&Te.warn("LocalRelayer doesn't accept fee quotes");const s=de.transaction.encodeBundleExecData(e),i=this.signer.sendTransaction(no({to:e.entrypoint,data:s},this.txnOptions,{gasLimit:9e6}));if(n){const o=await i;return o.receipt=await o.wait(),o}else return i}}function W2(t){return t&&typeof t=="object"&&typeof t.provider=="object"&&typeof t.getAddress=="function"&&typeof t.connect=="function"}const nle="v1",sle="v0.4.1",ile="1e27d0fd295aa5897878939595ef0c6adc54b1a3";let la=function(t){return t.UNKNOWN="UNKNOWN",t.DROPPED="DROPPED",t.QUEUED="QUEUED",t.SENT="SENT",t.SUCCEEDED="SUCCEEDED",t.PARTIALLY_FAILED="PARTIALLY_FAILED",t.FAILED="FAILED",t}({}),ole=function(t){return t.SEND="SEND",t.RECEIVE="RECEIVE",t.BRIDGE_DEPOSIT="BRIDGE_DEPOSIT",t.BRIDGE_WITHDRAW="BRIDGE_WITHDRAW",t.BURN="BURN",t.UNKNOWN="UNKNOWN",t}({}),ale=function(t){return t.UNKNOWN="UNKNOWN",t.ERC20_TOKEN="ERC20_TOKEN",t.ERC1155_TOKEN="ERC1155_TOKEN",t}({}),cle=function(t){return t.DESC="DESC",t.ASC="ASC",t}({});class UD{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Relayer/",this.ping=(n,s)=>this.fetch(this.url("Ping"),Ye({},n,s)).then(i=>Xe(i).then(o=>({status:o.status})),i=>{throw Je.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Ye({},n,s)).then(i=>Xe(i).then(o=>({version:o.version})),i=>{throw Je.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Ye({},n,s)).then(i=>Xe(i).then(o=>({status:o.status})),i=>{throw Je.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Ye({},n,s)).then(i=>Xe(i).then(o=>({data:o.data})),i=>{throw Je.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),Ye({},n,s)).then(i=>Xe(i).then(o=>({chainID:o.chainID})),i=>{throw Je.new({cause:`fetch(): ${i.message||""}`})}),this.sendMetaTxn=(n,s,i)=>this.fetch(this.url("SendMetaTxn"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status,txnHash:a.txnHash})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNonce=(n,s,i)=>this.fetch(this.url("GetMetaTxnNonce"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({nonce:a.nonce})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnReceipt=(n,s,i)=>this.fetch(this.url("GetMetaTxnReceipt"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({receipt:a.receipt})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.simulate=(n,s,i)=>this.fetch(this.url("Simulate"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({results:a.results})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.updateMetaTxnGasLimits=(n,s,i)=>this.fetch(this.url("UpdateMetaTxnGasLimits"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({payload:a.payload})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.feeTokens=(n,s)=>this.fetch(this.url("FeeTokens"),Ye({},n,s)).then(i=>Xe(i).then(o=>({isFeeRequired:o.isFeeRequired,tokens:o.tokens})),i=>{throw Je.new({cause:`fetch(): ${i.message||""}`})}),this.feeOptions=(n,s,i)=>this.fetch(this.url("FeeOptions"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({options:a.options,sponsored:a.sponsored,quote:a.quote})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNetworkFeeOptions=(n,s,i)=>this.fetch(this.url("GetMetaTxnNetworkFeeOptions"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({options:a.options})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTransactions=(n,s,i)=>this.fetch(this.url("GetMetaTransactions"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.sentTransactions=(n,s,i)=>this.fetch(this.url("SentTransactions"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.pendingTransactions=(n,s,i)=>this.fetch(this.url("PendingTransactions"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTank=(n,s,i)=>this.fetch(this.url("GetGasTank"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({gasTank:a.gasTank})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.addGasTank=(n,s,i)=>this.fetch(this.url("AddGasTank"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasTank=(n,s,i)=>this.fetch(this.url("UpdateGasTank"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getGasSponsor=(n,s,i)=>this.fetch(this.url("GetGasSponsor"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({gasSponsor:a.gasSponsor})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.addressGasSponsors=(n,s,i)=>this.fetch(this.url("AddressGasSponsors"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.listGasSponsors=(n,s,i)=>this.fetch(this.url("ListGasSponsors"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.addGasSponsor=(n,s,i)=>this.fetch(this.url("AddGasSponsor"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasSponsor=(n,s,i)=>this.fetch(this.url("UpdateGasSponsor"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.removeGasSponsor=(n,s,i)=>this.fetch(this.url("RemoveGasSponsor"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.reportGasSponsorUsage=(n,s,i)=>this.fetch(this.url("ReportGasSponsorUsage"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({gasSponsorUsage:a.gasSponsorUsage})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.nextGasTankBalanceAdjustmentNonce=(n,s,i)=>this.fetch(this.url("NextGasTankBalanceAdjustmentNonce"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({nonce:a.nonce})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.adjustGasTankBalance=(n,s,i)=>this.fetch(this.url("AdjustGasTankBalance"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({status:a.status,adjustment:a.adjustment})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTankBalanceAdjustment=(n,s,i)=>this.fetch(this.url("GetGasTankBalanceAdjustment"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({adjustment:a.adjustment})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.listGasTankBalanceAdjustments=(n,s,i)=>this.fetch(this.url("ListGasTankBalanceAdjustments"),Ye(n,s,i)).then(o=>Xe(o).then(a=>({page:a.page,adjustments:a.adjustments})),o=>{throw Je.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Ye=(t={},e={},r=null)=>({method:"POST",headers:no({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Xe=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),O5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(ule[n]||Bt).new(r)}return r});let Bt=class $D extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,$D.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},WD=class VD extends Bt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VD.prototype)}},Je=class zD extends Bt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zD.prototype)}},HD=class GD extends Bt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,GD.prototype)}},qD=class KD extends Bt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,KD.prototype)}},QD=class JD extends Bt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,JD.prototype)}},O5=class YD extends Bt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YD.prototype)}},XD=class ZD extends Bt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZD.prototype)}},eB=class tB extends Bt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tB.prototype)}},rB=class nB extends Bt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nB.prototype)}},sB=class iB extends Bt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iB.prototype)}},oB=class aB extends Bt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aB.prototype)}},cB=class lB extends Bt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lB.prototype)}},uB=class fB extends Bt{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fB.prototype)}},dB=class hB extends Bt{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hB.prototype)}},pB=class yB extends Bt{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yB.prototype)}},gB=class vB extends Bt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vB.prototype)}},mB=class xB extends Bt{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xB.prototype)}},bB=class wB extends Bt{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wB.prototype)}},EB=class CB extends Bt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,CB.prototype)}},lle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.MethodNotFound="MethodNotFound",t.Aborted="Aborted",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const ule={0:WD,[-1]:Je,[-2]:HD,[-3]:qD,[-4]:QD,[-5]:O5,[-6]:XD,[-7]:eB,[-8]:rB,[-9]:sB,[-10]:oB,1e3:cB,1001:uB,1003:dB,1005:pB,2001:gB,2002:mB,2003:bB,3e3:EB};var ad=Object.freeze({__proto__:null,WebRPCVersion:nle,WebRPCSchemaVersion:sle,WebRPCSchemaHash:ile,ETHTxnStatus:la,TransferType:ole,FeeTokenType:ale,SortOrder:cle,Relayer:UD,WebrpcError:Bt,WebrpcEndpointError:WD,WebrpcRequestFailedError:Je,WebrpcBadRouteError:HD,WebrpcBadMethodError:qD,WebrpcBadRequestError:QD,WebrpcBadResponseError:O5,WebrpcServerPanicError:XD,WebrpcInternalErrorError:eB,WebrpcClientDisconnectedError:rB,WebrpcStreamLostError:sB,WebrpcStreamFinishedError:oB,UnauthorizedError:cB,PermissionDeniedError:uB,MethodNotFoundError:dB,AbortedError:pB,InvalidArgumentError:gB,UnavailableError:mB,QueryFailedError:bB,NotFoundError:EB,errors:lle});const fle=[la.DROPPED,la.SUCCEEDED,la.PARTIALLY_FAILED,la.FAILED],dle=[la.DROPPED,la.PARTIALLY_FAILED,la.FAILED];function hle(t){return t.url!==void 0&&typeof t.url=="string"&&t.provider!==void 0&&SB(t.provider)}const ple=globalThis.fetch;class kB{constructor(e){if(this.options=e,this.service=void 0,this.provider=void 0,this._fetch=(r,n)=>{const s={},{jwtAuth:i,projectAccessKey:o}=this.options;return i&&i.length>0&&(s.Authorization=`BEARER ${i}`),o&&o.length>0&&(s["X-Access-Key"]=o),n.headers=no({},s,n.headers),ple(r,n)},this.service=new UD(e.url,this._fetch),SB(e.provider))this.provider=e.provider;else{const{jwtAuth:r,projectAccessKey:n}=this.options,s=N0(e.provider.url,n,r);this.provider=new cr(s,void 0,{staticNetwork:!0})}}async waitReceipt(e,r=1e3,n=5,s){typeof e!="string"&&(e=de.transaction.intendedTransactionID(e)),Te.info(`[rpc-relayer/waitReceipt] waiting for ${e}`);let i=0;for(;s===void 0||!s();){try{const{receipt:o}=await this.service.getMetaTxnReceipt({metaTxID:e});if(o&&o.txnReceipt&&o.txnReceipt!=="null"&&fle.includes(o.status))return{receipt:o}}catch(o){if(i++,i===n)throw o}(s===void 0||!s())&&await new Promise(o=>setTimeout(o,r))}throw new Error(`Cancelled waiting for transaction receipt ${e}`)}async simulate(e,...r){const s=qt.defaultAbiCoder().encode([de.transaction.MetaTransactionsType],[de.transaction.sequenceTxAbiEncode(r)]);return(await this.service.simulate({wallet:e,transactions:s})).results}async getFeeOptions(e,...r){const n=await this.service.feeTokens();if(n.isFeeRequired){const s=n.tokens.map(c=>c.symbol).join(", ");Te.info(`[rpc-relayer/getFeeOptions] relayer fees are required, accepted tokens are ${s}`);const i=await this.getNonce(e);if(!this.provider)throw Te.warn("[rpc-relayer/getFeeOptions] provider not set, needed for stub signature"),new Error("provider is not set");const{options:o,quote:a}=await this.service.feeOptions({wallet:e,to:e,data:de.transaction.encodeBundleExecData({entrypoint:e,transactions:r,nonce:i})});return Te.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(o,Ts)}`),{options:o,quote:{_tag:"FeeQuote",_quote:a}}}else return Te.info("[rpc-relayer/getFeeOptions] relayer fees are not required"),{options:[]}}async getFeeOptionsRaw(e,r,n){const{options:s,quote:i}=await this.service.feeOptions({wallet:e,to:e,data:z(r),simulate:n==null?void 0:n.simulate},no({},n!=null&&n.projectAccessKey?{"X-Access-Key":n.projectAccessKey}:void 0));return{options:s,quote:{_tag:"FeeQuote",_quote:i}}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}async getNonce(e,r){Te.info(`[rpc-relayer/getNonce] get nonce for wallet ${e} space: ${r}`);const n=r!==void 0?Zc(BigInt(r)):void 0,s=await this.service.getMetaTxnNonce({walletContractAddress:e,space:n}),i=BigInt(s.nonce),[o,a]=de.transaction.decodeNonce(i);return Te.info(`[rpc-relayer/getNonce] got next nonce for wallet ${e} ${a} space: ${o}`),i}async relay(e,r,n=!0,s){var i=this;Te.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(e,Ts)} with quote ${JSON.stringify(r,Ts)}`);let o;if(r!==void 0&&(typeof r._quote=="string"?o=r._quote:Te.warn("[rpc-relayer/relay] ignoring invalid fee quote")),!this.provider)throw Te.warn("[rpc-relayer/relay] provider not set, failed relay"),new Error("provider is not set");const a=de.transaction.encodeBundleExecData(e),c=await this.service.sendMetaTxn({call:{walletAddress:e.intent.wallet,contract:e.entrypoint,input:a},quote:o},no({},s?{"X-Access-Key":s}:void 0));if(Te.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(c,Ts)}`),n)return this.wait(e.intent.id);{const l={hash:e.intent.id,confirmations:0,from:e.intent.wallet,wait:f=>Promise.reject(new Error("impossible"))},u=async function(d){var h;if(!i.provider)throw new Error("cannot wait for receipt, relayer has no provider set");const y=await i.wait(e.intent.id),p=(h=y.receipt)==null?void 0:h.transactionHash;if(!p)throw new Error("cannot wait for receipt, unknown native transaction hash");return Object.assign(l,y),i.provider.waitForTransaction(p,d)};return l.wait=u,l}}async wait(e,r,n=1e3,s=5){var i=this;let o=!1;const{receipt:a}=await(r!==void 0?Promise.race([this.waitReceipt(e,n,s,()=>o),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):this.waitReceipt(e,n,s));if(!a.txnReceipt||dle.includes(a.status))throw new yle(a);const c=JSON.parse(a.txnReceipt);return{blockHash:c.blockHash,blockNumber:Number(c.blockNumber),confirmations:1,from:typeof e=="string"?void 0:e.intent.wallet,hash:c.transactionHash,raw:a.txnReceipt,receipt:c,wait:async function(l){return i.provider.waitForTransaction(c.transactionHash,l)}}}}class yle{constructor(e){this.receipt=e}}function SB(t){return t&&typeof t=="object"&&typeof t.getNetwork=="function"&&typeof t.getBlockNumber=="function"}function AB(t){return typeof t=="object"&&typeof t.simulate=="function"&&typeof t.getFeeOptions=="function"&&typeof t.gasRefundOptions=="function"&&typeof t.getNonce=="function"&&typeof t.relay=="function"&&typeof t.wait=="function"}const gle=Object.freeze(Object.defineProperty({__proto__:null,LocalRelayer:rle,ProviderRelayer:FD,ProviderRelayerDefaults:jD,RpcRelayer:kB,RpcRelayerProto:ad,isLocalRelayerOptions:tle,isProviderRelayerOptions:Zce,isRelayer:AB,isRpcRelayerOptions:hle,proto:ad},Symbol.toStringTag,{value:"Module"}));function TB(t){return t.getAddress!==void 0&&t.buildDeployTransaction!==void 0&&t.predecorateSignedTransactions!==void 0&&t.decorateTransactions!==void 0&&t.sign!==void 0&&t.notifyStatusChange!==void 0}class IB{constructor(e,r=!0){this.signer=e,this.eoa=r}getAddress(){return this.signer.getAddress()}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}sign(e){return this.signer.signMessage(e)}notifyStatusChange(e,r,n){}suffix(){return new Uint8Array([2])}}var V2=Object.freeze({__proto__:null,isSapientSigner:TB,SignerWrapper:IB});let ua=function(t){return t[t.INITIAL=0]="INITIAL",t[t.SIGNING=1]="SIGNING",t[t.SIGNED=2]="SIGNED",t[t.ERROR=3]="ERROR",t}({});function PB(t){return t===void 0||t.state===ua.INITIAL||t.state===ua.SIGNING}class sm{constructor(e,r=sm.randomTag()){this.tag=r,this.observers=[],this.signers=[],this.count=0,this.setSigners(e)}static randomTag(){return`default-${z(Nr(8)).slice(2)}`}pullId(){return`${this.tag}-${this.count++}`}setSigners(e){this.signers=e.map(r=>TB(r)?r:new IB(r))}async getSigners(){return Promise.all(this.signers.map(async function(e){return e.getAddress()}))}subscribe(e){return this.observers.push(e),()=>{this.observers=this.observers.filter(r=>r!==e)}}async notifyObservers(e,r,n){await Promise.all([...this.signers.map(async function(s){return s.notifyStatusChange(e,r,n)}),...this.observers.map(async function(s){return s(r,n)})])}async buildDeployTransaction(e){let r;for(const n of this.signers){const s=await n.buildDeployTransaction(e);r===void 0?r=s:s!=null&&s.transactions&&(r.transactions=s.transactions.concat(r.transactions))}return r}async predecorateSignedTransactions(e){const r=[];for(const n of this.signers)r.push(...await n.predecorateSignedTransactions(e??{}));return r}async decorateTransactions(e,r){for(const n of this.signers)e=await n.decorateTransactions(e,r??{});return e}signMessage(e){var r=this;const n=this.pullId();return new Promise(async function(s){const{message:i,metadata:o,callback:a,candidates:c}=e,l={ended:!1,message:i,signers:{}};let u=o??{};const f=p=>{u=p,r.notifyObservers(n,l,u)},d=()=>{try{r.notifyObservers(n,l,u);const p=Object.entries(l.signers).filter(([b,g])=>PB(g));if(a&&a(l,f)||p.length===0){l.ended=!0,s(l),r.notifyObservers(n,l,u);return}}catch(p){console.error("Error while notifying observers",p)}};let h=r.signers;if(c){const p=await Promise.all(r.signers.map(async function(b){return b.getAddress()}));h=r.signers.filter((b,g)=>c.includes(p[g]))}const y=await Promise.allSettled(h.map(async function(p){const b=await p.getAddress();l.signers[b]={state:ua.SIGNING,request:p.sign(i,o??{}).then(g=>{const v=p.suffix();return l.signers[b]={state:ua.SIGNED,signature:g,suffix:v},d(),g}).catch(g=>{throw l.signers[b]={state:ua.ERROR,error:g},d(),g})}}));for(let p=0;pIt(e))):It(t)}const S8=t=>{const e=new Map;for(const r of Object.keys(t.signers)){const n=t.signers[r];if(n.state===ua.SIGNED){const s=Q(n.suffix),i=Le(["bytes","bytes"],[n.signature,s]);e.set(r,{signature:i,isDynamic:s.length!==1||s[0]!==2})}}return e};class Lu extends kd{constructor(e){var r;const n=BigInt(e.chainId);if(n===0n&&!e.coders.signature.supportsNoChainId)throw new Error(`Sequence version ${e.config.version} doesn't support chainId 0`);super((r=e.provider)!=null?r:null),this.context=void 0,this.config=void 0,this.address=void 0,this.chainId=void 0,this.relayer=void 0,this.coders=void 0,this.orchestrator=void 0,this._reader=void 0,this.context=e.context,this.config=e.config,this.orchestrator=e.orchestrator,this.coders=e.coders,this.address=e.address,this.chainId=n,this.relayer=e.relayer,this._reader=e.reader}static newWallet(e){const r=de.context.addressOf(e.context,e.coders.config.imageHashOf(e.config));return new Lu(Do({},e,{address:r}))}reader(){if(this._reader)return this._reader;if(!this.provider)throw new Error("Wallet status provider requires a provider");return new de.reader.OnChainReader(this.provider)}setConfig(e){this.config=e}setOrchestrator(e){this.orchestrator=e}setAddress(e){this.address=e}getSigners(){return this.orchestrator.getSigners()}async getAddress(){return this.address}async decorateTransactions(e){const r=await this.orchestrator.decorateTransactions(e);if(await this.reader().isDeployed(this.address))return r;const n=[{to:r.entrypoint,data:de.transaction.encodeBundleExecData(r),revertOnError:!0}],s=await this.buildDeployTransaction();return s&&n.unshift(...s.transactions),{entrypoint:this.context.guestModule,chainId:this.chainId,intent:r.intent,transactions:n}}async buildDeployTransaction(e){if(e!=null&&e.ignoreDeployed&&await this.reader().isDeployed(this.address))return;const r=this.coders.config.imageHashOf(this.config);if(de.context.addressOf(this.context,r)!==this.address)throw new Error(`First address of config ${r} doesn't match wallet address ${this.address}`);let n;switch(this.chainId){case BigInt(M.SKALE_NEBULA):n=10000000n;break}const s=Lu.buildDeployTransaction(this.context,r,n);if(e!=null&&e.includeChildren){const i=await this.orchestrator.buildDeployTransaction(e);i&&(s.transactions=i.transactions.concat(s.transactions))}return s}async deploy(e){const r=await this.buildDeployTransaction(e);if(r!==void 0){if(!this.relayer)throw new Error("Wallet deploy requires a relayer");return this.relayer.relay(Do({},r,{chainId:this.chainId,intent:{id:z(Nr(32)),wallet:this.address}}))}}static buildDeployTransaction(e,r,n=100000n){const s=new ut(Ht.factory.abi);return{entrypoint:e.guestModule,transactions:[{to:e.factory,data:s.encodeFunctionData(s.getFunction("deploy"),[e.mainModule,r]),gasLimit:n,delegateCall:!1,revertOnError:!0,value:0}]}}async buildUpdateConfigurationTransaction(e){if(this.coders.config.update.isKindUsed){const r=await this.reader().implementation(this.address),n=r&&r===this.context.mainModuleUpgradable;return this.coders.config.update.buildTransaction(this.address,e,this.context,n?"later":"first")}return this.coders.config.update.buildTransaction(this.address,e,this.context)}async getNonce(e=0){const r=await this.reader().nonce(this.address,e);if(r===void 0)throw new Error("Unable to determine nonce");return Number(r)}async signDigest(e,r){const n=O2(this.address,this.chainId,e);if(this.coders.config.hasSubdigest(this.config,n))return this.coders.signature.encodeSigners(this.config,new Map,[n],this.chainId).encoded;const s=Do({},r,{digest:e,chainId:this.chainId,address:this.address,config:this.config}),i=Q(n),o=await this.orchestrator.signMessage({candidates:this.coders.config.signersOf(this.config).map(c=>c.address),message:i,metadata:s,callback:(c,l)=>{const u=S8(c),f=Do({},s,{parts:u});return l(f),this.coders.signature.hasEnoughSigningPower(this.config,u)}}),a=S8(o);return this.coders.signature.encodeSigners(this.config,a,[],this.chainId).encoded}signMessage(e){return this.signDigest(Me(e),{message:e})}signTypedData(e,r,n){const s=Ad({domain:e,types:r,message:n});return this.signDigest(s)}signTransactionBundle(e){if(e.entrypoint!==this.address)throw new Error(`Invalid entrypoint: ${e.entrypoint} !== ${this.address}`);return this.signTransactions(e.transactions,e.nonce)}async fetchNonceOrSpace(e){let r;if(e&&e.space!==void 0)r=BigInt(e.space);else{if(e===void 0)return this.randomNonce();if(e&&e.serial===!0)r=0;else return e}const n=await this.reader().nonce(this.address,r);if(n===void 0)throw new Error("Unable to determine nonce");return de.transaction.encodeNonce(r,n)}randomNonce(){const e=BigInt(z(Nr(12)));return de.transaction.encodeNonce(e,0)}async signTransactions(e,r,n){const s=await k8(e),i=de.transaction.fromTransactionish(this.address,s);i.length===0&&i.push({to:this.address,data:"0x",value:0,gasLimit:0,delegateCall:!1,revertOnError:!0});const o=await this.fetchNonceOrSpace(r),a=de.transaction.digestOfTransactions(o,i),c=Do({digest:a,transactions:i},n),l=await this.signDigest(a,c);return{intent:{id:O2(this.address,this.chainId,a),wallet:this.address},chainId:this.chainId,transactions:i,entrypoint:this.address,nonce:o,signature:l}}async sendSignedTransaction(e,r){if(!this.relayer)throw new Error("Wallet sendTransaction requires a relayer");return this.relayer.relay(e,r)}async sendTransaction(e,r){let n;(r==null?void 0:r.nonce)!==void 0?n=r.nonce:r!=null&&r.serial?n={serial:!0}:n=this.randomNonce();const s=await this.signTransactions(e,n),i=await this.decorateTransactions(s);return this.sendSignedTransaction(i,r==null?void 0:r.quote)}async fillGasLimits(e){const r=await k8(e),n=de.transaction.fromTransactionish(this.address,r),s=this.relayer;if(!s)throw new Error("Wallet fillGasLimits requires a relayer");const i=await s.simulate(this.address,...n);return n.map((o,a)=>{const c=o.gasLimit?Number(o.gasLimit):i[a].gasLimit;return Do({},o,i[a],{gasLimit:c})})}connect(e,r){return new Lu({coders:this.coders,context:this.context,config:this.config,chainId:this.chainId,address:this.address,orchestrator:this.orchestrator,reader:this._reader,provider:e,relayer:r??this.relayer})}signTransaction(e){throw new Error("Method not implemented.")}}function Ks(){return Ks=Object.assign?Object.assign.bind():function(t){for(var e=1;e=BigInt(s.value))return s}else if(s.token.contractAddress&&s.token.type===ad.FeeTokenType.ERC20_TOKEN&&await new dn(s.token.contractAddress,n,this.provider).balanceOf(this.account.address)>=BigInt(s.value))return s;throw new Error("No fee option available - not enough balance")}async sendTransaction(e,r){var n,s,i,o,a;const c=await this.account.prepareTransactions({txs:e,chainId:this.chainId,stubSignatureOverrides:(n=(s=this.options)==null?void 0:s.stubSignatureOverrides)!=null?n:new Map,simulateForFeeOptions:r==null?void 0:r.simulateForFeeOptions}),u=await((i=(o=this.options)==null?void 0:o.selectFee)!=null?i:this.defaultSelectFee.bind(this))(e,c.feeOptions),f=[...c.transactions,...mle(u)];return this.account.sendTransaction(f,this.chainId,c.feeQuote,void 0,void 0,((a=this.options)==null?void 0:a.nonceSpace)!==void 0?{nonceSpace:this.options.nonceSpace}:void 0)}getBalance(e){return this.provider.getBalance(this.account.address,e)}call(e,r){return this.provider.call(Ks({},e,{blockTag:r}))}async resolveName(e){const r=await this.provider.resolveName(e);if(!r)throw new Error(`Could not resolve name ${e}`);return r}connect(e){throw new Error("Method not implemented.")}signTransaction(e){throw new Error("Method not implemented.")}getTransactionCount(e){throw new Error("Method not implemented.")}estimateGas(e){throw new Error("Method not implemented.")}getChainId(){return Promise.resolve(Number(this.chainId))}getGasPrice(){throw new Error("Method not implemented.")}getFeeData(){throw new Error("Method not implemented.")}getNonce(e){throw new Error("Method not implemented.")}populateCall(e){throw new Error("Method not implemented.")}checkTransaction(e){throw new Error("Method not implemented.")}async populateTransaction(e){throw new Error("Method not implemented.")}_checkProvider(e){throw new Error("Method not implemented.")}}class ble{async isDeployed(e){return!1}async implementation(e){}async imageHash(e){}async nonce(e,r){return 0n}async isValidSignature(e,r,n){throw new Error("Method not supported.")}}class Qi{constructor(e){this.address=void 0,this.networks=void 0,this.tracker=void 0,this.contexts=void 0,this.migrator=void 0,this.migrations=void 0,this.orchestrator=void 0,this.jwt=void 0,this.projectAccessKey=void 0,this.address=Ae(e.address),this.contexts=e.contexts,this.tracker=e.tracker,this.networks=e.networks,this.orchestrator=e.orchestrator,this.jwt=e.jwt,this.projectAccessKey=e.projectAccessKey,this.migrations=e.migrations||$2.DefaultMigrations,this.migrator=new U2.Migrator(e.tracker,this.migrations,this.contexts)}getSigner(e,r){return new xle(this,e,r)}static async new(e){var r;const s=new U2.Migrator(e.tracker,(r=e.migrations)!=null?r:$2.DefaultMigrations,e.contexts).lastMigration(),i=s.configCoder,o=i.fromSimple(e.config),a=i.imageHashOf(o),c=e.contexts[s.version],l=de.context.addressOf(c,a);return await e.tracker.saveCounterfactualWallet({config:o,context:Object.values(e.contexts)}),new Qi({address:l,tracker:e.tracker,contexts:e.contexts,networks:e.networks,orchestrator:e.orchestrator,migrations:e.migrations,projectAccessKey:e.projectAccessKey})}getAddress(){return Promise.resolve(this.address)}get version(){return this.migrator.lastMigration().version}get coders(){const e=this.migrator.lastMigration();return{signature:e.signatureCoder,config:e.configCoder}}network(e){const r=BigInt(e),n=this.networks.find(s=>r===BigInt(s.chainId));if(!n)throw new Error(`Network not found for chainId ${e}`);return n}providerFor(e){const r=this.network(e);if(!r.provider&&!r.rpcUrl)throw new Error(`Provider not found for chainId ${e}`);const n=new lt(r.name,r.chainId);return r.provider||new cr(N0(r.rpcUrl,this.projectAccessKey,this.jwt),n,{staticNetwork:n})}reader(e){return BigInt(e)===0n?new ble:new de.reader.OnChainReader(this.providerFor(e))}relayer(e){const r=this.network(e);if(!r.relayer)throw new Error(`Relayer not found for chainId ${e}`);return AB(r.relayer)?r.relayer:new kB(Ks({},r.relayer,this.projectAccessKey?{projectAccessKey:this.projectAccessKey}:{jwtAuth:this.jwt}))}setOrchestrator(e){this.orchestrator=e}setJwt(e){this.jwt=e}contextFor(e){const r=this.contexts[e];if(!r)throw new Error(`Context not found for version ${e}`);return r}walletForStatus(e,r){const n=Zt.coderFor(r.version);return this.walletFor(e,this.contextFor(r.version),r.config,n)}walletFor(e,r,n,s){const i=BigInt(e)===0n;return new Lu({config:n,context:r,chainId:e,coders:s,relayer:i?void 0:this.relayer(e),address:this.address,orchestrator:this.orchestrator,reader:this.reader(e)})}async status(e,r=!1){var n=this;const s=this.reader(e).isDeployed(this.address),i=this.tracker.imageHashOfCounterfactualWallet({wallet:this.address}).then(A=>{if(!A)throw new Error(`Counterfactual imageHash not found for wallet ${this.address}`);return A}),o=i.then(A=>DD.counterfactualVersion(this.address,A.imageHash,Object.values(this.contexts))),a=async function(){if(!await s)return o;const P=await n.reader(e).implementation(n.address);if(!P)throw new Error(`Implementation not found for wallet ${n.address}`);const R=Object.values(n.contexts);for(let N=0;N0?p[p.length-1].nextImageHash:d,g=await this.tracker.configOfImageHash({imageHash:b});if(!g)throw new Error(`Config not found for imageHash ${b}`);const v=await s,m=await i,k=Zt.coderFor(h).config.checkpointOf(g);return{original:Ks({},m,{version:await o}),onChain:{imageHash:f,config:await l,version:u,deployed:v},fullyMigrated:h===this.version,signedMigrations:y,version:h,presignedConfigurations:p,imageHash:b,config:g,checkpoint:k,canOnchainValidate:u===this.version&&v}}mustBeFullyMigrated(e){if(!e.fullyMigrated)throw new Error(`Wallet ${this.address} is not fully migrated`)}async predecorateSignedTransactions(e,r){const n=await this.orchestrator.predecorateSignedTransactions({chainId:r}),s=await this.predecorateTransactions([],e,r);return de.transaction.fromTransactionish(this.address,s).length>0&&n.push(await this.signTransactions(s,r)),n}async predecorateTransactions(e,r,n){if(r.onChain.imageHash!==r.imageHash){const i=await this.walletForStatus(n,r).buildUpdateConfigurationTransaction(r.config);return[Array.isArray(e)?e:[e],i.transactions].flat()}return e}async decorateTransactions(e,r,n){var s,i;if(!Array.isArray(e))return this.decorateTransactions([e],r,n);n=(s=n)!=null?s:e[0].chainId;const o=await this.buildBootstrapTransactions(r,n),a=o.transactions.length>0;if(!a&&e.length===1)return e[0];const{entrypoint:c}=a?o:e[0],l={entrypoint:c,chainId:n,intent:(i=e[0])==null?void 0:i.intent,transactions:[...o.transactions,...e.map(u=>({to:u.entrypoint,data:de.transaction.encodeBundleExecData(u),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}))]};if(!r.onChain.deployed){const u=de.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,n,l.transactions);l.intent===void 0?l.intent={id:u,wallet:this.address}:l.intent.id=u}return l}async decorateSignature(e,r){if(!r.presignedConfigurations||r.presignedConfigurations.length===0)return e;const n=this.coders.signature,s=r.presignedConfigurations.map(o=>o.signature),i=n.chainSignatures(e,s);return n.trim(i)}async publishWitnessFor(e,r=0){const n=Dr(`This is a Sequence account woo! ${Date.now()}`),s=await this.status(r),i=this.coders.config.fromSimple({threshold:e.length,checkpoint:0,signers:e.map(u=>({address:u,weight:1}))}),a=await this.walletFor(r,s.original.context,i,this.coders).signDigest(n),c=this.coders.signature.decode(a),l=this.coders.signature.signaturesOfDecoded(c);if(l.length===0)throw new Error("No signatures found");return this.tracker.saveWitnesses({wallet:this.address,digest:n,chainId:r,signatures:l})}async publishWitness(){const e=Dr(`This is a Sequence account woo! ${Date.now()}`),r=await this.signDigest(e,0,!1),n=this.coders.signature.decode(r),s=this.coders.signature.signaturesOfDecoded(n);return this.tracker.saveWitnesses({wallet:this.address,digest:e,chainId:0,signatures:s})}async signDigest(e,r,n=!0,s="ignore",i){const o=BigInt(r)===0n?this.networks[0].chainId:r,a=await this.status(o);if(this.mustBeFullyMigrated(a),!a.canOnchainValidate&&s==="throw")throw new Error("Wallet cannot validate onchain");const l=await this.walletForStatus(r,a).signDigest(e,i),u=n?this.decorateSignature(l,a):l;if(!a.canOnchainValidate)switch(s){case"ignore":return u;case"eip6492":return this.buildEIP6492Signature(await u,a,r)}return u}buildOnChainSignature(e){const r=de.signature.subdigestOf({digest:z(e),chainId:0,address:this.address}),n=z(r),s=this.coders.config.fromSimple({threshold:32768,checkpoint:0,signers:[],subdigests:[n]}),i=new ut(Ht.mainModule.abi),o={entrypoint:this.address,transactions:[{to:this.address,data:i.encodeFunctionData("setExtraImageHash",[this.coders.config.imageHashOf(s),"57896044618658097711785492504343953926634992332820282019728792003956564819968"]),gasLimit:25e4}]};this.tracker.saveWalletConfig({config:s});const a=this.coders.signature.encodeSigners(s,new Map,[n],0).encoded;return{bundle:o,signature:a}}async buildEIP6492Signature(e,r,n){const s=await this.buildBootstrapTransactions(r,n);if(s.transactions.length===0)throw new Error("Cannot build EIP-6492 signature without bootstrap transactions");const i=qt.defaultAbiCoder().encode(["address","bytes","bytes"],[s.entrypoint,de.transaction.encodeBundleExecData(s),e]);return Le(["bytes","bytes32"],[i,de.EIP6492.EIP_6492_SUFFIX])}async editConfig(e){const r=await this.status(0).then(s=>s.config),n=this.coders.config.editConfig(r,Ks({},e,{checkpoint:this.coders.config.checkpointOf(r)+1n}));return this.updateConfig(n)}async updateConfig(e){if(!this.coders.config.isWalletConfig(e))throw new Error(`Invalid config for wallet ${this.address}`);const r=this.coders.config.imageHashOf(e),n=this.coders.signature.hashSetImageHash(r),s=await this.signDigest(n,0,!1);await this.tracker.savePresignedConfiguration({wallet:this.address,nextConfig:e,signature:s});const i=await this.tracker.configOfImageHash({imageHash:r,noCache:!0});if(!i||this.coders.config.imageHashOf(i)!==r)throw Error(`Reverse lookup failed for imageHash ${r}`)}async buildBootstrapTransactions(e,r){var n;const s=await this.orchestrator.buildDeployTransaction({chainId:r}),i=(n=s==null?void 0:s.transactions)!=null?n:[];if(!e.onChain.deployed){let c;switch(BigInt(r)){case BigInt(M.SKALE_NEBULA):c=10000000n;break}const l=Lu.buildDeployTransaction(e.original.context,e.original.imageHash,c);i.push(...l.transactions)}i.push(...e.signedMigrations.map(c=>({to:c.tx.entrypoint,data:de.transaction.encodeBundleExecData(c.tx),value:0,gasLimit:0,revertOnError:!0,delegateCall:!1})));const o=e.signedMigrations.length>0?e.signedMigrations[0].tx.intent.id:de.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,r,i),{guestModule:a}=this.contextFor(e.version);return{entrypoint:a,transactions:i,chainId:r,intent:{id:o,wallet:this.address}}}async bootstrapTransactions(e,r){const n=r||await this.status(e);return this.buildBootstrapTransactions(n,e)}async doBootstrap(e,r,n){const s=await this.bootstrapTransactions(e,n);return this.relayer(e).relay(Ks({},s,{chainId:e}),r)}signMessage(e,r,n="ignore"){return this.signDigest(Me(e),r,!0,n)}async signTransactions(e,r,n,s){const i=n||await this.status(r);this.mustBeFullyMigrated(i);const o=this.walletForStatus(r,i),a={address:this.address,digest:"",chainId:r,config:{version:this.version},decorate:!0,cantValidateBehavior:"ignore"},c=s!=null&&s.serial?{serial:!0}:(s==null?void 0:s.nonceSpace)!==void 0?{space:s.nonceSpace}:void 0,l=await o.signTransactions(e,c,a);return Ks({},l,{signature:await this.decorateSignature(l.signature,i)})}async signMigrations(e,r){const n=await this.status(e);if(n.fullyMigrated)return!1;const s=this.walletForStatus(e,n),i=r(s.config),o=await this.migrator.signNextMigration(this.address,n.version,s,i);if(!o)return!1;await this.tracker.saveWalletConfig({config:i});const a=Zt.coderFor(i.version).config,c=a.imageHashOf(i),l=await this.tracker.configOfImageHash({imageHash:c,noCache:!0});if(!l||a.imageHashOf(l)!==c)throw Error(`Reverse lookup failed for imageHash ${c}`);return await this.tracker.saveMigration(this.address,o,this.contexts),!0}async signAllMigrations(e){var r=this;const n=[];return{signedMigrations:(await Promise.all(this.networks.map(async function(o){try{return await r.signMigrations(o.chainId,e)}catch(a){return console.warn(`Failed to sign migrations for chain ${o.chainId}`,a),n.push(o.chainId),null}}))).filter(o=>o!==null),failedChains:n}}async isMigratedAllChains(){var e=this;const r=[];return{migratedAllChains:(await Promise.all(this.networks.map(async function(i){try{return await e.status(i.chainId)}catch(o){return r.push(i.chainId),console.warn(`Failed to get status for chain ${i.chainId}`,o),{fullyMigrated:!0}}}))).every(i=>i.fullyMigrated),failedChains:r}}async sendSignedTransactions(e,r,n,s,i,o){if(!Array.isArray(e))return this.sendSignedTransactions([e],r,n,s,i,o);const a=s||await this.status(r);this.mustBeFullyMigrated(a);const c=await this.decorateTransactions(e,a,r);return i==null||i(c),this.relayer(r).relay(c,n,void 0,o)}async fillGasLimits(e,r,n){return this.walletForStatus(r,n||await this.status(r)).fillGasLimits(e)}async gasRefundQuotes(e,r,n,s,i){const o=s||await this.status(r),a=this.walletForStatus(r,o),c=await this.predecorateTransactions(e,o,r),l=de.transaction.fromTransactionish(this.address,c),u=a.coders.config.buildStubSignature(a.config,n),f=z(Nr(32)),d={chainId:r,intent:{id:f,wallet:this.address},signature:u,transactions:l,entrypoint:this.address,nonce:0},h=await this.decorateTransactions(d,o),y=de.transaction.encodeBundleExecData(h),p=await this.relayer(r).getFeeOptionsRaw(h.entrypoint,y,i);return Ks({},p,{decorated:h})}async prepareTransactions(e){const r=await this.status(e.chainId),n=await this.fillGasLimits(e.txs,e.chainId,r),s=await this.gasRefundQuotes(n,e.chainId,e.stubSignatureOverrides,r,{simulate:e.simulateForFeeOptions,projectAccessKey:e.projectAccessKey}),i=de.transaction.unwind(this.address,s.decorated.transactions);return{transactions:n,flatDecorated:i,feeOptions:s.options,feeQuote:s.quote}}async sendTransaction(e,r,n,s=!1,i,o){const a=await this.status(r),c=s?e:await this.predecorateTransactions(e,a,r),u=de.transaction.fromTransactionish(this.address,c).length>0?await this.signTransactions(c,r,void 0,o):void 0,f=await this.orchestrator.predecorateSignedTransactions({chainId:r}),d=[];return u!==void 0&&u.transactions.length>0&&d.push(u),d.push(...f.filter(h=>h.transactions.length>0)),this.sendSignedTransactions(d,r,n,void 0,i,o==null?void 0:o.projectAccessKey)}async signTypedData(e,r,n,s,i="ignore"){const o=Ad({domain:e,types:r,message:n});return this.signDigest(o,s,!0,i)}async getSigners(){var e=this;const r=n=>n.length?n[n.length-1]:void 0;return(await Promise.all(this.networks.map(async function({chainId:n,name:s}){try{var i;const o=await e.status(n);let a=(i=r(o.presignedConfigurations))==null?void 0:i.nextImageHash;if(!a&&o.onChain.version!==o.version){const f=r(o.signedMigrations);if(f){const{toVersion:d,toConfig:h}=f;a=Zt.genericCoderFor(d).config.imageHashOf(h)}}a||(a=o.onChain.imageHash);const c=await e.tracker.configOfImageHash({imageHash:a});if(!c)throw new Error(`unable to find config for image hash ${a}`);return Zt.genericCoderFor(c.version).config.signersOf(c).map(f=>Ks({},f,{network:n}))}catch(o){return console.warn(`unable to get signers on network ${n} ${s}`,o),[]}}))).flat()}async getAllSigners(){var e=this;const r=[];return await Promise.all(this.networks.map(async function(n){const s=n.chainId,i=await e.status(s,!0),o=[i.onChain.imageHash,...i.onChain.version!==i.version?i.signedMigrations.map(a=>Zt.coderFor(a.toVersion).config.imageHashOf(a.toConfig)):[],...i.presignedConfigurations.map(a=>a.nextImageHash)];return Promise.all(o.map(async function(a,c){const l=c===o.length-1,u=await e.tracker.configOfImageHash({imageHash:a});if(!u){console.warn(`AllSigners may be incomplete, config not found for imageHash ${a}`);return}Zt.genericCoderFor(u.version).config.signersOf(u).forEach(h=>{const y=r.find(p=>p.address===h.address&&p.network===s);if(y&&l&&y.flaggedForRemoval){y.flaggedForRemoval=!1;return}y||r.push({address:h.address,weight:h.weight,network:s,flaggedForRemoval:!l})})}))})),r}}function wle(t){return t instanceof Qi}const Ele=Object.freeze(Object.defineProperty({__proto__:null,Account:Qi,isAccount:wle},Symbol.toStringTag,{value:"Module"}));function Ig(){return Ig=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Ze({},n,s)).then(i=>it(i).then(o=>({status:o.status})),i=>{throw et.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Ze({},n,s)).then(i=>it(i).then(o=>({version:o.version})),i=>{throw et.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Ze({},n,s)).then(i=>it(i).then(o=>({status:o.status})),i=>{throw et.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),Ze({},n,s)).then(i=>it(i).then(o=>({chainID:o.chainID})),i=>{throw et.new({cause:`fetch(): ${i.message||""}`})}),this.getEtherBalance=(n,s,i)=>this.fetch(this.url("GetEtherBalance"),Ze(n,s,i)).then(o=>it(o).then(a=>({balance:a.balance})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getNativeTokenBalance=(n,s,i)=>this.fetch(this.url("GetNativeTokenBalance"),Ze(n,s,i)).then(o=>it(o).then(a=>({balance:a.balance})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalancesSummary=(n,s,i)=>this.fetch(this.url("GetTokenBalancesSummary"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalancesDetails=(n,s,i)=>this.fetch(this.url("GetTokenBalancesDetails"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalancesByContract=(n,s,i)=>this.fetch(this.url("GetTokenBalancesByContract"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,s,i)=>this.fetch(this.url("GetTokenBalances"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,s,i)=>this.fetch(this.url("GetTokenSupplies"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,s,i)=>this.fetch(this.url("GetTokenSuppliesMap"),Ze(n,s,i)).then(o=>it(o).then(a=>({supplies:a.supplies})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,s,i)=>this.fetch(this.url("GetBalanceUpdates"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,s,i)=>this.fetch(this.url("GetTransactionHistory"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,s,i)=>this.fetch(this.url("SyncBalance"),Ze(n,s,i)).then(o=>it(o).then(a=>({})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,s,i)=>this.fetch(this.url("FetchTransactionReceipt"),Ze(n,s,i)).then(o=>it(o).then(a=>({receipt:a.receipt})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,s,i)=>this.fetch(this.url("GetOrderbookOrders"),Ze(n,s,i)).then(o=>it(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,s,i)=>this.fetch(this.url("GetTopOrders"),Ze(n,s,i)).then(o=>it(o).then(a=>({orders:a.orders})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,s,i)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),Ze(n,s,i)).then(o=>it(o).then(a=>({receipt:a.receipt})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,s,i)=>this.fetch(this.url("GetAllWebhookListeners"),Ze(n,s,i)).then(o=>it(o).then(a=>({listeners:a.listeners})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,s,i)=>this.fetch(this.url("GetWebhookListener"),Ze(n,s,i)).then(o=>it(o).then(a=>({listener:a.listener})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,s,i)=>this.fetch(this.url("AddWebhookListener"),Ze(n,s,i)).then(o=>it(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,s,i)=>this.fetch(this.url("UpdateWebhookListener"),Ze(n,s,i)).then(o=>it(o).then(a=>({status:a.status})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,s,i)=>this.fetch(this.url("RemoveWebhookListener"),Ze(n,s,i)).then(o=>it(o).then(a=>({status:a.status})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.toggleWebhookListener=(n,s,i)=>this.fetch(this.url("ToggleWebhookListener"),Ze(n,s,i)).then(o=>it(o).then(a=>({webhookListener:a.webhookListener})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.pauseAllWebhookListeners=(n,s,i)=>this.fetch(this.url("PauseAllWebhookListeners"),Ze(n,s,i)).then(o=>it(o).then(a=>({status:a.status})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.resumeAllWebhookListeners=(n,s,i)=>this.fetch(this.url("ResumeAllWebhookListeners"),Ze(n,s,i)).then(o=>it(o).then(a=>({status:a.status})),o=>{throw et.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeReceipts"),Ze(n,s.headers,s.signal)).then(async function(o){await qx(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeEvents=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeEvents"),Ze(n,s.headers,s.signal)).then(async function(o){await qx(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeBalanceUpdates=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeBalanceUpdates"),Ze(n,s.headers,s.signal)).then(async function(o){await qx(o,s,i)},o=>{s.onError(o,i)});return i()},this.hostname=e.replace(/\/*$/,""),this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const qx=async(t,e,r)=>{const{onMessage:n,onOpen:s,onClose:i,onError:o}=e;if(!t.ok){try{await it(t)}catch(y){o(y,r)}return}if(!t.body){o(M0.new({status:t.status,cause:"Invalid response, missing body"}),r);return}s&&s();const a=t.body.getReader(),c=new TextDecoder;let l="",u=Date.now();const f=11*1e3;let d=!1;const h=setInterval(()=>{Date.now()-u>f&&(d=!0,clearInterval(h),a.releaseLock())},f);for(;;){let y,p;try{if({value:y,done:p}=await a.read(),d)throw new Error("Timeout, no data or heartbeat received");u=Date.now(),l+=c.decode(y,{stream:!0})}catch(g){let v="";g instanceof Error&&(v=g.message),g instanceof DOMException&&g.name==="AbortError"?o(et.new({message:"AbortError",cause:`AbortError: ${v}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(R5.new({cause:`reader.read(): ${v}`}),r);return}let b=l.split(` +`);for(let g=0;g({method:"POST",headers:Ig({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),it=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),M0.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(wL[n]||ct).new(r)}return r});let ct=class RB extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,RB.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},NB=class _B extends ct{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_B.prototype)}},et=class MB extends ct{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MB.prototype)}},DB=class BB extends ct{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BB.prototype)}},LB=class jB extends ct{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jB.prototype)}},FB=class UB extends ct{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UB.prototype)}},M0=class $B extends ct{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$B.prototype)}},WB=class VB extends ct{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VB.prototype)}},zB=class HB extends ct{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,HB.prototype)}},GB=class qB extends ct{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qB.prototype)}},R5=class KB extends ct{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,KB.prototype)}},QB=class JB extends ct{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,JB.prototype)}},YB=class XB extends ct{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,XB.prototype)}},ZB=class eL extends ct{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,eL.prototype)}},tL=class rL extends ct{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rL.prototype)}},nL=class sL extends ct{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sL.prototype)}},iL=class oL extends ct{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oL.prototype)}},aL=class cL extends ct{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cL.prototype)}},lL=class uL extends ct{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uL.prototype)}},fL=class dL extends ct{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dL.prototype)}},hL=class pL extends ct{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pL.prototype)}},yL=class gL extends ct{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gL.prototype)}};class im extends ct{constructor(e="ResourceExhausted",r=2004,n="Resource exhausted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,im.prototype)}}let vL=class mL extends ct{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mL.prototype)}},xL=class bL extends ct{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,bL.prototype)}};class om extends ct{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,om.prototype)}}let Dle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Aborted="Aborted",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.ResourceExhausted="ResourceExhausted",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.MetadataCallFailed="MetadataCallFailed",t}({});const wL={0:NB,[-1]:et,[-2]:DB,[-3]:LB,[-4]:FB,[-5]:M0,[-6]:WB,[-7]:zB,[-8]:GB,[-9]:R5,[-10]:QB,1e3:YB,1001:ZB,1002:tL,1003:nL,1004:iL,1005:aL,2e3:lL,2001:fL,2002:hL,2003:yL,2004:im,3e3:vL,3002:xL,3003:om},A8=globalThis.fetch;class EL extends OB{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,A8),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=Ig({},i.headers,o),A8(s,i)},this.fetch=this._fetch}}const Ble=Object.freeze(Object.defineProperty({__proto__:null,AbortedError:aL,ContractType:Ale,ContractVerificationStatus:Mle,EventLogDataType:Ile,EventLogType:Tle,Indexer:OB,InvalidArgumentError:fL,MetadataCallFailedError:om,MethodNotFoundError:nL,NotFoundError:vL,OrderStatus:Ple,PermissionDeniedError:ZB,ProjectNotFoundError:xL,QueryFailedError:yL,RequestConflictError:iL,ResourceExhaustedError:im,SequenceIndexer:EL,SessionExpiredError:tL,SortOrder:_le,TimeoutError:lL,TransactionStatus:Rle,TransactionType:Nle,TxnTransferType:Ole,UnauthorizedError:YB,UnavailableError:hL,WebRPCSchemaHash:Sle,WebRPCSchemaVersion:kle,WebRPCVersion:Cle,WebrpcBadMethodError:LB,WebrpcBadRequestError:FB,WebrpcBadResponseError:M0,WebrpcBadRouteError:DB,WebrpcClientDisconnectedError:GB,WebrpcEndpointError:NB,WebrpcError:ct,WebrpcInternalErrorError:zB,WebrpcRequestFailedError:et,WebrpcServerPanicError:WB,WebrpcStreamFinishedError:QB,WebrpcStreamLostError:R5,errors:Dle},Symbol.toStringTag,{value:"Module"}));function D0(){return D0=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),we({},n,s)).then(i=>Ee(i).then(o=>({status:o.status})),i=>{throw be.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),we({},n,s)).then(i=>Ee(i).then(o=>({version:o.version})),i=>{throw be.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),we({},n,s)).then(i=>Ee(i).then(o=>({status:o.status})),i=>{throw be.new({cause:`fetch(): ${i.message||""}`})}),this.getTokenMetadata=(n,s,i)=>this.fetch(this.url("GetTokenMetadata"),we(n,s,i)).then(o=>Ee(o).then(a=>({tokenMetadata:a.tokenMetadata})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.refreshTokenMetadata=(n,s,i)=>this.fetch(this.url("RefreshTokenMetadata"),we(n,s,i)).then(o=>Ee(o).then(a=>({taskId:a.taskId})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.enqueueTokensForRefresh=(n,s,i)=>this.fetch(this.url("EnqueueTokensForRefresh"),we(n,s,i)).then(o=>Ee(o).then(a=>({taskId:a.taskId})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshStatus=(n,s,i)=>this.fetch(this.url("GetTokenRefreshStatus"),we(n,s,i)).then(o=>Ee(o).then(a=>({status:a.status})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshResult=(n,s,i)=>this.fetch(this.url("GetTokenRefreshResult"),we(n,s,i)).then(o=>Ee(o).then(a=>({status:a.status,tokens:a.tokens,failureReasons:a.failureReasons})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.cancelRefreshJob=(n,s,i)=>this.fetch(this.url("CancelRefreshJob"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenMetadataBatch=(n,s,i)=>this.fetch(this.url("GetTokenMetadataBatch"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractTokenMetadata:a.contractTokenMetadata})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenMetadata=(n,s,i)=>this.fetch(this.url("SearchTokenMetadata"),we(n,s,i)).then(o=>Ee(o).then(a=>({page:a.page,tokenMetadata:a.tokenMetadata})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenIDs=(n,s,i)=>this.fetch(this.url("SearchTokenIDs"),we(n,s,i)).then(o=>Ee(o).then(a=>({page:a.page,tokenIds:a.tokenIds})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.tokenCollectionFilters=(n,s,i)=>this.fetch(this.url("TokenCollectionFilters"),we(n,s,i)).then(o=>Ee(o).then(a=>({filters:a.filters})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfo=(n,s,i)=>this.fetch(this.url("GetContractInfo"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractInfo:a.contractInfo})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfoBatch=(n,s,i)=>this.fetch(this.url("GetContractInfoBatch"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractInfoMap:a.contractInfoMap})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfo=(n,s,i)=>this.fetch(this.url("SearchContractInfo"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractInfoList:a.contractInfoList})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfoBatch=(n,s,i)=>this.fetch(this.url("SearchContractInfoBatch"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractInfoByChain:a.contractInfoByChain})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchMetadata=(n,s,i)=>this.fetch(this.url("SearchMetadata"),we(n,s,i)).then(o=>Ee(o).then(a=>({tokenMetadata:a.tokenMetadata,contractInfo:a.contractInfo})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokens=(n,s,i)=>this.fetch(this.url("SearchTokens"),we(n,s,i)).then(o=>Ee(o).then(a=>({tokenMetadata:a.tokenMetadata,nextPage:a.nextPage})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.searchContracts=(n,s,i)=>this.fetch(this.url("SearchContracts"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractInfo:a.contractInfo,nextPage:a.nextPage})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapTokenQuantity=(n,s,i)=>this.fetch(this.url("GetNiftyswapTokenQuantity"),we(n,s,i)).then(o=>Ee(o).then(a=>({quantity:a.quantity})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPrices=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPrices"),we(n,s,i)).then(o=>Ee(o).then(a=>({prices:a.prices})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPricesWithQuantities=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPricesWithQuantities"),we(n,s,i)).then(o=>Ee(o).then(a=>({prices:a.prices})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.addContractToMintMonitor=(n,s,i)=>this.fetch(this.url("AddContractToMintMonitor"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractFromMintMonitor=(n,s,i)=>this.fetch(this.url("RemoveContractFromMintMonitor"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorJobStatus=(n,s,i)=>this.fetch(this.url("MintMonitorJobStatus"),we(n,s,i)).then(o=>Ee(o).then(a=>({task:a.task})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorTriggerJob=(n,s,i)=>this.fetch(this.url("MintMonitorTriggerJob"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.syncContractTokens=(n,s,i)=>this.fetch(this.url("SyncContractTokens"),we(n,s,i)).then(o=>Ee(o).then(a=>({taskID:a.taskID})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.abortContractSync=(n,s,i)=>this.fetch(this.url("AbortContractSync"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.contractSyncJobStatus=(n,s,i)=>this.fetch(this.url("ContractSyncJobStatus"),we(n,s,i)).then(o=>Ee(o).then(a=>({refreshTask:a.refreshTask,syncTask:a.syncTask})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetNetworks=(n,s,i)=>this.fetch(this.url("DirectoryGetNetworks"),we(n,s,i)).then(o=>Ee(o).then(a=>({networks:a.networks})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetCollections=(n,s,i)=>this.fetch(this.url("DirectoryGetCollections"),we(n,s,i)).then(o=>Ee(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.directorySearchCollections=(n,s,i)=>this.fetch(this.url("DirectorySearchCollections"),we(n,s,i)).then(o=>Ee(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class kL{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Collections/",this.createCollection=(n,s,i)=>this.fetch(this.url("CreateCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({collection:a.collection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getCollection=(n,s,i)=>this.fetch(this.url("GetCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({collection:a.collection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.listCollections=(n,s,i)=>this.fetch(this.url("ListCollections"),we(n,s,i)).then(o=>Ee(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.updateCollection=(n,s,i)=>this.fetch(this.url("UpdateCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({collection:a.collection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.deleteCollection=(n,s,i)=>this.fetch(this.url("DeleteCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({status:a.status})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.publishCollection=(n,s,i)=>this.fetch(this.url("PublishCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({collection:a.collection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.unpublishCollection=(n,s,i)=>this.fetch(this.url("UnpublishCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({collection:a.collection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.createContractCollection=(n,s,i)=>this.fetch(this.url("CreateContractCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getContractCollection=(n,s,i)=>this.fetch(this.url("GetContractCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.listContractCollections=(n,s,i)=>this.fetch(this.url("ListContractCollections"),we(n,s,i)).then(o=>Ee(o).then(a=>({contractCollections:a.contractCollections,collections:a.collections,page:a.page})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.updateContractCollection=(n,s,i)=>this.fetch(this.url("UpdateContractCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.deleteContractCollection=(n,s,i)=>this.fetch(this.url("DeleteContractCollection"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.createToken=(n,s,i)=>this.fetch(this.url("CreateToken"),we(n,s,i)).then(o=>Ee(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getToken=(n,s,i)=>this.fetch(this.url("GetToken"),we(n,s,i)).then(o=>Ee(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.listTokens=(n,s,i)=>this.fetch(this.url("ListTokens"),we(n,s,i)).then(o=>Ee(o).then(a=>({page:a.page,tokens:a.tokens})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.updateToken=(n,s,i)=>this.fetch(this.url("UpdateToken"),we(n,s,i)).then(o=>Ee(o).then(a=>({token:a.token})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.deleteToken=(n,s,i)=>this.fetch(this.url("DeleteToken"),we(n,s,i)).then(o=>Ee(o).then(a=>({status:a.status})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.createAsset=(n,s,i)=>this.fetch(this.url("CreateAsset"),we(n,s,i)).then(o=>Ee(o).then(a=>({asset:a.asset})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getAsset=(n,s,i)=>this.fetch(this.url("GetAsset"),we(n,s,i)).then(o=>Ee(o).then(a=>({asset:a.asset})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.updateAsset=(n,s,i)=>this.fetch(this.url("UpdateAsset"),we(n,s,i)).then(o=>Ee(o).then(a=>({asset:a.asset})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.deleteAsset=(n,s,i)=>this.fetch(this.url("DeleteAsset"),we(n,s,i)).then(o=>Ee(o).then(a=>({status:a.status})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class zle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Admin/",this.addContractsToTokenDirectory=(n,s,i)=>this.fetch(this.url("AddContractsToTokenDirectory"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractsFromTokenDirectory=(n,s,i)=>this.fetch(this.url("RemoveContractsFromTokenDirectory"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.modifyFeatureIndex=(n,s,i)=>this.fetch(this.url("ModifyFeatureIndex"),we(n,s,i)).then(o=>Ee(o).then(a=>({ok:a.ok})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.getFeatureIndex=(n,s,i)=>this.fetch(this.url("GetFeatureIndex"),we(n,s,i)).then(o=>Ee(o).then(a=>({featured:a.featured})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.listTokenDirectory=(n,s,i)=>this.fetch(this.url("ListTokenDirectory"),we(n,s,i)).then(o=>Ee(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw be.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const we=(t={},e={},r=null)=>({method:"POST",headers:D0({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Ee=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),N5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Gle[n]||rt).new(r)}return r});let rt=class SL extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,SL.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},AL=class TL extends rt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,TL.prototype)}},be=class IL extends rt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,IL.prototype)}},PL=class OL extends rt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OL.prototype)}},RL=class NL extends rt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NL.prototype)}},_L=class ML extends rt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ML.prototype)}},N5=class DL extends rt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,DL.prototype)}},BL=class LL extends rt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,LL.prototype)}},jL=class FL extends rt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,FL.prototype)}},UL=class $L extends rt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$L.prototype)}},WL=class VL extends rt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VL.prototype)}},zL=class HL extends rt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,HL.prototype)}},GL=class qL extends rt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qL.prototype)}},KL=class QL extends rt{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QL.prototype)}},JL=class YL extends rt{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YL.prototype)}};class am extends rt{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,am.prototype)}}class cm extends rt{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cm.prototype)}}class lm extends rt{constructor(e="Fail",r=1005,n="Request Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lm.prototype)}}class um extends rt{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,um.prototype)}}class fm extends rt{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fm.prototype)}}let XL=class ZL extends rt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZL.prototype)}};class dm extends rt{constructor(e="RequiredArgument",r=2002,n="Required argument missing",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dm.prototype)}}let ej=class tj extends rt{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tj.prototype)}},rj=class nj extends rt{constructor(e="ValidationFailed",r=2004,n="Validation failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nj.prototype)}};class hm extends rt{constructor(e="RateLimited",r=2005,n="Rate limited",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hm.prototype)}}let sj=class ij extends rt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ij.prototype)}};class pm extends rt{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pm.prototype)}}class ym extends rt{constructor(e="ChainNotFound",r=3003,n="Chain not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ym.prototype)}}class gm extends rt{constructor(e="TokenDirectoryDisabled",r=4001,n="Token Directory is disabled",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gm.prototype)}}let Hle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Fail="Fail",t.Geoblocked="Geoblocked",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.RequiredArgument="RequiredArgument",t.QueryFailed="QueryFailed",t.ValidationFailed="ValidationFailed",t.RateLimited="RateLimited",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.ChainNotFound="ChainNotFound",t.TokenDirectoryDisabled="TokenDirectoryDisabled",t}({});const Gle={0:AL,[-1]:be,[-2]:PL,[-3]:RL,[-4]:_L,[-5]:N5,[-6]:BL,[-7]:jL,[-8]:UL,[-9]:WL,[-10]:zL,1e3:GL,1001:KL,1002:JL,1003:am,1004:cm,1005:lm,1006:um,2e3:fm,2001:XL,2002:dm,2003:ej,2004:rj,2005:hm,3e3:sj,3002:pm,3003:ym,4001:gm},Pg=globalThis.fetch;class oj extends CL{constructor(e="https://metadata.sequence.app",r,n){super(e.endsWith("/")?e.slice(0,-1):e,Pg),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=D0({},i.headers,o),Pg(s,i)},this.fetch=this._fetch}}class qle extends kL{constructor(e="https://metadata.sequence.app",r){super(e.endsWith("/")?e.slice(0,-1):e,Pg),this.jwtAuth=r,this._fetch=(n,s)=>{const i={},o=this.jwtAuth;return o&&o.length>0&&(i.Authorization=`BEARER ${o}`),s.headers=D0({},s.headers,i),Pg(n,s)},this.fetch=this._fetch}}const Kle=Object.freeze(Object.defineProperty({__proto__:null,Admin:zle,ChainNotFoundError:ym,Collections:kL,ContractType:Ule,FailError:lm,GeoblockedError:um,InvalidArgumentError:XL,Metadata:CL,MethodNotFoundError:am,NotFoundError:sj,PermissionDeniedError:KL,ProjectNotFoundError:pm,PropertyType:$le,QueryFailedError:ej,RateLimitedError:hm,RequestConflictError:cm,RequiredArgumentError:dm,SequenceCollections:qle,SequenceMetadata:oj,SessionExpiredError:JL,SwapType:Wle,TaskStatus:Vle,TimeoutError:fm,TokenDirectoryDisabledError:gm,UnauthorizedError:GL,ValidationFailedError:rj,WebRPCSchemaHash:Fle,WebRPCSchemaVersion:jle,WebRPCVersion:Lle,WebrpcBadMethodError:RL,WebrpcBadRequestError:_L,WebrpcBadResponseError:N5,WebrpcBadRouteError:PL,WebrpcClientDisconnectedError:UL,WebrpcEndpointError:AL,WebrpcError:rt,WebrpcInternalErrorError:jL,WebrpcRequestFailedError:be,WebrpcServerPanicError:BL,WebrpcStreamFinishedError:zL,WebrpcStreamLostError:WL,errors:Hle},Symbol.toStringTag,{value:"Module"}));function Qle(t,e){const r=t.replace("ipfs://ipfs/","").replace("ipfs://","");return t.startsWith("ipfs://")?`${e}${r}`:t}function Jle(t){return t.startsWith("ipfs://")}class aj{constructor(e,r,n=1e3){this.provider=e,this.solver=r,this.window=n,this.pending=new Map}async runByEIP5719(e,r,n){const s=`${e}-${r}-${n}`,i=Date.now();if(this.pending.has(s)&&i-this.pending.get(s).timestamp10)throw new Error("EIP5719 - Too many tries");if(de.signer.canRecover(n)){const c=de.signer.recoverSigner(r,n);if(c&&c.toLowerCase()===t.toLowerCase())return n}try{if(await de.signer.isValidSignature(t,r,n,e))return n}catch{}const o=await Xle(Yle(t,e).getAlternativeSignature(r));if(!o||o==="")throw new Error("EIP5719 - Invalid signature and no alternative signature");const a=z(await(s||new Zle).resolve(o));if(!a||a==="")throw new Error("EIP5719 - Empty alternative signature");if(a===z(n))throw new Error("EIP5719 - Alternative signature is invalid or the same");return cj(t,e,r,a,s,i+1)}class Zle{constructor(e="https://cloudflare-ipfs.com/ipfs/"){var r=this;this.gateway=e,this.uri=n=>Jle(n)?Qle(n,this.gateway):n,this.resolve=async function(n){const s=r.uri(n),i=await fetch(s);if(!i.ok)throw new Error(`URISolverIPFS - Failed to fetch ${s}`);return await i.text()}}}const eue=(t,e)=>e.some(r=>t instanceof r);let T8,I8;function tue(){return T8||(T8=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function rue(){return I8||(I8=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const lj=new WeakMap,z2=new WeakMap,uj=new WeakMap,Kx=new WeakMap,_5=new WeakMap;function nue(t){const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(ka(t.result)),s()},o=()=>{n(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&lj.set(r,t)}).catch(()=>{}),_5.set(e,t),e}function sue(t){if(z2.has(t))return;const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),s()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});z2.set(t,e)}let H2={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return z2.get(t);if(e==="objectStoreNames")return t.objectStoreNames||uj.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ka(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function iue(t){H2=t(H2)}function oue(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(Qx(this),e,...r);return uj.set(n,e.sort?e.sort():[e]),ka(n)}:rue().includes(t)?function(...e){return t.apply(Qx(this),e),ka(lj.get(this))}:function(...e){return ka(t.apply(Qx(this),e))}}function aue(t){return typeof t=="function"?oue(t):(t instanceof IDBTransaction&&sue(t),eue(t,tue())?new Proxy(t,H2):t)}function ka(t){if(t instanceof IDBRequest)return nue(t);if(Kx.has(t))return Kx.get(t);const e=aue(t);return e!==t&&(Kx.set(t,e),_5.set(e,t)),e}const Qx=t=>_5.get(t);function cue(t,e,{blocked:r,upgrade:n,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=ka(o);return n&&o.addEventListener("upgradeneeded",c=>{n(ka(o.result),c.oldVersion,c.newVersion,ka(o.transaction),c)}),r&&o.addEventListener("blocked",c=>r(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",l=>s(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const lue=["get","getKey","getAll","getAllKeys","count"],uue=["put","add","delete","clear"],Jx=new Map;function P8(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Jx.get(e))return Jx.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,s=uue.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(s||lue.includes(r)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let l=c.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),s&&c.done]))[0]};return Jx.set(e,i),i}iue(t=>({...t,get:(e,r,n)=>P8(e,r)||t.get(e,r,n),has:(e,r)=>!!P8(e,r)||t.has(e,r)}));var fue=Object.freeze({__proto__:null});function bi(){return bi=Object.assign?Object.assign.bind():function(t){for(var e=1;e{try{const{Signer:d,Subdigest:h,Digest:y,"To-Config":p}=f;let b;switch(f["Signature-Type"]){case"eip-712":case"eth_sign":case"erc-1271":b=f["Signature-Type"];break;default:throw new Error(`unknown signature type ${f["Signature-Type"]}`)}let g;try{g=BigInt(f["To-Checkpoint"])}catch{throw new Error(`to checkpoint is not a number: ${f["To-Checkpoint"]}`)}if(g<=i)return[];if(!ag(d))throw new Error(`signer is not an address: ${d}`);if(!qe(h,32))throw new Error(`subdigest is not a hash: ${h}`);if(!qe(y,32))throw new Error(`digest is not a hash: ${y}`);let v;try{v=BigInt(f["Chain-ID"])}catch{throw new Error(`chain id is not a number: ${f["Chain-ID"]}`)}if(!qe(p,32))throw new Error(`to config is not a hash: ${p}`);return[{id:u,signatureType:b,signer:d,subdigest:h,digest:y,chainId:v,toImageHash:p,toCheckpoint:g}]}catch(d){return console.warn(`invalid wallet ${n} config update ${u}:`,d),[]}}),a=new Map;let c=[];for(const u of o){let f=a.get(u.toImageHash);f||(f=new Map,a.set(u.toImageHash,f),c.push(u)),f.set(u.signer,u)}e.longestPath?c.sort(({toCheckpoint:u},{toCheckpoint:f})=>u===f?0:uu===f?0:u[v,{signature:"0x",isDynamic:!1}])),[],0);if(g>=BigInt(u.threshold)){d=b;break}}if(!d){console.warn(`unreachable configs with checkpoint > ${u.checkpoint} from config ${f}`);break}const p=d.toImageHash;try{const b=await this.configOfImageHash({imageHash:p});if(!b)throw new Error(`unable to find config ${p}`);if(!Ne.config.isWalletConfig(b))throw new Error(`config ${p} is not v2`);const g=new Map((await Promise.all(y.map(async function(k){const{id:A,subdigest:P,signatureType:R}=h.get(k);try{let N=await(await Ip(A,r.options.rateLimitRetryDelayMs,r.options.arweaveUrl)).text();switch(R){case"eip-712":N+="01";break;case"eth_sign":N+="02";break;case"erc-1271":N+="03";break}if(r.eip5719)try{N=z(await r.eip5719.runByEIP5719(k,P,N))}catch{console.warn(`unable to run eip-5719 on config update ${A}`)}const V=de.signer.tryRecoverSigner(P,N);return[[k,{signature:N,isDynamic:V!==k}]]}catch(N){return console.warn(`unable to fetch signer ${k} config update ${A}:`,N),[]}}))).flat()),{encoded:v,weight:m}=Ne.signature.encodeSigners(u,g,[],0);if(mk>BigInt(u.checkpoint))}catch(b){console.warn(`unable to reconstruct wallet ${n} update from config ${f} to config ${p}:`,b),c=c.filter(({toImageHash:g})=>g!==p)}}return l}savePresignedConfiguration(e){throw new Error("arweave backend does not support saving config updates")}saveWitnesses(e){throw new Error("arweave backend does not support saving signatures")}async configOfImageHash(e){var r=this;if(!e.noCache){const s=this.configs.get(e.imageHash);if(s)try{return await s}catch{const o=this.configs.get(e.imageHash);if(o)return o}}const n=async function(s){const i=Object.entries(await Gd({Type:"config",Config:s},r.options)).flatMap(([o,a])=>{try{const c=Number(a.Version);if(!c)throw new Error(`invalid version: ${a.Version}`);return[{id:o,version:c}]}catch(c){return console.warn(`config ${s} at ${o} invalid:`,c),[]}});switch(i.length){case 0:r.configs.set(s,Promise.resolve(void 0));return;case 1:break;default:console.warn(`multiple configs ${s} at ${i.map(({id:o})=>o).join(", ")}`);break}for(const{id:o,version:a}of i)try{const c=bi({},await(await Ip(o,r.options.rateLimitRetryDelayMs,r.options.arweaveUrl)).json(),{version:a});c.tree&&(c.tree=Ql(c.tree));const l=Zt.coderFor(a).config.imageHashOf(c);if(l!==s)throw new Error(`image hash is ${l}, expected ${s}`);return r.configs.set(s,Promise.resolve(c)),c}catch(c){console.warn(`config at ${o} invalid:`,c)}r.configs.set(s,Promise.resolve(void 0))}(e.imageHash);return e.noCache||this.configs.set(e.imageHash,n),n}saveWalletConfig(e){throw new Error("arweave backend does not support saving configs")}async imageHashOfCounterfactualWallet(e){const r=Ae(e.wallet),n=Object.entries(await Gd({Type:"wallet",Wallet:r},this.options)).flatMap(([s,i])=>{try{const{"Deploy-Config":o}=i,a=Number(i["Deploy-Version"]);if(!a)throw new Error(`invalid version: ${i["Deploy-Version"]}`);if(!o)throw new Error("no deploy config");const c=de.context.defaultContexts[a];if(!c)throw new Error(`unknown version: ${a}`);if(de.context.addressOf(c,o)!==r)throw new Error(`incorrect v${a} deploy config: ${o}`);return[{id:s,imageHash:o,context:c}]}catch(o){return console.warn(`wallet ${r} at ${s} invalid:`,o),[]}});switch(n.length){case 0:return;case 1:break;default:console.warn(`multiple deploy configs for wallet ${r} at ${n.map(({id:s})=>s).join(", ")}, using first`);break}return n[0]}saveCounterfactualWallet(e){throw new Error("arweave backend does not support saving wallets")}async walletsOfSigner(e){var r=this;const n=Ae(e.signer),s=new Map;for(const[i,o]of Object.entries(await Gd({Type:["signature","config update"],Signer:n,Witness:e.allSignatures?void 0:"true"},this.options))){const{Wallet:a,Subdigest:c,Digest:l,"Chain-ID":u}=o;try{if(s.has(a))continue;let f;switch(o["Signature-Type"]){case"eip-712":f="01";break;case"eth_sign":f="02";break;case"erc-1271":f="03";break;default:throw new Error(`unknown signature type ${o["Signature-Type"]}`)}if(c!==de.signature.subdigestOf({digest:l,chainId:u,address:a}))throw new Error("incorrect subdigest");const d=Ip(i,this.options.rateLimitRetryDelayMs,this.options.arweaveUrl).then(async function(h){const y=await h.text()+f;if(r.eip5719)try{return z(await r.eip5719.runByEIP5719(n,c,y))}catch{console.warn(`unable to run eip-5719 on signature ${i}`)}return y});s.set(a,{digest:l,chainId:BigInt(u),signature:d})}catch(f){console.warn(`signer ${n} signature ${i} of wallet ${a} invalid:`,f)}}return Promise.all([...s.entries()].map(async function([i,{digest:o,chainId:a,signature:c}]){return{wallet:i,proof:{digest:o,chainId:a,signature:await c}}}))}async getMigration(e,r,n,s){const i=Ae(e),o=Object.entries(await Gd({Type:"migration",Migration:i,"Chain-ID":BigInt(s).toString(),"From-Version":`${n}`,"From-Config":r},this.options)).flatMap(([m,k])=>{try{const{"To-Config":A,Executor:P}=k,R=Number(k["To-Version"]);if(!R)throw new Error(`invalid version: ${k["To-Version"]}`);if(!qe(A,32))throw new Error(`to config is not a hash: ${A}`);if(!ag(P))throw new Error(`executor is not an address: ${P}`);return{id:m,toVersion:R,toImageHash:A,executor:P}}catch(A){return console.warn(`chain ${s} migration ${m} for v${n} wallet ${i} from config ${r} invalid:`,A),[]}});switch(o.length){case 0:return;case 1:break;default:console.warn(`multiple chain ${s} migrations for v${n} wallet ${i} from config ${r} at ${o.map(({id:m})=>m).join(", ")}, using first`);break}const{id:a,toVersion:c,toImageHash:l,executor:u}=o[0],[f,d]=await Promise.all([Ip(a,this.options.rateLimitRetryDelayMs,this.options.arweaveUrl).then(m=>m.text()),this.configOfImageHash({imageHash:l})]);if(!d)throw new Error(`unable to find to config ${l} for migration`);const h=new ut(due),[y,p,b]=h.decodeFunctionData("execute",f),g=de.transaction.fromTxAbiEncode(y),v=de.transaction.subdigestOfTransactions(i,s,p,g);return{tx:{entrypoint:u,transactions:g,nonce:p,chainId:s,intent:{id:v,wallet:i},signature:b},fromVersion:n,toVersion:Number(c),toConfig:d}}saveMigration(e,r,n){throw new Error("arweave backend does not support saving migrations")}}async function Gd(t,e){var r,n,s,i;const o=(r=e==null?void 0:e.namespace)!=null?r:rl.namespace,a=e==null?void 0:e.owners,c=(n=e==null?void 0:e.graphqlUrl)!=null?n:rl.graphqlUrl,l=(s=e==null?void 0:e.rateLimitRetryDelayMs)!=null?s:rl.rateLimitRetryDelayMs,u=(i=e==null?void 0:e.pageSize)!=null?i:100,f=e==null?void 0:e.maxResults,d=Object.entries(t).flatMap(([y,p])=>p===void 0?[]:[`{ name: "${o?`${o}-${y}`:y}", values: [${typeof p=="string"?`"${p}"`:p.map(b=>`"${b}"`).join(", ")}] }`]),h=[];for(let y=!0;y&&(f===void 0||h.length`"${v}"`).join(", ")}]`}) { + pageInfo { + hasNextPage + } + edges { + cursor + node { + id + tags { + name + value + } + } + } + } + } + `;let b;for(;b=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:p}),redirect:"follow"}),b.status===429;)console.warn(`rate limited by ${c}, trying again in ${l/1e3} seconds at ${new Date(Date.now()+l).toLocaleTimeString()}`),await new Promise(v=>setTimeout(v,l));const{data:{transactions:g}}=await b.json();h.push(...g.edges),y=g.pageInfo.hasNextPage}return Object.fromEntries(h.map(({node:{id:y,tags:p}})=>[y,Object.fromEntries(p.map(({name:b,value:g})=>[o&&b.startsWith(`${o}-`)?b.slice(o.length+1):b,g]))]))}async function Ip(t,e=rl.rateLimitRetryDelayMs,r=rl.arweaveUrl){for(;;){const n=await fetch(`${r}/${t}`,{redirect:"follow"});if(n.status!==429)return n;console.warn(`rate limited by ${r}, trying again in ${e/1e3} seconds at ${new Date(Date.now()+e).toLocaleTimeString()}`),await new Promise(s=>setTimeout(s,e))}}function Ql(t){return typeof t=="string"?{nodeHash:t}:typeof t=="object"&&(t==null?void 0:t.node)!==void 0?{nodeHash:t.node}:t instanceof Array&&t.length===2?{left:Ql(t[0]),right:Ql(t[1])}:Ne.config.isNode(t)?{left:Ql(t.left),right:Ql(t.right)}:Ne.config.isNestedLeaf(t)?bi({},t,{tree:Ql(t.tree)}):t}var pue=Object.freeze({__proto__:null,defaults:rl,ArweaveReader:hue});class yue{constructor(e){this.tracker=e}async loadPresignedConfiguration(e){return console.debug("? loadPresignedConfiguration"),Lr(e,"? "),Lr(await this.tracker.loadPresignedConfiguration(e),"! ")}savePresignedConfiguration(e){return console.debug("? savePresignedConfiguration"),Lr(e,"? "),this.tracker.savePresignedConfiguration(e)}saveWitnesses(e){return console.debug("? saveWitnesses"),Lr(e,"? "),this.tracker.saveWitnesses(e)}async configOfImageHash(e){return console.debug("? configOfImageHash"),Lr(e,"? "),Lr(await this.tracker.configOfImageHash(e),"! ")}saveWalletConfig(e){return console.debug("? saveWalletConfig"),Lr(e,"? "),this.tracker.saveWalletConfig(e)}async imageHashOfCounterfactualWallet(e){return console.debug("? imageHashOfCounterfactualWallet"),Lr(e,"? "),Lr(await this.tracker.imageHashOfCounterfactualWallet(e),"! ")}saveCounterfactualWallet(e){return console.debug("? saveCounterfactualWallet"),Lr(e,"? "),this.tracker.saveCounterfactualWallet(e)}async walletsOfSigner(e){return console.debug("? walletsOfSigner"),Lr(e,"? "),Lr(await this.tracker.walletsOfSigner(e),"! ")}async getMigration(e,r,n,s){return console.debug("? getMigration"),Lr({address:e,fromImageHash:r,fromVersion:n,chainId:s},"? "),Lr(await this.tracker.getMigration(e,r,n,s),"! ")}saveMigration(e,r,n){return console.debug("? saveMigration"),Lr({address:e,signed:r,contexts:n},"? "),this.tracker.saveMigration(e,r,n)}}function Lr(t,e=""){switch(t){case void 0:console.debug(e+"undefined");break;default:JSON.stringify(t,Ts,2).split(` +`).map(r=>e+r).forEach(r=>console.debug(r));break}return t}var gue=Object.freeze({__proto__:null,DebugConfigTracker:yue});class fj{constructor(){this.configs={},this.v2Nodes={},this.counterfactualWallets={},this.payloads={},this.signatures={},this.migrations={},this.loadConfig=e=>Promise.resolve(this.configs[e]),this.saveConfig=(e,r)=>(this.configs[e]=r,Promise.resolve()),this.loadV2Node=e=>Promise.resolve(this.v2Nodes[e]),this.saveV2Node=(e,r)=>(this.v2Nodes[e]=r,Promise.resolve()),this.loadCounterfactualWallet=e=>Promise.resolve(this.counterfactualWallets[e]),this.saveCounterfactualWallet=(e,r,n)=>(this.counterfactualWallets[e]={imageHash:r,context:n},Promise.resolve()),this.loadPayloadOfSubdigest=e=>Promise.resolve(this.payloads[e]),this.savePayloadOfSubdigest=(e,r)=>(this.payloads[e]=r,Promise.resolve()),this.loadSubdigestsOfSigner=e=>Promise.resolve(Object.keys(this.signatures[e]||{})),this.loadSignatureOfSubdigest=(e,r)=>{var n;return Promise.resolve((n=this.signatures[e])==null?void 0:n[r])},this.saveSignatureOfSubdigest=(e,r,n)=>(this.signatures[e]||(this.signatures[e]={}),this.signatures[e][r]=n,Promise.resolve()),this.loadMigrationsSubdigest=(e,r,n)=>{var s;return Promise.resolve(((s=this.migrations[e])==null||(s=s[r])==null?void 0:s[n])||[])},this.saveMigrationsSubdigest=(e,r,n,s,i)=>(this.migrations[e]||(this.migrations[e]={}),this.migrations[e][r]||(this.migrations[e][r]={}),this.migrations[e][r][n]||(this.migrations[e][r][n]=[]),this.migrations[e][r][n].push({subdigest:s,toImageHash:i}),Promise.resolve())}}function ju(t){if(t===void 0)return;const e={};for(const r of Object.keys(t)){const n=t[r];n._isBigNumber===!0&&n._hex!==void 0&&typeof n._hex=="string"&&n._hex.length!==""?e[r]=BigInt(n._hex):Array.isArray(n)?e[r]=n.map(s=>ju(s)):typeof n=="object"&&n!==null?e[r]=ju(n):e[r]=n}return e}class vue{constructor(e){var r=this;this.dbName=e,this._lazyDb=void 0,this.loadConfig=async function(n){return(await r.getDb()).get("configs",n).then(i=>ju(i))},this.saveConfig=async function(n,s){await(await r.getDb()).put("configs",s,n)},this.loadV2Node=async function(n){return(await r.getDb()).get("v2Nodes",n).then(i=>ju(i))},this.saveV2Node=async function(n,s){await(await r.getDb()).put("v2Nodes",s,n)},this.loadCounterfactualWallet=async function(n){return(await r.getDb()).get("counterfactualWallets",n)},this.saveCounterfactualWallet=async function(n,s,i){await(await r.getDb()).put("counterfactualWallets",{imageHash:s,context:i},n)},this.loadPayloadOfSubdigest=async function(n){return(await r.getDb()).get("payloads",n).then(i=>ju(i))},this.savePayloadOfSubdigest=async function(n,s){await(await r.getDb()).put("payloads",s,n)},this.loadSubdigestsOfSigner=async function(n){return(await(await r.getDb()).getAllKeysFromIndex("signatures","signer",IDBKeyRange.only(n))).map(o=>o.split("-")[0])},this.loadSignatureOfSubdigest=async function(n,s){const o=await(await r.getDb()).get("signatures",[s,n].join("-"));return o==null?void 0:o.signature},this.saveSignatureOfSubdigest=async function(n,s,i){await(await r.getDb()).put("signatures",{signature:i,signer:n},[s,n].join("-"))},this.loadMigrationsSubdigest=async function(n,s,i){return(await(await r.getDb()).getAllFromIndex("migrations","jump",IDBKeyRange.only([n,s,i]))).map(c=>({subdigest:c.subdigest,toImageHash:c.toImageHash}))},this.saveMigrationsSubdigest=async function(n,s,i,o,a){await(await r.getDb()).put("migrations",{wallet:n,fromVersion:s,toVersion:i,subdigest:o,toImageHash:a},o)}}async getDb(){if(this._lazyDb)return this._lazyDb;const e=this.dbName;return this._lazyDb=await cue(e,1,{upgrade(r,n,s,i){console.log(`upgrading ${e} from ${n} to ${s} - ${i}`),n===0&&(r.createObjectStore("configs"),r.createObjectStore("v2Nodes"),r.createObjectStore("counterfactualWallets"),r.createObjectStore("payloads"),r.createObjectStore("signatures").createIndex("signer","signer",{unique:!1}),r.createObjectStore("migrations").createIndex("jump",["wallet","fromVersion","toVersion"]))}}),this._lazyDb}}function dj(t){return t.left!==void 0&&t.right!==void 0}function hj(t){return t.weight!==void 0&&t.threshold!==void 0&&t.tree!==void 0}function G2(t){return t.version===2&&t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&typeof t.tree=="string"}var mue=Object.freeze({__proto__:null,isPlainNode:dj,isPlainNested:hj,isPlainV2Config:G2,MemoryTrackerStore:fj,recreateBigNumbers:ju,IndexedDBStore:vue});class M5{constructor(e,r=new fj,n=!1){var s=this;this.provider=e,this.store=r,this.useEIP5719=n,this.cachedEIP5719=void 0,this.loadTopology=async function(i){const o=await s.store.loadV2Node(i);if(!o)return{nodeHash:i};if(dj(o)){const[a,c]=await Promise.all([s.loadTopology(o.left),s.loadTopology(o.right)]);return{left:a,right:c}}return hj(o)?{weight:BigInt(o.weight),threshold:BigInt(o.threshold),tree:await s.loadTopology(o.tree)}:o},this.saveTopology=async function(i){if(Ne.config.isNodeLeaf(i))return;const o=Ne.config.hashNode(i);if(Ne.config.isNode(i)){const a=s.saveTopology(i.left),c=s.saveTopology(i.right),l=s.store.saveV2Node(o,{left:Ne.config.hashNode(i.left),right:Ne.config.hashNode(i.right)});await Promise.all([a,c,l]);return}if(Ne.config.isNestedLeaf(i)){const a=s.saveTopology(i.tree),c=s.store.saveV2Node(o,{weight:BigInt(i.weight).toString(),threshold:BigInt(i.threshold).toString(),tree:Ne.config.hashNode(i.tree)});await Promise.all([a,c]);return}if(Ne.config.isSignerLeaf(i))return s.store.saveV2Node(o,{address:i.address,weight:i.weight});if(Ne.config.isSubdigestLeaf(i))return s.store.saveV2Node(o,{subdigest:i.subdigest});throw new Error(`Unknown topology type: ${i}`)},this.saveWalletConfig=async function(i){const{config:o}=i;if(Hi.config.ConfigCoder.isWalletConfig(o)){const a=Hi.config.ConfigCoder.imageHashOf(o);return s.store.saveConfig(a,o)}if(Ne.config.ConfigCoder.isWalletConfig(o)){const a=Ne.config.ConfigCoder.imageHashOf(o);if(Ne.config.isComplete(o.tree))return s.store.saveConfig(a,o)}},this.configOfImageHashCache={},this.configOfImageHash=async function(i){const{imageHash:o}=i;if(s.configOfImageHashCache[i.imageHash])return s.configOfImageHashCache[i.imageHash];const a=await s.store.loadConfig(o);if(a){if(a.version===1||a.version===2&&!G2(a))return s.configOfImageHashCache[i.imageHash]=a,a;if(G2(a)){const c={version:2,threshold:BigInt(a.threshold),checkpoint:BigInt(a.checkpoint),tree:await s.loadTopology(a.tree)};return s.configOfImageHashCache[i.imageHash]=c,c}throw new Error(`Unknown config type: ${a}`)}},this.saveCounterfactualWallet=async function(i){const{config:o,context:a}=i,c=Zt.genericCoderFor(o.version).config.imageHashOf(o);await Promise.all([s.saveWalletConfig({config:o}),...a.map(l=>{const u=de.context.addressOf(l,c);return s.store.saveCounterfactualWallet(u,c,l)})])},this.imageHashOfCounterfactualWallet=async function(i){const{wallet:o}=i,a=await s.store.loadCounterfactualWallet(o);if(a)return{imageHash:a.imageHash,context:a.context}},this.savePayload=async function(i){const{payload:o}=i,a=de.signature.subdigestOf(o);await s.store.savePayloadOfSubdigest(a,o)},this.payloadOfSubdigestCache={},this.payloadOfSubdigest=async function(i){if(s.payloadOfSubdigestCache[i.subdigest])return s.payloadOfSubdigestCache[i.subdigest];const{subdigest:o}=i,a=await s.store.loadPayloadOfSubdigest(o);return a&&(s.payloadOfSubdigestCache[o]=a),a},this.savePresignedConfiguration=async function(i){const o=Ne.signature.SignatureCoder.decode(i.signature),a=Zt.genericCoderFor(i.nextConfig.version).config.imageHashOf(i.nextConfig),c=Ne.chained.messageSetImageHash(a),l=Me(c),u={message:c,address:i.wallet,chainId:0,digest:l},f=s.savePayload({payload:u}),d=s.saveWalletConfig({config:i.nextConfig}),h=await Ne.signature.SignatureCoder.recover(o,u,s.provider),y=Ne.signature.signaturesOf(h.config.tree);await Promise.all([f,d,s.saveWalletConfig({config:h.config}),...y.map(p=>s.store.saveSignatureOfSubdigest(p.address,h.subdigest,p.signature))])},this.loadPresignedConfiguration=async function(i){const{wallet:o,fromImageHash:a,longestPath:c}=i,l=await s.configOfImageHash({imageHash:a});if(!l||!Ne.config.ConfigCoder.isWalletConfig(l))return[];const u=Ne.config.signersOf(l.tree).map(m=>m.address),f=await Promise.all(u.map(m=>s.store.loadSubdigestsOfSigner(m))),d=[...new Set(f.flat())],y=(await Promise.all([...new Set(d)].map(async function(m){return bi({},await s.payloadOfSubdigest({subdigest:m}),{subdigest:m})}))).filter(m=>(m==null?void 0:m.message)&&(m==null?void 0:m.address)&&m.address===o).map(m=>({payload:m,nextImageHash:Ne.chained.decodeMessageSetImageHash(m.message)})).filter(m=>m==null?void 0:m.nextImageHash);let p;const g=(await Promise.all(y.map(async function({nextImageHash:m,payload:k}){const A=await s.configOfImageHash({imageHash:m});if(!A||!Ne.config.isWalletConfig(A))return;const P=BigInt(A.checkpoint);return{nextConfig:A,nextCheckpoint:P,nextImageHash:m,payload:k}}))).filter(m=>m!==void 0).filter(m=>m.nextCheckpoint>BigInt(l.checkpoint)).sort((m,k)=>m.nextCheckpoint>k.nextCheckpoint?c?1:-1:c?-1:1);for(const m of g){const{nextConfig:k,nextCheckpoint:A,nextImageHash:P,payload:R}=m;if(p){const F=p.checkpoint;if(c){if(A>=F)continue}else if(A<=F)continue}const N=new Map((await Promise.all(u.map(async function(F){const X=await s.store.loadSignatureOfSubdigest(F,R.subdigest);if(!X)return[F,void 0];const re=z(s.useEIP5719?await s.cachedEIP5719.runByEIP5719(F,R.subdigest,X):X),le=de.signer.tryRecoverSigner(R.subdigest,re)!==F;return[F,{isDynamic:le,signature:re}]}))).filter(F=>!!F[1]));if(N.size===0)continue;const V=Ne.signature.SignatureCoder.encodeSigners(l,N,[],0);V.weightde.signer.canRecover(c)).map(c=>{const l=de.signer.recoverSigner(a,c);return s.store.saveSignatureOfSubdigest(l,a,c)})])},this.walletsOfSigner=async function(i){const o=await s.store.loadSubdigestsOfSigner(i.signer),a=await Promise.all(o.map(l=>s.payloadOfSubdigest({subdigest:l}))).then(l=>l.filter(u=>u!==void 0)),c=[];for(const l of a){const u=l.address;if(c.find(h=>h.wallet===u))continue;const f=de.signature.subdigestOf(l),d=await s.store.loadSignatureOfSubdigest(i.signer,f);d&&c.push({wallet:u,proof:{digest:l.digest,chainId:BigInt(l.chainId),signature:z(d)}})}return c},this.cachedEIP5719=new aj(e)}async saveMigration(e,r,n){const s=r.fromVersion;if(s!==1)throw new Error("Migration not supported");if(!Ne.config.isWalletConfig(r.toConfig))throw new Error("Invalid to config");const{newImageHash:i,address:o}=LD.v1v2.decodeTransaction(r.tx,n);if(o!==e)throw new Error("Invalid migration transaction - address");if(Ne.config.ConfigCoder.imageHashOf(r.toConfig)!=i)throw new Error("Invalid migration transaction - config");const a=de.transaction.packMetaTransactionsData(r.tx.nonce,r.tx.transactions),c=Me(a),l={chainId:r.tx.chainId,message:a,address:e,digest:c},u=de.signature.subdigestOf(l),f=this.savePayload({payload:l}),d=this.saveWalletConfig({config:r.toConfig}),h=Hi.signature.SignatureCoder.decode(r.tx.signature),y=await Hi.signature.SignatureCoder.recover(h,l,this.provider),p=Hi.signature.SignatureCoder.signaturesOf(y.config);await Promise.all([f,d,this.saveWalletConfig({config:y.config}),this.store.saveMigrationsSubdigest(e,s,s+1,u,i),...p.map(b=>this.store.saveSignatureOfSubdigest(b.address,y.subdigest,b.signature))])}async getMigration(e,r,n,s){var i=this;const[o,a]=await Promise.all([this.configOfImageHash({imageHash:r}),this.store.loadMigrationsSubdigest(e,n,n+1)]),c=Zt.coderFor(n);return!o||!c.config.isWalletConfig(o)?void 0:(await Promise.all(a.map(async function(u){const{subdigest:f,toImageHash:d}=u,h=await i.payloadOfSubdigest({subdigest:f});if(!h||!h.message||BigInt(s)!==BigInt(h.chainId))return;const y=c.config.signersOf(o).map(m=>m.address),p=new Map((await Promise.all(y.map(async function(m){const k=await i.store.loadSignatureOfSubdigest(m,f);if(!k)return[m,void 0];const A=z(i.useEIP5719?await i.cachedEIP5719.runByEIP5719(m,f,k):k),P=de.signer.tryRecoverSigner(f,A)!==m;return[m,{isDynamic:P,signature:A}]}))).filter(m=>!!m[1])),b=c.signature.encodeSigners(o,p,[],s);if(!b||b.weightu.filter(f=>f!==void 0)))[0]}updateProvider(e){this.provider=e}}var xue=Object.freeze({__proto__:null,LocalConfigTracker:M5});let Yx=function(t){return t.EIP712="EIP712",t.EthSign="EthSign",t.EIP1271="EIP1271",t}({});class bue{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Sessions/",this.ping=(n,s)=>this.fetch(this.url("Ping"),Fn({},n,s)).then(i=>Un(i).then(o=>({})),i=>{throw mn.new({cause:`fetch(): ${i.message||""}`})}),this.config=(n,s,i)=>this.fetch(this.url("Config"),Fn(n,s,i)).then(o=>Un(o).then(a=>({version:a.version,config:a.config})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.wallets=(n,s,i)=>this.fetch(this.url("Wallets"),Fn(n,s,i)).then(o=>Un(o).then(a=>({wallets:a.wallets,cursor:a.cursor})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.deployHash=(n,s,i)=>this.fetch(this.url("DeployHash"),Fn(n,s,i)).then(o=>Un(o).then(a=>({deployHash:a.deployHash,context:a.context})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.configUpdates=(n,s,i)=>this.fetch(this.url("ConfigUpdates"),Fn(n,s,i)).then(o=>Un(o).then(a=>({updates:a.updates})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.migrations=(n,s,i)=>this.fetch(this.url("Migrations"),Fn(n,s,i)).then(o=>Un(o).then(a=>({migrations:a.migrations})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.saveConfig=(n,s,i)=>this.fetch(this.url("SaveConfig"),Fn(n,s,i)).then(o=>Un(o).then(a=>({})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.saveWallet=(n,s,i)=>this.fetch(this.url("SaveWallet"),Fn(n,s,i)).then(o=>Un(o).then(a=>({})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignature=(n,s,i)=>this.fetch(this.url("SaveSignature"),Fn(n,s,i)).then(o=>Un(o).then(a=>({})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignerSignatures=(n,s,i)=>this.fetch(this.url("SaveSignerSignatures"),Fn(n,s,i)).then(o=>Un(o).then(a=>({})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignerSignatures2=(n,s,i)=>this.fetch(this.url("SaveSignerSignatures2"),Fn(n,s,i)).then(o=>Un(o).then(a=>({})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.saveMigration=(n,s,i)=>this.fetch(this.url("SaveMigration"),Fn(n,s,i)).then(o=>Un(o).then(a=>({})),o=>{throw mn.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e.replace(/\/*$/,""),this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Fn=(t={},e={},r=null)=>({method:"POST",headers:bi({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Un=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),bj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Nue[n]||gn).new(r)}return r});let gn=class pj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,pj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},wue=class yj extends gn{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yj.prototype)}},mn=class gj extends gn{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gj.prototype)}},Eue=class vj extends gn{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vj.prototype)}},Cue=class mj extends gn{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mj.prototype)}},kue=class xj extends gn{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xj.prototype)}},bj=class wj extends gn{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wj.prototype)}},Sue=class Ej extends gn{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ej.prototype)}},Aue=class Cj extends gn{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Cj.prototype)}},Tue=class kj extends gn{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,kj.prototype)}},Iue=class Sj extends gn{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Sj.prototype)}},Pue=class Aj extends gn{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Aj.prototype)}},Oue=class Tj extends gn{constructor(e="InvalidArgument",r=1,n="invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Tj.prototype)}},Rue=class Ij extends gn{constructor(e="NotFound",r=2,n="not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ij.prototype)}};const Nue={0:wue,[-1]:mn,[-2]:Eue,[-3]:Cue,[-4]:kue,[-5]:bj,[-6]:Sue,[-7]:Aue,[-8]:Tue,[-9]:Iue,[-10]:Pue,1:Oue,2:Rue};class _ue{constructor(e,r=!0){this.onlyRecoverable=r,this.sessions=void 0,this.sessions=new bue(e,fetch)}async loadPresignedConfiguration(e){try{const{updates:r}=await this.sessions.configUpdates({wallet:e.wallet,fromImageHash:e.fromImageHash,allUpdates:e.longestPath});return r.map(({toImageHash:n,signature:s})=>({wallet:e.wallet,nextImageHash:n,signature:s}))}catch(r){if(Xx(r))return[];throw r}}async savePresignedConfiguration(e){const r=e.nextConfig,n=Zt.genericCoderFor(r.version).config.imageHashOf(r),s=Ne.signature.setImageHashStruct(n),i=Me(s);await this.sessions.saveSignature({wallet:e.wallet,digest:i,chainID:"0",signature:e.signature,toConfig:Pp(r),referenceChainID:e.referenceChainId})}async saveWitnesses(e){let r=e.signatures;this.onlyRecoverable&&(r=r.filter(n=>de.signer.canRecover(n))),await this.sessions.saveSignerSignatures({wallet:e.wallet,digest:e.digest,chainID:yu(e.chainId),signatures:r})}async configOfImageHash(e){try{const{version:r,config:n}=await this.sessions.config(e);return Mue(r,n)}catch(r){if(Xx(r))return;throw r}}async saveWalletConfig(e){const r=Pp(e.config);await this.sessions.saveConfig({version:e.config.version,config:r})}async imageHashOfCounterfactualWallet(e){try{const{deployHash:r,context:n}=await this.sessions.deployHash(e);return{imageHash:r,context:n}}catch(r){if(Xx(r))return;throw r}}async saveCounterfactualWallet(e){const r=Pp(e.config);await this.sessions.saveWallet({version:e.config.version,deployConfig:r})}async walletsOfSigner(e){const{wallets:r}=await this.sessions.wallets(e);return Object.entries(r).map(([n,{digest:s,chainID:i,type:o,signature:a}])=>{switch(o){case Yx.EIP712:a+=On(de.signer.SigType.EIP712).slice(2);break;case Yx.EthSign:a+=On(de.signer.SigType.ETH_SIGN).slice(2);break;case Yx.EIP1271:a+=On(de.signer.SigType.WALLET_BYTES32).slice(2);break}return{wallet:n,proof:{digest:s,signature:a,chainId:BigInt(i)}}})}async getMigration(e,r,n,s){var i=this;const o=yu(s),{migrations:a}=await this.sessions.migrations({wallet:e,fromVersion:n,fromImageHash:r,chainID:o}),c=async function(f){const d=a[f];if(d){const h=Object.keys(d).map(Number).sort((y,p)=>p-y);for(const y of h)for(const[p,b]of Object.entries(d[y]))try{const g=await i.configOfImageHash({imageHash:p});if(g)return{fromVersion:n,toVersion:y,toConfig:g,tx:{entrypoint:b.executor,transactions:b.transactions,nonce:b.nonce,signature:b.signature,chainId:f,intent:{id:de.transaction.subdigestOfTransactions(e,f,b.nonce,b.transactions),wallet:e}}}}catch(g){console.error(g)}}},l=await c(o);if(l)return l;for(const u in a)if(u!==o){const f=await c(u);if(f)return f}}async saveMigration(e,r,n){await this.sessions.saveMigration({wallet:e,fromVersion:r.fromVersion,toVersion:r.toVersion,toConfig:Pp(r.toConfig),executor:r.tx.entrypoint,transactions:r.tx.transactions.map(Due),nonce:yu(r.tx.nonce),signature:r.tx.signature,chainID:yu(r.tx.chainId)})}}function Pp(t){switch(t.version){case 1:if(Hi.config.ConfigCoder.isWalletConfig(t))return{threshold:bc(t.threshold),signers:t.signers.map(({weight:e,address:r})=>({weight:bc(e),address:r}))};throw new Error(`not a v${t.version} config: ${t}`);case 2:if(Ne.config.ConfigCoder.isWalletConfig(t))return{threshold:bc(t.threshold),checkpoint:bc(t.checkpoint),tree:py(t.tree)};throw new Error(`not a v${t.version} config: ${t}`);default:throw new Error(`unknown version ${t.version}`)}}function py(t){return Ne.config.isNode(t)?{left:py(t.left),right:py(t.right)}:Ne.config.isSignerLeaf(t)?{weight:bc(t.weight),address:t.address}:Ne.config.isNestedLeaf(t)?{weight:bc(t.weight),threshold:bc(t.threshold),tree:py(t.tree)}:Ne.config.isNodeLeaf(t)?{node:t.nodeHash}:bi({},t)}function Mue(t,e){switch(t){case 1:return bi({},e,{version:t});case 2:return bi({},e,{version:t,tree:yy(e.tree)});default:throw new Error(`unknown version ${t}`)}}function yy(t){switch(typeof t){case"object":const e=bi({},t);return e.left!==void 0&&(e.left=yy(e.left)),e.right!==void 0&&(e.right=yy(e.right)),e.tree!==void 0&&(e.tree=yy(e.tree)),e.node!==void 0&&(e.nodeHash=e.node,delete e.node),e;default:throw new Error(`v2 config tree ${t} is not an object`)}}function Due(t){return{to:t.to,value:t.value!==void 0?yu(t.value):void 0,data:t.data!==void 0?z(t.data):void 0,gasLimit:t.gasLimit!==void 0?yu(t.gasLimit):void 0,delegateCall:t.delegateCall,revertOnError:t.revertOnError}}function bc(t){return Number(t)}function yu(t){return BigInt(t).toString()}function Xx(t){return typeof t=="object"&&t.status===404}var Bue=Object.freeze({__proto__:null,RemoteConfigTracker:_ue});function q2(t,e,r){return new Promise(n=>{let s=0;t.forEach(i=>i.then(o=>{r(o)?n(o):(s++,s===t.length&&n(e))}).catch(()=>{s++,s===t.length&&n(e)}))})}async function hh(t,e){return Promise.all(t.map(r=>r.catch(()=>e)))}class Lue{constructor(e){this.trackers=e}async configOfImageHash(e){const r=this.trackers.map(async function(a,c){return{res:await a.configOfImageHash(e),i:c}}),n=await q2(r,void 0,a=>(a==null?void 0:a.res)===void 0?!1:Zt.genericCoderFor(a.res.version).config.isComplete(a.res));if(n!=null&&n.res)return this.saveWalletConfig({config:n.res,skipTracker:n.i}),n.res;const s=new M5(void 0),i=await hh(r,void 0);for(const a of i)a!=null&&a.res&&await s.saveWalletConfig({config:a.res});const o=await s.configOfImageHash(e);return o&&this.saveWalletConfig({config:o}),o}async saveWalletConfig(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveWalletConfig(e)}))}async imageHashOfCounterfactualWallet(e){const r=await q2(this.trackers.map(n=>n.imageHashOfCounterfactualWallet(e)),void 0,n=>!!n);return r&&this.configOfImageHash({imageHash:r.imageHash}).then(n=>{n&&this.saveCounterfactualWallet({config:n,context:[r.context]})}),r}async saveCounterfactualWallet(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveCounterfactualWallet(e)}))}async walletsOfSigner(e){const r=await hh(this.trackers.map(o=>o.walletsOfSigner(e)),[]).then(o=>o.flat()),n={};for(const o of r)n[o.wallet]=o.proof;const s=Object.keys(n).map(o=>({wallet:o,proof:n[o]})),i=new Map;return s.forEach(({wallet:o,proof:{digest:a,chainId:c,signature:l}})=>{const u=`${o}-${a}-${c}`;let f=i.get(u);f||(f={wallet:o,digest:a,chainId:c,signatures:[]},i.set(u,f)),f.signatures.push(l)}),i.forEach(o=>this.saveWitnesses(o)),s}async saveWitnesses(e){await Promise.all(this.trackers.map(r=>r.saveWitnesses(e)))}async loadPresignedConfiguration(e){var r=this;const n=await hh(this.trackers.map(c=>c.loadPresignedConfiguration(e)),[]),i=(await hh(n.map(async function(c){const l=c[c.length-1],u=await r.configOfImageHash({imageHash:l.nextImageHash});if(u)return{checkpoint:Zt.genericCoderFor(u.version).config.checkpointOf(u),result:c}}),void 0)).reduce((c,l)=>l&&(!c||l.checkpoint>c.checkpoint)?l:c);if(!i)return[];const o=new Map,a=c=>(o.has(c)||o.set(c,this.configOfImageHash({imageHash:c})),o.get(c));return i.result.forEach(async function(c){const l=await a(c.nextImageHash);l&&r.savePresignedConfiguration({wallet:e.wallet,nextConfig:l,signature:c.signature})}),i.result}async savePresignedConfiguration(e){await Promise.all(this.trackers.map(r=>r.savePresignedConfiguration(e)))}async getMigration(e,r,n,s){return(await Promise.all(this.trackers.map(o=>o.getMigration(e,r,n,s)))).find(o=>!!o)}async saveMigration(e,r,n){await Promise.all(this.trackers.map(s=>s.saveMigration(e,r,n)))}}class jue{constructor(e,r,n){this.tracker=e,this.cache=r,this.contexts=n}async loadPresignedConfiguration(e){var r=this;const n=[this.tracker.loadPresignedConfiguration(e),this.cache.loadPresignedConfiguration(e)];let s;const[i,o]=await Promise.all(n);if(i.length>0&&o.length>0&&i[i.length-1].nextImageHash===o[o.length-1].nextImageHash)s=e.longestPath===!0?i.length>o.length?i:o:i.lengthf&&(!u||f.checkpoint>u.checkpoint)?f:u))==null?void 0:c.result)!=null?a:[]}return s||[]}async savePresignedConfiguration(e){await Promise.all([this.tracker.savePresignedConfiguration(e),this.cache.savePresignedConfiguration(e)])}async configOfImageHash(e){if(e.noCache!==!0){const n=await this.cache.configOfImageHash(e);if(n)return n}const r=await this.tracker.configOfImageHash(e);return r&&await this.cache.saveWalletConfig({config:r}),r}async saveWalletConfig(e){await Promise.all([this.tracker.saveWalletConfig(e),this.cache.saveWalletConfig(e)])}async imageHashOfCounterfactualWallet(e){if(e.noCache!==!0){const n=await this.cache.imageHashOfCounterfactualWallet(e);if(n)return n}const r=await this.tracker.imageHashOfCounterfactualWallet(e);if(r){const n=await this.configOfImageHash({imageHash:r.imageHash});n&&await this.cache.saveCounterfactualWallet({config:n,context:[r.context]})}return r}async saveCounterfactualWallet(e){await Promise.all([this.tracker.saveCounterfactualWallet(e),this.cache.saveCounterfactualWallet(e)])}async walletsOfSigner(e){if(e.noCache)return this.tracker.walletsOfSigner(e);const r=await Promise.all([this.tracker.walletsOfSigner(e),this.cache.walletsOfSigner(e)]),n=new Map;for(const s of r)for(const i of s)n.set(i.wallet,i);return Array.from(n.values())}async saveWitnesses(e){await Promise.all([this.tracker.saveWitnesses(e),this.cache.saveWitnesses(e)])}async getMigration(e,r,n,s){const i=await this.cache.getMigration(e,r,n,s);if(i)return i;const o=await this.tracker.getMigration(e,r,n,s);return o&&await this.cache.saveMigration(e,o,this.contexts),o}async saveMigration(e,r,n){await Promise.all([this.tracker.saveMigration(e,r,n),this.cache.saveMigration(e,r,n)])}}class O8{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Dr(JSON.stringify(s,Fue))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}}function Fue(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):typeof e=="bigint"?e.toString():e}function Uue(t){return t instanceof Pj}class Pj{constructor(e,r=50,n=!1){this.tracker=e,this.window=r,this.verbose=n,this.cache=new O8}invalidateCache(){this.cache=new O8}configOfImageHash(e){return this.cache.do("configOfImageHash",this.window,r=>this.tracker.configOfImageHash(r),e)}getMigration(e,r,n,s){return this.cache.do("getMigration",this.window,(...i)=>this.tracker.getMigration(...i),e,r,n,s)}saveMigration(e,r,n){return this.cache.do("saveMigration",void 0,(...s)=>this.tracker.saveMigration(...s),e,r,n)}loadPresignedConfiguration(e){return this.cache.do("loadPresignedConfiguration",this.window,r=>this.tracker.loadPresignedConfiguration(r),e)}savePresignedConfiguration(e){return this.cache.do("savePresignedConfiguration",void 0,r=>this.tracker.savePresignedConfiguration(r),e)}saveWitnesses(e){return this.cache.do("saveWitnesses",void 0,r=>this.tracker.saveWitnesses(r),e)}saveWalletConfig(e){return this.cache.do("saveWalletConfig",void 0,r=>this.tracker.saveWalletConfig(r),e)}imageHashOfCounterfactualWallet(e){return this.cache.do("imageHashOfCounterfactualWallet",void 0,r=>this.tracker.imageHashOfCounterfactualWallet(r),e)}saveCounterfactualWallet(e){return this.cache.do("saveCounterfactualWallet",void 0,r=>this.tracker.saveCounterfactualWallet(r),e)}walletsOfSigner(e){return this.cache.do("walletsOfSigner",this.window,r=>this.tracker.walletsOfSigner(r),e)}updateProvider(e){this.tracker instanceof M5&&this.tracker.updateProvider(e)}}var D5=Object.freeze({__proto__:null,arweave:pue,debug:gue,local:xue,remote:Bue,stores:mue,raceUntil:q2,allSafe:hh,MultipleTracker:Lue,CachedTracker:jue,isDedupedTracker:Uue,DedupedTracker:Pj});const $ue=Object.freeze(Object.defineProperty({__proto__:null,tracker:fue,trackers:D5},Symbol.toStringTag,{value:"Module"})),Oj=60*60*24*7,Wue=60;class R8{constructor(e,r,n={},s){this.account=e,this.settings=r,this.status=n,this._initialAuthRequest=void 0,this.proofStrings=new Map,this.onAuthCallbacks=[],this.apiClient=void 0,this.metadataClient=void 0,this.indexerClients=new Map,this.projectAccessKey=void 0,this.projectAccessKey=s}now(){return Math.floor(Date.now()/1e3)}get expiration(){var e;return Math.max((e=this.settings.metadata.expiration)!=null?e:Oj,120)}onAuth(e){return this.onAuthCallbacks.push(e),()=>this.onAuthCallbacks=this.onAuthCallbacks.filter(r=>r!==e)}async dump(){return this.status.jwt?{jwt:{token:await this.status.jwt.token,expiration:this.status.jwt.expiration},metadata:this.status.metadata}:{metadata:this.settings.metadata}}auth(e=5){var r=this;return this._initialAuthRequest?this._initialAuthRequest:(this._initialAuthRequest=async function(){const n=r.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");let s;for(let i=1;;i++)try{s=(await r.getJWT(!0)).token;break}catch(o){if(i===e)throw console.error(`couldn't authenticate after ${e} attempts`,o),o}return new uy(n,void 0,s)}(),this._initialAuthRequest)}async getJWT(e){var r=this;const n=this.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");if(this.status.jwt){const l=this.status.jwt,u=await l.token;if(this.now(){throw this.status.jwt=void 0,l}),expiration:o};return this.status.jwt=a,a.token.then(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"fulfilled",value:l})}catch{}})}).catch(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"rejected",reason:l})}catch{}})}),{token:await a.token,expiration:o}}getProofStringKey(){return`${this.account.address} - ${this.settings.metadata.name}`}async isProofStringValid(e){try{const r=new wg,n=BigInt(this.settings.sequenceApiChainId),s=Ns(this.account.networks,n);if(!s)throw Error("No network found");r.chainId=Number(n);const i=new lt(s.name,n);return r.provider=new cr(N0(s.rpcUrl,this.projectAccessKey),i,{staticNetwork:i}),await r.decodeProof(e),!0}catch{return!1}}async getAPIClient(e=!0){if(!this.apiClient){const r=this.settings.sequenceApiUrl;if(!r)throw Error("No sequence api url");const n=(await this.getJWT(e)).token;this.apiClient=new uy(r,void 0,n)}return this.apiClient}async getMetadataClient(e=!0){if(!this.metadataClient){const r=(await this.getJWT(e)).token;this.metadataClient=new oj(this.settings.sequenceMetadataUrl,void 0,r)}return this.metadataClient}async getIndexerClient(e,r=!0){const n=Ns(this.account.networks,e);if(!n)throw Error(`No network for chain ${e}`);if(!this.indexerClients.has(n.chainId))if(n.indexer)this.indexerClients.set(n.chainId,n.indexer);else if(n.indexerUrl){const s=(await this.getJWT(r)).token;this.indexerClients.set(n.chainId,new EL(n.indexerUrl,void 0,s))}else throw Error(`No indexer url for chain ${e}`);return this.indexerClients.get(n.chainId)}getProofString(e){if(this.proofStrings.has(e)){const l=this.proofStrings.get(e);if(this.now()(r.signature=l,n.encodeProof(r,!0))).catch(l=>{throw this.proofStrings.delete(e),l}),expiration:a};return this.proofStrings.set(e,c),c}}const Rj=async(t,e,r)=>{const n=Ae(await t.getAddress());if(!n||n===""||n==="0x")throw Nj;const s=new a5;if(s.address=n,!r||!r.app||r.app==="")throw new B5("authorization options requires app to be set");s.claims.app=r.app,s.claims.ogn=r.origin,s.claims.n=r.nonce,s.setExpiryIn(r.expiry?Math.max(r.expiry,200):Oj);const i=s.messageTypedData(),o=$M(e);s.signature=await(t instanceof Qi?t.signTypedData(i.domain,i.types,i.message,o,"eip6492"):t.signTypedData(i.domain,i.types,i.message,o));const c=await new wg().encodeProof(s,!0);return{typedData:i,proofString:c}};class B5 extends Error{constructor(e){super(e),this.name="AuthError"}}const Nj=new B5("auth error: account address is empty");function uc(){return uc=Object.assign?Object.assign.bind():function(t){for(var e=1;eF.wallet));let N;if(R){if(f==null||f(R),N=new Qi({address:R,tracker:m,networks:v,contexts:g,orchestrator:p,projectAccessKey:b}),l&&l.length>0){let F=await N.status(A);if(F.original.version!==F.version||N.version!==F.version){const{migratedAllChains:le,failedChains:ee}=await N.isMigratedAllChains();if(ee.some(B=>K2.includes(B)))throw Error(`Failed to fetch account status on ${ee.join(", ")}`);if(!le){if(y&&!await y(N))throw Error("Migration cancelled, cannot open session");const{failedChains:B}=await N.signAllMigrations(h||(Z=>Z));if(B.some(Z=>K2.includes(Z)))throw Error(`Failed to sign migrations on ${B.join(", ")}`);D5.isDedupedTracker(m)&&m.invalidateCache();let G;if([G,F]=await Promise.all([N.isMigratedAllChains().then(Z=>Z.migratedAllChains),N.status(A)]),!G)throw Error("Failed to migrate account")}}F.onChain.version!==F.version&&await N.doBootstrap(A,void 0,F);const X=F.config,re=N.coders.config.editConfig(X,{add:l,threshold:c});if(N.coders.config.imageHashOf(X)!==N.coders.config.imageHashOf(re)){const le=N.coders.config.editConfig(re,{checkpoint:N.coders.config.checkpointOf(X)+1n});await N.updateConfig(le)}}}else{if(!l||l.length===0)throw Error("Cannot create new account without signers");if(!c)throw Error("Cannot create new account without threshold");if(N=await Qi.new({config:{threshold:c,checkpoint:0,signers:l},tracker:m,contexts:g,orchestrator:p,networks:v,projectAccessKey:b}),f==null||f(N.address),await N.publishWitness(),!(await m.walletsOfSigner({signer:a,noCache:!0})).some(X=>X.wallet===N.address))throw Error("Account not found on tracker")}let V;return k&&(V=new R8(N,k),V.auth(),V.onAuth(F=>{F.status==="fulfilled"&&N.setJwt(F.value)})),new $h(v,g,N,V)}static async load(e){const{dump:r,settings:n,editConfigOnMigration:s,onMigration:i,orchestrator:o}=e,{contexts:a,networks:c,tracker:l,services:u}=uc({},gy,n);let f;if(_j(r)){var d,h,y;const k=r.config.address||de.context.addressOf(a[1],Hi.config.ConfigCoder.imageHashOf(uc({},r.config,{version:1}))),A=((d=(h=r.jwt)==null?void 0:h.expiration)!=null?d:0)P.migratedAllChains)){if(i&&!await i(f))throw Error("Migration cancelled, cannot open session");if(console.log("Migrating account..."),await f.signAllMigrations(s),!await f.isMigratedAllChains().then(P=>P.migratedAllChains))throw Error("Failed to migrate account")}}else if(Mj(r)){var p,b,g;const k=((p=(b=r.jwt)==null?void 0:b.expiration)!=null?p:0)async(n,s,i)=>{const o=i.messageDigest();return{isValid:await t(s).isValidSignature(i.address,o,i.signature)}},zue=Object.freeze(Object.defineProperty({__proto__:null,AuthError:B5,CRITICAL_CHAINS:K2,ErrAccountIsRequired:Nj,Session:$h,SessionSettingsDefault:gy,ValidateSequenceWalletProof:Vue,isSessionDumpV1:_j,isSessionDumpV2:Mj,signAuthorization:Rj},Symbol.toStringTag,{value:"Module"}));function Og(){return Og=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),kr({},n,s)).then(i=>Sr(i).then(o=>({status:o.status})),i=>{throw ur.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),kr({},n,s)).then(i=>Sr(i).then(o=>({version:o.version})),i=>{throw ur.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),kr({},n,s)).then(i=>Sr(i).then(o=>({status:o.status})),i=>{throw ur.new({cause:`fetch(): ${i.message||""}`})}),this.getSignerConfig=(n,s,i)=>this.fetch(this.url("GetSignerConfig"),kr(n,s,i)).then(o=>Sr(o).then(a=>({signerConfig:a.signerConfig})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.sign=(n,s,i)=>this.fetch(this.url("Sign"),kr(n,s,i)).then(o=>Sr(o).then(a=>({sig:a.sig})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.signWith=(n,s,i)=>this.fetch(this.url("SignWith"),kr(n,s,i)).then(o=>Sr(o).then(a=>({sig:a.sig})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.patch=(n,s,i)=>this.fetch(this.url("Patch"),kr(n,s,i)).then(o=>Sr(o).then(a=>({txs:a.txs})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.authMethods=(n,s,i)=>this.fetch(this.url("AuthMethods"),kr(n,s,i)).then(o=>Sr(o).then(a=>({methods:a.methods,active:a.active})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.setPIN=(n,s,i)=>this.fetch(this.url("SetPIN"),kr(n,s,i)).then(o=>Sr(o).then(a=>({})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.resetPIN=(n,s,i)=>this.fetch(this.url("ResetPIN"),kr(n,s,i)).then(o=>Sr(o).then(a=>({})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.createTOTP=(n,s,i)=>this.fetch(this.url("CreateTOTP"),kr(n,s,i)).then(o=>Sr(o).then(a=>({uri:a.uri})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.commitTOTP=(n,s,i)=>this.fetch(this.url("CommitTOTP"),kr(n,s,i)).then(o=>Sr(o).then(a=>({codes:a.codes})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.resetTOTP=(n,s,i)=>this.fetch(this.url("ResetTOTP"),kr(n,s,i)).then(o=>Sr(o).then(a=>({})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.reset2FA=(n,s,i)=>this.fetch(this.url("Reset2FA"),kr(n,s,i)).then(o=>Sr(o).then(a=>({})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.recoveryCodes=(n,s,i)=>this.fetch(this.url("RecoveryCodes"),kr(n,s,i)).then(o=>Sr(o).then(a=>({codes:a.codes})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.resetRecoveryCodes=(n,s,i)=>this.fetch(this.url("ResetRecoveryCodes"),kr(n,s,i)).then(o=>Sr(o).then(a=>({codes:a.codes})),o=>{throw ur.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const kr=(t={},e={},r=null)=>({method:"POST",headers:Og({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Sr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Wj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(sfe[n]||Ut).new(r)}return r});let Ut=class Bj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,Bj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},Hue=class Lj extends Ut{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Lj.prototype)}},ur=class jj extends Ut{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jj.prototype)}},Gue=class Fj extends Ut{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Fj.prototype)}},que=class Uj extends Ut{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Uj.prototype)}},Kue=class $j extends Ut{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$j.prototype)}},Wj=class Vj extends Ut{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Vj.prototype)}},Que=class zj extends Ut{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zj.prototype)}},Jue=class Hj extends Ut{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Hj.prototype)}},Yue=class Gj extends Ut{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Gj.prototype)}},Xue=class qj extends Ut{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qj.prototype)}},Zue=class Kj extends Ut{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Kj.prototype)}},efe=class Qj extends Ut{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Qj.prototype)}},tfe=class Jj extends Ut{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Jj.prototype)}};class L5 extends Ut{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,L5.prototype)}}class j5 extends Ut{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,j5.prototype)}}class F5 extends Ut{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,F5.prototype)}}let rfe=class Yj extends Ut{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Yj.prototype)}};class U5 extends Ut{constructor(e="ValidationFailed",r=2004,n="Validation Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,U5.prototype)}}let nfe=class Xj extends Ut{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Xj.prototype)}};const sfe={0:Hue,[-1]:ur,[-2]:Gue,[-3]:que,[-4]:Kue,[-5]:Wj,[-6]:Que,[-7]:Jue,[-8]:Yue,[-9]:Xue,[-10]:Zue,1e3:efe,1002:tfe,1005:L5,2001:j5,2002:F5,2003:rfe,2004:U5,3e3:nfe},ife=globalThis.fetch;class ofe{constructor(e,r,n=!1){this.address=e,this.url=r,this.appendSuffix=n,this.guard=void 0,this.guard=new Dj(r,ife)}async getAddress(){return this.address}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}async sign(e,r){var n;if(!de.isWalletSignRequestMetadata(r))throw new Error("expected sequence signature request metadata");const s=r.guardTotpCode,i=Zt.genericCoderFor(r.config.version),{encoded:o}=i.signature.encodeSigners(r.config,(n=r.parts)!=null?n:new Map,[],r.chainId);return(await this.guard.signWith({signer:this.address,request:{msg:z(e),auxData:this.packMsgAndSig(r.address,r.digest,o,r.chainId),chainId:Number(r.chainId)},token:s?{id:Rg.TOTP,token:s}:void 0})).sig}notifyStatusChange(e,r,n){}async getAuthMethods(e){let r;if("jwt"in e)r=await this.guard.authMethods({},{Authorization:`BEARER ${e.jwt}`});else{const n=await Q2(e);r=await this.guard.authMethods({proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}return Og({},r,{methods:r.methods.map(afe)})}async setPin(e,r){const n=await qd(r);e===void 0?await this.guard.resetPIN({timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`}):await this.guard.setPIN({pin:e,timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`})}resetPin(e){return this.setPin(void 0,e)}async createTotp(e){const r=await qd(e),{uri:n}=await this.guard.createTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return new URL(n)}async commitTotp(e,r){const{codes:n}=await this.guard.commitTOTP({token:e},{Authorization:`BEARER ${r}`});return n}async resetTotp(e){const r=await qd(e);await this.guard.resetTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`})}async reset2fa(e,r){if("jwt"in r)await this.guard.reset2FA({code:e},{Authorization:`BEARER ${r.jwt}`});else{const n=await Q2(r);await this.guard.reset2FA({code:e,proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}}async getRecoveryCodes(e){const r=await qd(e),{codes:n}=await this.guard.recoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}async resetRecoveryCodes(e){const r=await qd(e),{codes:n}=await this.guard.resetRecoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}packMsgAndSig(e,r,n,s){return qt.defaultAbiCoder().encode(["address","uint256","bytes","bytes"],[e,s,r,n])}suffix(){return new Uint8Array(this.appendSuffix?[3]:[])}}let Rg=function(t){return t.PIN="PIN",t.TOTP="TOTP",t}({});function afe(t){switch(t){case Rg.PIN:case Rg.TOTP:return t;default:throw new Error(`unknown auth method '${t}'`)}}function Zj(t){return"signerAddress"in t&&typeof t.signerAddress=="string"}async function Q2(t){if(Zj(t))return t;{const e=V2.isSapientSigner(t.signer)?t.signer:new V2.SignerWrapper(t.signer),r=await e.getAddress(),n=new Date,s=eF(t.walletAddress,n),i=Ad(s);return{walletAddress:t.walletAddress,timestamp:n,signerAddress:r,signature:z(await e.sign(i,{}))}}}async function qd(t){if("wallet"in t){var e;const r=new Date,n=tF(r),s=await t.wallet.signTypedData(n.domain,n.types,n.message,(e=n.domain.chainId)!=null?e:1,"eip6492");return{jwt:t.jwt,timestamp:r,signature:s}}else return t}function eF(t,e){return{domain:rF,types:{AuthMethods:[{name:"wallet",type:"address"},{name:"timestamp",type:"string"}]},message:{wallet:Ae(t),timestamp:nF(e)}}}function tF(t){return{domain:rF,types:{AuthUpdate:[{name:"timestamp",type:"string"}]},message:{timestamp:nF(t)}}}const rF={name:"Sequence Guard",version:"1",chainId:1};function nF(t){return t.toUTCString().replace("GMT","UTC")}const cfe=Object.freeze(Object.defineProperty({__proto__:null,AuthMethod:Rg,Guard:Dj,GuardSigner:ofe,getAuthUpdateProofTypedData:tF,getOwnershipProofTypedData:eF,isSignedOwnershipProof:Zj,signOwnershipProof:Q2},Symbol.toStringTag,{value:"Module"}));var sF={exports:{}};/*! + * EventEmitter2 + * https://github.com/hij1nx/EventEmitter2 + * + * Copyright (c) 2013 hij1nx + * Licensed under the MIT license. + */(function(t,e){(function(r){var n=Object.hasOwnProperty,s=Array.isArray?Array.isArray:function(S){return Object.prototype.toString.call(S)==="[object Array]"},i=10,o=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",c=typeof Reflect=="object",l=typeof setImmediate=="function",u=l?setImmediate:setTimeout,f=a?c&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(E){var S=Object.getOwnPropertyNames(E);return S.push.apply(S,Object.getOwnPropertySymbols(E)),S}:Object.keys;function d(){this._events={},this._conf&&h.call(this,this._conf)}function h(E){E&&(this._conf=E,E.delimiter&&(this.delimiter=E.delimiter),E.maxListeners!==r&&(this._maxListeners=E.maxListeners),E.wildcard&&(this.wildcard=E.wildcard),E.newListener&&(this._newListener=E.newListener),E.removeListener&&(this._removeListener=E.removeListener),E.verboseMemoryLeak&&(this.verboseMemoryLeak=E.verboseMemoryLeak),E.ignoreErrors&&(this.ignoreErrors=E.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(E,S){var O="(node) warning: possible EventEmitter memory leak detected. "+E+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(O+=" Event name: "+S+"."),typeof process<"u"&&process.emitWarning){var D=new Error(O);D.name="MaxListenersExceededWarning",D.emitter=this,D.count=E,process.emitWarning(D)}else console.error(O),console.trace&&console.trace()}var p=function(E,S,O){var D=arguments.length;switch(D){case 0:return[];case 1:return[E];case 2:return[E,S];case 3:return[E,S,O];default:for(var L=new Array(D);D--;)L[D]=arguments[D];return L}};function b(E,S){for(var O={},D,L=E.length,W=0,q=0;q0;)E=W[J],q.call(te,E,O[E]);this._listeners={},this._listenersCount=0,$()}}});function v(E,S,O,D){var L=Object.assign({},S);if(!E)return L;if(typeof E!="object")throw TypeError("options must be an object");var W=Object.keys(E),q=W.length,te,J,$;function K(he){throw Error('Invalid "'+te+'" option value'+(he?". Reason: "+he:""))}for(var ue=0;ue0;)if(te===E[J])return W;q(S)}}var A=k(["function"]),P=k(["object","function"]);function R(E,S,O){var D,L,W=0,q,te=new E(function(J,$,K){O=v(O,{timeout:0,overload:!1},{timeout:function(ke,_e){return ke*=1,(typeof ke!="number"||ke<0||!Number.isFinite(ke))&&_e("timeout must be a positive number"),ke}}),D=!O.overload&&typeof E.prototype.cancel=="function"&&typeof K=="function";function ue(){L&&(L=null),W&&(clearTimeout(W),W=0)}var he=function(ke){ue(),J(ke)},oe=function(ke){ue(),$(ke)};D?S(he,oe,K):(L=[function(ke){oe(ke||Error("canceled"))}],S(he,oe,function(ke){if(q)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof ke!="function")throw TypeError("onCancel callback must be a function");L.push(ke)}),q=!0),O.timeout>0&&(W=setTimeout(function(){var ke=Error("timeout");ke.code="ETIMEDOUT",W=0,te.cancel(ke),$(ke)},O.timeout))});return D||(te.cancel=function(J){if(L){for(var $=L.length,K=1;K<$;K++)L[K](J);L[0](J),L=null}}),te}function N(E){var S=this._observers;if(!S)return-1;for(var O=S.length,D=0;D0;)oe=se[te],oe!=="_listeners"&&(ae=V(E,S,O[oe],D+1,L),ae&&(he?he.push.apply(he,ae):he=ae));return he}else if(wr==="**"){for(tn=D+1===L||D+2===L&&U==="*",tn&&O._listeners&&(he=V(E,S,O,L,L)),se=f(O),te=se.length;te-- >0;)oe=se[te],oe!=="_listeners"&&(oe==="*"||oe==="**"?(O[oe]._listeners&&!tn&&(ae=V(E,S,O[oe],L,L),ae&&(he?he.push.apply(he,ae):he=ae)),ae=V(E,S,O[oe],D,L)):oe===U?ae=V(E,S,O[oe],D+2,L):ae=V(E,S,O[oe],D,L),ae&&(he?he.push.apply(he,ae):he=ae));return he}else O[wr]&&(he=V(E,S,O[wr],D+1,L));if(ke=O["*"],ke&&V(E,S,ke,D+1,L),_e=O["**"],_e)if(D0;)oe=se[te],oe!=="_listeners"&&(oe===U?V(E,S,_e[oe],D+2,L):oe===wr?V(E,S,_e[oe],D+1,L):(xt={},xt[oe]=_e[oe],V(E,S,{"**":xt},D+1,L)));else _e._listeners?V(E,S,_e,L,L):_e["*"]&&_e["*"]._listeners&&V(E,S,_e["*"],L,L);return he}function F(E,S,O){var D=0,L=0,W,q=this.delimiter,te=q.length,J;if(typeof E=="string")if((W=E.indexOf(q))!==-1){J=new Array(5);do J[D++]=E.slice(L,W),L=W+te;while((W=E.indexOf(q,L))!==-1);J[D++]=E.slice(L)}else J=[E],D=1;else J=E,D=E.length;if(D>1){for(W=0;W+10&&$._listeners.length>this._maxListeners&&($._listeners.warned=!0,y.call(this,$._listeners.length,K))):$._listeners=S,!0;return!0}function X(E,S,O,D){for(var L=f(E),W=L.length,q,te,J,$=E._listeners,K;W-- >0;)te=L[W],q=E[te],te==="_listeners"?J=O:J=O?O.concat(te):[te],K=D||typeof te=="symbol",$&&S.push(K?J:J.join(this.delimiter)),typeof q=="object"&&X.call(this,q,S,J,K);return S}function re(E){for(var S=f(E),O=S.length,D,L,W;O-- >0;)L=S[O],D=E[L],D&&(W=!0,L!=="_listeners"&&!re(D)&&delete E[L]);return W}function le(E,S,O){this.emitter=E,this.event=S,this.listener=O}le.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function ee(E,S,O){if(O===!0)L=!0;else if(O===!1)D=!0;else{if(!O||typeof O!="object")throw TypeError("options should be an object or true");var D=O.async,L=O.promisify,W=O.nextTick,q=O.objectify}if(D||W||L){var te=S,J=S._origin||S;if(W&&!o)throw Error("process.nextTick is not supported");L===r&&(L=S.constructor.name==="AsyncFunction"),S=function(){var $=arguments,K=this,ue=this.event;return L?W?Promise.resolve():new Promise(function(he){u(he)}).then(function(){return K.event=ue,te.apply(K,$)}):(W?process.nextTick:u)(function(){K.event=ue,te.apply(K,$)})},S._async=!0,S._origin=J}return[S,q?new le(this,E,S):this]}function B(E){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,E)}B.EventEmitter2=B,B.prototype.listenTo=function(E,S,O){if(typeof E!="object")throw TypeError("target musts be an object");var D=this;O=v(O,{on:r,off:r,reducers:r},{on:A,off:A,reducers:P});function L(W){if(typeof W!="object")throw TypeError("events must be an object");var q=O.reducers,te=N.call(D,E),J;te===-1?J=new g(D,E,O):J=D._observers[te];for(var $=f(W),K=$.length,ue,he=typeof q=="function",oe=0;oe0;)L=O[D],(!E||L._target===E)&&(L.unsubscribe(S),W=!0);return W},B.prototype.delimiter=".",B.prototype.setMaxListeners=function(E){E!==r&&(this._maxListeners=E,this._conf||(this._conf={}),this._conf.maxListeners=E)},B.prototype.getMaxListeners=function(){return this._maxListeners},B.prototype.event="",B.prototype.once=function(E,S,O){return this._once(E,S,!1,O)},B.prototype.prependOnceListener=function(E,S,O){return this._once(E,S,!0,O)},B.prototype._once=function(E,S,O,D){return this._many(E,1,S,O,D)},B.prototype.many=function(E,S,O,D){return this._many(E,S,O,!1,D)},B.prototype.prependMany=function(E,S,O,D){return this._many(E,S,O,!0,D)},B.prototype._many=function(E,S,O,D,L){var W=this;if(typeof O!="function")throw new Error("many only accepts instances of Function");function q(){return--S===0&&W.off(E,q),O.apply(this,arguments)}return q._origin=O,this._on(E,q,D,L)},B.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var E=arguments[0],S,O=this.wildcard,D,L,W,q,te;if(E==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(O&&(S=E,E!=="newListener"&&E!=="removeListener"&&typeof E=="object")){if(L=E.length,a){for(W=0;W3)for(D=new Array(J-1),q=1;q3)for(L=new Array($-1),te=1;te<$;te++)L[te-1]=arguments[te];for(q=0,W=K.length;q0&&this._events[E].length>this._maxListeners&&(this._events[E].warned=!0,y.call(this,this._events[E].length,E))):this._events[E]=S,L)},B.prototype.off=function(E,S){if(typeof S!="function")throw new Error("removeListener only takes instances of Function");var O,D=[];if(this.wildcard){var L=typeof E=="string"?E.split(this.delimiter):E.slice();if(D=V.call(this,null,L,this.listenerTree,0),!D)return this}else{if(!this._events[E])return this;O=this._events[E],D.push({_listeners:O})}for(var W=0;W0){for(D=this._all,S=0,O=D.length;S0;)D=S[O[W]],typeof D=="function"?L.push(D):L.push.apply(L,D);return L}else{if(this.wildcard){if(q=this.listenerTree,!q)return[];var te=[],J=typeof E=="string"?E.split(this.delimiter):E.slice();return V.call(this,te,J,q,0),te}return S?(D=S[E],D?typeof D=="function"?[D]:D:[]):[]}},B.prototype.eventNames=function(E){var S=this._events;return this.wildcard?X.call(this,this.listenerTree,[],null,E):S?f(S):[]},B.prototype.listenerCount=function(E){return this.listeners(E).length},B.prototype.hasListeners=function(E){if(this.wildcard){var S=[],O=typeof E=="string"?E.split(this.delimiter):E.slice();return V.call(this,S,O,this.listenerTree,0),S.length>0}var D=this._events,L=this._all;return!!(L&&L.length||D&&(E===r?f(D).length:D[E]))},B.prototype.listenersAny=function(){return this._all?this._all:[]},B.prototype.waitFor=function(E,S){var O=this,D=typeof S;return D==="number"?S={timeout:S}:D==="function"&&(S={filter:S}),S=v(S,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:A,Promise:m}),R(S.Promise,function(L,W,q){function te(){var J=S.filter;if(!(J&&!J.apply(O,arguments)))if(O.off(E,te),S.handleError){var $=arguments[0];$?W($):L(p.apply(null,arguments).slice(1))}else L(p.apply(null,arguments))}q(function(){O.off(E,te)}),O._on(E,te,!1)},{timeout:S.timeout,overload:S.overload})};function G(E,S,O){O=v(O,{Promise,timeout:0,overload:!1},{Promise:m});var D=O.Promise;return R(D,function(L,W,q){var te;if(typeof E.addEventListener=="function"){te=function(){L(p.apply(null,arguments))},q(function(){E.removeEventListener(S,te)}),E.addEventListener(S,te,{once:!0});return}var J=function(){$&&E.removeListener("error",$),L(p.apply(null,arguments))},$;S!=="error"&&($=function(K){E.removeListener(S,J),W(K)},E.once("error",$)),q(function(){$&&E.removeListener("error",$),E.removeListener(S,J)}),E.once(S,J)},{timeout:O.timeout,overload:O.overload})}var Z=B.prototype;Object.defineProperties(B,{defaultMaxListeners:{get:function(){return Z._maxListeners},set:function(E){if(typeof E!="number"||E<0||Number.isNaN(E))throw TypeError("n must be a non-negative number");Z._maxListeners=E},enumerable:!0},once:{value:G,writable:!0,configurable:!0}}),Object.defineProperties(Z,{_maxListeners:{value:i,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),t.exports=B})()})(sF);var vm=sF.exports;function lfe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function $5(t,...e){if(!lfe(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function N8(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function ufe(t,e){$5(t);const r=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength),Vs=(t,e)=>t<<32-e|t>>>e,ffe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function dfe(t){$5(t);let e="";for(let r=0;rt().update(iF(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function gfe(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}const vfe=(t,e,r)=>t&e^~t&r,mfe=(t,e,r)=>t&e^t&r^e&r;class xfe extends pfe{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Zx(this.buffer)}update(e){N8(this);const{view:r,buffer:n,blockLen:s}=this;e=iF(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f>>3,p=Vs(h,17)^Vs(h,19)^h>>>10;To[f]=p+To[f-7]+y+To[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Vs(a,6)^Vs(a,11)^Vs(a,25),h=u+d+vfe(a,c,l)+bfe[f]+To[f]|0,p=(Vs(n,2)^Vs(n,13)^Vs(n,22))+mfe(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){To.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Efe=yfe(()=>new wfe);var Cfe=class{constructor(t,e){_(this,"hostname");_(this,"fetch");_(this,"path","/rpc/Databeat/");_(this,"ping",(t,e)=>this.fetch(this.url("Ping"),Kd({},t,e)).then(r=>Qd(r).then(n=>({status:n.status})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));_(this,"version",(t,e)=>this.fetch(this.url("Version"),Kd({},t,e)).then(r=>Qd(r).then(n=>({version:n.version})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));_(this,"runtimeStatus",(t,e)=>this.fetch(this.url("RuntimeStatus"),Kd({},t,e)).then(r=>Qd(r).then(n=>({status:n.status})),r=>{throw Jl.new({cause:`fetch(): ${r.message||""}`})}));_(this,"tick",(t,e,r)=>this.fetch(this.url("Tick"),Kd(t,e,r)).then(n=>Qd(n).then(s=>({ok:s.ok})),n=>{throw Jl.new({cause:`fetch(): ${n.message||""}`})}));_(this,"rawEvents",(t,e,r)=>this.fetch(this.url("RawEvents"),Kd(t,e,r)).then(n=>Qd(n).then(s=>({ok:s.ok})),n=>{throw Jl.new({cause:`fetch(): ${n.message||""}`})}));this.hostname=t,this.fetch=(r,n)=>e(r,n)}url(t){return this.hostname+this.path+t}},Kd=(t={},e={},r=null)=>({method:"POST",headers:{...e,"Content-Type":"application/json"},body:JSON.stringify(t||{}),signal:r}),Qd=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),dF.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Ufe[n]||Kt).new(r)}return r}),Kt=class oF extends Error{constructor(r,n,s,i,o){super(s);_(this,"name");_(this,"code");_(this,"message");_(this,"status");_(this,"cause");_(this,"msg");this.name=r||"WebrpcError",this.code=typeof n=="number"?n:0,this.message=s||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=o,Object.setPrototypeOf(this,oF.prototype)}static new(r){return new this(r.error,r.code,r.message||r.msg,r.status,r.cause)}},kfe=class aF extends Kt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aF.prototype)}},Jl=class cF extends Kt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cF.prototype)}},Sfe=class lF extends Kt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lF.prototype)}},Afe=class uF extends Kt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uF.prototype)}},Tfe=class fF extends Kt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fF.prototype)}},dF=class hF extends Kt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hF.prototype)}},Ife=class pF extends Kt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pF.prototype)}},Pfe=class yF extends Kt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yF.prototype)}},Ofe=class gF extends Kt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gF.prototype)}},Rfe=class vF extends Kt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vF.prototype)}},Nfe=class mF extends Kt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,mF.prototype)}},_fe=class xF extends Kt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xF.prototype)}},Mfe=class bF extends Kt{constructor(e="PermissionDenied",r=2e3,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,bF.prototype)}},Dfe=class wF extends Kt{constructor(e="SessionExpired",r=2001,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wF.prototype)}},Bfe=class EF extends Kt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,EF.prototype)}},Lfe=class CF extends Kt{constructor(e="InvalidAppKey",r=4e3,n="Invalid app key",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,CF.prototype)}},jfe=class kF extends Kt{constructor(e="QueryFailed",r=4001,n="DB query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,kF.prototype)}},Ffe=class SF extends Kt{constructor(e="InvalidProjectId",r=4002,n="Invalid project id",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,SF.prototype)}},Ufe={0:kfe,[-1]:Jl,[-2]:Sfe,[-3]:Afe,[-4]:Tfe,[-5]:dF,[-6]:Ife,[-7]:Pfe,[-8]:Ofe,[-9]:Rfe,[-10]:Nfe,1e3:_fe,2e3:Mfe,2001:Dfe,3e3:Bfe,4e3:Lfe,4001:jfe,4002:Ffe},$fe=class extends Cfe{constructor(e,r){const n=globalThis.fetch.bind(globalThis);super(e.endsWith("/")?e.slice(0,-1):e,n);_(this,"_globalFetch");_(this,"_fetch",(e,r)=>{var n;if(this.auth){let s={};((n=this.auth.jwt)==null?void 0:n.length)>0&&(s.Authorization=`BEARER ${this.auth.jwt}`),this.auth.headers&&(s={...s,...this.auth.headers}),r.headers={...r.headers,...s}}return this._globalFetch(e,r)});this.auth=r,this._globalFetch=n,this.fetch=this._fetch}},_8=150,Xa={defaultEnabled:!0,noop:!1,privacy:{userIdHash:!0,userAgentSalt:!1},userIdentTracking:!1,strictMode:!1,flushInterval:500,initProps:()=>({})},Wfe=class{constructor(t,e,r){_(this,"rpc");_(this,"auth");_(this,"options");_(this,"enabled");_(this,"ident");_(this,"userId");_(this,"sessionId");_(this,"allowUserTracking");_(this,"projectId");_(this,"queue");_(this,"flushTimeout");_(this,"defaultProps");_(this,"dedupeIdentKey");_(this,"dedupeViewKey");_(this,"ts");_(this,"flush",async()=>{if(this.flushTimeout!==null&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),!this.enabled||this.options.noop||this.options.strictMode&&!this.allowUserTracking||this.queue.length===0)return;const t=this.dedupedQueue();this.queue=[];try{await this.rpc.tick({events:t})}catch(e){console.warn(`databeat flush failed: ${e}`)}});_(this,"dedupedQueue",()=>{const t=new Map;for(let e=0;e_8&&(this.queue=this.queue.splice(this.queue.length-_8)),this.enabled&&(e&&e.flush?await this.flush():this.flushTimeout===null&&(this.flushTimeout=setTimeout(()=>{this.flush()},this.options.flushInterval)))}trackView(t={}){const e={...this.defaultProps,...t},r=D8(),n=`${r}:${JSON.stringify(e)}:${this.userId}:${this.sessionId}`;this.dedupeViewKey!==n&&(this.dedupeViewKey=n,this.track({event:"VIEW",source:r,props:e}))}isEnabled(){return this.enabled}isAnon(){return this.ident===0}getIdent(){return this.ident}getUserId(){return this.userId}getSessionId(){return this.sessionId}getStorageTS(){if(this.ts)return this.ts;const t=J2();if(!(t==null||t.id===null))return this.ts=t.ts,this.ts}enable(){if(!AF(this.auth)){this.enabled=!1;return}Ji()&&(this.enabled=!0,this.ts=Wl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}),this.identify())}disable(){Ji()&&(this.enabled=!1,this.ts=Wl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}))}},Ji=()=>typeof window=="object"&&typeof window.localStorage=="object"&&typeof window.localStorage.getItem=="function"&&typeof window.localStorage.setItem=="function",M8=(t,e)=>{if(!AF(e))return!1;if(!Ji())return!0;const r=J2();return r===null?t??!0:r.on},AF=t=>{var e;return!!(((e=t==null?void 0:t.jwt)==null?void 0:e.length)>0||t!=null&&t.headers&&Object.keys(t.headers).length>0)},D8=()=>{try{return window.location.pathname}catch{return""}},Vfe=()=>{if(!Ji())return{};const t=new URL(window.location.href).searchParams,e={};return e.origin=window.location.origin,t.get("ref")&&t.get("ref")!==""&&(e.ref=t.get("ref")||""),t.get("source")&&t.get("source")!==""&&(e.source=t.get("source")||""),t.get("utm_source")&&t.get("utm_source")!==""&&(e.utmSource=t.get("utm_source")||""),t.get("utm_campaign")&&t.get("utm_campaign")!==""&&(e.utmCampaign=t.get("utm_campaign")||""),t.get("utm_medium")&&t.get("utm_medium")!==""&&(e.utmMedium=t.get("utm_medium")||""),t.get("utm_content")&&t.get("utm_content")!==""&&(e.utmContent=t.get("utm_content")||""),t.get("utm_term")&&t.get("utm_term")!==""&&(e.utmTerm=t.get("utm_term")||""),document.referrer&&document.referrer!==""&&(e.referrer=document.referrer),t.get("gclid")&&t.get("gclid")!==""&&(e.gclid=t.get("gclid")||""),t.get("wbraid")&&t.get("wbraid")!==""&&(e.wbraid=t.get("wbraid")||""),e},Ng="_dbeat",J2=()=>{try{return JSON.parse(window.localStorage.getItem(Ng))}catch{return null}},Wl=t=>{try{return t.ts||(t.ts=Math.floor(Date.now()/1e3)),window.localStorage.setItem(Ng,JSON.stringify(t)),t.ts}catch{return}},zfe=(t,e,r)=>{if(!t||t===null||t==="")return{userId:`${Math.floor(Math.random()*1e14)}`,ident:0};if(r.userIdentTracking&&e)return{userId:t,ident:2};if(r.privacy.userIdHash===!0||!r.userIdentTracking||!e)return Ji()&&r.privacy.userAgentSalt===!0&&(t=t+":"+navigator.userAgent),r.privacy.extraSalt&&r.privacy.extraSalt.length>0&&(t=t+":"+r.privacy.extraSalt),{userId:dfe(Efe(t)).substring(0,50),ident:1};throw new Error("invalid configuration")},Hfe=()=>{if(Ji()&&typeof window.sessionStorage=="object"&&typeof window.sessionStorage.getItem=="function"&&typeof window.sessionStorage.setItem=="function"){const e=window.sessionStorage.getItem(Ng);if(e&&e.length>0)return e;{const r=B8(16);return window.sessionStorage.setItem(Ng,r),r}}else return B8(16)},B8=t=>{let e="";for(let r=0;r[Dr(t).slice(0,10),t]));function Y2(t,e){const r=de.transaction.fromTransactionish(t,e);de.transaction.unwind(t,r).forEach(s=>qfe(t,s))}function qfe(t,e){if(e.to.toLowerCase()===t.toLowerCase()&&e.data){const r=Q(e.data);if(r.length>=4&&!Kfe(r))throw new Error("self calls are forbidden")}if(e.delegateCall)throw new Error("delegate calls are forbidden");if(e.data){const n=z(e.data).slice(0,10),s=Gfe.get(n);if(s){const i=s.slice(0,s.indexOf("("));throw new Error(`${i} calls are forbidden`)}}}function Kfe(t){const e=new ut(Ht.mainModule.abi);try{return e.decodeFunctionData("createContract",t),!0}catch{return!1}}function er(){return er=Object.assign?Object.assign.bind():function(t){for(var e=1;e++Qfe;class _1{constructor(e){var r=this;this.pendingMessageRequests=[],this.responseCallbacks=new Map,this.state=void 0,this.confirmationOnly=!1,this.events=new vm.EventEmitter2,this.openPayload=void 0,this.connectPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this._sessionId=void 0,this._init=void 0,this._registered=void 0,this.projectAccessKey=void 0,this.sendMessageRequest=async function(n){return new Promise((s,i)=>{(!n.idx||n.idx<=0)&&n.type!=="init"&&i(new Error("message idx not set"));const o=(c,l)=>{if(c)i(c);else if(l)s(l);else throw new Error("no valid response to return")},a=n.idx;r.responseCallbacks.get(a)?i(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.isOpened()?r.sendMessage(n):(Te.debug("pushing to pending requests",n),r.pendingMessageRequests.push(n))})},this.waitUntilOpened=async function(n=W5){let s=!1;return Promise.race([new Promise((i,o)=>{const a=setTimeout(()=>{clearTimeout(a),s||(r.state=Jn.CLOSED,r.events.emit("close",{code:1005,message:"opening wallet timed out"})),o(new Error("opening wallet timed out"))},n)}),new Promise(i=>{if(r.isOpened()){var o;s=!0,i((o=r.openPayload)==null?void 0:o.session);return}r.events.once("open",a=>{r.openPayload=a,s=!0,i(a.session)})})])},this.waitUntilConnected=async function(){await r.waitUntilOpened();const n=new Promise(i=>{if(r.connectPayload){i(r.connectPayload);return}r.events.once("connect",o=>{r.connectPayload=o,i(o)})}),s=new Promise((i,o)=>{r.events.once("close",a=>{o(a?new Error(`wallet closed due to ${JSON.stringify(a)}`):new Error("user closed the wallet"))})});return Promise.race([n,s])},this.state=Jn.CLOSED,this._registered=!1,this._init=pt.NIL,this.projectAccessKey=e}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}openWallet(e,r,n){throw new Error("abstract method")}closeWallet(){throw new Error("abstract method")}isOpened(){return this.registered&&this.state===Jn.OPENED}isConnected(){var e;const r=(e=this.openPayload)==null?void 0:e.session;return this.registered&&r!==void 0&&!!r.accountAddress&&r.accountAddress.length===42&&!!r.networks&&r.networks.length>0}async request(e){return this.state===Jn.CLOSED&&(this.confirmationOnly=!0),this.openWallet(void 0,{type:"jsonRpcRequest",method:e.method},e.chainId),this.isOpened()||await this.waitUntilOpened(),(await this.sendMessageRequest({idx:OF(),type:$e.MESSAGE,data:e,chainId:e.chainId,clientVersion:Wr,projectAccessKey:this.projectAccessKey})).data}handleMessage(e){var r=this;if(e.type===$e.INIT){Te.debug("MessageProvider, received INIT message",e);const{nonce:c}=e.data;if(!c||c.length==0){Te.error("invalid init nonce");return}this._init=pt.OK,this.sendMessage({idx:-1,type:$e.INIT,data:{sessionId:this._sessionId,nonce:c},clientVersion:Wr})}if(this._init!==pt.OK)return;Te.debug("RECEIVED MESSAGE FROM WALLET",e.idx,e);const n=e.idx,s=this.responseCallbacks.get(n);if(n&&this.responseCallbacks.delete(n),e.type===$e.OPEN&&!this.isOpened()){var i,o;if(this._sessionId&&this._sessionId!==((i=e.data)==null?void 0:i.sessionId)){Te.debug("open event received from wallet, but does not match sessionId",this._sessionId);return}if((o=e.data)!=null&&o.error){var a;const c=new Error(`opening wallet failed: received ${(a=e.data)==null?void 0:a.error}`);throw Te.error(c),this.close(),c}this.state=Jn.OPENED,this.openPayload=e.data,this.events.emit("open",this.openPayload),this.pendingMessageRequests.length!==0&&this.pendingMessageRequests.splice(0,this.pendingMessageRequests.length).forEach(async function(l){r.sendMessage(l)});return}if(e.type===$e.MESSAGE){if(this.confirmationOnly&&setTimeout(()=>{this.responseCallbacks.size===0&&this.closeWallet()},500),!s)throw new Error("impossible state");if(s){this.events.emit("message",e),s(e.data.error,e);return}}if(e.type===$e.ACCOUNTS_CHANGED){this.accountsChangedPayload={accounts:[]},e.data&&e.data.length>0?(this.accountsChangedPayload={accounts:[Ae(e.data[0])],origin:e.origin},this.events.emit("accountsChanged",this.accountsChangedPayload.accounts,this.accountsChangedPayload.origin)):this.events.emit("accountsChanged",[],e.origin);return}if(e.type===$e.CHAIN_CHANGED){this.events.emit("chainChanged",e.data,e.origin);return}if(e.type===$e.NETWORKS){this.networksPayload=e.data,this.events.emit("networks",this.networksPayload);return}if(e.type===$e.WALLET_CONTEXT){this.walletContextPayload=e.data,this.events.emit("walletContext",this.walletContextPayload);return}e.type===$e.CLOSE&&this.state!==Jn.CLOSED&&this.close(e.data),e.type===$e.CONNECT&&(this.connectPayload=e.data,this.events.emit("connect",this.connectPayload)),e.type===$e.DISCONNECT&&this.isConnected()&&(this.events.emit("disconnect",e.data,e.origin),this.close())}sendMessage(e){throw new Error("abstract method")}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}emit(e,...r){return this.events.emit(e,...r)}close(e){this.state!==Jn.CLOSED&&(this.state=Jn.CLOSED,this.confirmationOnly=!1,this._sessionId=void 0,Te.info("closing wallet and flushing!"),this.pendingMessageRequests.length=0,this.responseCallbacks.forEach(r=>{r(er({},new Error("wallet closed"),{code:4001}))}),this.responseCallbacks.clear(),this.connectPayload=void 0,this.openPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this.events.emit("close",e))}}function Jfe(t){return Yfe.some(e=>e.predicate(t))}const Yfe=[{name:"Decentraland Exception",predicate:Zfe},{name:"0x v3 Exception",predicate:ede}],Xfe=/^Decentraland Login\nEphemeral address: 0x[a-fA-F0-9]{40}\nExpiration: (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/;function Zfe(t){try{const e=Ds(t);return Xfe.test(e)}catch{return!1}}function ede(t){const e=new ut(tde);try{return e.decodeFunctionData("OrderWithHash",t),!0}catch{return!1}}const tde=[{inputs:[{components:[{internalType:"address",name:"makerAddress",type:"address"},{internalType:"address",name:"takerAddress",type:"address"},{internalType:"address",name:"feeRecipientAddress",type:"address"},{internalType:"address",name:"senderAddress",type:"address"},{internalType:"uint256",name:"makerAssetAmount",type:"uint256"},{internalType:"uint256",name:"takerAssetAmount",type:"uint256"},{internalType:"uint256",name:"makerFee",type:"uint256"},{internalType:"uint256",name:"takerFee",type:"uint256"},{internalType:"uint256",name:"expirationTimeSeconds",type:"uint256"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"makerAssetData",type:"bytes"},{internalType:"bytes",name:"takerAssetData",type:"bytes"},{internalType:"bytes",name:"makerFeeAssetData",type:"bytes"},{internalType:"bytes",name:"takerFeeAssetData",type:"bytes"}],internalType:"struct IEIP1271Data.Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderWithHash",outputs:[],stateMutability:"pure",type:"function"}],vy=mt(`Ethereum Signed Message: +`),V5=t=>mi(t)?Q(t):mt(t),mm=t=>{const e=V5(t);return Jfe(e)?e:Q(Fe([vy,mt(String(e.length)),e]))},rde=t=>{if(JSON.stringify(t.slice(0,vy.length))!==JSON.stringify(vy))return t;const e=t.slice(vy.length),r=String(e.length).length;let n,s;try{s=Number(Ds(e.slice(0,r)))}catch{s=Number(z(e.slice(0,r)))}return s>e.length||!Number.isInteger(s)?n=r-1:n=r,e.slice(n)},cd=async(t,e,r,n)=>new de.reader.OnChainReader(n).isValidSignature(t,e,r),RF=async(t,e,r,n)=>{const s=mm(e),i=u5(s);return cd(t,i,r,n)},NF=(t,e,r,n)=>cd(t,Ad(e),r,n),_g=()=>window.location.protocol==="chrome-extension:"||window.location.protocol==="moz-extension:",_F=()=>!!navigator.userAgent.match(/UnitySequence/i),MF=t=>t.onChain.deployed&&t.fullyMigrated;class DF{constructor(){this.callbacks=[],this.store={}}getItem(e){return this.store[e]||null}setItem(e,r){this.store[e]=r,this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){delete this.store[e]}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}class B0{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(this.callbacks=[],!B0.isAvailable())throw new Error("LocalStorage is not available");window.addEventListener("storage",e=>{const{key:r}=e;this.callbacks.filter(s=>s.key===r).forEach(s=>s.cb(this.getItem(r)))})}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r),this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){window.localStorage.removeItem(e),this.callbacks.filter(r=>r.key===e).forEach(r=>r.cb(null))}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}function Mg(){return B0.isAvailable()?new B0:new DF}async function BF(t){return Array.isArray(t)?Promise.all(t.map(e=>It(e))):It(t)}const L8="@sequence.transportSession";class M1{constructor(e){var r=this;this.walletRequestHandler=void 0,this._sessionId=void 0,this._registered=void 0,this._init=void 0,this._initNonce=void 0,this._initCallback=void 0,this.appOrigin=void 0,this.handleMessage=async function(n){const s=n;if(r._init!==pt.OK){if(s.type===$e.INIT)if(r.isValidInitAck(n))r._initCallback&&r._initCallback();else{r._initCallback&&r._initCallback("invalid init");return}return}switch(s.type){case $e.OPEN:{if(r._init!==pt.OK)return;const i={sessionId:s.data.sessionId,intent:s.data.intent,networkId:s.data.networkId};await r.open(i);return}case $e.CLOSE:return r._init!==pt.OK,void 0;case $e.MESSAGE:{const i=await r.walletRequestHandler.sendMessageRequest(s);r.sendMessage(i),i.data.error;return}default:Te.error(`unexpected payload type ${s.type}`)}},this.sendMessageRequest=async function(n){return r.walletRequestHandler.sendMessageRequest(n)},this.open=async function({sessionId:n,intent:s,networkId:i}){n&&(r._sessionId=PM(n),r.saveTransportSession({sessionId:n,intent:s,networkId:i})),r.walletRequestHandler.setOpenIntent(s),await r.init();let o;try{if(i){const a=f5(i);if(a)o=a.chainId;else throw new Error(`unknown network ${i}`)}else o=r.walletRequestHandler.defaultChainId()}catch(a){console.error(a)}if(s&&s.type==="connect"&&s.options){const a=s.options,c=a;if(r.appOrigin&&c!=null&&c.origin){if(!_g()&&c.origin!==r.appOrigin)throw new Error("origin is invalid")}else!r.appOrigin&&c!=null&&c.origin?a.origin=RM(c.origin):r.appOrigin&&(a.origin=r.appOrigin);a.app&&(a.app=OM(a.app)),a.networkId?i=a.networkId:i&&(a.networkId=i),r.walletRequestHandler.setConnectOptions(a)}else r.walletRequestHandler.setConnectOptions(void 0);if(await r.walletRequestHandler.getAccount(),await r.walletRequestHandler.isSignedIn())if(s&&s.type==="connect"){(!o||o<=0)&&console.log("Failed to set default network on open"),r.notifyOpen({sessionId:r._sessionId});try{const a=await r.walletRequestHandler.promptConnect(s.options);a.connected&&r.walletRequestHandler.notifyConnect(a)}catch(a){Te.warn("promptConnect not connected:",a)}finally{(!s.options||s.options.keepWalletOpened!==!0)&&r.notifyClose()}}else{if(!o||o<=0)return r.notifyOpen({sessionId:r._sessionId,error:`failed to open wallet on network ${i}`}),!1;r.notifyOpen({sessionId:r._sessionId,chainId:`${o}`,session:await r.walletRequestHandler.walletSession(o)})}else return r.notifyOpen({sessionId:r._sessionId}),!0;return!0},this.saveTransportSession=n=>{Mg().setItem(L8,JSON.stringify(n))},this.getCachedTransportSession=async function(){const n=Mg().getItem(L8);try{return n?JSON.parse(n):null}catch{return console.error(`unable to parse transport session: ${n}`),null}},this.walletRequestHandler=e,this._init=pt.NIL,this.walletRequestHandler.on("connect",n=>{this.registered&&this.notifyConnect(n)}),this.walletRequestHandler.on("disconnect",(n,s)=>{this.registered&&this.notifyDisconnect(n,s)}),this.walletRequestHandler.on("accountsChanged",(n,s)=>{this.registered&&this.notifyAccountsChanged(n,s)}),this.walletRequestHandler.on("networks",n=>{this.registered&&(this.notifyNetworks(n),!n||n.length===0?this.notifyChainChanged("0x0"):this.notifyChainChanged(yr(n.find(s=>s.isDefaultChain).chainId)))}),this.walletRequestHandler.on("chainChanged",(n,s)=>{this.notifyChainChanged(n,s)}),this.walletRequestHandler.on("walletContext",n=>{!this.registered||!n||this.notifyWalletContext(n)}),this.walletRequestHandler.on("close",n=>{this.registered&&this.notifyClose(n)})}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}request(e){throw new Error("abstract method")}sendMessage(e){throw new Error("abstract method")}notifyOpen(e){const{chainId:r,sessionId:n,session:s,error:i}=e;this.sendMessage({idx:-1,type:$e.OPEN,data:{chainId:r,sessionId:n,session:s,error:i},clientVersion:Wr})}notifyClose(e){this.sendMessage({idx:-1,type:$e.CLOSE,data:e?{error:e}:null,clientVersion:Wr})}notifyConnect(e){this.sendMessage({idx:-1,type:$e.CONNECT,data:e,clientVersion:Wr})}notifyDisconnect(e,r){this.sendMessage({idx:-1,type:$e.DISCONNECT,data:e?{error:e}:null,origin:r,clientVersion:Wr})}notifyAccountsChanged(e,r){this.sendMessage({idx:-1,type:$e.ACCOUNTS_CHANGED,data:e,origin:r,clientVersion:Wr})}notifyChainChanged(e,r){this.sendMessage({idx:-1,type:$e.CHAIN_CHANGED,data:e,origin:r,clientVersion:Wr})}notifyNetworks(e){this.sendMessage({idx:-1,type:$e.NETWORKS,data:e,clientVersion:Wr})}notifyWalletContext(e){this.sendMessage({idx:-1,type:$e.WALLET_CONTEXT,data:e,clientVersion:Wr})}isValidInitAck(e){if(this._init===pt.OK)return Te.warn("isValidInitAck, already in init'd state, so inquiry is invalid."),!1;if(e.type!==$e.INIT)return Te.warn("isValidInitAck, invalid message type, expecting init"),!1;const{sessionId:r,nonce:n}=e.data;return!r||r.length===0||!n||n.length===0?(Te.error("invalid init ack"),!1):r!==this._sessionId||n!==this._initNonce?(Te.error("invalid init ack match"),!1):!0}init(){return new Promise((e,r)=>{if(this._init===pt.OK){e();return}if(this._init!==pt.NIL||this._initCallback){r("transport init is in progress");return}const n=setTimeout(()=>{Te.warn("transport init timed out"),this._initCallback&&this._initCallback("transport init timed out")},W5/2);this._initCallback=s=>{this._initCallback=void 0,clearTimeout(n),s?r(s):(this._init=pt.OK,e())},this._initNonce=`${performance.now()}`,this.sendMessage({idx:-1,type:$e.INIT,data:{nonce:this._initNonce},clientVersion:Wr}),this._init=pt.SENT_NONCE})}}class nde{constructor(){this.app=void 0,this.wallet=void 0;const e=new X2,r=new X2;e.conn=r,r.conn=e,this.app=e,this.wallet=r}}class X2{constructor(){this.conn=void 0,this.events=new vm.EventEmitter2,this.handleMessage=e=>{throw new Error("ProxyMessageChannelPort is not registered")},this.sendMessage=e=>{this.conn.handleMessage(e),e.type==="open"&&this.events.emit("open",e),e.type==="close"&&this.events.emit("close",e),e.type==="connect"&&this.events.emit("connect",e),e.type==="disconnect"&&this.events.emit("disconnect",e)}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}}class LF extends _1{constructor(e){if(super(),this.port=void 0,this.register=()=>{this.port.handleMessage=r=>{this.handleMessage(r)},this.on("open",(...r)=>{this.port.events.emit("open",...r)}),this.on("close",(...r)=>{this.port.events.emit("close",...r)}),this.on("connect",(...r)=>{this.port.events.emit("connect",...r)}),this.on("disconnect",(...r)=>{this.port.events.emit("disconnect",...r)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),this.events.removeAllListeners(),this.port.handleMessage=void 0},this.openWallet=(r,n,s)=>{if(this.state===Jn.CLOSED){this.state=Jn.OPENING;const i=`${performance.now()}`;this._sessionId=i,this.sendMessage({idx:-1,type:$e.OPEN,data:{path:r,intent:n,networkId:s,sessionId:i},clientVersion:Wr})}},this.state=Jn.CLOSED,this.port=e,!e)throw new Error("port argument cannot be empty");this._init=pt.OK}closeWallet(){this.sendMessage({idx:-1,type:$e.CLOSE,data:null,clientVersion:Wr}),this.close()}sendMessage(e){if(!e.idx)throw new Error("message idx is empty");this.port.sendMessage(e)}}class sde extends M1{constructor(e,r){super(e),this.port=void 0,this.port=r,this._init=pt.OK}register(){this.port.handleMessage=e=>{this.handleMessage(e)},this._registered=!0}async restoreSession(){const e=await this.getCachedTransportSession();e&&this.open(e)}unregister(){this.port.handleMessage=void 0,this._registered=!1}sendMessage(e){this.port.sendMessage(e)}}function jF(t){var e;if((e=window.ue)!=null&&e.sequencewallettransport&&!window.logsOverriddenForUnreal){var r;const n=(r=window.ue)==null?void 0:r.sequencewallettransport;console.log=(...s)=>{n.logfromjs(`${t}: ${eb(s)}`)},console.warn=(...s)=>{n.warnfromjs(`${t}: ${eb(s)}`)},console.error=(...s)=>{n.errorfromjs(`${t}: ${eb(s)}`)},window.logsOverriddenForUnreal=!0}}function eb(t){return t.map(e=>typeof e=="object"?e instanceof Error?e.message:JSON.stringify(e):String(e)).join(" ")}let Vl;class FF extends _1{constructor(e){super(),this.walletURL=void 0,this.register=()=>{var r;jF("dapp"),Vl&&(Vl.unregister(),Vl=this),(r=window.ue)!=null&&r.sequencewallettransport&&(window.ue.sequencewallettransport.onmessagefromwallet=this.onUnrealCallback),Vl=this,this._registered=!0,console.log("registering transport!")},this.unregister=()=>{var r;this._registered=!1,this.closeWallet(),Vl===this&&(Vl=void 0),((r=window.ue)==null||(r=r.sequencewallettransport)==null?void 0:r.onmessagefromwallet)===this.onUnrealCallback&&delete window.ue.sequencewallettransport.onmessagefromwallet,this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.isOpened()){console.log("wallet already open!");return}console.log("opening wallet!");const i=new URL(this.walletURL.href),o=new N1;r&&(i.pathname=r.toLowerCase()),this._init=pt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&o.set("intent",c5(n)),s&&o.set("net",`${s}`),i.search=o.toString(),console.log("opening wallet to",i.href),window.open(i.href)},this.onUnrealCallback=r=>{if(!r)throw new Error("ProviderMessage object is empty");this.handleMessage(r)},this.walletURL=new URL(e)}closeWallet(){this.close()}sendMessage(e){var r;const n=typeof e!="string"?JSON.stringify(e,Ts):e;console.log("Sending message to wallet:",n),(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetowallet(n)}}class ide extends M1{constructor(e){super(e),this.onMessageFromUnreal=r=>{Te.debug("RECEIVED MESSAGE",r),this.handleMessage(r)},this.getUnrealTransportSession=r=>{const n=new N1(r);return{sessionId:n.get("sid"),networkId:n.get("net"),intent:l5(n.get("intent"))}},this._init=pt.NIL}async register(e){var r;if(((r=window.ue)==null?void 0:r.sequencewallettransport)===void 0)return;jF("wallet");const{search:n}=new URL(e||window.location.href);let s=this.getUnrealTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Te.error("unreal session is undefined");return}window.ue.sequencewallettransport.onmessagefromsequencejs=this.onMessageFromUnreal,this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Te.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Te.error(c),this.notifyClose({message:c}),window.close()})}unregister(){var e;((e=window.ue)==null||(e=e.sequencewallettransport)==null?void 0:e.onmessagefromsequencejs)===this.onMessageFromUnreal&&delete window.ue.sequencewallettransport.onmessagefromsequencejs,this._registered=!1}sendMessage(e){var r;if(e.type!==$e.INIT&&this._init!==pt.OK){Te.error("impossible state, should not be calling postMessage until inited");return}const n=JSON.stringify(e,Ts);(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetosequencejs(n)}}const z5="sequence-extension-message-handler";class ode extends M1{constructor(e,r){super(e),this.runtime=r,this.port=void 0,this._init=pt.OK}register(){this._registered=!0,this.port=this.runtime.connect({name:z5})}sendMessage(e){Te.info("[ExtensionMessageHandler send]",e),this.port.postMessage(e)}}class UF extends _1{constructor(e){super(),this.register=()=>{this._registered=!0},e.onConnect.addListener(r=>{r.name===z5&&(this._init=pt.OK,r.onMessage.addListener(n=>{this.handleMessage(n)}))})}sendMessage(e){}unregister(){}openWallet(e,r,n){}closeWallet(){}}class ade extends vm.EventEmitter2{constructor(e){var r;super(),r=this,this.stream=e,this.responseCallbacks=new Map,this._messageIdx=0,this.nextMessageIdx=()=>++this._messageIdx,this.handleMessage=n=>{if(!n.type||!n.data)return;Te.info("[received message]",n);const s=n.idx,i=this.responseCallbacks.get(s);switch(s&&this.responseCallbacks.delete(s),n.type){case $e.MESSAGE:if(i)this.emit($e.MESSAGE,n),i(n.data.error,n);else throw new Error("impossible state");break;case $e.DISCONNECT:case $e.ACCOUNTS_CHANGED:case $e.CHAIN_CHANGED:this.emit(n.type,n.data);break;default:console.error("unknown message type",n);break}},this.sendMessageRequest=async function(n){return new Promise((s,i)=>{(!n.idx||n.idx<=0)&&i(new Error("message idx not set"));const o=(c,l)=>{if(c)i(c);else if(l)s(l);else throw new Error("no valid response to return")},{idx:a}=n;r.responseCallbacks.get(a)?i(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.sendMessage(n)})},this.stream.on("data",this.handleMessage)}sendMessage(e){this.stream.writable||console.error("window post message stream is not writable"),this.stream.write(e)}}let zl;class $F extends _1{constructor(e,r){super(r),this.walletURL=void 0,this.walletWindow=void 0,this.register=()=>{zl&&(zl.unregister(),zl=this),window.addEventListener("message",this.onWindowEvent),zl=this,this.on("open",()=>{const n=this.walletWindow,s=setInterval(()=>{n&&n.closed&&(clearInterval(s),this.close())},500)}),this.on("close",()=>{this.walletWindow&&(this.walletWindow.close(),this.walletWindow=null)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),zl===this&&(zl=void 0),window.removeEventListener("message",this.onWindowEvent),this.events.removeAllListeners()},this.openWallet=(n,s,i)=>{if(this.walletWindow&&this.isOpened()){this.walletWindow.focus();return}const o=new URL(this.walletURL.href),a=new N1;n&&n!==""&&(o.pathname=n.toLowerCase()),this._init=pt.NIL,this._sessionId=`${performance.now()}`,a.set("sid",this._sessionId),s&&(s.type==="connect"&&(s.options||(s.options={app:window.location.origin}),!_g()&&!_F()&&s.options&&(s.options.origin=window.location.origin)),a.set("intent",c5(s))),i&&a.set("net",`${i}`);let c,l;_g()?(c=[450,750],l=[Math.abs(window.screen.width/2-c[0]/2),Math.abs(window.screen.height/2-c[1]/2)]):(c=[450,750],l=[Math.abs(window.screenX+window.innerWidth/2-c[0]/2),Math.abs(window.screenY+window.innerHeight/2-c[1]/2)]);const u=`toolbar=0,location=0,menubar=0,scrollbars=yes,status=yes,width=${c[0]},height=${c[1]},left=${l[0]},top=${l[1]}`;o.search=a.toString(),this.walletWindow=window.open(o.href,"sequence.app",u)},this.onWindowEvent=n=>{if(n.origin!==this.walletURL.origin)return;let s;try{s=JSON.parse(n.data,Jv)}catch{return}if(!s)throw new Error("ProviderMessage object is empty");this.handleMessage(s)},this.walletURL=new URL(e)}closeWallet(){var e;this.close(),(e=this.walletWindow)==null||e.close()}sendMessage(e){if(!this.walletWindow){Te.warn("WindowMessageProvider: sendMessage failed as walletWindow is unavailable");return}const r=typeof e!="string"?JSON.stringify(e,Ts):e;this.walletWindow.postMessage(r,this.walletURL.origin)}}class cde extends M1{constructor(e){var r;super(e),r=this,this.parentWindow=void 0,this._isPopup=!1,this.onWindowEvent=async function(n){var s,i;if(!n.origin||n.origin===""||r.appOrigin&&n.origin!==r.appOrigin)return;let o;try{o=JSON.parse(n.data,Jv)}catch{return}if((i=(s=o).origin)!=null||(s.origin=n.origin),Te.debug("RECEIVED MESSAGE",o),r._init!==pt.OK&&r.isValidInitAck(o)&&(r.appOrigin=n.origin),r._init===pt.OK&&(!r.appOrigin||r.appOrigin.length<8)){Te.error("impossible state, init.OK and appOrigin required");return}r.handleMessage(o)},this.getWindowTransportSession=n=>{const s=new N1(n);return{sessionId:s.get("sid"),networkId:s.get("net"),intent:l5(s.get("intent"))}},this._init=pt.NIL}async register(e){const r=parent.window.opener!==null;if(this._isPopup=r,r!==!0)return;const{search:n}=new URL(e||window.location.href);let s=this.getWindowTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Te.error("window session is undefined");return}this.parentWindow=parent.window.opener,window.addEventListener("message",this.onWindowEvent,!1),this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Te.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Te.error(c),this.notifyClose({message:c}),window.close()})}unregister(){window.removeEventListener("message",this.onWindowEvent),this._registered=!1}sendMessage(e){const r=JSON.stringify(e,Ts);e.type===$e.INIT?this.postMessage(r,!0):this.postMessage(r)}get isPopup(){return this._isPopup}postMessage(e,r=!1){if(r!==!0&&this._init!==pt.OK){Te.error("impossible state, should not be calling postMessage until inited");return}r?this.parentWindow.postMessage(e,"*"):this.appOrigin&&this.appOrigin.length>4?this.parentWindow.postMessage(e,this.appOrigin):Te.error("unable to postMessage as parentOrigin is invalid")}}function WF(t){return t&&typeof t=="object"&&(t.windowTransport&&typeof t.windowTransport=="object"||t.proxyTransport&&typeof t.proxyTransport=="object"||t.extensionTransport&&typeof t.extensionTransport=="object"||t.unrealTransport&&typeof t.unrealTransport=="object")&&(t.windowTransport&&t.windowTransport.enabled||t.proxyTransport&&t.proxyTransport.enabled||t.extensionTransport&&t.extensionTransport.enabled||t.unrealTransport&&t.unrealTransport.enabled)}class xm{constructor(e=[]){var r=this;this.messageProviders=void 0,this.provider=void 0,this.register=()=>{if(this.messageProviders.length===1){this.provider=this.messageProviders[0],this.provider.register();return}this.messageProviders.forEach(n=>{n.register(),n.once("open",()=>{this.provider||(this.provider=n,this.messageProviders.forEach(s=>{this.provider!==s&&s.unregister()}))})})},this.unregister=()=>{this.messageProviders.forEach(n=>n.unregister()),this.provider=void 0},this.openWallet=(n,s,i)=>{if(this.provider){this.provider.openWallet(n,s,i);return}this.messageProviders.forEach(o=>o.openWallet(n,s,i))},this.sendMessageRequest=async function(n){if(r.provider)return r.provider.sendMessageRequest(n);throw new Error("impossible state, wallet must be opened first")},this.waitUntilOpened=async function(){return r.provider?r.provider.waitUntilOpened():Promise.race(r.messageProviders.map(n=>n.waitUntilOpened()))},this.waitUntilConnected=async function(){if(r.provider)return r.provider.waitUntilConnected();throw new Error("impossible state, wallet must be opened first")},this.messageProviders=e,this.provider=void 0}static new(e,r){var n,s,i,o;const a=new xm;if((n=e.windowTransport)!=null&&n.enabled&&typeof window=="object"&&e.walletAppURL){const c=new $F(e.walletAppURL,r);a.add(c)}if((s=e.proxyTransport)!=null&&s.enabled){const c=new LF(e.proxyTransport.appPort);a.add(c)}if((i=e.extensionTransport)!=null&&i.enabled){const c=new UF(e.extensionTransport.runtime);a.add(c)}if((o=e.unrealTransport)!=null&&o.enabled&&e.windowTransport&&e.walletAppURL){const c=new FF(e.walletAppURL);a.add(c)}return a.register(),a}add(...e){this.messageProviders.push(...e)}closeWallet(){this.provider&&this.provider.closeWallet()}isOpened(){return this.provider?this.provider.isOpened():!1}isConnected(){return this.provider?this.provider.isConnected():!1}on(e,r){if(this.provider){this.provider.on(e,r);return}this.messageProviders.forEach(n=>{n.on(e,r)})}once(e,r){if(this.provider){this.provider.once(e,r);return}this.messageProviders.forEach(n=>{n.once(e,r)})}emit(e,...r){if(this.provider)return this.provider.emit(e,...r);for(let n=0;n({connected:!1})),a=o;return a.connected&&!a.session&&(a.session=await s.walletSession(i==null?void 0:i.networkId)),o},this.isSignedIn=async function(){return await s.signerReady(),!!s.account},this.getAccount=async function(){if(await s.signerReady(),s.account===void 0)throw new Error("signerReady failed resolve");return s.account},this.account=e,this.prompter=r,this.networks=n}defaultChainId(){var e,r;return(e=(r=this.prompter)==null?void 0:r.getDefaultChainId())!=null?e:this.networks[0].chainId}async signIn(e,r={}){this.setAccount(e);const{connect:n,defaultNetworkId:s}=r;if(n){const a=this._connectOptions;let c;if(this.prompter!==null){var i;c=await((i=this.prompter)==null?void 0:i.promptSignInConnect(a))}else c=await this.connect(a);this.notifyConnect(c),(!a||a.keepWalletOpened!==!0)&&this.notifyClose()}if(s&&this.defaultChainId()!==s){var o;await((o=this.prompter)==null?void 0:o.promptChangeNetwork(s))}}signOut(){this.account&&this.notifyDisconnect(),this.setAccount(null)}signerReset(){this.account=void 0}signerReady(e=fde){return new Promise((r,n)=>{this.account!==void 0?r():(setTimeout(()=>{this.account===void 0&&(this.signerReadyCallbacks=[],n("signerReady timed out"))},e),this.signerReadyCallbacks.push(r))})}async connect(e){var r,n;if(!this.account)return{connected:!1,chainId:"0x0",error:"unable to connect without signed in account"};const s=(r=(n=e==null?void 0:e.networkId)!=null?n:this.defaultChainId())!=null?r:M.MAINNET,i=f5(s).chainId,o={connected:!0,chainId:yr(i)};if(e&&e.authorize){const a={app:e.app,origin:e.origin,expiry:e.expiry,nonce:e.authorizeNonce};try{o.proof=await Rj(this.account,i,a)}catch(c){return Te.warn(`connect, signAuthorization failed for options: ${JSON.stringify(e)}, due to: ${c.message}`),{connected:!1,chainId:"0x0",error:`signAuthorization failed: ${c.message}`}}}return o.session=this.walletSession(i),o}async sendMessageRequest(e){var r;const s=Number(((r=e.clientVersion)==null?void 0:r.split(".")[0])||"0")<2,i={id:e.data.id,jsonrpc:"2.0",result:null,error:void 0};try{const o=await this.request({method:e.data.method,params:e.data.params,chainId:e.chainId,origin:e.origin,projectAccessKey:e.projectAccessKey});return er({},e,{data:s?er({},i,{result:o}):o})}catch(o){return er({},e,{data:s?er({},i,{error:o}):{error:o}})}}async request(e){await this.getAccount();try{var r,n;if((!this.account||this.account===null)&&!hde.includes(e.method))throw PF;const l=this.account;if(!l)throw new Error("WalletRequestHandler: wallet account is not configured");const u=(r=this.account)==null?void 0:r.providerFor((n=e.chainId)!=null?n:this.defaultChainId());if(!u)throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${e.chainId}`);const f=pde(u)?u:void 0;switch(e.method){case"net_version":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("net_version",[])}case"eth_chainId":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("eth_chainId",[])}case"eth_accounts":return[l.address];case"eth_getBalance":{const[d,h]=e.params,y=await u.getBalance(d,h);return Zc(y)}case"sequence_sign":case"personal_sign":case"eth_sign":{let d;switch(e.method){case"sequence_sign":case"personal_sign":{const[b,g]=e.params;d=b;break}case"eth_sign":{const[b,g]=e.params;d=g;break}}let h="";const y=mm(d),p=e.method==="sequence_sign";if(this.prompter===null){var s;h=await l.signMessage(y,(s=e.chainId)!=null?s:this.defaultChainId(),p?"eip6492":"ignore")}else h=await this.prompter.promptSignMessage({chainId:e.chainId,message:Q(y),eip6492:p},e.origin,e.projectAccessKey);if(h&&h.length>0)return h;throw new Error("declined by user")}case"sequence_signTypedData_v4":case"eth_signTypedData":case"eth_signTypedData_v4":{const[d,h]=e.params;let y;if(typeof h=="string")try{y=JSON.parse(h)}catch(g){console.warn("walletRequestHandler: error parsing typedData",g)}else y=h;if(!y||!y.domain||!y.types||!y.message)throw new Error("invalid typedData object");let p="";const b=e.method==="sequence_signTypedData_v4";if(this.prompter===null){var i;p=await l.signTypedData(y.domain,y.types,y.message,(i=e.chainId)!=null?i:this.defaultChainId(),b?"eip6492":"ignore")}else p=await this.prompter.promptSignMessage({chainId:e.chainId,typedData:y,eip6492:b},e.origin,e.projectAccessKey);if(p&&p.length>0)return p;throw new Error("declined by user")}case"eth_sendTransaction":{const d=ude(e.params[0]).map(y=>("gas"in y&&y.gasLimit===void 0&&(y.gasLimit=y.gas,delete y.gas),y));Y2(l.address,d);let h="";if(this.prompter===null){var o,a;const y=await l.sendTransaction(d,(o=e.chainId)!=null?o:this.defaultChainId());h=(a=y==null?void 0:y.hash)!=null?a:""}else h=await this.prompter.promptSendTransaction(d,e.chainId,e.origin,e.projectAccessKey);if(h)return h;throw new Error("declined by user")}case"eth_signTransaction":{const[d]=e.params;if(Ae(d.from)!==l.address)throw new Error("sender address does not match wallet");if(Y2(l.address,d),this.prompter===null){var c;return await l.signTransactions(d,(c=e.chainId)!=null?c:this.defaultChainId())}else return await this.prompter.promptSignTransaction(d,e.chainId,e.origin,e.projectAccessKey)}case"eth_sendRawTransaction":if(de.transaction.isSignedTransactionBundle(e.params[0])){const d=Number(e.params[0].chainId);return(await l.relayer(d).relay(e.params[0])).hash}else return(await u.broadcastTransaction(e.params[0])).hash;case"eth_getTransactionCount":{const d=Ae(e.params[0]),h=e.params[1],y=await u.getTransactionCount(d,h);return Zc(BigInt(y))}case"eth_blockNumber":return await u.getBlockNumber();case"eth_getBlockByNumber":return await u.getBlock(e.params[0]);case"eth_getBlockByHash":return await u.getBlock(e.params[0]);case"eth_getTransactionByHash":return await u.getTransaction(e.params[0]);case"eth_call":{const[d,h]=e.params;return await u.call(er({},d,{blockTag:h}))}case"eth_getCode":{const[d,h]=e.params;return await u.getCode(d,h)}case"eth_estimateGas":{const[d]=e.params;return await u.estimateGas(d)}case"eth_gasPrice":{const d=await u.getFeeData();return d.gasPrice===null?null:Zc(d.gasPrice)}case"wallet_switchEthereumChain":{const[d]=e.params;if(!d.chainId||d.chainId.length===0)throw new Error("invalid chainId");const h=BigInt(d.chainId);return this.setDefaultChainId(Number(h)),null}case"sequence_getWalletContext":return l.contexts;case"sequence_getWalletConfig":{const[d]=e.params;return d?[(await l.status(d)).onChain.config]:await Promise.all(l.networks.map(async function(h){return(await l.status(h.chainId)).onChain.config}))}case"sequence_getWalletState":{const[d]=e.params;return d?[j8(d,await l.status(d))]:await Promise.all(l.networks.map(async function(h){const y=await l.status(h.chainId);return j8(h.chainId,y)}))}case"sequence_getNetworks":return await this.getNetworks(!0);case"sequence_isSequence":return!0;case"sequence_updateConfig":throw new Error("sequence_updateConfig method is not allowed from a dapp");case"sequence_publishConfig":throw new Error("sequence_publishConfig method is not allowed from a dapp");case"sequence_gasRefundOptions":break;case"sequence_getNonce":break;case"sequence_relay":break;case"sequence_setDefaultNetwork":{const[d]=e.params;if(!d)throw new Error("invalid request, method argument defaultChainId cannot be empty");return this.setDefaultChainId(d),await this.getNetworks(!0)}default:{if(!f)throw new Error("Account provider doesn't support send method");return await f.send(e.method,e.params)}}}catch(l){throw Te.error(l),{message:typeof l=="string"?l:(l==null?void 0:l.message)||"unkown error",code:4001}}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}async getAddress(){var e,r;return(e=(r=this.account)==null?void 0:r.address)!=null?e:""}get openIntent(){return this._openIntent}setOpenIntent(e){this._openIntent=e}get connectOptions(){return this._connectOptions}setConnectOptions(e){var r;this._connectOptions=e,(r=this.onConnectOptionsChange)==null||r.call(this,e)}async setDefaultChainId(e){var r;return await((r=this.prompter)==null?void 0:r.promptChangeNetwork(e)),this.defaultChainId()}async getNetworks(e){return this.account?e?this.account.networks.map(r=>{const n=er({},r);return n.provider=void 0,n.relayer=void 0,n}):this.account.networks:(Te.warn("signer not set: getNetworks is returning an empty list"),[])}walletSession(e){if(!this.account)return;const r={walletContext:this.account.contexts,accountAddress:this.account.address,networks:this.account.networks.map(s=>er({},s,{provider:void 0,relayer:void 0}))};if(e){const s=Ns(r.networks,e);if(s){var n;(n=r.networks)==null||n.forEach(i=>delete i.isDefaultChain),s.isDefaultChain=!0}}return r}notifyConnect(e,r){var n;if(console.log("emit connect",e),this.events.emit("connect",e),(n=e.session)!=null&&n.accountAddress){var s;this.events.emit("accountsChanged",[(s=e.session)==null?void 0:s.accountAddress],r)}}notifyDisconnect(e){this.events.emit("accountsChanged",[],e),this.events.emit("disconnect",void 0,e)}notifyChainChanged(e,r){this.events.emit("chainChanged",yr(e),r)}async notifyNetworks(e){const r=e||await this.getNetworks(!0);if(this.events.emit("networks",r),r.length>0){const n=r.find(s=>s.chainId===this.defaultChainId());n&&this.events.emit("chainChanged",yr(n.chainId))}else this.events.emit("chainChanged","0x0")}async notifyWalletContext(){if(!this.account){Te.warn("signer not set: skipping to notify wallet context");return}const e=this.account.contexts;this.events.emit("walletContext",e)}notifyClose(e){this.events.emit("close",e)}setAccount(e){if(this.account=e,e!==void 0){for(let r=0;rl.canOnchainValidate||l.original.version===2&&n,a=await r.status(s);if(o(a))return!0;if(await e.promptConfirmWalletDeploy(s,i)){const l=await r.status(s);return o(l)?!0:(Te.error("WalletRequestHandler: result for promptConfirmWalletDeploy is not correct"),!1)}return!1}}function j8(t,e){return{context:e.original.context,config:e.onChain.config,address:de.context.addressOf(e.original.context,e.original.imageHash),chainId:t,deployed:e.onChain.deployed,imageHash:e.imageHash,lastImageHash:e.onChain.imageHash,published:!0,status:e}}const hde=["net_version","eth_chainId","eth_getBalance","eth_getTransactionCount","eth_blockNumber","eth_getBlockByNumber","eth_getBlockByHash","eth_getTransactionByHash","eth_getCode","eth_estimateGas","eth_gasPrice","sequence_getWalletContext","sequence_getNetworks","sequence_setDefaultNetwork"];function pde(t){return t&&typeof t=="object"&&typeof t.send=="function"&&typeof t.getNetwork=="function"}function yde(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}class Id{get utils(){return this.provider.utils}constructor(e,r){this.client=e,this.provider=r,this.singleNetworkSigners={},this._isSequenceSigner=!0}async getAddress(){return this.client.getAddress()}connect(e){if(!Pd.is(e))throw new Error("SequenceSigner can only be connected to a SequenceProvider");return new Id(this.client,e)}getSigner(e){if(!e)return this;const r=this.provider.toChainId(e);return this.singleNetworkSigners[r]||(this.singleNetworkSigners[r]=new H5(this.client,this.provider,r)),this.singleNetworkSigners[r]}useChainId(e){return this.provider.toChainId(e)||this.client.getChainId()}async signMessage(e,r){const{eip6492:n=!0}=r||{},s=this.useChainId(r==null?void 0:r.chainId);return this.client.signMessage(e,{eip6492:n,chainId:s})}async signTypedData(e,r,n,s){const{eip6492:i=!0}=s||{},o=this.useChainId(s==null?void 0:s.chainId);return this.client.signTypedData({domain:e,types:r,message:n},{eip6492:i,chainId:o})}getProvider(e){return this.provider.getProvider(e)}async sendTransaction(e,r){const n=this.useChainId(r==null?void 0:r.chainId),s=await BF(e),i=await this.client.sendTransaction(s,{chainId:n}),o=this.getProvider(n);try{return await new Promise(c=>{(async function u(){const f=await o.getTransaction(i);if(f!==null)return c(f);await o.once("block",u)})()})}catch(a){throw a.transactionHash=i,a}}async getWalletConfig(e){const r=this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}getNetworks(){return this.client.getNetworks()}async getBalance(e,r){return this.getProvider(r==null?void 0:r.chainId).getBalance(this.getAddress(),e)}async estimateGas(e,r){return this.getProvider(r==null?void 0:r.chainId).estimateGas(e)}async call(e,r){return this.getProvider(r==null?void 0:r.chainId).call(e)}getChainId(){return Promise.resolve(this.client.getChainId())}async getFeeData(e){return this.getProvider(e==null?void 0:e.chainId).getFeeData()}async resolveName(e){const r=await this.provider.resolveName(e);if(r===null)throw new Error(`ENS name not found: ${e}`);return r}_checkProvider(e){}getNonce(e){throw new Error("SequenceSigner does not support getNonce")}populateCall(e){throw new Error("SequenceSigner does not support populateCall")}populateTransaction(e){throw new Error("SequenceSigner does not support populateTransaction")}checkTransaction(e){throw new Error("SequenceSigner does not support checkTransaction")}getTransactionCount(e){throw new Error("SequenceSigner does not support getTransactionCount")}signTransaction(e){throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.")}static is(e){return e&&typeof e=="object"&&e._isSequenceSigner===!0}}class H5 extends Id{constructor(e,r,n){super(e,r.getProvider(n)),this.chainId=n,this._isSingleNetworkSequenceSigner=!0}_useChainId(e){const r=this.provider.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This signer only supports the network ${this.chainId}, but ${r} was requested.`);return r||this.provider.toChainId(this.chainId)}useChainId(e){return this._useChainId(e)}getChainId(){return Promise.resolve(this.provider.toChainId(this.chainId))}getProvider(e){return super.getProvider(this._useChainId(e))}getSigner(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceSigner===!0}}class gde{constructor(e){if(this.signer=e,H5.is(e))throw new Error("WalletUtils does not support SingleNetworkSequenceSigner")}signMessage(e,r,n){return this.signer.signMessage(e,{chainId:r,eip6492:n})}signTypedData(e,r,n,s,i){return this.signer.signTypedData(e,r,n,{chainId:s,eip6492:i})}async isValidSignature(e,r,n,s){return cd(e,r,n,this.signer.getProvider(s))}async isValidMessageSignature(e,r,n,s){const i=this.signer.getProvider(s),o=mm(r),a=u5(o);return cd(e,a,n,i)}isValidTypedDataSignature(e,r,n,s){return this.isValidSignature(e,Ad(r),n,s)}}const vde=["method"],F8=["connect","disconnect","chainChanged","accountsChanged"];class Pd extends td{constructor(e,r,n=od,s){super(e.getChainId(),s),this.client=e,this.providerFor=r,this.networks=n,this.options=s,this.singleNetworkProviders={},this._isSequenceProvider=!0,this.utils=void 0,this.signer=void 0,this.eip1193EventListeners=new Map,e.onConnect(i=>{var o;(o=this.eip1193EventListeners.get("connect"))==null||o.forEach(a=>a(i))}),e.onDisconnect(i=>{var o;(o=this.eip1193EventListeners.get("disconnect"))==null||o.forEach(a=>a(i))}),e.onDefaultChainIdChanged(i=>{var o;(o=this.eip1193EventListeners.get("chainChanged"))==null||o.forEach(a=>a(i))}),e.onAccountsChanged(i=>{var o;(o=this.eip1193EventListeners.get("accountsChanged"))==null||o.forEach(a=>a(i))}),this.signer=new Id(this.client,this),this.utils=new gde(this.signer)}async on(e,r){if(F8.includes(e)){const n=this.eip1193EventListeners.get(e)||new Set;return n.add(r),this.eip1193EventListeners.set(e,n),this}return super.on(e,r)}async off(e,r){if(F8.includes(e)){const n=this.eip1193EventListeners.get(e);return n&&(r?n.delete(r):n.clear()),this}return super.off(e,r)}getSigner(e){return this.signer.getSigner(e)}connect(e){return this.client.connect(e)}disconnect(){return this.client.disconnect()}isConnected(){return this.client.isConnected()}getSession(){return this.client.getSession()}listAccounts(){return[this.client.getAddress()]}getAddress(){return this.client.getAddress()}getNetworks(){return this.client.getNetworks()}getChainId(){return this.client.getChainId()}setDefaultChainId(e){return this.client.setDefaultChainId(this.toChainId(e))}isOpened(){return this.client.isOpened()}closeWallet(){return this.client.closeWallet()}getWalletContext(){return this.client.getWalletContext()}async getWalletConfig(e){const r=await this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}authorize(e){return this.client.connect(er({},e,{authorize:!0}))}async openWallet(e,r){return await this.client.openWallet(e,r),!0}toChainId(e){if(e===void 0)return;const r=Ns(this.networks,e);if(!r)throw new Error(`Unsupported network ${e}`);return r.chainId}async useChainId(e){return this.toChainId(e)||this.client.getChainId()}getProvider(e){if(!e)return this;const r=this.toChainId(e);return this.singleNetworkProviders[r]||(this.singleNetworkProviders[r]=new zF(this.client,this.providerFor,r,this.options)),this.singleNetworkProviders[r]}async _getSubprovider(e){const r=await this.useChainId(e),n=this.providerFor(r);if(!n)throw new Error(`Unsupported network ${r}`);return n}async _perform(e){var r;const{method:n}=e,s=yde(e,vde),i=await this._getSubprovider(),o=(r=i.getRpcRequest(e))!=null?r:{method:n,args:Object.values(s)};if(!o)throw new Error(`Unsupported method ${e.method}`);return i.send(o.method,o.args)}async perform(e,r){if(e==="eth_chainId")return yr(await this.useChainId());if(e==="eth_accounts")return[this.client.getAddress()];if(e==="wallet_switchEthereumChain"){const n=r[0],s=VF(n);return this.setDefaultChainId(s)}return e==="eth_sendTransaction"||e==="eth_sign"||e==="eth_signTypedData"||e==="eth_signTypedData_v4"||e==="personal_sign"||e==="sequence_sign"||e==="sequence_signTypedData_v4"?this.client.request({method:e,params:r,chainId:this.getChainId()}):this._perform(er({method:e},r))}send(e,r){return this.perform(e,r)}request(e){return this.perform(e.method,e.params)}async _detectNetwork(){const e=this.client.getChainId(),r=Ns(this.networks,e);if(!r)throw new Error(`Unknown network ${e}`);return new lt(r.name,r.chainId)}async detectNetwork(){return this._detectNetwork()}async waitForTransaction(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).waitForTransaction(e,r,n)}async getBlockNumber(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getBlockNumber()}async getFeeData(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getFeeData()}async getBalance(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBalance(e,r)}async getTransactionCount(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getTransactionCount(e,r)}async getCode(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getCode(e,r)}async getStorage(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).getStorage(e,r,n)}async call(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).call(e)}async estimateGas(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).estimateGas(e)}async getBlock(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBlock(e,r)}async getTransaction(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getTransaction(e)}async getLogs(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getLogs(e)}async supportsENS(){return(await this.getNetworks()).some(r=>r.chainId===1)}async getResolver(e){return await this.supportsENS()?(await this._getSubprovider(1)).getResolver(e):null}async resolveName(e){return ag(e)?e:await this.supportsENS()?(await this._getSubprovider(1)).resolveName(e):null}async lookupAddress(e){return await this.supportsENS()?(await this._getSubprovider(1)).lookupAddress(e):null}async getAvatar(e){return await this.supportsENS()?(await this._getSubprovider(1)).getAvatar(e):null}}Pd.is=t=>t&&typeof t=="object"&&t._isSequenceProvider===!0;function VF(t){return typeof t=="object"?VF(t.chainId):Number(t)}class zF extends Pd{constructor(e,r,n,s){super(e,r,void 0,s),this.chainId=n,this._isSingleNetworkSequenceProvider=!0}_useChainId(e){const r=this.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This provider only supports the network ${this.chainId}, but ${r} was requested.`);return r||super.toChainId(this.chainId)}useChainId(e){return Promise.resolve(this._useChainId(e))}getChainId(){return super.toChainId(this.chainId)}async getNetwork(){const e=await this.client.getNetworks(),r=Ns(e,this.chainId);if(!r)throw new Error(`Unsupported network ${this.chainId}`);return new lt(r.name,r.chainId)}getProvider(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}getSigner(e){return super.getSigner(this._useChainId(e))}setDefaultChainId(e){throw new Error(`This provider only supports the network ${this.chainId}; use the parent provider to switch networks.`)}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceProvider===!0}}let mde=function(t){return t[t.INIT=0]="INIT",t[t.VIEW=1]="VIEW",t[t.SIGN_MESSAGE_REQUEST=2]="SIGN_MESSAGE_REQUEST",t[t.SIGN_TYPED_DATA_REQUEST=3]="SIGN_TYPED_DATA_REQUEST",t[t.SEND_TRANSACTION_REQUEST=4]="SEND_TRANSACTION_REQUEST",t}({});class HF extends Wfe{}const GF=(t,e)=>{e||(e="https://nodes.sequence.app");const r=!t,n={};return t&&(n.headers={"X-Access-Key":t}),new HF(e,n,{noop:r,defaultEnabled:!0,privacy:{userIdHash:!0,userAgentSalt:!1},initProps:()=>Ji()?{origin:window.location.origin}:{}})};class nl{constructor(e){this.store=e}connectedSession(){const e=this.getSession();if(e&&e.accountAddress&&e.walletContext&&e.networks)return{accountAddress:e.accountAddress,walletContext:e.walletContext,networks:e.networks};throw new Error("Sequence session not connected")}hasSession(){var e;return((e=this.getSession())==null?void 0:e.accountAddress)!==void 0}setSession(e){return this.store.setItem(nl.SESSION_LOCALSTORE_KEY,JSON.stringify(e))}getSession(){const e=this.store.getItem(nl.SESSION_LOCALSTORE_KEY);if(e)return JSON.parse(e)}async clearSession(){return this.store.removeItem(nl.SESSION_LOCALSTORE_KEY)}}nl.SESSION_LOCALSTORE_KEY="@sequence.session";class sl{constructor(e,r=1){this.store=e,this.startingChainId=r,this.callbacks=[],e.onItemChange(sl.SESSION_CHAIN_ID_KEY,n=>{if(n){const s=parseInt(n);this.callbacks.forEach(i=>i(s))}})}onDefaultChainIdChanged(e){return this.callbacks.push(e),()=>{this.callbacks=this.callbacks.filter(r=>r!==e)}}setDefaultChainId(e){e!==this.getDefaultChainId()&&this.store.setItem(sl.SESSION_CHAIN_ID_KEY,e.toString())}getDefaultChainId(){const e=this.store.getItem(sl.SESSION_CHAIN_ID_KEY);return!e||e.length===0?this.startingChainId:parseInt(e)}}sl.SESSION_CHAIN_ID_KEY="@sequence.session.defaultChainId";class G5{constructor(e,r,n){var s,i;if(this.session=void 0,this.defaultChainId=void 0,this.callbacks={},this.transport=void 0,this.defaultEIP6492=void 0,this.projectAccessKey=void 0,this.analytics=void 0,WF(e))this.transport=xm.new(e,n==null?void 0:n.projectAccessKey);else if(TF(e))this.transport=e;else throw new Error("Invalid transport");const o=n==null?void 0:n.defaultChainId;if(this.defaultEIP6492=(s=n==null?void 0:n.defaultEIP6492)!=null?s:!1,this.session=new nl(r),this.defaultChainId=new sl(r,o),this.transport.on("accountsChanged",l=>{var u;l.length>1&&console.warn("SequenceClient: wallet-webapp returned more than one account"),(u=this.callbacks.accountsChanged)==null||u.forEach(f=>f(l))}),this.transport.on("connect",l=>{var u;const f=yr(this.getChainId());(u=this.callbacks.connect)==null||u.forEach(d=>d(er({},l,{chainId:f})))}),this.transport.on("disconnect",(l,u)=>{var f;(f=this.callbacks.disconnect)==null||f.forEach(d=>d(l,u))}),this.transport.on("networks",l=>{var u;(u=this.callbacks.networks)==null||u.forEach(f=>f(l))}),this.transport.on("walletContext",l=>{var u;(u=this.callbacks.walletContext)==null||u.forEach(f=>f(l))}),this.transport.on("open",l=>{var u;(u=this.callbacks.open)==null||u.forEach(f=>f(l))}),this.transport.on("close",()=>{var l;(l=this.callbacks.close)==null||l.forEach(u=>u())}),this.transport.on("chainChanged",(l,u)=>{var f;(f=this.callbacks.chainChanged)==null||f.forEach(d=>d(l,u))}),this.defaultChainId.onDefaultChainIdChanged(l=>{var u;const f=yr(l);(u=this.callbacks.chainChanged)==null||u.forEach(d=>d(f))}),n!=null&&n.projectAccessKey&&(this.projectAccessKey=n.projectAccessKey),this.projectAccessKey&&n!=null&&n.analytics&&(this.analytics=GF(this.projectAccessKey)),(i=this.session.getSession())!=null&&i.accountAddress){var a,c;(a=this.analytics)==null||a.identify((c=this.session.getSession())==null||(c=c.accountAddress)==null?void 0:c.toLowerCase())}}registerCallback(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),()=>{this.callbacks[e]=this.callbacks[e].filter(n=>n!==r)}}onOpen(e){return this.registerCallback("open",e)}onClose(e){return this.registerCallback("close",e)}onConnect(e){return this.registerCallback("connect",e)}onDisconnect(e){return this.registerCallback("disconnect",e)}onNetworks(e){return this.registerCallback("networks",e)}onAccountsChanged(e){return this.registerCallback("accountsChanged",e)}onWalletContext(e){return this.registerCallback("walletContext",e)}onChainChanged(e){return this.registerCallback("chainChanged",e)}onDefaultChainIdChanged(e){return this.registerCallback("chainChanged",e)}getChainId(){return this.defaultChainId.getDefaultChainId()}setDefaultChainId(e){return this.defaultChainId.setDefaultChainId(e)}async openWallet(e,r){return this.transport.openWallet(e,r,this.getChainId()),await this.transport.waitUntilOpened(),this.isOpened()}closeWallet(){return this.transport.closeWallet()}isOpened(){return this.transport.isOpened()}isConnected(){return this.session.hasSession()}getSession(){return this.session.getSession()}getAddress(){return this.session.connectedSession().accountAddress}async connect(e){if((e==null?void 0:e.authorizeVersion)===void 0&&(e.authorizeVersion=2),(e==null?void 0:e.refresh)===!0&&this.disconnect(),e.projectAccessKey=this.projectAccessKey,e&&e.authorize){if(!e.app)throw new Error("connecting with 'authorize' option also requires 'app' to be set");e.authorizeVersion===void 0&&(e.authorizeVersion=2)}await this.openWallet(void 0,{type:"connect",options:er({},e,{networkId:this.getChainId(),clientVersion:Wr})});const r=await this.transport.waitUntilConnected().catch(i=>i instanceof Error?{connected:!1,error:i.message}:{connected:!1,error:JSON.stringify(i)});if(r.chainId&&(r.chainId=BigInt(r.chainId).toString()),r.connected){var n;if(!r.session)throw new Error("impossible state, connect response is missing session");if(this.session.setSession(r.session),(n=r.session)!=null&&n.accountAddress){var s;(s=this.analytics)==null||s.identify(r.session.accountAddress.toLowerCase())}}return r}disconnect(){var e;return this.isOpened()&&this.closeWallet(),(e=this.analytics)==null||e.reset(),this.session.clearSession()}async request(e){e.method=this.mapSignMethod(e.method);const r=await this.transport.request(e);return xde(r)}async getNetworks(e){const r=this.session.connectedSession();return e&&(r.networks=await this.request({method:"sequence_getNetworks"}),this.session.setSession(r)),r.networks}signMethod(e){return(e==null?void 0:e.eip6492)===void 0?"personal_sign":e.eip6492?"sequence_sign":"legacy_sign"}signTypedDataMethod(e){return(e==null?void 0:e.eip6492)===void 0?"eth_signTypedData_v4":e.eip6492?"sequence_signTypedData_v4":"legacy_signTypedData_v4"}mapSignMethod(e){return e==="personal_sign"?this.defaultEIP6492?"sequence_sign":"personal_sign":e==="eth_signTypedData_v4"?this.defaultEIP6492?"sequence_signTypedData_v4":"eth_signTypedData_v4":e==="legacy_sign"?"personal_sign":e==="legacy_signTypedData_v4"?"eth_signTypedData_v4":e}async signMessage(e,r){var n;const s=this.signMethod(r);return(n=this.analytics)==null||n.track({event:"SIGN_MESSAGE_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),e=z(V5(e)),this.request({method:s,params:[e,this.getAddress()],chainId:r==null?void 0:r.chainId})}async signTypedData(e,r){var n;const s=this.signTypedDataMethod(r),i=Bs.getPayload(e.domain,e.types,e.message);return(n=this.analytics)==null||n.track({event:"SIGN_TYPED_DATA_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:s,params:[this.getAddress(),i],chainId:(r==null?void 0:r.chainId)||e.domain.chainId&&Number(e.domain.chainId)||this.getChainId()})}async sendTransaction(e,r){var n;const s=Array.isArray(e)?e:[e],i=lde(s);return(n=this.analytics)==null||n.track({event:"SEND_TRANSACTION_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:"eth_sendTransaction",params:[i],chainId:r==null?void 0:r.chainId})}async getWalletContext(){return this.request({method:"sequence_getWalletContext"})}async getOnchainWalletConfig(e){const r=await this.request({method:"sequence_getWalletConfig",params:[(e==null?void 0:e.chainId)||this.getChainId()],chainId:e==null?void 0:e.chainId});return Array.isArray(r)?r[0]:r}}const xde=t=>t&&typeof t=="object"&&"jsonrpc"in t&&"result"in t?t.result:t,Z2={transports:{walletAppURL:"https://sequence.app",windowTransport:{enabled:!0},proxyTransport:{enabled:!1}},defaultNetwork:1,analytics:!0};let li;const qF=(t,e)=>{var r,n,s;if(!t||typeof t!="string")throw new Error("Please pass a projectAccessKey in initWallet.");if(li)return li;const i=er({},Z2,e,{transports:er({},Z2.transports,e==null?void 0:e.transports)}),o={},a=(r=(n=i.networks)==null?void 0:n.filter(h=>{h.rpcUrl!==void 0&&h.chainId!==void 0&&od.find(y=>y.chainId===h.chainId)}))!=null?r:[],c=od.map(h=>{var y;const p=(y=i.networks)==null?void 0:y.find(b=>b.chainId===h.chainId);return p?er({},h,p):h}).concat(a).map(h=>(h.rpcUrl.includes(t)||(h.rpcUrl=h.rpcUrl+`/${t}`),h)),l=h=>{if(!o[h]){var y;const p=(y=c.find(b=>b.chainId===h))==null?void 0:y.rpcUrl;if(!p)throw new Error(`no rpcUrl found for chainId: ${h}`);o[h]=new ZM(p,{middlewares:[JM,QM,new d5]},{cacheTimeout:-1})}return o[h]},u=i.defaultNetwork?(s=Ns(c,i.defaultNetwork))==null?void 0:s.chainId:void 0;if(!u&&i.defaultNetwork)throw new Error(`defaultNetwork not found for chainId: ${i.defaultNetwork}`);const f=i.localStorage||Mg(),d=new G5(i.transports,f,{defaultChainId:u,defaultEIP6492:i.defaultEIP6492,projectAccessKey:t,analytics:i.analytics});return li=new Pd(d,l),li},KF=()=>{li&&(li.client.closeWallet(),li.client.transport.unregister(),li=void 0)},QF=()=>{if(!li)throw new Error("Wallet has not been initialized, call sequence.initWallet(config) first.");return li},bde=Object.freeze(Object.defineProperty({__proto__:null,Analytics:HF,AnalyticsEventType:mde,BaseInjectedTransport:ade,BaseProviderTransport:_1,BaseWalletTransport:M1,CHANNEL_ID:z5,DefaultChainIdTracker:sl,DefaultProviderConfig:Z2,ErrSignedInRequired:PF,EventType:$e,ExtensionMessageHandler:ode,ExtensionMessageProvider:UF,InitState:pt,LocalStorage:B0,MemoryItemStore:DF,MuxMessageProvider:xm,OpenState:Jn,PROVIDER_OPEN_TIMEOUT:W5,ProviderError:IF,ProxyMessageChannel:nde,ProxyMessageChannelPort:X2,ProxyMessageHandler:sde,ProxyMessageProvider:LF,SequenceClient:G5,SequenceClientSession:nl,SequenceProvider:Pd,SequenceSigner:Id,SingleNetworkSequenceProvider:zF,SingleNetworkSequenceSigner:H5,UnrealMessageHandler:ide,UnrealMessageProvider:FF,WalletRequestHandler:dde,WindowMessageHandler:cde,WindowMessageProvider:$F,WindowSessionParams:N1,getWallet:QF,initWallet:qF,isBrowserExtension:_g,isMuxTransportTemplate:WF,isProviderTransport:TF,isUnityPlugin:_F,isValidMessageSignature:RF,isValidSignature:cd,isValidTypedDataSignature:NF,isWalletUpToDate:MF,messageToBytes:V5,nextMessageIdx:OF,prefixEIP191Message:mm,resolveArrayProperties:BF,setupAnalytics:GF,trimEIP191Prefix:rde,unregisterWallet:KF,useBestStore:Mg,validateTransactionRequest:Y2},Symbol.toStringTag,{value:"Module"}));function en(t,e){return e.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in t)){var s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(t)}var wde=en({__proto__:null},[Yoe]),Ede=en({__proto__:null},[aae]),Cde=en({__proto__:null},[zue]),kde=en({__proto__:null},[cfe]),Sde=en({__proto__:null},[Ble]),Ade=en({__proto__:null},[Kle]),Tde=en({__proto__:null},[rce]),Ide=en({__proto__:null},[bde]),Pde=en({__proto__:null},[gle]);const Ode=de.transaction;var Rde=Object.freeze({__proto__:null,transactions:Ode}),Nde=en({__proto__:null,isValidSignature:cd,isValidMessageSignature:RF,isValidTypedDataSignature:NF,isWalletUpToDate:MF},[Vae]),_de=en({__proto__:null},[Gce]),Mde=en({__proto__:null},[vle]),Dde=en({__proto__:null},[$ue]),Bde=en({__proto__:null},[Xce]),Lde=en({__proto__:null},[Ele]),He=Object.freeze({__proto__:null,abi:wde,api:Ede,auth:Cde,guard:kde,indexer:Sde,metadata:Ade,network:Tde,provider:Ide,relayer:Pde,transactions:Rde,utils:Nde,core:_de,signhub:Mde,sessions:Dde,migration:Bde,account:Lde,initWallet:qF,getWallet:QF,unregisterWallet:KF,SequenceProvider:Pd,SequenceClient:G5,SequenceSigner:Id});const U8=[{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}];var jde="_1e9z9271";const Fde=({message:t,loading:e})=>{const r=()=>t?` +...`:"...";return ie.jsx(sK,{label:"Console",defaultOpen:!0,children:ie.jsxs(Ce,{as:"pre",color:"text80",style:{fontFamily:"monospace",whiteSpace:"break-spaces",overflowWrap:"anywhere"},children:[t,e&&r(),ie.jsx(Ce,{className:jde,display:"inline-block",fontSize:"large",lineHeight:"4",style:{top:"-4px",position:"relative"},children:"_"})]})})};var Ude="_1q07ov40";const Io=t=>{const{label:e,children:r,style:n,className:s}=t;return ie.jsxs(Ce,{marginTop:"10",marginBottom:"8",marginX:"0",width:"full",className:s,style:n,children:[e&&ie.jsx(Ce,{marginBottom:"2",children:ie.jsx($de,{children:e})}),ie.jsx(Ce,{className:Ude,children:Vr.Children.map(r,(i,o)=>ie.jsx(Ce,{children:i},o))})]})},$de=t=>ie.jsx(Tt,{variant:"normal",fontWeight:"medium",color:"text50",children:t.children}),Wde=()=>{const t=window.localStorage.getItem("defaultChainId");return t==null?null:Number(t)},$8=t=>"0x"+t.toString(16),Vde="/demo-dapp/assets/logo-EKCqYZBG.svg",W8="/demo-dapp/assets/skyweaver-banner-AT9gQtXT.png",zde="/demo-dapp/assets/skyweaver-banner-large-Dt2dVXke.png",V8="AQAAAAAAAAbvrgpWEC2Aefg5qYStQmwjBpA";IM({logLevel:"DEBUG"});const JF=[{name:"production",walletUrl:"https://sequence.app"},{name:"development",walletUrl:"https://dev.sequence.app"},{name:"local",walletUrl:"http://localhost:3333"}],Hde="https://api.sequence.app",z8=Wde()||M.MAINNET,wc=new URLSearchParams(window.location.search),YF=wc.get("env")??"production",Gde=JF.find(t=>t.name===YF),gu=wc.get("walletAppURL")??Gde.walletUrl,qde=wc.has("showProhibitedActions");gu&&gu.length>0?He.initWallet(V8,{defaultNetwork:z8,transports:{walletAppURL:gu}}):He.initWallet(V8,{defaultNetwork:z8,transports:{walletAppURL:gu}});const Kde=()=>{const[t,e]=x.useState(null),[r,n]=x.useState(null),[s,i]=x.useState(!1),[o,a]=x.useState(!1),c=He.getWallet().getProvider(),[l,u]=x.useState(c.getChainId()),[f,d]=x.useState(!1),[h,y]=x.useState(!1);x.useMemo(()=>{c.on("chainChanged",U=>{u(Number(BigInt(U)))})},[]),x.useEffect(()=>{a(c.isConnected())},[c]),x.useEffect(()=>{he()},[o]),x.useEffect(()=>{c.client.onOpen(()=>{console.log("wallet window opened")}),c.client.onClose(()=>{console.log("wallet window closed")})},[c]);const p={app:"Demo Dapp",askForEmail:!0},b=async(U={app:"Demo dapp"})=>{if(o){ue(),K("Wallet already connected!"),i(!1);return}U={...p,...U,settings:{...p.settings,...U.settings}};try{ue(),K("Connecting");const se=He.getWallet(),ae=await se.connect(U);if(U.authorize&&ae.connected){let Re=wc.get("apiUrl");(!Re||Re.length===0)&&(Re=Hde);const st=new He.api.SequenceAPIClient(Re),{isValid:$t}=await st.isValidETHAuthProof({chainId:ae.chainId,walletAddress:ae.session.accountAddress,ethAuthProofString:ae.proof.proofString});K(`isValid (API)?: ${$t}`)}if(U.authorize){const Re=new wg;if(ae.proof){const st=await Re.decodeProof(ae.proof.proofString,!0),$t=await se.utils.isValidTypedDataSignature(se.getAddress(),ae.proof.typedData,st.signature,Number(BigInt(ae.chainId)));K(`connected using chainId: ${BigInt(ae.chainId).toString()}`),K(`isValid (client)?: ${$t}`)}}i(!1),ae.connected?(K("Wallet connected!"),K(`shared email: ${ae.email}`),a(!0)):K("Failed to connect wallet - "+ae.error)}catch(se){console.error(se),oe()}},g=()=>{He.getWallet().disconnect(),he(),a(!1)},v=()=>{He.getWallet().openWallet()},m=()=>{const U=He.getWallet(),ae={type:"openWithOptions",options:{app:"Demo Dapp",settings:{theme:"light",includedPaymentProviders:["moonpay","ramp"],defaultFundingCurrency:"eth",defaultPurchaseAmount:400,lockFundingCurrencyToDefault:!1}}};U.openWallet("wallet/add-funds",ae)},k=()=>{He.getWallet().closeWallet()},A=async()=>{ue();const U=He.getWallet();K(`isConnected?: ${U.isConnected()}`),i(!1)},P=async()=>{ue();const U=He.getWallet();K(`isOpened?: ${U.isOpened()}`),i(!1)},R=async()=>{try{ue();const U=c.getChainId();K(`top chainId: ${U}`);const ae=c.getProvider().getChainId();K(`provider.getChainId(): ${ae}`);const st=await c.getSigner().getChainId();K(`signer.getChainId(): ${st}`),i(!1)}catch(U){console.error(U),oe()}},N=async()=>{try{ue();const U=He.getWallet(),se=U.getAddress();K(`getAddress(): ${se}`);const Re=U.getProvider().listAccounts();K(`accounts: ${JSON.stringify(Re)}`),i(!1)}catch(U){console.error(U),oe()}},V=async()=>{try{ue();const U=He.getWallet(),se=U.getProvider(),ae=U.getAddress(),Re=await se.getBalance(ae);K(`balance check 1: ${Re.toString()}`);const $t=await U.getSigner().getBalance();K(`balance check 2: ${$t.toString()}`),i(!1)}catch(U){console.error(U),oe()}},F=async()=>{try{ue();const se=await He.getWallet().getNetworks();K(`networks: ${JSON.stringify(se,null,2)}`),i(!1)}catch(U){console.error(U),oe()}},X=async()=>{try{ue();const U=He.getWallet();K("signing message...");const se=U.getSigner(),ae=`1915 Robert Frost +The Road Not Taken + +Two roads diverged in a yellow wood, +And sorry I could not travel both +And be one traveler, long I stood +And looked down one as far as I could +To where it bent in the undergrowth + +Then took the other, as just as fair, +And having perhaps the better claim, +Because it was grassy and wanted wear +Though as for that the passing there +Had worn them really about the same, + +And both that morning equally lay +In leaves no step had trodden black. +Oh, I kept the first for another day! +Yet knowing how way leads on to way, +I doubted if I should ever come back. + +I shall be telling this with a sigh +Somewhere ages and ages hence: +Two roads diverged in a wood, and Iā€” +I took the one less traveled by, +And that has made all the difference. + +ā˜ ā˜€ ā˜‚`,Re=await se.signMessage(ae);K(`signature: ${Re}`);const st=await U.utils.isValidMessageSignature(U.getAddress(),ae,Re,await se.getChainId());if(K(`isValid?: ${st}`),!st)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},re=async()=>{try{ue();const U=He.getWallet();K("signing message...");const se=U.getSigner(),ae=z(mt("Hello, world!")),Re=await se.signMessage(ae);K(`signature: ${Re}`);const st=await U.utils.isValidMessageSignature(U.getAddress(),ae,Re,await se.getChainId());if(K(`isValid?: ${st}`),!st)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},le=async()=>{try{ue();const U=He.getWallet();K("signing message...");const se=U.getSigner(),ae=mt("Hello, world!"),Re=await se.signMessage(ae);K(`signature: ${Re}`);const st=await U.utils.isValidMessageSignature(U.getAddress(),ae,Re,await se.getChainId());if(K(`isValid?: ${st}`),!st)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},ee=async()=>{try{ue();const U=He.getWallet();K("signing typedData...");const se={types:{Person:[{name:"name",type:"string"},{name:"wallet",type:"address"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person"},{name:"cc",type:"Person[]"},{name:"contents",type:"string"},{name:"attachements",type:"string[]"}]},primaryType:"Mail",domain:{name:"Ether Mail",version:"1",chainId:1,verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},message:{from:{name:"Cow",wallet:"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},to:{name:"Bob",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},cc:[{name:"Dev Team",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},{name:"Accounting",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"}],contents:"Hello, Bob!",attachements:["cat.png","dog.png"]}},ae=U.getSigner(),Re=await ae.signTypedData(se.domain,se.types,se.message);K(`signature: ${Re}`);const st=await U.utils.isValidTypedDataSignature(U.getAddress(),se,Re,await ae.getChainId());K(`isValid?: ${st}`),i(!1)}catch(U){console.error(U),oe()}},B=async()=>{try{ue();const U=He.getWallet(),se="0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",ae=new ut(["function withdraw(uint256 amount)"]),Re={to:se,data:ae.encodeFunctionData("withdraw",["1000000000000000000"])},$t=await U.getProvider().estimateGas(Re);K(`estimated gas needed for wmatic withdrawal : ${$t.toString()}`),i(!1)}catch(U){console.error(U),oe()}},G=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner(),K(`Transfer txn on ${U.getChainId()} chainId`);const ae=await U.getAddress(),Re={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Dw("1.234"),data:"0x"},st={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Dw("0.4242"),data:"0x"},$t=U.provider,Ei=await $t.getBalance(ae);K(`balance of ${ae}, before: ${Ei}`);const bm=await U.sendTransaction([Re,st]);K(`txnResponse: ${JSON.stringify(bm)}`);const wm=await $t.getBalance(ae);K(`balance of ${ae}, after: ${wm}`),i(!1)}catch(se){console.error(se),oe()}},Z=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Re=og("1",1),$t={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x07865c6e87b9f70255377e024ace6630c1eaa37f",value:0,data:new ut(U8).encodeFunctionData("transfer",[ae,$8(Re)])},Ei=await U.sendTransaction([$t],{chainId:M.SEPOLIA});K(`txnResponse: ${JSON.stringify(Ei)}`),i(!1)}catch(se){console.error(se),oe()}},E=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Re=og("0.05",18),$t={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",value:0,data:new ut(U8).encodeFunctionData("transfer",[ae,$8(Re)])},Ei=await U.sendTransaction([$t]);K(`txnResponse: ${JSON.stringify(Ei)}`),i(!1)}catch(se){console.error(se),oe()}},S=async()=>{try{const U=He.getWallet(),se=U.getChainId()===M.ARBITRUM?M.OPTIMISM:M.ARBITRUM;G(U.getSigner(se))}catch(U){console.error(U),oe()}},O=async()=>{try{ue(),K("TODO"),i(!1)}catch(U){console.error(U),oe()}},D=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae=["function balanceOf(address owner) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)","function transfer(address to, uint amount) returns (bool)","event Transfer(address indexed from, address indexed to, uint amount)"],Re="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",st=new dn(Re,ae),$t=await st.symbol();K(`Token symbol: ${$t}`);const Ei=await st.balanceOf(await U.getAddress());K(`Token Balance: ${Ei.toString()}`),i(!1)}catch(se){console.error(se),oe()}},L=async()=>{try{ue();const U=He.getWallet(),ae=await U.getSigner().getAddress(),st=(await U.getNetworks()).find(wm=>wm.chainId===M.POLYGON);if(!st)throw new Error("Could not find Polygon network in networks list");const $t=new He.indexer.SequenceIndexer(st.indexerUrl),Ei=await $t.getTokenBalances({accountAddress:ae,includeMetadata:!0});K(`tokens in your account: ${JSON.stringify(Ei)}`);const bm=await $t.getTokenBalances({accountAddress:ae,includeMetadata:!0,contractAddress:"0x631998e91476DA5B870D741192fc5Cbc55F5a52E"});K(`skyweaver collectibles in your account: ${JSON.stringify(bm)}`),i(!1)}catch(U){console.error(U),oe()}},W=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new ut(Ht.mainModule.abi).encodeFunctionData("updateImplementation",[xi])},Re=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Re)}`),i(!1)}catch(se){console.error(se),oe()}},q=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new ut(Ht.mainModuleUpgradable.abi).encodeFunctionData("updateImageHash",[yl])},Re=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Re)}`),i(!1)}catch(se){console.error(se),oe()}},te=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),delegateCall:!0},Re=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Re)}`),i(!1)}catch(se){console.error(se),oe()}},J=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new ut(["function addHook(bytes4 _signature, address _implementation)"]).encodeFunctionData("addHook",["0x01234567",xi])},Re=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Re)}`),i(!1)}catch(se){console.error(se),oe()}},$=async U=>{try{ue();const se=He.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new ut(["function setExtraImageHash(bytes32 _imageHash, uint256 _expiration)"]).encodeFunctionData("setExtraImageHash",[yl,BN])},Re=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Re)}`),i(!1)}catch(se){console.error(se),oe()}},K=(U,se=!1)=>(console.log(U),e(se?U:ae=>`${ae} + +${U}`)),ue=()=>{i(!0)},he=()=>{i(!1),e(o?"Status: Wallet is connected :)":"Status: Wallet not connected. Please connect wallet first.")},oe=()=>{i(!1),e("An error occurred")},ke=[M.RINKEBY,M.HARDHAT,M.HARDHAT_2,M.KOVAN,M.ROPSTEN,M.HOMEVERSE_TESTNET,M.BASE_GOERLI],_e=Object.values(He.network.networks).filter(U=>U.type===Ie.MAINNET).sort((U,se)=>U.chainId-se.chainId),xt=Object.values(He.network.networks).filter(U=>U.type===Ie.TESTNET).sort((U,se)=>U.chainId-se.chainId),tn=[..._e,...xt].filter(U=>!U.deprecated&&!ke.includes(U.chainId));x.useEffect(()=>{r&&!f&&(console.log(r),b({app:"Demo Dapp",authorize:!0,settings:{signInWithEmail:r,theme:"dark",bannerUrl:`${window.location.origin}${W8}`}}),n(null))},[r,f]);const wr=U=>(U=U.trim(),!!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(U));return ie.jsxs(Ce,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[ie.jsx(Ce,{marginBottom:"10",children:ie.jsx("a",{href:"https://sequence.xyz/",target:"_blank",rel:"noopener",children:ie.jsx(XC,{height:"6",alt:"logo",src:Vde})})}),ie.jsx(Ce,{children:ie.jsx(Tt,{variant:"normal",color:"text100",fontWeight:"bold",children:"Demo Dapp"})}),ie.jsx(Ce,{marginTop:"1",marginBottom:"4",children:ie.jsx(Tt,{variant:"normal",color:"text80",children:"A dapp example on how to use the Sequence Wallet. This covers how to connect, sign messages and send transctions."})}),ie.jsxs(yq,{background:"backgroundMuted",alignItems:"center",gap:"3",children:[ie.jsx(Wq,{}),ie.jsx(Tt,{variant:"normal",color:"text80",children:"Please open your browser dev inspector to view output of functions below."})]}),ie.jsx(gA,{background:"buttonGlass"}),ie.jsx(Ce,{marginBottom:"4",children:ie.jsx(qA,{name:"environment",label:"Environment",labelLocation:"top",onValueChange:U=>{wc.set("env",U),wc.delete("walletAppURL"),window.location.search=wc.toString()},value:YF,options:[...Object.values(JF).map(U=>({label:ie.jsx(Ce,{alignItems:"center",gap:"2",children:ie.jsx(Tt,{capitalize:!0,children:U.name})}),value:String(U.name)}))]})}),ie.jsxs(Ce,{marginBottom:"4",children:[ie.jsx(Tt,{as:"div",variant:"small",color:"text100",children:"Wallet URL"}),ie.jsxs(Ce,{as:"a",href:gu,target:"_blank",rel:"noopener",textDecoration:"none",gap:"1",marginTop:"1",alignItems:"center",color:"text80",children:[ie.jsx(Tt,{as:"div",variant:"normal",color:"text80",children:gu}),ie.jsx(jq,{})]})]}),ie.jsx(gA,{background:"buttonGlass"}),ie.jsx(Ce,{marginBottom:"4",children:ie.jsx(qA,{name:"chainId",label:"Network",labelLocation:"top",onValueChange:U=>c.setDefaultChainId(Number(U)),value:String(l),options:[...Object.values(tn).map(U=>({label:ie.jsxs(Ce,{alignItems:"center",gap:"2",children:[ie.jsx(Pee,{src:U.logoURI,size:"sm"}),ie.jsx(Tt,{children:U.title})]}),value:String(U.chainId)}))]})}),ie.jsxs(Io,{label:"Connection",children:[ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>b(),label:"Connect"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0}),label:"Connect & Auth"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0,settings:{theme:"dark",bannerUrl:`${window.location.origin}${zde}`,bannerSize:"medium",includedPaymentProviders:["moonpay"],defaultFundingCurrency:"matic",defaultPurchaseAmount:111}}),label:"Connect with Settings"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>{d(!0)},label:"Connect with Email"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>{b({app:"Demo Dapp",authorize:!0,settings:{signInWith:"google",theme:"dark",bannerUrl:`${window.location.origin}${W8}`}})},label:"Connect with Google"}),ie.jsx(Ve,{width:"full",shape:"square",onClick:()=>g(),label:"Disconnect"})]}),ie.jsxs(Io,{label:"Basics",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>v(),label:"Open Wallet"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>m(),label:"Open Wallet with Settings"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>k(),label:"Close Wallet"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>A(),label:"Is Connected?"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>P(),label:"Is Opened?"})]}),ie.jsxs(Io,{label:"State",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>R(),label:"ChainID"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>F(),label:"Networks"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>N(),label:"Get Accounts"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>V(),label:"Get Balance"})]}),ie.jsxs(Io,{label:"Signing",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>X(),label:"Sign Message"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>re(),label:"Sign Message (Hex)"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>le(),label:"Sign Message (Bytes)"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>ee(),label:"Sign TypedData"})]}),ie.jsx(Io,{label:"Simulation",children:ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>B(),label:"Estimate Unwrap Gas"})}),ie.jsxs(Io,{label:"Transactions",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>G(),label:"Send funds"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>S(),label:"Send on L2"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>E(),label:"Send DAI"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o||!0,onClick:()=>O(),label:"Send ERC-1155 Tokens"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>Z(),label:"Send USDC on Sepolia"})]}),ie.jsxs(Io,{label:"Various",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>D(),label:"Read Symbol and Balance"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>L(),label:"Fetch Token Balances"})]}),qde&&ie.jsxs(Io,{label:"Prohibited Actions - FOR TESTING ONLY! DO NOT CONFIRM!",children:[ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>W(),label:"Update Implementation"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>q(),label:"Update Image Hash"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>te(),label:"Delegate Call"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>J(),label:"Add Hook"}),ie.jsx(Ve,{width:"full",shape:"square",disabled:!o,onClick:()=>$(),label:"Set Extra Image Hash"})]}),ie.jsx(xP,{children:f&&ie.jsx(AX,{onClose:()=>d(!1),size:"sm",children:ie.jsx(Ce,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"16",children:ie.jsxs(Ce,{flexDirection:"column",children:[ie.jsx(Ce,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"text80",children:"Auto-email login, please specify the email address"})}),ie.jsx(Ce,{marginTop:"4",children:ie.jsx(sk,{onChange:U=>{n(U.target.value)}})}),h?ie.jsx(Ce,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"warning",children:"please input an email with correct format"})}):null,ie.jsx(Ce,{gap:"2",marginY:"4",children:ie.jsx(Ve,{variant:"primary",label:"Login",onClick:()=>{wr(r)?(y(!1),d(!1)):y(!0)},"data-id":"login"})})]})})})}),ie.jsx(Fde,{message:t,loading:s})]})},Qde=Vr.memo(Kde),Jde=pR(document.getElementById("root"));Jde.render(ie.jsx(Vr.StrictMode,{children:ie.jsx(bX,{children:ie.jsx(Qde,{})})})); diff --git a/index.html b/index.html index f62fb00..153996a 100644 --- a/index.html +++ b/index.html @@ -25,8 +25,8 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Sequence | Demo Dapp - - + +