@credenza3/passport-evm 0.2.20 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/{App-CVL5rG_7.js → App-CRzqtg0D.js} +18 -18
  2. package/dist/{App-CVL5rG_7.js.map → App-CRzqtg0D.js.map} +1 -1
  3. package/dist/{Button-DqEdQlgP.js → Button-CZxrrdcl.js} +4 -4
  4. package/dist/{Button-DqEdQlgP.js.map → Button-CZxrrdcl.js.map} +1 -1
  5. package/dist/{ButtonBack-vxTGGwU6.js → ButtonBack-CcTF2hiR.js} +4 -4
  6. package/dist/{ButtonBack-vxTGGwU6.js.map → ButtonBack-CcTF2hiR.js.map} +1 -1
  7. package/dist/{ButtonLink-Dbc5ZFe5.js → ButtonLink-B3cTSB_f.js} +3 -3
  8. package/dist/{ButtonLink-Dbc5ZFe5.js.map → ButtonLink-B3cTSB_f.js.map} +1 -1
  9. package/dist/{ConfirmAccount-CzJ-4HcH.js → ConfirmAccount-BMxaxxuE.js} +9 -9
  10. package/dist/{ConfirmAccount-CzJ-4HcH.js.map → ConfirmAccount-BMxaxxuE.js.map} +1 -1
  11. package/dist/{ContentHeader-BL6VCaOC.js → ContentHeader-C9ZjxEks.js} +3 -3
  12. package/dist/{ContentHeader-BL6VCaOC.js.map → ContentHeader-C9ZjxEks.js.map} +1 -1
  13. package/dist/{Error-cuDoKeUy.js → Error-BNFeWG26.js} +5 -5
  14. package/dist/{Error-cuDoKeUy.js.map → Error-BNFeWG26.js.map} +1 -1
  15. package/dist/{Input-CwK6i9kK.js → Input-CGvyhwU3.js} +4 -4
  16. package/dist/{Input-CwK6i9kK.js.map → Input-CGvyhwU3.js.map} +1 -1
  17. package/dist/{Label-DZWmB1jC.js → Label-wrbO2KWV.js} +3 -3
  18. package/dist/{Label-DZWmB1jC.js.map → Label-wrbO2KWV.js.map} +1 -1
  19. package/dist/{Loader-CR_PsWeQ.js → Loader-DxNNTG5t.js} +3 -3
  20. package/dist/{Loader-CR_PsWeQ.js.map → Loader-DxNNTG5t.js.map} +1 -1
  21. package/dist/{Login-BLxKy2wr.js → Login-BLzU089t.js} +9 -9
  22. package/dist/{Login-BLxKy2wr.js.map → Login-BLzU089t.js.map} +1 -1
  23. package/dist/{Logout-DMSGdeJk.js → Logout-6hsVMO7a.js} +6 -6
  24. package/dist/{Logout-DMSGdeJk.js.map → Logout-6hsVMO7a.js.map} +1 -1
  25. package/dist/{Nav-WMkbBHYm.js → Nav-BtMAE1f8.js} +5 -5
  26. package/dist/{Nav-WMkbBHYm.js.map → Nav-BtMAE1f8.js.map} +1 -1
  27. package/dist/{PassportId-Drg1oJ8k.js → PassportId-BIM66rME.js} +6 -6
  28. package/dist/{PassportId-Drg1oJ8k.js.map → PassportId-BIM66rME.js.map} +1 -1
  29. package/dist/{Payment-BGGkR1cJ.js → Payment-DLvPXTu8.js} +235 -229
  30. package/dist/Payment-DLvPXTu8.js.map +1 -0
  31. package/dist/{PaymentResult-Vxz68gmZ.js → PaymentResult-Ba_fDcXj.js} +4 -4
  32. package/dist/{PaymentResult-Vxz68gmZ.js.map → PaymentResult-Ba_fDcXj.js.map} +1 -1
  33. package/dist/{Profile-D5OVDyh3.js → Profile-rOzKISMM.js} +7 -7
  34. package/dist/{Profile-D5OVDyh3.js.map → Profile-rOzKISMM.js.map} +1 -1
  35. package/dist/{ProgressVideo-htlN2ByZ.js → ProgressVideo-QfEHz9I6.js} +5 -5
  36. package/dist/{ProgressVideo-htlN2ByZ.js.map → ProgressVideo-QfEHz9I6.js.map} +1 -1
  37. package/dist/{RichAlert-DezBlHxy.js → RichAlert-BUMPmrkW.js} +5 -5
  38. package/dist/{RichAlert-DezBlHxy.js.map → RichAlert-BUMPmrkW.js.map} +1 -1
  39. package/dist/{Scanner-Cl31otyX.js → Scanner-hbpnj7Un.js} +6 -6
  40. package/dist/{Scanner-Cl31otyX.js.map → Scanner-hbpnj7Un.js.map} +1 -1
  41. package/dist/{SendTokens-BGGPj_e_.js → SendTokens-DXMch6BI.js} +7 -7
  42. package/dist/{SendTokens-BGGPj_e_.js.map → SendTokens-DXMch6BI.js.map} +1 -1
  43. package/dist/{Sign-n6MGx-1d.js → Sign-DJN-_MDG.js} +6 -6
  44. package/dist/{Sign-n6MGx-1d.js.map → Sign-DJN-_MDG.js.map} +1 -1
  45. package/dist/{Stripe.service-K8Nm72sZ.js → Stripe.service-D7muWv_f.js} +3 -3
  46. package/dist/{Stripe.service-K8Nm72sZ.js.map → Stripe.service-D7muWv_f.js.map} +1 -1
  47. package/dist/{UpdateProfile-BbMPWUyU.js → UpdateProfile-C_d1OWGt.js} +10 -10
  48. package/dist/{UpdateProfile-BbMPWUyU.js.map → UpdateProfile-C_d1OWGt.js.map} +1 -1
  49. package/dist/{UserInfo-htUCiyHe.js → UserInfo-BMvl7_7Z.js} +4 -4
  50. package/dist/{UserInfo-htUCiyHe.js.map → UserInfo-BMvl7_7Z.js.map} +1 -1
  51. package/dist/{Wallet-BHxkNNa4.js → Wallet-CcKidq9M.js} +7 -7
  52. package/dist/{Wallet-BHxkNNa4.js.map → Wallet-CcKidq9M.js.map} +1 -1
  53. package/dist/{each-CxApMty7.js → each-ByCR9jp6.js} +2 -2
  54. package/dist/{each-CxApMty7.js.map → each-ByCR9jp6.js.map} +1 -1
  55. package/dist/{html-BynZ0QgP.js → html-VVJg_dPD.js} +3 -3
  56. package/dist/{html-BynZ0QgP.js.map → html-VVJg_dPD.js.map} +1 -1
  57. package/dist/{index-QYUycBJ8.js → index-53POqKTn.js} +7 -7
  58. package/dist/{index-QYUycBJ8.js.map → index-53POqKTn.js.map} +1 -1
  59. package/dist/{index-client-BZifBt-8.js → index-client-DgwnQ7pj.js} +2 -2
  60. package/dist/{index-client-BZifBt-8.js.map → index-client-DgwnQ7pj.js.map} +1 -1
  61. package/dist/{input-2LrEHvzA.js → input-CY6a4cHM.js} +2 -2
  62. package/dist/{input-2LrEHvzA.js.map → input-CY6a4cHM.js.map} +1 -1
  63. package/dist/{legacy-ShShb87f.js → legacy-C8JnmExZ.js} +2 -2
  64. package/dist/{legacy-ShShb87f.js.map → legacy-C8JnmExZ.js.map} +1 -1
  65. package/dist/passport.es.js +1 -1
  66. package/dist/passport.umd.js +8 -8
  67. package/dist/passport.umd.js.map +1 -1
  68. package/package.json +1 -1
  69. package/dist/Payment-BGGkR1cJ.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap";.crdz-ui *,.crdz-ui :before,.crdz-ui :after{font-family:Poppins,serif;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.crdz-ui :before,.crdz-ui :after{--tw-content: ""}.crdz-ui hr{height:0;color:inherit;border-top-width:1px}.crdz-ui abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.crdz-ui h1,.crdz-ui h2,.crdz-ui h3,.crdz-ui h4,.crdz-ui h5,.crdz-ui h6{font-size:inherit;font-weight:inherit}.crdz-ui a{color:inherit;text-decoration:inherit}.crdz-ui b,.crdz-ui strong{font-weight:bolder}.crdz-ui code,.crdz-ui kbd,.crdz-ui samp,.crdz-ui pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}.crdz-ui small{font-size:80%}.crdz-ui sub,.crdz-ui sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.crdz-ui sub{bottom:-.25em}.crdz-ui sup{top:-.5em}.crdz-ui table{text-indent:0;border-color:inherit;border-collapse:collapse}.crdz-ui button,.crdz-ui select{text-transform:none}.crdz-ui button,.crdz-ui [type=button],.crdz-ui [type=reset],.crdz-ui [type=submit]{font-size:100%;-webkit-appearance:button;background-image:none}.crdz-ui :-moz-focusring{outline:auto}.crdz-ui :-moz-ui-invalid{box-shadow:none}.crdz-ui progress{vertical-align:baseline}.crdz-ui ::-webkit-inner-spin-button,.crdz-ui ::-webkit-outer-spin-button{height:auto}.crdz-ui [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.crdz-ui ::-webkit-search-decoration{-webkit-appearance:none}.crdz-ui ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.crdz-ui summary{display:list-item}.crdz-ui blockquote,.crdz-ui dl,.crdz-ui dd,.crdz-ui h1,.crdz-ui h2,.crdz-ui h3,.crdz-ui h4,.crdz-ui h5,.crdz-ui h6,.crdz-ui hr,.crdz-ui figure,.crdz-ui p,.crdz-ui span,.crdz-ui label,.crdz-ui pre{margin:0;letter-spacing:normal!important}.crdz-ui label{text-transform:initial!important}.crdz-ui fieldset{margin:0;padding:0}.crdz-ui legend{padding:0}.crdz-ui ol,.crdz-ui ul,.crdz-ui menu{list-style:none;margin:0;padding:0}.crdz-ui dialog{padding:0}.crdz-ui textarea{resize:vertical}.crdz-ui input::-moz-placeholder,.crdz-ui textarea::-moz-placeholder{opacity:1;color:#9ca3af}.crdz-ui input::placeholder,.crdz-ui textarea::placeholder{opacity:1;color:#9ca3af}.crdz-ui button,.crdz-ui [role=button]{cursor:pointer}.crdz-ui :disabled{cursor:default}.crdz-ui img,.crdz-ui svg,.crdz-ui video,.crdz-ui canvas,.crdz-ui audio,.crdz-ui iframe,.crdz-ui embed,.crdz-ui object{display:block;vertical-align:middle;opacity:1}.crdz-ui [hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.crtw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}.crtw-pointer-events-none{pointer-events:none!important}.crtw-invisible{visibility:hidden!important}.crtw-fixed{position:fixed!important}.crtw-absolute{position:absolute!important}.crtw-relative{position:relative!important}.crtw-bottom-0{bottom:0!important}.crtw-left-0{left:0!important}.crtw-right-0{right:0!important}.crtw-top-0{top:0!important}.crtw-top-\\[8px\\]{top:8px!important}.crtw-z-10{z-index:10!important}.crtw-z-50{z-index:50!important}.crtw-z-\\[-1\\]{z-index:-1!important}.crtw-z-\\[1050\\]{z-index:1050!important}.crtw-float-right{float:right!important}.crtw-m-2{margin:.5rem!important}.crtw-m-3\\.5{margin:.875rem!important}.crtw-m-5{margin:1.25rem!important}.crtw-mx-1\\.5{margin-left:.375rem!important;margin-right:.375rem!important}.crtw-mx-\\[50px\\]{margin-left:50px!important;margin-right:50px!important}.crtw-mx-auto{margin-left:auto!important;margin-right:auto!important}.crtw-my-0{margin-top:0!important;margin-bottom:0!important}.crtw-my-0\\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.crtw-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.crtw-my-5{margin-top:1.25rem!important;margin-bottom:1.25rem!important}.crtw-mb-1{margin-bottom:.25rem!important}.crtw-mb-1\\.5{margin-bottom:.375rem!important}.crtw-mb-2{margin-bottom:.5rem!important}.crtw-mb-2\\.5{margin-bottom:.625rem!important}.crtw-mb-3{margin-bottom:.75rem!important}.crtw-mb-3\\.5{margin-bottom:.875rem!important}.crtw-mb-4{margin-bottom:1rem!important}.crtw-mb-5{margin-bottom:1.25rem!important}.crtw-mb-6{margin-bottom:1.5rem!important}.crtw-mb-9{margin-bottom:2.25rem!important}.crtw-mb-\\[100px\\]{margin-bottom:100px!important}.crtw-mb-\\[30px\\]{margin-bottom:30px!important}.crtw-ml-1{margin-left:.25rem!important}.crtw-ml-1\\.5{margin-left:.375rem!important}.crtw-ml-2\\.5{margin-left:.625rem!important}.crtw-mr-0\\.5{margin-right:.125rem!important}.crtw-mr-1\\.5{margin-right:.375rem!important}.crtw-mr-14{margin-right:3.5rem!important}.crtw-mr-2{margin-right:.5rem!important}.crtw-mt-0\\.5{margin-top:.125rem!important}.crtw-mt-1{margin-top:.25rem!important}.crtw-mt-1\\.5{margin-top:.375rem!important}.crtw-mt-2\\.5{margin-top:.625rem!important}.crtw-mt-3\\.5{margin-top:.875rem!important}.crtw-mt-4{margin-top:1rem!important}.crtw-mt-6{margin-top:1.5rem!important}.crtw-mt-9{margin-top:2.25rem!important}.crtw-mt-\\[-10px\\]{margin-top:-10px!important}.crtw-mt-\\[30px\\]{margin-top:30px!important}.crtw-mt-\\[36px\\]{margin-top:36px!important}.crtw-mt-\\[5px\\]{margin-top:5px!important}.crtw-box-border{box-sizing:border-box!important}.crtw-block{display:block!important}.crtw-flex{display:flex!important}.crtw-inline-flex{display:inline-flex!important}.crtw-hidden{display:none!important}.crtw-h-1\\.5{height:.375rem!important}.crtw-h-11{height:2.75rem!important}.crtw-h-3{height:.75rem!important}.crtw-h-4{height:1rem!important}.crtw-h-64{height:16rem!important}.crtw-h-7{height:1.75rem!important}.crtw-h-8{height:2rem!important}.crtw-h-9{height:2.25rem!important}.crtw-h-\\[30px\\]{height:30px!important}.crtw-h-\\[50px\\]{height:50px!important}.crtw-h-\\[53px\\]{height:53px!important}.crtw-h-full{height:100%!important}.crtw-max-h-full{max-height:100%!important}.crtw-min-h-\\[155px\\]{min-height:155px!important}.crtw-min-h-screen{min-height:100vh!important}.crtw-w-1\\.5{width:.375rem!important}.crtw-w-1\\/2{width:50%!important}.crtw-w-11{width:2.75rem!important}.crtw-w-16{width:4rem!important}.crtw-w-4{width:1rem!important}.crtw-w-40{width:10rem!important}.crtw-w-56{width:14rem!important}.crtw-w-64{width:16rem!important}.crtw-w-8{width:2rem!important}.crtw-w-\\[110px\\]{width:110px!important}.crtw-w-\\[200px\\]{width:200px!important}.crtw-w-\\[70px\\]{width:70px!important}.crtw-w-\\[90px\\]{width:90px!important}.crtw-w-full{width:100%!important}.crtw-min-w-16{min-width:4rem!important}.crtw-max-w-\\[30px\\]{max-width:30px!important}.crtw-max-w-\\[380px\\]{max-width:380px!important}.crtw-max-w-xs{max-width:20rem!important}.crtw-flex-1{flex:1 1 0%!important}@keyframes crtw-spin{to{transform:rotate(360deg)}}.crtw-animate-spin{animation:crtw-spin 1s linear infinite!important}.crtw-cursor-pointer{cursor:pointer!important}.crtw-appearance-none{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}.crtw-flex-row{flex-direction:row!important}.crtw-flex-col{flex-direction:column!important}.crtw-items-start{align-items:flex-start!important}.crtw-items-center{align-items:center!important}.crtw-justify-start{justify-content:flex-start!important}.crtw-justify-center{justify-content:center!important}.crtw-justify-between{justify-content:space-between!important}.crtw-justify-items-center{justify-items:center!important}.crtw-gap-10{gap:2.5rem!important}.crtw-gap-14{gap:3.5rem!important}.crtw-gap-2\\.5{gap:.625rem!important}.crtw-gap-3{gap:.75rem!important}.crtw-gap-4{gap:1rem!important}.crtw-gap-6{gap:1.5rem!important}.crtw-gap-9{gap:2.25rem!important}.crtw-gap-\\[22px\\]{gap:22px!important}.crtw-gap-\\[6px\\]{gap:6px!important}.crtw-overflow-hidden{overflow:hidden!important}.crtw-overflow-y-scroll{overflow-y:scroll!important}.crtw-whitespace-normal{white-space:normal!important}.crtw-break-words{overflow-wrap:break-word!important}.crtw-break-all{word-break:break-all!important}.crtw-rounded{border-radius:.25rem!important}.crtw-rounded-\\[10px\\]{border-radius:10px!important}.crtw-rounded-\\[3px\\]{border-radius:3px!important}.crtw-rounded-full{border-radius:9999px!important}.crtw-rounded-lg{border-radius:.5rem!important}.crtw-rounded-md{border-radius:.375rem!important}.crtw-rounded-sm{border-radius:.125rem!important}.crtw-rounded-xl{border-radius:.75rem!important}.crtw-border{border-width:1px!important}.crtw-border-0{border-width:0px!important}.crtw-border-2{border-width:2px!important}.crtw-border-t-2{border-top-width:2px!important}.crtw-border-\\[\\#990008\\]{--tw-border-opacity: 1 !important;border-color:rgb(153 0 8 / var(--tw-border-opacity, 1))!important}.crtw-border-\\[\\#d9d9d9\\]{--tw-border-opacity: 1 !important;border-color:rgb(217 217 217 / var(--tw-border-opacity, 1))!important}.crtw-border-black{--tw-border-opacity: 1 !important;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))!important}.crtw-border-blue-800{--tw-border-opacity: 1 !important;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-200{--tw-border-opacity: 1 !important;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))!important}.crtw-border-gray-700{--tw-border-opacity: 1 !important;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))!important}.crtw-bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.crtw-bg-black\\/70{background-color:#000000b3!important}.crtw-bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))!important}.crtw-bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))!important}.crtw-bg-green-500{--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))!important}.crtw-bg-red-500{--tw-bg-opacity: 1 !important;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))!important}.crtw-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.crtw-fill-black{fill:#000!important}.crtw-fill-red-500{fill:#ef4444!important}.crtw-p-0{padding:0!important}.crtw-p-2\\.5{padding:.625rem!important}.crtw-p-px{padding:1px!important}.crtw-px-0{padding-left:0!important;padding-right:0!important}.crtw-px-0\\.5{padding-left:.125rem!important;padding-right:.125rem!important}.crtw-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.crtw-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.crtw-px-4{padding-left:1rem!important;padding-right:1rem!important}.crtw-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.crtw-px-\\[22px\\]{padding-left:22px!important;padding-right:22px!important}.crtw-px-\\[36px\\]{padding-left:36px!important;padding-right:36px!important}.crtw-py-0{padding-top:0!important;padding-bottom:0!important}.crtw-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.crtw-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.crtw-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.crtw-pb-2{padding-bottom:.5rem!important}.crtw-pb-9{padding-bottom:2.25rem!important}.crtw-pl-5{padding-left:1.25rem!important}.crtw-pr-1\\.5{padding-right:.375rem!important}.crtw-pr-5{padding-right:1.25rem!important}.crtw-pt-11{padding-top:2.75rem!important}.crtw-pt-4{padding-top:1rem!important}.crtw-pt-5{padding-top:1.25rem!important}.crtw-pt-\\[3px\\]{padding-top:3px!important}.crtw-text-left{text-align:left!important}.crtw-text-center{text-align:center!important}.crtw-text-right{text-align:right!important}.crtw-text-justify{text-align:justify!important}.crtw-font-\\[\\'Poppins\\'\\]{font-family:Poppins!important}.crtw-font-\\[\\'poppins\\'\\],.crtw-font-\\[poppins\\]{font-family:poppins!important}.crtw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}.crtw-text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.crtw-text-\\[10px\\]{font-size:10px!important}.crtw-text-\\[13px\\]{font-size:13px!important}.crtw-text-\\[21px\\]{font-size:21px!important}.crtw-text-\\[24px\\]{font-size:24px!important}.crtw-text-\\[9px\\]{font-size:9px!important}.crtw-text-base{font-size:1rem!important;line-height:1.5rem!important}.crtw-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.crtw-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.crtw-text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.crtw-text-xs{font-size:.75rem!important;line-height:1rem!important}.crtw-font-bold{font-weight:700!important}.crtw-font-medium{font-weight:500!important}.crtw-font-semibold{font-weight:600!important}.crtw-uppercase{text-transform:uppercase!important}.crtw-text-\\[\\#121e2b\\]{--tw-text-opacity: 1 !important;color:rgb(18 30 43 / var(--tw-text-opacity, 1))!important}.crtw-text-\\[\\#313a2c\\]{--tw-text-opacity: 1 !important;color:rgb(49 58 44 / var(--tw-text-opacity, 1))!important}.crtw-text-\\[\\#747474\\]{--tw-text-opacity: 1 !important;color:rgb(116 116 116 / var(--tw-text-opacity, 1))!important}.crtw-text-\\[\\#990008\\]{--tw-text-opacity: 1 !important;color:rgb(153 0 8 / var(--tw-text-opacity, 1))!important}.crtw-text-black{--tw-text-opacity: 1 !important;color:rgb(0 0 0 / var(--tw-text-opacity, 1))!important}.crtw-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-400{--tw-text-opacity: 1 !important;color:rgb(156 163 175 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-600{--tw-text-opacity: 1 !important;color:rgb(75 85 99 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity, 1))!important}.crtw-text-gray-800{--tw-text-opacity: 1 !important;color:rgb(31 41 55 / var(--tw-text-opacity, 1))!important}.crtw-text-hightlightColor{--tw-text-opacity: 1 !important;color:rgb(11 114 224 / var(--tw-text-opacity, 1))!important}.crtw-text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1))!important}.crtw-text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1))!important}.crtw-text-textMain{--tw-text-opacity: 1 !important;color:rgb(31 31 31 / var(--tw-text-opacity, 1))!important}.crtw-text-warningTextColor{--tw-text-opacity: 1 !important;color:rgb(153 0 8 / var(--tw-text-opacity, 1))!important}.crtw-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.crtw-underline{text-decoration-line:underline!important}.crtw-no-underline{text-decoration-line:none!important}.crtw-placeholder-\\[\\#d9d9d9\\]::-moz-placeholder{--tw-placeholder-opacity: 1 !important;color:rgb(217 217 217 / var(--tw-placeholder-opacity, 1))!important}.crtw-placeholder-\\[\\#d9d9d9\\]::placeholder{--tw-placeholder-opacity: 1 !important;color:rgb(217 217 217 / var(--tw-placeholder-opacity, 1))!important}.crtw-shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.crtw-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.crtw-backdrop-blur-lg{--tw-backdrop-blur: blur(16px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.crtw-backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.first\\:crtw-rounded-l:first-child{border-top-left-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.last\\:crtw-rounded-r:last-child{border-top-right-radius:.25rem!important;border-bottom-right-radius:.25rem!important}.hover\\:crtw-bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))!important}.hover\\:crtw-bg-gray-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))!important}.hover\\:crtw-text-blue-800:hover{--tw-text-opacity: 1 !important;color:rgb(30 64 175 / var(--tw-text-opacity, 1))!important}.focus\\:crtw-border-\\[\\#121e2b\\]:focus{--tw-border-opacity: 1 !important;border-color:rgb(18 30 43 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-border-\\[\\#990008\\]:focus{--tw-border-opacity: 1 !important;border-color:rgb(153 0 8 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-border-blue-800:focus{--tw-border-opacity: 1 !important;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-border-blue-900:focus{--tw-border-opacity: 1 !important;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))!important}.focus\\:crtw-text-blue-900:focus{--tw-text-opacity: 1 !important;color:rgb(30 58 138 / var(--tw-text-opacity, 1))!important}.focus\\:crtw-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\\:crtw-outline-0:focus{outline-width:0px!important}.disabled\\:crtw-bg-\\[\\#d9d9d9\\]:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))!important}.crtw-group:hover .group-hover\\:crtw-visible{visibility:visible!important}@media (min-width: 640px){.sm\\:crtw-m-4{margin:1rem!important}.sm\\:crtw-mb-px{margin-bottom:1px!important}.sm\\:crtw-max-w-\\[360px\\]{max-width:360px!important}.sm\\:crtw-max-w-md{max-width:28rem!important}.sm\\:crtw-px-1\\.5{padding-left:.375rem!important;padding-right:.375rem!important}.sm\\:crtw-pt-2{padding-top:.5rem!important}.sm\\:crtw-pt-\\[50px\\]{padding-top:50px!important}.sm\\:crtw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}.sm\\:crtw-text-\\[11px\\]{font-size:11px!important}.sm\\:crtw-text-base{font-size:1rem!important;line-height:1.5rem!important}.sm\\:crtw-text-sm{font-size:.875rem!important;line-height:1.25rem!important}}@media (min-width: 768px){.md\\:crtw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}}@media (min-height: 650px){.sm-tall\\:crtw-max-h-\\[650px\\]{max-height:650px!important}}`)),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- (function(Ph,Lm){typeof exports=="object"&&typeof module<"u"?Lm(exports):typeof define=="function"&&define.amd?define(["exports"],Lm):(Ph=typeof globalThis<"u"?globalThis:Ph||self,Lm(Ph.CredenzaPassport={}))})(this,function(Ph){"use strict";const nD={version:"0.2.20"},$A=!1;var Vm=Array.isArray,sD=Array.prototype.indexOf,Jw=Array.from,Sp=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,HA=Object.getOwnPropertyDescriptors,iD=Object.prototype,oD=Array.prototype,Qw=Object.getPrototypeOf,ZA=Object.isExtensible;const cc=()=>{};function JA(t){return typeof t?.then=="function"}function aD(t){return t()}function Cp(t){for(var e=0;e<t.length;e++)t[e]()}function cD(){var t,e,r=new Promise((n,s)=>{t=n,e=s});return{promise:r,resolve:t,reject:e}}const ws=2,Yw=4,Dm=8,Nh=16,Xo=32,Nl=64,QA=128,Ds=256,Wm=512,wn=1024,Ws=2048,ea=4096,wi=8192,Il=16384,Kw=32768,jm=65536,YA=1<<17,lD=1<<18,Tp=1<<19,KA=1<<20,qw=1<<21,Xw=1<<22,Ol=1<<23,lc=Symbol("$state"),qA=Symbol("legacy props"),uD=Symbol(""),e3=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},t3=3,Ih=8;function XA(t){return t===this.v}function e_(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function t_(t){return!e_(t,this.v)}function hD(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function r_(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function dD(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fD(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pD(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gD(t){throw new Error("https://svelte.dev/e/effect_orphan")}function mD(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yD(){throw new Error("https://svelte.dev/e/hydration_failed")}function vD(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function bD(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wD(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function kD(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Oh=!1,ED=!1;function AD(){Oh=!0}const Gm=1,zm=2,n_=4,_D=8,SD=16,CD=1,TD=2,s_=4,RD=8,PD=16,xD=1,ND=2,i_="[",$m="[!",r3="]",Bl={},Kr=Symbol(),ID="http://www.w3.org/1999/xhtml",OD="@attach";let Pr=null;function Bh(t){Pr=t}function ot(t,e=!1,r){Pr={p:Pr,c:null,e:null,s:t,x:null,l:Oh&&!e?{s:null,u:null,$:[]}:null}}function at(t){var e=Pr,r=e.e;if(r!==null){e.e=null;for(var n of r)F_(n)}return t!==void 0&&(e.x=t),Pr=e.p,t??{}}function Ul(){return!Oh||Pr!==null&&Pr.l===null}function Rp(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function BD(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let Tt=!1;function ks(t){Tt=t}let tr;function us(t){if(t===null)throw Rp(),Bl;return tr=t}function ta(){return us(co(tr))}function Ne(t){if(Tt){if(co(tr)!==null)throw Rp(),Bl;tr=t}}function Jn(t=1){if(Tt){for(var e=t,r=tr;e--;)r=co(r);tr=r}}function Hm(){for(var t=0,e=tr;;){if(e.nodeType===Ih){var r=e.data;if(r===r3){if(t===0)return e;t-=1}else(r===i_||r===$m)&&(t+=1)}var n=co(e);e.remove(),e=n}}function o_(t){if(!t||t.nodeType!==Ih)throw Rp(),Bl;return t.data}function Uh(t){if(typeof t!="object"||t===null||lc in t)return t;const e=Qw(t);if(e!==iD&&e!==oD)return t;var r=new Map,n=Vm(t),s=dc(0),i=Vl,o=a=>{if(Vl===i)return a();var c=Xt,l=Vl;js(null),N_(i);var u=a();return js(c),N_(l),u};return n&&r.set("length",dc(t.length)),new Proxy(t,{defineProperty(a,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&bD();var u=r.get(c);return u===void 0?u=o(()=>{var d=dc(l.value);return r.set(c,d),d}):Re(u,l.value,!0),!0},deleteProperty(a,c){var l=r.get(c);if(l===void 0){if(c in a){const u=o(()=>dc(Kr));r.set(c,u),c3(s)}}else Re(l,Kr),c3(s);return!0},get(a,c,l){if(c===lc)return t;var u=r.get(c),d=c in a;if(u===void 0&&(!d||xh(a,c)?.writable)&&(u=o(()=>{var p=Uh(d?a[c]:Kr),g=dc(p);return g}),r.set(c,u)),u!==void 0){var h=z(u);return h===Kr?void 0:h}return Reflect.get(a,c,l)},getOwnPropertyDescriptor(a,c){var l=Reflect.getOwnPropertyDescriptor(a,c);if(l&&"value"in l){var u=r.get(c);u&&(l.value=z(u))}else if(l===void 0){var d=r.get(c),h=d?.v;if(d!==void 0&&h!==Kr)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(a,c){if(c===lc)return!0;var l=r.get(c),u=l!==void 0&&l.v!==Kr||Reflect.has(a,c);if(l!==void 0||It!==null&&(!u||xh(a,c)?.writable)){l===void 0&&(l=o(()=>{var h=u?Uh(a[c]):Kr,p=dc(h);return p}),r.set(c,l));var d=z(l);if(d===Kr)return!1}return u},set(a,c,l,u){var d=r.get(c),h=c in a;if(n&&c==="length")for(var p=l;p<d.v;p+=1){var g=r.get(p+"");g!==void 0?Re(g,Kr):p in a&&(g=o(()=>dc(Kr)),r.set(p+"",g))}if(d===void 0)(!h||xh(a,c)?.writable)&&(d=o(()=>dc(void 0)),Re(d,Uh(l)),r.set(c,d));else{h=d.v!==Kr;var m=o(()=>Uh(l));Re(d,m)}var y=Reflect.getOwnPropertyDescriptor(a,c);if(y?.set&&y.set.call(u,l),!h){if(n&&typeof c=="string"){var v=r.get("length"),A=Number(c);Number.isInteger(A)&&A>=v.v&&Re(v,A+1)}c3(s)}return!0},ownKeys(a){z(s);var c=Reflect.ownKeys(a).filter(d=>{var h=r.get(d);return h===void 0||h.v!==Kr});for(var[l,u]of r)u.v!==Kr&&!(l in a)&&c.push(l);return c},setPrototypeOf(){wD()}})}function a_(t){try{if(t!==null&&typeof t=="object"&&lc in t)return t[lc]}catch{}return t}function UD(t,e){return Object.is(a_(t),a_(e))}var c_,l_,u_,h_;function n3(){if(c_===void 0){c_=window,l_=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;u_=xh(e,"firstChild").get,h_=xh(e,"nextSibling").get,ZA(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ZA(r)&&(r.__t=void 0)}}function ki(t=""){return document.createTextNode(t)}function Ei(t){return u_.call(t)}function co(t){return h_.call(t)}function Ie(t,e){if(!Tt)return Ei(t);var r=Ei(tr);if(r===null)r=tr.appendChild(ki());else if(e&&r.nodeType!==t3){var n=ki();return r?.before(n),us(n),n}return us(r),r}function He(t,e){if(!Tt){var r=Ei(t);return r instanceof Comment&&r.data===""?co(r):r}return tr}function Ue(t,e=1,r=!1){let n=Tt?tr:t;for(var s;e--;)s=n,n=co(n);if(!Tt)return n;if(r&&n?.nodeType!==t3){var i=ki();return n===null?s?.after(i):n.before(i),us(i),i}return us(n),n}function d_(t){t.textContent=""}function s3(){return!1}const MD=new WeakMap;function FD(t){var e=It;if(e===null)return Xt.f|=Ol,t;if((e.f&Kw)===0){if((e.f&QA)===0)throw!e.parent&&t instanceof Error&&f_(t),t;e.b.error(t)}else i3(t,e)}function i3(t,e){for(;e!==null;){if((e.f&QA)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&f_(t),t}function f_(t){const e=MD.get(t);e&&(Sp(t,"message",{value:e.message}),Sp(t,"stack",{value:e.stack}))}const LD=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let Pp=[],xp=[];function p_(){var t=Pp;Pp=[],Cp(t)}function g_(){var t=xp;xp=[],Cp(t)}function Zm(t){Pp.length===0&&queueMicrotask(p_),Pp.push(t)}function VD(t){xp.length===0&&LD(g_),xp.push(t)}function DD(){Pp.length>0&&p_(),xp.length>0&&g_()}function WD(){for(var t=It.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&hD(),t}function Jm(t){var e=ws|Ws,r=Xt!==null&&(Xt.f&ws)!==0?Xt:null;return It===null||r!==null&&(r.f&Ds)!==0?e|=Ds:It.f|=Tp,{ctx:Pr,deps:null,effects:null,equals:XA,f:e,fn:t,reactions:null,rv:0,v:Kr,wv:0,parent:r??It,ac:null}}function jD(t,e){let r=It;r===null&&dD();var n=r.b,s=void 0,i=hc(Kr),o=null,a=!Xt;return rW(()=>{try{var c=t()}catch(p){c=Promise.reject(p)}var l=()=>c;s=o?.then(l,l)??Promise.resolve(c),o=s;var u=wr,d=n.pending;a&&(n.update_pending_count(1),d||u.increment());const h=(p,g=void 0)=>{o=null,d||u.activate(),g?g!==e3&&(i.f|=Ol,fc(i,g)):((i.f&Ol)!==0&&(i.f^=Ol),fc(i,p)),a&&(n.update_pending_count(-1),d||u.decrement()),b_()};if(s.then(h,p=>h(null,p||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(c=>{function l(u){function d(){u===s?c(i):l(s)}u.then(d,d)}l(s)})}function bt(t){const e=Jm(t);return e.equals=t_,e}function m_(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)$s(e[r])}}function GD(t){for(var e=t.parent;e!==null;){if((e.f&ws)===0)return e;e=e.parent}return null}function o3(t){var e,r=It;Gs(GD(t));try{m_(t),e=B_(t)}finally{Gs(r)}return e}function y_(t){var e=o3(t);if(t.equals(e)||(t.v=e,t.wv=I_()),!Ll)if(Mh!==null)Mh.set(t,t.v);else{var r=(pc||(t.f&Ds)!==0)&&t.deps!==null?ea:wn;Yn(t,r)}}function v_(t,e,r){const n=Ul()?Jm:bt;if(e.length===0){r(t.map(n));return}var s=wr,i=It,o=zD(),a=WD();Promise.all(e.map(c=>jD(c))).then(c=>{s?.activate(),o();try{r([...t.map(n),...c])}catch(l){(i.f&Il)===0&&i3(l,i)}s?.deactivate(),b_()}).catch(c=>{a.error(c)})}function zD(){var t=It,e=Xt,r=Pr;return function(){Gs(t),js(e),Bh(r)}}function b_(){Gs(null),js(null),Bh(null)}const Np=new Set;let wr=null,Qm=null,Mh=null,w_=new Set,Ym=[];function k_(){const t=Ym.shift();Ym.length>0&&queueMicrotask(k_),t()}let Ml=[],Km=null,a3=!1,qm=!1;class Fh{current=new Map;#t=new Map;#e=new Set;#r=0;#l=null;#u=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#h=[];#d=[];skipped_effects=new Set;process(e){Ml=[],Qm=null;var r=null;if(Np.size>1){r=new Map,Mh=new Map;for(const[i,o]of this.current)r.set(i,{v:i.v,wv:i.wv}),i.v=o;for(const i of Np)if(i!==this)for(const[o,a]of i.#t)r.has(o)||(r.set(o,{v:o.v,wv:o.wv}),o.v=a)}for(const i of e)this.#p(i);if(this.#s.length===0&&this.#r===0){this.#f();var n=this.#i,s=this.#n;this.#i=[],this.#n=[],this.#a=[],Qm=wr,wr=null,A_(n),A_(s),wr===null?wr=this:Np.delete(this),this.#l?.resolve()}else this.#c(this.#i),this.#c(this.#n),this.#c(this.#a);if(r){for(const[i,{v:o,wv:a}]of r)i.wv<=a&&(i.v=o);Mh=null}for(const i of this.#s)Dl(i);for(const i of this.#o)Dl(i);this.#s=[],this.#o=[]}#p(e){e.f^=wn;for(var r=e.first;r!==null;){var n=r.f,s=(n&(Xo|Nl))!==0,i=s&&(n&wn)!==0,o=i||(n&wi)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(s)r.f^=wn;else if((n&Yw)!==0)this.#n.push(r);else if((n&wn)===0)if((n&Xw)!==0){var a=r.b?.pending?this.#o:this.#s;a.push(r)}else Op(r)&&((r.f&Nh)!==0&&this.#a.push(r),Dl(r));var c=r.first;if(c!==null){r=c;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)r=l.next,l=l.parent}}#c(e){for(const r of e)((r.f&Ws)!==0?this.#h:this.#d).push(r),Yn(r,wn);e.length=0}capture(e,r){this.#t.has(e)||this.#t.set(e,r),this.current.set(e,e.v)}activate(){wr=this}deactivate(){wr=null,Qm=null;for(const e of w_)if(w_.delete(e),e(),wr!==null)break}neuter(){this.#u=!0}flush(){Ml.length>0?E_():this.#f(),wr===this&&(this.#r===0&&Np.delete(this),this.deactivate())}#f(){if(!this.#u)for(const e of this.#e)e();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#h)Yn(e,Ws),Lh(e);for(const e of this.#d)Yn(e,ea),Lh(e);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#e.add(e)}settled(){return(this.#l??=cD()).promise}static ensure(){if(wr===null){const e=wr=new Fh;Np.add(wr),qm||Fh.enqueue(()=>{wr===e&&e.flush()})}return wr}static enqueue(e){Ym.length===0&&queueMicrotask(k_),Ym.unshift(e)}}function je(t){var e=qm;qm=!0;try{for(var r;;){if(DD(),Ml.length===0&&(wr?.flush(),Ml.length===0))return Km=null,r;E_()}}finally{qm=e}}function E_(){var t=Vh;a3=!0;try{var e=0;for(R_(!0);Ml.length>0;){var r=Fh.ensure();if(e++>1e3){var n,s;$D()}r.process(Ml),uc.clear()}}finally{a3=!1,R_(t),Km=null}}function $D(){try{mD()}catch(t){i3(t,Km)}}let Fl=null;function A_(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Il|wi))===0&&Op(n)&&(Fl=[],Dl(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?W_(n):n.fn=null),Fl.length>0)){uc.clear();for(const s of Fl)Dl(s);Fl=[]}}Fl=null}}function Lh(t){for(var e=Km=t;e.parent!==null;){e=e.parent;var r=e.f;if(a3&&e===It&&(r&Nh)!==0)return;if((r&(Nl|Xo))!==0){if((r&wn)===0)return;e.f^=wn}}Ml.push(e)}const uc=new Map;function hc(t,e){var r={f:0,v:t,reactions:null,equals:XA,rv:0,wv:0};return r}function dc(t,e){const r=hc(t);return QD(r),r}function De(t,e=!1,r=!0){const n=hc(t);return e||(n.equals=t_),Oh&&r&&Pr!==null&&Pr.l!==null&&(Pr.l.s??=[]).push(n),n}function HD(t,e){return Re(t,Fe(()=>z(t))),e}function Re(t,e,r=!1){Xt!==null&&(!lo||(Xt.f&YA)!==0)&&Ul()&&(Xt.f&(ws|Nh|Xw|YA))!==0&&!ra?.includes(t)&&kD();let n=r?Uh(e):e;return fc(t,n)}function fc(t,e){if(!t.equals(e)){var r=t.v;Ll?uc.set(t,e):uc.set(t,r),t.v=e;var n=Fh.ensure();n.capture(t,r),(t.f&ws)!==0&&((t.f&Ws)!==0&&o3(t),Yn(t,(t.f&Ds)===0?wn:ea)),t.wv=I_(),S_(t,Ws),Ul()&&It!==null&&(It.f&wn)!==0&&(It.f&(Xo|Nl))===0&&(zs===null?YD([t]):zs.push(t))}return e}function __(t,e=1){var r=z(t),n=e===1?r++:r--;return Re(t,r),n}function c3(t){Re(t,t.v+1)}function S_(t,e){var r=t.reactions;if(r!==null)for(var n=Ul(),s=r.length,i=0;i<s;i++){var o=r[i],a=o.f;if(!(!n&&o===It)){var c=(a&Ws)===0;c&&Yn(o,e),(a&ws)!==0?S_(o,ea):c&&((a&Nh)!==0&&Fl!==null&&Fl.push(o),Lh(o))}}}function ZD(t,e){if(e){const r=document.body;t.autofocus=!0,Zm(()=>{document.activeElement===r&&t.focus()})}}let C_=!1;function T_(){C_||(C_=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Xm(t){var e=Xt,r=It;js(null),Gs(null);try{return t()}finally{js(e),Gs(r)}}function JD(t,e,r,n=r){t.addEventListener(e,()=>Xm(r));const s=t.__on_r;s?t.__on_r=()=>{s(),n(!0)}:t.__on_r=()=>n(!0),T_()}let Vh=!1;function R_(t){Vh=t}let Ll=!1;function P_(t){Ll=t}let Xt=null,lo=!1;function js(t){Xt=t}let It=null;function Gs(t){It=t}let ra=null;function QD(t){Xt!==null&&(ra===null?ra=[t]:ra.push(t))}let Qn=null,Es=0,zs=null;function YD(t){zs=t}let x_=1,Ip=0,Vl=Ip;function N_(t){Vl=t}let pc=!1;function I_(){return++x_}function Op(t){var e=t.f;if((e&Ws)!==0)return!0;if((e&ea)!==0){var r=t.deps,n=(e&Ds)!==0;if(r!==null){var s,i,o=(e&Wm)!==0,a=n&&It!==null&&!pc,c=r.length;if((o||a)&&(It===null||(It.f&Il)===0)){var l=t,u=l.parent;for(s=0;s<c;s++)i=r[s],(o||!i?.reactions?.includes(l))&&(i.reactions??=[]).push(l);o&&(l.f^=Wm),a&&u!==null&&(u.f&Ds)===0&&(l.f^=Ds)}for(s=0;s<c;s++)if(i=r[s],Op(i)&&y_(i),i.wv>t.wv)return!0}(!n||It!==null&&!pc)&&Yn(t,wn)}return!1}function O_(t,e,r=!0){var n=t.reactions;if(n!==null&&!ra?.includes(t))for(var s=0;s<n.length;s++){var i=n[s];(i.f&ws)!==0?O_(i,e,!1):e===i&&(r?Yn(i,Ws):(i.f&wn)!==0&&Yn(i,ea),Lh(i))}}function B_(t){var e=Qn,r=Es,n=zs,s=Xt,i=pc,o=ra,a=Pr,c=lo,l=Vl,u=t.f;Qn=null,Es=0,zs=null,pc=(u&Ds)!==0&&(lo||!Vh||Xt===null),Xt=(u&(Xo|Nl))===0?t:null,ra=null,Bh(t.ctx),lo=!1,Vl=++Ip,t.ac!==null&&(Xm(()=>{t.ac.abort(e3)}),t.ac=null);try{t.f|=qw;var d=t.fn,h=d(),p=t.deps;if(Qn!==null){var g;if(e2(t,Es),p!==null&&Es>0)for(p.length=Es+Qn.length,g=0;g<Qn.length;g++)p[Es+g]=Qn[g];else t.deps=p=Qn;if(!pc||(u&ws)!==0&&t.reactions!==null)for(g=Es;g<p.length;g++)(p[g].reactions??=[]).push(t)}else p!==null&&Es<p.length&&(e2(t,Es),p.length=Es);if(Ul()&&zs!==null&&!lo&&p!==null&&(t.f&(ws|ea|Ws))===0)for(g=0;g<zs.length;g++)O_(zs[g],t);return s!==null&&s!==t&&(Ip++,zs!==null&&(n===null?n=zs:n.push(...zs))),(t.f&Ol)!==0&&(t.f^=Ol),h}catch(m){return FD(m)}finally{t.f^=qw,Qn=e,Es=r,zs=n,Xt=s,pc=i,ra=o,Bh(a),lo=c,Vl=l}}function KD(t,e){let r=e.reactions;if(r!==null){var n=sD.call(r,t);if(n!==-1){var s=r.length-1;s===0?r=e.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(e.f&ws)!==0&&(Qn===null||!Qn.includes(e))&&(Yn(e,ea),(e.f&(Ds|Wm))===0&&(e.f^=Wm),m_(e),e2(e,0))}function e2(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)KD(t,r[n])}function Dl(t){var e=t.f;if((e&Il)===0){Yn(t,wn);var r=It,n=Vh;It=t,Vh=!0;try{(e&Nh)!==0?nW(t):V_(t),L_(t);var s=B_(t);t.teardown=typeof s=="function"?s:null,t.wv=x_;var i;$A&&ED&&(t.f&Ws)!==0&&t.deps}finally{Vh=n,It=r}}}function z(t){var e=t.f,r=(e&ws)!==0;if(Xt!==null&&!lo){var n=It!==null&&(It.f&Il)!==0;if(!n&&!ra?.includes(t)){var s=Xt.deps;if((Xt.f&qw)!==0)t.rv<Ip&&(t.rv=Ip,Qn===null&&s!==null&&s[Es]===t?Es++:Qn===null?Qn=[t]:(!pc||!Qn.includes(t))&&Qn.push(t));else{(Xt.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[Xt]:i.includes(Xt)||i.push(Xt)}}}else if(r&&t.deps===null&&t.effects===null){var o=t,a=o.parent;a!==null&&(a.f&Ds)===0&&(o.f^=Ds)}if(Ll){if(uc.has(t))return uc.get(t);if(r){o=t;var c=o.v;return((o.f&wn)===0&&o.reactions!==null||U_(o))&&(c=o3(o)),uc.set(o,c),c}}else if(r){if(o=t,Mh?.has(o))return Mh.get(o);Op(o)&&y_(o)}if((t.f&Ol)!==0)throw t.v;return t.v}function U_(t){if(t.v===Kr)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(uc.has(e)||(e.f&ws)!==0&&U_(e))return!0;return!1}function l3(t){return t&&z(t)}function Fe(t){var e=lo;try{return lo=!0,t()}finally{lo=e}}const qD=-7169;function Yn(t,e){t.f=t.f&qD|e}function $e(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(lc in t)u3(t);else if(!Array.isArray(t))for(let e in t){const r=t[e];typeof r=="object"&&r&&lc in r&&u3(r)}}}function u3(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{u3(t[n],e)}catch{}const r=Qw(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=HA(r);for(let s in n){const i=n[s].get;if(i)try{i.call(t)}catch{}}}}}function M_(t){It===null&&Xt===null&&gD(),Xt!==null&&(Xt.f&Ds)!==0&&It===null&&pD(),Ll&&fD()}function XD(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function uo(t,e,r,n=!0){var s=It;s!==null&&(s.f&wi)!==0&&(t|=wi);var i={ctx:Pr,deps:null,nodes_start:null,nodes_end:null,f:t|Ws,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Dl(i),i.f|=Kw}catch(c){throw $s(i),c}else e!==null&&Lh(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Tp)===0&&(o=o.first),o!==null&&(o.parent=s,s!==null&&XD(o,s),Xt!==null&&(Xt.f&ws)!==0&&(t&Nl)===0)){var a=Xt;(a.effects??=[]).push(o)}}return i}function h3(t){const e=uo(Dm,null,!1);return Yn(e,wn),e.teardown=t,e}function d3(t){M_();var e=It.f,r=!Xt&&(e&Xo)!==0&&(e&Kw)===0;if(r){var n=Pr;(n.e??=[]).push(t)}else return F_(t)}function F_(t){return uo(Yw|KA,t,!1)}function eW(t){return M_(),uo(Dm|KA,t,!0)}function tW(t){Fh.ensure();const e=uo(Nl|Tp,t,!0);return(r={})=>new Promise(n=>{r.outro?Wl(e,()=>{$s(e),n(void 0)}):($s(e),n(void 0))})}function f3(t){return uo(Yw,t,!1)}function gt(t,e){var r=Pr,n={effect:null,ran:!1,deps:t};r.l.$.push(n),n.effect=p3(()=>{t(),!n.ran&&(n.ran=!0,Fe(e))})}function mr(){var t=Pr;p3(()=>{for(var e of t.l.$){e.deps();var r=e.effect;(r.f&wn)!==0&&Yn(r,ea),Op(r)&&Dl(r),e.ran=!1}})}function rW(t){return uo(Xw|Tp,t,!0)}function p3(t,e=0){return uo(Dm|e,t,!0)}function Ye(t,e=[],r=[]){v_(e,r,n=>{uo(Dm,()=>t(...n.map(z)),!0)})}function Dh(t,e=0){var r=uo(Nh|e,t,!0);return r}function ho(t,e=!0){return uo(Xo|Tp,t,!0,e)}function L_(t){var e=t.teardown;if(e!==null){const r=Ll,n=Xt;P_(!0),js(null);try{e.call(null)}finally{P_(r),js(n)}}}function V_(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const s=r.ac;s!==null&&Xm(()=>{s.abort(e3)});var n=r.next;(r.f&Nl)!==0?r.parent=null:$s(r,e),r=n}}function nW(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Xo)===0&&$s(e),e=r}}function $s(t,e=!0){var r=!1;(e||(t.f&lD)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(D_(t.nodes_start,t.nodes_end),r=!0),V_(t,e&&!r),e2(t,0),Yn(t,Il);var n=t.transitions;if(n!==null)for(const i of n)i.stop();L_(t);var s=t.parent;s!==null&&s.first!==null&&W_(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function D_(t,e){for(;t!==null;){var r=t===e?null:co(t);t.remove(),t=r}}function W_(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Wl(t,e){var r=[];g3(t,r,!0),j_(r,()=>{$s(t),e&&e()})}function j_(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var s of t)s.out(n)}else e()}function g3(t,e,r){if((t.f&wi)===0){if(t.f^=wi,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var s=n.next,i=(n.f&jm)!==0||(n.f&Xo)!==0;g3(n,e,i?r:!1),n=s}}}function t2(t){G_(t,!0)}function G_(t,e){if((t.f&wi)!==0){t.f^=wi,(t.f&wn)===0&&(Yn(t,Ws),Lh(t));for(var r=t.first;r!==null;){var n=r.next,s=(r.f&jm)!==0||(r.f&Xo)!==0;G_(r,s?e:!1),r=n}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function sW(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const iW=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function oW(t){return iW.includes(t)}const aW={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function cW(t){return t=t.toLowerCase(),aW[t]??t}const lW=["touchstart","touchmove"];function uW(t){return lW.includes(t)}const z_=new Set,m3=new Set;function $_(t,e,r,n={}){function s(i){if(n.capture||Bp.call(e,i),!i.cancelBubble)return Xm(()=>r?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zm(()=>{e.addEventListener(t,s,n)}):e.addEventListener(t,s,n),s}function un(t,e,r,n,s){var i={capture:n,passive:s},o=$_(t,e,r,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&h3(()=>{e.removeEventListener(t,o,i)})}function hW(t){for(var e=0;e<t.length;e++)z_.add(t[e]);for(var r of m3)r(t)}let H_=null;function Bp(t){var e=this,r=e.ownerDocument,n=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;H_=t;var o=0,a=H_===t&&t.__root;if(a){var c=s.indexOf(a);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var l=s.indexOf(e);if(l===-1)return;c<=l&&(o=c)}if(i=s[o]||t.target,i!==e){Sp(t,"currentTarget",{configurable:!0,get(){return i||r}});var u=Xt,d=It;js(null),Gs(null);try{for(var h,p=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var m=i["__"+n];if(m!=null&&(!i.disabled||t.target===i))if(Vm(m)){var[y,...v]=m;y.apply(i,[t,...v])}else m.call(i,t)}catch(A){h?p.push(A):h=A}if(t.cancelBubble||g===e||g===null)break;i=g}if(h){for(let A of p)queueMicrotask(()=>{throw A});throw h}}finally{t.__root=e,delete t.currentTarget,js(u),Gs(d)}}}function Z_(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function fo(t,e){var r=It;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Le(t,e){var r=(e&xD)!==0,n=(e&ND)!==0,s,i=!t.startsWith("<!>");return()=>{if(Tt)return fo(tr,null),tr;s===void 0&&(s=Z_(i?t:"<!>"+t),r||(s=Ei(s)));var o=n||l_?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Ei(o),c=o.lastChild;fo(a,c)}else fo(o,o);return o}}function Ur(t=""){if(!Tt){var e=ki(t+"");return fo(e,e),e}var r=tr;return r.nodeType!==t3&&(r.before(r=ki()),us(r)),fo(r,r),r}function nt(){if(Tt)return fo(tr,null),tr;var t=document.createDocumentFragment(),e=document.createComment(""),r=ki();return t.append(e,r),fo(e,r),t}function Ee(t,e){if(Tt){It.nodes_end=tr,ta();return}t!==null&&t.before(e)}function pt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function J_(t,e){return Q_(t,e)}function dW(t,e){n3(),e.intro=e.intro??!1;const r=e.target,n=Tt,s=tr;try{for(var i=Ei(r);i&&(i.nodeType!==Ih||i.data!==i_);)i=co(i);if(!i)throw Bl;ks(!0),us(i),ta();const o=Q_(t,{...e,anchor:i});if(tr===null||tr.nodeType!==Ih||tr.data!==r3)throw Rp(),Bl;return ks(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
3
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Bl&&console.warn("Failed to hydrate: ",o),e.recover===!1&&yD(),n3(),d_(r),ks(!1),J_(t,e)}finally{ks(n),us(s)}}const Wh=new Map;function Q_(t,{target:e,anchor:r,props:n={},events:s,context:i,intro:o=!0}){n3();var a=new Set,c=d=>{for(var h=0;h<d.length;h++){var p=d[h];if(!a.has(p)){a.add(p);var g=uW(p);e.addEventListener(p,Bp,{passive:g});var m=Wh.get(p);m===void 0?(document.addEventListener(p,Bp,{passive:g}),Wh.set(p,1)):Wh.set(p,m+1)}}};c(Jw(z_)),m3.add(c);var l=void 0,u=tW(()=>{var d=r??e.appendChild(ki());return ho(()=>{if(i){ot({});var h=Pr;h.c=i}s&&(n.$$events=s),Tt&&fo(d,null),l=t(d,n)||{},Tt&&(It.nodes_end=tr),i&&at()}),()=>{for(var h of a){e.removeEventListener(h,Bp);var p=Wh.get(h);--p===0?(document.removeEventListener(h,Bp),Wh.delete(h)):Wh.set(h,p)}m3.delete(c),d!==r&&d.parentNode?.removeChild(d)}});return y3.set(l,u),l}let y3=new WeakMap;function fW(t,e){const r=y3.get(t);return r?(y3.delete(t),r(e)):Promise.resolve()}const v3=0,r2=1,b3=2;function hn(t,e,r,n,s){Tt&&ta();var i=t,o=Ul(),a=Pr,c=Kr,l,u,d,h=o?hc(void 0):De(void 0,!1,!1),p=o?hc(void 0):De(void 0,!1,!1),g=!1;function m(v,A){g=!0,A&&(Gs(y),js(y),Bh(a));try{v===r2&&n&&(u?t2(u):u=ho(()=>n(i,h))),v!==v3&&l&&Wl(l,()=>l=null),v!==r2&&u&&Wl(u,()=>u=null),v!==b3&&d&&Wl(d,()=>d=null)}finally{A&&(Bh(null),js(null),Gs(null),je())}}var y=Dh(()=>{if(c===(c=e()))return;let v=Tt&&JA(c)===(i.data===$m);if(v&&(i=Hm(),us(i),ks(!1),v=!0),JA(c)){var A=c;g=!1,A.then(E=>{A===c&&(fc(h,E),m(r2,!0))},E=>{if(A===c)throw fc(p,E),m(b3,!0),p.v}),Tt||Zm(()=>{g||m(v3,!0)})}else fc(h,c),m(r2,!1);return v&&ks(!0),()=>c=Kr});Tt&&(i=tr)}function Je(t,e,r=!1){Tt&&ta();var n=t,s=null,i=null,o=Kr,a=r?jm:0,c=!1;const l=(p,g=!0)=>{c=!0,h(g,p)};var u=null;function d(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var p=o?s:i,g=o?i:s;p&&t2(p),g&&Wl(g,()=>{o?i=null:s=null})}const h=(p,g)=>{if(o===(o=p))return;let m=!1;if(Tt){const C=o_(n)===$m;!!o===C&&(n=Hm(),us(n),ks(!1),m=!0)}var y=s3(),v=n;if(y&&(u=document.createDocumentFragment(),u.append(v=ki())),o?s??=g&&ho(()=>g(v)):i??=g&&ho(()=>g(v)),y){var A=wr,E=o?s:i,w=o?i:s;E&&A.skipped_effects.delete(E),w&&A.skipped_effects.add(w),A.add_callback(d)}else d();m&&ks(!0)};Dh(()=>{c=!1,e(l),c||h(null,null)},a),Tt&&(n=tr)}function Up(t,e){return e}function pW(t,e,r){for(var n=t.items,s=[],i=e.length,o=0;o<i;o++)g3(e[o].e,s,!0);var a=i>0&&s.length===0&&r!==null;if(a){var c=r.parentNode;d_(c),c.append(r),n.clear(),po(t,e[0].prev,e[i-1].next)}j_(s,()=>{for(var l=0;l<i;l++){var u=e[l];a||(n.delete(u.k),po(t,u.prev,u.next)),$s(u.e,!a)}})}function Mp(t,e,r,n,s,i=null){var o=t,a={flags:e,items:new Map,first:null},c=(e&n_)!==0;if(c){var l=t;o=Tt?us(Ei(l)):l.appendChild(ki())}Tt&&ta();var u=null,d=!1,h=new Map,p=bt(()=>{var v=r();return Vm(v)?v:v==null?[]:Jw(v)}),g,m;function y(){gW(m,g,a,h,o,s,e,n,r),i!==null&&(g.length===0?u?t2(u):u=ho(()=>i(o)):u!==null&&Wl(u,()=>{u=null}))}Dh(()=>{m??=It,g=z(p);var v=g.length;if(d&&v===0)return;d=v===0;let A=!1;if(Tt){var E=o_(o)===$m;E!==(v===0)&&(o=Hm(),us(o),ks(!1),A=!0)}if(Tt){for(var w=null,C,B=0;B<v;B++){if(tr.nodeType===Ih&&tr.data===r3){o=tr,A=!0,ks(!1);break}var F=g[B],I=n(F,B);C=w3(tr,a,w,null,F,I,B,s,e,r),a.items.set(I,C),w=C}v>0&&us(Hm())}if(Tt)v===0&&i&&(u=ho(()=>i(o)));else if(s3()){var L=new Set,D=wr;for(B=0;B<v;B+=1){F=g[B],I=n(F,B);var M=a.items.get(I)??h.get(I);M?(e&(Gm|zm))!==0&&Y_(M,F,B,e):(C=w3(null,a,null,null,F,I,B,s,e,r,!0),h.set(I,C)),L.add(I)}for(const[N,P]of a.items)L.has(N)||D.skipped_effects.add(P.e);D.add_callback(y)}else y();A&&ks(!0),z(p)}),Tt&&(o=tr)}function gW(t,e,r,n,s,i,o,a,c){var l=(o&_D)!==0,u=(o&(Gm|zm))!==0,d=e.length,h=r.items,p=r.first,g=p,m,y=null,v,A=[],E=[],w,C,B,F;if(l)for(F=0;F<d;F+=1)w=e[F],C=a(w,F),B=h.get(C),B!==void 0&&(B.a?.measure(),(v??=new Set).add(B));for(F=0;F<d;F+=1){if(w=e[F],C=a(w,F),B=h.get(C),B===void 0){var I=n.get(C);if(I!==void 0){n.delete(C),h.set(C,I);var L=y?y.next:g;po(r,y,I),po(r,I,L),k3(I,L,s),y=I}else{var D=g?g.e.nodes_start:s;y=w3(D,r,y,y===null?r.first:y.next,w,C,F,i,o,c)}h.set(C,y),A=[],E=[],g=y.next;continue}if(u&&Y_(B,w,F,o),(B.e.f&wi)!==0&&(t2(B.e),l&&(B.a?.unfix(),(v??=new Set).delete(B))),B!==g){if(m!==void 0&&m.has(B)){if(A.length<E.length){var M=E[0],N;y=M.prev;var P=A[0],U=A[A.length-1];for(N=0;N<A.length;N+=1)k3(A[N],M,s);for(N=0;N<E.length;N+=1)m.delete(E[N]);po(r,P.prev,U.next),po(r,y,P),po(r,U,M),g=M,y=U,F-=1,A=[],E=[]}else m.delete(B),k3(B,g,s),po(r,B.prev,B.next),po(r,B,y===null?r.first:y.next),po(r,y,B),y=B;continue}for(A=[],E=[];g!==null&&g.k!==C;)(g.e.f&wi)===0&&(m??=new Set).add(g),E.push(g),g=g.next;if(g===null)continue;B=g}A.push(B),y=B,g=B.next}if(g!==null||m!==void 0){for(var O=m===void 0?[]:Jw(m);g!==null;)(g.e.f&wi)===0&&O.push(g),g=g.next;var j=O.length;if(j>0){var Z=(o&n_)!==0&&d===0?s:null;if(l){for(F=0;F<j;F+=1)O[F].a?.measure();for(F=0;F<j;F+=1)O[F].a?.fix()}pW(r,O,Z)}}l&&Zm(()=>{if(v!==void 0)for(B of v)B.a?.apply()}),t.first=r.first&&r.first.e,t.last=y&&y.e;for(var K of n.values())$s(K.e);n.clear()}function Y_(t,e,r,n){(n&Gm)!==0&&fc(t.v,e),(n&zm)!==0?fc(t.i,r):t.i=r}function w3(t,e,r,n,s,i,o,a,c,l,u){var d=(c&Gm)!==0,h=(c&SD)===0,p=d?h?De(s,!1,!1):hc(s):s,g=(c&zm)===0?o:hc(o),m={i:g,v:p,k:i,a:null,e:null,prev:r,next:n};try{if(t===null){var y=document.createDocumentFragment();y.append(t=ki())}return m.e=ho(()=>a(t,p,g,l),Tt),m.e.prev=r&&r.e,m.e.next=n&&n.e,r===null?u||(e.first=m):(r.next=m,r.e.next=m.e),n!==null&&(n.prev=m,n.e.prev=m.e),m}finally{}}function k3(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,s=e?e.e.nodes_start:r,i=t.e.nodes_start;i!==null&&i!==n;){var o=co(i);s.before(i),i=o}}function po(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function E3(t,e,r=!1,n=!1,s=!1){var i=t,o="";Ye(()=>{var a=It;if(o===(o=e()??"")){Tt&&ta();return}if(a.nodes_start!==null&&(D_(a.nodes_start,a.nodes_end),a.nodes_start=a.nodes_end=null),o!==""){if(Tt){tr.data;for(var c=ta(),l=c;c!==null&&(c.nodeType!==Ih||c.data!=="");)l=c,c=co(c);if(c===null)throw Rp(),Bl;fo(tr,l),i=us(c);return}var u=o+"";r?u=`<svg>${u}</svg>`:n&&(u=`<math>${u}</math>`);var d=Z_(u);if((r||n)&&(d=Ei(d)),fo(Ei(d),d.lastChild),r||n)for(;Ei(d);)i.before(Ei(d));else i.before(d)}})}function Ai(t,e,r,n,s){Tt&&ta();var i=e.$$slots?.[r],o=!1;i===!0&&(i=e[r==="default"?"children":r],o=!0),i===void 0||i(t,o?()=>n:n)}function dn(t,e,r){Tt&&ta();var n=t,s,i,o=null,a=null;function c(){i&&(Wl(i),i=null),o&&(o.lastChild.remove(),n.before(o),o=null),i=a,a=null}Dh(()=>{if(s!==(s=e())){var l=s3();if(s){var u=n;l&&(o=document.createDocumentFragment(),o.append(u=ki()),i&&wr.skipped_effects.add(i)),a=ho(()=>r(u,s))}l?wr.add_callback(c):c()}},jm),Tt&&(n=tr)}function gc(t,e){f3(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,n.appendChild(s)}})}function mW(t,e){var r=void 0,n;Dh(()=>{r!==(r=e())&&(n&&($s(n),n=null),r&&(n=ho(()=>{f3(()=>r(t))})))})}function K_(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<s;e++)t[e]&&(r=K_(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function yW(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=K_(t))&&(n&&(n+=" "),n+=e);return n}function A3(t){return typeof t=="object"?yW(t):t??""}const q_=[...`
4
- \r\f \v\uFEFF`];function vW(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var s in r)if(r[s])n=n?n+" "+s:s;else if(n.length)for(var i=s.length,o=0;(o=n.indexOf(s,o))>=0;){var a=o+i;(o===0||q_.includes(n[o-1]))&&(a===n.length||q_.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function X_(t,e=!1){var r=e?" !important;":";",n="";for(var s in t){var i=t[s];i!=null&&i!==""&&(n+=" "+s+": "+i+r)}return n}function _3(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function bW(t,e){if(e){var r="",n,s;if(Array.isArray(e)?(n=e[0],s=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,o=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(_3)),s&&c.push(...Object.keys(s).map(_3));var l=0,u=-1;const m=t.length;for(var d=0;d<m;d++){var h=t[d];if(a?h==="/"&&t[d-1]==="*"&&(a=!1):i?i===h&&(i=!1):h==="/"&&t[d+1]==="*"?a=!0:h==='"'||h==="'"?i=h:h==="("?o++:h===")"&&o--,!a&&i===!1&&o===0){if(h===":"&&u===-1)u=d;else if(h===";"||d===m-1){if(u!==-1){var p=_3(t.substring(l,u).trim());if(!c.includes(p)){h!==";"&&d++;var g=t.substring(l,d).trim();r+=" "+g+";"}}l=d+1,u=-1}}}}return n&&(r+=X_(n)),s&&(r+=X_(s,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function Lr(t,e,r,n,s,i){var o=t.__className;if(Tt||o!==r||o===void 0){var a=vW(r,n,i);(!Tt||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a)),t.__className=r}else if(i&&s!==i)for(var c in i){var l=!!i[c];(s==null||l!==!!s[c])&&t.classList.toggle(c,l)}return i}function S3(t,e={},r,n){for(var s in r){var i=r[s];e[s]!==i&&(r[s]==null?t.style.removeProperty(s):t.style.setProperty(s,i,n))}}function _i(t,e,r,n){var s=t.__style;if(Tt||s!==e){var i=bW(e,n);(!Tt||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}else n&&(Array.isArray(n)?(S3(t,r?.[0],n[0]),S3(t,r?.[1],n[1],"important")):S3(t,r,n));return n}function C3(t,e,r=!1){if(t.multiple){if(e==null)return;if(!Vm(e))return BD();for(var n of t.options)n.selected=e.includes(e9(n));return}for(n of t.options){var s=e9(n);if(UD(s,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function wW(t){var e=new MutationObserver(()=>{C3(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),h3(()=>{e.disconnect()})}function e9(t){return"__value"in t?t.__value:t.value}const jh=Symbol("class"),Fp=Symbol("style"),t9=Symbol("is custom element"),r9=Symbol("is html");function T3(t){if(Tt){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;kt(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var s=t.checked;kt(t,"checked",null),t.checked=s}}};t.__on_r=r,VD(r),T_()}}function R3(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function kt(t,e,r,n){var s=s9(t);Tt&&(s[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||s[e]!==(s[e]=r)&&(e==="loading"&&(t[uD]=r),r==null?t.removeAttribute(e):typeof r!="string"&&o9(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function kW(t,e,r,n,s=!1){var i=s9(t),o=i[t9],a=!i[r9];let c=Tt&&o;c&&ks(!1);var l=e||{},u=t.tagName==="OPTION";for(var d in e)d in r||(r[d]=null);r.class?r.class=A3(r.class):(n||r[jh])&&(r.class=null),r[Fp]&&(r.style??=null);var h=o9(t);for(const E in r){let w=r[E];if(u&&E==="value"&&w==null){t.value=t.__value="",l[E]=w;continue}if(E==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";Lr(t,p,w,n,e?.[jh],r[jh]),l[E]=w,l[jh]=r[jh];continue}if(E==="style"){_i(t,w,e?.[Fp],r[Fp]),l[E]=w,l[Fp]=r[Fp];continue}var g=l[E];if(!(w===g&&!(w===void 0&&t.hasAttribute(E)))){l[E]=w;var m=E[0]+E[1];if(m!=="$$")if(m==="on"){const C={},B="$$"+E;let F=E.slice(2);var y=oW(F);if(sW(F)&&(F=F.slice(0,-7),C.capture=!0),!y&&g){if(w!=null)continue;t.removeEventListener(F,l[B],C),l[B]=null}if(w!=null)if(y)t[`__${F}`]=w,hW([F]);else{let I=function(L){l[E].call(this,L)};l[B]=$_(F,t,I,C)}else y&&(t[`__${F}`]=void 0)}else if(E==="style")kt(t,E,w);else if(E==="autofocus")ZD(t,!!w);else if(!o&&(E==="__value"||E==="value"&&w!=null))t.value=t.__value=w;else if(E==="selected"&&u)R3(t,w);else{var v=E;a||(v=cW(v));var A=v==="defaultValue"||v==="defaultChecked";if(w==null&&!o&&!A)if(i[E]=null,v==="value"||v==="checked"){let C=t;const B=e===void 0;if(v==="value"){let F=C.defaultValue;C.removeAttribute(v),C.defaultValue=F,C.value=C.__value=B?F:null}else{let F=C.defaultChecked;C.removeAttribute(v),C.defaultChecked=F,C.checked=B?F:!1}}else t.removeAttribute(E);else A||h.includes(v)&&(o||typeof w!="string")?(t[v]=w,v in i&&(i[v]=Kr)):typeof w!="function"&&kt(t,v,w)}}}return c&&ks(!0),l}function n9(t,e,r=[],n=[],s,i=!1){v_(r,n,o=>{var a=void 0,c={},l=t.nodeName==="SELECT",u=!1;if(Dh(()=>{var h=e(...o.map(z)),p=kW(t,a,h,s,i);u&&l&&"value"in h&&C3(t,h.value);for(let m of Object.getOwnPropertySymbols(c))h[m]||$s(c[m]);for(let m of Object.getOwnPropertySymbols(h)){var g=h[m];m.description===OD&&(!a||g!==a[m])&&(c[m]&&$s(c[m]),c[m]=ho(()=>mW(t,()=>g))),p[m]=g}a=p}),l){var d=t;f3(()=>{C3(d,a.value,!0),wW(d)})}u=!0})}function s9(t){return t.__attributes??={[t9]:t.nodeName.includes("-"),[r9]:t.namespaceURI===ID}}var i9=new Map;function o9(t){var e=i9.get(t.nodeName);if(e)return e;i9.set(t.nodeName,e=[]);for(var r,n=t,s=Element.prototype;s!==n;){r=HA(n);for(var i in r)r[i].set&&e.push(i);n=Qw(n)}return e}function P3(t,e,r=e){var n=Ul(),s=new WeakSet;JD(t,"input",i=>{var o=i?t.defaultValue:t.value;if(o=x3(t)?N3(o):o,r(o),wr!==null&&s.add(wr),n&&o!==(o=e())){var a=t.selectionStart,c=t.selectionEnd;t.value=o??"",c!==null&&(t.selectionStart=a,t.selectionEnd=Math.min(c,t.value.length))}}),(Tt&&t.defaultValue!==t.value||Fe(e)==null&&t.value)&&(r(x3(t)?N3(t.value):t.value),wr!==null&&s.add(wr)),p3(()=>{var i=e();if(t===document.activeElement){var o=Qm??wr;if(s.has(o))return}x3(t)&&i===N3(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function x3(t){var e=t.type;return e==="number"||e==="range"}function N3(t){return t===""?null:+t}function I3(t){return function(...e){var r=e[0];return r.preventDefault(),t?.apply(this,e)}}function Et(t=!1){const e=Pr,r=e.l.u;if(!r)return;let n=()=>$e(e.s);if(t){let s=0,i={};const o=Jm(()=>{let a=!1;const c=e.s;for(const l in c)c[l]!==i[l]&&(i[l]=c[l],a=!0);return a&&s++,s});n=()=>z(o)}r.b.length&&eW(()=>{a9(e,n),Cp(r.b)}),d3(()=>{const s=Fe(()=>r.m.map(aD));return()=>{for(const i of s)typeof i=="function"&&i()}}),r.a.length&&d3(()=>{a9(e,n),Cp(r.a)})}function a9(t,e){if(t.l.s)for(const r of t.l.s)z(r);e()}function lt(t,e,r){t.$$events||={},t.$$events[e]||=[],t.$$events[e].push(r)}function ut(t){for(var e in t)e in this&&(this[e]=t[e])}let n2=!1,O3=Symbol();function Rt(t,e,r){const n=r[e]??={store:null,source:De(void 0),unsubscribe:cc};if(n.store!==t&&!(O3 in r))if(n.unsubscribe(),n.store=t??null,t==null)n.source.v=void 0,n.unsubscribe=cc;else{var s=!0;n.unsubscribe=B3(t,i=>{s?n.source.v=i:Re(n.source,i)}),s=!1}return t&&O3 in r?We(t):z(n.source)}function kn(){const t={};function e(){h3(()=>{for(var r in t)t[r].unsubscribe();Sp(t,O3,{enumerable:!1,value:!0})})}return[t,e]}function EW(t,e,r){return t.set(r),e}function AW(t){var e=n2;try{return n2=!1,[t(),n2]}finally{n2=e}}const _W={get(t,e){if(!t.exclude.includes(e))return z(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){if(!(e in t.special)){var n=It;try{Gs(t.parent_effect),t.special[e]=Ge({get[e](){return t.props[e]}},e,s_)}finally{Gs(n)}}return t.special[e](r),__(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),__(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Lp(t,e){return new Proxy({props:t,exclude:e,special:{},version:hc(0),parent_effect:It},_W)}function Ge(t,e,r,n){var s=!Oh||(r&TD)!==0,i=(r&RD)!==0,o=(r&PD)!==0,a=n,c=!0,l=()=>(c&&(c=!1,a=o?Fe(n):n),a),u;if(i){var d=lc in t||qA in t;u=xh(t,e)?.set??(d&&e in t?E=>t[e]=E:void 0)}var h,p=!1;i?[h,p]=AW(()=>t[e]):h=t[e],h===void 0&&n!==void 0&&(h=l(),u&&(s&&vD(),u(h)));var g;if(s?g=()=>{var E=t[e];return E===void 0?l():(c=!0,E)}:g=()=>{var E=t[e];return E!==void 0&&(a=void 0),E===void 0?a:E},s&&(r&s_)===0)return g;if(u){var m=t.$$legacy;return function(E,w){return arguments.length>0?((!s||!w||m||p)&&u(w?g():E),E):g()}}var y=!1,v=((r&CD)!==0?Jm:bt)(()=>(y=!1,g()));i&&z(v);var A=It;return function(E,w){if(arguments.length>0){const C=w?z(v):s&&i?Uh(E):E;return Re(v,C),y=!0,a!==void 0&&(a=C),E}return Ll&&y||(A.f&Il)!==0?v.v:z(v)}}function ht(t){return new SW(t)}class SW{#t;#e;constructor(e){var r=new Map,n=(i,o)=>{var a=De(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...e.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===qA?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return Re(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(e.hydrate?dW:J_)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&je(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Sp(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{fW(this.#e)}}$set(e){this.#e.$set(e)}$on(e,r){this.#t[e]=this.#t[e]||[];const n=(...s)=>r.call(this,...s);return this.#t[e].push(n),()=>{this.#t[e]=this.#t[e].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}function Gh(t){Pr===null&&r_(),Oh&&Pr.l!==null?CW(Pr).m.push(t):d3(()=>{const e=Fe(t);if(typeof e=="function")return e})}function zh(t){Pr===null&&r_(),Gh(()=>()=>Fe(t))}function CW(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function B3(t,e,r){if(t==null)return e(void 0),r&&r(void 0),cc;const n=Fe(()=>t.subscribe(e,r));return n.unsubscribe?()=>n.unsubscribe():n}const $h=[];function TW(t,e){return{subscribe:Un(t,e).subscribe}}function Un(t,e=cc){let r=null;const n=new Set;function s(a){if(e_(t,a)&&(t=a,r)){const c=!$h.length;for(const l of n)l[1](),$h.push(l,t);if(c){for(let l=0;l<$h.length;l+=2)$h[l][0]($h[l+1]);$h.length=0}}}function i(a){s(a(t))}function o(a,c=cc){const l=[a,c];return n.add(l),n.size===1&&(r=e(s,i)||cc),a(t),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:s,update:i,subscribe:o}}function U3(t,e,r){const n=!Array.isArray(t),s=n?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return TW(r,(o,a)=>{let c=!1;const l=[];let u=0,d=cc;const h=()=>{if(u)return;d();const g=e(n?l[0]:l,o,a);i?o(g):d=typeof g=="function"?g:cc},p=s.map((g,m)=>B3(g,y=>{l[m]=y,u&=~(1<<m),c&&h()},()=>{u|=1<<m}));return c=!0,h(),function(){Cp(p),d(),c=!1}})}function We(t){let e;return B3(t,r=>e=r)(),e}function RW(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c9={exports:{}},Wr=c9.exports={},go,mo;function M3(){throw new Error("setTimeout has not been defined")}function F3(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?go=setTimeout:go=M3}catch{go=M3}try{typeof clearTimeout=="function"?mo=clearTimeout:mo=F3}catch{mo=F3}})();function l9(t){if(go===setTimeout)return setTimeout(t,0);if((go===M3||!go)&&setTimeout)return go=setTimeout,setTimeout(t,0);try{return go(t,0)}catch{try{return go.call(null,t,0)}catch{return go.call(this,t,0)}}}function PW(t){if(mo===clearTimeout)return clearTimeout(t);if((mo===F3||!mo)&&clearTimeout)return mo=clearTimeout,clearTimeout(t);try{return mo(t)}catch{try{return mo.call(null,t)}catch{return mo.call(this,t)}}}var na=[],Hh=!1,jl,s2=-1;function xW(){!Hh||!jl||(Hh=!1,jl.length?na=jl.concat(na):s2=-1,na.length&&u9())}function u9(){if(!Hh){var t=l9(xW);Hh=!0;for(var e=na.length;e;){for(jl=na,na=[];++s2<e;)jl&&jl[s2].run();s2=-1,e=na.length}jl=null,Hh=!1,PW(t)}}Wr.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];na.push(new h9(t,e)),na.length===1&&!Hh&&l9(u9)};function h9(t,e){this.fun=t,this.array=e}h9.prototype.run=function(){this.fun.apply(null,this.array)},Wr.title="browser",Wr.browser=!0,Wr.env={},Wr.argv=[],Wr.version="",Wr.versions={};function sa(){}Wr.on=sa,Wr.addListener=sa,Wr.once=sa,Wr.off=sa,Wr.removeListener=sa,Wr.removeAllListeners=sa,Wr.emit=sa,Wr.prependListener=sa,Wr.prependOnceListener=sa,Wr.listeners=function(t){return[]},Wr.binding=function(t){throw new Error("process.binding is not supported")},Wr.cwd=function(){return"/"},Wr.chdir=function(t){throw new Error("process.chdir is not supported")},Wr.umask=function(){return 0};var NW=c9.exports;const L3=RW(NW);var IW=Object.defineProperty,d9=t=>{throw TypeError(t)},OW=(t,e,r)=>e in t?IW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,X=(t,e,r)=>OW(t,typeof e!="symbol"?e+"":e,r),V3=(t,e,r)=>e.has(t)||d9("Cannot "+r),S=(t,e,r)=>(V3(t,e,"read from private field"),r?r.call(t):e.get(t)),ne=(t,e,r)=>e.has(t)?d9("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),V=(t,e,r,n)=>(V3(t,e,"write to private field"),e.set(t,r),r),ve=(t,e,r)=>(V3(t,e,"access private method"),r),yo=(t,e,r,n)=>({set _(s){V(t,e,s)},get _(){return S(t,e,n)}});const i2="6.13.4";function BW(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;i<n.length;i++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof t===e)return}const s=new Error(`invalid value for type ${e}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${r}`,s.value=t,s}async function nn(t){const e=Object.keys(t);return(await Promise.all(e.map(r=>Promise.resolve(t[r])))).reduce((r,n,s)=>(r[e[s]]=n,r),{})}function rt(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&BW(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function Zh(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(Zh).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n<t.length;n++)r+=e[t[n]>>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return Zh(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=>`${Zh(r)}: ${Zh(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function jr(t,e){return t&&t.code===e}function Vp(t){return jr(t,"CALL_EXCEPTION")}function yr(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: ${Zh(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+Zh(a))}}i.push(`code=${e}`),i.push(`version=${i2}`),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 rt(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&rt(s,{shortMessage:n}),s}function Be(t,e,r,n){if(!t)throw yr(e,r,n)}function pe(t,e,r,n){Be(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function o2(t,e,r){r==null&&(r=""),r&&(r=": "+r),Be(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),Be(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const UW=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function a2(t){Be(UW.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function vo(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),Be(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function f9(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<n.length;i++)n[i]=parseInt(t.substring(s,s+2),16),s+=2;return n}pe(!1,"invalid BytesLike value",e||"value",t)}function qe(t,e){return f9(t,e,!1)}function sn(t,e){return f9(t,e,!0)}function lr(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||typeof e=="number"&&t.length!==2+2*e||e===!0&&t.length%2!==0)}function Jh(t){return lr(t,!0)||t instanceof Uint8Array}const p9="0123456789abcdef";function Ze(t){const e=qe(t);let r="0x";for(let n=0;n<e.length;n++){const s=e[n];r+=p9[(s&240)>>4]+p9[s&15]}return r}function $t(t){return"0x"+t.map(e=>Ze(e).substring(2)).join("")}function ia(t){return lr(t,!0)?(t.length-2)/2:qe(t).length}function ur(t,e,r){const n=qe(t);return r!=null&&r>n.length&&Be(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),Ze(n.slice(e??0,r??n.length))}function g9(t){let e=Ze(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function m9(t,e,r){const n=qe(t);Be(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),Ze(s)}function Hs(t,e){return m9(t,e,!0)}function Dp(t,e){return m9(t,e,!1)}const c2=BigInt(0),Si=BigInt(1),Qh=9007199254740991;function Yh(t,e){const r=Kh(t,"value"),n=BigInt(mt(e,"width"));if(Be(r>>n===c2,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-Si){const s=(Si<<n)-Si;return-((~r&s)+Si)}return r}function Wp(t,e){let r=ct(t,"value");const n=BigInt(mt(e,"width")),s=Si<<n-Si;if(r<c2){r=-r,Be(r<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});const i=(Si<<n)-Si;return(~r&i)+Si}else Be(r<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});return r}function oa(t,e){const r=Kh(t,"value"),n=BigInt(mt(e,"bits"));return r&(Si<<n)-Si}function ct(t,e){switch(typeof t){case"bigint":return t;case"number":return pe(Number.isInteger(t),"underflow",e||"value",t),pe(t>=-Qh&&t<=Qh,"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){pe(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}pe(!1,"invalid BigNumberish value",e||"value",t)}function Kh(t,e){const r=ct(t,e);return Be(r>=c2,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const y9="0123456789abcdef";function Gl(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=y9[r>>4],e+=y9[r&15];return BigInt(e)}return ct(t)}function mt(t,e){switch(typeof t){case"bigint":return pe(t>=-Qh&&t<=Qh,"overflow",e||"value",t),Number(t);case"number":return pe(Number.isInteger(t),"underflow",e||"value",t),pe(t>=-Qh&&t<=Qh,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return mt(BigInt(t),e)}catch(r){pe(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}pe(!1,"invalid numeric value",e||"value",t)}function jp(t){return mt(Gl(t))}function Zs(t,e){let r=Kh(t,"value").toString(16);if(e==null)r.length%2&&(r="0"+r);else{const n=mt(e,"width");for(Be(n*2>=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length<n*2;)r="0"+r}return"0x"+r}function on(t){const e=Kh(t,"value");if(e===c2)return new Uint8Array([]);let r=e.toString(16);r.length%2&&(r="0"+r);const n=new Uint8Array(r.length/2);for(let s=0;s<n.length;s++){const i=s*2;n[s]=parseInt(r.substring(i,i+2),16)}return n}function aa(t){let e=Ze(Jh(t)?t:on(t)).substring(2);for(;e.startsWith("0");)e=e.substring(1);return e===""&&(e="0"),"0x"+e}const l2="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let u2=null;function MW(t){if(u2==null){u2={};for(let r=0;r<l2.length;r++)u2[l2[r]]=BigInt(r)}const e=u2[t];return pe(e!=null,"invalid base58 value","letter",t),e}const FW=BigInt(0),D3=BigInt(58);function h2(t){const e=qe(t);let r=Gl(e),n="";for(;r;)n=l2[Number(r%D3)]+n,r/=D3;for(let s=0;s<e.length&&!e[s];s++)n=l2[0]+n;return n}function W3(t){let e=FW;for(let r=0;r<t.length;r++)e*=D3,e+=MW(t[r]);return e}function j3(t){t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return qe(e)}function G3(t){const e=qe(t);let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}var Gp;class d2{constructor(e,r,n){X(this,"filter"),X(this,"emitter"),ne(this,Gp),V(this,Gp,r),rt(this,{emitter:e,filter:n})}async removeListener(){S(this,Gp)!=null&&await this.emitter.off(this.filter,S(this,Gp))}}Gp=new WeakMap;function LW(t,e,r,n,s){pe(!1,`invalid codepoint at offset ${e}; ${t}`,"bytes",r)}function v9(t,e,r,n,s){if(t==="BAD_PREFIX"||t==="UNEXPECTED_CONTINUE"){let i=0;for(let o=e+1;o<r.length&&r[o]>>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function VW(t,e,r,n,s){return t==="OVERLONG"?(pe(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),v9(t,e,r))}const z3=Object.freeze({error:LW,ignore:v9,replace:VW});function b9(t,e){e==null&&(e=z3.error);const r=qe(t,"bytes"),n=[];let s=0;for(;s<r.length;){const i=r[s++];if(!(i>>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;l<o;l++){let u=r[s];if((u&192)!=128){s+=e("MISSING_CONTINUE",s,r,n),c=null;break}c=c<<6|u&63,s++}if(c!==null){if(c>1114111){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 qr(t,e){pe(typeof t=="string","invalid string value","str",t),e!=null&&(a2(e),t=t.normalize(e));let r=[];for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(s<128)r.push(s);else if(s<2048)r.push(s>>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);pe(n<t.length&&(i&64512)===56320,"invalid surrogate pair","str",t);const o=65536+((s&1023)<<10)+(i&1023);r.push(o>>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 DW(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function ca(t,e){return DW(b9(t,e))}function w9(t,e){return b9(qr(t,e))}function k9(t){async function e(r,n){Be(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();Be(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),Be(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=yr("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=yr("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(p){throw clearTimeout(a),i||p}clearTimeout(a);const u={};l.headers.forEach((p,g)=>{u[g.toLowerCase()]=p});const d=await l.arrayBuffer(),h=d==null?null:new Uint8Array(d);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:h}}return e}const WW=12,jW=250;let E9=k9();const GW=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),zW=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let $3=!1;async function A9(t,e){try{const r=t.match(GW);if(!r)throw new Error("invalid data");return new vc(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?j3(r[3]):ZW(r[3]))}catch{return new vc(599,"BAD REQUEST (invalid data: URI)",{},null,new Mn(t))}}function _9(t){async function e(r,n){try{const s=r.match(zW);if(!s)throw new Error("invalid link");return new Mn(`${t}${s[2]}`)}catch{return new vc(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Mn(r))}}return e}const f2={data:A9,ipfs:_9("https://gateway.ipfs.io/ipfs/")},S9=new WeakMap;var qh,zl;class H3{constructor(e){ne(this,qh),ne(this,zl),V(this,qh,[]),V(this,zl,!1),S9.set(e,()=>{if(!S(this,zl)){V(this,zl,!0);for(const r of S(this,qh))setTimeout(()=>{r()},0);V(this,qh,[])}})}addListener(e){Be(!S(this,zl),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),S(this,qh).push(e)}get cancelled(){return S(this,zl)}checkSignal(){Be(!this.cancelled,"cancelled","CANCELLED",{})}}qh=new WeakMap,zl=new WeakMap;function p2(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var zp,$p,bo,mc,Hp,Zp,En,Js,yc,Xh,ed,td,la,wo,$l,rd,Jp;const $W=class VA{constructor(e){ne(this,rd),ne(this,zp),ne(this,$p),ne(this,bo),ne(this,mc),ne(this,Hp),ne(this,Zp),ne(this,En),ne(this,Js),ne(this,yc),ne(this,Xh),ne(this,ed),ne(this,td),ne(this,la),ne(this,wo),ne(this,$l),V(this,Zp,String(e)),V(this,zp,!1),V(this,$p,!0),V(this,bo,{}),V(this,mc,""),V(this,Hp,3e5),V(this,wo,{slotInterval:jW,maxAttempts:WW}),V(this,$l,null)}get url(){return S(this,Zp)}set url(e){V(this,Zp,String(e))}get body(){return S(this,En)==null?null:new Uint8Array(S(this,En))}set body(e){if(e==null)V(this,En,void 0),V(this,Js,void 0);else if(typeof e=="string")V(this,En,qr(e)),V(this,Js,"text/plain");else if(e instanceof Uint8Array)V(this,En,e),V(this,Js,"application/octet-stream");else if(typeof e=="object")V(this,En,qr(JSON.stringify(e))),V(this,Js,"application/json");else throw new Error("invalid body")}hasBody(){return S(this,En)!=null}get method(){return S(this,mc)?S(this,mc):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),V(this,mc,String(e).toUpperCase())}get headers(){const e=Object.assign({},S(this,bo));return S(this,yc)&&(e.authorization=`Basic ${G3(qr(S(this,yc)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&S(this,Js)&&(e["content-type"]=S(this,Js)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){S(this,bo)[String(e).toLowerCase()]=String(r)}clearHeaders(){V(this,bo,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n<r.length){const s=r[n++];return{value:[s,e[s]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return S(this,yc)||null}setCredentials(e,r){pe(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),V(this,yc,`${e}:${r}`)}get allowGzip(){return S(this,$p)}set allowGzip(e){V(this,$p,!!e)}get allowInsecureAuthentication(){return!!S(this,zp)}set allowInsecureAuthentication(e){V(this,zp,!!e)}get timeout(){return S(this,Hp)}set timeout(e){pe(e>=0,"timeout must be non-zero","timeout",e),V(this,Hp,e)}get preflightFunc(){return S(this,Xh)||null}set preflightFunc(e){V(this,Xh,e)}get processFunc(){return S(this,ed)||null}set processFunc(e){V(this,ed,e)}get retryFunc(){return S(this,td)||null}set retryFunc(e){V(this,td,e)}get getUrlFunc(){return S(this,$l)||E9}set getUrlFunc(e){V(this,$l,e)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${S(this,En)?Ze(S(this,En)):"null"}>`}setThrottleParams(e){e.slotInterval!=null&&(S(this,wo).slotInterval=e.slotInterval),e.maxAttempts!=null&&(S(this,wo).maxAttempts=e.maxAttempts)}send(){return Be(S(this,la)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),V(this,la,new H3(this)),ve(this,rd,Jp).call(this,0,C9()+this.timeout,0,this,new vc(0,"",{},null,this))}cancel(){Be(S(this,la)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=S9.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();Be(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 VA(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,V(s,bo,Object.assign({},S(this,bo))),S(this,En)&&V(s,En,new Uint8Array(S(this,En))),V(s,Js,S(this,Js)),s}clone(){const e=new VA(this.url);return V(e,mc,S(this,mc)),S(this,En)&&V(e,En,S(this,En)),V(e,Js,S(this,Js)),V(e,bo,Object.assign({},S(this,bo))),V(e,yc,S(this,yc)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),V(e,Xh,S(this,Xh)),V(e,ed,S(this,ed)),V(e,td,S(this,td)),V(e,wo,Object.assign({},S(this,wo))),V(e,$l,S(this,$l)),e}static lockConfig(){$3=!0}static getGateway(e){return f2[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if($3)throw new Error("gateways locked");f2[e]=r}static registerGetUrl(e){if($3)throw new Error("gateways locked");E9=e}static createGetUrlFunc(e){return k9()}static createDataGateway(){return A9}static createIpfsGatewayFunc(e){return _9(e)}};zp=new WeakMap,$p=new WeakMap,bo=new WeakMap,mc=new WeakMap,Hp=new WeakMap,Zp=new WeakMap,En=new WeakMap,Js=new WeakMap,yc=new WeakMap,Xh=new WeakMap,ed=new WeakMap,td=new WeakMap,la=new WeakMap,wo=new WeakMap,$l=new WeakMap,rd=new WeakSet,Jp=async function(t,e,r,n,s){var i,o,a;if(t>=S(this,wo).maxAttempts)return s.makeServerError("exceeded maximum retry limit");Be(C9()<=e,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await JW(r);let c=this.clone();const l=(c.url.split(":")[0]||"").toLowerCase();if(l in f2){const h=await f2[l](c.url,p2(S(n,la)));if(h instanceof vc){let p=h;if(this.processFunc){p2(S(n,la));try{p=await this.processFunc(c,p)}catch(g){(g.throttle==null||typeof g.stall!="number")&&p.makeServerError("error in post-processing function",g).assertOk()}}return p}c=h}this.preflightFunc&&(c=await this.preflightFunc(c));const u=await this.getUrlFunc(c,p2(S(n,la)));let d=new vc(u.statusCode,u.statusMessage,u.headers,u.body,n);if(d.statusCode===301||d.statusCode===302){try{const h=d.headers.location||"";return ve(i=c.redirect(h),rd,Jp).call(i,t+1,e,0,n,d)}catch{}return d}else if(d.statusCode===429&&(this.retryFunc==null||await this.retryFunc(c,d,t))){const h=d.headers["retry-after"];let p=S(this,wo).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(p=parseInt(h)),ve(o=c.clone(),rd,Jp).call(o,t+1,e,p,n,d)}if(this.processFunc){p2(S(n,la));try{d=await this.processFunc(c,d)}catch(h){(h.throttle==null||typeof h.stall!="number")&&d.makeServerError("error in post-processing function",h).assertOk();let p=S(this,wo).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return h.stall>=0&&(p=h.stall),ve(a=c.clone(),rd,Jp).call(a,t+1,e,p,n,d)}}return d};let Mn=$W;var g2,m2,y2,Qs,Qp,nd;const HW=class DV{constructor(e,r,n,s,i){ne(this,g2),ne(this,m2),ne(this,y2),ne(this,Qs),ne(this,Qp),ne(this,nd),V(this,g2,e),V(this,m2,r),V(this,y2,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),V(this,Qs,s==null?null:new Uint8Array(s)),V(this,Qp,i||null),V(this,nd,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${S(this,Qs)?Ze(S(this,Qs)):"null"}>`}get statusCode(){return S(this,g2)}get statusMessage(){return S(this,m2)}get headers(){return Object.assign({},S(this,y2))}get body(){return S(this,Qs)==null?null:new Uint8Array(S(this,Qs))}get bodyText(){try{return S(this,Qs)==null?"":ca(S(this,Qs))}catch{Be(!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{Be(!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<r.length){const s=r[n++];return{value:[s,e[s]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(e,r){let n;e?n=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,n=`CLIENT ESCALATED SERVER ERROR (${e})`);const s=new DV(599,n,this.headers,this.body,S(this,Qp)||void 0);return V(s,nd,{message:e,error:r}),s}throwThrottleError(e,r){r==null?r=-1:pe(Number.isInteger(r)&&r>=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw rt(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return S(this,Qs)!=null}get request(){return S(this,Qp)}ok(){return S(this,nd).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=S(this,nd);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{S(this,Qs)&&(s=ca(S(this,Qs)))}catch{}Be(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};g2=new WeakMap,m2=new WeakMap,y2=new WeakMap,Qs=new WeakMap,Qp=new WeakMap,nd=new WeakMap;let vc=HW;function C9(){return new Date().getTime()}function ZW(t){return qr(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function JW(t){return new Promise(e=>setTimeout(e,t))}const QW=BigInt(-1),Ci=BigInt(0),sd=BigInt(1),YW=BigInt(5),id={};let od="0000";for(;od.length<80;)od+=od;function Hl(t){let e=od;for(;e.length<t;)e+=e;return BigInt("1"+e.substring(0,t))}function Yp(t,e,r){const n=BigInt(e.width);if(e.signed){const s=sd<<n-sd;Be(r==null||t>=-s&&t<s,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t>Ci?t=Yh(oa(t,n),n):t=-Yh(oa(-t,n),n)}else{const s=sd<<n;Be(r==null||t>=0&&t<s,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=(t%s+s)%s&s-sd}return t}function Z3(t){typeof t=="number"&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if(typeof t=="string"){if(t!=="fixed")if(t==="ufixed")e=!1;else{const i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);pe(i,"invalid fixed format","format",t),e=i[1]!=="u",r=parseInt(i[2]),n=parseInt(i[3])}}else if(t){const i=t,o=(a,c,l)=>i[a]==null?l:(pe(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)}pe(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),pe(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 KW(t,e){let r="";t<Ci&&(r="-",t*=QW);let n=t.toString();if(e===0)return r+n;for(;n.length<=e;)n=od+n;const s=n.length-e;for(n=n.substring(0,s)+"."+n.substring(s);n[0]==="0"&&n[1]!==".";)n=n.substring(1);for(;n[n.length-1]==="0"&&n[n.length-2]!==".";)n=n.substring(0,n.length-1);return r+n}var ko,dr,hs,xr,Zl,ua,J3,Q3,Y3,K3;const T9=class bp{constructor(e,r,n){ne(this,xr),X(this,"format"),ne(this,ko),ne(this,dr),ne(this,hs),X(this,"_value"),vo(e,id,"FixedNumber"),V(this,dr,r),V(this,ko,n);const s=KW(r,n.decimals);rt(this,{format:n.name,_value:s}),V(this,hs,Hl(n.decimals))}get signed(){return S(this,ko).signed}get width(){return S(this,ko).width}get decimals(){return S(this,ko).decimals}get value(){return S(this,dr)}addUnsafe(e){return ve(this,xr,J3).call(this,e)}add(e){return ve(this,xr,J3).call(this,e,"add")}subUnsafe(e){return ve(this,xr,Q3).call(this,e)}sub(e){return ve(this,xr,Q3).call(this,e,"sub")}mulUnsafe(e){return ve(this,xr,Y3).call(this,e)}mul(e){return ve(this,xr,Y3).call(this,e,"mul")}mulSignal(e){ve(this,xr,Zl).call(this,e);const r=S(this,dr)*S(e,dr);return Be(r%S(this,hs)===Ci,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),ve(this,xr,ua).call(this,r/S(this,hs),"mulSignal")}divUnsafe(e){return ve(this,xr,K3).call(this,e)}div(e){return ve(this,xr,K3).call(this,e,"div")}divSignal(e){Be(S(e,dr)!==Ci,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),ve(this,xr,Zl).call(this,e);const r=S(this,dr)*S(this,hs);return Be(r%S(e,dr)===Ci,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),ve(this,xr,ua).call(this,r/S(e,dr),"divSignal")}cmp(e){let r=this.value,n=e.value;const s=this.decimals-e.decimals;return s>0?n*=Hl(s):s<0&&(r*=Hl(-s)),r<n?-1:r>n?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=S(this,dr);return S(this,dr)<Ci&&(e-=S(this,hs)-sd),e=S(this,dr)/S(this,hs)*S(this,hs),ve(this,xr,ua).call(this,e,"floor")}ceiling(){let e=S(this,dr);return S(this,dr)>Ci&&(e+=S(this,hs)-sd),e=S(this,dr)/S(this,hs)*S(this,hs),ve(this,xr,ua).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=YW*Hl(r-1);let s=this.value+n;const i=Hl(r);return s=s/i*i,Yp(s,S(this,ko),"round"),new bp(id,s,S(this,ko))}isZero(){return S(this,dr)===Ci}isNegative(){return S(this,dr)<Ci}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return bp.fromString(this.toString(),e)}static fromValue(e,r,n){const s=r==null?0:mt(r),i=Z3(n);let o=ct(e,"value");const a=s-i.decimals;if(a>0){const c=Hl(a);Be(o%c===Ci,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Hl(-a));return Yp(o,i,"fromValue"),new bp(id,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);pe(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=Z3(r);let i=n[2]||"0",o=n[3]||"";for(;o.length<s.decimals;)o+=od;Be(o.substring(s.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,s.decimals);const a=BigInt(n[1]+i+o);return Yp(a,s,"fromString"),new bp(id,a,s)}static fromBytes(e,r){let n=Gl(qe(e,"value"));const s=Z3(r);return s.signed&&(n=Yh(n,s.width)),Yp(n,s,"fromBytes"),new bp(id,n,s)}};ko=new WeakMap,dr=new WeakMap,hs=new WeakMap,xr=new WeakSet,Zl=function(t){pe(this.format===t.format,"incompatible format; use fixedNumber.toFormat","other",t)},ua=function(t,e){return t=Yp(t,S(this,ko),e),new T9(id,t,S(this,ko))},J3=function(t,e){return ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)+S(t,dr),e)},Q3=function(t,e){return ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)-S(t,dr),e)},Y3=function(t,e){return ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)*S(t,dr)/S(this,hs),e)},K3=function(t,e){return Be(S(t,dr)!==Ci,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)*S(this,hs)/S(t,dr),e)};let v2=T9;function qW(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function R9(t,e,r){let n=0;for(let s=0;s<r;s++)n=n*256+t[e+s];return n}function P9(t,e,r,n){const s=[];for(;r<e+1+n;){const i=x9(t,r);s.push(i.result),r+=i.consumed,Be(r<=e+1+n,"child data too short","BUFFER_OVERRUN",{buffer:t,length:n,offset:e})}return{consumed:1+n,result:s}}function x9(t,e){Be(t.length!==0,"data too short","BUFFER_OVERRUN",{buffer:t,length:0,offset:1});const r=n=>{Be(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=R9(t,e+1,n);return r(e+1+n+s),P9(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),P9(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=R9(t,e+1,n);r(e+1+n+s);const i=Ze(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=Ze(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:qW(t[e])}}function ad(t){const e=qe(t,"data"),r=x9(e,0);return pe(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function N9(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function I9(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(I9(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=N9(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(qe(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=N9(e.length);return r.unshift(183+r.length),r.concat(e)}const O9="0123456789abcdef";function ha(t){let e="0x";for(const r of I9(t))e+=O9[r>>4],e+=O9[r&15];return e}const B9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function q3(t,e){let r=18;if(typeof e=="string"){const n=B9.indexOf(e);pe(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=mt(e,"unit"));return v2.fromValue(t,r,{decimals:r,width:512}).toString()}function X3(t,e){pe(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=B9.indexOf(e);pe(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=mt(e,"unit"));return v2.fromString(t,{decimals:r,width:512}).value}function U9(t){return q3(t,18)}function M9(t){return X3(t,18)}function e4(t){const e=qe(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=Ze(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Kn=32,t4=new Uint8Array(Kn),XW=["then"],b2={},F9=new WeakMap;function Jl(t){return F9.get(t)}function L9(t,e){F9.set(t,e)}function Kp(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function r4(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof cd?r4(Jl(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof cd&&(o=r4(Jl(o),o,r)),n[s]=o),n},{})}var qp;const ej=class Om extends Array{constructor(...e){const r=e[0];let n=e[1],s=(e[2]||[]).slice(),i=!0;r!==b2&&(n=e,s=[],i=!1),super(n.length),ne(this,qp),n.forEach((c,l)=>{this[l]=c});const o=s.reduce((c,l)=>(typeof l=="string"&&c.set(l,(c.get(l)||0)+1),c),new Map);if(L9(this,Object.freeze(n.map((c,l)=>{const u=s[l];return u!=null&&o.get(u)===1?u:null}))),V(this,qp,[]),S(this,qp)==null&&S(this,qp),!i)return;Object.freeze(this);const a=new Proxy(this,{get:(c,l,u)=>{if(typeof l=="string"){if(l.match(/^[0-9]+$/)){const h=mt(l,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const p=c[h];return p instanceof Error&&Kp(`index ${h}`,p),p}if(XW.indexOf(l)>=0)return Reflect.get(c,l,u);const d=c[l];if(d instanceof Function)return function(...h){return d.apply(this===u?c:this,h)};if(!(l in c))return c.getValue.apply(this===u?c:this,[l])}return Reflect.get(c,l,u)}});return L9(a,Jl(this)),a}toArray(e){const r=[];return this.forEach((n,s)=>{n instanceof Error&&Kp(`index ${s}`,n),e&&n instanceof Om&&(n=n.toArray(e)),r.push(n)}),r}toObject(e){const r=Jl(this);return r.reduce((n,s,i)=>(Be(s!=null,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),r4(r,this,e)),{})}slice(e,r){e==null&&(e=0),e<0&&(e+=this.length,e<0&&(e=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const n=Jl(this),s=[],i=[];for(let o=e;o<r;o++)s.push(this[o]),i.push(n[o]);return new Om(b2,s,i)}filter(e,r){const n=Jl(this),s=[],i=[];for(let o=0;o<this.length;o++){const a=this[o];a instanceof Error&&Kp(`index ${o}`,a),e.call(r,a,o,this)&&(s.push(a),i.push(n[o]))}return new Om(b2,s,i)}map(e,r){const n=[];for(let s=0;s<this.length;s++){const i=this[s];i instanceof Error&&Kp(`index ${s}`,i),n.push(e.call(r,i,s,this))}return n}getValue(e){const r=Jl(this).indexOf(e);if(r===-1)return;const n=this[r];return n instanceof Error&&Kp(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,r){return new Om(b2,e,r)}};qp=new WeakMap;let cd=ej;function V9(t){const e=[],r=function(n,s){if(Array.isArray(s))for(let i in s){const o=n.slice();o.push(i);try{r(o,s[i])}catch(a){e.push({path:o,error:a})}}};return r([],t),e}function D9(t){let e=on(t);return Be(e.length<=Kn,"value out-of-bounds","BUFFER_OVERRUN",{buffer:e,length:Kn,offset:e.length}),e.length!==Kn&&(e=sn($t([t4.slice(e.length%Kn),e]))),e}class da{constructor(e,r,n,s){X(this,"name"),X(this,"type"),X(this,"localName"),X(this,"dynamic"),rt(this,{name:e,type:r,localName:n,dynamic:s},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,r){pe(!1,e,this.localName,r)}}var bc,wc,Xp,w2;class n4{constructor(){ne(this,Xp),ne(this,bc),ne(this,wc),V(this,bc,[]),V(this,wc,0)}get data(){return $t(S(this,bc))}get length(){return S(this,wc)}appendWriter(e){return ve(this,Xp,w2).call(this,sn(e.data))}writeBytes(e){let r=sn(e);const n=r.length%Kn;return n&&(r=sn($t([r,t4.slice(n)]))),ve(this,Xp,w2).call(this,r)}writeValue(e){return ve(this,Xp,w2).call(this,D9(e))}writeUpdatableValue(){const e=S(this,bc).length;return S(this,bc).push(t4),V(this,wc,S(this,wc)+Kn),r=>{S(this,bc)[e]=D9(r)}}}bc=new WeakMap,wc=new WeakMap,Xp=new WeakSet,w2=function(t){return S(this,bc).push(t),V(this,wc,S(this,wc)+t.length),t.length};var As,_s,Ql,ld,Yl,e0,s4,W9;const tj=class WV{constructor(e,r,n){ne(this,e0),X(this,"allowLoose"),ne(this,As),ne(this,_s),ne(this,Ql),ne(this,ld),ne(this,Yl),rt(this,{allowLoose:!!r}),V(this,As,sn(e)),V(this,Ql,0),V(this,ld,null),V(this,Yl,n??1024),V(this,_s,0)}get data(){return Ze(S(this,As))}get dataLength(){return S(this,As).length}get consumed(){return S(this,_s)}get bytes(){return new Uint8Array(S(this,As))}subReader(e){const r=new WV(S(this,As).slice(S(this,_s)+e),this.allowLoose,S(this,Yl));return V(r,ld,this),r}readBytes(e,r){let n=ve(this,e0,W9).call(this,0,e,!!r);return ve(this,e0,s4).call(this,e),V(this,_s,S(this,_s)+n.length),n.slice(0,e)}readValue(){return Gl(this.readBytes(Kn))}readIndex(){return jp(this.readBytes(Kn))}};As=new WeakMap,_s=new WeakMap,Ql=new WeakMap,ld=new WeakMap,Yl=new WeakMap,e0=new WeakSet,s4=function(t){var e;if(S(this,ld))return ve(e=S(this,ld),e0,s4).call(e,t);V(this,Ql,S(this,Ql)+t),Be(S(this,Yl)<1||S(this,Ql)<=S(this,Yl)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${S(this,Yl)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:sn(S(this,As)),offset:S(this,_s),length:t,info:{bytesRead:S(this,Ql),dataLength:this.dataLength}})},W9=function(t,e,r){let n=Math.ceil(e/Kn)*Kn;return S(this,_s)+n>S(this,As).length&&(this.allowLoose&&r&&S(this,_s)+e<=S(this,As).length?n=e:Be(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:sn(S(this,As)),length:S(this,As).length,offset:S(this,_s)+n})),S(this,As).slice(S(this,_s),S(this,_s)+n)};let rj=tj;function Ss(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function i4(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 j9(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ss(t.outputLen),Ss(t.blockLen)}function ud(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 G9(t,e){i4(t);const r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const o4=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const z9=t=>t instanceof Uint8Array,k2=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),t0=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Eo=(t,e)=>t<<32-e|t>>>e;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");const nj=async()=>{};async function a4(t,e,r){let n=Date.now();for(let s=0;s<t;s++){r(s);const i=Date.now()-n;i>=0&&i<e||(await nj(),n+=i)}}function sj(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Kl(t){if(typeof t=="string"&&(t=sj(t)),!z9(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function ij(...t){const e=new Uint8Array(t.reduce((n,s)=>n+s.length,0));let r=0;return t.forEach(n=>{if(!z9(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}class c4{clone(){return this._cloneInto()}}const oj={}.toString;function $9(t,e){if(e!==void 0&&oj.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function kc(t){const e=n=>t().update(Kl(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function aj(t){const e=(n,s)=>t(s).update(Kl(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function H9(t=32){if(o4&&typeof o4.getRandomValues=="function")return o4.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class l4 extends c4{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,j9(e);const n=Kl(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;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),i.fill(0)}update(e){return ud(this),this.iHash.update(e),this}digestInto(e){ud(this),i4(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:s,destroyed:i,blockLen:o,outputLen:a}=this;return e=e,e.finished=s,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const r0=(t,e,r)=>new l4(t,e).update(r).digest();r0.create=(t,e)=>new l4(t,e);const cj=Object.freeze(Object.defineProperty({__proto__:null,HMAC:l4,hmac:r0},Symbol.toStringTag,{value:"Module"}));function Z9(t,e,r,n){j9(t);const s=$9({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(Ss(i),Ss(o),Ss(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Kl(e),l=Kl(r),u=new Uint8Array(o),d=r0.create(t,c),h=d._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:d,PRFSalt:h}}function J9(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function E2(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=Z9(t,e,r,n);let l;const u=new Uint8Array(4),d=t0(u),h=new Uint8Array(a.outputLen);for(let p=1,g=0;g<i;p++,g+=a.outputLen){const m=o.subarray(g,g+a.outputLen);d.setInt32(0,p,!1),(l=c._cloneInto(l)).update(u).digestInto(h),m.set(h.subarray(0,m.length));for(let y=1;y<s;y++){a._cloneInto(l).update(h).digestInto(h);for(let v=0;v<m.length;v++)m[v]^=h[v]}}return J9(a,c,o,l,h)}async function lj(t,e,r,n){const{c:s,dkLen:i,asyncTick:o,DK:a,PRF:c,PRFSalt:l}=Z9(t,e,r,n);let u;const d=new Uint8Array(4),h=t0(d),p=new Uint8Array(c.outputLen);for(let g=1,m=0;m<i;g++,m+=c.outputLen){const y=a.subarray(m,m+c.outputLen);h.setInt32(0,g,!1),(u=l._cloneInto(u)).update(d).digestInto(p),y.set(p.subarray(0,y.length)),await a4(s-1,o,()=>{c._cloneInto(u).update(p).digestInto(p);for(let v=0;v<y.length;v++)y[v]^=p[v]})}return J9(c,l,a,u,p)}const uj=Object.freeze(Object.defineProperty({__proto__:null,pbkdf2:E2,pbkdf2Async:lj},Symbol.toStringTag,{value:"Module"}));function hj(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)}class u4 extends c4{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=t0(this.buffer)}update(e){ud(this);const{view:r,buffer:n,blockLen:s}=this;e=Kl(e);const i=e.length;for(let o=0;o<i;){const a=Math.min(s-this.pos,i-o);if(a===s){const c=t0(e);for(;s<=i-o;o+=s)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){ud(this),G9(e,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:i}=this;let{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>s-o&&(this.process(n,0),o=0);for(let d=o;d<s;d++)r[d]=0;hj(n,s-8,BigInt(this.length*8),i),this.process(n,0);const a=t0(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)a.setUint32(4*d,u[d],i)}digest(){const{buffer:e,outputLen:r}=this;this.digestInto(e);const n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:i,destroyed:o,pos:a}=this;return e.length=s,e.pos=a,e.finished=i,e.destroyed=o,s%r&&e.buffer.set(n),e}}const dj=(t,e,r)=>t&e^~t&r,fj=(t,e,r)=>t&e^t&r^e&r,pj=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]),Ec=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ac=new Uint32Array(64);class Q9 extends u4{constructor(){super(64,32,8,!1),this.A=Ec[0]|0,this.B=Ec[1]|0,this.C=Ec[2]|0,this.D=Ec[3]|0,this.E=Ec[4]|0,this.F=Ec[5]|0,this.G=Ec[6]|0,this.H=Ec[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 d=0;d<16;d++,r+=4)Ac[d]=e.getUint32(r,!1);for(let d=16;d<64;d++){const h=Ac[d-15],p=Ac[d-2],g=Eo(h,7)^Eo(h,18)^h>>>3,m=Eo(p,17)^Eo(p,19)^p>>>10;Ac[d]=m+Ac[d-7]+g+Ac[d-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const h=Eo(a,6)^Eo(a,11)^Eo(a,25),p=u+h+dj(a,c,l)+pj[d]+Ac[d]|0,g=(Eo(n,2)^Eo(n,13)^Eo(n,22))+fj(n,s,i)|0;u=l,l=c,c=a,a=o+p|0,o=i,i=s,s=n,n=p+g|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(){Ac.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class gj extends Q9{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const Ao=kc(()=>new Q9),mj=kc(()=>new gj),yj=Object.freeze(Object.defineProperty({__proto__:null,sha224:mj,sha256:Ao},Symbol.toStringTag,{value:"Module"})),A2=BigInt(2**32-1),h4=BigInt(32);function Y9(t,e=!1){return e?{h:Number(t&A2),l:Number(t>>h4&A2)}:{h:Number(t>>h4&A2)|0,l:Number(t&A2)|0}}function K9(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;s<t.length;s++){const{h:i,l:o}=Y9(t[s],e);[r[s],n[s]]=[i,o]}return[r,n]}const vj=(t,e)=>BigInt(t>>>0)<<h4|BigInt(e>>>0),bj=(t,e,r)=>t>>>r,wj=(t,e,r)=>t<<32-r|e>>>r,kj=(t,e,r)=>t>>>r|e<<32-r,Ej=(t,e,r)=>t<<32-r|e>>>r,Aj=(t,e,r)=>t<<64-r|e>>>r-32,_j=(t,e,r)=>t>>>r-32|e<<64-r,Sj=(t,e)=>e,Cj=(t,e)=>t,q9=(t,e,r)=>t<<r|e>>>32-r,X9=(t,e,r)=>e<<r|t>>>32-r,e7=(t,e,r)=>e<<r-32|t>>>64-r,t7=(t,e,r)=>t<<r-32|e>>>64-r;function Tj(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Rj=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Pj=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,xj=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Nj=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Ij=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Oj=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Nt={fromBig:Y9,split:K9,toBig:vj,shrSH:bj,shrSL:wj,rotrSH:kj,rotrSL:Ej,rotrBH:Aj,rotrBL:_j,rotr32H:Sj,rotr32L:Cj,rotlSH:q9,rotlSL:X9,rotlBH:e7,rotlBL:t7,add:Tj,add3L:Rj,add3H:Pj,add4L:xj,add4H:Nj,add5H:Oj,add5L:Ij},[Bj,Uj]=Nt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),_c=new Uint32Array(80),Sc=new Uint32Array(80);class n0 extends u4{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:d,Fl:h,Gh:p,Gl:g,Hh:m,Hl:y}=this;return[e,r,n,s,i,o,a,c,l,u,d,h,p,g,m,y]}set(e,r,n,s,i,o,a,c,l,u,d,h,p,g,m,y){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=d|0,this.Fl=h|0,this.Gh=p|0,this.Gl=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}=Nt.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Nt.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Nt.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Nt.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:d,l:h}=Nt.add(this.Eh|0,this.El|0,d|0,h|0),{h:p,l:g}=Nt.add(this.Fh|0,this.Fl|0,p|0,g|0),{h:m,l:y}=Nt.add(this.Gh|0,this.Gl|0,m|0,y|0),{h:v,l:A}=Nt.add(this.Hh|0,this.Hl|0,v|0,A|0),this.set(n,s,i,o,a,c,l,u,d,h,p,g,m,y,v,A)}roundClean(){_c.fill(0),Sc.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Mj extends n0{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class Fj extends n0{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class Lj extends n0{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const _2=kc(()=>new n0),Vj=kc(()=>new Mj),Dj=kc(()=>new Fj),Wj=kc(()=>new Lj),jj=Object.freeze(Object.defineProperty({__proto__:null,SHA512:n0,sha384:Wj,sha512:_2,sha512_224:Vj,sha512_256:Dj},Symbol.toStringTag,{value:"Module"}));function Gj(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}const r7=Gj(),n7=r7.crypto||r7.msCrypto;function s7(t){switch(t){case"sha256":return Ao.create();case"sha512":return _2.create()}pe(!1,"invalid hashing algorithm name","algorithm",t)}function zj(t,e){const r={sha256:Ao,sha512:_2}[t];return pe(r!=null,"invalid hmac algorithm","algorithm",t),r0.create(r,e)}function $j(t,e,r,n,s){const i={sha256:Ao,sha512:_2}[s];return pe(i!=null,"invalid pbkdf2 algorithm","algorithm",s),E2(i,t,e,{c:r,dkLen:n})}function Hj(t){Be(n7!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),pe(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return n7.getRandomValues(e),e}let i7=!1;const o7=function(t,e,r){return zj(t,e).update(r).digest()};let a7=o7;function fa(t,e,r){const n=qe(e,"key"),s=qe(r,"data");return Ze(a7(t,n,s))}fa._=o7,fa.lock=function(){i7=!0},fa.register=function(t){if(i7)throw new Error("computeHmac is locked");a7=t},Object.freeze(fa);const[c7,l7,u7]=[[],[],[]],Zj=BigInt(0),s0=BigInt(1),Jj=BigInt(2),Qj=BigInt(7),Yj=BigInt(256),Kj=BigInt(113);for(let t=0,e=s0,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],c7.push(2*(5*n+r)),l7.push((t+1)*(t+2)/2%64);let s=Zj;for(let i=0;i<7;i++)e=(e<<s0^(e>>Qj)*Kj)%Yj,e&Jj&&(s^=s0<<(s0<<BigInt(i))-s0);u7.push(s)}const[qj,Xj]=K9(u7,!0),h7=(t,e,r)=>r>32?e7(t,e,r):q9(t,e,r),d7=(t,e,r)=>r>32?t7(t,e,r):X9(t,e,r);function f7(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],d=h7(l,u,1)^r[a],h=d7(l,u,1)^r[a+1];for(let p=0;p<50;p+=10)t[o+p]^=d,t[o+p+1]^=h}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=l7[o],c=h7(s,i,a),l=d7(s,i,a),u=c7[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]^=qj[n],t[1]^=Xj[n]}r.fill(0)}let d4=class jV extends c4{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,Ss(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=k2(this.state)}keccak(){f7(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){ud(this);const{blockLen:r,state:n}=this;e=Kl(e);const s=e.length;for(let i=0;i<s;){const o=Math.min(r-this.pos,s-i);for(let a=0;a<o;a++)n[this.pos++]^=e[i++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:r,pos:n,blockLen:s}=this;e[n]^=r,r&128&&n===s-1&&this.keccak(),e[s-1]^=128,this.keccak()}writeInto(e){ud(this,!1),i4(e),this.finish();const r=this.state,{blockLen:n}=this;for(let s=0,i=e.length;s<i;){this.posOut>=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 Ss(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(G9(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 jV(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 Cc=(t,e,r)=>kc(()=>new d4(e,t,r)),eG=Cc(6,144,224/8),tG=Cc(6,136,256/8),rG=Cc(6,104,384/8),nG=Cc(6,72,512/8),sG=Cc(1,144,224/8),p7=Cc(1,136,256/8),iG=Cc(1,104,384/8),oG=Cc(1,72,512/8),g7=(t,e,r)=>aj((n={})=>new d4(e,t,n.dkLen===void 0?r:n.dkLen,!0)),aG=g7(31,168,128/8),cG=g7(31,136,256/8),lG=Object.freeze(Object.defineProperty({__proto__:null,Keccak:d4,keccakP:f7,keccak_224:sG,keccak_256:p7,keccak_384:iG,keccak_512:oG,sha3_224:eG,sha3_256:tG,sha3_384:rG,sha3_512:nG,shake128:aG,shake256:cG},Symbol.toStringTag,{value:"Module"}));let m7=!1;const y7=function(t){return p7(t)};let v7=y7;function hr(t){const e=qe(t,"data");return Ze(v7(e))}hr._=y7,hr.lock=function(){m7=!0},hr.register=function(t){if(m7)throw new TypeError("keccak256 is locked");v7=t},Object.freeze(hr);const uG=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),b7=Uint8Array.from({length:16},(t,e)=>e),hG=b7.map(t=>(9*t+5)%16);let f4=[b7],p4=[hG];for(let t=0;t<4;t++)for(let e of[f4,p4])e.push(e[t].map(r=>uG[r]));const w7=[[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)),dG=f4.map((t,e)=>t.map(r=>w7[e][r])),fG=p4.map((t,e)=>t.map(r=>w7[e][r])),pG=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),gG=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),S2=(t,e)=>t<<e|t>>>32-e;function k7(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 C2=new Uint32Array(16);class E7 extends u4{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 p=0;p<16;p++,r+=4)C2[p]=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,d=this.h4|0,h=d;for(let p=0;p<5;p++){const g=4-p,m=pG[p],y=gG[p],v=f4[p],A=p4[p],E=dG[p],w=fG[p];for(let C=0;C<16;C++){const B=S2(n+k7(p,i,a,l)+C2[v[C]]+m,E[C])+d|0;n=d,d=l,l=S2(a,10)|0,a=i,i=B}for(let C=0;C<16;C++){const B=S2(s+k7(g,o,c,u)+C2[A[C]]+y,w[C])+h|0;s=h,h=u,u=S2(c,10)|0,c=o,o=B}}this.set(this.h1+a+u|0,this.h2+l+h|0,this.h3+d+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){C2.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const A7=kc(()=>new E7),mG=Object.freeze(Object.defineProperty({__proto__:null,RIPEMD160:E7,ripemd160:A7},Symbol.toStringTag,{value:"Module"}));let _7=!1;const S7=function(t){return A7(t)};let C7=S7;function pa(t){const e=qe(t,"data");return Ze(C7(e))}pa._=S7,pa.lock=function(){_7=!0},pa.register=function(t){if(_7)throw new TypeError("ripemd160 is locked");C7=t},Object.freeze(pa);let T7=!1;const R7=function(t,e,r,n,s){return $j(t,e,r,n,s)};let P7=R7;function Ti(t,e,r,n,s){const i=qe(t,"password"),o=qe(e,"salt");return Ze(P7(i,o,r,n,s))}Ti._=R7,Ti.lock=function(){T7=!0},Ti.register=function(t){if(T7)throw new Error("pbkdf2 is locked");P7=t},Object.freeze(Ti);let x7=!1;const N7=function(t){return new Uint8Array(Hj(t))};let I7=N7;function Cs(t){return I7(t)}Cs._=N7,Cs.lock=function(){x7=!0},Cs.register=function(t){if(x7)throw new Error("randomBytes is locked");I7=t},Object.freeze(Cs);const rr=(t,e)=>t<<e|t>>>32-e;function O7(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++],d=t[e++]^r[n++],h=t[e++]^r[n++],p=t[e++]^r[n++],g=t[e++]^r[n++],m=t[e++]^r[n++],y=t[e++]^r[n++],v=t[e++]^r[n++],A=t[e++]^r[n++],E=t[e++]^r[n++],w=t[e++]^r[n++],C=t[e++]^r[n++],B=o,F=a,I=c,L=l,D=u,M=d,N=h,P=p,U=g,O=m,j=y,Z=v,K=A,$=E,Y=w,q=C;for(let te=0;te<8;te+=2)D^=rr(B+K|0,7),U^=rr(D+B|0,9),K^=rr(U+D|0,13),B^=rr(K+U|0,18),O^=rr(M+F|0,7),$^=rr(O+M|0,9),F^=rr($+O|0,13),M^=rr(F+$|0,18),Y^=rr(j+N|0,7),I^=rr(Y+j|0,9),N^=rr(I+Y|0,13),j^=rr(N+I|0,18),L^=rr(q+Z|0,7),P^=rr(L+q|0,9),Z^=rr(P+L|0,13),q^=rr(Z+P|0,18),F^=rr(B+L|0,7),I^=rr(F+B|0,9),L^=rr(I+F|0,13),B^=rr(L+I|0,18),N^=rr(M+D|0,7),P^=rr(N+M|0,9),D^=rr(P+N|0,13),M^=rr(D+P|0,18),Z^=rr(j+O|0,7),U^=rr(Z+j|0,9),O^=rr(U+Z|0,13),j^=rr(O+U|0,18),K^=rr(q+Y|0,7),$^=rr(K+q|0,9),Y^=rr($+K|0,13),q^=rr(Y+$|0,18);s[i++]=o+B|0,s[i++]=a+F|0,s[i++]=c+I|0,s[i++]=l+L|0,s[i++]=u+D|0,s[i++]=d+M|0,s[i++]=h+N|0,s[i++]=p+P|0,s[i++]=g+U|0,s[i++]=m+O|0,s[i++]=y+j|0,s[i++]=v+Z|0,s[i++]=A+K|0,s[i++]=E+$|0,s[i++]=w+Y|0,s[i++]=C+q|0}function hd(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;a<s;a++,i+=16,e+=16)O7(r,o,t,e,r,i),a>0&&(o+=16),O7(r,i,t,e+=16,r,o)}function B7(t,e,r){const n=$9({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(Ss(s),Ss(i),Ss(o),Ss(a),Ss(c),Ss(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const d=128*i,h=d/4;if(s<=1||s&s-1||s>=2**(d/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/d)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 p=d*(s+o);if(p>l)throw new Error(`Scrypt: parameters too large, ${p} (128 * r * (N + p)) > ${l} (maxmem)`);const g=E2(Ao,t,e,{c:1,dkLen:d*o}),m=k2(g),y=k2(new Uint8Array(d*s)),v=k2(new Uint8Array(d));let A=()=>{};if(u){const E=2*s*o,w=Math.max(Math.floor(E/1e4),1);let C=0;A=()=>{C++,u&&(!(C%w)||C===E)&&u(C/E)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:h,V:y,B32:m,B:g,tmp:v,blockMixCb:A,asyncTick:c}}function U7(t,e,r,n,s){const i=E2(Ao,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function M7(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:h}=B7(t,e,r);for(let p=0;p<i;p++){const g=a*p;for(let m=0;m<a;m++)c[m]=l[g+m];for(let m=0,y=0;m<n-1;m++)hd(c,y,c,y+=a,s),h();hd(c,(n-1)*a,l,g,s),h();for(let m=0;m<n;m++){const y=l[g+a-16]%n;for(let v=0;v<a;v++)d[v]=l[g+v]^c[y*a+v];hd(d,0,l,g,s),h()}}return U7(t,o,u,c,d)}async function F7(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:h,asyncTick:p}=B7(t,e,r);for(let g=0;g<i;g++){const m=a*g;for(let v=0;v<a;v++)c[v]=l[m+v];let y=0;await a4(n-1,p,()=>{hd(c,y,c,y+=a,s),h()}),hd(c,(n-1)*a,l,m,s),h(),await a4(n,p,()=>{const v=l[m+a-16]%n;for(let A=0;A<a;A++)d[A]=l[m+A]^c[v*a+A];hd(d,0,l,m,s),h()})}return U7(t,o,u,c,d)}const yG=Object.freeze(Object.defineProperty({__proto__:null,scrypt:M7,scryptAsync:F7},Symbol.toStringTag,{value:"Module"}));let L7=!1,V7=!1;const D7=async function(t,e,r,n,s,i,o){return await F7(t,e,{N:r,r:n,p:s,dkLen:i,onProgress:o})},W7=function(t,e,r,n,s,i){return M7(t,e,{N:r,r:n,p:s,dkLen:i})};let j7=D7,G7=W7;async function ga(t,e,r,n,s,i,o){const a=qe(t,"passwd"),c=qe(e,"salt");return Ze(await j7(a,c,r,n,s,i,o))}ga._=D7,ga.lock=function(){V7=!0},ga.register=function(t){if(V7)throw new Error("scrypt is locked");j7=t},Object.freeze(ga);function ma(t,e,r,n,s,i){const o=qe(t,"passwd"),a=qe(e,"salt");return Ze(G7(o,a,r,n,s,i))}ma._=W7,ma.lock=function(){L7=!0},ma.register=function(t){if(L7)throw new Error("scryptSync is locked");G7=t},Object.freeze(ma);const z7=function(t){return s7("sha256").update(t).digest()},$7=function(t){return s7("sha512").update(t).digest()};let H7=z7,Z7=$7,J7=!1,Q7=!1;function Fn(t){const e=qe(t,"data");return Ze(H7(e))}Fn._=z7,Fn.lock=function(){J7=!0},Fn.register=function(t){if(J7)throw new Error("sha256 is locked");H7=t},Object.freeze(Fn);function dd(t){const e=qe(t,"data");return Ze(Z7(e))}dd._=$7,dd.lock=function(){Q7=!0},dd.register=function(t){if(Q7)throw new Error("sha512 is locked");Z7=t},Object.freeze(Fn);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Y7=BigInt(0),T2=BigInt(1),vG=BigInt(2),R2=t=>t instanceof Uint8Array,bG=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function fd(t){if(!R2(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r<t.length;r++)e+=bG[t[r]];return e}function K7(t){const e=t.toString(16);return e.length&1?`0${e}`:e}function g4(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return BigInt(t===""?"0":`0x${t}`)}function pd(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(e/2);for(let n=0;n<r.length;n++){const s=n*2,i=t.slice(s,s+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");r[n]=o}return r}function qn(t){return g4(fd(t))}function m4(t){if(!R2(t))throw new Error("Uint8Array expected");return g4(fd(Uint8Array.from(t).reverse()))}function Tc(t,e){return pd(t.toString(16).padStart(e*2,"0"))}function y4(t,e){return Tc(t,e).reverse()}function wG(t){return pd(K7(t))}function Ln(t,e,r){let n;if(typeof e=="string")try{n=pd(e)}catch(i){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${i}`)}else if(R2(e))n=Uint8Array.from(e);else throw new Error(`${t} must be hex string or Uint8Array`);const s=n.length;if(typeof r=="number"&&s!==r)throw new Error(`${t} expected ${r} bytes, got ${s}`);return n}function Ts(...t){const e=new Uint8Array(t.reduce((n,s)=>n+s.length,0));let r=0;return t.forEach(n=>{if(!R2(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function kG(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function P2(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function EG(t){let e;for(e=0;t>Y7;t>>=T2,e+=1);return e}function AG(t,e){return t>>BigInt(e)&T2}const _G=(t,e,r)=>t|(r?T2:Y7)<<BigInt(e),v4=t=>(vG<<BigInt(t-1))-T2,b4=t=>new Uint8Array(t),q7=t=>Uint8Array.from(t);function X7(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=b4(t),s=b4(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...u)=>r(s,n,...u),c=(u=b4())=>{s=a(q7([0]),u),n=a(),u.length!==0&&(s=a(q7([1]),u),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let u=0;const d=[];for(;u<e;){n=a();const h=n.slice();d.push(h),u+=n.length}return Ts(...d)};return(u,d)=>{o(),c(u);let h;for(;!(h=d(l()));)c();return o(),h}}const SG={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 gd(t,e,r={}){const n=(s,i,o)=>{const a=SG[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 CG=Object.freeze(Object.defineProperty({__proto__:null,bitGet:AG,bitLen:EG,bitMask:v4,bitSet:_G,bytesToHex:fd,bytesToNumberBE:qn,bytesToNumberLE:m4,concatBytes:Ts,createHmacDrbg:X7,ensureBytes:Ln,equalBytes:kG,hexToBytes:pd,hexToNumber:g4,numberToBytesBE:Tc,numberToBytesLE:y4,numberToHexUnpadded:K7,numberToVarBytesBE:wG,utf8ToBytes:P2,validateObject:gd},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const fn=BigInt(0),Gr=BigInt(1),ql=BigInt(2),TG=BigInt(3),w4=BigInt(4),eS=BigInt(5),tS=BigInt(8);BigInt(9),BigInt(16);function pn(t,e){const r=t%e;return r>=fn?r:e+r}function RG(t,e,r){if(r<=fn||e<fn)throw new Error("Expected power/modulo > 0");if(r===Gr)return fn;let n=Gr;for(;e>fn;)e&Gr&&(n=n*t%r),t=t*t%r,e>>=Gr;return n}function Ys(t,e,r){let n=t;for(;e-- >fn;)n*=n,n%=r;return n}function k4(t,e){if(t===fn||e<=fn)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=pn(t,e),n=e,s=fn,i=Gr;for(;r!==fn;){const o=n/r,a=n%r,c=s-i*o;n=r,r=a,s=i,i=c}if(n!==Gr)throw new Error("invert: does not exist");return pn(s,e)}function PG(t){const e=(t-Gr)/ql;let r,n,s;for(r=t-Gr,n=0;r%ql===fn;r/=ql,n++);for(s=ql;s<t&&RG(s,e,t)!==t-Gr;s++);if(n===1){const o=(t+Gr)/w4;return function(a,c){const l=a.pow(c,o);if(!a.eql(a.sqr(l),c))throw new Error("Cannot find square root");return l}}const i=(r+Gr)/ql;return function(o,a){if(o.pow(a,e)===o.neg(o.ONE))throw new Error("Cannot find square root");let c=n,l=o.pow(o.mul(o.ONE,s),r),u=o.pow(a,i),d=o.pow(a,r);for(;!o.eql(d,o.ONE);){if(o.eql(d,o.ZERO))return o.ZERO;let h=1;for(let g=o.sqr(d);h<c&&!o.eql(g,o.ONE);h++)g=o.sqr(g);const p=o.pow(l,Gr<<BigInt(c-h-1));l=o.sqr(p),u=o.mul(u,p),d=o.mul(d,l),c=h}return u}}function xG(t){if(t%w4===TG){const e=(t+Gr)/w4;return function(r,n){const s=r.pow(n,e);if(!r.eql(r.sqr(s),n))throw new Error("Cannot find square root");return s}}if(t%tS===eS){const e=(t-eS)/tS;return function(r,n){const s=r.mul(n,ql),i=r.pow(s,e),o=r.mul(n,i),a=r.mul(r.mul(o,ql),i),c=r.mul(o,r.sub(a,r.ONE));if(!r.eql(r.sqr(c),n))throw new Error("Cannot find square root");return c}}return PG(t)}const NG=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function rS(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=NG.reduce((n,s)=>(n[s]="function",n),e);return gd(t,r)}function IG(t,e,r){if(r<fn)throw new Error("Expected power > 0");if(r===fn)return t.ONE;if(r===Gr)return e;let n=t.ONE,s=e;for(;r>fn;)r&Gr&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Gr;return n}function OG(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 nS(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function BG(t,e,r=!1,n={}){if(t<=fn)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=nS(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=xG(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:v4(s),ZERO:fn,ONE:Gr,create:c=>pn(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return fn<=c&&c<t},is0:c=>c===fn,isOdd:c=>(c&Gr)===Gr,neg:c=>pn(-c,t),eql:(c,l)=>c===l,sqr:c=>pn(c*c,t),add:(c,l)=>pn(c+l,t),sub:(c,l)=>pn(c-l,t),mul:(c,l)=>pn(c*l,t),pow:(c,l)=>IG(a,c,l),div:(c,l)=>pn(c*k4(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>k4(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>OG(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?y4(c,i):Tc(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?m4(c):qn(c)}});return Object.freeze(a)}function sS(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 iS(t){const e=sS(t);return e+Math.ceil(e/2)}function UG(t,e,r=!1){const n=t.length,s=sS(e),i=iS(e);if(n<16||n<i||n>1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?qn(t):m4(t),a=pn(o,e-Gr)+Gr;return r?y4(a,s):Tc(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const MG=BigInt(0),E4=BigInt(1);function FG(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>MG;)i&E4&&(o=o.add(a)),a=a.double(),i>>=E4;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let d=0;d<o;d++){u=l,c.push(u);for(let h=1;h<a;h++)u=u.add(l),c.push(u);l=u.double()}return c},wNAF(s,i,o){const{windows:a,windowSize:c}=n(s);let l=t.ZERO,u=t.BASE;const d=BigInt(2**s-1),h=2**s,p=BigInt(s);for(let g=0;g<a;g++){const m=g*c;let y=Number(o&d);o>>=p,y>c&&(y-=h,o+=E4);const v=m,A=m+Math.abs(y)-1,E=g%2!==0,w=y<0;y===0?u=u.add(r(E,i[v])):l=l.add(r(w,i[A]))}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 oS(t){return rS(t.Fp),gd(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nS(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function LG(t){const e=oS(t);gd(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:VG,hexToBytes:DG}=CG,Xl={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:e}=Xl;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:VG(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=Xl,r=typeof t=="string"?DG(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}=Xl._parseInt(r.subarray(2)),{d:o,l:a}=Xl._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}`}},Ri=BigInt(0),Vr=BigInt(1),Rc=BigInt(2),x2=BigInt(3),aS=BigInt(4);function WG(t){const e=LG(t),{Fp:r}=e,n=e.toBytes||((g,m,y)=>{const v=m.toAffine();return Ts(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),s=e.fromBytes||(g=>{const m=g.subarray(1),y=r.fromBytes(m.subarray(0,r.BYTES)),v=r.fromBytes(m.subarray(r.BYTES,2*r.BYTES));return{x:y,y:v}});function i(g){const{a:m,b:y}=e,v=r.sqr(g),A=r.mul(v,g);return r.add(r.add(A,r.mul(g,m)),y)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(g){return typeof g=="bigint"&&Ri<g&&g<e.n}function a(g){if(!o(g))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function c(g){const{allowedPrivateKeyLengths:m,nByteLength:y,wrapPrivateKey:v,n:A}=e;if(m&&typeof g!="bigint"){if(g instanceof Uint8Array&&(g=fd(g)),typeof g!="string"||!m.includes(g.length))throw new Error("Invalid key");g=g.padStart(y*2,"0")}let E;try{E=typeof g=="bigint"?g:qn(Ln("private key",g,y))}catch{throw new Error(`private key must be ${y} bytes, hex or bigint, not ${typeof g}`)}return v&&(E=pn(E,A)),a(E),E}const l=new Map;function u(g){if(!(g instanceof d))throw new Error("ProjectivePoint expected")}class d{constructor(m,y,v){if(this.px=m,this.py=y,this.pz=v,m==null||!r.isValid(m))throw new Error("x required");if(y==null||!r.isValid(y))throw new Error("y required");if(v==null||!r.isValid(v))throw new Error("z required")}static fromAffine(m){const{x:y,y:v}=m||{};if(!m||!r.isValid(y)||!r.isValid(v))throw new Error("invalid affine point");if(m instanceof d)throw new Error("projective point not allowed");const A=E=>r.eql(E,r.ZERO);return A(y)&&A(v)?d.ZERO:new d(y,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(m){const y=r.invertBatch(m.map(v=>v.pz));return m.map((v,A)=>v.toAffine(y[A])).map(d.fromAffine)}static fromHex(m){const y=d.fromAffine(s(Ln("pointHex",m)));return y.assertValidity(),y}static fromPrivateKey(m){return d.BASE.multiply(c(m))}_setWindowSize(m){this._WINDOW_SIZE=m,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:m,y}=this.toAffine();if(!r.isValid(m)||!r.isValid(y))throw new Error("bad point: x or y not FE");const v=r.sqr(y),A=i(m);if(!r.eql(v,A))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:m}=this.toAffine();if(r.isOdd)return!r.isOdd(m);throw new Error("Field doesn't support isOdd")}equals(m){u(m);const{px:y,py:v,pz:A}=this,{px:E,py:w,pz:C}=m,B=r.eql(r.mul(y,C),r.mul(E,A)),F=r.eql(r.mul(v,C),r.mul(w,A));return B&&F}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){const{a:m,b:y}=e,v=r.mul(y,x2),{px:A,py:E,pz:w}=this;let C=r.ZERO,B=r.ZERO,F=r.ZERO,I=r.mul(A,A),L=r.mul(E,E),D=r.mul(w,w),M=r.mul(A,E);return M=r.add(M,M),F=r.mul(A,w),F=r.add(F,F),C=r.mul(m,F),B=r.mul(v,D),B=r.add(C,B),C=r.sub(L,B),B=r.add(L,B),B=r.mul(C,B),C=r.mul(M,C),F=r.mul(v,F),D=r.mul(m,D),M=r.sub(I,D),M=r.mul(m,M),M=r.add(M,F),F=r.add(I,I),I=r.add(F,I),I=r.add(I,D),I=r.mul(I,M),B=r.add(B,I),D=r.mul(E,w),D=r.add(D,D),I=r.mul(D,M),C=r.sub(C,I),F=r.mul(D,L),F=r.add(F,F),F=r.add(F,F),new d(C,B,F)}add(m){u(m);const{px:y,py:v,pz:A}=this,{px:E,py:w,pz:C}=m;let B=r.ZERO,F=r.ZERO,I=r.ZERO;const L=e.a,D=r.mul(e.b,x2);let M=r.mul(y,E),N=r.mul(v,w),P=r.mul(A,C),U=r.add(y,v),O=r.add(E,w);U=r.mul(U,O),O=r.add(M,N),U=r.sub(U,O),O=r.add(y,A);let j=r.add(E,C);return O=r.mul(O,j),j=r.add(M,P),O=r.sub(O,j),j=r.add(v,A),B=r.add(w,C),j=r.mul(j,B),B=r.add(N,P),j=r.sub(j,B),I=r.mul(L,O),B=r.mul(D,P),I=r.add(B,I),B=r.sub(N,I),I=r.add(N,I),F=r.mul(B,I),N=r.add(M,M),N=r.add(N,M),P=r.mul(L,P),O=r.mul(D,O),N=r.add(N,P),P=r.sub(M,P),P=r.mul(L,P),O=r.add(O,P),M=r.mul(N,O),F=r.add(F,M),M=r.mul(j,O),B=r.mul(U,B),B=r.sub(B,M),M=r.mul(U,N),I=r.mul(j,I),I=r.add(I,M),new d(B,F,I)}subtract(m){return this.add(m.negate())}is0(){return this.equals(d.ZERO)}wNAF(m){return p.wNAFCached(this,l,m,y=>{const v=r.invertBatch(y.map(A=>A.pz));return y.map((A,E)=>A.toAffine(v[E])).map(d.fromAffine)})}multiplyUnsafe(m){const y=d.ZERO;if(m===Ri)return y;if(a(m),m===Vr)return this;const{endo:v}=e;if(!v)return p.unsafeLadder(this,m);let{k1neg:A,k1:E,k2neg:w,k2:C}=v.splitScalar(m),B=y,F=y,I=this;for(;E>Ri||C>Ri;)E&Vr&&(B=B.add(I)),C&Vr&&(F=F.add(I)),I=I.double(),E>>=Vr,C>>=Vr;return A&&(B=B.negate()),w&&(F=F.negate()),F=new d(r.mul(F.px,v.beta),F.py,F.pz),B.add(F)}multiply(m){a(m);let y=m,v,A;const{endo:E}=e;if(E){const{k1neg:w,k1:C,k2neg:B,k2:F}=E.splitScalar(y);let{p:I,f:L}=this.wNAF(C),{p:D,f:M}=this.wNAF(F);I=p.constTimeNegate(w,I),D=p.constTimeNegate(B,D),D=new d(r.mul(D.px,E.beta),D.py,D.pz),v=I.add(D),A=L.add(M)}else{const{p:w,f:C}=this.wNAF(y);v=w,A=C}return d.normalizeZ([v,A])[0]}multiplyAndAddUnsafe(m,y,v){const A=d.BASE,E=(C,B)=>B===Ri||B===Vr||!C.equals(A)?C.multiplyUnsafe(B):C.multiply(B),w=E(this,y).add(E(m,v));return w.is0()?void 0:w}toAffine(m){const{px:y,py:v,pz:A}=this,E=this.is0();m==null&&(m=E?r.ONE:r.inv(A));const w=r.mul(y,m),C=r.mul(v,m),B=r.mul(A,m);if(E)return{x:r.ZERO,y:r.ZERO};if(!r.eql(B,r.ONE))throw new Error("invZ was invalid");return{x:w,y:C}}isTorsionFree(){const{h:m,isTorsionFree:y}=e;if(m===Vr)return!0;if(y)return y(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:m,clearCofactor:y}=e;return m===Vr?this:y?y(d,this):this.multiplyUnsafe(e.h)}toRawBytes(m=!0){return this.assertValidity(),n(d,this,m)}toHex(m=!0){return fd(this.toRawBytes(m))}}d.BASE=new d(e.Gx,e.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);const h=e.nBitLength,p=FG(d,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function jG(t){const e=oS(t);return gd(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function GG(t){const e=jG(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(O){return Ri<O&&O<r.ORDER}function a(O){return pn(O,n)}function c(O){return k4(O,n)}const{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:h}=WG({...e,toBytes(O,j,Z){const K=j.toAffine(),$=r.toBytes(K.x),Y=Ts;return Z?Y(Uint8Array.from([j.hasEvenY()?2:3]),$):Y(Uint8Array.from([4]),$,r.toBytes(K.y))},fromBytes(O){const j=O.length,Z=O[0],K=O.subarray(1);if(j===s&&(Z===2||Z===3)){const $=qn(K);if(!o($))throw new Error("Point is not on curve");const Y=d($);let q=r.sqrt(Y);const te=(q&Vr)===Vr;return(Z&1)===1!==te&&(q=r.neg(q)),{x:$,y:q}}else if(j===i&&Z===4){const $=r.fromBytes(K.subarray(0,r.BYTES)),Y=r.fromBytes(K.subarray(r.BYTES,2*r.BYTES));return{x:$,y:Y}}else throw new Error(`Point of length ${j} was invalid. Expected ${s} compressed bytes or ${i} uncompressed bytes`)}}),p=O=>fd(Tc(O,e.nByteLength));function g(O){const j=n>>Vr;return O>j}function m(O){return g(O)?a(-O):O}const y=(O,j,Z)=>qn(O.slice(j,Z));class v{constructor(j,Z,K){this.r=j,this.s=Z,this.recovery=K,this.assertValidity()}static fromCompact(j){const Z=e.nByteLength;return j=Ln("compactSignature",j,Z*2),new v(y(j,0,Z),y(j,Z,2*Z))}static fromDER(j){const{r:Z,s:K}=Xl.toSig(Ln("DER",j));return new v(Z,K)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(j){return new v(this.r,this.s,j)}recoverPublicKey(j){const{r:Z,s:K,recovery:$}=this,Y=F(Ln("msgHash",j));if($==null||![0,1,2,3].includes($))throw new Error("recovery id invalid");const q=$===2||$===3?Z+e.n:Z;if(q>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const te=$&1?"03":"02",ie=l.fromHex(te+p(q)),ye=c(q),_e=a(-Y*ye),Te=a(K*ye),oe=l.BASE.multiplyAndAddUnsafe(ie,_e,Te);if(!oe)throw new Error("point at infinify");return oe.assertValidity(),oe}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return pd(this.toDERHex())}toDERHex(){return Xl.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return pd(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}const A={isValidPrivateKey(O){try{return u(O),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const O=iS(e.n);return UG(e.randomBytes(O),e.n)},precompute(O=8,j=l.BASE){return j._setWindowSize(O),j.multiply(BigInt(3)),j}};function E(O,j=!0){return l.fromPrivateKey(O).toRawBytes(j)}function w(O){const j=O instanceof Uint8Array,Z=typeof O=="string",K=(j||Z)&&O.length;return j?K===s||K===i:Z?K===2*s||K===2*i:O instanceof l}function C(O,j,Z=!0){if(w(O))throw new Error("first arg must be private key");if(!w(j))throw new Error("second arg must be public key");return l.fromHex(j).multiply(u(O)).toRawBytes(Z)}const B=e.bits2int||function(O){const j=qn(O),Z=O.length*8-e.nBitLength;return Z>0?j>>BigInt(Z):j},F=e.bits2int_modN||function(O){return a(B(O))},I=v4(e.nBitLength);function L(O){if(typeof O!="bigint")throw new Error("bigint expected");if(!(Ri<=O&&O<I))throw new Error(`bigint expected < 2^${e.nBitLength}`);return Tc(O,e.nByteLength)}function D(O,j,Z=M){if(["recovered","canonical"].some(we=>we in Z))throw new Error("sign() legacy options not supported");const{hash:K,randomBytes:$}=e;let{lowS:Y,prehash:q,extraEntropy:te}=Z;Y==null&&(Y=!0),O=Ln("msgHash",O),q&&(O=Ln("prehashed msgHash",K(O)));const ie=F(O),ye=u(j),_e=[L(ye),L(ie)];if(te!=null){const we=te===!0?$(r.BYTES):te;_e.push(Ln("extraEntropy",we))}const Te=Ts(..._e),oe=ie;function le(we){const W=B(we);if(!h(W))return;const ue=c(W),me=l.BASE.multiply(W).toAffine(),be=a(me.x);if(be===Ri)return;const re=a(ue*a(oe+be*ye));if(re===Ri)return;let x=(me.x===be?0:2)|Number(me.y&Vr),G=re;return Y&&g(re)&&(G=m(re),x^=1),new v(be,G,x)}return{seed:Te,k2sig:le}}const M={lowS:e.lowS,prehash:!1},N={lowS:e.lowS,prehash:!1};function P(O,j,Z=M){const{seed:K,k2sig:$}=D(O,j,Z),Y=e;return X7(Y.hash.outputLen,Y.nByteLength,Y.hmac)(K,$)}l.BASE._setWindowSize(8);function U(O,j,Z,K=N){var $;const Y=O;if(j=Ln("msgHash",j),Z=Ln("publicKey",Z),"strict"in K)throw new Error("options.strict was renamed to lowS");const{lowS:q,prehash:te}=K;let ie,ye;try{if(typeof Y=="string"||Y instanceof Uint8Array)try{ie=v.fromDER(Y)}catch(me){if(!(me instanceof Xl.Err))throw me;ie=v.fromCompact(Y)}else if(typeof Y=="object"&&typeof Y.r=="bigint"&&typeof Y.s=="bigint"){const{r:me,s:be}=Y;ie=new v(me,be)}else throw new Error("PARSE");ye=l.fromHex(Z)}catch(me){if(me.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(q&&ie.hasHighS())return!1;te&&(j=e.hash(j));const{r:_e,s:Te}=ie,oe=F(j),le=c(Te),we=a(oe*le),W=a(_e*le),ue=($=l.BASE.multiplyAndAddUnsafe(ye,we,W))==null?void 0:$.toAffine();return ue?a(ue.x)===_e:!1}return{CURVE:e,getPublicKey:E,getSharedSecret:C,sign:P,verify:U,ProjectivePoint:l,Signature:v,utils:A}}function zG(t,e){const r=t.ORDER;let n=Ri;for(let g=r-Vr;g%Rc===Ri;g/=Rc)n+=Vr;const s=n,i=Rc<<s-Vr-Vr,o=i*Rc,a=(r-Vr)/o,c=(a-Vr)/Rc,l=o-Vr,u=i,d=t.pow(e,a),h=t.pow(e,(a+Vr)/Rc);let p=(g,m)=>{let y=d,v=t.pow(m,l),A=t.sqr(v);A=t.mul(A,m);let E=t.mul(g,A);E=t.pow(E,c),E=t.mul(E,v),v=t.mul(E,m),A=t.mul(E,g);let w=t.mul(A,v);E=t.pow(w,u);let C=t.eql(E,t.ONE);v=t.mul(A,h),E=t.mul(w,y),A=t.cmov(v,A,C),w=t.cmov(E,w,C);for(let B=s;B>Vr;B--){let F=B-Rc;F=Rc<<F-Vr;let I=t.pow(w,F);const L=t.eql(I,t.ONE);v=t.mul(A,y),y=t.mul(y,y),I=t.mul(w,y),A=t.cmov(v,A,L),w=t.cmov(I,w,L)}return{isValid:C,value:A}};if(t.ORDER%aS===x2){const g=(t.ORDER-x2)/aS,m=t.sqrt(t.neg(e));p=(y,v)=>{let A=t.sqr(v);const E=t.mul(y,v);A=t.mul(A,E);let w=t.pow(A,g);w=t.mul(w,E);const C=t.mul(w,m),B=t.mul(t.sqr(w),v),F=t.eql(B,y);let I=t.cmov(C,w,F);return{isValid:F,value:I}}}return p}function $G(t,e){if(rS(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=zG(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let s,i,o,a,c,l,u,d;s=t.sqr(n),s=t.mul(s,e.Z),i=t.sqr(s),i=t.add(i,s),o=t.add(i,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(i),!t.eql(i,t.ZERO)),a=t.mul(a,e.A),i=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),i=t.add(i,c),i=t.mul(i,o),l=t.mul(l,a),c=t.mul(l,e.B),i=t.add(i,c),u=t.mul(s,o);const{isValid:h,value:p}=r(i,l);d=t.mul(s,n),d=t.mul(d,p),u=t.cmov(u,o,h),d=t.cmov(d,p,h);const g=t.isOdd(n)===t.isOdd(d);return d=t.cmov(t.neg(d),d,g),u=t.div(u,a),{x:u,y:d}}}function HG(t){if(t instanceof Uint8Array)return t;if(typeof t=="string")return P2(t);throw new Error("DST must be Uint8Array or string")}const ZG=qn;function Pc(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=t&255,t>>>=8;return new Uint8Array(r)}function JG(t,e){const r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t[n]^e[n];return r}function i0(t){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected")}function A4(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function QG(t,e,r,n){i0(t),i0(e),A4(r),e.length>255&&(e=n(Ts(P2("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:i}=n,o=Math.ceil(r/s);if(o>255)throw new Error("Invalid xmd length");const a=Ts(e,Pc(e.length,1)),c=Pc(0,i),l=Pc(r,2),u=new Array(o),d=n(Ts(c,t,l,Pc(0,1),a));u[0]=n(Ts(d,Pc(1,1),a));for(let h=1;h<=o;h++){const p=[JG(d,u[h-1]),Pc(h+1,1),a];u[h]=n(Ts(...p))}return Ts(...u).slice(0,r)}function YG(t,e,r,n,s){if(i0(t),i0(e),A4(r),e.length>255){const i=Math.ceil(2*n/8);e=s.create({dkLen:i}).update(P2("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(Pc(r,2)).update(e).update(Pc(e.length,1)).digest()}function cS(t,e,r){gd(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:n,k:s,m:i,hash:o,expand:a,DST:c}=r;i0(t),A4(e);const l=HG(c),u=n.toString(2).length,d=Math.ceil((u+s)/8),h=e*i*d;let p;if(a==="xmd")p=QG(t,l,h,o);else if(a==="xof")p=YG(t,l,h,s,o);else if(a==="_internal_pass")p=t;else throw new Error('expand must be "xmd" or "xof"');const g=new Array(e);for(let m=0;m<e;m++){const y=new Array(i);for(let v=0;v<i;v++){const A=d*(v+m*i),E=p.subarray(A,A+d);y[v]=pn(ZG(E),n)}g[m]=y}return g}function KG(t,e){const r=e.map(n=>Array.from(n).reverse());return(n,s)=>{const[i,o,a,c]=r.map(l=>l.reduce((u,d)=>t.add(t.mul(u,n),d)));return n=t.div(i,o),s=t.mul(s,t.div(a,c)),{x:n,y:s}}}function qG(t,e,r){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(n,s){const i=cS(n,2,{...r,DST:r.DST,...s}),o=t.fromAffine(e(i[0])),a=t.fromAffine(e(i[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,s){const i=cS(n,1,{...r,DST:r.encodeDST,...s}),o=t.fromAffine(e(i[0])).clearCofactor();return o.assertValidity(),o}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function XG(t){return{hash:t,hmac:(e,...r)=>r0(t,e,ij(...r)),randomBytes:H9}}function ez(t,e){const r=n=>GG({...t,...XG(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const N2=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),I2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),lS=BigInt(1),O2=BigInt(2),uS=(t,e)=>(t+e/O2)/e;function hS(t){const e=N2,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,d=Ys(u,r,e)*u%e,h=Ys(d,r,e)*u%e,p=Ys(h,O2,e)*l%e,g=Ys(p,s,e)*p%e,m=Ys(g,i,e)*g%e,y=Ys(m,a,e)*m%e,v=Ys(y,c,e)*y%e,A=Ys(v,a,e)*m%e,E=Ys(A,r,e)*u%e,w=Ys(E,o,e)*g%e,C=Ys(w,n,e)*l%e,B=Ys(C,O2,e);if(!xc.eql(xc.sqr(B),t))throw new Error("Cannot find square root");return B}const xc=BG(N2,void 0,void 0,{sqrt:hS}),Ks=ez({a:BigInt(0),b:BigInt(7),Fp:xc,n:I2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=I2,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-lS*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=uS(i*t,e),c=uS(-n*t,e);let l=pn(t-a*r-c*s,e),u=pn(-a*n-c*i,e);const d=l>o,h=u>o;if(d&&(l=e-l),h&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:d,k1:l,k2neg:h,k2:u}}}},Ao),B2=BigInt(0),dS=t=>typeof t=="bigint"&&B2<t&&t<N2,tz=t=>typeof t=="bigint"&&B2<t&&t<I2,fS={};function U2(t,...e){let r=fS[t];if(r===void 0){const n=Ao(Uint8Array.from(t,s=>s.charCodeAt(0)));r=Ts(n,n),fS[t]=r}return Ao(Ts(r,...e))}const _4=t=>t.toRawBytes(!0).slice(1),S4=t=>Tc(t,32),C4=t=>pn(t,N2),o0=t=>pn(t,I2),T4=Ks.ProjectivePoint,rz=(t,e,r)=>T4.BASE.multiplyAndAddUnsafe(t,e,r);function R4(t){let e=Ks.utils.normPrivateKeyToScalar(t),r=T4.fromPrivateKey(e);return{scalar:r.hasEvenY()?e:o0(-e),bytes:_4(r)}}function pS(t){if(!dS(t))throw new Error("bad x: need 0 < x < p");const e=C4(t*t),r=C4(e*t+BigInt(7));let n=hS(r);n%O2!==B2&&(n=C4(-n));const s=new T4(t,n,lS);return s.assertValidity(),s}function gS(...t){return o0(qn(U2("BIP0340/challenge",...t)))}function nz(t){return R4(t).bytes}function sz(t,e,r=H9(32)){const n=Ln("message",t),{bytes:s,scalar:i}=R4(e),o=Ln("auxRand",r,32),a=S4(i^qn(U2("BIP0340/aux",o))),c=U2("BIP0340/nonce",a,s,n),l=o0(qn(c));if(l===B2)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=R4(l),h=gS(u,s,n),p=new Uint8Array(64);if(p.set(u,0),p.set(S4(o0(d+h*i)),32),!mS(p,n,s))throw new Error("sign: Invalid signature produced");return p}function mS(t,e,r){const n=Ln("signature",t,64),s=Ln("message",e),i=Ln("publicKey",r,32);try{const o=pS(qn(i)),a=qn(n.subarray(0,32));if(!dS(a))return!1;const c=qn(n.subarray(32,64));if(!tz(c))return!1;const l=gS(S4(a),_4(o),s),u=rz(o,c,o0(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==a)}catch{return!1}}const iz={getPublicKey:nz,sign:sz,verify:mS,utils:{randomPrivateKey:Ks.utils.randomPrivateKey,lift_x:pS,pointToBytes:_4,numberToBytesBE:Tc,bytesToNumberBE:qn,taggedHash:U2,mod:pn}},oz=KG(xc,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(e=>BigInt(e)))),az=$G(xc,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:xc.create(BigInt("-11"))}),yS=qG(Ks.ProjectivePoint,t=>{const{x:e,y:r}=az(xc.create(t[0]));return oz(e,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:xc.ORDER,m:1,k:128,expand:"xmd",hash:Ao}),cz=yS.hashToCurve,lz=yS.encodeToCurve,uz=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:lz,hashToCurve:cz,schnorr:iz,secp256k1:Ks},Symbol.toStringTag,{value:"Module"})),eu="0x0000000000000000000000000000000000000000",M2="0x0000000000000000000000000000000000000000000000000000000000000000",vS=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),bS=BigInt("1000000000000000000"),wS=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),kS=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),ES=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),AS="Ξ",P4=`Ethereum Signed Message:
2
+ (function(Ph,Lm){typeof exports=="object"&&typeof module<"u"?Lm(exports):typeof define=="function"&&define.amd?define(["exports"],Lm):(Ph=typeof globalThis<"u"?globalThis:Ph||self,Lm(Ph.CredenzaPassport={}))})(this,function(Ph){"use strict";const nD={version:"0.3.0"},$A=!1;var Vm=Array.isArray,sD=Array.prototype.indexOf,Jw=Array.from,Sp=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,HA=Object.getOwnPropertyDescriptors,iD=Object.prototype,oD=Array.prototype,Qw=Object.getPrototypeOf,ZA=Object.isExtensible;const cc=()=>{};function JA(t){return typeof t?.then=="function"}function aD(t){return t()}function Cp(t){for(var e=0;e<t.length;e++)t[e]()}function cD(){var t,e,r=new Promise((n,s)=>{t=n,e=s});return{promise:r,resolve:t,reject:e}}const ws=2,Yw=4,Dm=8,Nh=16,Xo=32,Nl=64,QA=128,Ds=256,Wm=512,wn=1024,Ws=2048,ea=4096,wi=8192,Il=16384,Kw=32768,jm=65536,YA=1<<17,lD=1<<18,Tp=1<<19,KA=1<<20,qw=1<<21,Xw=1<<22,Ol=1<<23,lc=Symbol("$state"),qA=Symbol("legacy props"),uD=Symbol(""),e3=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},t3=3,Ih=8;function XA(t){return t===this.v}function e9(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function t9(t){return!e9(t,this.v)}function hD(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function r9(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function dD(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fD(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pD(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gD(t){throw new Error("https://svelte.dev/e/effect_orphan")}function mD(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yD(){throw new Error("https://svelte.dev/e/hydration_failed")}function vD(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function bD(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wD(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function kD(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Oh=!1,ED=!1;function AD(){Oh=!0}const Gm=1,zm=2,n9=4,_D=8,SD=16,CD=1,TD=2,s9=4,RD=8,PD=16,xD=1,ND=2,i9="[",$m="[!",r3="]",Bl={},Kr=Symbol(),ID="http://www.w3.org/1999/xhtml",OD="@attach";let Pr=null;function Bh(t){Pr=t}function ot(t,e=!1,r){Pr={p:Pr,c:null,e:null,s:t,x:null,l:Oh&&!e?{s:null,u:null,$:[]}:null}}function at(t){var e=Pr,r=e.e;if(r!==null){e.e=null;for(var n of r)F9(n)}return t!==void 0&&(e.x=t),Pr=e.p,t??{}}function Ul(){return!Oh||Pr!==null&&Pr.l===null}function Rp(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function BD(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let Tt=!1;function ks(t){Tt=t}let tr;function us(t){if(t===null)throw Rp(),Bl;return tr=t}function ta(){return us(co(tr))}function Ne(t){if(Tt){if(co(tr)!==null)throw Rp(),Bl;tr=t}}function Jn(t=1){if(Tt){for(var e=t,r=tr;e--;)r=co(r);tr=r}}function Hm(){for(var t=0,e=tr;;){if(e.nodeType===Ih){var r=e.data;if(r===r3){if(t===0)return e;t-=1}else(r===i9||r===$m)&&(t+=1)}var n=co(e);e.remove(),e=n}}function o9(t){if(!t||t.nodeType!==Ih)throw Rp(),Bl;return t.data}function Uh(t){if(typeof t!="object"||t===null||lc in t)return t;const e=Qw(t);if(e!==iD&&e!==oD)return t;var r=new Map,n=Vm(t),s=dc(0),i=Vl,o=a=>{if(Vl===i)return a();var c=Xt,l=Vl;js(null),N9(i);var u=a();return js(c),N9(l),u};return n&&r.set("length",dc(t.length)),new Proxy(t,{defineProperty(a,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&bD();var u=r.get(c);return u===void 0?u=o(()=>{var d=dc(l.value);return r.set(c,d),d}):Re(u,l.value,!0),!0},deleteProperty(a,c){var l=r.get(c);if(l===void 0){if(c in a){const u=o(()=>dc(Kr));r.set(c,u),c3(s)}}else Re(l,Kr),c3(s);return!0},get(a,c,l){if(c===lc)return t;var u=r.get(c),d=c in a;if(u===void 0&&(!d||xh(a,c)?.writable)&&(u=o(()=>{var p=Uh(d?a[c]:Kr),g=dc(p);return g}),r.set(c,u)),u!==void 0){var h=z(u);return h===Kr?void 0:h}return Reflect.get(a,c,l)},getOwnPropertyDescriptor(a,c){var l=Reflect.getOwnPropertyDescriptor(a,c);if(l&&"value"in l){var u=r.get(c);u&&(l.value=z(u))}else if(l===void 0){var d=r.get(c),h=d?.v;if(d!==void 0&&h!==Kr)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(a,c){if(c===lc)return!0;var l=r.get(c),u=l!==void 0&&l.v!==Kr||Reflect.has(a,c);if(l!==void 0||It!==null&&(!u||xh(a,c)?.writable)){l===void 0&&(l=o(()=>{var h=u?Uh(a[c]):Kr,p=dc(h);return p}),r.set(c,l));var d=z(l);if(d===Kr)return!1}return u},set(a,c,l,u){var d=r.get(c),h=c in a;if(n&&c==="length")for(var p=l;p<d.v;p+=1){var g=r.get(p+"");g!==void 0?Re(g,Kr):p in a&&(g=o(()=>dc(Kr)),r.set(p+"",g))}if(d===void 0)(!h||xh(a,c)?.writable)&&(d=o(()=>dc(void 0)),Re(d,Uh(l)),r.set(c,d));else{h=d.v!==Kr;var m=o(()=>Uh(l));Re(d,m)}var y=Reflect.getOwnPropertyDescriptor(a,c);if(y?.set&&y.set.call(u,l),!h){if(n&&typeof c=="string"){var v=r.get("length"),A=Number(c);Number.isInteger(A)&&A>=v.v&&Re(v,A+1)}c3(s)}return!0},ownKeys(a){z(s);var c=Reflect.ownKeys(a).filter(d=>{var h=r.get(d);return h===void 0||h.v!==Kr});for(var[l,u]of r)u.v!==Kr&&!(l in a)&&c.push(l);return c},setPrototypeOf(){wD()}})}function a9(t){try{if(t!==null&&typeof t=="object"&&lc in t)return t[lc]}catch{}return t}function UD(t,e){return Object.is(a9(t),a9(e))}var c9,l9,u9,h9;function n3(){if(c9===void 0){c9=window,l9=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;u9=xh(e,"firstChild").get,h9=xh(e,"nextSibling").get,ZA(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ZA(r)&&(r.__t=void 0)}}function ki(t=""){return document.createTextNode(t)}function Ei(t){return u9.call(t)}function co(t){return h9.call(t)}function Ie(t,e){if(!Tt)return Ei(t);var r=Ei(tr);if(r===null)r=tr.appendChild(ki());else if(e&&r.nodeType!==t3){var n=ki();return r?.before(n),us(n),n}return us(r),r}function He(t,e){if(!Tt){var r=Ei(t);return r instanceof Comment&&r.data===""?co(r):r}return tr}function Ue(t,e=1,r=!1){let n=Tt?tr:t;for(var s;e--;)s=n,n=co(n);if(!Tt)return n;if(r&&n?.nodeType!==t3){var i=ki();return n===null?s?.after(i):n.before(i),us(i),i}return us(n),n}function d9(t){t.textContent=""}function s3(){return!1}const MD=new WeakMap;function FD(t){var e=It;if(e===null)return Xt.f|=Ol,t;if((e.f&Kw)===0){if((e.f&QA)===0)throw!e.parent&&t instanceof Error&&f9(t),t;e.b.error(t)}else i3(t,e)}function i3(t,e){for(;e!==null;){if((e.f&QA)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&f9(t),t}function f9(t){const e=MD.get(t);e&&(Sp(t,"message",{value:e.message}),Sp(t,"stack",{value:e.stack}))}const LD=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let Pp=[],xp=[];function p9(){var t=Pp;Pp=[],Cp(t)}function g9(){var t=xp;xp=[],Cp(t)}function Zm(t){Pp.length===0&&queueMicrotask(p9),Pp.push(t)}function VD(t){xp.length===0&&LD(g9),xp.push(t)}function DD(){Pp.length>0&&p9(),xp.length>0&&g9()}function WD(){for(var t=It.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&hD(),t}function Jm(t){var e=ws|Ws,r=Xt!==null&&(Xt.f&ws)!==0?Xt:null;return It===null||r!==null&&(r.f&Ds)!==0?e|=Ds:It.f|=Tp,{ctx:Pr,deps:null,effects:null,equals:XA,f:e,fn:t,reactions:null,rv:0,v:Kr,wv:0,parent:r??It,ac:null}}function jD(t,e){let r=It;r===null&&dD();var n=r.b,s=void 0,i=hc(Kr),o=null,a=!Xt;return rW(()=>{try{var c=t()}catch(p){c=Promise.reject(p)}var l=()=>c;s=o?.then(l,l)??Promise.resolve(c),o=s;var u=wr,d=n.pending;a&&(n.update_pending_count(1),d||u.increment());const h=(p,g=void 0)=>{o=null,d||u.activate(),g?g!==e3&&(i.f|=Ol,fc(i,g)):((i.f&Ol)!==0&&(i.f^=Ol),fc(i,p)),a&&(n.update_pending_count(-1),d||u.decrement()),b9()};if(s.then(h,p=>h(null,p||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(c=>{function l(u){function d(){u===s?c(i):l(s)}u.then(d,d)}l(s)})}function bt(t){const e=Jm(t);return e.equals=t9,e}function m9(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)$s(e[r])}}function GD(t){for(var e=t.parent;e!==null;){if((e.f&ws)===0)return e;e=e.parent}return null}function o3(t){var e,r=It;Gs(GD(t));try{m9(t),e=B9(t)}finally{Gs(r)}return e}function y9(t){var e=o3(t);if(t.equals(e)||(t.v=e,t.wv=I9()),!Ll)if(Mh!==null)Mh.set(t,t.v);else{var r=(pc||(t.f&Ds)!==0)&&t.deps!==null?ea:wn;Yn(t,r)}}function v9(t,e,r){const n=Ul()?Jm:bt;if(e.length===0){r(t.map(n));return}var s=wr,i=It,o=zD(),a=WD();Promise.all(e.map(c=>jD(c))).then(c=>{s?.activate(),o();try{r([...t.map(n),...c])}catch(l){(i.f&Il)===0&&i3(l,i)}s?.deactivate(),b9()}).catch(c=>{a.error(c)})}function zD(){var t=It,e=Xt,r=Pr;return function(){Gs(t),js(e),Bh(r)}}function b9(){Gs(null),js(null),Bh(null)}const Np=new Set;let wr=null,Qm=null,Mh=null,w9=new Set,Ym=[];function k9(){const t=Ym.shift();Ym.length>0&&queueMicrotask(k9),t()}let Ml=[],Km=null,a3=!1,qm=!1;class Fh{current=new Map;#t=new Map;#e=new Set;#r=0;#l=null;#u=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#h=[];#d=[];skipped_effects=new Set;process(e){Ml=[],Qm=null;var r=null;if(Np.size>1){r=new Map,Mh=new Map;for(const[i,o]of this.current)r.set(i,{v:i.v,wv:i.wv}),i.v=o;for(const i of Np)if(i!==this)for(const[o,a]of i.#t)r.has(o)||(r.set(o,{v:o.v,wv:o.wv}),o.v=a)}for(const i of e)this.#p(i);if(this.#s.length===0&&this.#r===0){this.#f();var n=this.#i,s=this.#n;this.#i=[],this.#n=[],this.#a=[],Qm=wr,wr=null,A9(n),A9(s),wr===null?wr=this:Np.delete(this),this.#l?.resolve()}else this.#c(this.#i),this.#c(this.#n),this.#c(this.#a);if(r){for(const[i,{v:o,wv:a}]of r)i.wv<=a&&(i.v=o);Mh=null}for(const i of this.#s)Dl(i);for(const i of this.#o)Dl(i);this.#s=[],this.#o=[]}#p(e){e.f^=wn;for(var r=e.first;r!==null;){var n=r.f,s=(n&(Xo|Nl))!==0,i=s&&(n&wn)!==0,o=i||(n&wi)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(s)r.f^=wn;else if((n&Yw)!==0)this.#n.push(r);else if((n&wn)===0)if((n&Xw)!==0){var a=r.b?.pending?this.#o:this.#s;a.push(r)}else Op(r)&&((r.f&Nh)!==0&&this.#a.push(r),Dl(r));var c=r.first;if(c!==null){r=c;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)r=l.next,l=l.parent}}#c(e){for(const r of e)((r.f&Ws)!==0?this.#h:this.#d).push(r),Yn(r,wn);e.length=0}capture(e,r){this.#t.has(e)||this.#t.set(e,r),this.current.set(e,e.v)}activate(){wr=this}deactivate(){wr=null,Qm=null;for(const e of w9)if(w9.delete(e),e(),wr!==null)break}neuter(){this.#u=!0}flush(){Ml.length>0?E9():this.#f(),wr===this&&(this.#r===0&&Np.delete(this),this.deactivate())}#f(){if(!this.#u)for(const e of this.#e)e();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#h)Yn(e,Ws),Lh(e);for(const e of this.#d)Yn(e,ea),Lh(e);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#e.add(e)}settled(){return(this.#l??=cD()).promise}static ensure(){if(wr===null){const e=wr=new Fh;Np.add(wr),qm||Fh.enqueue(()=>{wr===e&&e.flush()})}return wr}static enqueue(e){Ym.length===0&&queueMicrotask(k9),Ym.unshift(e)}}function je(t){var e=qm;qm=!0;try{for(var r;;){if(DD(),Ml.length===0&&(wr?.flush(),Ml.length===0))return Km=null,r;E9()}}finally{qm=e}}function E9(){var t=Vh;a3=!0;try{var e=0;for(R9(!0);Ml.length>0;){var r=Fh.ensure();if(e++>1e3){var n,s;$D()}r.process(Ml),uc.clear()}}finally{a3=!1,R9(t),Km=null}}function $D(){try{mD()}catch(t){i3(t,Km)}}let Fl=null;function A9(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Il|wi))===0&&Op(n)&&(Fl=[],Dl(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?W9(n):n.fn=null),Fl.length>0)){uc.clear();for(const s of Fl)Dl(s);Fl=[]}}Fl=null}}function Lh(t){for(var e=Km=t;e.parent!==null;){e=e.parent;var r=e.f;if(a3&&e===It&&(r&Nh)!==0)return;if((r&(Nl|Xo))!==0){if((r&wn)===0)return;e.f^=wn}}Ml.push(e)}const uc=new Map;function hc(t,e){var r={f:0,v:t,reactions:null,equals:XA,rv:0,wv:0};return r}function dc(t,e){const r=hc(t);return QD(r),r}function De(t,e=!1,r=!0){const n=hc(t);return e||(n.equals=t9),Oh&&r&&Pr!==null&&Pr.l!==null&&(Pr.l.s??=[]).push(n),n}function HD(t,e){return Re(t,Fe(()=>z(t))),e}function Re(t,e,r=!1){Xt!==null&&(!lo||(Xt.f&YA)!==0)&&Ul()&&(Xt.f&(ws|Nh|Xw|YA))!==0&&!ra?.includes(t)&&kD();let n=r?Uh(e):e;return fc(t,n)}function fc(t,e){if(!t.equals(e)){var r=t.v;Ll?uc.set(t,e):uc.set(t,r),t.v=e;var n=Fh.ensure();n.capture(t,r),(t.f&ws)!==0&&((t.f&Ws)!==0&&o3(t),Yn(t,(t.f&Ds)===0?wn:ea)),t.wv=I9(),S9(t,Ws),Ul()&&It!==null&&(It.f&wn)!==0&&(It.f&(Xo|Nl))===0&&(zs===null?YD([t]):zs.push(t))}return e}function _9(t,e=1){var r=z(t),n=e===1?r++:r--;return Re(t,r),n}function c3(t){Re(t,t.v+1)}function S9(t,e){var r=t.reactions;if(r!==null)for(var n=Ul(),s=r.length,i=0;i<s;i++){var o=r[i],a=o.f;if(!(!n&&o===It)){var c=(a&Ws)===0;c&&Yn(o,e),(a&ws)!==0?S9(o,ea):c&&((a&Nh)!==0&&Fl!==null&&Fl.push(o),Lh(o))}}}function ZD(t,e){if(e){const r=document.body;t.autofocus=!0,Zm(()=>{document.activeElement===r&&t.focus()})}}let C9=!1;function T9(){C9||(C9=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Xm(t){var e=Xt,r=It;js(null),Gs(null);try{return t()}finally{js(e),Gs(r)}}function JD(t,e,r,n=r){t.addEventListener(e,()=>Xm(r));const s=t.__on_r;s?t.__on_r=()=>{s(),n(!0)}:t.__on_r=()=>n(!0),T9()}let Vh=!1;function R9(t){Vh=t}let Ll=!1;function P9(t){Ll=t}let Xt=null,lo=!1;function js(t){Xt=t}let It=null;function Gs(t){It=t}let ra=null;function QD(t){Xt!==null&&(ra===null?ra=[t]:ra.push(t))}let Qn=null,Es=0,zs=null;function YD(t){zs=t}let x9=1,Ip=0,Vl=Ip;function N9(t){Vl=t}let pc=!1;function I9(){return++x9}function Op(t){var e=t.f;if((e&Ws)!==0)return!0;if((e&ea)!==0){var r=t.deps,n=(e&Ds)!==0;if(r!==null){var s,i,o=(e&Wm)!==0,a=n&&It!==null&&!pc,c=r.length;if((o||a)&&(It===null||(It.f&Il)===0)){var l=t,u=l.parent;for(s=0;s<c;s++)i=r[s],(o||!i?.reactions?.includes(l))&&(i.reactions??=[]).push(l);o&&(l.f^=Wm),a&&u!==null&&(u.f&Ds)===0&&(l.f^=Ds)}for(s=0;s<c;s++)if(i=r[s],Op(i)&&y9(i),i.wv>t.wv)return!0}(!n||It!==null&&!pc)&&Yn(t,wn)}return!1}function O9(t,e,r=!0){var n=t.reactions;if(n!==null&&!ra?.includes(t))for(var s=0;s<n.length;s++){var i=n[s];(i.f&ws)!==0?O9(i,e,!1):e===i&&(r?Yn(i,Ws):(i.f&wn)!==0&&Yn(i,ea),Lh(i))}}function B9(t){var e=Qn,r=Es,n=zs,s=Xt,i=pc,o=ra,a=Pr,c=lo,l=Vl,u=t.f;Qn=null,Es=0,zs=null,pc=(u&Ds)!==0&&(lo||!Vh||Xt===null),Xt=(u&(Xo|Nl))===0?t:null,ra=null,Bh(t.ctx),lo=!1,Vl=++Ip,t.ac!==null&&(Xm(()=>{t.ac.abort(e3)}),t.ac=null);try{t.f|=qw;var d=t.fn,h=d(),p=t.deps;if(Qn!==null){var g;if(e2(t,Es),p!==null&&Es>0)for(p.length=Es+Qn.length,g=0;g<Qn.length;g++)p[Es+g]=Qn[g];else t.deps=p=Qn;if(!pc||(u&ws)!==0&&t.reactions!==null)for(g=Es;g<p.length;g++)(p[g].reactions??=[]).push(t)}else p!==null&&Es<p.length&&(e2(t,Es),p.length=Es);if(Ul()&&zs!==null&&!lo&&p!==null&&(t.f&(ws|ea|Ws))===0)for(g=0;g<zs.length;g++)O9(zs[g],t);return s!==null&&s!==t&&(Ip++,zs!==null&&(n===null?n=zs:n.push(...zs))),(t.f&Ol)!==0&&(t.f^=Ol),h}catch(m){return FD(m)}finally{t.f^=qw,Qn=e,Es=r,zs=n,Xt=s,pc=i,ra=o,Bh(a),lo=c,Vl=l}}function KD(t,e){let r=e.reactions;if(r!==null){var n=sD.call(r,t);if(n!==-1){var s=r.length-1;s===0?r=e.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(e.f&ws)!==0&&(Qn===null||!Qn.includes(e))&&(Yn(e,ea),(e.f&(Ds|Wm))===0&&(e.f^=Wm),m9(e),e2(e,0))}function e2(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)KD(t,r[n])}function Dl(t){var e=t.f;if((e&Il)===0){Yn(t,wn);var r=It,n=Vh;It=t,Vh=!0;try{(e&Nh)!==0?nW(t):V9(t),L9(t);var s=B9(t);t.teardown=typeof s=="function"?s:null,t.wv=x9;var i;$A&&ED&&(t.f&Ws)!==0&&t.deps}finally{Vh=n,It=r}}}function z(t){var e=t.f,r=(e&ws)!==0;if(Xt!==null&&!lo){var n=It!==null&&(It.f&Il)!==0;if(!n&&!ra?.includes(t)){var s=Xt.deps;if((Xt.f&qw)!==0)t.rv<Ip&&(t.rv=Ip,Qn===null&&s!==null&&s[Es]===t?Es++:Qn===null?Qn=[t]:(!pc||!Qn.includes(t))&&Qn.push(t));else{(Xt.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[Xt]:i.includes(Xt)||i.push(Xt)}}}else if(r&&t.deps===null&&t.effects===null){var o=t,a=o.parent;a!==null&&(a.f&Ds)===0&&(o.f^=Ds)}if(Ll){if(uc.has(t))return uc.get(t);if(r){o=t;var c=o.v;return((o.f&wn)===0&&o.reactions!==null||U9(o))&&(c=o3(o)),uc.set(o,c),c}}else if(r){if(o=t,Mh?.has(o))return Mh.get(o);Op(o)&&y9(o)}if((t.f&Ol)!==0)throw t.v;return t.v}function U9(t){if(t.v===Kr)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(uc.has(e)||(e.f&ws)!==0&&U9(e))return!0;return!1}function l3(t){return t&&z(t)}function Fe(t){var e=lo;try{return lo=!0,t()}finally{lo=e}}const qD=-7169;function Yn(t,e){t.f=t.f&qD|e}function $e(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(lc in t)u3(t);else if(!Array.isArray(t))for(let e in t){const r=t[e];typeof r=="object"&&r&&lc in r&&u3(r)}}}function u3(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{u3(t[n],e)}catch{}const r=Qw(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=HA(r);for(let s in n){const i=n[s].get;if(i)try{i.call(t)}catch{}}}}}function M9(t){It===null&&Xt===null&&gD(),Xt!==null&&(Xt.f&Ds)!==0&&It===null&&pD(),Ll&&fD()}function XD(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function uo(t,e,r,n=!0){var s=It;s!==null&&(s.f&wi)!==0&&(t|=wi);var i={ctx:Pr,deps:null,nodes_start:null,nodes_end:null,f:t|Ws,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Dl(i),i.f|=Kw}catch(c){throw $s(i),c}else e!==null&&Lh(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Tp)===0&&(o=o.first),o!==null&&(o.parent=s,s!==null&&XD(o,s),Xt!==null&&(Xt.f&ws)!==0&&(t&Nl)===0)){var a=Xt;(a.effects??=[]).push(o)}}return i}function h3(t){const e=uo(Dm,null,!1);return Yn(e,wn),e.teardown=t,e}function d3(t){M9();var e=It.f,r=!Xt&&(e&Xo)!==0&&(e&Kw)===0;if(r){var n=Pr;(n.e??=[]).push(t)}else return F9(t)}function F9(t){return uo(Yw|KA,t,!1)}function eW(t){return M9(),uo(Dm|KA,t,!0)}function tW(t){Fh.ensure();const e=uo(Nl|Tp,t,!0);return(r={})=>new Promise(n=>{r.outro?Wl(e,()=>{$s(e),n(void 0)}):($s(e),n(void 0))})}function f3(t){return uo(Yw,t,!1)}function gt(t,e){var r=Pr,n={effect:null,ran:!1,deps:t};r.l.$.push(n),n.effect=p3(()=>{t(),!n.ran&&(n.ran=!0,Fe(e))})}function mr(){var t=Pr;p3(()=>{for(var e of t.l.$){e.deps();var r=e.effect;(r.f&wn)!==0&&Yn(r,ea),Op(r)&&Dl(r),e.ran=!1}})}function rW(t){return uo(Xw|Tp,t,!0)}function p3(t,e=0){return uo(Dm|e,t,!0)}function Ye(t,e=[],r=[]){v9(e,r,n=>{uo(Dm,()=>t(...n.map(z)),!0)})}function Dh(t,e=0){var r=uo(Nh|e,t,!0);return r}function ho(t,e=!0){return uo(Xo|Tp,t,!0,e)}function L9(t){var e=t.teardown;if(e!==null){const r=Ll,n=Xt;P9(!0),js(null);try{e.call(null)}finally{P9(r),js(n)}}}function V9(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const s=r.ac;s!==null&&Xm(()=>{s.abort(e3)});var n=r.next;(r.f&Nl)!==0?r.parent=null:$s(r,e),r=n}}function nW(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Xo)===0&&$s(e),e=r}}function $s(t,e=!0){var r=!1;(e||(t.f&lD)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(D9(t.nodes_start,t.nodes_end),r=!0),V9(t,e&&!r),e2(t,0),Yn(t,Il);var n=t.transitions;if(n!==null)for(const i of n)i.stop();L9(t);var s=t.parent;s!==null&&s.first!==null&&W9(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function D9(t,e){for(;t!==null;){var r=t===e?null:co(t);t.remove(),t=r}}function W9(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Wl(t,e){var r=[];g3(t,r,!0),j9(r,()=>{$s(t),e&&e()})}function j9(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var s of t)s.out(n)}else e()}function g3(t,e,r){if((t.f&wi)===0){if(t.f^=wi,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var s=n.next,i=(n.f&jm)!==0||(n.f&Xo)!==0;g3(n,e,i?r:!1),n=s}}}function t2(t){G9(t,!0)}function G9(t,e){if((t.f&wi)!==0){t.f^=wi,(t.f&wn)===0&&(Yn(t,Ws),Lh(t));for(var r=t.first;r!==null;){var n=r.next,s=(r.f&jm)!==0||(r.f&Xo)!==0;G9(r,s?e:!1),r=n}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function sW(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const iW=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function oW(t){return iW.includes(t)}const aW={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function cW(t){return t=t.toLowerCase(),aW[t]??t}const lW=["touchstart","touchmove"];function uW(t){return lW.includes(t)}const z9=new Set,m3=new Set;function $9(t,e,r,n={}){function s(i){if(n.capture||Bp.call(e,i),!i.cancelBubble)return Xm(()=>r?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zm(()=>{e.addEventListener(t,s,n)}):e.addEventListener(t,s,n),s}function un(t,e,r,n,s){var i={capture:n,passive:s},o=$9(t,e,r,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&h3(()=>{e.removeEventListener(t,o,i)})}function hW(t){for(var e=0;e<t.length;e++)z9.add(t[e]);for(var r of m3)r(t)}let H9=null;function Bp(t){var e=this,r=e.ownerDocument,n=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;H9=t;var o=0,a=H9===t&&t.__root;if(a){var c=s.indexOf(a);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var l=s.indexOf(e);if(l===-1)return;c<=l&&(o=c)}if(i=s[o]||t.target,i!==e){Sp(t,"currentTarget",{configurable:!0,get(){return i||r}});var u=Xt,d=It;js(null),Gs(null);try{for(var h,p=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var m=i["__"+n];if(m!=null&&(!i.disabled||t.target===i))if(Vm(m)){var[y,...v]=m;y.apply(i,[t,...v])}else m.call(i,t)}catch(A){h?p.push(A):h=A}if(t.cancelBubble||g===e||g===null)break;i=g}if(h){for(let A of p)queueMicrotask(()=>{throw A});throw h}}finally{t.__root=e,delete t.currentTarget,js(u),Gs(d)}}}function Z9(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function fo(t,e){var r=It;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Le(t,e){var r=(e&xD)!==0,n=(e&ND)!==0,s,i=!t.startsWith("<!>");return()=>{if(Tt)return fo(tr,null),tr;s===void 0&&(s=Z9(i?t:"<!>"+t),r||(s=Ei(s)));var o=n||l9?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Ei(o),c=o.lastChild;fo(a,c)}else fo(o,o);return o}}function Ur(t=""){if(!Tt){var e=ki(t+"");return fo(e,e),e}var r=tr;return r.nodeType!==t3&&(r.before(r=ki()),us(r)),fo(r,r),r}function nt(){if(Tt)return fo(tr,null),tr;var t=document.createDocumentFragment(),e=document.createComment(""),r=ki();return t.append(e,r),fo(e,r),t}function Ee(t,e){if(Tt){It.nodes_end=tr,ta();return}t!==null&&t.before(e)}function pt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function J9(t,e){return Q9(t,e)}function dW(t,e){n3(),e.intro=e.intro??!1;const r=e.target,n=Tt,s=tr;try{for(var i=Ei(r);i&&(i.nodeType!==Ih||i.data!==i9);)i=co(i);if(!i)throw Bl;ks(!0),us(i),ta();const o=Q9(t,{...e,anchor:i});if(tr===null||tr.nodeType!==Ih||tr.data!==r3)throw Rp(),Bl;return ks(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
3
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Bl&&console.warn("Failed to hydrate: ",o),e.recover===!1&&yD(),n3(),d9(r),ks(!1),J9(t,e)}finally{ks(n),us(s)}}const Wh=new Map;function Q9(t,{target:e,anchor:r,props:n={},events:s,context:i,intro:o=!0}){n3();var a=new Set,c=d=>{for(var h=0;h<d.length;h++){var p=d[h];if(!a.has(p)){a.add(p);var g=uW(p);e.addEventListener(p,Bp,{passive:g});var m=Wh.get(p);m===void 0?(document.addEventListener(p,Bp,{passive:g}),Wh.set(p,1)):Wh.set(p,m+1)}}};c(Jw(z9)),m3.add(c);var l=void 0,u=tW(()=>{var d=r??e.appendChild(ki());return ho(()=>{if(i){ot({});var h=Pr;h.c=i}s&&(n.$$events=s),Tt&&fo(d,null),l=t(d,n)||{},Tt&&(It.nodes_end=tr),i&&at()}),()=>{for(var h of a){e.removeEventListener(h,Bp);var p=Wh.get(h);--p===0?(document.removeEventListener(h,Bp),Wh.delete(h)):Wh.set(h,p)}m3.delete(c),d!==r&&d.parentNode?.removeChild(d)}});return y3.set(l,u),l}let y3=new WeakMap;function fW(t,e){const r=y3.get(t);return r?(y3.delete(t),r(e)):Promise.resolve()}const v3=0,r2=1,b3=2;function hn(t,e,r,n,s){Tt&&ta();var i=t,o=Ul(),a=Pr,c=Kr,l,u,d,h=o?hc(void 0):De(void 0,!1,!1),p=o?hc(void 0):De(void 0,!1,!1),g=!1;function m(v,A){g=!0,A&&(Gs(y),js(y),Bh(a));try{v===r2&&n&&(u?t2(u):u=ho(()=>n(i,h))),v!==v3&&l&&Wl(l,()=>l=null),v!==r2&&u&&Wl(u,()=>u=null),v!==b3&&d&&Wl(d,()=>d=null)}finally{A&&(Bh(null),js(null),Gs(null),je())}}var y=Dh(()=>{if(c===(c=e()))return;let v=Tt&&JA(c)===(i.data===$m);if(v&&(i=Hm(),us(i),ks(!1),v=!0),JA(c)){var A=c;g=!1,A.then(E=>{A===c&&(fc(h,E),m(r2,!0))},E=>{if(A===c)throw fc(p,E),m(b3,!0),p.v}),Tt||Zm(()=>{g||m(v3,!0)})}else fc(h,c),m(r2,!1);return v&&ks(!0),()=>c=Kr});Tt&&(i=tr)}function Je(t,e,r=!1){Tt&&ta();var n=t,s=null,i=null,o=Kr,a=r?jm:0,c=!1;const l=(p,g=!0)=>{c=!0,h(g,p)};var u=null;function d(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var p=o?s:i,g=o?i:s;p&&t2(p),g&&Wl(g,()=>{o?i=null:s=null})}const h=(p,g)=>{if(o===(o=p))return;let m=!1;if(Tt){const C=o9(n)===$m;!!o===C&&(n=Hm(),us(n),ks(!1),m=!0)}var y=s3(),v=n;if(y&&(u=document.createDocumentFragment(),u.append(v=ki())),o?s??=g&&ho(()=>g(v)):i??=g&&ho(()=>g(v)),y){var A=wr,E=o?s:i,w=o?i:s;E&&A.skipped_effects.delete(E),w&&A.skipped_effects.add(w),A.add_callback(d)}else d();m&&ks(!0)};Dh(()=>{c=!1,e(l),c||h(null,null)},a),Tt&&(n=tr)}function Up(t,e){return e}function pW(t,e,r){for(var n=t.items,s=[],i=e.length,o=0;o<i;o++)g3(e[o].e,s,!0);var a=i>0&&s.length===0&&r!==null;if(a){var c=r.parentNode;d9(c),c.append(r),n.clear(),po(t,e[0].prev,e[i-1].next)}j9(s,()=>{for(var l=0;l<i;l++){var u=e[l];a||(n.delete(u.k),po(t,u.prev,u.next)),$s(u.e,!a)}})}function Mp(t,e,r,n,s,i=null){var o=t,a={flags:e,items:new Map,first:null},c=(e&n9)!==0;if(c){var l=t;o=Tt?us(Ei(l)):l.appendChild(ki())}Tt&&ta();var u=null,d=!1,h=new Map,p=bt(()=>{var v=r();return Vm(v)?v:v==null?[]:Jw(v)}),g,m;function y(){gW(m,g,a,h,o,s,e,n,r),i!==null&&(g.length===0?u?t2(u):u=ho(()=>i(o)):u!==null&&Wl(u,()=>{u=null}))}Dh(()=>{m??=It,g=z(p);var v=g.length;if(d&&v===0)return;d=v===0;let A=!1;if(Tt){var E=o9(o)===$m;E!==(v===0)&&(o=Hm(),us(o),ks(!1),A=!0)}if(Tt){for(var w=null,C,B=0;B<v;B++){if(tr.nodeType===Ih&&tr.data===r3){o=tr,A=!0,ks(!1);break}var F=g[B],I=n(F,B);C=w3(tr,a,w,null,F,I,B,s,e,r),a.items.set(I,C),w=C}v>0&&us(Hm())}if(Tt)v===0&&i&&(u=ho(()=>i(o)));else if(s3()){var L=new Set,D=wr;for(B=0;B<v;B+=1){F=g[B],I=n(F,B);var M=a.items.get(I)??h.get(I);M?(e&(Gm|zm))!==0&&Y9(M,F,B,e):(C=w3(null,a,null,null,F,I,B,s,e,r,!0),h.set(I,C)),L.add(I)}for(const[N,P]of a.items)L.has(N)||D.skipped_effects.add(P.e);D.add_callback(y)}else y();A&&ks(!0),z(p)}),Tt&&(o=tr)}function gW(t,e,r,n,s,i,o,a,c){var l=(o&_D)!==0,u=(o&(Gm|zm))!==0,d=e.length,h=r.items,p=r.first,g=p,m,y=null,v,A=[],E=[],w,C,B,F;if(l)for(F=0;F<d;F+=1)w=e[F],C=a(w,F),B=h.get(C),B!==void 0&&(B.a?.measure(),(v??=new Set).add(B));for(F=0;F<d;F+=1){if(w=e[F],C=a(w,F),B=h.get(C),B===void 0){var I=n.get(C);if(I!==void 0){n.delete(C),h.set(C,I);var L=y?y.next:g;po(r,y,I),po(r,I,L),k3(I,L,s),y=I}else{var D=g?g.e.nodes_start:s;y=w3(D,r,y,y===null?r.first:y.next,w,C,F,i,o,c)}h.set(C,y),A=[],E=[],g=y.next;continue}if(u&&Y9(B,w,F,o),(B.e.f&wi)!==0&&(t2(B.e),l&&(B.a?.unfix(),(v??=new Set).delete(B))),B!==g){if(m!==void 0&&m.has(B)){if(A.length<E.length){var M=E[0],N;y=M.prev;var P=A[0],U=A[A.length-1];for(N=0;N<A.length;N+=1)k3(A[N],M,s);for(N=0;N<E.length;N+=1)m.delete(E[N]);po(r,P.prev,U.next),po(r,y,P),po(r,U,M),g=M,y=U,F-=1,A=[],E=[]}else m.delete(B),k3(B,g,s),po(r,B.prev,B.next),po(r,B,y===null?r.first:y.next),po(r,y,B),y=B;continue}for(A=[],E=[];g!==null&&g.k!==C;)(g.e.f&wi)===0&&(m??=new Set).add(g),E.push(g),g=g.next;if(g===null)continue;B=g}A.push(B),y=B,g=B.next}if(g!==null||m!==void 0){for(var O=m===void 0?[]:Jw(m);g!==null;)(g.e.f&wi)===0&&O.push(g),g=g.next;var j=O.length;if(j>0){var Z=(o&n9)!==0&&d===0?s:null;if(l){for(F=0;F<j;F+=1)O[F].a?.measure();for(F=0;F<j;F+=1)O[F].a?.fix()}pW(r,O,Z)}}l&&Zm(()=>{if(v!==void 0)for(B of v)B.a?.apply()}),t.first=r.first&&r.first.e,t.last=y&&y.e;for(var K of n.values())$s(K.e);n.clear()}function Y9(t,e,r,n){(n&Gm)!==0&&fc(t.v,e),(n&zm)!==0?fc(t.i,r):t.i=r}function w3(t,e,r,n,s,i,o,a,c,l,u){var d=(c&Gm)!==0,h=(c&SD)===0,p=d?h?De(s,!1,!1):hc(s):s,g=(c&zm)===0?o:hc(o),m={i:g,v:p,k:i,a:null,e:null,prev:r,next:n};try{if(t===null){var y=document.createDocumentFragment();y.append(t=ki())}return m.e=ho(()=>a(t,p,g,l),Tt),m.e.prev=r&&r.e,m.e.next=n&&n.e,r===null?u||(e.first=m):(r.next=m,r.e.next=m.e),n!==null&&(n.prev=m,n.e.prev=m.e),m}finally{}}function k3(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,s=e?e.e.nodes_start:r,i=t.e.nodes_start;i!==null&&i!==n;){var o=co(i);s.before(i),i=o}}function po(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function E3(t,e,r=!1,n=!1,s=!1){var i=t,o="";Ye(()=>{var a=It;if(o===(o=e()??"")){Tt&&ta();return}if(a.nodes_start!==null&&(D9(a.nodes_start,a.nodes_end),a.nodes_start=a.nodes_end=null),o!==""){if(Tt){tr.data;for(var c=ta(),l=c;c!==null&&(c.nodeType!==Ih||c.data!=="");)l=c,c=co(c);if(c===null)throw Rp(),Bl;fo(tr,l),i=us(c);return}var u=o+"";r?u=`<svg>${u}</svg>`:n&&(u=`<math>${u}</math>`);var d=Z9(u);if((r||n)&&(d=Ei(d)),fo(Ei(d),d.lastChild),r||n)for(;Ei(d);)i.before(Ei(d));else i.before(d)}})}function Ai(t,e,r,n,s){Tt&&ta();var i=e.$$slots?.[r],o=!1;i===!0&&(i=e[r==="default"?"children":r],o=!0),i===void 0||i(t,o?()=>n:n)}function dn(t,e,r){Tt&&ta();var n=t,s,i,o=null,a=null;function c(){i&&(Wl(i),i=null),o&&(o.lastChild.remove(),n.before(o),o=null),i=a,a=null}Dh(()=>{if(s!==(s=e())){var l=s3();if(s){var u=n;l&&(o=document.createDocumentFragment(),o.append(u=ki()),i&&wr.skipped_effects.add(i)),a=ho(()=>r(u,s))}l?wr.add_callback(c):c()}},jm),Tt&&(n=tr)}function gc(t,e){f3(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,n.appendChild(s)}})}function mW(t,e){var r=void 0,n;Dh(()=>{r!==(r=e())&&(n&&($s(n),n=null),r&&(n=ho(()=>{f3(()=>r(t))})))})}function K9(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<s;e++)t[e]&&(r=K9(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function yW(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=K9(t))&&(n&&(n+=" "),n+=e);return n}function A3(t){return typeof t=="object"?yW(t):t??""}const q9=[...`
4
+ \r\f \v\uFEFF`];function vW(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var s in r)if(r[s])n=n?n+" "+s:s;else if(n.length)for(var i=s.length,o=0;(o=n.indexOf(s,o))>=0;){var a=o+i;(o===0||q9.includes(n[o-1]))&&(a===n.length||q9.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function X9(t,e=!1){var r=e?" !important;":";",n="";for(var s in t){var i=t[s];i!=null&&i!==""&&(n+=" "+s+": "+i+r)}return n}function _3(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function bW(t,e){if(e){var r="",n,s;if(Array.isArray(e)?(n=e[0],s=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,o=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(_3)),s&&c.push(...Object.keys(s).map(_3));var l=0,u=-1;const m=t.length;for(var d=0;d<m;d++){var h=t[d];if(a?h==="/"&&t[d-1]==="*"&&(a=!1):i?i===h&&(i=!1):h==="/"&&t[d+1]==="*"?a=!0:h==='"'||h==="'"?i=h:h==="("?o++:h===")"&&o--,!a&&i===!1&&o===0){if(h===":"&&u===-1)u=d;else if(h===";"||d===m-1){if(u!==-1){var p=_3(t.substring(l,u).trim());if(!c.includes(p)){h!==";"&&d++;var g=t.substring(l,d).trim();r+=" "+g+";"}}l=d+1,u=-1}}}}return n&&(r+=X9(n)),s&&(r+=X9(s,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function Lr(t,e,r,n,s,i){var o=t.__className;if(Tt||o!==r||o===void 0){var a=vW(r,n,i);(!Tt||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a)),t.__className=r}else if(i&&s!==i)for(var c in i){var l=!!i[c];(s==null||l!==!!s[c])&&t.classList.toggle(c,l)}return i}function S3(t,e={},r,n){for(var s in r){var i=r[s];e[s]!==i&&(r[s]==null?t.style.removeProperty(s):t.style.setProperty(s,i,n))}}function _i(t,e,r,n){var s=t.__style;if(Tt||s!==e){var i=bW(e,n);(!Tt||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}else n&&(Array.isArray(n)?(S3(t,r?.[0],n[0]),S3(t,r?.[1],n[1],"important")):S3(t,r,n));return n}function C3(t,e,r=!1){if(t.multiple){if(e==null)return;if(!Vm(e))return BD();for(var n of t.options)n.selected=e.includes(e_(n));return}for(n of t.options){var s=e_(n);if(UD(s,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function wW(t){var e=new MutationObserver(()=>{C3(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),h3(()=>{e.disconnect()})}function e_(t){return"__value"in t?t.__value:t.value}const jh=Symbol("class"),Fp=Symbol("style"),t_=Symbol("is custom element"),r_=Symbol("is html");function T3(t){if(Tt){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;kt(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var s=t.checked;kt(t,"checked",null),t.checked=s}}};t.__on_r=r,VD(r),T9()}}function R3(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function kt(t,e,r,n){var s=s_(t);Tt&&(s[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||s[e]!==(s[e]=r)&&(e==="loading"&&(t[uD]=r),r==null?t.removeAttribute(e):typeof r!="string"&&o_(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function kW(t,e,r,n,s=!1){var i=s_(t),o=i[t_],a=!i[r_];let c=Tt&&o;c&&ks(!1);var l=e||{},u=t.tagName==="OPTION";for(var d in e)d in r||(r[d]=null);r.class?r.class=A3(r.class):(n||r[jh])&&(r.class=null),r[Fp]&&(r.style??=null);var h=o_(t);for(const E in r){let w=r[E];if(u&&E==="value"&&w==null){t.value=t.__value="",l[E]=w;continue}if(E==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";Lr(t,p,w,n,e?.[jh],r[jh]),l[E]=w,l[jh]=r[jh];continue}if(E==="style"){_i(t,w,e?.[Fp],r[Fp]),l[E]=w,l[Fp]=r[Fp];continue}var g=l[E];if(!(w===g&&!(w===void 0&&t.hasAttribute(E)))){l[E]=w;var m=E[0]+E[1];if(m!=="$$")if(m==="on"){const C={},B="$$"+E;let F=E.slice(2);var y=oW(F);if(sW(F)&&(F=F.slice(0,-7),C.capture=!0),!y&&g){if(w!=null)continue;t.removeEventListener(F,l[B],C),l[B]=null}if(w!=null)if(y)t[`__${F}`]=w,hW([F]);else{let I=function(L){l[E].call(this,L)};l[B]=$9(F,t,I,C)}else y&&(t[`__${F}`]=void 0)}else if(E==="style")kt(t,E,w);else if(E==="autofocus")ZD(t,!!w);else if(!o&&(E==="__value"||E==="value"&&w!=null))t.value=t.__value=w;else if(E==="selected"&&u)R3(t,w);else{var v=E;a||(v=cW(v));var A=v==="defaultValue"||v==="defaultChecked";if(w==null&&!o&&!A)if(i[E]=null,v==="value"||v==="checked"){let C=t;const B=e===void 0;if(v==="value"){let F=C.defaultValue;C.removeAttribute(v),C.defaultValue=F,C.value=C.__value=B?F:null}else{let F=C.defaultChecked;C.removeAttribute(v),C.defaultChecked=F,C.checked=B?F:!1}}else t.removeAttribute(E);else A||h.includes(v)&&(o||typeof w!="string")?(t[v]=w,v in i&&(i[v]=Kr)):typeof w!="function"&&kt(t,v,w)}}}return c&&ks(!0),l}function n_(t,e,r=[],n=[],s,i=!1){v9(r,n,o=>{var a=void 0,c={},l=t.nodeName==="SELECT",u=!1;if(Dh(()=>{var h=e(...o.map(z)),p=kW(t,a,h,s,i);u&&l&&"value"in h&&C3(t,h.value);for(let m of Object.getOwnPropertySymbols(c))h[m]||$s(c[m]);for(let m of Object.getOwnPropertySymbols(h)){var g=h[m];m.description===OD&&(!a||g!==a[m])&&(c[m]&&$s(c[m]),c[m]=ho(()=>mW(t,()=>g))),p[m]=g}a=p}),l){var d=t;f3(()=>{C3(d,a.value,!0),wW(d)})}u=!0})}function s_(t){return t.__attributes??={[t_]:t.nodeName.includes("-"),[r_]:t.namespaceURI===ID}}var i_=new Map;function o_(t){var e=i_.get(t.nodeName);if(e)return e;i_.set(t.nodeName,e=[]);for(var r,n=t,s=Element.prototype;s!==n;){r=HA(n);for(var i in r)r[i].set&&e.push(i);n=Qw(n)}return e}function P3(t,e,r=e){var n=Ul(),s=new WeakSet;JD(t,"input",i=>{var o=i?t.defaultValue:t.value;if(o=x3(t)?N3(o):o,r(o),wr!==null&&s.add(wr),n&&o!==(o=e())){var a=t.selectionStart,c=t.selectionEnd;t.value=o??"",c!==null&&(t.selectionStart=a,t.selectionEnd=Math.min(c,t.value.length))}}),(Tt&&t.defaultValue!==t.value||Fe(e)==null&&t.value)&&(r(x3(t)?N3(t.value):t.value),wr!==null&&s.add(wr)),p3(()=>{var i=e();if(t===document.activeElement){var o=Qm??wr;if(s.has(o))return}x3(t)&&i===N3(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function x3(t){var e=t.type;return e==="number"||e==="range"}function N3(t){return t===""?null:+t}function I3(t){return function(...e){var r=e[0];return r.preventDefault(),t?.apply(this,e)}}function Et(t=!1){const e=Pr,r=e.l.u;if(!r)return;let n=()=>$e(e.s);if(t){let s=0,i={};const o=Jm(()=>{let a=!1;const c=e.s;for(const l in c)c[l]!==i[l]&&(i[l]=c[l],a=!0);return a&&s++,s});n=()=>z(o)}r.b.length&&eW(()=>{a_(e,n),Cp(r.b)}),d3(()=>{const s=Fe(()=>r.m.map(aD));return()=>{for(const i of s)typeof i=="function"&&i()}}),r.a.length&&d3(()=>{a_(e,n),Cp(r.a)})}function a_(t,e){if(t.l.s)for(const r of t.l.s)z(r);e()}function lt(t,e,r){t.$$events||={},t.$$events[e]||=[],t.$$events[e].push(r)}function ut(t){for(var e in t)e in this&&(this[e]=t[e])}let n2=!1,O3=Symbol();function Rt(t,e,r){const n=r[e]??={store:null,source:De(void 0),unsubscribe:cc};if(n.store!==t&&!(O3 in r))if(n.unsubscribe(),n.store=t??null,t==null)n.source.v=void 0,n.unsubscribe=cc;else{var s=!0;n.unsubscribe=B3(t,i=>{s?n.source.v=i:Re(n.source,i)}),s=!1}return t&&O3 in r?We(t):z(n.source)}function kn(){const t={};function e(){h3(()=>{for(var r in t)t[r].unsubscribe();Sp(t,O3,{enumerable:!1,value:!0})})}return[t,e]}function EW(t,e,r){return t.set(r),e}function AW(t){var e=n2;try{return n2=!1,[t(),n2]}finally{n2=e}}const _W={get(t,e){if(!t.exclude.includes(e))return z(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){if(!(e in t.special)){var n=It;try{Gs(t.parent_effect),t.special[e]=Ge({get[e](){return t.props[e]}},e,s9)}finally{Gs(n)}}return t.special[e](r),_9(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),_9(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Lp(t,e){return new Proxy({props:t,exclude:e,special:{},version:hc(0),parent_effect:It},_W)}function Ge(t,e,r,n){var s=!Oh||(r&TD)!==0,i=(r&RD)!==0,o=(r&PD)!==0,a=n,c=!0,l=()=>(c&&(c=!1,a=o?Fe(n):n),a),u;if(i){var d=lc in t||qA in t;u=xh(t,e)?.set??(d&&e in t?E=>t[e]=E:void 0)}var h,p=!1;i?[h,p]=AW(()=>t[e]):h=t[e],h===void 0&&n!==void 0&&(h=l(),u&&(s&&vD(),u(h)));var g;if(s?g=()=>{var E=t[e];return E===void 0?l():(c=!0,E)}:g=()=>{var E=t[e];return E!==void 0&&(a=void 0),E===void 0?a:E},s&&(r&s9)===0)return g;if(u){var m=t.$$legacy;return function(E,w){return arguments.length>0?((!s||!w||m||p)&&u(w?g():E),E):g()}}var y=!1,v=((r&CD)!==0?Jm:bt)(()=>(y=!1,g()));i&&z(v);var A=It;return function(E,w){if(arguments.length>0){const C=w?z(v):s&&i?Uh(E):E;return Re(v,C),y=!0,a!==void 0&&(a=C),E}return Ll&&y||(A.f&Il)!==0?v.v:z(v)}}function ht(t){return new SW(t)}class SW{#t;#e;constructor(e){var r=new Map,n=(i,o)=>{var a=De(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...e.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===qA?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return Re(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(e.hydrate?dW:J9)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&je(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Sp(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{fW(this.#e)}}$set(e){this.#e.$set(e)}$on(e,r){this.#t[e]=this.#t[e]||[];const n=(...s)=>r.call(this,...s);return this.#t[e].push(n),()=>{this.#t[e]=this.#t[e].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}function Gh(t){Pr===null&&r9(),Oh&&Pr.l!==null?CW(Pr).m.push(t):d3(()=>{const e=Fe(t);if(typeof e=="function")return e})}function zh(t){Pr===null&&r9(),Gh(()=>()=>Fe(t))}function CW(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function B3(t,e,r){if(t==null)return e(void 0),r&&r(void 0),cc;const n=Fe(()=>t.subscribe(e,r));return n.unsubscribe?()=>n.unsubscribe():n}const $h=[];function TW(t,e){return{subscribe:Un(t,e).subscribe}}function Un(t,e=cc){let r=null;const n=new Set;function s(a){if(e9(t,a)&&(t=a,r)){const c=!$h.length;for(const l of n)l[1](),$h.push(l,t);if(c){for(let l=0;l<$h.length;l+=2)$h[l][0]($h[l+1]);$h.length=0}}}function i(a){s(a(t))}function o(a,c=cc){const l=[a,c];return n.add(l),n.size===1&&(r=e(s,i)||cc),a(t),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:s,update:i,subscribe:o}}function U3(t,e,r){const n=!Array.isArray(t),s=n?[t]:t;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return TW(r,(o,a)=>{let c=!1;const l=[];let u=0,d=cc;const h=()=>{if(u)return;d();const g=e(n?l[0]:l,o,a);i?o(g):d=typeof g=="function"?g:cc},p=s.map((g,m)=>B3(g,y=>{l[m]=y,u&=~(1<<m),c&&h()},()=>{u|=1<<m}));return c=!0,h(),function(){Cp(p),d(),c=!1}})}function We(t){let e;return B3(t,r=>e=r)(),e}function RW(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c_={exports:{}},Wr=c_.exports={},go,mo;function M3(){throw new Error("setTimeout has not been defined")}function F3(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?go=setTimeout:go=M3}catch{go=M3}try{typeof clearTimeout=="function"?mo=clearTimeout:mo=F3}catch{mo=F3}})();function l_(t){if(go===setTimeout)return setTimeout(t,0);if((go===M3||!go)&&setTimeout)return go=setTimeout,setTimeout(t,0);try{return go(t,0)}catch{try{return go.call(null,t,0)}catch{return go.call(this,t,0)}}}function PW(t){if(mo===clearTimeout)return clearTimeout(t);if((mo===F3||!mo)&&clearTimeout)return mo=clearTimeout,clearTimeout(t);try{return mo(t)}catch{try{return mo.call(null,t)}catch{return mo.call(this,t)}}}var na=[],Hh=!1,jl,s2=-1;function xW(){!Hh||!jl||(Hh=!1,jl.length?na=jl.concat(na):s2=-1,na.length&&u_())}function u_(){if(!Hh){var t=l_(xW);Hh=!0;for(var e=na.length;e;){for(jl=na,na=[];++s2<e;)jl&&jl[s2].run();s2=-1,e=na.length}jl=null,Hh=!1,PW(t)}}Wr.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];na.push(new h_(t,e)),na.length===1&&!Hh&&l_(u_)};function h_(t,e){this.fun=t,this.array=e}h_.prototype.run=function(){this.fun.apply(null,this.array)},Wr.title="browser",Wr.browser=!0,Wr.env={},Wr.argv=[],Wr.version="",Wr.versions={};function sa(){}Wr.on=sa,Wr.addListener=sa,Wr.once=sa,Wr.off=sa,Wr.removeListener=sa,Wr.removeAllListeners=sa,Wr.emit=sa,Wr.prependListener=sa,Wr.prependOnceListener=sa,Wr.listeners=function(t){return[]},Wr.binding=function(t){throw new Error("process.binding is not supported")},Wr.cwd=function(){return"/"},Wr.chdir=function(t){throw new Error("process.chdir is not supported")},Wr.umask=function(){return 0};var NW=c_.exports;const L3=RW(NW);var IW=Object.defineProperty,d_=t=>{throw TypeError(t)},OW=(t,e,r)=>e in t?IW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,X=(t,e,r)=>OW(t,typeof e!="symbol"?e+"":e,r),V3=(t,e,r)=>e.has(t)||d_("Cannot "+r),S=(t,e,r)=>(V3(t,e,"read from private field"),r?r.call(t):e.get(t)),ne=(t,e,r)=>e.has(t)?d_("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),V=(t,e,r,n)=>(V3(t,e,"write to private field"),e.set(t,r),r),ve=(t,e,r)=>(V3(t,e,"access private method"),r),yo=(t,e,r,n)=>({set _(s){V(t,e,s)},get _(){return S(t,e,n)}});const i2="6.13.4";function BW(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;i<n.length;i++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof t===e)return}const s=new Error(`invalid value for type ${e}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${r}`,s.value=t,s}async function nn(t){const e=Object.keys(t);return(await Promise.all(e.map(r=>Promise.resolve(t[r])))).reduce((r,n,s)=>(r[e[s]]=n,r),{})}function rt(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&BW(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function Zh(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(Zh).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n<t.length;n++)r+=e[t[n]>>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return Zh(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=>`${Zh(r)}: ${Zh(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function jr(t,e){return t&&t.code===e}function Vp(t){return jr(t,"CALL_EXCEPTION")}function yr(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: ${Zh(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+Zh(a))}}i.push(`code=${e}`),i.push(`version=${i2}`),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 rt(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&rt(s,{shortMessage:n}),s}function Be(t,e,r,n){if(!t)throw yr(e,r,n)}function pe(t,e,r,n){Be(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function o2(t,e,r){r==null&&(r=""),r&&(r=": "+r),Be(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),Be(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const UW=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function a2(t){Be(UW.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function vo(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),Be(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function f_(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<n.length;i++)n[i]=parseInt(t.substring(s,s+2),16),s+=2;return n}pe(!1,"invalid BytesLike value",e||"value",t)}function qe(t,e){return f_(t,e,!1)}function sn(t,e){return f_(t,e,!0)}function lr(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||typeof e=="number"&&t.length!==2+2*e||e===!0&&t.length%2!==0)}function Jh(t){return lr(t,!0)||t instanceof Uint8Array}const p_="0123456789abcdef";function Ze(t){const e=qe(t);let r="0x";for(let n=0;n<e.length;n++){const s=e[n];r+=p_[(s&240)>>4]+p_[s&15]}return r}function $t(t){return"0x"+t.map(e=>Ze(e).substring(2)).join("")}function ia(t){return lr(t,!0)?(t.length-2)/2:qe(t).length}function ur(t,e,r){const n=qe(t);return r!=null&&r>n.length&&Be(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),Ze(n.slice(e??0,r??n.length))}function g_(t){let e=Ze(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function m_(t,e,r){const n=qe(t);Be(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),Ze(s)}function Hs(t,e){return m_(t,e,!0)}function Dp(t,e){return m_(t,e,!1)}const c2=BigInt(0),Si=BigInt(1),Qh=9007199254740991;function Yh(t,e){const r=Kh(t,"value"),n=BigInt(mt(e,"width"));if(Be(r>>n===c2,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-Si){const s=(Si<<n)-Si;return-((~r&s)+Si)}return r}function Wp(t,e){let r=ct(t,"value");const n=BigInt(mt(e,"width")),s=Si<<n-Si;if(r<c2){r=-r,Be(r<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});const i=(Si<<n)-Si;return(~r&i)+Si}else Be(r<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});return r}function oa(t,e){const r=Kh(t,"value"),n=BigInt(mt(e,"bits"));return r&(Si<<n)-Si}function ct(t,e){switch(typeof t){case"bigint":return t;case"number":return pe(Number.isInteger(t),"underflow",e||"value",t),pe(t>=-Qh&&t<=Qh,"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){pe(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}pe(!1,"invalid BigNumberish value",e||"value",t)}function Kh(t,e){const r=ct(t,e);return Be(r>=c2,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const y_="0123456789abcdef";function Gl(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=y_[r>>4],e+=y_[r&15];return BigInt(e)}return ct(t)}function mt(t,e){switch(typeof t){case"bigint":return pe(t>=-Qh&&t<=Qh,"overflow",e||"value",t),Number(t);case"number":return pe(Number.isInteger(t),"underflow",e||"value",t),pe(t>=-Qh&&t<=Qh,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return mt(BigInt(t),e)}catch(r){pe(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}pe(!1,"invalid numeric value",e||"value",t)}function jp(t){return mt(Gl(t))}function Zs(t,e){let r=Kh(t,"value").toString(16);if(e==null)r.length%2&&(r="0"+r);else{const n=mt(e,"width");for(Be(n*2>=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length<n*2;)r="0"+r}return"0x"+r}function on(t){const e=Kh(t,"value");if(e===c2)return new Uint8Array([]);let r=e.toString(16);r.length%2&&(r="0"+r);const n=new Uint8Array(r.length/2);for(let s=0;s<n.length;s++){const i=s*2;n[s]=parseInt(r.substring(i,i+2),16)}return n}function aa(t){let e=Ze(Jh(t)?t:on(t)).substring(2);for(;e.startsWith("0");)e=e.substring(1);return e===""&&(e="0"),"0x"+e}const l2="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let u2=null;function MW(t){if(u2==null){u2={};for(let r=0;r<l2.length;r++)u2[l2[r]]=BigInt(r)}const e=u2[t];return pe(e!=null,"invalid base58 value","letter",t),e}const FW=BigInt(0),D3=BigInt(58);function h2(t){const e=qe(t);let r=Gl(e),n="";for(;r;)n=l2[Number(r%D3)]+n,r/=D3;for(let s=0;s<e.length&&!e[s];s++)n=l2[0]+n;return n}function W3(t){let e=FW;for(let r=0;r<t.length;r++)e*=D3,e+=MW(t[r]);return e}function j3(t){t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return qe(e)}function G3(t){const e=qe(t);let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}var Gp;class d2{constructor(e,r,n){X(this,"filter"),X(this,"emitter"),ne(this,Gp),V(this,Gp,r),rt(this,{emitter:e,filter:n})}async removeListener(){S(this,Gp)!=null&&await this.emitter.off(this.filter,S(this,Gp))}}Gp=new WeakMap;function LW(t,e,r,n,s){pe(!1,`invalid codepoint at offset ${e}; ${t}`,"bytes",r)}function v_(t,e,r,n,s){if(t==="BAD_PREFIX"||t==="UNEXPECTED_CONTINUE"){let i=0;for(let o=e+1;o<r.length&&r[o]>>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function VW(t,e,r,n,s){return t==="OVERLONG"?(pe(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),v_(t,e,r))}const z3=Object.freeze({error:LW,ignore:v_,replace:VW});function b_(t,e){e==null&&(e=z3.error);const r=qe(t,"bytes"),n=[];let s=0;for(;s<r.length;){const i=r[s++];if(!(i>>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;l<o;l++){let u=r[s];if((u&192)!=128){s+=e("MISSING_CONTINUE",s,r,n),c=null;break}c=c<<6|u&63,s++}if(c!==null){if(c>1114111){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 qr(t,e){pe(typeof t=="string","invalid string value","str",t),e!=null&&(a2(e),t=t.normalize(e));let r=[];for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(s<128)r.push(s);else if(s<2048)r.push(s>>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);pe(n<t.length&&(i&64512)===56320,"invalid surrogate pair","str",t);const o=65536+((s&1023)<<10)+(i&1023);r.push(o>>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 DW(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function ca(t,e){return DW(b_(t,e))}function w_(t,e){return b_(qr(t,e))}function k_(t){async function e(r,n){Be(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();Be(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),Be(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=yr("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=yr("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(p){throw clearTimeout(a),i||p}clearTimeout(a);const u={};l.headers.forEach((p,g)=>{u[g.toLowerCase()]=p});const d=await l.arrayBuffer(),h=d==null?null:new Uint8Array(d);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:h}}return e}const WW=12,jW=250;let E_=k_();const GW=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),zW=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let $3=!1;async function A_(t,e){try{const r=t.match(GW);if(!r)throw new Error("invalid data");return new vc(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?j3(r[3]):ZW(r[3]))}catch{return new vc(599,"BAD REQUEST (invalid data: URI)",{},null,new Mn(t))}}function __(t){async function e(r,n){try{const s=r.match(zW);if(!s)throw new Error("invalid link");return new Mn(`${t}${s[2]}`)}catch{return new vc(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Mn(r))}}return e}const f2={data:A_,ipfs:__("https://gateway.ipfs.io/ipfs/")},S_=new WeakMap;var qh,zl;class H3{constructor(e){ne(this,qh),ne(this,zl),V(this,qh,[]),V(this,zl,!1),S_.set(e,()=>{if(!S(this,zl)){V(this,zl,!0);for(const r of S(this,qh))setTimeout(()=>{r()},0);V(this,qh,[])}})}addListener(e){Be(!S(this,zl),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),S(this,qh).push(e)}get cancelled(){return S(this,zl)}checkSignal(){Be(!this.cancelled,"cancelled","CANCELLED",{})}}qh=new WeakMap,zl=new WeakMap;function p2(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var zp,$p,bo,mc,Hp,Zp,En,Js,yc,Xh,ed,td,la,wo,$l,rd,Jp;const $W=class VA{constructor(e){ne(this,rd),ne(this,zp),ne(this,$p),ne(this,bo),ne(this,mc),ne(this,Hp),ne(this,Zp),ne(this,En),ne(this,Js),ne(this,yc),ne(this,Xh),ne(this,ed),ne(this,td),ne(this,la),ne(this,wo),ne(this,$l),V(this,Zp,String(e)),V(this,zp,!1),V(this,$p,!0),V(this,bo,{}),V(this,mc,""),V(this,Hp,3e5),V(this,wo,{slotInterval:jW,maxAttempts:WW}),V(this,$l,null)}get url(){return S(this,Zp)}set url(e){V(this,Zp,String(e))}get body(){return S(this,En)==null?null:new Uint8Array(S(this,En))}set body(e){if(e==null)V(this,En,void 0),V(this,Js,void 0);else if(typeof e=="string")V(this,En,qr(e)),V(this,Js,"text/plain");else if(e instanceof Uint8Array)V(this,En,e),V(this,Js,"application/octet-stream");else if(typeof e=="object")V(this,En,qr(JSON.stringify(e))),V(this,Js,"application/json");else throw new Error("invalid body")}hasBody(){return S(this,En)!=null}get method(){return S(this,mc)?S(this,mc):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),V(this,mc,String(e).toUpperCase())}get headers(){const e=Object.assign({},S(this,bo));return S(this,yc)&&(e.authorization=`Basic ${G3(qr(S(this,yc)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&S(this,Js)&&(e["content-type"]=S(this,Js)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){S(this,bo)[String(e).toLowerCase()]=String(r)}clearHeaders(){V(this,bo,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n<r.length){const s=r[n++];return{value:[s,e[s]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return S(this,yc)||null}setCredentials(e,r){pe(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),V(this,yc,`${e}:${r}`)}get allowGzip(){return S(this,$p)}set allowGzip(e){V(this,$p,!!e)}get allowInsecureAuthentication(){return!!S(this,zp)}set allowInsecureAuthentication(e){V(this,zp,!!e)}get timeout(){return S(this,Hp)}set timeout(e){pe(e>=0,"timeout must be non-zero","timeout",e),V(this,Hp,e)}get preflightFunc(){return S(this,Xh)||null}set preflightFunc(e){V(this,Xh,e)}get processFunc(){return S(this,ed)||null}set processFunc(e){V(this,ed,e)}get retryFunc(){return S(this,td)||null}set retryFunc(e){V(this,td,e)}get getUrlFunc(){return S(this,$l)||E_}set getUrlFunc(e){V(this,$l,e)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${S(this,En)?Ze(S(this,En)):"null"}>`}setThrottleParams(e){e.slotInterval!=null&&(S(this,wo).slotInterval=e.slotInterval),e.maxAttempts!=null&&(S(this,wo).maxAttempts=e.maxAttempts)}send(){return Be(S(this,la)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),V(this,la,new H3(this)),ve(this,rd,Jp).call(this,0,C_()+this.timeout,0,this,new vc(0,"",{},null,this))}cancel(){Be(S(this,la)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=S_.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();Be(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 VA(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,V(s,bo,Object.assign({},S(this,bo))),S(this,En)&&V(s,En,new Uint8Array(S(this,En))),V(s,Js,S(this,Js)),s}clone(){const e=new VA(this.url);return V(e,mc,S(this,mc)),S(this,En)&&V(e,En,S(this,En)),V(e,Js,S(this,Js)),V(e,bo,Object.assign({},S(this,bo))),V(e,yc,S(this,yc)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),V(e,Xh,S(this,Xh)),V(e,ed,S(this,ed)),V(e,td,S(this,td)),V(e,wo,Object.assign({},S(this,wo))),V(e,$l,S(this,$l)),e}static lockConfig(){$3=!0}static getGateway(e){return f2[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if($3)throw new Error("gateways locked");f2[e]=r}static registerGetUrl(e){if($3)throw new Error("gateways locked");E_=e}static createGetUrlFunc(e){return k_()}static createDataGateway(){return A_}static createIpfsGatewayFunc(e){return __(e)}};zp=new WeakMap,$p=new WeakMap,bo=new WeakMap,mc=new WeakMap,Hp=new WeakMap,Zp=new WeakMap,En=new WeakMap,Js=new WeakMap,yc=new WeakMap,Xh=new WeakMap,ed=new WeakMap,td=new WeakMap,la=new WeakMap,wo=new WeakMap,$l=new WeakMap,rd=new WeakSet,Jp=async function(t,e,r,n,s){var i,o,a;if(t>=S(this,wo).maxAttempts)return s.makeServerError("exceeded maximum retry limit");Be(C_()<=e,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await JW(r);let c=this.clone();const l=(c.url.split(":")[0]||"").toLowerCase();if(l in f2){const h=await f2[l](c.url,p2(S(n,la)));if(h instanceof vc){let p=h;if(this.processFunc){p2(S(n,la));try{p=await this.processFunc(c,p)}catch(g){(g.throttle==null||typeof g.stall!="number")&&p.makeServerError("error in post-processing function",g).assertOk()}}return p}c=h}this.preflightFunc&&(c=await this.preflightFunc(c));const u=await this.getUrlFunc(c,p2(S(n,la)));let d=new vc(u.statusCode,u.statusMessage,u.headers,u.body,n);if(d.statusCode===301||d.statusCode===302){try{const h=d.headers.location||"";return ve(i=c.redirect(h),rd,Jp).call(i,t+1,e,0,n,d)}catch{}return d}else if(d.statusCode===429&&(this.retryFunc==null||await this.retryFunc(c,d,t))){const h=d.headers["retry-after"];let p=S(this,wo).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(p=parseInt(h)),ve(o=c.clone(),rd,Jp).call(o,t+1,e,p,n,d)}if(this.processFunc){p2(S(n,la));try{d=await this.processFunc(c,d)}catch(h){(h.throttle==null||typeof h.stall!="number")&&d.makeServerError("error in post-processing function",h).assertOk();let p=S(this,wo).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return h.stall>=0&&(p=h.stall),ve(a=c.clone(),rd,Jp).call(a,t+1,e,p,n,d)}}return d};let Mn=$W;var g2,m2,y2,Qs,Qp,nd;const HW=class DV{constructor(e,r,n,s,i){ne(this,g2),ne(this,m2),ne(this,y2),ne(this,Qs),ne(this,Qp),ne(this,nd),V(this,g2,e),V(this,m2,r),V(this,y2,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),V(this,Qs,s==null?null:new Uint8Array(s)),V(this,Qp,i||null),V(this,nd,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${S(this,Qs)?Ze(S(this,Qs)):"null"}>`}get statusCode(){return S(this,g2)}get statusMessage(){return S(this,m2)}get headers(){return Object.assign({},S(this,y2))}get body(){return S(this,Qs)==null?null:new Uint8Array(S(this,Qs))}get bodyText(){try{return S(this,Qs)==null?"":ca(S(this,Qs))}catch{Be(!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{Be(!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<r.length){const s=r[n++];return{value:[s,e[s]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(e,r){let n;e?n=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,n=`CLIENT ESCALATED SERVER ERROR (${e})`);const s=new DV(599,n,this.headers,this.body,S(this,Qp)||void 0);return V(s,nd,{message:e,error:r}),s}throwThrottleError(e,r){r==null?r=-1:pe(Number.isInteger(r)&&r>=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw rt(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return S(this,Qs)!=null}get request(){return S(this,Qp)}ok(){return S(this,nd).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=S(this,nd);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{S(this,Qs)&&(s=ca(S(this,Qs)))}catch{}Be(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};g2=new WeakMap,m2=new WeakMap,y2=new WeakMap,Qs=new WeakMap,Qp=new WeakMap,nd=new WeakMap;let vc=HW;function C_(){return new Date().getTime()}function ZW(t){return qr(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function JW(t){return new Promise(e=>setTimeout(e,t))}const QW=BigInt(-1),Ci=BigInt(0),sd=BigInt(1),YW=BigInt(5),id={};let od="0000";for(;od.length<80;)od+=od;function Hl(t){let e=od;for(;e.length<t;)e+=e;return BigInt("1"+e.substring(0,t))}function Yp(t,e,r){const n=BigInt(e.width);if(e.signed){const s=sd<<n-sd;Be(r==null||t>=-s&&t<s,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t>Ci?t=Yh(oa(t,n),n):t=-Yh(oa(-t,n),n)}else{const s=sd<<n;Be(r==null||t>=0&&t<s,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=(t%s+s)%s&s-sd}return t}function Z3(t){typeof t=="number"&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if(typeof t=="string"){if(t!=="fixed")if(t==="ufixed")e=!1;else{const i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);pe(i,"invalid fixed format","format",t),e=i[1]!=="u",r=parseInt(i[2]),n=parseInt(i[3])}}else if(t){const i=t,o=(a,c,l)=>i[a]==null?l:(pe(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)}pe(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),pe(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 KW(t,e){let r="";t<Ci&&(r="-",t*=QW);let n=t.toString();if(e===0)return r+n;for(;n.length<=e;)n=od+n;const s=n.length-e;for(n=n.substring(0,s)+"."+n.substring(s);n[0]==="0"&&n[1]!==".";)n=n.substring(1);for(;n[n.length-1]==="0"&&n[n.length-2]!==".";)n=n.substring(0,n.length-1);return r+n}var ko,dr,hs,xr,Zl,ua,J3,Q3,Y3,K3;const T_=class bp{constructor(e,r,n){ne(this,xr),X(this,"format"),ne(this,ko),ne(this,dr),ne(this,hs),X(this,"_value"),vo(e,id,"FixedNumber"),V(this,dr,r),V(this,ko,n);const s=KW(r,n.decimals);rt(this,{format:n.name,_value:s}),V(this,hs,Hl(n.decimals))}get signed(){return S(this,ko).signed}get width(){return S(this,ko).width}get decimals(){return S(this,ko).decimals}get value(){return S(this,dr)}addUnsafe(e){return ve(this,xr,J3).call(this,e)}add(e){return ve(this,xr,J3).call(this,e,"add")}subUnsafe(e){return ve(this,xr,Q3).call(this,e)}sub(e){return ve(this,xr,Q3).call(this,e,"sub")}mulUnsafe(e){return ve(this,xr,Y3).call(this,e)}mul(e){return ve(this,xr,Y3).call(this,e,"mul")}mulSignal(e){ve(this,xr,Zl).call(this,e);const r=S(this,dr)*S(e,dr);return Be(r%S(this,hs)===Ci,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),ve(this,xr,ua).call(this,r/S(this,hs),"mulSignal")}divUnsafe(e){return ve(this,xr,K3).call(this,e)}div(e){return ve(this,xr,K3).call(this,e,"div")}divSignal(e){Be(S(e,dr)!==Ci,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),ve(this,xr,Zl).call(this,e);const r=S(this,dr)*S(this,hs);return Be(r%S(e,dr)===Ci,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),ve(this,xr,ua).call(this,r/S(e,dr),"divSignal")}cmp(e){let r=this.value,n=e.value;const s=this.decimals-e.decimals;return s>0?n*=Hl(s):s<0&&(r*=Hl(-s)),r<n?-1:r>n?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=S(this,dr);return S(this,dr)<Ci&&(e-=S(this,hs)-sd),e=S(this,dr)/S(this,hs)*S(this,hs),ve(this,xr,ua).call(this,e,"floor")}ceiling(){let e=S(this,dr);return S(this,dr)>Ci&&(e+=S(this,hs)-sd),e=S(this,dr)/S(this,hs)*S(this,hs),ve(this,xr,ua).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=YW*Hl(r-1);let s=this.value+n;const i=Hl(r);return s=s/i*i,Yp(s,S(this,ko),"round"),new bp(id,s,S(this,ko))}isZero(){return S(this,dr)===Ci}isNegative(){return S(this,dr)<Ci}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return bp.fromString(this.toString(),e)}static fromValue(e,r,n){const s=r==null?0:mt(r),i=Z3(n);let o=ct(e,"value");const a=s-i.decimals;if(a>0){const c=Hl(a);Be(o%c===Ci,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Hl(-a));return Yp(o,i,"fromValue"),new bp(id,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);pe(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=Z3(r);let i=n[2]||"0",o=n[3]||"";for(;o.length<s.decimals;)o+=od;Be(o.substring(s.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,s.decimals);const a=BigInt(n[1]+i+o);return Yp(a,s,"fromString"),new bp(id,a,s)}static fromBytes(e,r){let n=Gl(qe(e,"value"));const s=Z3(r);return s.signed&&(n=Yh(n,s.width)),Yp(n,s,"fromBytes"),new bp(id,n,s)}};ko=new WeakMap,dr=new WeakMap,hs=new WeakMap,xr=new WeakSet,Zl=function(t){pe(this.format===t.format,"incompatible format; use fixedNumber.toFormat","other",t)},ua=function(t,e){return t=Yp(t,S(this,ko),e),new T_(id,t,S(this,ko))},J3=function(t,e){return ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)+S(t,dr),e)},Q3=function(t,e){return ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)-S(t,dr),e)},Y3=function(t,e){return ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)*S(t,dr)/S(this,hs),e)},K3=function(t,e){return Be(S(t,dr)!==Ci,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),ve(this,xr,Zl).call(this,t),ve(this,xr,ua).call(this,S(this,dr)*S(this,hs)/S(t,dr),e)};let v2=T_;function qW(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function R_(t,e,r){let n=0;for(let s=0;s<r;s++)n=n*256+t[e+s];return n}function P_(t,e,r,n){const s=[];for(;r<e+1+n;){const i=x_(t,r);s.push(i.result),r+=i.consumed,Be(r<=e+1+n,"child data too short","BUFFER_OVERRUN",{buffer:t,length:n,offset:e})}return{consumed:1+n,result:s}}function x_(t,e){Be(t.length!==0,"data too short","BUFFER_OVERRUN",{buffer:t,length:0,offset:1});const r=n=>{Be(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=R_(t,e+1,n);return r(e+1+n+s),P_(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),P_(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=R_(t,e+1,n);r(e+1+n+s);const i=Ze(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=Ze(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:qW(t[e])}}function ad(t){const e=qe(t,"data"),r=x_(e,0);return pe(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function N_(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function I_(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(I_(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=N_(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(qe(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=N_(e.length);return r.unshift(183+r.length),r.concat(e)}const O_="0123456789abcdef";function ha(t){let e="0x";for(const r of I_(t))e+=O_[r>>4],e+=O_[r&15];return e}const B_=["wei","kwei","mwei","gwei","szabo","finney","ether"];function q3(t,e){let r=18;if(typeof e=="string"){const n=B_.indexOf(e);pe(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=mt(e,"unit"));return v2.fromValue(t,r,{decimals:r,width:512}).toString()}function X3(t,e){pe(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=B_.indexOf(e);pe(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=mt(e,"unit"));return v2.fromString(t,{decimals:r,width:512}).value}function U_(t){return q3(t,18)}function M_(t){return X3(t,18)}function e4(t){const e=qe(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=Ze(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Kn=32,t4=new Uint8Array(Kn),XW=["then"],b2={},F_=new WeakMap;function Jl(t){return F_.get(t)}function L_(t,e){F_.set(t,e)}function Kp(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function r4(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof cd?r4(Jl(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof cd&&(o=r4(Jl(o),o,r)),n[s]=o),n},{})}var qp;const ej=class Om extends Array{constructor(...e){const r=e[0];let n=e[1],s=(e[2]||[]).slice(),i=!0;r!==b2&&(n=e,s=[],i=!1),super(n.length),ne(this,qp),n.forEach((c,l)=>{this[l]=c});const o=s.reduce((c,l)=>(typeof l=="string"&&c.set(l,(c.get(l)||0)+1),c),new Map);if(L_(this,Object.freeze(n.map((c,l)=>{const u=s[l];return u!=null&&o.get(u)===1?u:null}))),V(this,qp,[]),S(this,qp)==null&&S(this,qp),!i)return;Object.freeze(this);const a=new Proxy(this,{get:(c,l,u)=>{if(typeof l=="string"){if(l.match(/^[0-9]+$/)){const h=mt(l,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const p=c[h];return p instanceof Error&&Kp(`index ${h}`,p),p}if(XW.indexOf(l)>=0)return Reflect.get(c,l,u);const d=c[l];if(d instanceof Function)return function(...h){return d.apply(this===u?c:this,h)};if(!(l in c))return c.getValue.apply(this===u?c:this,[l])}return Reflect.get(c,l,u)}});return L_(a,Jl(this)),a}toArray(e){const r=[];return this.forEach((n,s)=>{n instanceof Error&&Kp(`index ${s}`,n),e&&n instanceof Om&&(n=n.toArray(e)),r.push(n)}),r}toObject(e){const r=Jl(this);return r.reduce((n,s,i)=>(Be(s!=null,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),r4(r,this,e)),{})}slice(e,r){e==null&&(e=0),e<0&&(e+=this.length,e<0&&(e=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const n=Jl(this),s=[],i=[];for(let o=e;o<r;o++)s.push(this[o]),i.push(n[o]);return new Om(b2,s,i)}filter(e,r){const n=Jl(this),s=[],i=[];for(let o=0;o<this.length;o++){const a=this[o];a instanceof Error&&Kp(`index ${o}`,a),e.call(r,a,o,this)&&(s.push(a),i.push(n[o]))}return new Om(b2,s,i)}map(e,r){const n=[];for(let s=0;s<this.length;s++){const i=this[s];i instanceof Error&&Kp(`index ${s}`,i),n.push(e.call(r,i,s,this))}return n}getValue(e){const r=Jl(this).indexOf(e);if(r===-1)return;const n=this[r];return n instanceof Error&&Kp(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,r){return new Om(b2,e,r)}};qp=new WeakMap;let cd=ej;function V_(t){const e=[],r=function(n,s){if(Array.isArray(s))for(let i in s){const o=n.slice();o.push(i);try{r(o,s[i])}catch(a){e.push({path:o,error:a})}}};return r([],t),e}function D_(t){let e=on(t);return Be(e.length<=Kn,"value out-of-bounds","BUFFER_OVERRUN",{buffer:e,length:Kn,offset:e.length}),e.length!==Kn&&(e=sn($t([t4.slice(e.length%Kn),e]))),e}class da{constructor(e,r,n,s){X(this,"name"),X(this,"type"),X(this,"localName"),X(this,"dynamic"),rt(this,{name:e,type:r,localName:n,dynamic:s},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,r){pe(!1,e,this.localName,r)}}var bc,wc,Xp,w2;class n4{constructor(){ne(this,Xp),ne(this,bc),ne(this,wc),V(this,bc,[]),V(this,wc,0)}get data(){return $t(S(this,bc))}get length(){return S(this,wc)}appendWriter(e){return ve(this,Xp,w2).call(this,sn(e.data))}writeBytes(e){let r=sn(e);const n=r.length%Kn;return n&&(r=sn($t([r,t4.slice(n)]))),ve(this,Xp,w2).call(this,r)}writeValue(e){return ve(this,Xp,w2).call(this,D_(e))}writeUpdatableValue(){const e=S(this,bc).length;return S(this,bc).push(t4),V(this,wc,S(this,wc)+Kn),r=>{S(this,bc)[e]=D_(r)}}}bc=new WeakMap,wc=new WeakMap,Xp=new WeakSet,w2=function(t){return S(this,bc).push(t),V(this,wc,S(this,wc)+t.length),t.length};var As,_s,Ql,ld,Yl,e0,s4,W_;const tj=class WV{constructor(e,r,n){ne(this,e0),X(this,"allowLoose"),ne(this,As),ne(this,_s),ne(this,Ql),ne(this,ld),ne(this,Yl),rt(this,{allowLoose:!!r}),V(this,As,sn(e)),V(this,Ql,0),V(this,ld,null),V(this,Yl,n??1024),V(this,_s,0)}get data(){return Ze(S(this,As))}get dataLength(){return S(this,As).length}get consumed(){return S(this,_s)}get bytes(){return new Uint8Array(S(this,As))}subReader(e){const r=new WV(S(this,As).slice(S(this,_s)+e),this.allowLoose,S(this,Yl));return V(r,ld,this),r}readBytes(e,r){let n=ve(this,e0,W_).call(this,0,e,!!r);return ve(this,e0,s4).call(this,e),V(this,_s,S(this,_s)+n.length),n.slice(0,e)}readValue(){return Gl(this.readBytes(Kn))}readIndex(){return jp(this.readBytes(Kn))}};As=new WeakMap,_s=new WeakMap,Ql=new WeakMap,ld=new WeakMap,Yl=new WeakMap,e0=new WeakSet,s4=function(t){var e;if(S(this,ld))return ve(e=S(this,ld),e0,s4).call(e,t);V(this,Ql,S(this,Ql)+t),Be(S(this,Yl)<1||S(this,Ql)<=S(this,Yl)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${S(this,Yl)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:sn(S(this,As)),offset:S(this,_s),length:t,info:{bytesRead:S(this,Ql),dataLength:this.dataLength}})},W_=function(t,e,r){let n=Math.ceil(e/Kn)*Kn;return S(this,_s)+n>S(this,As).length&&(this.allowLoose&&r&&S(this,_s)+e<=S(this,As).length?n=e:Be(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:sn(S(this,As)),length:S(this,As).length,offset:S(this,_s)+n})),S(this,As).slice(S(this,_s),S(this,_s)+n)};let rj=tj;function Ss(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function i4(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 j_(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ss(t.outputLen),Ss(t.blockLen)}function ud(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 G_(t,e){i4(t);const r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const o4=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const z_=t=>t instanceof Uint8Array,k2=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),t0=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Eo=(t,e)=>t<<32-e|t>>>e;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");const nj=async()=>{};async function a4(t,e,r){let n=Date.now();for(let s=0;s<t;s++){r(s);const i=Date.now()-n;i>=0&&i<e||(await nj(),n+=i)}}function sj(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Kl(t){if(typeof t=="string"&&(t=sj(t)),!z_(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function ij(...t){const e=new Uint8Array(t.reduce((n,s)=>n+s.length,0));let r=0;return t.forEach(n=>{if(!z_(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}class c4{clone(){return this._cloneInto()}}const oj={}.toString;function $_(t,e){if(e!==void 0&&oj.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function kc(t){const e=n=>t().update(Kl(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function aj(t){const e=(n,s)=>t(s).update(Kl(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function H_(t=32){if(o4&&typeof o4.getRandomValues=="function")return o4.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class l4 extends c4{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,j_(e);const n=Kl(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;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),i.fill(0)}update(e){return ud(this),this.iHash.update(e),this}digestInto(e){ud(this),i4(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:s,destroyed:i,blockLen:o,outputLen:a}=this;return e=e,e.finished=s,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const r0=(t,e,r)=>new l4(t,e).update(r).digest();r0.create=(t,e)=>new l4(t,e);const cj=Object.freeze(Object.defineProperty({__proto__:null,HMAC:l4,hmac:r0},Symbol.toStringTag,{value:"Module"}));function Z_(t,e,r,n){j_(t);const s=$_({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(Ss(i),Ss(o),Ss(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Kl(e),l=Kl(r),u=new Uint8Array(o),d=r0.create(t,c),h=d._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:d,PRFSalt:h}}function J_(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function E2(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=Z_(t,e,r,n);let l;const u=new Uint8Array(4),d=t0(u),h=new Uint8Array(a.outputLen);for(let p=1,g=0;g<i;p++,g+=a.outputLen){const m=o.subarray(g,g+a.outputLen);d.setInt32(0,p,!1),(l=c._cloneInto(l)).update(u).digestInto(h),m.set(h.subarray(0,m.length));for(let y=1;y<s;y++){a._cloneInto(l).update(h).digestInto(h);for(let v=0;v<m.length;v++)m[v]^=h[v]}}return J_(a,c,o,l,h)}async function lj(t,e,r,n){const{c:s,dkLen:i,asyncTick:o,DK:a,PRF:c,PRFSalt:l}=Z_(t,e,r,n);let u;const d=new Uint8Array(4),h=t0(d),p=new Uint8Array(c.outputLen);for(let g=1,m=0;m<i;g++,m+=c.outputLen){const y=a.subarray(m,m+c.outputLen);h.setInt32(0,g,!1),(u=l._cloneInto(u)).update(d).digestInto(p),y.set(p.subarray(0,y.length)),await a4(s-1,o,()=>{c._cloneInto(u).update(p).digestInto(p);for(let v=0;v<y.length;v++)y[v]^=p[v]})}return J_(c,l,a,u,p)}const uj=Object.freeze(Object.defineProperty({__proto__:null,pbkdf2:E2,pbkdf2Async:lj},Symbol.toStringTag,{value:"Module"}));function hj(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)}class u4 extends c4{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=t0(this.buffer)}update(e){ud(this);const{view:r,buffer:n,blockLen:s}=this;e=Kl(e);const i=e.length;for(let o=0;o<i;){const a=Math.min(s-this.pos,i-o);if(a===s){const c=t0(e);for(;s<=i-o;o+=s)this.process(c,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){ud(this),G_(e,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:i}=this;let{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>s-o&&(this.process(n,0),o=0);for(let d=o;d<s;d++)r[d]=0;hj(n,s-8,BigInt(this.length*8),i),this.process(n,0);const a=t0(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)a.setUint32(4*d,u[d],i)}digest(){const{buffer:e,outputLen:r}=this;this.digestInto(e);const n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:i,destroyed:o,pos:a}=this;return e.length=s,e.pos=a,e.finished=i,e.destroyed=o,s%r&&e.buffer.set(n),e}}const dj=(t,e,r)=>t&e^~t&r,fj=(t,e,r)=>t&e^t&r^e&r,pj=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]),Ec=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ac=new Uint32Array(64);class Q_ extends u4{constructor(){super(64,32,8,!1),this.A=Ec[0]|0,this.B=Ec[1]|0,this.C=Ec[2]|0,this.D=Ec[3]|0,this.E=Ec[4]|0,this.F=Ec[5]|0,this.G=Ec[6]|0,this.H=Ec[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 d=0;d<16;d++,r+=4)Ac[d]=e.getUint32(r,!1);for(let d=16;d<64;d++){const h=Ac[d-15],p=Ac[d-2],g=Eo(h,7)^Eo(h,18)^h>>>3,m=Eo(p,17)^Eo(p,19)^p>>>10;Ac[d]=m+Ac[d-7]+g+Ac[d-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let d=0;d<64;d++){const h=Eo(a,6)^Eo(a,11)^Eo(a,25),p=u+h+dj(a,c,l)+pj[d]+Ac[d]|0,g=(Eo(n,2)^Eo(n,13)^Eo(n,22))+fj(n,s,i)|0;u=l,l=c,c=a,a=o+p|0,o=i,i=s,s=n,n=p+g|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(){Ac.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class gj extends Q_{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const Ao=kc(()=>new Q_),mj=kc(()=>new gj),yj=Object.freeze(Object.defineProperty({__proto__:null,sha224:mj,sha256:Ao},Symbol.toStringTag,{value:"Module"})),A2=BigInt(2**32-1),h4=BigInt(32);function Y_(t,e=!1){return e?{h:Number(t&A2),l:Number(t>>h4&A2)}:{h:Number(t>>h4&A2)|0,l:Number(t&A2)|0}}function K_(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;s<t.length;s++){const{h:i,l:o}=Y_(t[s],e);[r[s],n[s]]=[i,o]}return[r,n]}const vj=(t,e)=>BigInt(t>>>0)<<h4|BigInt(e>>>0),bj=(t,e,r)=>t>>>r,wj=(t,e,r)=>t<<32-r|e>>>r,kj=(t,e,r)=>t>>>r|e<<32-r,Ej=(t,e,r)=>t<<32-r|e>>>r,Aj=(t,e,r)=>t<<64-r|e>>>r-32,_j=(t,e,r)=>t>>>r-32|e<<64-r,Sj=(t,e)=>e,Cj=(t,e)=>t,q_=(t,e,r)=>t<<r|e>>>32-r,X_=(t,e,r)=>e<<r|t>>>32-r,e7=(t,e,r)=>e<<r-32|t>>>64-r,t7=(t,e,r)=>t<<r-32|e>>>64-r;function Tj(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Rj=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Pj=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,xj=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Nj=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Ij=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Oj=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Nt={fromBig:Y_,split:K_,toBig:vj,shrSH:bj,shrSL:wj,rotrSH:kj,rotrSL:Ej,rotrBH:Aj,rotrBL:_j,rotr32H:Sj,rotr32L:Cj,rotlSH:q_,rotlSL:X_,rotlBH:e7,rotlBL:t7,add:Tj,add3L:Rj,add3H:Pj,add4L:xj,add4H:Nj,add5H:Oj,add5L:Ij},[Bj,Uj]=Nt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),_c=new Uint32Array(80),Sc=new Uint32Array(80);class n0 extends u4{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:d,Fl:h,Gh:p,Gl:g,Hh:m,Hl:y}=this;return[e,r,n,s,i,o,a,c,l,u,d,h,p,g,m,y]}set(e,r,n,s,i,o,a,c,l,u,d,h,p,g,m,y){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=d|0,this.Fl=h|0,this.Gh=p|0,this.Gl=g|0,this.Hh=m|0,this.Hl=y|0}process(e,r){for(let E=0;E<16;E++,r+=4)_c[E]=e.getUint32(r),Sc[E]=e.getUint32(r+=4);for(let E=16;E<80;E++){const w=_c[E-15]|0,C=Sc[E-15]|0,B=Nt.rotrSH(w,C,1)^Nt.rotrSH(w,C,8)^Nt.shrSH(w,C,7),F=Nt.rotrSL(w,C,1)^Nt.rotrSL(w,C,8)^Nt.shrSL(w,C,7),I=_c[E-2]|0,L=Sc[E-2]|0,D=Nt.rotrSH(I,L,19)^Nt.rotrBH(I,L,61)^Nt.shrSH(I,L,6),M=Nt.rotrSL(I,L,19)^Nt.rotrBL(I,L,61)^Nt.shrSL(I,L,6),N=Nt.add4L(F,M,Sc[E-7],Sc[E-16]),P=Nt.add4H(N,B,D,_c[E-7],_c[E-16]);_c[E]=P|0,Sc[E]=N|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:d,El:h,Fh:p,Fl:g,Gh:m,Gl:y,Hh:v,Hl:A}=this;for(let E=0;E<80;E++){const w=Nt.rotrSH(d,h,14)^Nt.rotrSH(d,h,18)^Nt.rotrBH(d,h,41),C=Nt.rotrSL(d,h,14)^Nt.rotrSL(d,h,18)^Nt.rotrBL(d,h,41),B=d&p^~d&m,F=h&g^~h&y,I=Nt.add5L(A,C,F,Uj[E],Sc[E]),L=Nt.add5H(I,v,w,B,Bj[E],_c[E]),D=I|0,M=Nt.rotrSH(n,s,28)^Nt.rotrBH(n,s,34)^Nt.rotrBH(n,s,39),N=Nt.rotrSL(n,s,28)^Nt.rotrBL(n,s,34)^Nt.rotrBL(n,s,39),P=n&i^n&a^i&a,U=s&o^s&c^o&c;v=m|0,A=y|0,m=p|0,y=g|0,p=d|0,g=h|0,{h:d,l:h}=Nt.add(l|0,u|0,L|0,D|0),l=a|0,u=c|0,a=i|0,c=o|0,i=n|0,o=s|0;const O=Nt.add3L(D,N,U);n=Nt.add3H(O,L,M,P),s=O|0}({h:n,l:s}=Nt.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Nt.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Nt.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Nt.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:d,l:h}=Nt.add(this.Eh|0,this.El|0,d|0,h|0),{h:p,l:g}=Nt.add(this.Fh|0,this.Fl|0,p|0,g|0),{h:m,l:y}=Nt.add(this.Gh|0,this.Gl|0,m|0,y|0),{h:v,l:A}=Nt.add(this.Hh|0,this.Hl|0,v|0,A|0),this.set(n,s,i,o,a,c,l,u,d,h,p,g,m,y,v,A)}roundClean(){_c.fill(0),Sc.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Mj extends n0{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class Fj extends n0{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class Lj extends n0{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const _2=kc(()=>new n0),Vj=kc(()=>new Mj),Dj=kc(()=>new Fj),Wj=kc(()=>new Lj),jj=Object.freeze(Object.defineProperty({__proto__:null,SHA512:n0,sha384:Wj,sha512:_2,sha512_224:Vj,sha512_256:Dj},Symbol.toStringTag,{value:"Module"}));function Gj(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}const r7=Gj(),n7=r7.crypto||r7.msCrypto;function s7(t){switch(t){case"sha256":return Ao.create();case"sha512":return _2.create()}pe(!1,"invalid hashing algorithm name","algorithm",t)}function zj(t,e){const r={sha256:Ao,sha512:_2}[t];return pe(r!=null,"invalid hmac algorithm","algorithm",t),r0.create(r,e)}function $j(t,e,r,n,s){const i={sha256:Ao,sha512:_2}[s];return pe(i!=null,"invalid pbkdf2 algorithm","algorithm",s),E2(i,t,e,{c:r,dkLen:n})}function Hj(t){Be(n7!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),pe(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return n7.getRandomValues(e),e}let i7=!1;const o7=function(t,e,r){return zj(t,e).update(r).digest()};let a7=o7;function fa(t,e,r){const n=qe(e,"key"),s=qe(r,"data");return Ze(a7(t,n,s))}fa._=o7,fa.lock=function(){i7=!0},fa.register=function(t){if(i7)throw new Error("computeHmac is locked");a7=t},Object.freeze(fa);const[c7,l7,u7]=[[],[],[]],Zj=BigInt(0),s0=BigInt(1),Jj=BigInt(2),Qj=BigInt(7),Yj=BigInt(256),Kj=BigInt(113);for(let t=0,e=s0,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],c7.push(2*(5*n+r)),l7.push((t+1)*(t+2)/2%64);let s=Zj;for(let i=0;i<7;i++)e=(e<<s0^(e>>Qj)*Kj)%Yj,e&Jj&&(s^=s0<<(s0<<BigInt(i))-s0);u7.push(s)}const[qj,Xj]=K_(u7,!0),h7=(t,e,r)=>r>32?e7(t,e,r):q_(t,e,r),d7=(t,e,r)=>r>32?t7(t,e,r):X_(t,e,r);function f7(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],d=h7(l,u,1)^r[a],h=d7(l,u,1)^r[a+1];for(let p=0;p<50;p+=10)t[o+p]^=d,t[o+p+1]^=h}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=l7[o],c=h7(s,i,a),l=d7(s,i,a),u=c7[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]^=qj[n],t[1]^=Xj[n]}r.fill(0)}let d4=class jV extends c4{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,Ss(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=k2(this.state)}keccak(){f7(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){ud(this);const{blockLen:r,state:n}=this;e=Kl(e);const s=e.length;for(let i=0;i<s;){const o=Math.min(r-this.pos,s-i);for(let a=0;a<o;a++)n[this.pos++]^=e[i++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:r,pos:n,blockLen:s}=this;e[n]^=r,r&128&&n===s-1&&this.keccak(),e[s-1]^=128,this.keccak()}writeInto(e){ud(this,!1),i4(e),this.finish();const r=this.state,{blockLen:n}=this;for(let s=0,i=e.length;s<i;){this.posOut>=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 Ss(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(G_(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 jV(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 Cc=(t,e,r)=>kc(()=>new d4(e,t,r)),eG=Cc(6,144,224/8),tG=Cc(6,136,256/8),rG=Cc(6,104,384/8),nG=Cc(6,72,512/8),sG=Cc(1,144,224/8),p7=Cc(1,136,256/8),iG=Cc(1,104,384/8),oG=Cc(1,72,512/8),g7=(t,e,r)=>aj((n={})=>new d4(e,t,n.dkLen===void 0?r:n.dkLen,!0)),aG=g7(31,168,128/8),cG=g7(31,136,256/8),lG=Object.freeze(Object.defineProperty({__proto__:null,Keccak:d4,keccakP:f7,keccak_224:sG,keccak_256:p7,keccak_384:iG,keccak_512:oG,sha3_224:eG,sha3_256:tG,sha3_384:rG,sha3_512:nG,shake128:aG,shake256:cG},Symbol.toStringTag,{value:"Module"}));let m7=!1;const y7=function(t){return p7(t)};let v7=y7;function hr(t){const e=qe(t,"data");return Ze(v7(e))}hr._=y7,hr.lock=function(){m7=!0},hr.register=function(t){if(m7)throw new TypeError("keccak256 is locked");v7=t},Object.freeze(hr);const uG=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),b7=Uint8Array.from({length:16},(t,e)=>e),hG=b7.map(t=>(9*t+5)%16);let f4=[b7],p4=[hG];for(let t=0;t<4;t++)for(let e of[f4,p4])e.push(e[t].map(r=>uG[r]));const w7=[[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)),dG=f4.map((t,e)=>t.map(r=>w7[e][r])),fG=p4.map((t,e)=>t.map(r=>w7[e][r])),pG=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),gG=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),S2=(t,e)=>t<<e|t>>>32-e;function k7(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 C2=new Uint32Array(16);class E7 extends u4{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 p=0;p<16;p++,r+=4)C2[p]=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,d=this.h4|0,h=d;for(let p=0;p<5;p++){const g=4-p,m=pG[p],y=gG[p],v=f4[p],A=p4[p],E=dG[p],w=fG[p];for(let C=0;C<16;C++){const B=S2(n+k7(p,i,a,l)+C2[v[C]]+m,E[C])+d|0;n=d,d=l,l=S2(a,10)|0,a=i,i=B}for(let C=0;C<16;C++){const B=S2(s+k7(g,o,c,u)+C2[A[C]]+y,w[C])+h|0;s=h,h=u,u=S2(c,10)|0,c=o,o=B}}this.set(this.h1+a+u|0,this.h2+l+h|0,this.h3+d+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){C2.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const A7=kc(()=>new E7),mG=Object.freeze(Object.defineProperty({__proto__:null,RIPEMD160:E7,ripemd160:A7},Symbol.toStringTag,{value:"Module"}));let _7=!1;const S7=function(t){return A7(t)};let C7=S7;function pa(t){const e=qe(t,"data");return Ze(C7(e))}pa._=S7,pa.lock=function(){_7=!0},pa.register=function(t){if(_7)throw new TypeError("ripemd160 is locked");C7=t},Object.freeze(pa);let T7=!1;const R7=function(t,e,r,n,s){return $j(t,e,r,n,s)};let P7=R7;function Ti(t,e,r,n,s){const i=qe(t,"password"),o=qe(e,"salt");return Ze(P7(i,o,r,n,s))}Ti._=R7,Ti.lock=function(){T7=!0},Ti.register=function(t){if(T7)throw new Error("pbkdf2 is locked");P7=t},Object.freeze(Ti);let x7=!1;const N7=function(t){return new Uint8Array(Hj(t))};let I7=N7;function Cs(t){return I7(t)}Cs._=N7,Cs.lock=function(){x7=!0},Cs.register=function(t){if(x7)throw new Error("randomBytes is locked");I7=t},Object.freeze(Cs);const rr=(t,e)=>t<<e|t>>>32-e;function O7(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++],d=t[e++]^r[n++],h=t[e++]^r[n++],p=t[e++]^r[n++],g=t[e++]^r[n++],m=t[e++]^r[n++],y=t[e++]^r[n++],v=t[e++]^r[n++],A=t[e++]^r[n++],E=t[e++]^r[n++],w=t[e++]^r[n++],C=t[e++]^r[n++],B=o,F=a,I=c,L=l,D=u,M=d,N=h,P=p,U=g,O=m,j=y,Z=v,K=A,$=E,Y=w,q=C;for(let te=0;te<8;te+=2)D^=rr(B+K|0,7),U^=rr(D+B|0,9),K^=rr(U+D|0,13),B^=rr(K+U|0,18),O^=rr(M+F|0,7),$^=rr(O+M|0,9),F^=rr($+O|0,13),M^=rr(F+$|0,18),Y^=rr(j+N|0,7),I^=rr(Y+j|0,9),N^=rr(I+Y|0,13),j^=rr(N+I|0,18),L^=rr(q+Z|0,7),P^=rr(L+q|0,9),Z^=rr(P+L|0,13),q^=rr(Z+P|0,18),F^=rr(B+L|0,7),I^=rr(F+B|0,9),L^=rr(I+F|0,13),B^=rr(L+I|0,18),N^=rr(M+D|0,7),P^=rr(N+M|0,9),D^=rr(P+N|0,13),M^=rr(D+P|0,18),Z^=rr(j+O|0,7),U^=rr(Z+j|0,9),O^=rr(U+Z|0,13),j^=rr(O+U|0,18),K^=rr(q+Y|0,7),$^=rr(K+q|0,9),Y^=rr($+K|0,13),q^=rr(Y+$|0,18);s[i++]=o+B|0,s[i++]=a+F|0,s[i++]=c+I|0,s[i++]=l+L|0,s[i++]=u+D|0,s[i++]=d+M|0,s[i++]=h+N|0,s[i++]=p+P|0,s[i++]=g+U|0,s[i++]=m+O|0,s[i++]=y+j|0,s[i++]=v+Z|0,s[i++]=A+K|0,s[i++]=E+$|0,s[i++]=w+Y|0,s[i++]=C+q|0}function hd(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;a<s;a++,i+=16,e+=16)O7(r,o,t,e,r,i),a>0&&(o+=16),O7(r,i,t,e+=16,r,o)}function B7(t,e,r){const n=$_({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(Ss(s),Ss(i),Ss(o),Ss(a),Ss(c),Ss(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const d=128*i,h=d/4;if(s<=1||s&s-1||s>=2**(d/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/d)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 p=d*(s+o);if(p>l)throw new Error(`Scrypt: parameters too large, ${p} (128 * r * (N + p)) > ${l} (maxmem)`);const g=E2(Ao,t,e,{c:1,dkLen:d*o}),m=k2(g),y=k2(new Uint8Array(d*s)),v=k2(new Uint8Array(d));let A=()=>{};if(u){const E=2*s*o,w=Math.max(Math.floor(E/1e4),1);let C=0;A=()=>{C++,u&&(!(C%w)||C===E)&&u(C/E)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:h,V:y,B32:m,B:g,tmp:v,blockMixCb:A,asyncTick:c}}function U7(t,e,r,n,s){const i=E2(Ao,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function M7(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:h}=B7(t,e,r);for(let p=0;p<i;p++){const g=a*p;for(let m=0;m<a;m++)c[m]=l[g+m];for(let m=0,y=0;m<n-1;m++)hd(c,y,c,y+=a,s),h();hd(c,(n-1)*a,l,g,s),h();for(let m=0;m<n;m++){const y=l[g+a-16]%n;for(let v=0;v<a;v++)d[v]=l[g+v]^c[y*a+v];hd(d,0,l,g,s),h()}}return U7(t,o,u,c,d)}async function F7(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:d,blockMixCb:h,asyncTick:p}=B7(t,e,r);for(let g=0;g<i;g++){const m=a*g;for(let v=0;v<a;v++)c[v]=l[m+v];let y=0;await a4(n-1,p,()=>{hd(c,y,c,y+=a,s),h()}),hd(c,(n-1)*a,l,m,s),h(),await a4(n,p,()=>{const v=l[m+a-16]%n;for(let A=0;A<a;A++)d[A]=l[m+A]^c[v*a+A];hd(d,0,l,m,s),h()})}return U7(t,o,u,c,d)}const yG=Object.freeze(Object.defineProperty({__proto__:null,scrypt:M7,scryptAsync:F7},Symbol.toStringTag,{value:"Module"}));let L7=!1,V7=!1;const D7=async function(t,e,r,n,s,i,o){return await F7(t,e,{N:r,r:n,p:s,dkLen:i,onProgress:o})},W7=function(t,e,r,n,s,i){return M7(t,e,{N:r,r:n,p:s,dkLen:i})};let j7=D7,G7=W7;async function ga(t,e,r,n,s,i,o){const a=qe(t,"passwd"),c=qe(e,"salt");return Ze(await j7(a,c,r,n,s,i,o))}ga._=D7,ga.lock=function(){V7=!0},ga.register=function(t){if(V7)throw new Error("scrypt is locked");j7=t},Object.freeze(ga);function ma(t,e,r,n,s,i){const o=qe(t,"passwd"),a=qe(e,"salt");return Ze(G7(o,a,r,n,s,i))}ma._=W7,ma.lock=function(){L7=!0},ma.register=function(t){if(L7)throw new Error("scryptSync is locked");G7=t},Object.freeze(ma);const z7=function(t){return s7("sha256").update(t).digest()},$7=function(t){return s7("sha512").update(t).digest()};let H7=z7,Z7=$7,J7=!1,Q7=!1;function Fn(t){const e=qe(t,"data");return Ze(H7(e))}Fn._=z7,Fn.lock=function(){J7=!0},Fn.register=function(t){if(J7)throw new Error("sha256 is locked");H7=t},Object.freeze(Fn);function dd(t){const e=qe(t,"data");return Ze(Z7(e))}dd._=$7,dd.lock=function(){Q7=!0},dd.register=function(t){if(Q7)throw new Error("sha512 is locked");Z7=t},Object.freeze(Fn);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Y7=BigInt(0),T2=BigInt(1),vG=BigInt(2),R2=t=>t instanceof Uint8Array,bG=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function fd(t){if(!R2(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r<t.length;r++)e+=bG[t[r]];return e}function K7(t){const e=t.toString(16);return e.length&1?`0${e}`:e}function g4(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return BigInt(t===""?"0":`0x${t}`)}function pd(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(e/2);for(let n=0;n<r.length;n++){const s=n*2,i=t.slice(s,s+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");r[n]=o}return r}function qn(t){return g4(fd(t))}function m4(t){if(!R2(t))throw new Error("Uint8Array expected");return g4(fd(Uint8Array.from(t).reverse()))}function Tc(t,e){return pd(t.toString(16).padStart(e*2,"0"))}function y4(t,e){return Tc(t,e).reverse()}function wG(t){return pd(K7(t))}function Ln(t,e,r){let n;if(typeof e=="string")try{n=pd(e)}catch(i){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${i}`)}else if(R2(e))n=Uint8Array.from(e);else throw new Error(`${t} must be hex string or Uint8Array`);const s=n.length;if(typeof r=="number"&&s!==r)throw new Error(`${t} expected ${r} bytes, got ${s}`);return n}function Ts(...t){const e=new Uint8Array(t.reduce((n,s)=>n+s.length,0));let r=0;return t.forEach(n=>{if(!R2(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function kG(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function P2(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function EG(t){let e;for(e=0;t>Y7;t>>=T2,e+=1);return e}function AG(t,e){return t>>BigInt(e)&T2}const _G=(t,e,r)=>t|(r?T2:Y7)<<BigInt(e),v4=t=>(vG<<BigInt(t-1))-T2,b4=t=>new Uint8Array(t),q7=t=>Uint8Array.from(t);function X7(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=b4(t),s=b4(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...u)=>r(s,n,...u),c=(u=b4())=>{s=a(q7([0]),u),n=a(),u.length!==0&&(s=a(q7([1]),u),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let u=0;const d=[];for(;u<e;){n=a();const h=n.slice();d.push(h),u+=n.length}return Ts(...d)};return(u,d)=>{o(),c(u);let h;for(;!(h=d(l()));)c();return o(),h}}const SG={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 gd(t,e,r={}){const n=(s,i,o)=>{const a=SG[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 CG=Object.freeze(Object.defineProperty({__proto__:null,bitGet:AG,bitLen:EG,bitMask:v4,bitSet:_G,bytesToHex:fd,bytesToNumberBE:qn,bytesToNumberLE:m4,concatBytes:Ts,createHmacDrbg:X7,ensureBytes:Ln,equalBytes:kG,hexToBytes:pd,hexToNumber:g4,numberToBytesBE:Tc,numberToBytesLE:y4,numberToHexUnpadded:K7,numberToVarBytesBE:wG,utf8ToBytes:P2,validateObject:gd},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const fn=BigInt(0),Gr=BigInt(1),ql=BigInt(2),TG=BigInt(3),w4=BigInt(4),eS=BigInt(5),tS=BigInt(8);BigInt(9),BigInt(16);function pn(t,e){const r=t%e;return r>=fn?r:e+r}function RG(t,e,r){if(r<=fn||e<fn)throw new Error("Expected power/modulo > 0");if(r===Gr)return fn;let n=Gr;for(;e>fn;)e&Gr&&(n=n*t%r),t=t*t%r,e>>=Gr;return n}function Ys(t,e,r){let n=t;for(;e-- >fn;)n*=n,n%=r;return n}function k4(t,e){if(t===fn||e<=fn)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=pn(t,e),n=e,s=fn,i=Gr;for(;r!==fn;){const o=n/r,a=n%r,c=s-i*o;n=r,r=a,s=i,i=c}if(n!==Gr)throw new Error("invert: does not exist");return pn(s,e)}function PG(t){const e=(t-Gr)/ql;let r,n,s;for(r=t-Gr,n=0;r%ql===fn;r/=ql,n++);for(s=ql;s<t&&RG(s,e,t)!==t-Gr;s++);if(n===1){const o=(t+Gr)/w4;return function(a,c){const l=a.pow(c,o);if(!a.eql(a.sqr(l),c))throw new Error("Cannot find square root");return l}}const i=(r+Gr)/ql;return function(o,a){if(o.pow(a,e)===o.neg(o.ONE))throw new Error("Cannot find square root");let c=n,l=o.pow(o.mul(o.ONE,s),r),u=o.pow(a,i),d=o.pow(a,r);for(;!o.eql(d,o.ONE);){if(o.eql(d,o.ZERO))return o.ZERO;let h=1;for(let g=o.sqr(d);h<c&&!o.eql(g,o.ONE);h++)g=o.sqr(g);const p=o.pow(l,Gr<<BigInt(c-h-1));l=o.sqr(p),u=o.mul(u,p),d=o.mul(d,l),c=h}return u}}function xG(t){if(t%w4===TG){const e=(t+Gr)/w4;return function(r,n){const s=r.pow(n,e);if(!r.eql(r.sqr(s),n))throw new Error("Cannot find square root");return s}}if(t%tS===eS){const e=(t-eS)/tS;return function(r,n){const s=r.mul(n,ql),i=r.pow(s,e),o=r.mul(n,i),a=r.mul(r.mul(o,ql),i),c=r.mul(o,r.sub(a,r.ONE));if(!r.eql(r.sqr(c),n))throw new Error("Cannot find square root");return c}}return PG(t)}const NG=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function rS(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=NG.reduce((n,s)=>(n[s]="function",n),e);return gd(t,r)}function IG(t,e,r){if(r<fn)throw new Error("Expected power > 0");if(r===fn)return t.ONE;if(r===Gr)return e;let n=t.ONE,s=e;for(;r>fn;)r&Gr&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Gr;return n}function OG(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 nS(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function BG(t,e,r=!1,n={}){if(t<=fn)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=nS(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=xG(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:v4(s),ZERO:fn,ONE:Gr,create:c=>pn(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return fn<=c&&c<t},is0:c=>c===fn,isOdd:c=>(c&Gr)===Gr,neg:c=>pn(-c,t),eql:(c,l)=>c===l,sqr:c=>pn(c*c,t),add:(c,l)=>pn(c+l,t),sub:(c,l)=>pn(c-l,t),mul:(c,l)=>pn(c*l,t),pow:(c,l)=>IG(a,c,l),div:(c,l)=>pn(c*k4(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>k4(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>OG(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?y4(c,i):Tc(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?m4(c):qn(c)}});return Object.freeze(a)}function sS(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 iS(t){const e=sS(t);return e+Math.ceil(e/2)}function UG(t,e,r=!1){const n=t.length,s=sS(e),i=iS(e);if(n<16||n<i||n>1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?qn(t):m4(t),a=pn(o,e-Gr)+Gr;return r?y4(a,s):Tc(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const MG=BigInt(0),E4=BigInt(1);function FG(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>MG;)i&E4&&(o=o.add(a)),a=a.double(),i>>=E4;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let d=0;d<o;d++){u=l,c.push(u);for(let h=1;h<a;h++)u=u.add(l),c.push(u);l=u.double()}return c},wNAF(s,i,o){const{windows:a,windowSize:c}=n(s);let l=t.ZERO,u=t.BASE;const d=BigInt(2**s-1),h=2**s,p=BigInt(s);for(let g=0;g<a;g++){const m=g*c;let y=Number(o&d);o>>=p,y>c&&(y-=h,o+=E4);const v=m,A=m+Math.abs(y)-1,E=g%2!==0,w=y<0;y===0?u=u.add(r(E,i[v])):l=l.add(r(w,i[A]))}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 oS(t){return rS(t.Fp),gd(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nS(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function LG(t){const e=oS(t);gd(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:VG,hexToBytes:DG}=CG,Xl={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:e}=Xl;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:VG(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=Xl,r=typeof t=="string"?DG(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}=Xl._parseInt(r.subarray(2)),{d:o,l:a}=Xl._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}`}},Ri=BigInt(0),Vr=BigInt(1),Rc=BigInt(2),x2=BigInt(3),aS=BigInt(4);function WG(t){const e=LG(t),{Fp:r}=e,n=e.toBytes||((g,m,y)=>{const v=m.toAffine();return Ts(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),s=e.fromBytes||(g=>{const m=g.subarray(1),y=r.fromBytes(m.subarray(0,r.BYTES)),v=r.fromBytes(m.subarray(r.BYTES,2*r.BYTES));return{x:y,y:v}});function i(g){const{a:m,b:y}=e,v=r.sqr(g),A=r.mul(v,g);return r.add(r.add(A,r.mul(g,m)),y)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(g){return typeof g=="bigint"&&Ri<g&&g<e.n}function a(g){if(!o(g))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function c(g){const{allowedPrivateKeyLengths:m,nByteLength:y,wrapPrivateKey:v,n:A}=e;if(m&&typeof g!="bigint"){if(g instanceof Uint8Array&&(g=fd(g)),typeof g!="string"||!m.includes(g.length))throw new Error("Invalid key");g=g.padStart(y*2,"0")}let E;try{E=typeof g=="bigint"?g:qn(Ln("private key",g,y))}catch{throw new Error(`private key must be ${y} bytes, hex or bigint, not ${typeof g}`)}return v&&(E=pn(E,A)),a(E),E}const l=new Map;function u(g){if(!(g instanceof d))throw new Error("ProjectivePoint expected")}class d{constructor(m,y,v){if(this.px=m,this.py=y,this.pz=v,m==null||!r.isValid(m))throw new Error("x required");if(y==null||!r.isValid(y))throw new Error("y required");if(v==null||!r.isValid(v))throw new Error("z required")}static fromAffine(m){const{x:y,y:v}=m||{};if(!m||!r.isValid(y)||!r.isValid(v))throw new Error("invalid affine point");if(m instanceof d)throw new Error("projective point not allowed");const A=E=>r.eql(E,r.ZERO);return A(y)&&A(v)?d.ZERO:new d(y,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(m){const y=r.invertBatch(m.map(v=>v.pz));return m.map((v,A)=>v.toAffine(y[A])).map(d.fromAffine)}static fromHex(m){const y=d.fromAffine(s(Ln("pointHex",m)));return y.assertValidity(),y}static fromPrivateKey(m){return d.BASE.multiply(c(m))}_setWindowSize(m){this._WINDOW_SIZE=m,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:m,y}=this.toAffine();if(!r.isValid(m)||!r.isValid(y))throw new Error("bad point: x or y not FE");const v=r.sqr(y),A=i(m);if(!r.eql(v,A))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:m}=this.toAffine();if(r.isOdd)return!r.isOdd(m);throw new Error("Field doesn't support isOdd")}equals(m){u(m);const{px:y,py:v,pz:A}=this,{px:E,py:w,pz:C}=m,B=r.eql(r.mul(y,C),r.mul(E,A)),F=r.eql(r.mul(v,C),r.mul(w,A));return B&&F}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){const{a:m,b:y}=e,v=r.mul(y,x2),{px:A,py:E,pz:w}=this;let C=r.ZERO,B=r.ZERO,F=r.ZERO,I=r.mul(A,A),L=r.mul(E,E),D=r.mul(w,w),M=r.mul(A,E);return M=r.add(M,M),F=r.mul(A,w),F=r.add(F,F),C=r.mul(m,F),B=r.mul(v,D),B=r.add(C,B),C=r.sub(L,B),B=r.add(L,B),B=r.mul(C,B),C=r.mul(M,C),F=r.mul(v,F),D=r.mul(m,D),M=r.sub(I,D),M=r.mul(m,M),M=r.add(M,F),F=r.add(I,I),I=r.add(F,I),I=r.add(I,D),I=r.mul(I,M),B=r.add(B,I),D=r.mul(E,w),D=r.add(D,D),I=r.mul(D,M),C=r.sub(C,I),F=r.mul(D,L),F=r.add(F,F),F=r.add(F,F),new d(C,B,F)}add(m){u(m);const{px:y,py:v,pz:A}=this,{px:E,py:w,pz:C}=m;let B=r.ZERO,F=r.ZERO,I=r.ZERO;const L=e.a,D=r.mul(e.b,x2);let M=r.mul(y,E),N=r.mul(v,w),P=r.mul(A,C),U=r.add(y,v),O=r.add(E,w);U=r.mul(U,O),O=r.add(M,N),U=r.sub(U,O),O=r.add(y,A);let j=r.add(E,C);return O=r.mul(O,j),j=r.add(M,P),O=r.sub(O,j),j=r.add(v,A),B=r.add(w,C),j=r.mul(j,B),B=r.add(N,P),j=r.sub(j,B),I=r.mul(L,O),B=r.mul(D,P),I=r.add(B,I),B=r.sub(N,I),I=r.add(N,I),F=r.mul(B,I),N=r.add(M,M),N=r.add(N,M),P=r.mul(L,P),O=r.mul(D,O),N=r.add(N,P),P=r.sub(M,P),P=r.mul(L,P),O=r.add(O,P),M=r.mul(N,O),F=r.add(F,M),M=r.mul(j,O),B=r.mul(U,B),B=r.sub(B,M),M=r.mul(U,N),I=r.mul(j,I),I=r.add(I,M),new d(B,F,I)}subtract(m){return this.add(m.negate())}is0(){return this.equals(d.ZERO)}wNAF(m){return p.wNAFCached(this,l,m,y=>{const v=r.invertBatch(y.map(A=>A.pz));return y.map((A,E)=>A.toAffine(v[E])).map(d.fromAffine)})}multiplyUnsafe(m){const y=d.ZERO;if(m===Ri)return y;if(a(m),m===Vr)return this;const{endo:v}=e;if(!v)return p.unsafeLadder(this,m);let{k1neg:A,k1:E,k2neg:w,k2:C}=v.splitScalar(m),B=y,F=y,I=this;for(;E>Ri||C>Ri;)E&Vr&&(B=B.add(I)),C&Vr&&(F=F.add(I)),I=I.double(),E>>=Vr,C>>=Vr;return A&&(B=B.negate()),w&&(F=F.negate()),F=new d(r.mul(F.px,v.beta),F.py,F.pz),B.add(F)}multiply(m){a(m);let y=m,v,A;const{endo:E}=e;if(E){const{k1neg:w,k1:C,k2neg:B,k2:F}=E.splitScalar(y);let{p:I,f:L}=this.wNAF(C),{p:D,f:M}=this.wNAF(F);I=p.constTimeNegate(w,I),D=p.constTimeNegate(B,D),D=new d(r.mul(D.px,E.beta),D.py,D.pz),v=I.add(D),A=L.add(M)}else{const{p:w,f:C}=this.wNAF(y);v=w,A=C}return d.normalizeZ([v,A])[0]}multiplyAndAddUnsafe(m,y,v){const A=d.BASE,E=(C,B)=>B===Ri||B===Vr||!C.equals(A)?C.multiplyUnsafe(B):C.multiply(B),w=E(this,y).add(E(m,v));return w.is0()?void 0:w}toAffine(m){const{px:y,py:v,pz:A}=this,E=this.is0();m==null&&(m=E?r.ONE:r.inv(A));const w=r.mul(y,m),C=r.mul(v,m),B=r.mul(A,m);if(E)return{x:r.ZERO,y:r.ZERO};if(!r.eql(B,r.ONE))throw new Error("invZ was invalid");return{x:w,y:C}}isTorsionFree(){const{h:m,isTorsionFree:y}=e;if(m===Vr)return!0;if(y)return y(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:m,clearCofactor:y}=e;return m===Vr?this:y?y(d,this):this.multiplyUnsafe(e.h)}toRawBytes(m=!0){return this.assertValidity(),n(d,this,m)}toHex(m=!0){return fd(this.toRawBytes(m))}}d.BASE=new d(e.Gx,e.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);const h=e.nBitLength,p=FG(d,e.endo?Math.ceil(h/2):h);return{CURVE:e,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function jG(t){const e=oS(t);return gd(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function GG(t){const e=jG(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(O){return Ri<O&&O<r.ORDER}function a(O){return pn(O,n)}function c(O){return k4(O,n)}const{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:h}=WG({...e,toBytes(O,j,Z){const K=j.toAffine(),$=r.toBytes(K.x),Y=Ts;return Z?Y(Uint8Array.from([j.hasEvenY()?2:3]),$):Y(Uint8Array.from([4]),$,r.toBytes(K.y))},fromBytes(O){const j=O.length,Z=O[0],K=O.subarray(1);if(j===s&&(Z===2||Z===3)){const $=qn(K);if(!o($))throw new Error("Point is not on curve");const Y=d($);let q=r.sqrt(Y);const te=(q&Vr)===Vr;return(Z&1)===1!==te&&(q=r.neg(q)),{x:$,y:q}}else if(j===i&&Z===4){const $=r.fromBytes(K.subarray(0,r.BYTES)),Y=r.fromBytes(K.subarray(r.BYTES,2*r.BYTES));return{x:$,y:Y}}else throw new Error(`Point of length ${j} was invalid. Expected ${s} compressed bytes or ${i} uncompressed bytes`)}}),p=O=>fd(Tc(O,e.nByteLength));function g(O){const j=n>>Vr;return O>j}function m(O){return g(O)?a(-O):O}const y=(O,j,Z)=>qn(O.slice(j,Z));class v{constructor(j,Z,K){this.r=j,this.s=Z,this.recovery=K,this.assertValidity()}static fromCompact(j){const Z=e.nByteLength;return j=Ln("compactSignature",j,Z*2),new v(y(j,0,Z),y(j,Z,2*Z))}static fromDER(j){const{r:Z,s:K}=Xl.toSig(Ln("DER",j));return new v(Z,K)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(j){return new v(this.r,this.s,j)}recoverPublicKey(j){const{r:Z,s:K,recovery:$}=this,Y=F(Ln("msgHash",j));if($==null||![0,1,2,3].includes($))throw new Error("recovery id invalid");const q=$===2||$===3?Z+e.n:Z;if(q>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const te=$&1?"03":"02",ie=l.fromHex(te+p(q)),ye=c(q),_e=a(-Y*ye),Te=a(K*ye),oe=l.BASE.multiplyAndAddUnsafe(ie,_e,Te);if(!oe)throw new Error("point at infinify");return oe.assertValidity(),oe}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return pd(this.toDERHex())}toDERHex(){return Xl.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return pd(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}const A={isValidPrivateKey(O){try{return u(O),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const O=iS(e.n);return UG(e.randomBytes(O),e.n)},precompute(O=8,j=l.BASE){return j._setWindowSize(O),j.multiply(BigInt(3)),j}};function E(O,j=!0){return l.fromPrivateKey(O).toRawBytes(j)}function w(O){const j=O instanceof Uint8Array,Z=typeof O=="string",K=(j||Z)&&O.length;return j?K===s||K===i:Z?K===2*s||K===2*i:O instanceof l}function C(O,j,Z=!0){if(w(O))throw new Error("first arg must be private key");if(!w(j))throw new Error("second arg must be public key");return l.fromHex(j).multiply(u(O)).toRawBytes(Z)}const B=e.bits2int||function(O){const j=qn(O),Z=O.length*8-e.nBitLength;return Z>0?j>>BigInt(Z):j},F=e.bits2int_modN||function(O){return a(B(O))},I=v4(e.nBitLength);function L(O){if(typeof O!="bigint")throw new Error("bigint expected");if(!(Ri<=O&&O<I))throw new Error(`bigint expected < 2^${e.nBitLength}`);return Tc(O,e.nByteLength)}function D(O,j,Z=M){if(["recovered","canonical"].some(we=>we in Z))throw new Error("sign() legacy options not supported");const{hash:K,randomBytes:$}=e;let{lowS:Y,prehash:q,extraEntropy:te}=Z;Y==null&&(Y=!0),O=Ln("msgHash",O),q&&(O=Ln("prehashed msgHash",K(O)));const ie=F(O),ye=u(j),_e=[L(ye),L(ie)];if(te!=null){const we=te===!0?$(r.BYTES):te;_e.push(Ln("extraEntropy",we))}const Te=Ts(..._e),oe=ie;function le(we){const W=B(we);if(!h(W))return;const ue=c(W),me=l.BASE.multiply(W).toAffine(),be=a(me.x);if(be===Ri)return;const re=a(ue*a(oe+be*ye));if(re===Ri)return;let x=(me.x===be?0:2)|Number(me.y&Vr),G=re;return Y&&g(re)&&(G=m(re),x^=1),new v(be,G,x)}return{seed:Te,k2sig:le}}const M={lowS:e.lowS,prehash:!1},N={lowS:e.lowS,prehash:!1};function P(O,j,Z=M){const{seed:K,k2sig:$}=D(O,j,Z),Y=e;return X7(Y.hash.outputLen,Y.nByteLength,Y.hmac)(K,$)}l.BASE._setWindowSize(8);function U(O,j,Z,K=N){var $;const Y=O;if(j=Ln("msgHash",j),Z=Ln("publicKey",Z),"strict"in K)throw new Error("options.strict was renamed to lowS");const{lowS:q,prehash:te}=K;let ie,ye;try{if(typeof Y=="string"||Y instanceof Uint8Array)try{ie=v.fromDER(Y)}catch(me){if(!(me instanceof Xl.Err))throw me;ie=v.fromCompact(Y)}else if(typeof Y=="object"&&typeof Y.r=="bigint"&&typeof Y.s=="bigint"){const{r:me,s:be}=Y;ie=new v(me,be)}else throw new Error("PARSE");ye=l.fromHex(Z)}catch(me){if(me.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(q&&ie.hasHighS())return!1;te&&(j=e.hash(j));const{r:_e,s:Te}=ie,oe=F(j),le=c(Te),we=a(oe*le),W=a(_e*le),ue=($=l.BASE.multiplyAndAddUnsafe(ye,we,W))==null?void 0:$.toAffine();return ue?a(ue.x)===_e:!1}return{CURVE:e,getPublicKey:E,getSharedSecret:C,sign:P,verify:U,ProjectivePoint:l,Signature:v,utils:A}}function zG(t,e){const r=t.ORDER;let n=Ri;for(let g=r-Vr;g%Rc===Ri;g/=Rc)n+=Vr;const s=n,i=Rc<<s-Vr-Vr,o=i*Rc,a=(r-Vr)/o,c=(a-Vr)/Rc,l=o-Vr,u=i,d=t.pow(e,a),h=t.pow(e,(a+Vr)/Rc);let p=(g,m)=>{let y=d,v=t.pow(m,l),A=t.sqr(v);A=t.mul(A,m);let E=t.mul(g,A);E=t.pow(E,c),E=t.mul(E,v),v=t.mul(E,m),A=t.mul(E,g);let w=t.mul(A,v);E=t.pow(w,u);let C=t.eql(E,t.ONE);v=t.mul(A,h),E=t.mul(w,y),A=t.cmov(v,A,C),w=t.cmov(E,w,C);for(let B=s;B>Vr;B--){let F=B-Rc;F=Rc<<F-Vr;let I=t.pow(w,F);const L=t.eql(I,t.ONE);v=t.mul(A,y),y=t.mul(y,y),I=t.mul(w,y),A=t.cmov(v,A,L),w=t.cmov(I,w,L)}return{isValid:C,value:A}};if(t.ORDER%aS===x2){const g=(t.ORDER-x2)/aS,m=t.sqrt(t.neg(e));p=(y,v)=>{let A=t.sqr(v);const E=t.mul(y,v);A=t.mul(A,E);let w=t.pow(A,g);w=t.mul(w,E);const C=t.mul(w,m),B=t.mul(t.sqr(w),v),F=t.eql(B,y);let I=t.cmov(C,w,F);return{isValid:F,value:I}}}return p}function $G(t,e){if(rS(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=zG(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let s,i,o,a,c,l,u,d;s=t.sqr(n),s=t.mul(s,e.Z),i=t.sqr(s),i=t.add(i,s),o=t.add(i,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(i),!t.eql(i,t.ZERO)),a=t.mul(a,e.A),i=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),i=t.add(i,c),i=t.mul(i,o),l=t.mul(l,a),c=t.mul(l,e.B),i=t.add(i,c),u=t.mul(s,o);const{isValid:h,value:p}=r(i,l);d=t.mul(s,n),d=t.mul(d,p),u=t.cmov(u,o,h),d=t.cmov(d,p,h);const g=t.isOdd(n)===t.isOdd(d);return d=t.cmov(t.neg(d),d,g),u=t.div(u,a),{x:u,y:d}}}function HG(t){if(t instanceof Uint8Array)return t;if(typeof t=="string")return P2(t);throw new Error("DST must be Uint8Array or string")}const ZG=qn;function Pc(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=t&255,t>>>=8;return new Uint8Array(r)}function JG(t,e){const r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t[n]^e[n];return r}function i0(t){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected")}function A4(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function QG(t,e,r,n){i0(t),i0(e),A4(r),e.length>255&&(e=n(Ts(P2("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:i}=n,o=Math.ceil(r/s);if(o>255)throw new Error("Invalid xmd length");const a=Ts(e,Pc(e.length,1)),c=Pc(0,i),l=Pc(r,2),u=new Array(o),d=n(Ts(c,t,l,Pc(0,1),a));u[0]=n(Ts(d,Pc(1,1),a));for(let h=1;h<=o;h++){const p=[JG(d,u[h-1]),Pc(h+1,1),a];u[h]=n(Ts(...p))}return Ts(...u).slice(0,r)}function YG(t,e,r,n,s){if(i0(t),i0(e),A4(r),e.length>255){const i=Math.ceil(2*n/8);e=s.create({dkLen:i}).update(P2("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(Pc(r,2)).update(e).update(Pc(e.length,1)).digest()}function cS(t,e,r){gd(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:n,k:s,m:i,hash:o,expand:a,DST:c}=r;i0(t),A4(e);const l=HG(c),u=n.toString(2).length,d=Math.ceil((u+s)/8),h=e*i*d;let p;if(a==="xmd")p=QG(t,l,h,o);else if(a==="xof")p=YG(t,l,h,s,o);else if(a==="_internal_pass")p=t;else throw new Error('expand must be "xmd" or "xof"');const g=new Array(e);for(let m=0;m<e;m++){const y=new Array(i);for(let v=0;v<i;v++){const A=d*(v+m*i),E=p.subarray(A,A+d);y[v]=pn(ZG(E),n)}g[m]=y}return g}function KG(t,e){const r=e.map(n=>Array.from(n).reverse());return(n,s)=>{const[i,o,a,c]=r.map(l=>l.reduce((u,d)=>t.add(t.mul(u,n),d)));return n=t.div(i,o),s=t.mul(s,t.div(a,c)),{x:n,y:s}}}function qG(t,e,r){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(n,s){const i=cS(n,2,{...r,DST:r.DST,...s}),o=t.fromAffine(e(i[0])),a=t.fromAffine(e(i[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,s){const i=cS(n,1,{...r,DST:r.encodeDST,...s}),o=t.fromAffine(e(i[0])).clearCofactor();return o.assertValidity(),o}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function XG(t){return{hash:t,hmac:(e,...r)=>r0(t,e,ij(...r)),randomBytes:H_}}function ez(t,e){const r=n=>GG({...t,...XG(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const N2=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),I2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),lS=BigInt(1),O2=BigInt(2),uS=(t,e)=>(t+e/O2)/e;function hS(t){const e=N2,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,d=Ys(u,r,e)*u%e,h=Ys(d,r,e)*u%e,p=Ys(h,O2,e)*l%e,g=Ys(p,s,e)*p%e,m=Ys(g,i,e)*g%e,y=Ys(m,a,e)*m%e,v=Ys(y,c,e)*y%e,A=Ys(v,a,e)*m%e,E=Ys(A,r,e)*u%e,w=Ys(E,o,e)*g%e,C=Ys(w,n,e)*l%e,B=Ys(C,O2,e);if(!xc.eql(xc.sqr(B),t))throw new Error("Cannot find square root");return B}const xc=BG(N2,void 0,void 0,{sqrt:hS}),Ks=ez({a:BigInt(0),b:BigInt(7),Fp:xc,n:I2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=I2,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-lS*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=uS(i*t,e),c=uS(-n*t,e);let l=pn(t-a*r-c*s,e),u=pn(-a*n-c*i,e);const d=l>o,h=u>o;if(d&&(l=e-l),h&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:d,k1:l,k2neg:h,k2:u}}}},Ao),B2=BigInt(0),dS=t=>typeof t=="bigint"&&B2<t&&t<N2,tz=t=>typeof t=="bigint"&&B2<t&&t<I2,fS={};function U2(t,...e){let r=fS[t];if(r===void 0){const n=Ao(Uint8Array.from(t,s=>s.charCodeAt(0)));r=Ts(n,n),fS[t]=r}return Ao(Ts(r,...e))}const _4=t=>t.toRawBytes(!0).slice(1),S4=t=>Tc(t,32),C4=t=>pn(t,N2),o0=t=>pn(t,I2),T4=Ks.ProjectivePoint,rz=(t,e,r)=>T4.BASE.multiplyAndAddUnsafe(t,e,r);function R4(t){let e=Ks.utils.normPrivateKeyToScalar(t),r=T4.fromPrivateKey(e);return{scalar:r.hasEvenY()?e:o0(-e),bytes:_4(r)}}function pS(t){if(!dS(t))throw new Error("bad x: need 0 < x < p");const e=C4(t*t),r=C4(e*t+BigInt(7));let n=hS(r);n%O2!==B2&&(n=C4(-n));const s=new T4(t,n,lS);return s.assertValidity(),s}function gS(...t){return o0(qn(U2("BIP0340/challenge",...t)))}function nz(t){return R4(t).bytes}function sz(t,e,r=H_(32)){const n=Ln("message",t),{bytes:s,scalar:i}=R4(e),o=Ln("auxRand",r,32),a=S4(i^qn(U2("BIP0340/aux",o))),c=U2("BIP0340/nonce",a,s,n),l=o0(qn(c));if(l===B2)throw new Error("sign failed: k is zero");const{bytes:u,scalar:d}=R4(l),h=gS(u,s,n),p=new Uint8Array(64);if(p.set(u,0),p.set(S4(o0(d+h*i)),32),!mS(p,n,s))throw new Error("sign: Invalid signature produced");return p}function mS(t,e,r){const n=Ln("signature",t,64),s=Ln("message",e),i=Ln("publicKey",r,32);try{const o=pS(qn(i)),a=qn(n.subarray(0,32));if(!dS(a))return!1;const c=qn(n.subarray(32,64));if(!tz(c))return!1;const l=gS(S4(a),_4(o),s),u=rz(o,c,o0(-l));return!(!u||!u.hasEvenY()||u.toAffine().x!==a)}catch{return!1}}const iz={getPublicKey:nz,sign:sz,verify:mS,utils:{randomPrivateKey:Ks.utils.randomPrivateKey,lift_x:pS,pointToBytes:_4,numberToBytesBE:Tc,bytesToNumberBE:qn,taggedHash:U2,mod:pn}},oz=KG(xc,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(e=>BigInt(e)))),az=$G(xc,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:xc.create(BigInt("-11"))}),yS=qG(Ks.ProjectivePoint,t=>{const{x:e,y:r}=az(xc.create(t[0]));return oz(e,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:xc.ORDER,m:1,k:128,expand:"xmd",hash:Ao}),cz=yS.hashToCurve,lz=yS.encodeToCurve,uz=Object.freeze(Object.defineProperty({__proto__:null,encodeToCurve:lz,hashToCurve:cz,schnorr:iz,secp256k1:Ks},Symbol.toStringTag,{value:"Module"})),eu="0x0000000000000000000000000000000000000000",M2="0x0000000000000000000000000000000000000000000000000000000000000000",vS=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),bS=BigInt("1000000000000000000"),wS=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),kS=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),ES=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),AS="Ξ",P4=`Ethereum Signed Message:
5
5
  `,_S=BigInt(0),SS=BigInt(1),CS=BigInt(2),TS=BigInt(27),RS=BigInt(28),F2=BigInt(35),md={};function PS(t){return Hs(on(t),32)}var a0,c0,l0,yd;const hz=class Ko{constructor(e,r,n,s){ne(this,a0),ne(this,c0),ne(this,l0),ne(this,yd),vo(e,md,"Signature"),V(this,a0,r),V(this,c0,n),V(this,l0,s),V(this,yd,null)}get r(){return S(this,a0)}set r(e){pe(ia(e)===32,"invalid r","value",e),V(this,a0,Ze(e))}get s(){return S(this,c0)}set s(e){pe(ia(e)===32,"invalid s","value",e);const r=Ze(e);pe(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),V(this,c0,r)}get v(){return S(this,l0)}set v(e){const r=mt(e,"value");pe(r===27||r===28,"invalid v","v",e),V(this,l0,r)}get networkV(){return S(this,yd)}get legacyChainId(){const e=this.networkV;return e==null?null:Ko.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=qe(this.s);return this.yParity&&(e[0]|=128),Ze(e)}get compactSerialized(){return $t([this.r,this.yParityAndS])}get serialized(){return $t([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 Ko(md,this.r,this.s,this.v);return this.networkV&&V(e,yd,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=ct(e,"v");return r==TS||r==RS?_S:(pe(r>=F2,"invalid EIP-155 v","v",e),(r-F2)/CS)}static getChainIdV(e,r){return ct(e)*CS+BigInt(35+r-27)}static getNormalizedV(e){const r=ct(e);return r===_S||r===TS?27:r===SS||r===RS?28:(pe(r>=F2,"invalid v","v",e),r&SS?27:28)}static from(e){function r(l,u){pe(l,u,"signature",e)}if(e==null)return new Ko(md,M2,M2,27);if(typeof e=="string"){const l=qe(e,"signature");if(l.length===64){const u=Ze(l.slice(0,32)),d=l.slice(32,64),h=d[0]&128?28:27;return d[0]&=127,new Ko(md,u,Ze(d),h)}if(l.length===65){const u=Ze(l.slice(0,32)),d=l.slice(32,64);r((d[0]&128)===0,"non-canonical s");const h=Ko.getNormalizedV(l[64]);return new Ko(md,u,Ze(d),h)}r(!1,"invalid raw signature length")}if(e instanceof Ko)return e.clone();const n=e.r;r(n!=null,"missing r");const s=PS(n),i=function(l,u){if(l!=null)return PS(l);if(u!=null){r(lr(u,32),"invalid yParityAndS");const d=qe(u);return d[0]&=127,Ze(d)}r(!1,"missing s")}(e.s,e.yParityAndS);r((qe(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,d){if(l!=null){const h=ct(l);return{networkV:h>=F2?h:void 0,v:Ko.getNormalizedV(h)}}if(u!=null)return r(lr(u,32),"invalid yParityAndS"),{v:qe(u)[0]&128?28:27};if(d!=null){switch(mt(d,"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 Ko(md,s,i,a);return o&&V(c,yd,o),r(e.yParity==null||mt(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};a0=new WeakMap,c0=new WeakMap,l0=new WeakMap,yd=new WeakMap;let Pi=hz;var Nc;const dz=class wp{constructor(e){ne(this,Nc),pe(ia(e)===32,"invalid private key","privateKey","[REDACTED]"),V(this,Nc,Ze(e))}get privateKey(){return S(this,Nc)}get publicKey(){return wp.computePublicKey(S(this,Nc))}get compressedPublicKey(){return wp.computePublicKey(S(this,Nc),!0)}sign(e){pe(ia(e)===32,"invalid digest length","digest",e);const r=Ks.sign(sn(e),sn(S(this,Nc)),{lowS:!0});return Pi.from({r:Zs(r.r,32),s:Zs(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=wp.computePublicKey(e);return Ze(Ks.getSharedSecret(sn(S(this,Nc)),qe(r),!1))}static computePublicKey(e,r){let n=qe(e,"key");if(n.length===32){const i=Ks.getPublicKey(n,!!r);return Ze(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Ks.ProjectivePoint.fromHex(n);return Ze(s.toRawBytes(r))}static recoverPublicKey(e,r){pe(ia(e)===32,"invalid digest length","digest",e);const n=Pi.from(r);let s=Ks.Signature.fromCompact(sn($t([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey(sn(e));return pe(i!=null,"invalid signautre for digest","signature",r),"0x"+i.toHex(!1)}static addPoints(e,r,n){const s=Ks.ProjectivePoint.fromHex(wp.computePublicKey(e).substring(2)),i=Ks.ProjectivePoint.fromHex(wp.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};Nc=new WeakMap;let _o=dz;function xS(){fa.lock(),hr.lock(),Ti.lock(),Cs.lock(),pa.lock(),ga.lock(),ma.lock(),Fn.lock(),dd.lock(),Cs.lock()}const fz=BigInt(0),pz=BigInt(36);function NS(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=qe(hr(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 x4={};for(let t=0;t<10;t++)x4[String(t)]=String(t);for(let t=0;t<26;t++)x4[String.fromCharCode(65+t)]=String(10+t);const IS=15;function OS(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>x4[n]).join("");for(;e.length>=IS;){let n=e.substring(0,IS);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 gz=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function mz(t){t=t.toLowerCase();let e=fz;for(let r=0;r<t.length;r++)e=e*pz+gz[t[r]];return e}function Bt(t){if(pe(typeof t=="string","invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/)){t.startsWith("0x")||(t="0x"+t);const e=NS(t);return pe(!t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||e===t,"bad address checksum","address",t),e}if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){pe(t.substring(2,4)===OS(t),"bad icap checksum","address",t);let e=mz(t.substring(4)).toString(16);for(;e.length<40;)e="0"+e;return NS("0x"+e)}pe(!1,"invalid address","address",t)}function BS(t){let e=BigInt(Bt(t)).toString(36).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+OS("XE00"+e)+e}function L2(t){const e=Bt(t.from);let r=ct(t.nonce,"tx.nonce").toString(16);return r==="0"?r="0x":r.length%2?r="0x0"+r:r="0x"+r,Bt(ur(hr(ha([e,r])),12))}function US(t,e,r){const n=Bt(t),s=qe(e,"salt"),i=qe(r,"initCodeHash");return pe(s.length===32,"salt must be 32 bytes","salt",e),pe(i.length===32,"initCodeHash must be 32 bytes","initCodeHash",r),Bt(ur(hr($t(["0xff",n,s,i])),12))}function V2(t){return t&&typeof t.getAddress=="function"}function MS(t){try{return Bt(t),!0}catch{}return!1}async function N4(t,e){const r=await e;return(r==null||r==="0x0000000000000000000000000000000000000000")&&(Be(typeof t!="string","unconfigured name","UNCONFIGURED_NAME",{value:t}),pe(!1,"invalid AddressLike value; did not resolve to a value address","target",t)),Bt(r)}function an(t,e){if(typeof t=="string")return t.match(/^0x[0-9a-f]{40}$/i)?Bt(t):(Be(e!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),N4(t,e.resolveName(t)));if(V2(t))return N4(t,t.getAddress());if(t&&typeof t.then=="function")return N4(t,t);pe(!1,"unsupported addressable value","target",t)}const ya={};function it(t,e){let r=!1;return e<0&&(r=!0,e*=-1),new Vn(ya,`${r?"":"u"}int${e}`,t,{signed:r,width:e})}function nr(t,e){return new Vn(ya,`bytes${e||""}`,t,{size:e})}const FS=Symbol.for("_ethers_typed");var vd;const yz=class Sl{constructor(e,r,n,s){X(this,"type"),X(this,"value"),ne(this,vd),X(this,"_typedSymbol"),s==null&&(s=null),vo(ya,e,"Typed"),rt(this,{_typedSymbol:FS,type:r,value:n}),V(this,vd,s),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(e=>e.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 S(this,vd)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return S(this,vd)===!0?-1:S(this,vd)===!1?this.value.length:null}static from(e,r){return new Sl(ya,e,r)}static uint8(e){return it(e,8)}static uint16(e){return it(e,16)}static uint24(e){return it(e,24)}static uint32(e){return it(e,32)}static uint40(e){return it(e,40)}static uint48(e){return it(e,48)}static uint56(e){return it(e,56)}static uint64(e){return it(e,64)}static uint72(e){return it(e,72)}static uint80(e){return it(e,80)}static uint88(e){return it(e,88)}static uint96(e){return it(e,96)}static uint104(e){return it(e,104)}static uint112(e){return it(e,112)}static uint120(e){return it(e,120)}static uint128(e){return it(e,128)}static uint136(e){return it(e,136)}static uint144(e){return it(e,144)}static uint152(e){return it(e,152)}static uint160(e){return it(e,160)}static uint168(e){return it(e,168)}static uint176(e){return it(e,176)}static uint184(e){return it(e,184)}static uint192(e){return it(e,192)}static uint200(e){return it(e,200)}static uint208(e){return it(e,208)}static uint216(e){return it(e,216)}static uint224(e){return it(e,224)}static uint232(e){return it(e,232)}static uint240(e){return it(e,240)}static uint248(e){return it(e,248)}static uint256(e){return it(e,256)}static uint(e){return it(e,256)}static int8(e){return it(e,-8)}static int16(e){return it(e,-16)}static int24(e){return it(e,-24)}static int32(e){return it(e,-32)}static int40(e){return it(e,-40)}static int48(e){return it(e,-48)}static int56(e){return it(e,-56)}static int64(e){return it(e,-64)}static int72(e){return it(e,-72)}static int80(e){return it(e,-80)}static int88(e){return it(e,-88)}static int96(e){return it(e,-96)}static int104(e){return it(e,-104)}static int112(e){return it(e,-112)}static int120(e){return it(e,-120)}static int128(e){return it(e,-128)}static int136(e){return it(e,-136)}static int144(e){return it(e,-144)}static int152(e){return it(e,-152)}static int160(e){return it(e,-160)}static int168(e){return it(e,-168)}static int176(e){return it(e,-176)}static int184(e){return it(e,-184)}static int192(e){return it(e,-192)}static int200(e){return it(e,-200)}static int208(e){return it(e,-208)}static int216(e){return it(e,-216)}static int224(e){return it(e,-224)}static int232(e){return it(e,-232)}static int240(e){return it(e,-240)}static int248(e){return it(e,-248)}static int256(e){return it(e,-256)}static int(e){return it(e,-256)}static bytes1(e){return nr(e,1)}static bytes2(e){return nr(e,2)}static bytes3(e){return nr(e,3)}static bytes4(e){return nr(e,4)}static bytes5(e){return nr(e,5)}static bytes6(e){return nr(e,6)}static bytes7(e){return nr(e,7)}static bytes8(e){return nr(e,8)}static bytes9(e){return nr(e,9)}static bytes10(e){return nr(e,10)}static bytes11(e){return nr(e,11)}static bytes12(e){return nr(e,12)}static bytes13(e){return nr(e,13)}static bytes14(e){return nr(e,14)}static bytes15(e){return nr(e,15)}static bytes16(e){return nr(e,16)}static bytes17(e){return nr(e,17)}static bytes18(e){return nr(e,18)}static bytes19(e){return nr(e,19)}static bytes20(e){return nr(e,20)}static bytes21(e){return nr(e,21)}static bytes22(e){return nr(e,22)}static bytes23(e){return nr(e,23)}static bytes24(e){return nr(e,24)}static bytes25(e){return nr(e,25)}static bytes26(e){return nr(e,26)}static bytes27(e){return nr(e,27)}static bytes28(e){return nr(e,28)}static bytes29(e){return nr(e,29)}static bytes30(e){return nr(e,30)}static bytes31(e){return nr(e,31)}static bytes32(e){return nr(e,32)}static address(e){return new Sl(ya,"address",e)}static bool(e){return new Sl(ya,"bool",!!e)}static bytes(e){return new Sl(ya,"bytes",e)}static string(e){return new Sl(ya,"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 Sl(ya,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===FS}static dereference(e,r){if(Sl.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};vd=new WeakMap;let Vn=yz;class vz extends da{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=Vn.dereference(r,"string");try{n=Bt(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Bt(Zs(e.readValue(),20))}}class bz extends da{constructor(e){super(e.name,e.type,"_",e.dynamic),X(this,"coder"),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}function LS(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 Be(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),Be(!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 pe(!1,"invalid tuple value","tuple",r);pe(e.length===n.length,"types/value length mismatch","tuple",r);let s=new n4,i=new n4,o=[];e.forEach((c,l)=>{let u=n[l];if(c.dynamic){let d=i.length;c.encode(i,u);let h=s.writeUpdatableValue();o.push(p=>{h(p+d)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function VS(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(jr(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(jr(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)}),cd.fromItems(r,n)}class wz extends da{constructor(e,r,n){const s=e.type+"["+(r>=0?r:"")+"]",i=r===-1||e.dynamic;super("array",s,n,i),X(this,"coder"),X(this,"length"),rt(this,{coder:e,length:r})}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;n<this.length;n++)r.push(e);return r}encode(e,r){const n=Vn.dereference(r,"array");Array.isArray(n)||this._throwError("expected array value",n);let s=this.length;s===-1&&(s=n.length,e.writeValue(n.length)),o2(n.length,s,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let o=0;o<n.length;o++)i.push(this.coder);return LS(e,i,n)}decode(e){let r=this.length;r===-1&&(r=e.readIndex(),Be(r*Kn<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:r*Kn,length:e.dataLength}));let n=[];for(let s=0;s<r;s++)n.push(new bz(this.coder));return VS(e,n)}}class kz extends da{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,r){const n=Vn.dereference(r,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}class DS extends da{constructor(e,r){super(e,e,r,!0)}defaultValue(){return"0x"}encode(e,r){r=sn(r);let n=e.writeValue(r.length);return n+=e.writeBytes(r),n}decode(e){return e.readBytes(e.readIndex(),!0)}}class Ez extends DS{constructor(e){super("bytes",e)}decode(e){return Ze(super.decode(e))}}class Az extends da{constructor(e,r){let n="bytes"+String(e);super(n,n,r,!1),X(this,"size"),rt(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,r){let n=sn(Vn.dereference(r,this.type));return n.length!==this.size&&this._throwError("incorrect data length",r),e.writeBytes(n)}decode(e){return Ze(e.readBytes(this.size))}}const _z=new Uint8Array([]);class Sz extends da{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,r){return r!=null&&this._throwError("not null",r),e.writeBytes(_z)}decode(e){return e.readBytes(0),null}}const Cz=BigInt(0),Tz=BigInt(1),Rz=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class Pz extends da{constructor(e,r,n){const s=(r?"int":"uint")+e*8;super(s,s,n,!1),X(this,"size"),X(this,"signed"),rt(this,{size:e,signed:r},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,r){let n=ct(Vn.dereference(r,this.type)),s=oa(Rz,Kn*8);if(this.signed){let i=oa(s,this.size*8-1);(n>i||n<-(i+Tz))&&this._throwError("value out-of-bounds",r),n=Wp(n,8*Kn)}else(n<Cz||n>oa(s,this.size*8))&&this._throwError("value out-of-bounds",r);return e.writeValue(n)}decode(e){let r=oa(e.readValue(),this.size*8);return this.signed&&(r=Yh(r,this.size*8)),r}}class xz extends DS{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,qr(Vn.dereference(r,"string")))}decode(e){return ca(super.decode(e))}}class D2 extends da{constructor(e,r){let n=!1;const s=[];e.forEach(o=>{o.dynamic&&(n=!0),s.push(o.type)});const i="tuple("+s.join(",")+")";super("tuple",i,r,n),X(this,"coders"),rt(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,s)=>{const i=s.localName;return i&&(n[i]||(n[i]=0),n[i]++),n},{});return this.coders.forEach((n,s)=>{let i=n.localName;!i||r[i]!==1||(i==="length"&&(i="_length"),e[i]==null&&(e[i]=e[s]))}),Object.freeze(e)}encode(e,r){const n=Vn.dereference(r,"tuple");return LS(e,this.coders,n)}decode(e){return VS(e,this.coders)}}function xi(t){return hr(qr(t))}var Nz="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVC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"middle dot"]]),jS=4;function Iz(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let C=1;C<n;C++)i.push(s+=r());let o=r(),a=e;e+=o;let c=0,l=0;function u(){return c==0&&(l=l<<8|t[e++],c=8),l>>--c&1}const d=31,h=2**d,p=h>>>1,g=p>>1,m=h-1;let y=0;for(let C=0;C<d;C++)y=y<<1|u();let v=[],A=0,E=h;for(;;){let C=Math.floor(((y-A+1)*s-1)/E),B=0,F=n;for(;F-B>1;){let D=B+F>>>1;C<i[D]?F=D:B=D}if(B==0)break;v.push(B);let I=A+Math.floor(E*i[B]/s),L=A+Math.floor(E*i[B+1]/s)-1;for(;!((I^L)&p);)y=y<<1&m|u(),I=I<<1&m,L=L<<1&m|1;for(;I&~L&g;)y=y&p|y<<1&m>>>1|u(),I=I<<1^p,L=(L^p)<<1|p|1;A=I,E=1+L-I}let w=n-4;return v.map(C=>{switch(C-w){case 3:return w+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return w+256+(t[a++]<<8|t[a++]);case 1:return w+t[a++];default:return C-1}})}function Oz(t){let e=0;return()=>t[e++]}function GS(t){return Oz(Iz(Bz(t)))}function Bz(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<r;s++)a=a<<6|e[t.charCodeAt(s)],o+=6,o>=8&&(n[i++]=a>>(o-=8));return n}function Uz(t){return t&1?~t>>1:t>>1}function Mz(t,e){let r=Array(t);for(let n=0,s=0;n<t;n++)r[n]=s+=Uz(e());return r}function u0(t,e=0){let r=[];for(;;){let n=t(),s=t();if(!s)break;e+=n;for(let i=0;i<s;i++)r.push(e+i);e+=s+1}return r}function zS(t){return h0(()=>{let e=u0(t);if(e.length)return e})}function $S(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(Fz(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(Lz(r,t))}return e.flat()}function h0(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function HS(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;s<e;s++)Mz(t,r).forEach((i,o)=>n[o].push(i));return n}function Fz(t,e){let r=1+e(),n=e(),s=h0(e);return HS(s.length,1+t,e).flatMap((i,o)=>{let[a,...c]=i;return Array(s[o]).fill().map((l,u)=>{let d=u*n;return[a+u*r,c.map(h=>h+d)]})})}function Lz(t,e){let r=1+e();return HS(r,1+t,e).map(n=>[n[0],n.slice(1)])}function Vz(t){let e=[],r=u0(t);return s(n([]),[]),e;function n(i){let o=t(),a=h0(()=>{let c=u0(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 Dz(t){return t.toString(16).toUpperCase().padStart(2,"0")}function ZS(t){return`{${Dz(t)}}`}function I4(t){let e=[];for(let r=0,n=t.length;r<n;){let s=t.codePointAt(r);r+=s<65536?1:2,e.push(s)}return e}function Ic(t){let e=t.length;if(e<4096)return String.fromCodePoint(...t);let r=[];for(let n=0;n<e;)r.push(String.fromCodePoint(...t.slice(n,n+=4096)));return r.join("")}function JS(t,e){let r=t.length,n=r-e.length;for(let s=0;n==0&&s<r;s++)n=t[s]-e[s];return n}var Wz="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2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y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";const d0=44032,W2=4352,j2=4449,G2=4519,QS=19,YS=21,bd=28,z2=YS*bd,jz=QS*z2,Gz=d0+jz,zz=W2+QS,$z=j2+YS,Hz=G2+bd;function f0(t){return t>>24&255}function KS(t){return t&16777215}let O4,qS,B4,$2;function Zz(){let t=GS(Wz);O4=new Map(zS(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),qS=new Set(u0(t)),B4=new Map,$2=new Map;for(let[e,r]of $S(t)){if(!qS.has(e)&&r.length==2){let[n,s]=r,i=$2.get(n);i||(i=new Map,$2.set(n,i)),i.set(s,e)}B4.set(e,r.reverse())}}function XS(t){return t>=d0&&t<Gz}function Jz(t,e){if(t>=W2&&t<zz&&e>=j2&&e<$z)return d0+(t-W2)*z2+(e-j2)*bd;if(XS(t)&&e>G2&&e<Hz&&(t-d0)%bd==0)return t+(e-G2);{let r=$2.get(t);return r&&(r=r.get(e),r)?r:-1}}function eC(t){O4||Zz();let e=[],r=[],n=!1;function s(i){let o=O4.get(i);o&&(n=!0,i|=o),e.push(i)}for(let i of t)for(;;){if(i<128)e.push(i);else if(XS(i)){let o=i-d0,a=o/z2|0,c=o%z2/bd|0,l=o%bd;s(W2+a),s(j2+c),l>0&&s(G2+l)}else{let o=B4.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=f0(e[0]);for(let o=1;o<e.length;o++){let a=f0(e[o]);if(a==0||i<=a){i=a;continue}let c=o-1;for(;;){let l=e[c+1];if(e[c+1]=e[c],e[c]=l,!c||(i=f0(e[--c]),i<=a))break}i=f0(e[o])}}return e}function Qz(t){let e=[],r=[],n=-1,s=0;for(let i of t){let o=f0(i),a=KS(i);if(n==-1)o==0?n=a:e.push(a);else if(s>0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),s=o;else{let c=Jz(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 H2(t){return eC(t).map(KS)}function wd(t){return Qz(eC(t))}const tC=45,Yz=46,Z2=".",rC=65039,nC=1,J2=t=>Array.from(t);function p0(t,e){return t.P.has(e)||t.Q.has(e)}class Kz extends Array{get is_emoji(){return!0}}let Q2,U4,tu,M4,sC,iC,kd,F4,Ed,Oc,L4,V4;function Ad(){if(Q2)return;let t=GS(Nz);const e=()=>u0(t),r=()=>new Set(e()),n=(u,d)=>d.forEach(h=>u.add(h));Q2=new Map($S(t)),U4=r(),tu=e(),M4=new Set(e().map(u=>tu[u])),tu=new Set(tu),sC=r(),iC=r();let s=zS(t),i=t();const o=()=>{let u=new Set;return e().forEach(d=>n(u,s[d])),n(u,e()),u};kd=h0(u=>{let d=h0(t).map(h=>h+96);if(d.length){let h=u>=i;d[0]-=32,d=Ic(d),h&&(d=`Restricted[${d}]`);let p=o(),g=o(),m=!t();return{N:d,P:p,Q:g,M:m,R:h}}}),F4=r(),Ed=new Map;let a=e().concat(J2(F4)).sort((u,d)=>u-d);a.forEach((u,d)=>{let h=t(),p=a[d]=h?a[d-h]:{V:[],M:new Map};p.V.push(u),F4.has(u)||Ed.set(u,p)});for(let{V:u,M:d}of new Set(Ed.values())){let h=[];for(let g of u){let m=kd.filter(v=>p0(v,g)),y=h.find(({G:v})=>m.some(A=>v.has(A)));y||(y={G:new Set,V:[]},h.push(y)),y.V.push(g),n(y.G,m)}let p=h.flatMap(g=>J2(g.G));for(let{G:g,V:m}of h){let y=new Set(p.filter(v=>!g.has(v)));for(let v of m)d.set(v,y)}}Oc=new Set;let c=new Set;const l=u=>Oc.has(u)?c.add(u):Oc.add(u);for(let u of kd){for(let d of u.P)l(d);for(let d of u.Q)l(d)}for(let u of Oc)!Ed.has(u)&&!c.has(u)&&Ed.set(u,nC);n(Oc,H2(Oc)),L4=Vz(t).map(u=>Kz.from(u)).sort(JS),V4=new Map;for(let u of L4){let d=[V4];for(let h of u){let p=d.map(g=>{let m=g.get(h);return m||(m=new Map,g.set(h,m)),m});h===rC?d.push(...p):d=p}for(let h of d)h.V=u}}function D4(t){return(j4(t)?"":`${W4(g0([t]))} `)+ZS(t)}function W4(t){return`"${t}"‎`}function qz(t){if(t.length>=4&&t[2]==tC&&t[3]==tC)throw new Error(`invalid label extension: "${Ic(t.slice(0,4))}"`)}function Xz(t){for(let e=t.lastIndexOf(95);e>0;)if(t[--e]!==95)throw new Error("underscore allowed only at start")}function e$(t){let e=t[0],r=WS.get(e);if(r)throw m0(`leading ${r}`);let n=t.length,s=-1;for(let i=1;i<n;i++){e=t[i];let o=WS.get(e);if(o){if(s==i)throw m0(`${r} + ${o}`);s=i+1,r=o}}if(s==n)throw m0(`trailing ${r}`)}function g0(t,e=1/0,r=ZS){let n=[];oC(t[0])&&n.push("◌"),t.length>e&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let s=0,i=t.length;for(let o=0;o<i;o++){let a=t[o];j4(a)&&(n.push(Ic(t.slice(s,o))),n.push(r(a)),s=o+1)}return n.push(Ic(t.slice(s,i))),n.join("")}function oC(t){return Ad(),tu.has(t)}function j4(t){return Ad(),sC.has(t)}function t$(){return Ad(),L4.map(t=>t.slice())}function r$(t,e){Ad();let r=e?H2:wd;return t.split(Z2).map(n=>Ic(hC(I4(n),r,Y2).flat())).join(Z2)}function aC(t){return cC(G4(t,wd,Y2))}function n$(t){let e=G4(t,wd,r=>r);for(let{type:r,output:n,error:s}of e){if(s)break;r!=="Greek"&&s$(n,958,926)}return cC(e)}function s$(t,e,r){let n=0;for(;;){let s=t.indexOf(e,n);if(s<0)break;t[s]=r,n=s+1}}function i$(t,e){return G4(t,wd,e?r=>r.slice():Y2)}function G4(t,e,r){if(!t)return[];Ad();let n=0;return t.split(Z2).map(s=>{let i=I4(s),o={input:i,offset:n};n+=i.length+1;try{let a=o.tokens=hC(i,e,r),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(Xz(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))qz(u),l="ASCII";else{let d=a.flatMap(h=>h.is_emoji?[]:h);if(!d.length)l="Emoji";else{if(tu.has(u[0]))throw m0("leading combining mark");for(let g=1;g<c;g++){let m=a[g];if(!m.is_emoji&&tu.has(m[0]))throw m0(`emoji + combining mark: "${Ic(a[g-1])} + ${g0([m[0]])}"`)}e$(u);let h=J2(new Set(d)),[p]=a$(h);c$(p,d),o$(p,h),l=p.N}}o.type=l}catch(a){o.error=a}return o})}function o$(t,e){let r,n=[];for(let s of e){let i=Ed.get(s);if(i===nC)return;if(i){let o=i.M.get(s);if(r=r?r.filter(a=>o.has(a)):J2(o),!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>p0(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function a$(t){let e=kd;for(let r of t){let n=e.filter(s=>p0(s,r));if(!n.length)throw kd.some(s=>p0(s,r))?uC(e[0],r):lC(r);if(e=n,n.length==1)break}return e}function cC(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 ${W4(g0(e,63))}: ${s}`)}return Ic(n)}).join(Z2)}function lC(t){return new Error(`disallowed character: ${D4(t)}`)}function uC(t,e){let r=D4(e),n=kd.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function m0(t){return new Error(`illegal placement: ${t}`)}function c$(t,e){for(let r of e)if(!p0(t,r))throw uC(t,r);if(t.M){let r=H2(e);for(let n=1,s=r.length;n<s;n++)if(M4.has(r[n])){let i=n+1;for(let o;i<s&&M4.has(o=r[i]);i++)for(let a=n;a<i;a++)if(r[a]==o)throw new Error(`duplicate non-spacing marks: ${D4(o)}`);if(i-n>jS)throw new Error(`excessive non-spacing marks: ${W4(g0(r.slice(n-1,i)))} (${i-n}/${jS})`);n=i}}}function hC(t,e,r){let n=[],s=[];for(t=t.slice().reverse();t.length;){let i=dC(t);if(i)s.length&&(n.push(e(s)),s=[]),n.push(r(i));else{let o=t.pop();if(Oc.has(o))s.push(o);else{let a=Q2.get(o);if(a)s.push(...a);else if(!U4.has(o))throw lC(o)}}}return s.length&&n.push(e(s)),n}function Y2(t){return t.filter(e=>e!=rC)}function dC(t,e){let r=V4,n,s=t.length;for(;s&&(r=r.get(t[--s]),!!r);){let{V:i}=r;i&&(n=i,e&&e.push(...t.slice(s).reverse()),t.length=s)}return n}const y0="valid",fC="mapped",z4="ignored",l$="disallowed",u$="emoji",h$="nfc",d$="stop";function pC(t,{nf:e=!0}={}){Ad();let r=I4(t).reverse(),n=[],s=[];for(;r.length;){let i=dC(r,n);if(i)s.push({type:u$,emoji:i.slice(),input:n,cps:Y2(i)}),n=[];else{let o=r.pop();if(o==Yz)s.push({type:d$,cp:o});else if(Oc.has(o))s.push({type:y0,cps:[o]});else if(U4.has(o))s.push({type:z4,cp:o});else{let a=Q2.get(o);a?s.push({type:fC,cp:o,cps:a.slice()}):s.push({type:l$,cp:o})}}}if(e)for(let i=0,o=-1;i<s.length;i++){let a=s[i];if($4(a.type))if(gC(a.cps)){let c=i+1;for(let h=c;h<s.length;h++){let{type:p,cps:g}=s[h];if($4(p)){if(!gC(g))break;c=h+1}else if(p!==z4)break}o<0&&(o=i);let l=s.slice(o,c),u=l.flatMap(h=>$4(h.type)?h.cps:[]),d=wd(u);JS(d,u)?(s.splice(o,c-o,{type:h$,input:u,cps:d,tokens0:mC(l),tokens:pC(Ic(d),{nf:!1})}),i=o):i=c-1,o=-1}else o=i;else a.type!==z4&&(o=-1)}return mC(s)}function $4(t){return t==y0||t==fC}function gC(t){return t.some(e=>iC.has(e))}function mC(t){for(let e=0;e<t.length;e++)if(t[e].type==y0){let r=e+1;for(;r<t.length&&t[r].type==y0;)r++;t.splice(e,r-e,{type:y0,cps:t.slice(e,r).flatMap(n=>n.cps)})}return t}const f$=Object.freeze(Object.defineProperty({__proto__:null,ens_beautify:n$,ens_emoji:t$,ens_normalize:aC,ens_normalize_fragment:r$,ens_split:i$,ens_tokenize:pC,is_combining_mark:oC,nfc:wd,nfd:H2,safe_str_from_cps:g0,should_escape:j4},Symbol.toStringTag,{value:"Module"})),yC=new Uint8Array(32);yC.fill(0);function vC(t){return pe(t.length!==0,"invalid ENS name; empty component","comp",t),t}function H4(t){const e=qr(Z4(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s<e.length;s++)e[s]===46&&(r.push(vC(e.slice(n,s))),n=s+1);return pe(n<e.length,"invalid ENS name; empty component","name",t),r.push(vC(e.slice(n))),r}function Z4(t){try{if(t.length===0)throw new Error("empty label");return aC(t)}catch(e){pe(!1,`invalid ENS name (${e.message})`,"name",t)}}function bC(t){try{return H4(t).length!==0}catch{}return!1}function v0(t){pe(typeof t=="string","invalid ENS name; not a string","name",t),pe(t.length,"invalid ENS name (empty label)","name",t);let e=yC;const r=H4(t);for(;r.length;)e=hr($t([e,hr(r.pop())]));return Ze(e)}function J4(t,e){const r=e??63;return pe(r<=255,"DNS encoded label cannot exceed 255","length",r),Ze($t(H4(t).map(n=>{pe(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 Q4(t,e){return{address:Bt(t),storageKeys:e.map((r,n)=>(pe(lr(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function So(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(pe(r.length===2,"invalid slot set",`value[${n}]`,r),Q4(r[0],r[1])):(pe(r!=null&&typeof r=="object","invalid address-slot set","value",t),Q4(r.address,r.storageKeys)));pe(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 Q4(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function ru(t){let e;return typeof t=="string"?e=_o.computePublicKey(t,!1):e=t.publicKey,Bt(hr("0x"+e.substring(4)).substring(26))}function b0(t,e){return ru(_o.recoverPublicKey(t,e))}const gn=BigInt(0),p$=BigInt(2),g$=BigInt(27),m$=BigInt(28),y$=BigInt(35),v$=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Y4=4096*32;function wC(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=Fn(e).substring(4),"0x"+r}function K2(t){return t==="0x"?null:Bt(t)}function K4(t,e){try{return So(t)}catch(r){pe(!1,r.message,e,t)}}function w0(t,e){return t==="0x"?0:mt(t,e)}function zr(t,e){if(t==="0x")return gn;const r=ct(t,e);return pe(r<=v$,"value exceeds uint size",e,r),r}function kr(t,e){const r=ct(t,"value"),n=on(r);return pe(n.length<=32,"value too large",`tx.${e}`,r),n}function q4(t){return So(t).map(e=>[e.address,e.storageKeys])}function b$(t,e){pe(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;r<t.length;r++)pe(lr(t[r],32),"invalid ${ param } hash",`value[${r}]`,t[r]);return t}function w$(t){const e=ad(t);pe(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",t);const r={type:0,nonce:w0(e[0],"nonce"),gasPrice:zr(e[1],"gasPrice"),gasLimit:zr(e[2],"gasLimit"),to:K2(e[3]),value:zr(e[4],"value"),data:Ze(e[5]),chainId:gn};if(e.length===6)return r;const n=zr(e[6],"v"),s=zr(e[7],"r"),i=zr(e[8],"s");if(s===gn&&i===gn)r.chainId=n;else{let o=(n-y$)/p$;o<gn&&(o=gn),r.chainId=o,pe(o!==gn||n===g$||n===m$,"non-canonical legacy v","v",e[6]),r.signature=Pi.from({r:Hs(e[7],32),s:Hs(e[8],32),v:n})}return r}function k$(t,e){const r=[kr(t.nonce,"nonce"),kr(t.gasPrice||0,"gasPrice"),kr(t.gasLimit,"gasLimit"),t.to||"0x",kr(t.value,"value"),t.data];let n=gn;if(t.chainId!=gn)n=ct(t.chainId,"tx.chainId"),pe(!e||e.networkV==null||e.legacyChainId===n,"tx.chainId/sig.v mismatch","sig",e);else if(t.signature){const i=t.signature.legacyChainId;i!=null&&(n=i)}if(!e)return n!==gn&&(r.push(on(n)),r.push("0x"),r.push("0x")),ha(r);let s=BigInt(27+e.yParity);return n!==gn?s=Pi.getChainIdV(n,e.v):BigInt(e.v)!==s&&pe(!1,"tx.chainId/sig.v mismatch","sig",e),r.push(on(s)),r.push(on(e.r)),r.push(on(e.s)),ha(r)}function X4(t,e){let r;try{if(r=w0(e[0],"yParity"),r!==0&&r!==1)throw new Error("bad yParity")}catch{pe(!1,"invalid yParity","yParity",e[0])}const n=Hs(e[1],32),s=Hs(e[2],32),i=Pi.from({r:n,s,yParity:r});t.signature=i}function E$(t){const e=ad(qe(t).slice(1));pe(Array.isArray(e)&&(e.length===9||e.length===12),"invalid field count for transaction type: 2","data",Ze(t));const r={type:2,chainId:zr(e[0],"chainId"),nonce:w0(e[1],"nonce"),maxPriorityFeePerGas:zr(e[2],"maxPriorityFeePerGas"),maxFeePerGas:zr(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:zr(e[4],"gasLimit"),to:K2(e[5]),value:zr(e[6],"value"),data:Ze(e[7]),accessList:K4(e[8],"accessList")};return e.length===9||X4(r,e.slice(9)),r}function A$(t,e){const r=[kr(t.chainId,"chainId"),kr(t.nonce,"nonce"),kr(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),kr(t.maxFeePerGas||0,"maxFeePerGas"),kr(t.gasLimit,"gasLimit"),t.to||"0x",kr(t.value,"value"),t.data,q4(t.accessList||[])];return e&&(r.push(kr(e.yParity,"yParity")),r.push(on(e.r)),r.push(on(e.s))),$t(["0x02",ha(r)])}function _$(t){const e=ad(qe(t).slice(1));pe(Array.isArray(e)&&(e.length===8||e.length===11),"invalid field count for transaction type: 1","data",Ze(t));const r={type:1,chainId:zr(e[0],"chainId"),nonce:w0(e[1],"nonce"),gasPrice:zr(e[2],"gasPrice"),gasLimit:zr(e[3],"gasLimit"),to:K2(e[4]),value:zr(e[5],"value"),data:Ze(e[6]),accessList:K4(e[7],"accessList")};return e.length===8||X4(r,e.slice(8)),r}function S$(t,e){const r=[kr(t.chainId,"chainId"),kr(t.nonce,"nonce"),kr(t.gasPrice||0,"gasPrice"),kr(t.gasLimit,"gasLimit"),t.to||"0x",kr(t.value,"value"),t.data,q4(t.accessList||[])];return e&&(r.push(kr(e.yParity,"recoveryParam")),r.push(on(e.r)),r.push(on(e.s))),$t(["0x01",ha(r)])}function C$(t){let e=ad(qe(t).slice(1)),r="3",n=null;if(e.length===4&&Array.isArray(e[0])){r="3 (network format)";const i=e[1],o=e[2],a=e[3];pe(Array.isArray(i),"invalid network format: blobs not an array","fields[1]",i),pe(Array.isArray(o),"invalid network format: commitments not an array","fields[2]",o),pe(Array.isArray(a),"invalid network format: proofs not an array","fields[3]",a),pe(i.length===o.length,"invalid network format: blobs/commitments length mismatch","fields",e),pe(i.length===a.length,"invalid network format: blobs/proofs length mismatch","fields",e),n=[];for(let c=0;c<e[1].length;c++)n.push({data:i[c],commitment:o[c],proof:a[c]});e=e[0]}pe(Array.isArray(e)&&(e.length===11||e.length===14),`invalid field count for transaction type: ${r}`,"data",Ze(t));const s={type:3,chainId:zr(e[0],"chainId"),nonce:w0(e[1],"nonce"),maxPriorityFeePerGas:zr(e[2],"maxPriorityFeePerGas"),maxFeePerGas:zr(e[3],"maxFeePerGas"),gasPrice:null,gasLimit:zr(e[4],"gasLimit"),to:K2(e[5]),value:zr(e[6],"value"),data:Ze(e[7]),accessList:K4(e[8],"accessList"),maxFeePerBlobGas:zr(e[9],"maxFeePerBlobGas"),blobVersionedHashes:e[10]};n&&(s.blobs=n),pe(s.to!=null,`invalid address for transaction type: ${r}`,"data",t),pe(Array.isArray(s.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",t);for(let i=0;i<s.blobVersionedHashes.length;i++)pe(lr(s.blobVersionedHashes[i],32),`invalid blobVersionedHash at index ${i}: must be length 32`,"data",t);return e.length===11||X4(s,e.slice(11)),s}function T$(t,e,r){const n=[kr(t.chainId,"chainId"),kr(t.nonce,"nonce"),kr(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),kr(t.maxFeePerGas||0,"maxFeePerGas"),kr(t.gasLimit,"gasLimit"),t.to||eu,kr(t.value,"value"),t.data,q4(t.accessList||[]),kr(t.maxFeePerBlobGas||0,"maxFeePerBlobGas"),b$(t.blobVersionedHashes||[],"blobVersionedHashes")];return e&&(n.push(kr(e.yParity,"yParity")),n.push(on(e.r)),n.push(on(e.s)),r)?$t(["0x03",ha([n,r.map(s=>s.data),r.map(s=>s.commitment),r.map(s=>s.proof)])]):$t(["0x03",ha(n)])}var va,k0,E0,A0,_0,S0,C0,T0,R0,P0,x0,N0,_d,nu,Bc,su,I0,q2;const R$=class Cl{constructor(){ne(this,I0),ne(this,va),ne(this,k0),ne(this,E0),ne(this,A0),ne(this,_0),ne(this,S0),ne(this,C0),ne(this,T0),ne(this,R0),ne(this,P0),ne(this,x0),ne(this,N0),ne(this,_d),ne(this,nu),ne(this,Bc),ne(this,su),V(this,va,null),V(this,k0,null),V(this,A0,0),V(this,_0,gn),V(this,S0,null),V(this,C0,null),V(this,T0,null),V(this,E0,"0x"),V(this,R0,gn),V(this,P0,gn),V(this,x0,null),V(this,N0,null),V(this,_d,null),V(this,nu,null),V(this,su,null),V(this,Bc,null)}get type(){return S(this,va)}set type(e){switch(e){case null:V(this,va,null);break;case 0:case"legacy":V(this,va,0);break;case 1:case"berlin":case"eip-2930":V(this,va,1);break;case 2:case"london":case"eip-1559":V(this,va,2);break;case 3:case"cancun":case"eip-4844":V(this,va,3);break;default:pe(!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=S(this,k0);return e==null&&this.type===3?eu:e}set to(e){V(this,k0,e==null?null:Bt(e))}get nonce(){return S(this,A0)}set nonce(e){V(this,A0,mt(e,"value"))}get gasLimit(){return S(this,_0)}set gasLimit(e){V(this,_0,ct(e))}get gasPrice(){const e=S(this,S0);return e==null&&(this.type===0||this.type===1)?gn:e}set gasPrice(e){V(this,S0,e==null?null:ct(e,"gasPrice"))}get maxPriorityFeePerGas(){return S(this,C0)??(this.type===2||this.type===3?gn:null)}set maxPriorityFeePerGas(e){V(this,C0,e==null?null:ct(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){return S(this,T0)??(this.type===2||this.type===3?gn:null)}set maxFeePerGas(e){V(this,T0,e==null?null:ct(e,"maxFeePerGas"))}get data(){return S(this,E0)}set data(e){V(this,E0,Ze(e))}get value(){return S(this,R0)}set value(e){V(this,R0,ct(e,"value"))}get chainId(){return S(this,P0)}set chainId(e){V(this,P0,ct(e))}get signature(){return S(this,x0)||null}set signature(e){V(this,x0,e==null?null:Pi.from(e))}get accessList(){return(S(this,N0)||null)??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){V(this,N0,e==null?null:So(e))}get maxFeePerBlobGas(){const e=S(this,_d);return e==null&&this.type===3?gn:e}set maxFeePerBlobGas(e){V(this,_d,e==null?null:ct(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=S(this,nu);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){pe(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;r<e.length;r++)pe(lr(e[r],32),"invalid blobVersionedHash",`value[${r}]`,e[r])}V(this,nu,e)}get blobs(){return S(this,su)==null?null:S(this,su).map(e=>Object.assign({},e))}set blobs(e){if(e==null){V(this,su,null);return}const r=[],n=[];for(let s=0;s<e.length;s++){const i=e[s];if(Jh(i)){Be(S(this,Bc),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let o=qe(i);if(pe(o.length<=Y4,"blob is too large",`blobs[${s}]`,i),o.length!==Y4){const l=new Uint8Array(Y4);l.set(o),o=l}const a=S(this,Bc).blobToKzgCommitment(o),c=Ze(S(this,Bc).computeBlobKzgProof(o,a));r.push({data:Ze(o),commitment:Ze(a),proof:c}),n.push(wC(1,a))}else{const o=Ze(i.commitment);r.push({data:Ze(i.data),commitment:o,proof:Ze(i.proof)}),n.push(wC(1,o))}}V(this,su,r),V(this,nu,n)}get kzg(){return S(this,Bc)}set kzg(e){V(this,Bc,e)}get hash(){return this.signature==null?null:hr(ve(this,I0,q2).call(this,!0,!1))}get unsignedHash(){return hr(this.unsignedSerialized)}get from(){return this.signature==null?null:b0(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:_o.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){return ve(this,I0,q2).call(this,!0,!0)}get unsignedSerialized(){return ve(this,I0,q2).call(this,!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,s=S(this,_d)!=null||S(this,nu);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&Be(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),Be(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),Be(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 Cl.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 Cl;if(typeof e=="string"){const n=qe(e);if(n[0]>=127)return Cl.from(w$(n));switch(n[0]){case 1:return Cl.from(_$(n));case 2:return Cl.from(E$(n));case 3:return Cl.from(C$(n))}Be(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new Cl;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=Pi.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&&(pe(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),pe(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(pe(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),pe(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};va=new WeakMap,k0=new WeakMap,E0=new WeakMap,A0=new WeakMap,_0=new WeakMap,S0=new WeakMap,C0=new WeakMap,T0=new WeakMap,R0=new WeakMap,P0=new WeakMap,x0=new WeakMap,N0=new WeakMap,_d=new WeakMap,nu=new WeakMap,Bc=new WeakMap,su=new WeakMap,I0=new WeakSet,q2=function(t,e){Be(!t||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const r=t?this.signature:null;switch(this.inferType()){case 0:return k$(this,r);case 1:return S$(this,r);case 2:return A$(this,r);case 3:return T$(this,r,e?this.blobs:null)}Be(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let Sd=R$;function X2(t){return typeof t=="string"&&(t=qr(t)),hr($t([qr(P4),qr(String(t.length)),t]))}function kC(t,e){const r=X2(t);return b0(r,e)}const P$=new RegExp("^bytes([0-9]+)$"),x$=new RegExp("^(u?int)([0-9]*)$"),N$=new RegExp("^(.*)\\[([0-9]*)\\]$");function EC(t,e,r){switch(t){case"address":return qe(r?Hs(e,32):Bt(e));case"string":return qr(e);case"bytes":return qe(e);case"bool":return e=e?"0x01":"0x00",qe(r?Hs(e,32):e)}let n=t.match(x$);if(n){let s=n[1]==="int",i=parseInt(n[2]||"256");return pe((!n[2]||n[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),r&&(i=256),s&&(e=Wp(e,i)),qe(Hs(on(e),i/8))}if(n=t.match(P$),n){const s=parseInt(n[1]);return pe(String(s)===n[1]&&s!==0&&s<=32,"invalid bytes type","type",t),pe(ia(e)===s,`invalid value for ${t}`,"value",e),r?qe(Dp(e,32)):e}if(n=t.match(N$),n&&Array.isArray(e)){const s=n[1],i=parseInt(n[2]||String(e.length));pe(i===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(EC(s,a,!0))}),qe($t(o))}pe(!1,"invalid type","type",t)}function ey(t,e){pe(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,s){r.push(EC(n,e[s]))}),Ze($t(r))}function AC(t,e){return hr(ey(t,e))}function _C(t,e){return Fn(ey(t,e))}const SC=new Uint8Array(32);SC.fill(0);const I$=BigInt(-1),CC=BigInt(0),TC=BigInt(1),O$=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function B$(t){const e=qe(t),r=e.length%32;return r?$t([e,SC.slice(r)]):Ze(e)}const U$=Zs(TC,32),M$=Zs(CC,32),RC={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},e5=["name","version","chainId","verifyingContract","salt"];function PC(t){return function(e){return pe(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const F$={name:PC("name"),version:PC("version"),chainId:function(t){const e=ct(t,"domain.chainId");return pe(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):aa(e)},verifyingContract:function(t){try{return Bt(t).toLowerCase()}catch{}pe(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=qe(t,"domain.salt");return pe(e.length===32,'invalid domain value "salt"',"domain.salt",t),Ze(e)}};function t5(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);pe(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const s=oa(O$,r?n-1:n),i=r?(s+TC)*I$:CC;return function(o){const a=ct(o,"value");return pe(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),Zs(r?Wp(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return pe(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=qe(n);return pe(s.length===r,`invalid length for ${t}`,"value",n),B$(n)}}}switch(t){case"address":return function(e){return Hs(Bt(e),32)};case"bool":return function(e){return e?U$:M$};case"bytes":return function(e){return hr(e)};case"string":return function(e){return xi(e)}}return null}function xC(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function ty(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 ry,Uc,O0,r5,NC;const L$=class so{constructor(e){ne(this,r5),X(this,"primaryType"),ne(this,ry),ne(this,Uc),ne(this,O0),V(this,Uc,new Map),V(this,O0,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:d,index:h}=ty(u);return d==="int"&&!e.int&&(d="int256"),d==="uint"&&!e.uint&&(d="uint256"),{name:l,type:d+(h||"")}}),r.set(c,new Set),n.set(c,[]),s.set(c,new Set)}),V(this,ry,JSON.stringify(i));for(const c in i){const l=new Set;for(const u of i[c]){pe(!l.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(c)}`,"types",e),l.add(u.name);const d=ty(u.type).base;pe(d!==c,`circular type reference to ${JSON.stringify(d)}`,"types",e),!t5(d)&&(pe(n.has(d),`unknown type ${JSON.stringify(d)}`,"types",e),n.get(d).push(c),r.get(c).add(d))}}const o=Array.from(n.keys()).filter(c=>n.get(c).length===0);pe(o.length!==0,"missing primary type","types",e),pe(o.length===1,`ambiguous primary types or unused types: ${o.map(c=>JSON.stringify(c)).join(", ")}`,"types",e),rt(this,{primaryType:o[0]});function a(c,l){pe(!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 d of l)s.get(d).add(u)}l.delete(c)}a(this.primaryType,new Set);for(const[c,l]of s){const u=Array.from(l);u.sort(),S(this,Uc).set(c,xC(c,i[c])+u.map(d=>xC(d,i[d])).join(""))}}get types(){return JSON.parse(S(this,ry))}getEncoder(e){let r=S(this,O0).get(e);return r||(r=ve(this,r5,NC).call(this,e),S(this,O0).set(e,r)),r}encodeType(e){const r=S(this,Uc).get(e);return pe(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return hr(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(t5(e))return n(e,r);const s=ty(e).array;if(s)return pe(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),{});pe(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new so(e)}static getPrimaryType(e){return so.from(e).primaryType}static hashStruct(e,r,n){return so.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=RC[n];pe(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>e5.indexOf(n.name)-e5.indexOf(s.name)),so.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return $t(["0x1901",so.hashDomain(e),so.from(r).hash(n)])}static hash(e,r,n){return hr(so.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&&!lr(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=so.from(r);o.visit(n,(a,c)=>(a==="address"&&!lr(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){so.hashDomain(e);const s={},i=[];e5.forEach(c=>{const l=e[c];l!=null&&(s[c]=F$[c](l),i.push({name:c,type:RC[c]}))});const o=so.from(r);r=o.types;const a=Object.assign({},r);return pe(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 Ze(qe(l));if(c.match(/^u?int/))return ct(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return pe(typeof l=="string","invalid string","value",l),l}pe(!1,"unsupported type","type",c)})}}};ry=new WeakMap,Uc=new WeakMap,O0=new WeakMap,r5=new WeakSet,NC=function(t){{const n=t5(t);if(n)return n}const e=ty(t).array;if(e){const n=e.prefix,s=this.getEncoder(n);return i=>{pe(e.count===-1||e.count===i.length,`array length mismatch; expected length ${e.count}`,"value",i);let o=i.map(s);return S(this,Uc).has(n)&&(o=o.map(hr)),hr($t(o))}}const r=this.types[t];if(r){const n=xi(S(this,Uc).get(t));return s=>{const i=r.map(({name:o,type:a})=>{const c=this.getEncoder(a)(s[o]);return S(this,Uc).has(a)?hr(c):c});return i.unshift(n),$t(i)}}pe(!1,`unknown type: ${t}`,"type",t)};let iu=L$;function IC(t,e,r,n){return b0(iu.hash(t,e,r),n)}function Xn(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const V$="external public payable override",D$=Xn(V$.split(" ")),OC="constant external internal payable private public pure view override",W$=Xn(OC.split(" ")),BC="constructor error event fallback function receive struct",UC=Xn(BC.split(" ")),MC="calldata memory storage payable indexed",j$=Xn(MC.split(" ")),G$="tuple returns",z$=[BC,MC,G$,OC].join(" "),$$=Xn(z$.split(" ")),H$={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Z$=new RegExp("^(\\s*)"),J$=new RegExp("^([0-9]+)"),Q$=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),FC=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),LC=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var Dn,Co,ny,n5;const VC=class GV{constructor(e){ne(this,ny),ne(this,Dn),ne(this,Co),V(this,Dn,0),V(this,Co,e.slice())}get offset(){return S(this,Dn)}get length(){return S(this,Co).length-S(this,Dn)}clone(){return new GV(S(this,Co))}reset(){V(this,Dn,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=ve(this,ny,n5).call(this,S(this,Dn)+1,e.match+1);return V(this,Dn,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;S(this,Dn)<e.match-1;){const n=this.peek().linkNext;r.push(ve(this,ny,n5).call(this,S(this,Dn)+1,n)),V(this,Dn,n)}return V(this,Dn,e.match+1),r}peek(){if(S(this,Dn)>=S(this,Co).length)throw new Error("out-of-bounds");return S(this,Co)[S(this,Dn)]}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 yo(this,Dn)._++,e}toString(){const e=[];for(let r=S(this,Dn);r<S(this,Co).length;r++){const n=S(this,Co)[r];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}};Dn=new WeakMap,Co=new WeakMap,ny=new WeakSet,n5=function(t=0,e=0){return new VC(S(this,Co).slice(t,e).map(r=>Object.freeze(Object.assign({},r,{match:r.match-t,linkBack:r.linkBack-t,linkNext:r.linkNext-t}))))};let ba=VC;function Mc(t){const e=[],r=o=>{const a=i<t.length?JSON.stringify(t[i]):"$EOI";throw new Error(`invalid token ${a} at ${i}: ${o}`)};let n=[],s=[],i=0;for(;i<t.length;){let o=t.substring(i),a=o.match(Z$);a&&(i+=a[1].length,o=t.substring(i));const c={depth:n.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:i,value:-1};e.push(c);let l=H$[o[0]]||"";if(l){if(c.type=l,c.text=o[0],i++,l==="OPEN_PAREN")n.push(e.length-1),s.push(e.length-1);else if(l=="CLOSE_PAREN")n.length===0&&r("no matching open bracket"),c.match=n.pop(),e[c.match].match=e.length-1,c.depth--,c.linkBack=s.pop(),e[c.linkBack].linkNext=e.length-1;else if(l==="COMMA")c.linkBack=s.pop(),e[c.linkBack].linkNext=e.length-1,s.push(e.length-1);else if(l==="OPEN_BRACKET")c.type="BRACKET";else if(l==="CLOSE_BRACKET"){let u=e.pop().text;if(e.length>0&&e[e.length-1].type==="NUMBER"){const d=e.pop().text;u=d+u,e[e.length-1].value=mt(d)}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(Q$),a){if(c.text=a[1],i+=c.text.length,$$.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(LC)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(J$),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 ba(e.map(o=>Object.freeze(o)))}function DC(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 sy(t,e){if(e.peekKeyword(UC)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function wa(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 WC(t){let e=wa(t,W$);return DC(e,Xn("constant payable nonpayable".split(" "))),DC(e,Xn("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 ka(t,e){return t.popParams().map(r=>An.from(r,e))}function jC(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return ct(t.pop().text);throw new Error("invalid gas")}return null}function ou(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const Y$=new RegExp(/^(.*)\[([0-9]*)\]$/);function GC(t){const e=t.match(LC);if(pe(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);pe(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);pe(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const Mr={},ds=Symbol.for("_ethers_internal"),zC="_ParamTypeInternal",$C="_ErrorInternal",HC="_EventInternal",ZC="_ConstructorInternal",JC="_FallbackInternal",QC="_FunctionInternal",YC="_StructInternal";var B0,iy;const K$=class io{constructor(e,r,n,s,i,o,a,c){if(ne(this,B0),X(this,"name"),X(this,"type"),X(this,"baseType"),X(this,"indexed"),X(this,"components"),X(this,"arrayLength"),X(this,"arrayChildren"),vo(e,Mr,"ParamType"),Object.defineProperty(this,ds,{value:zC}),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("");rt(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 ve(this,B0,iy).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(io.isParamType(e))return e;if(typeof e=="string")try{return io.from(Mc(e),r)}catch{pe(!1,"invalid param type","obj",e)}else if(e instanceof ba){let a="",c="",l=null;wa(e,Xn(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(g=>io.from(g)),a=`tuple(${l.map(g=>g.format()).join(",")})`):(a=GC(e.popType("TYPE")),c=a);let u=null,d=null;for(;e.length&&e.peekType("BRACKET");){const g=e.pop();u=new io(Mr,"",a,c,null,l,d,u),d=g.value,a+=g.text,c="array",l=null}let h=null;if(wa(e,j$).has("indexed")){if(!r)throw new Error("");h=!0}const p=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new io(Mr,p,a,c,h,l,d,u)}const n=e.name;pe(!n||typeof n=="string"&&n.match(FC),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(pe(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(Y$);if(o){const a=parseInt(o[2]||"-1"),c=io.from({type:o[1],components:e.components});return new io(Mr,n||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(c=>io.from(c)):null;return new io(Mr,n||"",i,"tuple",s,a,null,null)}return i=GC(e.type),new io(Mr,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[ds]===zC}};B0=new WeakSet,iy=function(t,e,r,n){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 i=this.arrayChildren,o=e.slice();o.forEach((a,c)=>{var l;ve(l=i,B0,iy).call(l,t,a,r,u=>{o[c]=u})}),n(o);return}if(this.isTuple()){const i=this.components;let o;if(Array.isArray(e))o=e.slice();else{if(e==null||typeof e!="object")throw new Error("invalid tuple value");o=i.map(a=>{if(!a.name)throw new Error("cannot use object value with unnamed components");if(!(a.name in e))throw new Error(`missing value for component ${a.name}`);return e[a.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((a,c)=>{var l;ve(l=i[c],B0,iy).call(l,t,a,r,u=>{o[c]=u})}),n(o);return}const s=r(this.type,e);s.then?t.push(async function(){n(await s)}()):n(s)};let An=K$;class Ea{constructor(e,r,n){X(this,"type"),X(this,"inputs"),vo(e,Mr,"Fragment"),n=Object.freeze(n.slice()),rt(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{Ea.from(JSON.parse(e))}catch{}return Ea.from(Mc(e))}if(e instanceof ba)switch(e.peekKeyword(UC)){case"constructor":return Ii.from(e);case"error":return Ni.from(e);case"event":return qs.from(e);case"fallback":case"receive":return Oi.from(e);case"function":return Xs.from(e);case"struct":return Aa.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Ii.from(e);case"error":return Ni.from(e);case"event":return qs.from(e);case"fallback":case"receive":return Oi.from(e);case"function":return Xs.from(e);case"struct":return Aa.from(e)}Be(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}pe(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Ii.isFragment(e)}static isError(e){return Ni.isFragment(e)}static isEvent(e){return qs.isFragment(e)}static isFunction(e){return Xs.isFragment(e)}static isStruct(e){return Aa.isFragment(e)}}class Cd extends Ea{constructor(e,r,n,s){super(e,r,s),X(this,"name"),pe(typeof n=="string"&&n.match(FC),"invalid identifier","name",n),s=Object.freeze(s.slice()),rt(this,{name:n})}}function U0(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}let Ni=class Bm extends Cd{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,ds,{value:$C})}get selector(){return xi(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+U0(e,this.inputs)),r.join(" ")}static from(e){if(Bm.isFragment(e))return e;if(typeof e=="string")return Bm.from(Mc(e));if(e instanceof ba){const r=sy("error",e),n=ka(e);return ou(e),new Bm(Mr,r,n)}return new Bm(Mr,e.name,e.inputs?e.inputs.map(An.from):[])}static isFragment(e){return e&&e[ds]===$C}};class qs extends Cd{constructor(e,r,n,s){super(e,"event",r,n),X(this,"anonymous"),Object.defineProperty(this,ds,{value:HC}),rt(this,{anonymous:s})}get topicHash(){return xi(this.format("sighash"))}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("event"),r.push(this.name+U0(e,this.inputs)),e!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(e,r){return r=(r||[]).map(n=>An.from(n)),new qs(Mr,e,r,!1).topicHash}static from(e){if(qs.isFragment(e))return e;if(typeof e=="string")try{return qs.from(Mc(e))}catch{pe(!1,"invalid event fragment","obj",e)}else if(e instanceof ba){const r=sy("event",e),n=ka(e,!0),s=!!wa(e,Xn(["anonymous"])).has("anonymous");return ou(e),new qs(Mr,r,n,s)}return new qs(Mr,e.name,e.inputs?e.inputs.map(r=>An.from(r,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[ds]===HC}}class Ii extends Ea{constructor(e,r,n,s,i){super(e,r,n),X(this,"payable"),X(this,"gas"),Object.defineProperty(this,ds,{value:ZC}),rt(this,{payable:s,gas:i})}format(e){if(Be(e!=null&&e!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),e==="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(n=>JSON.parse(n.format(e)))});const r=[`constructor${U0(e,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(e){if(Ii.isFragment(e))return e;if(typeof e=="string")try{return Ii.from(Mc(e))}catch{pe(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof ba){wa(e,Xn(["constructor"]));const r=ka(e),n=!!wa(e,D$).has("payable"),s=jC(e);return ou(e),new Ii(Mr,"constructor",r,n,s)}return new Ii(Mr,"constructor",e.inputs?e.inputs.map(An.from):[],!!e.payable,e.gas!=null?e.gas:null)}static isFragment(e){return e&&e[ds]===ZC}}class Oi extends Ea{constructor(e,r,n){super(e,"fallback",r),X(this,"payable"),Object.defineProperty(this,ds,{value:JC}),rt(this,{payable:n})}format(e){const r=this.inputs.length===0?"receive":"fallback";if(e==="json"){const n=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:n})}return`${r}()${this.payable?" payable":""}`}static from(e){if(Oi.isFragment(e))return e;if(typeof e=="string")try{return Oi.from(Mc(e))}catch{pe(!1,"invalid fallback fragment","obj",e)}else if(e instanceof ba){const r=e.toString(),n=e.peekKeyword(Xn(["fallback","receive"]));if(pe(n,"type must be fallback or receive","obj",r),e.popKeyword(Xn(["fallback","receive"]))==="receive"){const o=ka(e);return pe(o.length===0,"receive cannot have arguments","obj.inputs",o),wa(e,Xn(["payable"])),ou(e),new Oi(Mr,[],!0)}let s=ka(e);s.length?pe(s.length===1&&s[0].type==="bytes","invalid fallback inputs","obj.inputs",s.map(o=>o.format("minimal")).join(", ")):s=[An.from("bytes")];const i=WC(e);if(pe(i==="nonpayable"||i==="payable","fallback cannot be constants","obj.stateMutability",i),wa(e,Xn(["returns"])).has("returns")){const o=ka(e);pe(o.length===1&&o[0].type==="bytes","invalid fallback outputs","obj.outputs",o.map(a=>a.format("minimal")).join(", "))}return ou(e),new Oi(Mr,s,i==="payable")}if(e.type==="receive")return new Oi(Mr,[],!0);if(e.type==="fallback"){const r=[An.from("bytes")],n=e.stateMutability==="payable";return new Oi(Mr,r,n)}pe(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[ds]===JC}}class Xs extends Cd{constructor(e,r,n,s,i,o){super(e,"function",r,s),X(this,"constant"),X(this,"outputs"),X(this,"stateMutability"),X(this,"payable"),X(this,"gas"),Object.defineProperty(this,ds,{value:QC}),i=Object.freeze(i.slice()),rt(this,{constant:n==="view"||n==="pure",gas:o,outputs:i,payable:n==="payable",stateMutability:n})}get selector(){return xi(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="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(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("function"),r.push(this.name+U0(e,this.inputs)),e!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(U0(e,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(e,r){return r=(r||[]).map(n=>An.from(n)),new Xs(Mr,e,"view",r,[],null).selector}static from(e){if(Xs.isFragment(e))return e;if(typeof e=="string")try{return Xs.from(Mc(e))}catch{pe(!1,"invalid function fragment","obj",e)}else if(e instanceof ba){const n=sy("function",e),s=ka(e),i=WC(e);let o=[];wa(e,Xn(["returns"])).has("returns")&&(o=ka(e));const a=jC(e);return ou(e),new Xs(Mr,n,i,s,o,a)}let r=e.stateMutability;return r==null&&(r="payable",typeof e.constant=="boolean"?(r="view",e.constant||(r="payable",typeof e.payable=="boolean"&&!e.payable&&(r="nonpayable"))):typeof e.payable=="boolean"&&!e.payable&&(r="nonpayable")),new Xs(Mr,e.name,r,e.inputs?e.inputs.map(An.from):[],e.outputs?e.outputs.map(An.from):[],e.gas!=null?e.gas:null)}static isFragment(e){return e&&e[ds]===QC}}class Aa extends Cd{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,ds,{value:YC})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return Aa.from(Mc(e))}catch{pe(!1,"invalid struct fragment","obj",e)}else if(e instanceof ba){const r=sy("struct",e),n=ka(e);return ou(e),new Aa(Mr,r,n)}return new Aa(Mr,e.name,e.inputs?e.inputs.map(An.from):[])}static isFragment(e){return e&&e[ds]===YC}}const Bi=new Map;Bi.set(0,"GENERIC_PANIC"),Bi.set(1,"ASSERT_FALSE"),Bi.set(17,"OVERFLOW"),Bi.set(18,"DIVIDE_BY_ZERO"),Bi.set(33,"ENUM_RANGE_ERROR"),Bi.set(34,"BAD_STORAGE_DATA"),Bi.set(49,"STACK_UNDERFLOW"),Bi.set(50,"ARRAY_RANGE_ERROR"),Bi.set(65,"OUT_OF_MEMORY"),Bi.set(81,"UNINITIALIZED_FUNCTION_CALL");const q$=new RegExp(/^bytes([0-9]*)$/),X$=new RegExp(/^(u?int)([0-9]*)$/);let s5=null,KC=1024;function eH(t,e,r,n){let s="missing revert data",i=null;const o=null;let a=null;if(r){s="execution reverted";const l=qe(r);if(r=Ze(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(Ze(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(Ze(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 ${Bi.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?Bt(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Bt(e.from)),yr(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:c,invocation:o,revert:a})}var au,Td;const tH=class DA{constructor(){ne(this,au)}getDefaultValue(e){const r=e.map(n=>ve(this,au,Td).call(this,An.from(n)));return new D2(r,"_").defaultValue()}encode(e,r){o2(r.length,e.length,"types/values length mismatch");const n=e.map(o=>ve(this,au,Td).call(this,An.from(o))),s=new D2(n,"_"),i=new n4;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(i=>ve(this,au,Td).call(this,An.from(i)));return new D2(s,"_").decode(new rj(r,n,KC))}static _setDefaultMaxInflation(e){pe(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),KC=e}static defaultAbiCoder(){return s5==null&&(s5=new DA),s5}static getBuiltinCallException(e,r,n){return eH(e,r,n,DA.defaultAbiCoder())}};au=new WeakSet,Td=function(t){if(t.isArray())return new wz(ve(this,au,Td).call(this,t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new D2(t.components.map(r=>ve(this,au,Td).call(this,r)),t.name);switch(t.baseType){case"address":return new vz(t.name);case"bool":return new kz(t.name);case"string":return new xz(t.name);case"bytes":return new Ez(t.name);case"":return new Sz(t.name)}let e=t.type.match(X$);if(e){let r=parseInt(e[2]||"256");return pe(r!==0&&r<=256&&r%8===0,"invalid "+e[1]+" bit length","param",t),new Pz(r/8,e[1]==="int",t.name)}if(e=t.type.match(q$),e){let r=parseInt(e[1]);return pe(r!==0&&r<=32,"invalid bytes length","param",t),new Az(r,t.name)}pe(!1,"invalid type","type",t.type)};let Rd=tH;function qC(t){const e=qr(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Dp(e,32)}function XC(t){const e=qe(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 ca(e.slice(0,r))}class i5{constructor(e,r,n){X(this,"fragment"),X(this,"name"),X(this,"signature"),X(this,"topic"),X(this,"args");const s=e.name,i=e.format();rt(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class o5{constructor(e,r,n,s){X(this,"fragment"),X(this,"name"),X(this,"args"),X(this,"signature"),X(this,"selector"),X(this,"value");const i=e.name,o=e.format();rt(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class a5{constructor(e,r,n){X(this,"fragment"),X(this,"name"),X(this,"args"),X(this,"signature"),X(this,"selector");const s=e.name,i=e.format();rt(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class oy{constructor(e){X(this,"hash"),X(this,"_isIndexed"),rt(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const eT={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"},tT={"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&&eT[t.toString()]&&(e=eT[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var _a,Sa,Ca,es,Fc,ay,cy;const rH=class kp{constructor(e){ne(this,Fc),X(this,"fragments"),X(this,"deploy"),X(this,"fallback"),X(this,"receive"),ne(this,_a),ne(this,Sa),ne(this,Ca),ne(this,es);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,V(this,Ca,new Map),V(this,_a,new Map),V(this,Sa,new Map);const n=[];for(const o of r)try{n.push(Ea.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}rt(this,{fragments:Object.freeze(n)});let s=null,i=!1;V(this,es,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}rt(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(pe(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=S(this,Ca);break;case"event":c=S(this,Sa);break;case"error":c=S(this,_a);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||rt(this,{deploy:Ii.from("constructor()")}),rt(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(n=>n.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return Rd.defaultAbiCoder()}getFunctionName(e){const r=ve(this,Fc,ay).call(this,e,null,!1);return pe(r,"no matching function","key",e),r.name}hasFunction(e){return!!ve(this,Fc,ay).call(this,e,null,!1)}getFunction(e,r){return ve(this,Fc,ay).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(S(this,Ca).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;n<r.length;n++){const s=r[n];e(S(this,Ca).get(s),n)}}getEventName(e){const r=ve(this,Fc,cy).call(this,e,null,!1);return pe(r,"no matching event","key",e),r.name}hasEvent(e){return!!ve(this,Fc,cy).call(this,e,null,!1)}getEvent(e,r){return ve(this,Fc,cy).call(this,e,r||null,!0)}forEachEvent(e){const r=Array.from(S(this,Sa).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;n<r.length;n++){const s=r[n];e(S(this,Sa).get(s),n)}}getError(e,r){if(lr(e)){const s=e.toLowerCase();if(tT[s])return Ni.from(tT[s].signature);for(const i of S(this,_a).values())if(s===i.selector)return i;return null}if(e.indexOf("(")===-1){const s=[];for(const[i,o]of S(this,_a))i.split("(")[0]===e&&s.push(o);if(s.length===0)return e==="Error"?Ni.from("error Error(string)"):e==="Panic"?Ni.from("error Panic(uint256)"):null;if(s.length>1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");pe(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}return e=Ni.from(e).format(),e==="Error(string)"?Ni.from("error Error(string)"):e==="Panic(uint256)"?Ni.from("error Panic(uint256)"):S(this,_a).get(e)||null}forEachError(e){const r=Array.from(S(this,_a).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;n<r.length;n++){const s=r[n];e(S(this,_a).get(s),n)}}_decodeParams(e,r){return S(this,es).decode(e,r)}_encodeParams(e,r){return S(this,es).encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){if(typeof e=="string"){const n=this.getError(e);pe(n,"unknown error","fragment",e),e=n}return pe(ur(r,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",r),this._decodeParams(e.inputs,ur(r,4))}encodeErrorResult(e,r){if(typeof e=="string"){const n=this.getError(e);pe(n,"unknown error","fragment",e),e=n}return $t([e.selector,this._encodeParams(e.inputs,r||[])])}decodeFunctionData(e,r){if(typeof e=="string"){const n=this.getFunction(e);pe(n,"unknown function","fragment",e),e=n}return pe(ur(r,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",r),this._decodeParams(e.inputs,ur(r,4))}encodeFunctionData(e,r){if(typeof e=="string"){const n=this.getFunction(e);pe(n,"unknown function","fragment",e),e=n}return $t([e.selector,this._encodeParams(e.inputs,r||[])])}decodeFunctionResult(e,r){if(typeof e=="string"){const i=this.getFunction(e);pe(i,"unknown function","fragment",e),e=i}let n="invalid length for result data";const s=sn(r);if(s.length%32===0)try{return S(this,es).decode(e.outputs,s)}catch{n="could not decode result data"}Be(!1,n,"BAD_DATA",{value:Ze(s),info:{method:e.name,signature:e.format()}})}makeError(e,r){const n=qe(e,"data"),s=Rd.getBuiltinCallException("call",r,n);if(s.message.startsWith("execution reverted (unknown custom error)")){const o=Ze(n.slice(0,4)),a=this.getError(o);if(a)try{const c=S(this,es).decode(a.inputs,n.slice(4));s.revert={name:a.name,signature:a.format(),args:c},s.reason=s.revert.signature,s.message=`execution reverted: ${s.reason}`}catch{s.message="execution reverted (coult not decode custom error)"}}const i=this.parseTransaction(r);return i&&(s.invocation={method:i.name,signature:i.signature,args:i.args}),s}encodeFunctionResult(e,r){if(typeof e=="string"){const n=this.getFunction(e);pe(n,"unknown function","fragment",e),e=n}return Ze(S(this,es).encode(e.outputs,r||[]))}encodeFilterTopics(e,r){if(typeof e=="string"){const i=this.getEvent(e);pe(i,"unknown event","eventFragment",e),e=i}Be(r.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:r.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const s=(i,o)=>i.type==="string"?xi(o):i.type==="bytes"?hr(Ze(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=Zs(o):i.type.match(/^bytes/)?o=Dp(o,32):i.type==="address"&&S(this,es).encode(["address"],[o]),Hs(Ze(o),32));for(r.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){pe(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"?pe(!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);pe(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),pe(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(xi(c));else if(o.type==="bytes")n.push(hr(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(S(this,es).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:S(this,es).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const p=this.getEvent(e);pe(p,"unknown event","eventFragment",e),e=p}if(n!=null&&!e.anonymous){const p=e.topicHash;pe(lr(n[0],32)&&n[0].toLowerCase()===p,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((p,g)=>{p.indexed?p.type==="string"||p.type==="bytes"||p.baseType==="tuple"||p.baseType==="array"?(s.push(An.from({type:"bytes32",name:p.name})),o.push(!0)):(s.push(p),o.push(!1)):(i.push(p),o.push(!1))});const a=n!=null?S(this,es).decode(s,$t(n)):null,c=S(this,es).decode(i,r,!0),l=[],u=[];let d=0,h=0;return e.inputs.forEach((p,g)=>{let m=null;if(p.indexed)if(a==null)m=new oy(null);else if(o[g])m=new oy(a[h++]);else try{m=a[h++]}catch(y){m=y}else try{m=c[d++]}catch(y){m=y}l.push(m),u.push(p.name||null)}),cd.fromItems(l,u)}parseTransaction(e){const r=qe(e.data,"tx.data"),n=ct(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(Ze(r.slice(0,4)));if(!s)return null;const i=S(this,es).decode(s.inputs,r.slice(4));return new o5(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 i5(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=Ze(e),n=this.getError(ur(r,0,4));if(!n)return null;const s=S(this,es).decode(n.inputs,ur(r,4));return new a5(n,n.selector,s)}static from(e){return e instanceof kp?e:typeof e=="string"?new kp(JSON.parse(e)):typeof e.formatJson=="function"?new kp(e.formatJson()):typeof e.format=="function"?new kp(e.format("json")):new kp(e)}};_a=new WeakMap,Sa=new WeakMap,Ca=new WeakMap,es=new WeakMap,Fc=new WeakSet,ay=function(t,e,r){if(lr(t)){const s=t.toLowerCase();for(const i of S(this,Ca).values())if(s===i.selector)return i;return null}if(t.indexOf("(")===-1){const s=[];for(const[i,o]of S(this,Ca))i.split("(")[0]===t&&s.push(o);if(e){const i=e.length>0?e[e.length-1]:null;let o=e.length,a=!0;Vn.isTyped(i)&&i.type==="overrides"&&(a=!1,o--);for(let c=s.length-1;c>=0;c--){const l=s[c].inputs.length;l!==o&&(!a||l!==o-1)&&s.splice(c,1)}for(let c=s.length-1;c>=0;c--){const l=s[c].inputs;for(let u=0;u<e.length;u++)if(Vn.isTyped(e[u])){if(u>=l.length){if(e[u].type==="overrides")continue;s.splice(c,1);break}if(e[u].type!==l[u].baseType){s.splice(c,1);break}}}}if(s.length===1&&e&&e.length!==s[0].inputs.length){const i=e[e.length-1];(i==null||Array.isArray(i)||typeof i!="object")&&s.splice(0,1)}if(s.length===0)return null;if(s.length>1&&r){const i=s.map(o=>JSON.stringify(o.format())).join(", ");pe(!1,`ambiguous function description (i.e. matches ${i})`,"key",t)}return s[0]}return S(this,Ca).get(Xs.from(t).format())||null},cy=function(t,e,r){if(lr(t)){const s=t.toLowerCase();for(const i of S(this,Sa).values())if(s===i.topicHash)return i;return null}if(t.indexOf("(")===-1){const s=[];for(const[i,o]of S(this,Sa))i.split("(")[0]===t&&s.push(o);if(e){for(let i=s.length-1;i>=0;i--)s[i].inputs.length<e.length&&s.splice(i,1);for(let i=s.length-1;i>=0;i--){const o=s[i].inputs;for(let a=0;a<e.length;a++)if(Vn.isTyped(e[a])&&e[a].type!==o[a].baseType){s.splice(i,1);break}}}if(s.length===0)return null;if(s.length>1&&r){const i=s.map(o=>JSON.stringify(o.format())).join(", ");pe(!1,`ambiguous event description (i.e. matches ${i})`,"key",t)}return s[0]}return S(this,Sa).get(qs.from(t).format())||null};let ly=rH;const rT=BigInt(0);function Pd(t){return t??null}function $r(t){return t==null?null:t.toString()}class uy{constructor(e,r,n){X(this,"gasPrice"),X(this,"maxFeePerGas"),X(this,"maxPriorityFeePerGas"),rt(this,{gasPrice:Pd(e),maxFeePerGas:Pd(r),maxPriorityFeePerGas:Pd(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:$r(e),maxFeePerGas:$r(r),maxPriorityFeePerGas:$r(n)}}}function cu(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=Ze(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]=ct(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=mt(t[s],`request.${s}`));return t.accessList&&(e.accessList=So(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=>Jh(s)?Ze(s):Object.assign({},s))),e}var Lc;class c5{constructor(e,r){X(this,"provider"),X(this,"number"),X(this,"hash"),X(this,"timestamp"),X(this,"parentHash"),X(this,"parentBeaconBlockRoot"),X(this,"nonce"),X(this,"difficulty"),X(this,"gasLimit"),X(this,"gasUsed"),X(this,"stateRoot"),X(this,"receiptsRoot"),X(this,"blobGasUsed"),X(this,"excessBlobGas"),X(this,"miner"),X(this,"prevRandao"),X(this,"extraData"),X(this,"baseFeePerGas"),ne(this,Lc),V(this,Lc,e.transactions.map(n=>typeof n!="string"?new M0(n,r):n)),rt(this,{provider:r,hash:Pd(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:Pd(e.prevRandao),extraData:e.extraData,baseFeePerGas:Pd(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return S(this,Lc).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=S(this,Lc).slice();return e.length===0?[]:(Be(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:d,parentBeaconBlockRoot:h,stateRoot:p,receiptsRoot:g,timestamp:m,transactions:y}=this;return{_type:"Block",baseFeePerGas:$r(e),difficulty:$r(r),extraData:n,gasLimit:$r(s),gasUsed:$r(i),blobGasUsed:$r(this.blobGasUsed),excessBlobGas:$r(this.excessBlobGas),hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:d,timestamp:m,parentBeaconBlockRoot:h,stateRoot:p,receiptsRoot:g,transactions:y}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>e<this.length?{value:r[e++],done:!1}:{value:void 0,done:!0}}}get length(){return S(this,Lc).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(e){let r;if(typeof e=="number")r=S(this,Lc)[e];else{const n=e.toLowerCase();for(const s of S(this,Lc))if(typeof s=="string"){if(s!==n)continue;r=s;break}else{if(s.hash===n)continue;r=s;break}}if(r==null)throw new Error("no such tx");return typeof r=="string"?await this.provider.getTransaction(r):r}getPrefetchedTransaction(e){const r=this.prefetchedTransactions;if(typeof e=="number")return r[e];e=e.toLowerCase();for(const n of r)if(n.hash===e)return n;pe(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return sH(this)}}Lc=new WeakMap;class lu{constructor(e,r){X(this,"provider"),X(this,"transactionHash"),X(this,"blockHash"),X(this,"blockNumber"),X(this,"removed"),X(this,"address"),X(this,"data"),X(this,"topics"),X(this,"index"),X(this,"transactionIndex"),this.provider=r;const n=Object.freeze(e.topics.slice());rt(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:r,blockNumber:n,data:s,index:i,removed:o,topics:a,transactionHash:c,transactionIndex:l}=this;return{_type:"log",address:e,blockHash:r,blockNumber:n,data:s,index:i,removed:o,topics:a,transactionHash:c,transactionIndex:l}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return Be(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return Be(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return Be(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return iH(this)}}var hy;class dy{constructor(e,r){X(this,"provider"),X(this,"to"),X(this,"from"),X(this,"contractAddress"),X(this,"hash"),X(this,"index"),X(this,"blockHash"),X(this,"blockNumber"),X(this,"logsBloom"),X(this,"gasUsed"),X(this,"blobGasUsed"),X(this,"cumulativeGasUsed"),X(this,"gasPrice"),X(this,"blobGasPrice"),X(this,"type"),X(this,"status"),X(this,"root"),ne(this,hy),V(this,hy,Object.freeze(e.logs.map(s=>new lu(s,r))));let n=rT;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),rt(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 S(this,hy)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:d}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:$r(this.cumulativeGasUsed),from:r,gasPrice:$r(this.gasPrice),blobGasUsed:$r(this.blobGasUsed),blobGasPrice:$r(this.blobGasPrice),gasUsed:$r(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:d,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(e==null)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(e==null)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return sT(this)}reorderedEvent(e){return Be(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),nT(this,e)}}hy=new WeakMap;var uu;const nH=class zV{constructor(e,r){X(this,"provider"),X(this,"blockNumber"),X(this,"blockHash"),X(this,"index"),X(this,"hash"),X(this,"type"),X(this,"to"),X(this,"from"),X(this,"nonce"),X(this,"gasLimit"),X(this,"gasPrice"),X(this,"maxPriorityFeePerGas"),X(this,"maxFeePerGas"),X(this,"maxFeePerBlobGas"),X(this,"data"),X(this,"value"),X(this,"chainId"),X(this,"signature"),X(this,"accessList"),X(this,"blobVersionedHashes"),ne(this,uu),this.provider=r,this.blockNumber=e.blockNumber!=null?e.blockNumber:null,this.blockHash=e.blockHash!=null?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=e.maxPriorityFeePerGas!=null?e.maxPriorityFeePerGas:null,this.maxFeePerGas=e.maxFeePerGas!=null?e.maxFeePerGas:null,this.maxFeePerBlobGas=e.maxFeePerBlobGas!=null?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=e.accessList!=null?e.accessList:null,this.blobVersionedHashes=e.blobVersionedHashes!=null?e.blobVersionedHashes:null,V(this,uu,-1)}toJSON(){const{blockNumber:e,blockHash:r,index:n,hash:s,type:i,to:o,from:a,nonce:c,data:l,signature:u,accessList:d,blobVersionedHashes:h}=this;return{_type:"TransactionResponse",accessList:d,blockNumber:e,blockHash:r,blobVersionedHashes:h,chainId:$r(this.chainId),data:l,from:a,gasLimit:$r(this.gasLimit),gasPrice:$r(this.gasPrice),hash:s,maxFeePerGas:$r(this.maxFeePerGas),maxPriorityFeePerGas:$r(this.maxPriorityFeePerGas),maxFeePerBlobGas:$r(this.maxFeePerBlobGas),nonce:c,signature:u,to:o,index:n,type:i,value:$r(this.value)}}async getBlock(){let e=this.blockNumber;if(e==null){const n=await this.getTransaction();n&&(e=n.blockNumber)}if(e==null)return null;const r=this.provider.getBlock(e);if(r==null)throw new Error("TODO");return r}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:e,blockNumber:r}=await nn({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return e==null||e.blockNumber==null?0:r-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,r){const n=e??1,s=r??0;let i=S(this,uu),o=-1,a=i===-1;const c=async()=>{if(a)return null;const{blockNumber:d,nonce:h}=await nn({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(h<this.nonce){i=d;return}if(a)return null;const p=await this.getTransaction();if(!(p&&p.blockNumber!=null))for(o===-1&&(o=i-3,o<S(this,uu)&&(o=S(this,uu)));o<=d;){if(a)return null;const g=await this.provider.getBlock(o,!0);if(g==null)return;for(const m of g)if(m===this.hash)return;for(let m=0;m<g.length;m++){const y=await g.getTransaction(m);if(y.from===this.from&&y.nonce===this.nonce){if(a)return null;const v=await this.provider.getTransactionReceipt(y.hash);if(v==null||d-v.blockNumber+1<n)return;let A="replaced";y.data===this.data&&y.to===this.to&&y.value===this.value?A="repriced":y.data==="0x"&&y.from===y.to&&y.value===rT&&(A="cancelled"),Be(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:A==="replaced"||A==="cancelled",reason:A,replacement:y.replaceableTransaction(i),hash:y.hash,receipt:v})}}o++}},l=d=>{if(d==null||d.status!==0)return d;Be(!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 p=[],g=()=>{p.forEach(y=>y())};if(p.push(()=>{a=!0}),s>0){const y=setTimeout(()=>{g(),h(yr("wait for transaction timeout","TIMEOUT"))},s);p.push(()=>{clearTimeout(y)})}const m=async y=>{if(await y.confirmations()>=n){g();try{d(l(y))}catch(v){h(v)}}};if(p.push(()=>{this.provider.off(this.hash,m)}),this.provider.on(this.hash,m),i>=0){const y=async()=>{try{await c()}catch(v){if(jr(v,"TRANSACTION_REPLACED")){g(),h(v);return}}a||this.provider.once("block",y)};p.push(()=>{this.provider.off("block",y)}),this.provider.once("block",y)}})}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 Be(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),sT(this)}reorderedEvent(e){return Be(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Be(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),nT(this,e)}replaceableTransaction(e){pe(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new zV(this,this.provider);return V(r,uu,e),r}};uu=new WeakMap;let M0=nH;function sH(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function nT(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function sT(t){return{orphan:"drop-transaction",tx:t}}function iH(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 F0 extends lu{constructor(e,r,n){super(e,e.provider),X(this,"interface"),X(this,"fragment"),X(this,"args");const s=r.decodeEventLog(n,e.data,e.topics);rt(this,{args:s,fragment:n,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class fy extends lu{constructor(e,r){super(e,e.provider),X(this,"error"),rt(this,{error:r})}}var L0;class l5 extends dy{constructor(e,r,n){super(n,r),ne(this,L0),V(this,L0,e)}get logs(){return super.logs.map(e=>{const r=e.topics.length?S(this,L0).getEvent(e.topics[0]):null;if(r)try{return new F0(e,S(this,L0),r)}catch(n){return new fy(e,n)}return e})}}L0=new WeakMap;var py;class V0 extends M0{constructor(e,r,n){super(n,r),ne(this,py),V(this,py,e)}async wait(e,r){const n=await super.wait(e,r);return n==null?null:new l5(S(this,py),this.provider,n)}}py=new WeakMap;class gy extends d2{constructor(e,r,n,s){super(e,r,n),X(this,"log"),rt(this,{log:s})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class u5 extends gy{constructor(e,r,n,s,i){super(e,r,n,new F0(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);rt(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const iT=BigInt(0);function oT(t){return t&&typeof t.call=="function"}function aT(t){return t&&typeof t.estimateGas=="function"}function my(t){return t&&typeof t.resolveName=="function"}function cT(t){return t&&typeof t.sendTransaction=="function"}function lT(t){if(t!=null){if(my(t))return t;if(t.provider)return t.provider}}var yy;class oH{constructor(e,r,n){if(ne(this,yy),X(this,"fragment"),rt(this,{fragment:r}),r.inputs.length<n.length)throw new Error("too many arguments");const s=hu(e.runner,"resolveName"),i=my(s)?s:null;V(this,yy,async function(){const o=await Promise.all(r.inputs.map((a,c)=>n[c]==null?null:a.walkAsync(n[c],(l,u)=>l==="address"?Array.isArray(u)?Promise.all(u.map(d=>an(d,i))):an(u,i):u)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return S(this,yy)}}yy=new WeakMap;function hu(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function du(t){return t==null?null:t.provider||null}async function h5(t,e){const r=Vn.dereference(t,"overrides");pe(typeof r=="object","invalid overrides parameter","overrides",t);const n=cu(r);return pe(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),pe(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function uT(t,e,r){const n=hu(t,"resolveName"),s=my(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(a,c)=>(c=Vn.dereference(c,a),a==="address"?an(c,s):c))))}function aH(t){const e=async function(o){const a=await h5(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await an(a.from,lT(t.runner)));const c=t.interface,l=ct(a.value||iT,"overrides.value")===iT,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&pe(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),pe(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const d=c.receive||c.fallback&&c.fallback.payable;return pe(d||l,"cannot send value to non-payable fallback","overrides.value",a.value),pe(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=hu(t.runner,"call");Be(oT(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 Vp(l)&&l.data?t.interface.makeError(l.data,c):l}},n=async function(o){const a=t.runner;Be(cT(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=du(t.runner);return new V0(t.interface,l,c)},s=async function(o){const a=hu(t.runner,"estimateGas");return Be(aT(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 rt(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function cH(t,e){const r=function(...l){const u=t.interface.getFunction(e,l);return Be(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},n=async function(...l){const u=r(...l);let d={};if(u.inputs.length+1===l.length&&(d=await h5(l.pop()),d.from&&(d.from=await an(d.from,lT(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const h=await uT(t.runner,u.inputs,l);return Object.assign({},d,await nn({to:t.getAddress(),data:t.interface.encodeFunctionData(u,h)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;Be(cT(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const d=await u.sendTransaction(await n(...l)),h=du(t.runner);return new V0(t.interface,h,d)},o=async function(...l){const u=hu(t.runner,"estimateGas");return Be(aT(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...l))},a=async function(...l){const u=hu(t.runner,"call");Be(oT(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const d=await n(...l);let h="0x";try{h=await u.call(d)}catch(g){throw Vp(g)&&g.data?t.interface.makeError(g.data,d):g}const p=r(...l);return t.interface.decodeFunctionResult(p,h)},c=async(...l)=>r(...l).constant?await s(...l):await i(...l);return rt(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 Be(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function lH(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return Be(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},n=function(...s){return new oH(t,r(...s),s)};return rt(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 Be(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),n}const vy=Symbol.for("_ethersInternal_contract"),hT=new WeakMap;function uH(t,e){hT.set(t[vy],e)}function Rs(t){return hT.get(t[vy])}function hH(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function d5(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(lr(o,32))return o;const a=t.interface.getEvent(o);return pe(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"?lr(e,32)?r=[e]:(n=t.interface.getEvent(e),pe(n,"unknown fragment","event",e),r=[n.topicHash]):hH(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):pe(!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 D0(t,e){const{subs:r}=Rs(t);return r.get((await d5(t,e)).tag)||null}async function dT(t,e,r){const n=du(t.runner);Be(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await d5(t,r),{addr:a,subs:c}=Rs(t);let l=c.get(i);if(!l){const u={address:a||t,topics:o},d=p=>{let g=s;if(g==null)try{g=t.interface.getEvent(p.topics[0])}catch{}if(g){const m=g,y=s?t.interface.decodeEventLog(s,p.data,p.topics):[];p5(t,r,y,v=>new u5(t,v,r,m,p))}else p5(t,r,[],m=>new gy(t,m,r,p))};let h=[];l={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(u,d))},stop:async()=>{if(h.length==0)return;let p=h;h=[],await Promise.all(p),n.off(u,d)}},c.set(i,l)}return l}let f5=Promise.resolve();async function dH(t,e,r,n){await f5;const s=await D0(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(),Rs(t).subs.delete(s.tag)),i>0}async function p5(t,e,r,n){try{await f5}catch{}const s=dH(t,e,r,n);return f5=s,await s}const by=["then"];var fT;fT=vy;let W0=class zw{constructor(e,r,n,s){X(this,"target"),X(this,"interface"),X(this,"runner"),X(this,"filters"),X(this,fT),X(this,"fallback"),pe(typeof e=="string"||V2(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=ly.from(r);rt(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,vy,{value:{}});let o,a=null,c=null;if(s){const d=du(n);c=new V0(this.interface,d,s)}let l=new Map;if(typeof e=="string")if(lr(e))a=e,o=Promise.resolve(e);else{const d=hu(n,"resolveName");if(!my(d))throw yr("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=d.resolveName(e).then(h=>{if(h==null)throw yr("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return Rs(this).addr=h,h})}else o=e.getAddress().then(d=>{if(d==null)throw new Error("TODO");return Rs(this).addr=d,d});uH(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(d,h,p)=>{if(typeof h=="symbol"||by.indexOf(h)>=0)return Reflect.get(d,h,p);try{return this.getEvent(h)}catch(g){if(!jr(g,"INVALID_ARGUMENT")||g.argument!=="key")throw g}},has:(d,h)=>by.indexOf(h)>=0?Reflect.has(d,h):Reflect.has(d,h)||this.interface.hasEvent(String(h))});return rt(this,{filters:u}),rt(this,{fallback:i.receive||i.fallback?aH(this):null}),new Proxy(this,{get:(d,h,p)=>{if(typeof h=="symbol"||h in d||by.indexOf(h)>=0)return Reflect.get(d,h,p);try{return d.getFunction(h)}catch(g){if(!jr(g,"INVALID_ARGUMENT")||g.argument!=="key")throw g}},has:(d,h)=>typeof h=="symbol"||h in d||by.indexOf(h)>=0?Reflect.has(d,h):d.interface.hasFunction(h)})}connect(e){return new zw(this.target,this.interface,e)}attach(e){return new zw(e,this.interface,this.runner)}async getAddress(){return await Rs(this).addrPromise}async getDeployedCode(){const e=du(this.runner);Be(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 r=du(this.runner);return Be(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((n,s)=>{const i=async()=>{try{if(await this.getDeployedCode()!=null)return n(this);r.once("block",i)}catch(o){s(o)}};i()})}deploymentTransaction(){return Rs(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),cH(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),lH(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}=Rs(this),o=s||await i,{fragment:a,topics:c}=await d5(this,e),l={address:o,topics:c,fromBlock:r,toBlock:n},u=du(this.runner);return Be(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(d=>{let h=a;if(h==null)try{h=this.interface.getEvent(d.topics[0])}catch{}if(h)try{return new F0(d,this.interface,h)}catch(p){return new fy(d,p)}return new lu(d,u)})}async on(e,r){const n=await dT(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await dT(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await p5(this,e,r,null)}async listenerCount(e){if(e){const s=await D0(this,e);return s?s.listeners.length:0}const{subs:r}=Rs(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await D0(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=Rs(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 D0(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(),Rs(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await D0(this,e);if(!r)return this;r.stop(),Rs(this).subs.delete(r.tag)}else{const{subs:r}=Rs(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 zw{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)}};function fH(){return W0}class Vc extends fH(){}class wy{constructor(e,r,n){X(this,"interface"),X(this,"bytecode"),X(this,"runner");const s=ly.from(e);r instanceof Uint8Array||(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r)),r=Ze(qe(r)),rt(this,{bytecode:r,interface:s,runner:n||null})}attach(e){return new W0(e,this.interface,this.runner)}async getDeployTransaction(...e){let r={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(r=await h5(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await uT(this.runner,n.inputs,e),i=$t([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},r,{data:i})}async deploy(...e){const r=await this.getDeployTransaction(...e);Be(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=L2(n);return new W0(s,this.interface,this.runner,n)}connect(e){return new wy(this.interface,this.bytecode,e)}static fromSolidity(e,r){pe(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 g5(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):pe(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class m5{constructor(e){X(this,"name"),rt(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 pT=new RegExp("^(ipfs)://(.*)$","i"),gT=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),pT,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var fu,xd,pu,Nd,y5,mT;const v5=class WA{constructor(e,r,n){ne(this,pu),X(this,"provider"),X(this,"address"),X(this,"name"),ne(this,fu),ne(this,xd),rt(this,{provider:e,address:r,name:n}),V(this,fu,null),V(this,xd,new Vc(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 S(this,fu)==null&&V(this,fu,(async()=>{try{return await S(this,xd).supportsInterface("0x9061b923")}catch(e){if(jr(e,"CALL_EXCEPTION"))return!1;throw V(this,fu,null),e}})()),await S(this,fu)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await ve(this,pu,Nd).call(this,"addr(bytes32)");return i==null||i===eu?null:i}catch(i){if(jr(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await ve(this,pu,Nd).call(this,"addr(bytes32,uint)",[i]);if(lr(o,20))return Bt(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof m5&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await ve(this,pu,Nd).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;Be(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await ve(this,pu,Nd).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await ve(this,pu,Nd).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}://${h2("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;Be(!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<gT.length;n++){const s=r.match(gT[n]);if(s==null)continue;const i=s[1].toLowerCase();switch(i){case"https":case"data":return e.push({type:"url",value:r}),{linkage:e,url:r};case"ipfs":{const o=g5(r);return e.push({type:"ipfs",value:r}),e.push({type:"url",value:o}),{linkage:e,url:o}}case"erc721":case"erc1155":{const o=i==="erc721"?"tokenURI(uint256)":"uri(uint256)";e.push({type:i,value:r});const a=await this.getAddress();if(a==null)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const c=(s[2]||"").split("/");if(c.length!==2)return e.push({type:`!${i}caip`,value:s[2]||""}),{url:null,linkage:e};const l=c[1],u=new Vc(c[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(i==="erc721"){const m=await u.ownerOf(l);if(a!==m)return e.push({type:"!owner",value:m}),{url:null,linkage:e};e.push({type:"owner",value:m})}else if(i==="erc1155"){const m=await u.balanceOf(a,l);if(!m)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:m.toString()})}let d=await u[o](l);if(d==null||d==="0x")return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:d}),i==="erc1155"&&(d=d.replace("{id}",Zs(l,32).substring(2)),e.push({type:"metadata-url-expanded",value:d})),d.match(/^ipfs:/i)&&(d=g5(d)),e.push({type:"metadata-url",value:d});let h={};const p=await new Mn(d).send();p.assertOk();try{h=p.bodyJson}catch{try{e.push({type:"!metadata",value:p.bodyText})}catch{const m=p.body;return m&&e.push({type:"!metadata",value:Ze(m)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!h)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(h)});let g=h.image;if(typeof g!="string")return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(!g.match(/^(https:\/\/|data:)/i)){if(g.match(pT)==null)return e.push({type:"!imageUrl-ipfs",value:g}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:g}),g=g5(g)}return e.push({type:"url",value:g}),{linkage:e,url:g}}}}}catch{}return{linkage:e,url:null}}static async getEnsAddress(e){const r=await e.getNetwork(),n=r.getPlugin("org.ethers.plugins.network.Ens");return Be(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:r}}),n.address}static async fromName(e,r){var n;let s=r;for(;;){if(s===""||s==="."||r!=="eth"&&s==="eth")return null;const i=await ve(n=WA,y5,mT).call(n,e,s);if(i!=null){const o=new WA(e,i,r);return s!==r&&!await o.supportsWildcard()?null:o}s=s.split(".").slice(1).join(".")}}};fu=new WeakMap,xd=new WeakMap,pu=new WeakSet,Nd=async function(t,e){e=(e||[]).slice();const r=S(this,xd).interface;e.unshift(v0(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(t),Be(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:t}}),e=[J4(this.name,255),r.encodeFunctionData(n,e)],t="resolve(bytes,bytes)"),e.push({enableCcipRead:!0});try{const s=await S(this,xd)[t](...e);return n?r.decodeFunctionResult(n,s)[0]:s}catch(s){if(!jr(s,"CALL_EXCEPTION"))throw s}return null},y5=new WeakSet,mT=async function(t,e){const r=await v5.getEnsAddress(t);try{const n=await new Vc(r,["function resolver(bytes32) view returns (address)"],t).resolver(v0(e),{enableCcipRead:!0});return n===eu?null:n}catch(n){throw n}return null},ne(v5,y5);let ky=v5;const yT=BigInt(0);function Ht(t,e){return function(r){return r==null?e:t(r)}}function Ey(t,e){return r=>{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function j0(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";Be(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:r})}}return n}}function pH(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}pe(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Id(t){return pe(lr(t,!0),"invalid data","value",t),t}function _n(t){return pe(lr(t,32),"invalid hash","value",t),t}const gH=j0({address:Bt,blockHash:_n,blockNumber:mt,data:Id,index:mt,removed:Ht(pH,!1),topics:Ey(_n),transactionHash:_n,transactionIndex:mt},{index:["logIndex"]});function mH(t){return gH(t)}const yH=j0({hash:Ht(_n),parentHash:_n,parentBeaconBlockRoot:Ht(_n,null),number:mt,timestamp:mt,nonce:Ht(Id),difficulty:ct,gasLimit:ct,gasUsed:ct,stateRoot:Ht(_n,null),receiptsRoot:Ht(_n,null),blobGasUsed:Ht(ct,null),excessBlobGas:Ht(ct,null),miner:Ht(Bt),prevRandao:Ht(_n,null),extraData:Id,baseFeePerGas:Ht(ct)},{prevRandao:["mixHash"]});function vH(t){const e=yH(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:vT(r)),e}const bH=j0({transactionIndex:mt,blockNumber:mt,transactionHash:_n,address:Bt,topics:Ey(_n),data:Id,index:mt,blockHash:_n},{index:["logIndex"]});function wH(t){return bH(t)}const kH=j0({to:Ht(Bt,null),from:Ht(Bt,null),contractAddress:Ht(Bt,null),index:mt,root:Ht(Ze),gasUsed:ct,blobGasUsed:Ht(ct,null),logsBloom:Ht(Id),blockHash:_n,hash:_n,logs:Ey(wH),blockNumber:mt,cumulativeGasUsed:ct,effectiveGasPrice:Ht(ct),blobGasPrice:Ht(ct,null),status:Ht(mt),type:Ht(mt,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function EH(t){return kH(t)}function vT(t){t.to&&ct(t.to)===yT&&(t.to="0x0000000000000000000000000000000000000000");const e=j0({hash:_n,index:Ht(mt,void 0),type:r=>r==="0x"||r==null?0:mt(r),accessList:Ht(So,null),blobVersionedHashes:Ht(Ey(_n,!0),null),blockHash:Ht(_n,null),blockNumber:Ht(mt,null),transactionIndex:Ht(mt,null),from:Bt,gasPrice:Ht(ct),maxPriorityFeePerGas:Ht(ct),maxFeePerGas:Ht(ct),maxFeePerBlobGas:Ht(ct,null),gasLimit:ct,to:Ht(Bt,null),value:ct,nonce:mt,data:Id,creates:Ht(Bt,null),chainId:Ht(ct,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=L2(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=Pi.from(t.signature):e.signature=Pi.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&ct(e.blockHash)===yT&&(e.blockHash=null),e}const AH="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Ta{constructor(e){X(this,"name"),rt(this,{name:e})}clone(){return new Ta(this.name)}}class Od extends Ta{constructor(e,r){e==null&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`),X(this,"effectiveBlock"),X(this,"txBase"),X(this,"txCreate"),X(this,"txDataZero"),X(this,"txDataNonzero"),X(this,"txAccessListStorageKey"),X(this,"txAccessListAddress");const n={effectiveBlock:e};function s(i,o){let a=(r||{})[i];a==null&&(a=o),pe(typeof a=="number",`invalud value for ${i}`,"costs",r),n[i]=a}s("txBase",21e3),s("txCreate",32e3),s("txDataZero",4),s("txDataNonzero",16),s("txAccessListStorageKey",1900),s("txAccessListAddress",2400),rt(this,n)}clone(){return new Od(this.effectiveBlock,this)}}class Bd extends Ta{constructor(e,r){super("org.ethers.plugins.network.Ens"),X(this,"address"),X(this,"targetNetwork"),rt(this,{address:e||AH,targetNetwork:r??1})}clone(){return new Bd(this.address,this.targetNetwork)}}var Ud;const _H=class $V extends Ta{constructor(e){super("org.ethers.plugins.network.FeeData"),ne(this,Ud),V(this,Ud,e)}get feeDataFunc(){return S(this,Ud)}async getFeeData(e){return await S(this,Ud).call(this,e)}clone(){return new $V(S(this,Ud))}};Ud=new WeakMap;let bT=_H;var Ay,_y;class b5 extends Ta{constructor(e,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),ne(this,Ay),ne(this,_y),V(this,Ay,e),V(this,_y,r)}get url(){return S(this,Ay)}get processFunc(){return S(this,_y)}clone(){return this}}Ay=new WeakMap,_y=new WeakMap;const w5=new Map;var G0,z0,gu;const SH=class Um{constructor(e,r){ne(this,G0),ne(this,z0),ne(this,gu),V(this,G0,e),V(this,z0,ct(r)),V(this,gu,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return S(this,G0)}set name(e){V(this,G0,e)}get chainId(){return S(this,z0)}set chainId(e){V(this,z0,ct(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===ct(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===ct(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===ct(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(S(this,gu).values())}attachPlugin(e){if(S(this,gu).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return S(this,gu).set(e.name,e.clone()),this}getPlugin(e){return S(this,gu).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new Um(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 Od;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s<e.data.length;s+=2)e.data.substring(s,s+2)==="00"?n+=r.txDataZero:n+=r.txDataNonzero;if(e.accessList){const s=So(e.accessList);for(const i in s)n+=r.txAccessListAddress+r.txAccessListStorageKey*s[i].storageKeys.length}return n}static from(e){if(CH(),e==null)return Um.from("mainnet");if(typeof e=="number"&&(e=BigInt(e)),typeof e=="string"||typeof e=="bigint"){const r=w5.get(e);if(r)return r();if(typeof e=="bigint")return new Um("unknown",e);pe(!1,"unknown network","network",e)}if(typeof e.clone=="function")return e.clone();if(typeof e=="object"){pe(typeof e.name=="string"&&typeof e.chainId=="number","invalid network object name or chainId","network",e);const r=new Um(e.name,e.chainId);return(e.ensAddress||e.ensNetwork!=null)&&r.attachPlugin(new Bd(e.ensAddress,e.ensNetwork)),r}pe(!1,"invalid network","network",e)}static register(e,r){typeof e=="number"&&(e=BigInt(e));const n=w5.get(e);n&&pe(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),w5.set(e,r)}};G0=new WeakMap,z0=new WeakMap,gu=new WeakMap;let Xr=SH;function wT(t,e){const r=String(t);if(!r.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${t}`);const n=r.split(".");if(n.length===1&&n.push(""),n.length!==2)throw new Error(`invalid gwei value: ${t}`);for(;n[1].length<e;)n[1]+="0";if(n[1].length>9){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 kT(t){return new b5(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:wT(a.maxFee,9),maxPriorityFeePerGas:wT(a.maxPriorityFee,9)}}catch(i){Be(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:s,error:i})}})}let ET=!1;function CH(){if(ET)return;ET=!0;function t(e,r,n){const s=function(){const i=new Xr(e,r);return n.ensNetwork!=null&&i.attachPlugin(new Bd(null,n.ensNetwork)),i.attachPlugin(new Od),(n.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};Xr.register(e,s),Xr.register(r,s),n.altNames&&n.altNames.forEach(i=>{Xr.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:[kT("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[kT("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 k5(t){return JSON.parse(JSON.stringify(t))}var Dc,Ui,mu,Ra,$0,Sy;class TH{constructor(e){ne(this,$0),ne(this,Dc),ne(this,Ui),ne(this,mu),ne(this,Ra),V(this,Dc,e),V(this,Ui,null),V(this,mu,4e3),V(this,Ra,-2)}get pollingInterval(){return S(this,mu)}set pollingInterval(e){V(this,mu,e)}start(){S(this,Ui)||(V(this,Ui,S(this,Dc)._setTimeout(ve(this,$0,Sy).bind(this),S(this,mu))),ve(this,$0,Sy).call(this))}stop(){S(this,Ui)&&(S(this,Dc)._clearTimeout(S(this,Ui)),V(this,Ui,null))}pause(e){this.stop(),e&&V(this,Ra,-2)}resume(){this.start()}}Dc=new WeakMap,Ui=new WeakMap,mu=new WeakMap,Ra=new WeakMap,$0=new WeakSet,Sy=async function(){try{const t=await S(this,Dc).getBlockNumber();if(S(this,Ra)===-2){V(this,Ra,t);return}if(t!==S(this,Ra)){for(let e=S(this,Ra)+1;e<=t;e++){if(S(this,Ui)==null)return;await S(this,Dc).emit("block",e)}V(this,Ra,t)}}catch{}S(this,Ui)!=null&&V(this,Ui,S(this,Dc)._setTimeout(ve(this,$0,Sy).bind(this),S(this,mu)))};var Md,Fd,yu;class E5{constructor(e){ne(this,Md),ne(this,Fd),ne(this,yu),V(this,Md,e),V(this,yu,!1),V(this,Fd,r=>{this._poll(r,S(this,Md))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){S(this,yu)||(V(this,yu,!0),S(this,Fd).call(this,-2),S(this,Md).on("block",S(this,Fd)))}stop(){S(this,yu)&&(V(this,yu,!1),S(this,Md).off("block",S(this,Fd)))}pause(e){this.stop()}resume(){this.start()}}Md=new WeakMap,Fd=new WeakMap,yu=new WeakMap;var H0,Wc;class RH extends E5{constructor(e,r){super(e),ne(this,H0),ne(this,Wc),V(this,H0,r),V(this,Wc,-2)}pause(e){e&&V(this,Wc,-2),super.pause(e)}async _poll(e,r){const n=await r.getBlock(S(this,H0));n!=null&&(S(this,Wc)===-2?V(this,Wc,n.number):n.number>S(this,Wc)&&(r.emit(S(this,H0),n.number),V(this,Wc,n.number)))}}H0=new WeakMap,Wc=new WeakMap;var A5;class PH extends E5{constructor(e,r){super(e),ne(this,A5),V(this,A5,k5(r))}async _poll(e,r){throw new Error("@TODO")}}A5=new WeakMap;var Z0;class xH extends E5{constructor(e,r){super(e),ne(this,Z0),V(this,Z0,r)}async _poll(e,r){const n=await r.getTransactionReceipt(S(this,Z0));n&&r.emit(S(this,Z0),n)}}Z0=new WeakMap;var jc,J0,Q0,vu,Mi,_5,AT;class S5{constructor(e,r){ne(this,_5),ne(this,jc),ne(this,J0),ne(this,Q0),ne(this,vu),ne(this,Mi),V(this,jc,e),V(this,J0,k5(r)),V(this,Q0,ve(this,_5,AT).bind(this)),V(this,vu,!1),V(this,Mi,-2)}start(){S(this,vu)||(V(this,vu,!0),S(this,Mi)===-2&&S(this,jc).getBlockNumber().then(e=>{V(this,Mi,e)}),S(this,jc).on("block",S(this,Q0)))}stop(){S(this,vu)&&(V(this,vu,!1),S(this,jc).off("block",S(this,Q0)))}pause(e){this.stop(),e&&V(this,Mi,-2)}resume(){this.start()}}jc=new WeakMap,J0=new WeakMap,Q0=new WeakMap,vu=new WeakMap,Mi=new WeakMap,_5=new WeakSet,AT=async function(t){if(S(this,Mi)===-2)return;const e=k5(S(this,J0));e.fromBlock=S(this,Mi)+1,e.toBlock=t;const r=await S(this,jc).getLogs(e);if(r.length===0){S(this,Mi)<t-60&&V(this,Mi,t-60);return}for(const n of r)S(this,jc).emit(S(this,J0),n),V(this,Mi,n.blockNumber)};const NH=BigInt(2),IH=10;function Cy(t){return t&&typeof t.then=="function"}function Ty(t,e){return t+":"+JSON.stringify(e,(r,n)=>{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 Ld{constructor(e){X(this,"name"),rt(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function OH(t){return JSON.parse(JSON.stringify(t))}function C5(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function T5(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(lr(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:Ty("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:Ty("orphan",r),filter:OH(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?C5(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=a=>{lr(a)?s.push(a):i.push((async()=>{s.push(await an(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=C5(s.map(a=>a.toLowerCase()))}return{filter:n,tag:Ty("event",n),type:"event"}}pe(!1,"unknown ProviderEvent","event",t)}function R5(){return new Date().getTime()}const BH={cacheTimeout:250,pollingInterval:4e3};var ts,bu,rs,Y0,ei,Vd,wu,Gc,Ry,Fi,K0,q0,ir,Ps,P5,x5,X0,N5,eg,Py;class Dd{constructor(e,r){if(ne(this,ir),ne(this,ts),ne(this,bu),ne(this,rs),ne(this,Y0),ne(this,ei),ne(this,Vd),ne(this,wu),ne(this,Gc),ne(this,Ry),ne(this,Fi),ne(this,K0),ne(this,q0),V(this,q0,Object.assign({},BH,r||{})),e==="any")V(this,Vd,!0),V(this,ei,null);else if(e){const n=Xr.from(e);V(this,Vd,!1),V(this,ei,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else V(this,Vd,!1),V(this,ei,null);V(this,Gc,-1),V(this,wu,new Map),V(this,ts,new Map),V(this,bu,new Map),V(this,rs,null),V(this,Y0,!1),V(this,Ry,1),V(this,Fi,new Map),V(this,K0,!1)}get pollingInterval(){return S(this,q0).pollingInterval}get provider(){return this}get plugins(){return Array.from(S(this,bu).values())}attachPlugin(e){if(S(this,bu).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return S(this,bu).set(e.name,e.connect(this)),this}getPlugin(e){return S(this,bu).get(e)||null}get disableCcipRead(){return S(this,K0)}set disableCcipRead(e){V(this,K0,!!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<n.length;a++){const c=n[a],l=c.replace("{sender}",s).replace("{data}",i),u=new Mn(l);c.indexOf("{data}")===-1&&(u.body={data:i,sender:s}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:u,index:a,urls:n});let d="unknown error",h;try{h=await u.send()}catch(p){o.push(p.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:{error:p}});continue}try{const p=h.bodyJson;if(p.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:u,result:p}),p.data;p.message&&(d=p.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:u,result:p})}catch{}Be(h.statusCode<400||h.statusCode>=500,`response not found during CCIP fetch: ${d}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:d}}),o.push(d)}Be(!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 c5(vH(e),this)}_wrapLog(e,r){return new lu(mH(e),this)}_wrapTransactionReceipt(e,r){return new dy(EH(e),this)}_wrapTransactionResponse(e,r){return new M0(vT(e),this)}_detectNetwork(){Be(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){Be(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=mt(await ve(this,ir,Ps).call(this,{method:"getBlockNumber"}),"%response");return S(this,Gc)>=0&&V(this,Gc,e),e}_getAddress(e){return an(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(lr(e))return lr(e,32)?e:aa(e);if(typeof e=="bigint"&&(e=mt(e,"blockTag")),typeof e=="number")return e>=0?aa(e):S(this,Gc)>=0?aa(S(this,Gc)+e):this.getBlockNumber().then(r=>aa(r+e));pe(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?C5(c.map(l=>l.toLowerCase())):c.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let d;switch(c.length){case 0:break;case 1:d=c[0];break;default:c.sort(),d=c}if(n&&(l!=null||u!=null))throw new Error("invalid filter");const h={};return d&&(h.address=d),r.length&&(h.topics=r),l&&(h.fromBlock=l),u&&(h.toBlock=u),n&&(h.blockHash=n),h};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=cu(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=an(r[s],this);Cy(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);Cy(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(S(this,ei)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw S(this,ei)===s&&V(this,ei,null),i}})();return V(this,ei,s),(await s).clone()}const e=S(this,ei),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(S(this,Vd)?(this.emit("network",n,r),S(this,ei)===e&&V(this,ei,Promise.resolve(n))):Be(!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 nn({_block:ve(this,ir,N5).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await ve(this,ir,Ps).call(this,{method:"getGasPrice"});return ct(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await ve(this,ir,Ps).call(this,{method:"getPriorityFee"});return ct(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*NH+c),new uy(i,a,c)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const s=new Mn(n.url),i=await n.processFunc(r,this,s);return new uy(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return Cy(r)&&(r=await r),ct(await ve(this,ir,Ps).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await nn({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await ve(this,ir,x5).call(this,ve(this,ir,P5).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return ct(await ve(this,ir,X0).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return mt(await ve(this,ir,X0).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return Ze(await ve(this,ir,X0).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=ct(r,"position");return Ze(await ve(this,ir,X0).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await nn({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=Sd.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 nn({network:this.getNetwork(),params:ve(this,ir,N5).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await nn({network:this.getNetwork(),params:ve(this,ir,Ps).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await nn({network:this.getNetwork(),params:ve(this,ir,Ps).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await ve(this,ir,Ps).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 nn({network:this.getNetwork(),result:ve(this,ir,Ps).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:Ze(r)}async getLogs(e){let r=this._getFilter(e);Cy(r)&&(r=await r);const{network:n,params:s}=await nn({network:this.getNetwork(),params:ve(this,ir,Ps).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){Be(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await ky.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=Bt(e);const r=v0(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await ky.getEnsAddress(this),s=await new Vc(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(s==null||s===eu)return null;const i=await new Vc(s,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(i)!==e?null:i}catch(n){if(jr(n,"BAD_DATA")&&n.value==="0x"||jr(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(yr("timeout","TIMEOUT",{reason:"timeout"})))},n)),c(await this.getBlockNumber())})}async waitForBlock(e){Be(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=S(this,Fi).get(e);r&&(r.timer&&clearTimeout(r.timer),S(this,Fi).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=yo(this,Ry)._++,s=()=>{S(this,Fi).delete(n),e()};if(this.paused)S(this,Fi).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);S(this,Fi).set(n,{timer:i,func:s,time:R5()})}return n}_forEachSubscriber(e){for(const r of S(this,ts).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new Ld(e.type);case"block":{const r=new TH(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new RH(this,e.type);case"event":return new S5(this,e.filter);case"transaction":return new xH(this,e.hash);case"orphan":return new PH(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of S(this,ts).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),S(this,rs)!=null&&r.pause(S(this,rs));break}}async on(e,r){const n=await ve(this,ir,Py).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,S(this,rs)!=null&&n.subscriber.pause(S(this,rs))),this}async once(e,r){const n=await ve(this,ir,Py).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,S(this,rs)!=null&&n.subscriber.pause(S(this,rs))),this}async emit(e,...r){const n=await ve(this,ir,eg).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 d2(this,o?null:i,e);try{i.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),S(this,ts).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await ve(this,ir,eg).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of S(this,ts).values())r+=n.length;return r}async listeners(e){if(e){const n=await ve(this,ir,eg).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of S(this,ts).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await ve(this,ir,eg).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(),S(this,ts).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await ve(this,ir,Py).call(this,e);n&&s.stop(),S(this,ts).delete(r)}else for(const[r,{started:n,subscriber:s}]of S(this,ts))n&&s.stop(),S(this,ts).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 S(this,Y0)}destroy(){this.removeAllListeners();for(const e of S(this,Fi).keys())this._clearTimeout(e);V(this,Y0,!0)}get paused(){return S(this,rs)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(V(this,Gc,-1),S(this,rs)!=null){if(S(this,rs)==!!e)return;Be(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),V(this,rs,!!e);for(const r of S(this,Fi).values())r.timer&&clearTimeout(r.timer),r.time=R5()-r.time}resume(){if(S(this,rs)!=null){this._forEachSubscriber(e=>e.resume()),V(this,rs,null);for(const e of S(this,Fi).values()){let r=e.time;r<0&&(r=0),e.time=R5(),setTimeout(e.func,r)}}}}ts=new WeakMap,bu=new WeakMap,rs=new WeakMap,Y0=new WeakMap,ei=new WeakMap,Vd=new WeakMap,wu=new WeakMap,Gc=new WeakMap,Ry=new WeakMap,Fi=new WeakMap,K0=new WeakMap,q0=new WeakMap,ir=new WeakSet,Ps=async function(t){const e=S(this,q0).cacheTimeout;if(e<0)return await this._perform(t);const r=Ty(t.method,t);let n=S(this,wu).get(r);return n||(n=this._perform(t),S(this,wu).set(r,n),setTimeout(()=>{S(this,wu).get(r)===n&&S(this,wu).delete(r)},e)),await n},P5=async function(t,e,r){Be(r<IH,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},t,{blockTag:e,enableCcipRead:!0})});const n=cu(t);try{return Ze(await this._perform({method:"call",transaction:n,blockTag:e}))}catch(s){if(!this.disableCcipRead&&Vp(s)&&s.data&&r>=0&&e==="latest"&&n.to!=null&&ur(s.data,0,4)==="0x556f1830"){const i=s.data,o=await an(n.to,this);let a;try{a=VH(ur(s.data,4))}catch(u){Be(!1,u.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:n,info:{data:i}})}Be(a.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:i,reason:"OffchainLookup",transaction:n,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:a.errorArgs}});const c=await this.ccipReadFetch(n,a.calldata,a.urls);Be(c!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:n,info:{data:s.data,errorArgs:a.errorArgs}});const l={to:o,data:$t([a.selector,LH([c,a.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const u=await ve(this,ir,P5).call(this,l,e,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:u}),u}catch(u){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:u}),u}}throw s}},x5=async function(t){const{value:e}=await nn({network:this.getNetwork(),value:t});return e},X0=async function(t,e,r){let n=this._getAddress(e),s=this._getBlockTag(r);return(typeof n!="string"||typeof s!="string")&&([n,s]=await Promise.all([n,s])),await ve(this,ir,x5).call(this,ve(this,ir,Ps).call(this,Object.assign(t,{address:n,blockTag:s})))},N5=async function(t,e){if(lr(t,32))return await ve(this,ir,Ps).call(this,{method:"getBlock",blockHash:t,includeTransactions:e});let r=this._getBlockTag(t);return typeof r!="string"&&(r=await r),await ve(this,ir,Ps).call(this,{method:"getBlock",blockTag:r,includeTransactions:e})},eg=async function(t,e){let r=await T5(t,this);return r.type==="event"&&e&&e.length>0&&e[0].removed===!0&&(r=await T5({orphan:"drop-log",log:e[0]},this)),S(this,ts).get(r.tag)||null},Py=async function(t){const e=await T5(t,this),r=e.tag;let n=S(this,ts).get(r);return n||(n={subscriber:this._getSubscriber(e),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},S(this,ts).set(r,n)),n};function UH(t,e){try{const r=I5(t,e);if(r)return ca(r)}catch{}return null}function I5(t,e){if(t==="0x")return null;try{const r=mt(ur(t,e,e+32)),n=mt(ur(t,r,r+32));return ur(t,r+32,r+32+n)}catch{}return null}function _T(t){const e=on(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 MH(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const FH=new Uint8Array([]);function LH(t){const e=[];let r=0;for(let n=0;n<t.length;n++)e.push(FH),r+=32;for(let n=0;n<t.length;n++){const s=qe(t[n]);e[n]=_T(r),e.push(_T(s.length)),e.push(MH(s)),r+=32+Math.ceil(s.length/32)*32}return $t(e)}const ST="0x0000000000000000000000000000000000000000000000000000000000000000";function VH(t){const e={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};Be(ia(t)>=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=ur(t,0,32);Be(ur(r,0,12)===ur(ST,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=ur(r,12);try{const n=[],s=mt(ur(t,32,64)),i=mt(ur(t,s,s+32)),o=ur(t,s+32);for(let a=0;a<i;a++){const c=UH(o,a*32);if(c==null)throw new Error("abort");n.push(c)}e.urls=n}catch{Be(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const n=I5(t,64);if(n==null)throw new Error("abort");e.calldata=n}catch{Be(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}Be(ur(t,100,128)===ur(ST,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),e.selector=ur(t,96,100);try{const n=I5(t,128);if(n==null)throw new Error("abort");e.extraData=n}catch{Be(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return e.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(n=>e[n]),e}function Wd(t,e){if(t.provider)return t.provider;Be(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function CT(t,e){let r=cu(e);if(r.to!=null&&(r.to=an(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),an(n,t)]).then(([s,i])=>(pe(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await nn(r)}class jd{constructor(e){X(this,"provider"),rt(this,{provider:e||null})}async getNonce(e){return Wd(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await CT(this,e)}async populateTransaction(e){const r=Wd(this,"populateTransaction"),n=await CT(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=ct(n.chainId);pe(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)?pe(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&pe(!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();Be(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?(Be(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):Be(!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 nn(n)}async estimateGas(e){return Wd(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Wd(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Wd(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=Wd(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=Sd.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}var tg,xy;const DH=class HV extends jd{constructor(e,r){super(r),ne(this,tg),X(this,"address"),rt(this,{address:e})}async getAddress(){return this.address}connect(e){return new HV(this.address,e)}async signTransaction(e){ve(this,tg,xy).call(this,"transactions","signTransaction")}async signMessage(e){ve(this,tg,xy).call(this,"messages","signMessage")}async signTypedData(e,r,n){ve(this,tg,xy).call(this,"typed-data","signTypedData")}};tg=new WeakSet,xy=function(t,e){Be(!1,`VoidSigner cannot sign ${t}`,"UNSUPPORTED_OPERATION",{operation:e})};let Ny=DH;const TT=new Set;function Pa(t){TT.has(t)||(TT.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 WH(t){return JSON.parse(JSON.stringify(t))}var fs,xa,Gd,ku,zd,rg,$d,O5,B5;class RT{constructor(e){ne(this,$d),ne(this,fs),ne(this,xa),ne(this,Gd),ne(this,ku),ne(this,zd),ne(this,rg),V(this,fs,e),V(this,xa,null),V(this,Gd,ve(this,$d,O5).bind(this)),V(this,ku,!1),V(this,zd,null),V(this,rg,!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(){S(this,ku)||(V(this,ku,!0),ve(this,$d,O5).call(this,-2))}stop(){S(this,ku)&&(V(this,ku,!1),V(this,rg,!0),ve(this,$d,B5).call(this),S(this,fs).off("block",S(this,Gd)))}pause(e){e&&ve(this,$d,B5).call(this),S(this,fs).off("block",S(this,Gd))}resume(){this.start()}}fs=new WeakMap,xa=new WeakMap,Gd=new WeakMap,ku=new WeakMap,zd=new WeakMap,rg=new WeakMap,$d=new WeakSet,O5=async function(t){try{S(this,xa)==null&&V(this,xa,this._subscribe(S(this,fs)));let e=null;try{e=await S(this,xa)}catch(s){if(!jr(s,"UNSUPPORTED_OPERATION")||s.operation!=="eth_newFilter")throw s}if(e==null){V(this,xa,null),S(this,fs)._recoverSubscriber(this,this._recover(S(this,fs)));return}const r=await S(this,fs).getNetwork();if(S(this,zd)||V(this,zd,r),S(this,zd).chainId!==r.chainId)throw new Error("chaid changed");if(S(this,rg))return;const n=await S(this,fs).send("eth_getFilterChanges",[e]);await this._emitResults(S(this,fs),n)}catch(e){console.log("@TODO",e)}S(this,fs).once("block",S(this,Gd))},B5=function(){const t=S(this,xa);t&&(V(this,xa,null),t.then(e=>{S(this,fs).destroyed||S(this,fs).send("eth_uninstallFilter",[e])}))};var Hd;class jH extends RT{constructor(e,r){super(e),ne(this,Hd),V(this,Hd,WH(r))}_recover(e){return new S5(e,S(this,Hd))}async _subscribe(e){return await e.send("eth_newFilter",[S(this,Hd)])}async _emitResults(e,r){for(const n of r)e.emit(S(this,Hd),e._wrapLog(n,e._network))}}Hd=new WeakMap;class GH extends RT{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const zH="bigint,boolean,function,number,string,symbol".split(/,/g);function Iy(t){if(t==null||zH.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 $H(t){return new Promise(e=>{setTimeout(e,t)})}function Zd(t){return t&&t.toLowerCase()}function PT(t){return t&&typeof t.pollingInterval=="number"}const xT={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ng extends jd{constructor(e,r){super(e),X(this,"address"),r=Bt(r),rt(this,{address:r})}connect(e){Be(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const r=Iy(e),n=[];if(r.from){const i=r.from;n.push((async()=>{const o=await an(i,this.provider);pe(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),r.from=o})())}else r.from=this.address;if(r.gasLimit==null&&n.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const i=r.to;n.push((async()=>{r.to=await an(i,this.provider)})())}n.length&&await Promise.all(n);const s=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[s])}async sendTransaction(e){const r=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise((s,i)=>{const o=[1e3,100];let a=0;const c=async()=>{try{const l=await this.provider.getTransaction(n);if(l!=null){s(l.replaceableTransaction(r));return}}catch(l){if(jr(l,"CANCELLED")||jr(l,"BAD_DATA")||jr(l,"NETWORK_ERROR")||jr(l,"UNSUPPORTED_OPERATION")){l.info==null&&(l.info={}),l.info.sendTransactionHash=n,i(l);return}if(jr(l,"INVALID_ARGUMENT")&&(a++,l.info==null&&(l.info={}),l.info.sendTransactionHash=n,a>10)){i(l);return}this.provider.emit("error",yr("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:l}))}this.provider._setTimeout(()=>{c()},o.pop()||4e3)};c()})}async signTransaction(e){const r=Iy(e);if(r.from){const s=await an(r.from,this.provider);pe(s!=null&&s.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),r.from=s}else r.from=this.address;const n=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const r=typeof e=="string"?qr(e):e;return await this.provider.send("personal_sign",[Ze(r),this.address.toLowerCase()])}async signTypedData(e,r,n){const s=Iy(n),i=await iu.resolveNames(e,r,s,async o=>{const a=await an(o);return pe(a!=null,"TypedData does not support null address","value",o),a});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(iu.getPayload(i.domain,r,i.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const r=typeof e=="string"?qr(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),Ze(r)])}}var Jd,sg,zc,Na,To,Li,xs,Oy,U5;class By extends Dd{constructor(e,r){super(e,r),ne(this,Oy),ne(this,Jd),ne(this,sg),ne(this,zc),ne(this,Na),ne(this,To),ne(this,Li),ne(this,xs),V(this,sg,1),V(this,Jd,Object.assign({},xT,r||{})),V(this,zc,[]),V(this,Na,null),V(this,Li,null),V(this,xs,null);{let s=null;const i=new Promise(o=>{s=o});V(this,To,{promise:i,resolve:s})}const n=this._getOption("staticNetwork");typeof n=="boolean"?(pe(!n||e!=="any","staticNetwork cannot be used on special network 'any'","options",r),n&&e!=null&&V(this,Li,Xr.from(e))):n&&(pe(e==null||n.matches(e),"staticNetwork MUST match network object","options",r),V(this,Li,n))}_getOption(e){return S(this,Jd)[e]}get _network(){return Be(S(this,Li),"network is not available yet","NETWORK_ERROR"),S(this,Li)}async _perform(e){if(e.method==="call"||e.method==="estimateGas"){let n=e.transaction;if(n&&n.type!=null&&ct(n.type)&&n.maxFeePerGas==null&&n.maxPriorityFeePerGas==null){const s=await this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(e=Object.assign({},e,{transaction:Object.assign({},n,{type:void 0})}))}}const r=this.getRpcRequest(e);return r!=null?await this.send(r.method,r.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e)if(e===!0){if(S(this,Li))return S(this,Li)}else return e;return S(this,xs)?await S(this,xs):this.ready?(V(this,xs,(async()=>{try{const r=Xr.from(ct(await this.send("eth_chainId",[])));return V(this,xs,null),r}catch(r){throw V(this,xs,null),r}})()),await S(this,xs)):(V(this,xs,(async()=>{const r={id:yo(this,sg)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let n;try{n=(await this._send(r))[0],V(this,xs,null)}catch(s){throw V(this,xs,null),this.emit("debug",{action:"receiveRpcError",error:s}),s}if(this.emit("debug",{action:"receiveRpcResult",result:n}),"result"in n)return Xr.from(ct(n.result));throw this.getRpcError(r,n)})()),await S(this,xs))}_start(){S(this,To)==null||S(this,To).resolve==null||(S(this,To).resolve(),V(this,To,null),(async()=>{for(;S(this,Li)==null&&!this.destroyed;)try{V(this,Li,await this._detectNetwork())}catch(e){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",yr("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await $H(1e3)}ve(this,Oy,U5).call(this)})())}async _waitUntilReady(){if(S(this,To)!=null)return await S(this,To).promise}_getSubscriber(e){return e.type==="pending"?new GH(this):e.type==="event"?this._getOption("polling")?new S5(this,e.filter):new jH(this,e.filter):e.type==="orphan"&&e.filter.orphan==="drop-log"?new Ld("orphan"):super._getSubscriber(e)}get ready(){return S(this,To)==null}getRpcTransaction(e){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(n=>{if(e[n]==null)return;let s=n;n==="gasLimit"&&(s="gas"),r[s]=aa(ct(e[n],`tx.${n}`))}),["from","to","data"].forEach(n=>{e[n]!=null&&(r[n]=Ze(e[n]))}),e.accessList&&(r.accessList=So(e.accessList)),e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes.map(n=>n.toLowerCase())),r}getRpcRequest(e){switch(e.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:[Zd(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Zd(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[Zd(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Zd(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&e.filter.address!=null&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(Zd):e.filter.address=Zd(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,r){const{method:n}=e,{error:s}=r;if(n==="eth_estimateGas"&&s.message){const a=s.message;if(!a.match(/revert/i)&&a.match(/insufficient funds/i))return yr("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:s}})}if(n==="eth_call"||n==="eth_estimateGas"){const a=M5(s),c=Rd.getBuiltinCallException(n==="eth_call"?"call":"estimateGas",e.params[0],a?a.data:null);return c.info={error:s,payload:e},c}const i=JSON.stringify(HH(s));if(typeof s.message=="string"&&s.message.match(/user denied|ethers-user-denied/i))return yr("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"}[n]||"unknown",reason:"rejected",info:{payload:e,error:s}});if(n==="eth_sendRawTransaction"||n==="eth_sendTransaction"){const a=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return yr("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:a,info:{error:s}});if(i.match(/nonce/i)&&i.match(/too low/i))return yr("nonce has already been used","NONCE_EXPIRED",{transaction:a,info:{error:s}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return yr("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:a,info:{error:s}});if(i.match(/only replay-protected/i))return yr("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:a,info:{error:s}}})}let o=!!i.match(/the method .* does not exist/i);return o||s&&s.details&&s.details.startsWith("Unauthorized method:")&&(o=!0),o?yr("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:s,payload:e}}):yr("could not coalesce error","UNKNOWN_ERROR",{error:s,payload:e})}send(e,r){if(this.destroyed)return Promise.reject(yr("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const n=yo(this,sg)._++,s=new Promise((i,o)=>{S(this,zc).push({resolve:i,reject:o,payload:{method:e,params:r,id:n,jsonrpc:"2.0"}})});return ve(this,Oy,U5).call(this),s}async getSigner(e){e==null&&(e=0);const r=this.send("eth_accounts",[]);if(typeof e=="number"){const s=await r;if(e>=s.length)throw new Error("no such account");return new ng(this,s[e])}const{accounts:n}=await nn({network:this.getNetwork(),accounts:r});e=Bt(e);for(const s of n)if(Bt(s)===e)return new ng(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new ng(this,e))}destroy(){S(this,Na)&&(clearTimeout(S(this,Na)),V(this,Na,null));for(const{payload:e,reject:r}of S(this,zc))r(yr("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));V(this,zc,[]),super.destroy()}}Jd=new WeakMap,sg=new WeakMap,zc=new WeakMap,Na=new WeakMap,To=new WeakMap,Li=new WeakMap,xs=new WeakMap,Oy=new WeakSet,U5=function(){if(S(this,Na))return;const t=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");V(this,Na,setTimeout(()=>{V(this,Na,null);const e=S(this,zc);for(V(this,zc,[]);e.length;){const r=[e.shift()];for(;e.length&&r.length!==S(this,Jd).batchMaxCount;)if(r.push(e.shift()),JSON.stringify(r.map(n=>n.payload)).length>S(this,Jd).batchMaxSize){e.unshift(r.pop());break}(async()=>{const n=r.length===1?r[0].payload:r.map(s=>s.payload);this.emit("debug",{action:"sendRpcPayload",payload:n});try{const s=await this._send(n);this.emit("debug",{action:"receiveRpcResult",result:s});for(const{resolve:i,reject:o,payload:a}of r){if(this.destroyed){o(yr("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:a.method}));continue}const c=s.filter(l=>l.id===a.id)[0];if(c==null){const l=yr("missing response for request","BAD_DATA",{value:s,info:{payload:a}});this.emit("error",l),o(l);continue}if("error"in c){o(this.getRpcError(a,c));continue}i(c.result)}}catch(s){this.emit("debug",{action:"receiveRpcError",error:s});for(const{reject:i}of r)i(s)}})()}},t))};var Eu;class NT extends By{constructor(e,r){super(e,r),ne(this,Eu);let n=this._getOption("pollingInterval");n==null&&(n=xT.pollingInterval),V(this,Eu,n)}_getSubscriber(e){const r=super._getSubscriber(e);return PT(r)&&(r.pollingInterval=S(this,Eu)),r}get pollingInterval(){return S(this,Eu)}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");V(this,Eu,e),this._forEachSubscriber(r=>{PT(r)&&(r.pollingInterval=S(this,Eu))})}}Eu=new WeakMap;var ig;class Ns extends NT{constructor(e,r,n){e==null&&(e="http://localhost:8545"),super(r,n),ne(this,ig),typeof e=="string"?V(this,ig,new Mn(e)):V(this,ig,e.clone())}_getConnection(){return S(this,ig).clone()}async send(e,r){return await this._start(),await super.send(e,r)}async _send(e){const r=this._getConnection();r.body=JSON.stringify(e),r.setHeader("content-type","application/json");const n=await r.send();n.assertOk();let s=n.bodyJson;return Array.isArray(s)||(s=[s]),s}}ig=new WeakMap;function M5(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&lr(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=M5(t[e]);if(r)return r}return null}if(typeof t=="string")try{return M5(JSON.parse(t))}catch{}return null}function F5(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)F5(t[r],e);if(typeof t=="string")try{return F5(JSON.parse(t),e)}catch{}}}function HH(t){const e=[];return F5(t,e),e}const Uy="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function ZH(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"}pe(!1,"unsupported network","network",t)}class Qd extends Ns{constructor(e,r){e==null&&(e="mainnet");const n=Xr.from(e);r==null&&(r=Uy);const s={polling:!0,staticNetwork:n},i=Qd.getRequest(n,r);super(i,n,s),X(this,"apiKey"),rt(this,{apiKey:r})}_getProvider(e){try{return new Qd(e,this.apiKey)}catch{}return super._getProvider(e)}static getRequest(e,r){r==null&&(r=Uy);const n=new Mn(`https://${ZH(e.name)}/${r}`);return n.allowGzip=!0,r===Uy&&(n.retryFunc=async(s,i,o)=>(Pa("AnkrProvider"),!0)),n}getRpcError(e,r){return e.method==="eth_sendRawTransaction"&&r&&r.error&&r.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(r.error.message="replacement transaction underpriced"),super.getRpcError(e,r)}isCommunityResource(){return this.apiKey===Uy}}const My="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function JH(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"}pe(!1,"unsupported network","network",t)}class Yd extends Ns{constructor(e,r){e==null&&(e="mainnet");const n=Xr.from(e);r==null&&(r=My);const s=Yd.getRequest(n,r);super(s,n,{staticNetwork:n}),X(this,"apiKey"),rt(this,{apiKey:r})}_getProvider(e){try{return new Yd(e,this.apiKey)}catch{}return super._getProvider(e)}async _perform(e){if(e.method==="getTransactionResult"){const{trace:r,tx:n}=await nn({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(r==null||n==null)return null;let s,i=!1;try{s=r[0].result.output,i=r[0].error==="Reverted"}catch{}if(s)return Be(!i,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:s,reason:null,transaction:n,invocation:null,revert:null}),s;Be(!1,"could not parse trace result","BAD_DATA",{value:r})}return await super._perform(e)}isCommunityResource(){return this.apiKey===My}static getRequest(e,r){r==null&&(r=My);const n=new Mn(`https://${JH(e.name)}/v2/${r}`);return n.allowGzip=!0,r===My&&(n.retryFunc=async(s,i,o)=>(Pa("alchemy"),!0)),n}}function Fy(t){switch(t){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}pe(!1,"unsupported network","network",t)}function QH(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"}pe(!1,"unsupported network","network",t)}class Kd extends Ns{constructor(e,r){e==null&&(e="mainnet");const n=Xr.from(e);r==null&&(r=Fy(n.name));const s=Kd.getRequest(n,r);super(s,n,{staticNetwork:n}),X(this,"apiKey"),rt(this,{apiKey:r})}_getProvider(e){try{return new Kd(e,this.apiKey)}catch{}return super._getProvider(e)}isCommunityResource(){return this.apiKey===Fy(this._network.name)}static getRequest(e,r){r==null&&(r=Fy(e.name));const n=new Mn(`https://${QH(e.name)}/${r}`);return n.allowGzip=!0,r===Fy(e.name)&&(n.retryFunc=async(s,i,o)=>(Pa("ChainstackProvider"),!0)),n}}class L5 extends Ns{constructor(e){e==null&&(e="mainnet");const r=Xr.from(e);pe(r.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}}const IT=2e3;function YH(t){return t&&typeof t.then=="function"}const OT="org.ethers.plugins.provider.Etherscan";class Ly extends Ta{constructor(e){super(OT),X(this,"baseUrl"),rt(this,{baseUrl:e})}clone(){return new Ly(this.baseUrl)}}const KH=["enableCcipRead"];let qH=1;var og;class V5 extends Dd{constructor(e,r){const n=r??null;super(),X(this,"network"),X(this,"apiKey"),ne(this,og);const s=Xr.from(e);V(this,og,s.getPlugin(OT)),rt(this,{apiKey:n,network:s}),this.getBaseUrl()}getBaseUrl(){if(S(this,og))return S(this,og).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"}pe(!1,"unsupported network","network",this.network)}getUrl(e,r){const n=Object.keys(r).reduce((i,o)=>{const a=r[o];return a!=null&&(i+=`&${o}=${a}`),i},""),s=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${e}${n}${s}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(e,r){return r.module=e,r.apikey=this.apiKey,r}async detectNetwork(){return this.network}async fetch(e,r,n){const s=qH++,i=n?this.getPostUrl():this.getUrl(e,r),o=n?this.getPostData(e,r):null;this.emit("debug",{action:"sendRequest",id:s,url:i,payload:o});const a=new Mn(i);a.setThrottleParams({slotInterval:1e3}),a.retryFunc=(u,d,h)=>(this.isCommunityResource()&&Pa("Etherscan"),Promise.resolve(!0)),a.processFunc=async(u,d)=>{const h=d.hasBody()?JSON.parse(ca(d.body)):{},p=(typeof h.result=="string"?h.result:"").toLowerCase().indexOf("rate limit")>=0;return e==="proxy"?h&&h.status==0&&h.message=="NOTOK"&&p&&(this.emit("debug",{action:"receiveError",id:s,reason:"proxy-NOTOK",error:h}),d.throwThrottleError(h.result,IT)):p&&(this.emit("debug",{action:"receiveError",id:s,reason:"null result",error:h.result}),d.throwThrottleError(h.result,IT)),d},o&&(a.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.body=Object.keys(o).map(u=>`${u}=${o[u]}`).join("&"));const c=await a.send();try{c.assertOk()}catch(u){this.emit("debug",{action:"receiveError",id:s,error:u,reason:"assertOk"}),Be(!1,"response error","SERVER_ERROR",{request:a,response:c})}c.hasBody()||(this.emit("debug",{action:"receiveError",id:s,error:"missing body",reason:"null body"}),Be(!1,"missing response","SERVER_ERROR",{request:a,response:c}));const l=JSON.parse(ca(c.body));return e==="proxy"?(l.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:s,result:l,reason:"invalid JSON-RPC"}),Be(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:a,response:c,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:s,result:l,reason:"JSON-RPC error"}),Be(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:s,result:l}),l.result):l.status==0&&(l.message==="No records found"||l.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:s,result:l}),l.result):((l.status!=1||typeof l.message=="string"&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:s,result:l}),Be(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:s,result:l}),l.result)}_getTransactionPostData(e){const r={};for(let n in e){if(KH.indexOf(n)>=0||e[n]==null)continue;let s=e[n];if(!(n==="type"&&s===0)&&!(n==="blockTag"&&s==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n])s=aa(s);else if(n==="accessList")s="["+So(s).map(i=>`{address:"${i.address}",storageKeys:["${i.storageKeys.join('","')}"]}`).join(",")+"]";else if(n==="blobVersionedHashes"){if(s.length===0)continue;Be(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else s=Ze(s);r[n]=s}}return r}_checkError(e,r,n){let s="";if(jr(r,"SERVER_ERROR")){try{s=r.info.result.error.message}catch{}if(!s)try{s=r.info.message}catch{}}if(e.method==="estimateGas"&&!s.match(/revert/i)&&s.match(/insufficient funds/i)&&Be(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),(e.method==="call"||e.method==="estimateGas")&&s.match(/execution reverted/i)){let i="";try{i=r.info.result.error.data}catch{}const o=Rd.getBuiltinCallException(e.method,e.transaction,i);throw o.info={request:e,error:r},o}if(s&&e.method==="broadcastTransaction"){const i=Sd.from(e.signedTransaction);s.match(/replacement/i)&&s.match(/underpriced/i)&&Be(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:i}),s.match(/insufficient funds/)&&Be(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:i}),s.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Be(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:i})}throw r}async _detectNetwork(){return this.network}async _perform(e){switch(e.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:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(r=>this._checkError(e,r,e.signedTransaction));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});Be(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if(e.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const r=this._getTransactionPostData(e.transaction);r.module="proxy",r.action="eth_call";try{return await this.fetch("proxy",r,!0)}catch(n){return this._checkError(e,n,e.transaction)}}case"estimateGas":{const r=this._getTransactionPostData(e.transaction);r.module="proxy",r.action="eth_estimateGas";try{return await this.fetch("proxy",r,!0)}catch(n){return this._checkError(e,n,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let r=this._getAddress(e);YH(r)&&(r=await r);try{const n=await this.fetch("contract",{action:"getabi",address:r}),s=JSON.parse(n);return new Vc(r,s,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}og=new WeakMap;function XH(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}const eZ=XH().WebSocket;var Ia,Vy,Au,qd,_u;class ag{constructor(e,r){ne(this,Ia),ne(this,Vy),ne(this,Au),ne(this,qd),ne(this,_u),V(this,Ia,e),V(this,Vy,JSON.stringify(r)),V(this,Au,null),V(this,qd,null),V(this,_u,null)}get filter(){return JSON.parse(S(this,Vy))}start(){V(this,Au,S(this,Ia).send("eth_subscribe",this.filter).then(e=>(S(this,Ia)._register(e,this),e)))}stop(){S(this,Au).then(e=>{S(this,Ia).destroyed||S(this,Ia).send("eth_unsubscribe",[e])}),V(this,Au,null)}pause(e){Be(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),V(this,qd,!!e)}resume(){V(this,qd,null)}_handleMessage(e){if(S(this,Au)!=null&&S(this,qd)===null){let r=S(this,_u);r==null?r=this._emit(S(this,Ia),e):r=r.then(async()=>{await this._emit(S(this,Ia),e)}),V(this,_u,r.then(()=>{S(this,_u)===r&&V(this,_u,null)}))}}async _emit(e,r){throw new Error("sub-classes must implemente this; _emit")}}Ia=new WeakMap,Vy=new WeakMap,Au=new WeakMap,qd=new WeakMap,_u=new WeakMap;class D5 extends ag{constructor(e){super(e,["newHeads"])}async _emit(e,r){e.emit("block",parseInt(r.number))}}class W5 extends ag{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,r){e.emit("pending",r)}}var Dy;class j5 extends ag{constructor(e,r){super(e,["logs",r]),ne(this,Dy),V(this,Dy,JSON.stringify(r))}get logFilter(){return JSON.parse(S(this,Dy))}async _emit(e,r){e.emit(this.logFilter,e._wrapLog(r,e._network))}}Dy=new WeakMap;var Xd,cg,Su;class G5 extends By{constructor(e,r){const n=Object.assign({},r??{});pe(n.batchMaxCount==null||n.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",r),n.batchMaxCount=1,n.staticNetwork==null&&(n.staticNetwork=!0),super(e,n),ne(this,Xd),ne(this,cg),ne(this,Su),V(this,Xd,new Map),V(this,cg,new Map),V(this,Su,new Map)}_getSubscriber(e){switch(e.type){case"close":return new Ld("close");case"block":return new D5(this);case"pending":return new W5(this);case"event":return new j5(this,e.filter);case"orphan":if(e.filter.orphan==="drop-log")return new Ld("drop-log")}return super._getSubscriber(e)}_register(e,r){S(this,cg).set(e,r);const n=S(this,Su).get(e);if(n){for(const s of n)r._handleMessage(s);S(this,Su).delete(e)}}async _send(e){pe(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const r=new Promise((n,s)=>{S(this,Xd).set(e.id,{payload:e,resolve:n,reject:s})});return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await r]}async _processMessage(e){const r=JSON.parse(e);if(r&&typeof r=="object"&&"id"in r){const n=S(this,Xd).get(r.id);if(n==null){this.emit("error",yr("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:r}));return}S(this,Xd).delete(r.id),n.resolve(r)}else if(r&&r.method==="eth_subscription"){const n=r.params.subscription,s=S(this,cg).get(n);if(s)s._handleMessage(r.params.result);else{let i=S(this,Su).get(n);i==null&&(i=[],S(this,Su).set(n,i)),i.push(r.params.result)}}else{this.emit("error",yr("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:r}));return}}async _write(e){throw new Error("sub-classes must override this")}}Xd=new WeakMap,cg=new WeakMap,Su=new WeakMap;var ef,Ro;class Wy extends G5{constructor(e,r,n){super(r,n),ne(this,ef),ne(this,Ro),typeof e=="string"?(V(this,ef,()=>new eZ(e)),V(this,Ro,S(this,ef).call(this))):typeof e=="function"?(V(this,ef,e),V(this,Ro,e())):(V(this,ef,null),V(this,Ro,e)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(s){console.log("failed to start WebsocketProvider",s)}},this.websocket.onmessage=s=>{this._processMessage(s.data)}}get websocket(){if(S(this,Ro)==null)throw new Error("websocket closed");return S(this,Ro)}async _write(e){this.websocket.send(e)}async destroy(){S(this,Ro)!=null&&(S(this,Ro).close(),V(this,Ro,null)),super.destroy()}}ef=new WeakMap,Ro=new WeakMap;const lg="84842078b09946638c03157f83405213";function tZ(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"}pe(!1,"unsupported network","network",t)}class z5 extends Wy{constructor(e,r){const n=new Cu(e,r),s=n._getConnection();Be(!s.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const i=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(i,n._network),X(this,"projectId"),X(this,"projectSecret"),rt(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===lg}}class Cu extends Ns{constructor(e,r,n){e==null&&(e="mainnet");const s=Xr.from(e);r==null&&(r=lg),n==null&&(n=null);const i=Cu.getRequest(s,r,n);super(i,s,{staticNetwork:s}),X(this,"projectId"),X(this,"projectSecret"),rt(this,{projectId:r,projectSecret:n})}_getProvider(e){try{return new Cu(e,this.projectId,this.projectSecret)}catch{}return super._getProvider(e)}isCommunityResource(){return this.projectId===lg}static getWebSocketProvider(e,r){return new z5(e,r)}static getRequest(e,r,n){r==null&&(r=lg),n==null&&(n=null);const s=new Mn(`https://${tZ(e.name)}/v3/${r}`);return s.allowGzip=!0,n&&s.setCredentials("",n),r===lg&&(s.retryFunc=async(i,o,a)=>(Pa("InfuraProvider"),!0)),s}}const jy="919b412a057b5e9c9b6dce193c5a60242d6efadb";function rZ(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"}pe(!1,"unsupported network","network",t)}class tf extends Ns{constructor(e,r){e==null&&(e="mainnet");const n=Xr.from(e);r==null&&(r=jy);const s=tf.getRequest(n,r);super(s,n,{staticNetwork:n}),X(this,"token"),rt(this,{token:r})}_getProvider(e){try{return new tf(e,this.token)}catch{}return super._getProvider(e)}isCommunityResource(){return this.token===jy}static getRequest(e,r){r==null&&(r=jy);const n=new Mn(`https://${rZ(e.name)}/${r}`);return n.allowGzip=!0,r===jy&&(n.retryFunc=async(s,i,o)=>(Pa("QuickNodeProvider"),!0)),n}}const nZ=BigInt("1"),sZ=BigInt("2");function iZ(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 oZ(t){return new Promise(e=>{setTimeout(e,t)})}function $5(){return new Date().getTime()}function H5(t){return JSON.stringify(t,(e,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}const BT={stallTimeout:400,priority:1,weight:1},UT={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 aZ(t,e){for(;(t.blockNumber<0||t.blockNumber<e)&&(t._updateNumber||(t._updateNumber=(async()=>{try{const r=await t.provider.getBlockNumber();r>t.blockNumber&&(t.blockNumber=r)}catch(r){t.blockNumber=-2,t._lastFatalError=r,t._lastFatalErrorTimestamp=$5()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function ug(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(ug).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return ug(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)}:${ug(t[r])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function Z5(t){if("error"in t){const r=t.error;return{tag:ug(r),value:r}}const e=t.result;return{tag:ug(e),value:e}}function Gy(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 J5(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)return s&&s.weight>=t?s.value:void 0;i.sort((a,c)=>a<c?-1:c>a?1:0);const o=Math.floor(i.length/2);return i.length%2?i[o]:(i[o-1]+i[o]+nZ)/sZ}function Q5(t,e){const r=Gy(t,e);if(r!==void 0)return r;for(const n of e)if(n.value)return n.value}function cZ(t,e){if(t===1)return mt(J5(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=mt(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 Is,$c,hg,Oa,MT,Y5,FT,LT,K5;class q5 extends Dd{constructor(e,r,n){super(r,n),ne(this,Oa),X(this,"quorum"),X(this,"eventQuorum"),X(this,"eventWorkers"),ne(this,Is),ne(this,$c),ne(this,hg),V(this,Is,e.map(s=>s instanceof Dd?Object.assign({provider:s},BT,UT):Object.assign({},BT,s,UT))),V(this,$c,-2),V(this,hg,null),n&&n.quorum!=null?this.quorum=n.quorum:this.quorum=Math.ceil(S(this,Is).reduce((s,i)=>(s+=i.weight,s),0)/2),this.eventQuorum=1,this.eventWorkers=1,pe(this.quorum<=S(this,Is).reduce((s,i)=>s+i.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return S(this,Is).map(e=>{const r=Object.assign({},e);for(const n in r)n[0]==="_"&&delete r[n];return r})}async _detectNetwork(){return Xr.from(ct(await this._perform({method:"chainId"})))}async _translatePerform(e,r){switch(r.method){case"broadcastTransaction":return await e.broadcastTransaction(r.signedTransaction);case"call":return await e.call(Object.assign({},r.transaction,{blockTag:r.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(r.transaction);case"getBalance":return await e.getBalance(r.address,r.blockTag);case"getBlock":{const n="blockHash"in r?r.blockHash:r.blockTag;return await e.getBlock(n,r.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(r.address,r.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(r.filter);case"getStorage":return await e.getStorage(r.address,r.position,r.blockTag);case"getTransaction":return await e.getTransaction(r.hash);case"getTransactionCount":return await e.getTransactionCount(r.address,r.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(r.hash);case"getTransactionResult":return await e.getTransactionResult(r.hash)}}async _perform(e){if(e.method==="broadcastTransaction"){const i=S(this,Is).map(c=>null),o=S(this,Is).map(async({provider:c,weight:l},u)=>{try{const d=await c._perform(e);i[u]=Object.assign(Z5({result:d}),{weight:l})}catch(d){i[u]=Object.assign(Z5({error:d}),{weight:l})}});for(;;){const c=i.filter(d=>d!=null);for(const{value:d}of c)if(!(d instanceof Error))return d;const l=Gy(this.quorum,i.filter(d=>d!=null));if(jr(l,"INSUFFICIENT_FUNDS"))throw l;const u=o.filter((d,h)=>i[h]==null);if(u.length===0)break;await Promise.race(u)}const a=Q5(this.quorum,i);if(Be(a!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:i.map(H5)}}),a instanceof Error)throw a;return a}await ve(this,Oa,FT).call(this);const r=new Set;let n=0;for(;;){const i=ve(this,Oa,Y5).call(this,r,e);if(i==null||(n+=i.config.weight,n>=this.quorum))break}const s=await ve(this,Oa,K5).call(this,r,e);for(const i of r)i.perform&&i.result==null&&i.config.lateResponses++;return s}async destroy(){for(const{provider:e}of S(this,Is))e.destroy();super.destroy()}}Is=new WeakMap,$c=new WeakMap,hg=new WeakMap,Oa=new WeakSet,MT=function(t){const e=Array.from(t).map(n=>n.config),r=S(this,Is).slice();iZ(r),r.sort((n,s)=>n.priority-s.priority);for(const n of r)if(!n._lastFatalError&&e.indexOf(n)===-1)return n;return null},Y5=function(t,e){const r=ve(this,Oa,MT).call(this,t);if(r==null)return null;const n={config:r,result:null,didBump:!1,perform:null,staller:null},s=$5();return n.perform=(async()=>{try{r.requests++;const o=await this._translatePerform(r.provider,e);n.result={result:o}}catch(o){r.errorResponses++,n.result={error:o}}const i=$5()-s;r._totalTime+=i,r.rollingDuration=.95*r.rollingDuration+.05*i,n.perform=null})(),n.staller=(async()=>{await oZ(r.stallTimeout),n.staller=null})(),t.add(n),n},FT=async function(){let t=S(this,hg);if(!t){const e=[];S(this,Is).forEach(r=>{e.push((async()=>{await aZ(r,0),r._lastFatalError||(r._network=await r.provider.getNetwork())})())}),V(this,hg,t=(async()=>{await Promise.all(e);let r=null;for(const n of S(this,Is)){if(n._lastFatalError)continue;const s=n._network;r==null?r=s.chainId:s.chainId!==r&&Be(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await t},LT=async function(t,e){const r=[];for(const n of t)if(n.result!=null){const{tag:s,value:i}=Z5(n.result);r.push({tag:s,value:i,weight:n.config.weight})}if(!(r.reduce((n,s)=>n+s.weight,0)<this.quorum)){switch(e.method){case"getBlockNumber":{S(this,$c)===-2&&V(this,$c,Math.ceil(mt(J5(this.quorum,S(this,Is).filter(s=>!s._lastFatalError).map(s=>({value:s.blockNumber,tag:mt(s.blockNumber).toString(),weight:s.weight}))))));const n=cZ(this.quorum,r);return n===void 0?void 0:(n>S(this,$c)&&V(this,$c,n),S(this,$c))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return J5(this.quorum,r);case"getBlock":return"blockTag"in e&&e.blockTag==="pending"?Q5(this.quorum,r):Gy(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return Gy(this.quorum,r);case"broadcastTransaction":return Q5(this.quorum,r)}Be(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${H5(e.method)})`})}},K5=async function(t,e){if(t.size===0)throw new Error("no runners?!");const r=[];let n=0;for(const i of t){if(i.perform&&r.push(i.perform),i.staller){r.push(i.staller);continue}i.didBump||(i.didBump=!0,n++)}const s=await ve(this,Oa,LT).call(this,t,e);if(s!==void 0){if(s instanceof Error)throw s;return s}for(let i=0;i<n;i++)ve(this,Oa,Y5).call(this,t,e);return Be(r.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:Array.from(t).map(i=>H5(i.result))}}),await Promise.race(r),await ve(this,Oa,K5).call(this,t,e)};function lZ(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const uZ="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function VT(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 Ns(t);if(typeof t=="string"&&t.match(/^wss?:/)||lZ(t))return new Wy(t);let n=null;try{n=Xr.from(t)}catch{}const s=[];if(r("publicPolygon")&&n&&(n.name==="matic"?s.push(new Ns("https://polygon-rpc.com/",n,{staticNetwork:n})):n.name==="matic-amoy"&&s.push(new Ns("https://rpc-amoy.polygon.technology/",n,{staticNetwork:n}))),r("alchemy"))try{s.push(new Yd(t,e.alchemy))}catch{}if(r("ankr")&&e.ankr!=null)try{s.push(new Qd(t,e.ankr))}catch{}if(r("chainstack"))try{s.push(new Kd(t,e.chainstack))}catch{}if(r("cloudflare"))try{s.push(new L5(t))}catch{}if(r("etherscan"))try{s.push(new V5(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 Cu(t,o,a))}catch{}if(r("quicknode"))try{let o=e.quicknode;s.push(new tf(t,o))}catch{}if(Be(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&&uZ.indexOf(n.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new q5(s,void 0,{quorum:i})}var Tu,rf;const hZ=class ZV extends jd{constructor(e){super(e.provider),X(this,"signer"),ne(this,Tu),ne(this,rf),rt(this,{signer:e}),V(this,Tu,null),V(this,rf,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new ZV(this.signer.connect(e))}async getNonce(e){if(e==="pending"){S(this,Tu)==null&&V(this,Tu,super.getNonce("pending"));const r=S(this,rf);return await S(this,Tu)+r}return super.getNonce(e)}increment(){yo(this,rf)._++}reset(){V(this,rf,0),V(this,Tu,null)}async sendTransaction(e){const r=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await r,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,r,n){return this.signer.signTypedData(e,r,n)}};Tu=new WeakMap,rf=new WeakMap;let DT=hZ;var dg;class X5 extends NT{constructor(e,r,n){const s=Object.assign({},n??{},{batchMaxCount:1});pe(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(r,s),ne(this,dg),V(this,dg,async(i,o)=>{const a={method:i,params:o};this.emit("debug",{action:"sendEip1193Request",payload:a});try{const c=await e.request(a);return this.emit("debug",{action:"receiveEip1193Result",result:c}),c}catch(c){const l=new Error(c.message);throw l.code=c.code,l.data=c.data,l.payload=a,this.emit("debug",{action:"receiveEip1193Error",error:l}),l}})}async send(e,r){return await this._start(),await super.send(e,r)}async _send(e){pe(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const r=await S(this,dg).call(this,e.method,e.params||[]);return[{id:e.id,result:r}]}catch(r){return[{id:e.id,error:{code:r.code,data:r.data,message:r.message}}]}}getRpcError(e,r){switch(r=JSON.parse(JSON.stringify(r)),r.error.code||-1){case 4001:r.error.message=`ethers-user-denied: ${r.error.message}`;break;case 4200:r.error.message=`ethers-unsupported: ${r.error.message}`;break}return super.getRpcError(e,r)}async hasSigner(e){e==null&&(e=0);const r=await this.send("eth_accounts",[]);return typeof e=="number"?r.length>e:(e=e.toLowerCase(),r.filter(n=>n.toLowerCase()===e).length!==0)}async getSigner(e){if(e==null&&(e=0),!await this.hasSigner(e))try{await S(this,dg).call(this,"eth_requestAccounts",[])}catch(r){const n=r.payload;throw this.getRpcError(n,{id:n.id,error:r})}return await super.getSigner(e)}}dg=new WeakMap;const zy="62e1ad51b37b8e00394bda3b";function dZ(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"}pe(!1,"unsupported network","network",t)}class fg extends Ns{constructor(e,r,n){e==null&&(e="mainnet");const s=Xr.from(e);r==null&&(r=zy),n==null&&(n=null);const i={staticNetwork:s},o=fg.getRequest(s,r,n);super(o,s,i),X(this,"applicationId"),X(this,"applicationSecret"),rt(this,{applicationId:r,applicationSecret:n})}_getProvider(e){try{return new fg(e,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(e)}static getRequest(e,r,n){r==null&&(r=zy);const s=new Mn(`https://${dZ(e.name)}/v1/lb/${r}`);return s.allowGzip=!0,n&&s.setCredentials("",n),r===zy&&(s.retryFunc=async(i,o,a)=>(Pa("PocketProvider"),!0)),s}isCommunityResource(){return this.applicationId===zy}}const WT=void 0;var pg;const fZ=class JV extends jd{constructor(e,r){super(r),X(this,"address"),ne(this,pg),pe(e&&typeof e.sign=="function","invalid private key","privateKey","[ REDACTED ]"),V(this,pg,e);const n=ru(this.signingKey.publicKey);rt(this,{address:n})}get signingKey(){return S(this,pg)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new JV(S(this,pg),e)}async signTransaction(e){e=cu(e);const{to:r,from:n}=await nn({to:e.to?an(e.to,this.provider):void 0,from:e.from?an(e.from,this.provider):void 0});r!=null&&(e.to=r),n!=null&&(e.from=n),e.from!=null&&(pe(Bt(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const s=Sd.from(e);return s.signature=this.signingKey.sign(s.unsignedHash),s.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign(X2(e)).serialized}async signTypedData(e,r,n){const s=await iu.resolveNames(e,r,n,async i=>{Be(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:i}});const o=await this.provider.resolveName(i);return Be(o!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:i}),o});return this.signingKey.sign(iu.hash(s.domain,r,s.value)).serialized}};pg=new WeakMap;let $y=fZ;const Hy=" !#$%&'()*+,-./<=>?@[]^_`{|}~",pZ=/^[a-z]*$/i;function jT(t,e){let r=97;return t.reduce((n,s)=>(s===e?r++:s.match(pZ)?n.push(String.fromCharCode(r)+s):(r=97,n.push(s)),n),[])}function gZ(t,e){for(let s=Hy.length-1;s>=0;s--)t=t.split(Hy[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 jT(jT(r,";"),":")}function GT(t){return pe(t[0]==="0","unsupported auwl data","data",t),gZ(t.substring(1+2*Hy.length),t.substring(1,1+2*Hy.length))}class e6{constructor(e){X(this,"locale"),rt(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var gg,Zy,nf,Jy,t6;class Qy extends e6{constructor(e,r,n){super(e),ne(this,Jy),ne(this,gg),ne(this,Zy),ne(this,nf),V(this,gg,r),V(this,Zy,n),V(this,nf,null)}get _data(){return S(this,gg)}_decodeWords(){return GT(S(this,gg))}getWord(e){const r=ve(this,Jy,t6).call(this);return pe(e>=0&&e<r.length,`invalid word index: ${e}`,"index",e),r[e]}getWordIndex(e){return ve(this,Jy,t6).call(this).indexOf(e)}}gg=new WeakMap,Zy=new WeakMap,nf=new WeakMap,Jy=new WeakSet,t6=function(){if(S(this,nf)==null){const t=this._decodeWords();if(xi(t.join(`
6
6
  `)+`
7
- `)!==S(this,Zy))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);V(this,nf,t)}return S(this,nf)};const mZ="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX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Ta>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",yZ="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let r6=null;class Po extends Qy{constructor(){super("en",mZ,yZ)}static wordlist(){return r6==null&&(r6=new Po),r6}}function zT(t){return(1<<t)-1<<8-t&255}function vZ(t){return(1<<t)-1&255}function n6(t,e){a2("NFKD"),e==null&&(e=Po.wordlist());const r=e.split(t);pe(r.length%3===0&&r.length>=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<r.length;l++){let u=e.getWordIndex(r[l].normalize("NFKD"));pe(u>=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let d=0;d<11;d++)u&1<<10-d&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=zT(o),c=qe(Fn(n.slice(0,i/8)))[0]&a;return pe(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),Ze(n.slice(0,i/8))}function s6(t,e){pe(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=Po.wordlist());const r=[0];let n=11;for(let o=0;o<t.length;o++)n>8?(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]&vZ(8-n)),n+=3);const s=t.length/4,i=parseInt(Fn(t).substring(2,4),16)&zT(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const i6={};class Hc{constructor(e,r,n,s,i){X(this,"phrase"),X(this,"password"),X(this,"wordlist"),X(this,"entropy"),s==null&&(s=""),i==null&&(i=Po.wordlist()),vo(e,i6,"Mnemonic"),rt(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=qr("mnemonic"+this.password,"NFKD");return Ti(qr(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=n6(e,n);return e=s6(qe(s),n),new Hc(i6,s,e,r,n)}static fromEntropy(e,r,n){const s=qe(e,"entropy"),i=s6(s,n);return new Hc(i6,Ze(s),i,r,n)}static entropyToPhrase(e,r){const n=qe(e,"entropy");return s6(n,r)}static phraseToEntropy(e,r){return n6(e,r)}static isValidMnemonic(e,r){try{return n6(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var Sn=function(t,e,r,n){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)},o6=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},Yy,ti,xo;const bZ={16:10,24:12,32:14},wZ=[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],ri=[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],Ky=[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],kZ=[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],EZ=[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],AZ=[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],_Z=[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],SZ=[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],CZ=[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],TZ=[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],RZ=[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],PZ=[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],xZ=[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],NZ=[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],IZ=[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 a6(t){const e=[];for(let r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}class qy{get key(){return Sn(this,Yy,"f").slice()}constructor(e){if(Yy.set(this,void 0),ti.set(this,void 0),xo.set(this,void 0),!(this instanceof qy))throw Error("AES must be instanitated with `new`");o6(this,Yy,new Uint8Array(e));const r=bZ[this.key.length];if(r==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");o6(this,xo,[]),o6(this,ti,[]);for(let u=0;u<=r;u++)Sn(this,xo,"f").push([0,0,0,0]),Sn(this,ti,"f").push([0,0,0,0]);const n=(r+1)*4,s=this.key.length/4,i=a6(this.key);let o;for(let u=0;u<s;u++)o=u>>2,Sn(this,xo,"f")[o][u%4]=i[u],Sn(this,ti,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c<n;){if(l=i[s-1],i[0]^=ri[l>>16&255]<<24^ri[l>>8&255]<<16^ri[l&255]<<8^ri[l>>24&255]^wZ[a]<<24,a+=1,s!=8)for(let p=1;p<s;p++)i[p]^=i[p-1];else{for(let p=1;p<s/2;p++)i[p]^=i[p-1];l=i[s/2-1],i[s/2]^=ri[l&255]^ri[l>>8&255]<<8^ri[l>>16&255]<<16^ri[l>>24&255]<<24;for(let p=s/2+1;p<s;p++)i[p]^=i[p-1]}let u=0,d,h;for(;u<s&&c<n;)d=c>>2,h=c%4,Sn(this,xo,"f")[d][h]=i[u],Sn(this,ti,"f")[r-d][h]=i[u++],c++}for(let u=1;u<r;u++)for(let d=0;d<4;d++)l=Sn(this,ti,"f")[u][d],Sn(this,ti,"f")[u][d]=PZ[l>>24&255]^xZ[l>>16&255]^NZ[l>>8&255]^IZ[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=Sn(this,xo,"f").length-1,n=[0,0,0,0];let s=a6(e);for(let a=0;a<4;a++)s[a]^=Sn(this,xo,"f")[0][a];for(let a=1;a<r;a++){for(let c=0;c<4;c++)n[c]=kZ[s[c]>>24&255]^EZ[s[(c+1)%4]>>16&255]^AZ[s[(c+2)%4]>>8&255]^_Z[s[(c+3)%4]&255]^Sn(this,xo,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=Sn(this,xo,"f")[r][a],i[4*a]=(ri[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(ri[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(ri[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(ri[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=Sn(this,ti,"f").length-1,n=[0,0,0,0];let s=a6(e);for(let a=0;a<4;a++)s[a]^=Sn(this,ti,"f")[0][a];for(let a=1;a<r;a++){for(let c=0;c<4;c++)n[c]=SZ[s[c]>>24&255]^CZ[s[(c+3)%4]>>16&255]^TZ[s[(c+2)%4]>>8&255]^RZ[s[(c+1)%4]&255]^Sn(this,ti,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=Sn(this,ti,"f")[r][a],i[4*a]=(Ky[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Ky[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Ky[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Ky[s[(a+1)%4]&255]^o)&255;return i}}Yy=new WeakMap,ti=new WeakMap,xo=new WeakMap;class sf{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 qy(r)},name:{enumerable:!0,value:e}})}}var Xy=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},of=function(t,e,r,n){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)},mg,Ba;class ev extends sf{constructor(e,r){if(super("ECC",e,ev),mg.set(this,void 0),Ba.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Xy(this,mg,new Uint8Array(r))}else Xy(this,mg,new Uint8Array(16));Xy(this,Ba,this.iv)}get iv(){return new Uint8Array(of(this,mg))}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;n<e.length;n+=16){for(let s=0;s<16;s++)of(this,Ba)[s]^=e[n+s];Xy(this,Ba,this.aes.encrypt(of(this,Ba))),r.set(of(this,Ba),n)}return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){const s=this.aes.decrypt(e.subarray(n,n+16));for(let i=0;i<16;i++)r[n+i]=s[i]^of(this,Ba)[i],of(this,Ba)[i]=e[n+i]}return r}}mg=new WeakMap,Ba=new WeakMap;var c6=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},Zc=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)},tv,yg,Jc,l6;class u6 extends sf{constructor(e,r,n=8){if(super("CFB",e,u6),tv.add(this),yg.set(this,void 0),Jc.set(this,void 0),!Number.isInteger(n)||n%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:n}}),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");c6(this,yg,new Uint8Array(r))}else c6(this,yg,new Uint8Array(16));c6(this,Jc,this.iv)}get iv(){return new Uint8Array(Zc(this,yg,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const r=this.segmentSize/8,n=new Uint8Array(e);for(let s=0;s<n.length;s+=r){const i=this.aes.encrypt(Zc(this,Jc,"f"));for(let o=0;o<r;o++)n[s+o]^=i[o];Zc(this,tv,"m",l6).call(this,n.subarray(s))}return n}decrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const r=this.segmentSize/8,n=new Uint8Array(e);for(let s=0;s<n.length;s+=r){const i=this.aes.encrypt(Zc(this,Jc,"f"));for(let o=0;o<r;o++)n[s+o]^=i[o];Zc(this,tv,"m",l6).call(this,e.subarray(s))}return n}}yg=new WeakMap,Jc=new WeakMap,tv=new WeakSet,l6=function(t){const e=this.segmentSize/8;Zc(this,Jc,"f").set(Zc(this,Jc,"f").subarray(e)),Zc(this,Jc,"f").set(t.subarray(0,e),16-e)};var af=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},ni=function(t,e,r,n){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)},vg,Ru,si;class Pu extends sf{constructor(e,r){super("CTR",e,Pu),vg.set(this,void 0),Ru.set(this,void 0),si.set(this,void 0),af(this,si,new Uint8Array(16)),ni(this,si,"f").fill(0),af(this,vg,ni(this,si,"f")),af(this,Ru,16),r==null&&(r=1),typeof r=="number"?this.setCounterValue(r):this.setCounterBytes(r)}get counter(){return new Uint8Array(ni(this,si,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)ni(this,si,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");ni(this,si,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(ni(this,si,"f")[e]===255)ni(this,si,"f")[e]=0;else{ni(this,si,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i<s.length;i++)ni(this,Ru,"f")===16&&(af(this,vg,this.aes.encrypt(ni(this,si,"f"))),af(this,Ru,0),this.increment()),s[i]^=ni(this,vg,"f")[af(this,Ru,(n=ni(this,Ru,"f"),r=n++,n)),r];return s}decrypt(e){return this.encrypt(e)}}vg=new WeakMap,Ru=new WeakMap,si=new WeakMap;class h6 extends sf{constructor(e){super("ECB",e,h6)}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;n<e.length;n+=16)r.set(this.aes.encrypt(e.subarray(n,n+16)),n);return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16)r.set(this.aes.decrypt(e.subarray(n,n+16)),n);return r}}var xu=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},bg=function(t,e,r,n){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)},wg,cf,Nu;class d6 extends sf{constructor(e,r){if(super("OFB",e,d6),wg.set(this,void 0),cf.set(this,void 0),Nu.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");xu(this,wg,new Uint8Array(r))}else xu(this,wg,new Uint8Array(16));xu(this,cf,this.iv),xu(this,Nu,16)}get iv(){return new Uint8Array(bg(this,wg))}encrypt(e){var r,n;if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const s=new Uint8Array(e);for(let i=0;i<s.length;i++)bg(this,Nu)===16&&(xu(this,cf,this.aes.encrypt(bg(this,cf))),xu(this,Nu,0)),s[i]^=bg(this,cf)[xu(this,Nu,(n=bg(this,Nu),r=n++,n)),r];return s}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}wg=new WeakMap,cf=new WeakMap,Nu=new WeakMap;function OZ(t){const e=16-t.length%16,r=new Uint8Array(t.length+e);r.set(t);for(let n=t.length;n<r.length;n++)r[n]=e;return r}function $T(t){if(t.length<16)throw new TypeError("PKCS#7 invalid length");const e=t[t.length-1];if(e>16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n<e;n++)if(t[r+n]!==e)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(t.subarray(0,r))}const BZ=Object.freeze(Object.defineProperty({__proto__:null,AES:qy,CBC:ev,CFB:u6,CTR:Pu,ECB:h6,ModeOfOperation:sf,OFB:d6,pkcs7Pad:OZ,pkcs7Strip:$T},Symbol.toStringTag,{value:"Module"}));function HT(t){return typeof t=="string"&&!t.startsWith("0x")&&(t="0x"+t),sn(t)}function kg(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function Eg(t){return typeof t=="string"?qr(t,"NFKC"):sn(t)}function Hr(t,e){const r=e.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);pe(r!=null,"invalid path","path",e);const n=r[1],s=r[3],i=r[4]==="!";let o=t;for(const a of n.toLowerCase().split(".")){if(Array.isArray(o)){if(!a.match(/^[0-9]+$/))break;o=o[parseInt(a)]}else if(typeof o=="object"){let c=null;for(const l in o)if(l.toLowerCase()===a){c=o[l];break}o=c}else o=null;if(o==null)break}if(pe(!i||o!=null,"missing required value","path",n),s&&o!=null){if(s==="int"){if(typeof o=="string"&&o.match(/^-?[0-9]+$/))return parseInt(o);if(Number.isSafeInteger(o))return o}if(s==="number"&&typeof o=="string"&&o.match(/^-?[0-9.]*$/))return parseFloat(o);if(s==="data"&&typeof o=="string")return HT(o);if(s==="array"&&Array.isArray(o)||s===typeof o)return o;pe(!1,`wrong type found for ${s} `,"path",n)}return o}const ZT="m/44'/60'/0'/0/0";function rv(t){try{const e=JSON.parse(t);if((e.version!=null?parseInt(e.version):0)===3)return!0}catch{}return!1}function UZ(t,e,r){if(Hr(t,"crypto.cipher:string")==="aes-128-ctr"){const n=Hr(t,"crypto.cipherparams.iv:data!"),s=new Pu(e,n);return Ze(s.decrypt(r))}Be(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function nv(t,e){const r=qe(e),n=Hr(t,"crypto.ciphertext:data!"),s=Ze(hr($t([r.slice(16,32),n]))).substring(2);pe(s===Hr(t,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const i=UZ(t,r.slice(0,16),n),o=ru(i);if(t.address){let c=t.address.toLowerCase();c.startsWith("0x")||(c="0x"+c),pe(Bt(c)===o,"keystore address/privateKey mismatch","address",t.address)}const a={address:o,privateKey:i};if(Hr(t,"x-ethers.version:string")==="0.1"){const c=r.slice(32,64),l=Hr(t,"x-ethers.mnemonicCiphertext:data!"),u=Hr(t,"x-ethers.mnemonicCounter:data!"),d=new Pu(c,u);a.mnemonic={path:Hr(t,"x-ethers.path:string")||ZT,locale:Hr(t,"x-ethers.locale:string")||"en",entropy:Ze(qe(d.decrypt(l)))}}return a}function JT(t){const e=Hr(t,"crypto.kdf:string");if(e&&typeof e=="string"){if(e.toLowerCase()==="scrypt"){const r=Hr(t,"crypto.kdfparams.salt:data!"),n=Hr(t,"crypto.kdfparams.n:int!"),s=Hr(t,"crypto.kdfparams.r:int!"),i=Hr(t,"crypto.kdfparams.p:int!");pe(n>0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),pe(s>0&&i>0,"invalid kdf","kdf",e);const o=Hr(t,"crypto.kdfparams.dklen:int!");return pe(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=Hr(t,"crypto.kdfparams.salt:data!"),n=Hr(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();pe(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Hr(t,"crypto.kdfparams.c:int!"),o=Hr(t,"crypto.kdfparams.dklen:int!");return pe(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}pe(!1,"unsupported key-derivation function","kdf",e)}function f6(t,e){const r=JSON.parse(t),n=Eg(e),s=JT(r);if(s.name==="pbkdf2"){const{salt:d,count:h,dkLen:p,algorithm:g}=s,m=Ti(n,d,h,p,g);return nv(r,m)}Be(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=ma(n,i,o,a,c,l);return nv(r,u)}function QT(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function p6(t,e,r){const n=JSON.parse(t),s=Eg(e),i=JT(n);if(i.name==="pbkdf2"){r&&(r(0),await QT(0));const{salt:h,count:p,dkLen:g,algorithm:m}=i,y=Ti(s,h,p,g,m);return r&&(r(1),await QT(0)),nv(n,y)}Be(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,d=await ga(s,o,a,c,l,u,r);return nv(n,d)}function YT(t){const e=t.salt!=null?qe(t.salt,"options.salt"):Cs(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)),pe(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),pe(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),pe(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 KT(t,e,r,n){const s=qe(r.privateKey,"privateKey"),i=n.iv!=null?qe(n.iv,"options.iv"):Cs(16);pe(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?qe(n.uuid,"options.uuid"):Cs(16);pe(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new Pu(a,i),u=qe(l.encrypt(s)),d=hr($t([c,u])),h={address:r.address.substring(2).toLowerCase(),id:e4(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Ze(i).substring(2)},ciphertext:Ze(u).substring(2),kdf:"scrypt",kdfparams:{salt:Ze(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:d.substring(2)}};if(r.mnemonic){const p=n.client!=null?n.client:`ethers/${i2}`,g=r.mnemonic.path||ZT,m=r.mnemonic.locale||"en",y=t.slice(32,64),v=qe(r.mnemonic.entropy,"account.mnemonic.entropy"),A=Cs(16),E=new Pu(y,A),w=qe(E.encrypt(v)),C=new Date,B="UTC--"+(C.getUTCFullYear()+"-"+kg(C.getUTCMonth()+1,2)+"-"+kg(C.getUTCDate(),2)+"T"+kg(C.getUTCHours(),2)+"-"+kg(C.getUTCMinutes(),2)+"-"+kg(C.getUTCSeconds(),2)+".0Z")+"--"+h.address;h["x-ethers"]={client:p,gethFilename:B,path:g,locale:m,mnemonicCounter:Ze(A).substring(2),mnemonicCiphertext:Ze(w).substring(2),version:"0.1"}}return JSON.stringify(h)}function sv(t,e,r){r==null&&(r={});const n=Eg(e),s=YT(r),i=ma(n,s.salt,s.N,s.r,s.p,64);return KT(qe(i),s,t,r)}async function iv(t,e,r){r==null&&(r={});const n=Eg(e),s=YT(r),i=await ga(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return KT(qe(i),s,t,r)}const Ag="m/44'/60'/0'/0/0",MZ=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),No=2147483648,FZ=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),LZ="0123456789abcdef";function ov(t,e){let r="";for(;t;)r=LZ[t%16]+r,t=Math.trunc(t/16);for(;r.length<e*2;)r="0"+r;return"0x"+r}function g6(t){const e=qe(t),r=ur(Fn(Fn(e)),0,4),n=$t([e,r]);return h2(n)}const Io={};function qT(t,e,r,n){const s=new Uint8Array(37);t&No?(Be(n!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),s.set(qe(n),1)):s.set(qe(r));for(let o=24;o>=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=qe(fa("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function XT(t,e){const r=e.split("/");pe(r.length>0,"invalid path","path",e),r[0]==="m"&&(pe(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<r.length;s++){const i=r[s];if(i.match(/^[0-9]+'$/)){const o=parseInt(i.substring(0,i.length-1));pe(o<No,"invalid path index",`path[${s}]`,i),n=n.deriveChild(No+o)}else if(i.match(/^[0-9]+$/)){const o=parseInt(i);pe(o<No,"invalid path index",`path[${s}]`,i),n=n.deriveChild(o)}else pe(!1,"invalid path component",`path[${s}]`,i)}return n}var av,m6,lf,_g;const y6=class Tl extends $y{constructor(e,r,n,s,i,o,a,c,l){super(r,l),ne(this,av),X(this,"publicKey"),X(this,"fingerprint"),X(this,"parentFingerprint"),X(this,"mnemonic"),X(this,"chainCode"),X(this,"path"),X(this,"index"),X(this,"depth"),vo(e,Io,"HDNodeWallet"),rt(this,{publicKey:r.compressedPublicKey});const u=ur(pa(Fn(this.publicKey)),0,4);rt(this,{parentFingerprint:n,fingerprint:u,chainCode:s,path:i,index:o,depth:a}),rt(this,{mnemonic:c})}connect(e){return new Tl(Io,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}async encrypt(e,r){return await iv(ve(this,av,m6).call(this),e,{progressCallback:r})}encryptSync(e){return sv(ve(this,av,m6).call(this),e)}get extendedKey(){return Be(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g6($t(["0x0488ADE4",ov(this.depth,1),this.parentFingerprint,ov(this.index,4),this.chainCode,$t(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new Iu(Io,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const r=mt(e,"index");pe(r<=4294967295,"invalid index","index",r);let n=this.path;n&&(n+="/"+(r&~No),r&No&&(n+="'"));const{IR:s,IL:i}=qT(r,this.chainCode,this.publicKey,this.privateKey),o=new _o(Zs((Gl(i)+BigInt(this.privateKey))%FZ,32));return new Tl(Io,o,this.fingerprint,Ze(s),n,r,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return XT(this,e)}static fromExtendedKey(e){const r=on(W3(e));pe(r.length===82||g6(r.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const n=r[4],s=Ze(r.slice(5,9)),i=parseInt(Ze(r.slice(9,13)).substring(2),16),o=Ze(r.slice(13,45)),a=r.slice(45,78);switch(Ze(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const c=Ze(a);return new Iu(Io,ru(c),c,s,o,null,i,n,null)}case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new Tl(Io,new _o(a.slice(1)),s,o,null,i,n,null,null)}pe(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,r,n){var s;e==null&&(e=""),r==null&&(r=Ag),n==null&&(n=Po.wordlist());const i=Hc.fromEntropy(Cs(16),e,n);return ve(s=Tl,lf,_g).call(s,i.computeSeed(),i).derivePath(r)}static fromMnemonic(e,r){var n;return r||(r=Ag),ve(n=Tl,lf,_g).call(n,e.computeSeed(),e).derivePath(r)}static fromPhrase(e,r,n,s){var i;r==null&&(r=""),n==null&&(n=Ag),s==null&&(s=Po.wordlist());const o=Hc.fromPhrase(e,r,s);return ve(i=Tl,lf,_g).call(i,o.computeSeed(),o).derivePath(n)}static fromSeed(e){var r;return ve(r=Tl,lf,_g).call(r,e,null)}};av=new WeakSet,m6=function(){const t={address:this.address,privateKey:this.privateKey},e=this.mnemonic;return this.path&&e&&e.wordlist.locale==="en"&&e.password===""&&(t.mnemonic={path:this.path,locale:"en",entropy:e.entropy}),t},lf=new WeakSet,_g=function(t,e){pe(Jh(t),"invalid seed","seed","[REDACTED]");const r=qe(t,"seed");pe(r.length>=16&&r.length<=64,"invalid seed","seed","[REDACTED]");const n=qe(fa("sha512",MZ,r)),s=new _o(Ze(n.slice(0,32)));return new y6(Io,s,"0x00000000",Ze(n.slice(32)),"m",0,0,e,null)},ne(y6,lf);let Sg=y6;class Iu extends Ny{constructor(e,r,n,s,i,o,a,c,l){super(r,l),X(this,"publicKey"),X(this,"fingerprint"),X(this,"parentFingerprint"),X(this,"chainCode"),X(this,"path"),X(this,"index"),X(this,"depth"),vo(e,Io,"HDNodeVoidWallet"),rt(this,{publicKey:n});const u=ur(pa(Fn(n)),0,4);rt(this,{publicKey:n,fingerprint:u,parentFingerprint:s,chainCode:i,path:o,index:a,depth:c})}connect(e){return new Iu(Io,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return Be(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g6($t(["0x0488B21E",ov(this.depth,1),this.parentFingerprint,ov(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(e){const r=mt(e,"index");pe(r<=4294967295,"invalid index","index",r);let n=this.path;n&&(n+="/"+(r&~No),r&No&&(n+="'"));const{IR:s,IL:i}=qT(r,this.chainCode,this.publicKey,null),o=_o.addPoints(i,this.publicKey,!0),a=ru(o);return new Iu(Io,a,o,this.fingerprint,Ze(s),n,r,this.depth+1,this.provider)}derivePath(e){return XT(this,e)}}function eR(t){const e=mt(t,"index");return pe(e>=0&&e<No,"invalid account index","index",e),`m/44'/60'/${e}'/0/0`}function tR(t){const e=mt(t,"index");return pe(e>=0&&e<No,"invalid account index","index",e),`m/44'/60'/0'/0/${e}`}function cv(t){try{if(JSON.parse(t).encseed)return!0}catch{}return!1}function lv(t,e){const r=JSON.parse(t),n=Eg(e),s=Bt(Hr(r,"ethaddr:string!")),i=HT(Hr(r,"encseed:string!"));pe(i&&i.length%16===0,"invalid encseed","json",t);const o=qe(Ti(n,n,2e3,32,"sha256")).slice(0,16),a=i.slice(0,16),c=i.slice(16),l=new ev(o,a),u=$T(qe(l.decrypt(c)));let d="";for(let h=0;h<u.length;h++)d+=String.fromCharCode(u[h]);return{address:s,privateKey:xi(d)}}function rR(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var uv,v6;const b6=class $w extends $y{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new _o(e):e;super(n,r)}connect(e){return new $w(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await iv(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return sv(r,e)}static async fromEncryptedJson(e,r,n){var s;let i=null;return rv(e)?i=await p6(e,r,n):cv(e)&&(n&&(n(0),await rR(0)),i=lv(e,r),n&&(n(1),await rR(0))),ve(s=$w,uv,v6).call(s,i)}static fromEncryptedJsonSync(e,r){var n;let s=null;return rv(e)?s=f6(e,r):cv(e)?s=lv(e,r):pe(!1,"invalid JSON wallet","json","[ REDACTED ]"),ve(n=$w,uv,v6).call(n,s)}static createRandom(e){const r=Sg.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=Sg.fromPhrase(e);return r?n.connect(r):n}};uv=new WeakSet,v6=function(t){if(pe(t,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in t&&t.mnemonic&&t.mnemonic.locale==="en"){const r=Hc.fromEntropy(t.mnemonic.entropy),n=Sg.fromMnemonic(r,t.mnemonic.path);if(n.address===t.address&&n.privateKey===t.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const e=new b6(t.privateKey);return pe(e.address===t.address,"address/privateKey mismatch","json","[ REDACTED ]"),e},ne(b6,uv);let nR=b6;const VZ=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function DZ(t,e){const r=(1<<t)-1,n=[];let s=0,i=0,o=0;for(let a=0;a<e.length;a++)for(s=s<<6|VZ.indexOf(e[a]),i+=6;i>=t;){const c=s>>i-t;s&=(1<<i-t)-1,i-=t,c===0?o+=r:(n.push(c+o),o=0)}return n}function WZ(t,e){let r=GT(t).join(",");return e.split(/,/g).forEach(n=>{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);pe(s!==null,"internal error parsing accents","accents",e);let i=0;const o=DZ(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 hv;class sR extends Qy{constructor(e,r,n,s){super(e,r,s),ne(this,hv),V(this,hv,n)}get _accent(){return S(this,hv)}_decodeWords(){return WZ(this._data,this._accent)}}hv=new WeakMap;const iR={en:Po.wordlist()},jZ=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Rd,AbstractProvider:Dd,AbstractSigner:jd,AlchemyProvider:Yd,AnkrProvider:Qd,BaseContract:W0,BaseWallet:$y,Block:c5,BrowserProvider:X5,ChainstackProvider:Kd,CloudflareProvider:L5,ConstructorFragment:Ii,Contract:Vc,ContractEventPayload:u5,ContractFactory:wy,ContractTransactionReceipt:l5,ContractTransactionResponse:V0,ContractUnknownEventPayload:gy,EnsPlugin:Bd,EnsResolver:ky,ErrorDescription:a5,ErrorFragment:Ni,EtherSymbol:AS,EtherscanPlugin:Ly,EtherscanProvider:V5,EventFragment:qs,EventLog:F0,EventPayload:d2,FallbackFragment:Oi,FallbackProvider:q5,FeeData:uy,FeeDataNetworkPlugin:bT,FetchCancelSignal:H3,FetchRequest:Mn,FetchResponse:vc,FetchUrlFeeDataNetworkPlugin:b5,FixedNumber:v2,Fragment:Ea,FunctionFragment:Xs,GasCostPlugin:Od,HDNodeVoidWallet:Iu,HDNodeWallet:Sg,Indexed:oy,InfuraProvider:Cu,InfuraWebSocketProvider:z5,Interface:ly,IpcSocketProvider:WT,JsonRpcApiProvider:By,JsonRpcProvider:Ns,JsonRpcSigner:ng,LangEn:Po,Log:lu,LogDescription:i5,MaxInt256:ES,MaxUint256:wS,MessagePrefix:P4,MinInt256:kS,Mnemonic:Hc,MulticoinProviderPlugin:m5,N:vS,NamedFragment:Cd,Network:Xr,NetworkPlugin:Ta,NonceManager:DT,ParamType:An,PocketProvider:fg,QuickNodeProvider:tf,Result:cd,Signature:Pi,SigningKey:_o,SocketBlockSubscriber:D5,SocketEventSubscriber:j5,SocketPendingSubscriber:W5,SocketProvider:G5,SocketSubscriber:ag,StructFragment:Aa,Transaction:Sd,TransactionDescription:o5,TransactionReceipt:dy,TransactionResponse:M0,Typed:Vn,TypedDataEncoder:iu,UndecodedEventLog:fy,UnmanagedSubscriber:Ld,Utf8ErrorFuncs:z3,VoidSigner:Ny,Wallet:nR,WebSocketProvider:Wy,WeiPerEther:bS,Wordlist:e6,WordlistOwl:Qy,WordlistOwlA:sR,ZeroAddress:eu,ZeroHash:M2,accessListify:So,assert:Be,assertArgument:pe,assertArgumentCount:o2,assertNormalize:a2,assertPrivate:vo,checkResultErrors:V9,computeAddress:ru,computeHmac:fa,concat:$t,copyRequest:cu,dataLength:ia,dataSlice:ur,decodeBase58:W3,decodeBase64:j3,decodeBytes32String:XC,decodeRlp:ad,decryptCrowdsaleJson:lv,decryptKeystoreJson:p6,decryptKeystoreJsonSync:f6,defaultPath:Ag,defineProperties:rt,dnsEncode:J4,encodeBase58:h2,encodeBase64:G3,encodeBytes32String:qC,encodeRlp:ha,encryptKeystoreJson:iv,encryptKeystoreJsonSync:sv,ensNormalize:Z4,formatEther:U9,formatUnits:q3,fromTwos:Yh,getAccountPath:eR,getAddress:Bt,getBigInt:ct,getBytes:qe,getBytesCopy:sn,getCreate2Address:US,getCreateAddress:L2,getDefaultProvider:VT,getIcapAddress:BS,getIndexedAccountPath:tR,getNumber:mt,getUint:Kh,hashMessage:X2,hexlify:Ze,id:xi,isAddress:MS,isAddressable:V2,isBytesLike:Jh,isCallException:Vp,isCrowdsaleJson:cv,isError:jr,isHexString:lr,isKeystoreJson:rv,isValidName:bC,keccak256:hr,lock:xS,makeError:yr,mask:oa,namehash:v0,parseEther:M9,parseUnits:X3,pbkdf2:Ti,randomBytes:Cs,recoverAddress:b0,resolveAddress:an,resolveProperties:nn,ripemd160:pa,scrypt:ga,scryptSync:ma,sha256:Fn,sha512:dd,showThrottleMessage:Pa,solidityPacked:ey,solidityPackedKeccak256:AC,solidityPackedSha256:_C,stripZerosLeft:g9,toBeArray:on,toBeHex:Zs,toBigInt:Gl,toNumber:jp,toQuantity:aa,toTwos:Wp,toUtf8Bytes:qr,toUtf8CodePoints:w9,toUtf8String:ca,uuidV4:e4,verifyMessage:kC,verifyTypedData:IC,version:i2,wordlists:iR,zeroPadBytes:Dp,zeroPadValue:Hs},Symbol.toStringTag,{value:"Module"})),fr=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Rd,AbstractProvider:Dd,AbstractSigner:jd,AlchemyProvider:Yd,AnkrProvider:Qd,BaseContract:W0,BaseWallet:$y,Block:c5,BrowserProvider:X5,ChainstackProvider:Kd,CloudflareProvider:L5,ConstructorFragment:Ii,Contract:Vc,ContractEventPayload:u5,ContractFactory:wy,ContractTransactionReceipt:l5,ContractTransactionResponse:V0,ContractUnknownEventPayload:gy,EnsPlugin:Bd,EnsResolver:ky,ErrorDescription:a5,ErrorFragment:Ni,EtherSymbol:AS,EtherscanPlugin:Ly,EtherscanProvider:V5,EventFragment:qs,EventLog:F0,EventPayload:d2,FallbackFragment:Oi,FallbackProvider:q5,FeeData:uy,FeeDataNetworkPlugin:bT,FetchCancelSignal:H3,FetchRequest:Mn,FetchResponse:vc,FetchUrlFeeDataNetworkPlugin:b5,FixedNumber:v2,Fragment:Ea,FunctionFragment:Xs,GasCostPlugin:Od,HDNodeVoidWallet:Iu,HDNodeWallet:Sg,Indexed:oy,InfuraProvider:Cu,InfuraWebSocketProvider:z5,Interface:ly,IpcSocketProvider:WT,JsonRpcApiProvider:By,JsonRpcProvider:Ns,JsonRpcSigner:ng,LangEn:Po,Log:lu,LogDescription:i5,MaxInt256:ES,MaxUint256:wS,MessagePrefix:P4,MinInt256:kS,Mnemonic:Hc,MulticoinProviderPlugin:m5,N:vS,NamedFragment:Cd,Network:Xr,NetworkPlugin:Ta,NonceManager:DT,ParamType:An,PocketProvider:fg,QuickNodeProvider:tf,Result:cd,Signature:Pi,SigningKey:_o,SocketBlockSubscriber:D5,SocketEventSubscriber:j5,SocketPendingSubscriber:W5,SocketProvider:G5,SocketSubscriber:ag,StructFragment:Aa,Transaction:Sd,TransactionDescription:o5,TransactionReceipt:dy,TransactionResponse:M0,Typed:Vn,TypedDataEncoder:iu,UndecodedEventLog:fy,UnmanagedSubscriber:Ld,Utf8ErrorFuncs:z3,VoidSigner:Ny,Wallet:nR,WebSocketProvider:Wy,WeiPerEther:bS,Wordlist:e6,WordlistOwl:Qy,WordlistOwlA:sR,ZeroAddress:eu,ZeroHash:M2,accessListify:So,assert:Be,assertArgument:pe,assertArgumentCount:o2,assertNormalize:a2,assertPrivate:vo,checkResultErrors:V9,computeAddress:ru,computeHmac:fa,concat:$t,copyRequest:cu,dataLength:ia,dataSlice:ur,decodeBase58:W3,decodeBase64:j3,decodeBytes32String:XC,decodeRlp:ad,decryptCrowdsaleJson:lv,decryptKeystoreJson:p6,decryptKeystoreJsonSync:f6,defaultPath:Ag,defineProperties:rt,dnsEncode:J4,encodeBase58:h2,encodeBase64:G3,encodeBytes32String:qC,encodeRlp:ha,encryptKeystoreJson:iv,encryptKeystoreJsonSync:sv,ensNormalize:Z4,ethers:jZ,formatEther:U9,formatUnits:q3,fromTwos:Yh,getAccountPath:eR,getAddress:Bt,getBigInt:ct,getBytes:qe,getBytesCopy:sn,getCreate2Address:US,getCreateAddress:L2,getDefaultProvider:VT,getIcapAddress:BS,getIndexedAccountPath:tR,getNumber:mt,getUint:Kh,hashMessage:X2,hexlify:Ze,id:xi,isAddress:MS,isAddressable:V2,isBytesLike:Jh,isCallException:Vp,isCrowdsaleJson:cv,isError:jr,isHexString:lr,isKeystoreJson:rv,isValidName:bC,keccak256:hr,lock:xS,makeError:yr,mask:oa,namehash:v0,parseEther:M9,parseUnits:X3,pbkdf2:Ti,randomBytes:Cs,recoverAddress:b0,resolveAddress:an,resolveProperties:nn,ripemd160:pa,scrypt:ga,scryptSync:ma,sha256:Fn,sha512:dd,showThrottleMessage:Pa,solidityPacked:ey,solidityPackedKeccak256:AC,solidityPackedSha256:_C,stripZerosLeft:g9,toBeArray:on,toBeHex:Zs,toBigInt:Gl,toNumber:jp,toQuantity:aa,toTwos:Wp,toUtf8Bytes:qr,toUtf8CodePoints:w9,toUtf8String:ca,uuidV4:e4,verifyMessage:kC,verifyTypedData:IC,version:i2,wordlists:iR,zeroPadBytes:Dp,zeroPadValue:Hs},Symbol.toStringTag,{value:"Module"}));async function GZ({apiUrl:t,accessToken:e}){try{const r=await fetch(`${t}/accounts/address`,{headers:{Authorization:e}});if(!r.ok)throw new Error(r.statusText);return[(await r.json()).address]}catch(r){throw new Error(`Error requesting accounts: ${r.message}`)}}async function dv({apiUrl:t,accessToken:e},r){if(!r.method)throw new Error("Invalid method");if(!r.params)throw new Error("Invalid signature parameter");const n=JSON.stringify(r,(o,a)=>typeof a=="bigint"?Zs(a):a),s=await fetch(`${t}/accounts/sign`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:e},body:n});if(!s.ok)throw new Error(s.statusText);const{signature:i}=await s.json();return i}const fv={PROD:"https://accounts.credenza3.com",STAGING:"https://accounts.staging.credenza3.com",LOCAL:"http://localhost:8081"},w6={PROD:"https://auth.credenza3.com",STAGING:"https://auth.staging.credenza3.com",LOCAL:"https://auth.staging.credenza3.com"},Ua={LOCAL:"local",STAGING:"staging",PROD:"prod"},k6={PROD:"https://evm.credenza3.com",STAGING:"https://evm.staging.credenza3.com",LOCAL:"http://localhost:8082"};function zZ(t){switch(t.env){case Ua.LOCAL:return k6.LOCAL;case Ua.STAGING:return k6.STAGING;case Ua.PROD:return k6.PROD;default:throw new Error("Invalid sdk env")}}const uf={CONNECTED:"connected",DISCONNECTED:"disconnected",CONNECTING:"connecting"};class $Z{constructor(e){if(X(this,"addresses",[]),X(this,"provider"),X(this,"state",uf.DISCONNECTED),X(this,"chainConfig"),X(this,"apiUrl"),X(this,"accessToken"),X(this,"sdk"),!e.sdk&&!e.accessToken)throw new Error("Invalid constructor parameters.");this.apiUrl=e.apiUrl||fv.PROD,this.accessToken=e.accessToken,this.sdk=e.sdk||void 0,this._setChain(e.chainConfig)}_getRequestFields(){return this.sdk?{accessToken:`Bearer ${this.sdk.getAccessToken()}`,apiUrl:zZ(this.sdk)}:{accessToken:`Bearer ${this.accessToken}`,apiUrl:this.apiUrl}}_checkConnected(){if(this.state!==uf.CONNECTED||!this.provider)throw new Error("Credenza provider is not connected")}_setChain(e){this.provider=new Ns(e.rpcUrl),this.chainConfig=e}async switchChain(e){const r=this.provider,n=this.chainConfig;this.state;try{this._setChain(e),await this.connect()}catch(s){throw this.provider=r,this.chainConfig=n,this.state,s}}async _populateTransaction(e){this._checkConnected();const[r]=await this.listAccounts();return await new Ny(r,this.provider).populateTransaction(e)}async connect(){try{this.state=uf.CONNECTING;const e=await this.provider.getNetwork();if(jp(e.chainId)!==jp(this.chainConfig.chainId))throw new Error("Invalid chain Id");this.state=uf.CONNECTED}catch(e){throw this.state=uf.DISCONNECTED,e}}async disconnect(){this.state=uf.DISCONNECTED}async getRpcProvider(){return this._checkConnected(),this.provider}async listAccounts(){var e;return this._checkConnected(),(e=this.addresses)!=null&&e.length||(this.addresses=await GZ(this._getRequestFields())),this.addresses}async request({method:e,params:r}){switch(this._checkConnected(),e){case"eth_requestAccounts":case"eth_accounts":try{return await this.listAccounts()}catch(n){throw new Error(`Error listing accounts: ${n.message}`)}case"eth_sign":case"personal_sign":try{return await dv(this._getRequestFields(),{method:"personal_sign",params:r})}catch(n){throw new Error(`Sign message error: ${n.message}`)}case"account_signTransaction":case"eth_signRawTransaction":case"eth_signTransaction":try{const n=await this._populateTransaction(r?.[0]);return await dv(this._getRequestFields(),{method:"eth_signTransaction",params:[n]})}catch(n){throw new Error(`Sign tx error: ${n.message}`)}case"account_sendTransaction":case"eth_sendRawTransaction":case"eth_sendTransaction":try{const n=await this._populateTransaction(r?.[0]),s=await dv(this._getRequestFields(),{method:"eth_signTransaction",params:[n]});return(await this.provider.broadcastTransaction(s)).hash}catch(n){throw new Error(`Send tx error: ${n.message}`)}case"account_signTypedData":case"eth_signTypedData_v4":case"eth_signTypedData":try{return await dv(this._getRequestFields(),{method:"eth_signTypedData",params:r})}catch(n){throw new Error(`Sign typed data failed: ${n.message}`)}default:return await this.provider.send(e,r??[])}}}const Cg={OAUTH:"oauth",METAMASK:"metamask",EVM_PROVIDER:"evm_provider"},Ou=new Map;let Qc=0;function E6(t,e){const r=Ou.get(t);if(r!=null&&r.length){for(let n=r.length-1;n>=0;n--)if(r[n].id===e){r.splice(n,1),Ou.set(t,r);return}}}function HZ(t,e){const r=Ou.get(t)??[];return Qc=Qc+1,r.push({callback:e,id:Qc,once:!0}),Ou.set(t,r),()=>E6(t,Qc)}function ZZ(t,e){const r=Ou.get(t)??[];return Qc=Qc+1,r.push({callback:e,id:Qc}),Ou.set(t,r),()=>E6(t,Qc)}function JZ(t,e){const r=Ou.get(t);if(r!=null&&r.length)for(const n of r)n.callback(e),n.once&&E6(t,n.id)}const A6={EVM_ERROR:"EVM_ERROR",EVM_SWITCH_CHAIN:"EVM_SWITCH_CHAIN"},QZ={LOGOUT:"LOGOUT"};function YZ(t){switch(t.env){case Ua.LOCAL:return fv.LOCAL;case Ua.STAGING:return fv.STAGING;case Ua.PROD:return fv.PROD;default:throw new Error("Invalid sdk env")}}function KZ(t){switch(t.env){case Ua.LOCAL:return w6.LOCAL;case Ua.STAGING:return w6.STAGING;case Ua.PROD:return w6.PROD;default:throw new Error("Invalid sdk env")}}function _6(t=64){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=new Uint8Array(t);return crypto.getRandomValues(r),Array.from(r,n=>e[n%e.length]).join("")}const qZ="credenza_web_sdk:";function XZ(t,e){return sessionStorage.setItem(`${qZ}${t}`,e)}const eJ="oauth:client_code_verifier";async function tJ(t,e,r){if(e.searchParams.append("response_type",r.responseType||"token"),r.responseType==="code"){const n=_6();XZ(eJ,n);const{codeChallenge:s,codeChallengeMethod:i}=await t.oauth.buildS256CodeChallenge(n);e.searchParams.append("code_challenge",s),e.searchParams.append("code_challenge_method",i)}}function rJ(t){return t!=null&&t.is_evm?"/evm":t!=null&&t.is_jwt?"/jwt":""}async function nJ(t,e,r={}){const n=r!=null&&r.is_jwt||r!=null&&r.is_evm?YZ:KZ,s=new URL(n(t)+"/oauth2/authorize"+rJ(r));return s.searchParams.append("client_id",t.clientId),s.searchParams.append("scope",e.scope),s.searchParams.append("nonce",e.nonce||_6(32)),s.searchParams.append("state",e.state||_6(32)),await tJ(t,s,e),s}function sJ(t,e){t.searchParams.append("redirect_uri",e.redirectUrl)}var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function iJ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ii(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var oR={},pv={},aR={},Bu={},gv={};Object.defineProperty(gv,"__esModule",{value:!0}),gv.grammar=void 0;function oJ(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"sign-in-with-ethereum",lower:"sign-in-with-ethereum",index:0,isBkr:!1},this.rules[1]={name:"ex-title",lower:"ex-title",index:1,isBkr:!1},this.rules[2]={name:"nb-title",lower:"nb-title",index:2,isBkr:!1},this.rules[3]={name:"ri-title",lower:"ri-title",index:3,isBkr:!1},this.rules[4]={name:"re-title",lower:"re-title",index:4,isBkr:!1},this.rules[5]={name:"oscheme",lower:"oscheme",index:5,isBkr:!1},this.rules[6]={name:"domain",lower:"domain",index:6,isBkr:!1},this.rules[7]={name:"address",lower:"address",index:7,isBkr:!1},this.rules[8]={name:"statement",lower:"statement",index:8,isBkr:!1},this.rules[9]={name:"empty-statement",lower:"empty-statement",index:9,isBkr:!1},this.rules[10]={name:"version",lower:"version",index:10,isBkr:!1},this.rules[11]={name:"nonce",lower:"nonce",index:11,isBkr:!1},this.rules[12]={name:"issued-at",lower:"issued-at",index:12,isBkr:!1},this.rules[13]={name:"expiration-time",lower:"expiration-time",index:13,isBkr:!1},this.rules[14]={name:"not-before",lower:"not-before",index:14,isBkr:!1},this.rules[15]={name:"request-id",lower:"request-id",index:15,isBkr:!1},this.rules[16]={name:"chain-id",lower:"chain-id",index:16,isBkr:!1},this.rules[17]={name:"resources",lower:"resources",index:17,isBkr:!1},this.rules[18]={name:"resource",lower:"resource",index:18,isBkr:!1},this.rules[19]={name:"URI",lower:"uri",index:19,isBkr:!1},this.rules[20]={name:"hier-part",lower:"hier-part",index:20,isBkr:!1},this.rules[21]={name:"scheme",lower:"scheme",index:21,isBkr:!1},this.rules[22]={name:"authority",lower:"authority",index:22,isBkr:!1},this.rules[23]={name:"path-abempty",lower:"path-abempty",index:23,isBkr:!1},this.rules[24]={name:"path-absolute",lower:"path-absolute",index:24,isBkr:!1},this.rules[25]={name:"path-rootless",lower:"path-rootless",index:25,isBkr:!1},this.rules[26]={name:"path-empty",lower:"path-empty",index:26,isBkr:!1},this.rules[27]={name:"userinfo-at",lower:"userinfo-at",index:27,isBkr:!1},this.rules[28]={name:"userinfo",lower:"userinfo",index:28,isBkr:!1},this.rules[29]={name:"host",lower:"host",index:29,isBkr:!1},this.rules[30]={name:"IP-literal",lower:"ip-literal",index:30,isBkr:!1},this.rules[31]={name:"IPvFuture",lower:"ipvfuture",index:31,isBkr:!1},this.rules[32]={name:"IPv6address",lower:"ipv6address",index:32,isBkr:!1},this.rules[33]={name:"nodcolon",lower:"nodcolon",index:33,isBkr:!1},this.rules[34]={name:"dcolon",lower:"dcolon",index:34,isBkr:!1},this.rules[35]={name:"h16",lower:"h16",index:35,isBkr:!1},this.rules[36]={name:"h16c",lower:"h16c",index:36,isBkr:!1},this.rules[37]={name:"h16n",lower:"h16n",index:37,isBkr:!1},this.rules[38]={name:"h16cn",lower:"h16cn",index:38,isBkr:!1},this.rules[39]={name:"IPv4address",lower:"ipv4address",index:39,isBkr:!1},this.rules[40]={name:"dec-octet",lower:"dec-octet",index:40,isBkr:!1},this.rules[41]={name:"dec-digit",lower:"dec-digit",index:41,isBkr:!1},this.rules[42]={name:"reg-name",lower:"reg-name",index:42,isBkr:!1},this.rules[43]={name:"reg-name-char",lower:"reg-name-char",index:43,isBkr:!1},this.rules[44]={name:"port",lower:"port",index:44,isBkr:!1},this.rules[45]={name:"query",lower:"query",index:45,isBkr:!1},this.rules[46]={name:"fragment",lower:"fragment",index:46,isBkr:!1},this.rules[47]={name:"URI-r",lower:"uri-r",index:47,isBkr:!1},this.rules[48]={name:"hier-part-r",lower:"hier-part-r",index:48,isBkr:!1},this.rules[49]={name:"scheme-r",lower:"scheme-r",index:49,isBkr:!1},this.rules[50]={name:"query-r",lower:"query-r",index:50,isBkr:!1},this.rules[51]={name:"fragment-r",lower:"fragment-r",index:51,isBkr:!1},this.rules[52]={name:"authority-d",lower:"authority-d",index:52,isBkr:!1},this.rules[53]={name:"userinfo-d",lower:"userinfo-d",index:53,isBkr:!1},this.rules[54]={name:"host-d",lower:"host-d",index:54,isBkr:!1},this.rules[55]={name:"port-d",lower:"port-d",index:55,isBkr:!1},this.rules[56]={name:"path-abempty-r",lower:"path-abempty-r",index:56,isBkr:!1},this.rules[57]={name:"path-absolute-r",lower:"path-absolute-r",index:57,isBkr:!1},this.rules[58]={name:"path-rootless-r",lower:"path-rootless-r",index:58,isBkr:!1},this.rules[59]={name:"path-empty-r",lower:"path-empty-r",index:59,isBkr:!1},this.rules[60]={name:"segment",lower:"segment",index:60,isBkr:!1},this.rules[61]={name:"segment-nz",lower:"segment-nz",index:61,isBkr:!1},this.rules[62]={name:"pchar",lower:"pchar",index:62,isBkr:!1},this.rules[63]={name:"pct-encoded",lower:"pct-encoded",index:63,isBkr:!1},this.rules[64]={name:"date-fullyear",lower:"date-fullyear",index:64,isBkr:!1},this.rules[65]={name:"date-month",lower:"date-month",index:65,isBkr:!1},this.rules[66]={name:"date-mday",lower:"date-mday",index:66,isBkr:!1},this.rules[67]={name:"time-hour",lower:"time-hour",index:67,isBkr:!1},this.rules[68]={name:"time-minute",lower:"time-minute",index:68,isBkr:!1},this.rules[69]={name:"time-second",lower:"time-second",index:69,isBkr:!1},this.rules[70]={name:"time-secfrac",lower:"time-secfrac",index:70,isBkr:!1},this.rules[71]={name:"time-numoffset",lower:"time-numoffset",index:71,isBkr:!1},this.rules[72]={name:"time-offset",lower:"time-offset",index:72,isBkr:!1},this.rules[73]={name:"partial-time",lower:"partial-time",index:73,isBkr:!1},this.rules[74]={name:"full-date",lower:"full-date",index:74,isBkr:!1},this.rules[75]={name:"full-time",lower:"full-time",index:75,isBkr:!1},this.rules[76]={name:"date-time",lower:"date-time",index:76,isBkr:!1},this.rules[77]={name:"ALPHA",lower:"alpha",index:77,isBkr:!1},this.rules[78]={name:"LF",lower:"lf",index:78,isBkr:!1},this.rules[79]={name:"DIGIT",lower:"digit",index:79,isBkr:!1},this.rules[80]={name:"HEXDIG",lower:"hexdig",index:80,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,3,4,5,6,7,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,36,41,46]},this.rules[0].opcodes[1]={type:4,index:5},this.rules[0].opcodes[2]={type:4,index:6},this.rules[0].opcodes[3]={type:6,string:[32,119,97,110,116,115,32,121,111,117,32,116,111,32,115,105,103,110,32,105,110,32,119,105,116,104,32,121,111,117,114,32,69,116,104,101,114,101,117,109,32,97,99,99,111,117,110,116,58]},this.rules[0].opcodes[4]={type:4,index:78},this.rules[0].opcodes[5]={type:4,index:7},this.rules[0].opcodes[6]={type:4,index:78},this.rules[0].opcodes[7]={type:1,children:[8,13,14]},this.rules[0].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[0].opcodes[9]={type:4,index:78},this.rules[0].opcodes[10]={type:4,index:8},this.rules[0].opcodes[11]={type:4,index:78},this.rules[0].opcodes[12]={type:4,index:78},this.rules[0].opcodes[13]={type:4,index:9},this.rules[0].opcodes[14]={type:2,children:[15,16]},this.rules[0].opcodes[15]={type:4,index:78},this.rules[0].opcodes[16]={type:4,index:78},this.rules[0].opcodes[17]={type:6,string:[85,82,73,58,32]},this.rules[0].opcodes[18]={type:4,index:19},this.rules[0].opcodes[19]={type:4,index:78},this.rules[0].opcodes[20]={type:6,string:[86,101,114,115,105,111,110,58,32]},this.rules[0].opcodes[21]={type:4,index:10},this.rules[0].opcodes[22]={type:4,index:78},this.rules[0].opcodes[23]={type:6,string:[67,104,97,105,110,32,73,68,58,32]},this.rules[0].opcodes[24]={type:4,index:16},this.rules[0].opcodes[25]={type:4,index:78},this.rules[0].opcodes[26]={type:6,string:[78,111,110,99,101,58,32]},this.rules[0].opcodes[27]={type:4,index:11},this.rules[0].opcodes[28]={type:4,index:78},this.rules[0].opcodes[29]={type:6,string:[73,115,115,117,101,100,32,65,116,58,32]},this.rules[0].opcodes[30]={type:4,index:12},this.rules[0].opcodes[31]={type:3,min:0,max:1},this.rules[0].opcodes[32]={type:2,children:[33,34,35]},this.rules[0].opcodes[33]={type:4,index:78},this.rules[0].opcodes[34]={type:4,index:1},this.rules[0].opcodes[35]={type:4,index:13},this.rules[0].opcodes[36]={type:3,min:0,max:1},this.rules[0].opcodes[37]={type:2,children:[38,39,40]},this.rules[0].opcodes[38]={type:4,index:78},this.rules[0].opcodes[39]={type:4,index:2},this.rules[0].opcodes[40]={type:4,index:14},this.rules[0].opcodes[41]={type:3,min:0,max:1},this.rules[0].opcodes[42]={type:2,children:[43,44,45]},this.rules[0].opcodes[43]={type:4,index:78},this.rules[0].opcodes[44]={type:4,index:3},this.rules[0].opcodes[45]={type:4,index:15},this.rules[0].opcodes[46]={type:3,min:0,max:1},this.rules[0].opcodes[47]={type:2,children:[48,49,50]},this.rules[0].opcodes[48]={type:4,index:78},this.rules[0].opcodes[49]={type:4,index:4},this.rules[0].opcodes[50]={type:4,index:17},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:6,string:[69,120,112,105,114,97,116,105,111,110,32,84,105,109,101,58,32]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:6,string:[78,111,116,32,66,101,102,111,114,101,58,32]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:6,string:[82,101,113,117,101,115,116,32,73,68,58,32]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:6,string:[82,101,115,111,117,114,99,101,115,58]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:0,max:1},this.rules[5].opcodes[1]={type:2,children:[2,3,9]},this.rules[5].opcodes[2]={type:4,index:77},this.rules[5].opcodes[3]={type:3,min:0,max:1/0},this.rules[5].opcodes[4]={type:1,children:[5,6,7,8]},this.rules[5].opcodes[5]={type:4,index:77},this.rules[5].opcodes[6]={type:4,index:79},this.rules[5].opcodes[7]={type:6,string:[43]},this.rules[5].opcodes[8]={type:5,min:45,max:46},this.rules[5].opcodes[9]={type:7,string:[58,47,47]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:52},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2]},this.rules[7].opcodes[1]={type:7,string:[48,120]},this.rules[7].opcodes[2]={type:3,min:40,max:40},this.rules[7].opcodes[3]={type:4,index:80},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:1/0},this.rules[8].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[8].opcodes[2]={type:5,min:97,max:122},this.rules[8].opcodes[3]={type:5,min:65,max:90},this.rules[8].opcodes[4]={type:5,min:48,max:57},this.rules[8].opcodes[5]={type:5,min:32,max:33},this.rules[8].opcodes[6]={type:5,min:35,max:36},this.rules[8].opcodes[7]={type:5,min:38,max:59},this.rules[8].opcodes[8]={type:6,string:[61]},this.rules[8].opcodes[9]={type:5,min:63,max:64},this.rules[8].opcodes[10]={type:6,string:[91]},this.rules[8].opcodes[11]={type:6,string:[93]},this.rules[8].opcodes[12]={type:6,string:[95]},this.rules[8].opcodes[13]={type:6,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2,3]},this.rules[9].opcodes[1]={type:4,index:78},this.rules[9].opcodes[2]={type:4,index:78},this.rules[9].opcodes[3]={type:4,index:78},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:7,string:[49]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:3,min:8,max:1/0},this.rules[11].opcodes[1]={type:1,children:[2,3]},this.rules[11].opcodes[2]={type:4,index:77},this.rules[11].opcodes[3]={type:4,index:79},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:4,index:76},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:4,index:76},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:4,index:76},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:0,max:1/0},this.rules[15].opcodes[1]={type:4,index:62},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:3,min:1,max:1/0},this.rules[16].opcodes[1]={type:4,index:79},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:3,min:0,max:1/0},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:78},this.rules[17].opcodes[3]={type:4,index:18},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:2,children:[1,2]},this.rules[18].opcodes[1]={type:7,string:[45,32]},this.rules[18].opcodes[2]={type:4,index:47},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:2,children:[1,2,3,4,8]},this.rules[19].opcodes[1]={type:4,index:21},this.rules[19].opcodes[2]={type:7,string:[58]},this.rules[19].opcodes[3]={type:4,index:20},this.rules[19].opcodes[4]={type:3,min:0,max:1},this.rules[19].opcodes[5]={type:2,children:[6,7]},this.rules[19].opcodes[6]={type:7,string:[63]},this.rules[19].opcodes[7]={type:4,index:45},this.rules[19].opcodes[8]={type:3,min:0,max:1},this.rules[19].opcodes[9]={type:2,children:[10,11]},this.rules[19].opcodes[10]={type:7,string:[35]},this.rules[19].opcodes[11]={type:4,index:46},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,5,6,7]},this.rules[20].opcodes[1]={type:2,children:[2,3,4]},this.rules[20].opcodes[2]={type:7,string:[47,47]},this.rules[20].opcodes[3]={type:4,index:22},this.rules[20].opcodes[4]={type:4,index:23},this.rules[20].opcodes[5]={type:4,index:24},this.rules[20].opcodes[6]={type:4,index:25},this.rules[20].opcodes[7]={type:4,index:26},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2]},this.rules[21].opcodes[1]={type:4,index:77},this.rules[21].opcodes[2]={type:3,min:0,max:1/0},this.rules[21].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[21].opcodes[4]={type:4,index:77},this.rules[21].opcodes[5]={type:4,index:79},this.rules[21].opcodes[6]={type:6,string:[43]},this.rules[21].opcodes[7]={type:5,min:45,max:46},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,3,4]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:4,index:27},this.rules[22].opcodes[3]={type:4,index:29},this.rules[22].opcodes[4]={type:3,min:0,max:1},this.rules[22].opcodes[5]={type:2,children:[6,7]},this.rules[22].opcodes[6]={type:7,string:[58]},this.rules[22].opcodes[7]={type:4,index:44},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:3,min:0,max:1/0},this.rules[23].opcodes[1]={type:2,children:[2,3]},this.rules[23].opcodes[2]={type:7,string:[47]},this.rules[23].opcodes[3]={type:4,index:60},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:7,string:[47]},this.rules[24].opcodes[2]={type:3,min:0,max:1},this.rules[24].opcodes[3]={type:2,children:[4,5]},this.rules[24].opcodes[4]={type:4,index:61},this.rules[24].opcodes[5]={type:3,min:0,max:1/0},this.rules[24].opcodes[6]={type:2,children:[7,8]},this.rules[24].opcodes[7]={type:7,string:[47]},this.rules[24].opcodes[8]={type:4,index:60},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:61},this.rules[25].opcodes[2]={type:3,min:0,max:1/0},this.rules[25].opcodes[3]={type:2,children:[4,5]},this.rules[25].opcodes[4]={type:7,string:[47]},this.rules[25].opcodes[5]={type:4,index:60},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:7,string:[]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:6,string:[64]},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:3,min:0,max:1/0},this.rules[28].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12]},this.rules[28].opcodes[2]={type:5,min:97,max:122},this.rules[28].opcodes[3]={type:5,min:65,max:90},this.rules[28].opcodes[4]={type:5,min:48,max:57},this.rules[28].opcodes[5]={type:4,index:63},this.rules[28].opcodes[6]={type:6,string:[33]},this.rules[28].opcodes[7]={type:6,string:[36]},this.rules[28].opcodes[8]={type:5,min:38,max:46},this.rules[28].opcodes[9]={type:5,min:58,max:59},this.rules[28].opcodes[10]={type:6,string:[61]},this.rules[28].opcodes[11]={type:6,string:[95]},this.rules[28].opcodes[12]={type:6,string:[126]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:1,children:[1,2,6]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:2,children:[3,4]},this.rules[29].opcodes[3]={type:4,index:39},this.rules[29].opcodes[4]={type:13},this.rules[29].opcodes[5]={type:4,index:43},this.rules[29].opcodes[6]={type:4,index:42},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,5]},this.rules[30].opcodes[1]={type:7,string:[91]},this.rules[30].opcodes[2]={type:1,children:[3,4]},this.rules[30].opcodes[3]={type:4,index:32},this.rules[30].opcodes[4]={type:4,index:31},this.rules[30].opcodes[5]={type:7,string:[93]},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,2,4,5]},this.rules[31].opcodes[1]={type:7,string:[118]},this.rules[31].opcodes[2]={type:3,min:1,max:1/0},this.rules[31].opcodes[3]={type:4,index:80},this.rules[31].opcodes[4]={type:7,string:[46]},this.rules[31].opcodes[5]={type:3,min:1,max:1/0},this.rules[31].opcodes[6]={type:1,children:[7,8,9,10,11,12,13,14,15,16]},this.rules[31].opcodes[7]={type:5,min:97,max:122},this.rules[31].opcodes[8]={type:5,min:65,max:90},this.rules[31].opcodes[9]={type:5,min:48,max:57},this.rules[31].opcodes[10]={type:6,string:[33]},this.rules[31].opcodes[11]={type:6,string:[36]},this.rules[31].opcodes[12]={type:5,min:38,max:46},this.rules[31].opcodes[13]={type:5,min:58,max:59},this.rules[31].opcodes[14]={type:6,string:[61]},this.rules[31].opcodes[15]={type:6,string:[95]},this.rules[31].opcodes[16]={type:6,string:[126]},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:1,children:[1,2]},this.rules[32].opcodes[1]={type:4,index:33},this.rules[32].opcodes[2]={type:4,index:34},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:2,children:[2,3]},this.rules[33].opcodes[2]={type:4,index:37},this.rules[33].opcodes[3]={type:3,min:0,max:1/0},this.rules[33].opcodes[4]={type:4,index:38},this.rules[33].opcodes[5]={type:3,min:0,max:1},this.rules[33].opcodes[6]={type:2,children:[7,8]},this.rules[33].opcodes[7]={type:6,string:[58]},this.rules[33].opcodes[8]={type:4,index:39},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:2,children:[1,6,7]},this.rules[34].opcodes[1]={type:3,min:0,max:1},this.rules[34].opcodes[2]={type:2,children:[3,4]},this.rules[34].opcodes[3]={type:4,index:35},this.rules[34].opcodes[4]={type:3,min:0,max:1/0},this.rules[34].opcodes[5]={type:4,index:36},this.rules[34].opcodes[6]={type:6,string:[58,58]},this.rules[34].opcodes[7]={type:1,children:[8,17]},this.rules[34].opcodes[8]={type:2,children:[9,13]},this.rules[34].opcodes[9]={type:2,children:[10,11]},this.rules[34].opcodes[10]={type:4,index:37},this.rules[34].opcodes[11]={type:3,min:0,max:1/0},this.rules[34].opcodes[12]={type:4,index:38},this.rules[34].opcodes[13]={type:3,min:0,max:1},this.rules[34].opcodes[14]={type:2,children:[15,16]},this.rules[34].opcodes[15]={type:6,string:[58]},this.rules[34].opcodes[16]={type:4,index:39},this.rules[34].opcodes[17]={type:3,min:0,max:1},this.rules[34].opcodes[18]={type:4,index:39},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:3,min:1,max:4},this.rules[35].opcodes[1]={type:4,index:80},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:2,children:[1,2]},this.rules[36].opcodes[1]={type:6,string:[58]},this.rules[36].opcodes[2]={type:3,min:1,max:4},this.rules[36].opcodes[3]={type:4,index:80},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,3]},this.rules[37].opcodes[1]={type:3,min:1,max:4},this.rules[37].opcodes[2]={type:4,index:80},this.rules[37].opcodes[3]={type:13},this.rules[37].opcodes[4]={type:6,string:[46]},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2,4]},this.rules[38].opcodes[1]={type:6,string:[58]},this.rules[38].opcodes[2]={type:3,min:1,max:4},this.rules[38].opcodes[3]={type:4,index:80},this.rules[38].opcodes[4]={type:13},this.rules[38].opcodes[5]={type:6,string:[46]},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[39].opcodes[1]={type:4,index:40},this.rules[39].opcodes[2]={type:7,string:[46]},this.rules[39].opcodes[3]={type:4,index:40},this.rules[39].opcodes[4]={type:7,string:[46]},this.rules[39].opcodes[5]={type:4,index:40},this.rules[39].opcodes[6]={type:7,string:[46]},this.rules[39].opcodes[7]={type:4,index:40},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:3,min:0,max:3},this.rules[40].opcodes[1]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:5,min:48,max:57},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:3,min:0,max:1/0},this.rules[42].opcodes[1]={type:4,index:43},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[43].opcodes[1]={type:5,min:97,max:122},this.rules[43].opcodes[2]={type:5,min:65,max:90},this.rules[43].opcodes[3]={type:5,min:48,max:57},this.rules[43].opcodes[4]={type:4,index:63},this.rules[43].opcodes[5]={type:6,string:[33]},this.rules[43].opcodes[6]={type:6,string:[36]},this.rules[43].opcodes[7]={type:5,min:38,max:46},this.rules[43].opcodes[8]={type:6,string:[59]},this.rules[43].opcodes[9]={type:6,string:[61]},this.rules[43].opcodes[10]={type:6,string:[95]},this.rules[43].opcodes[11]={type:6,string:[126]},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:4,index:79},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:3,min:0,max:1/0},this.rules[45].opcodes[1]={type:1,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:62},this.rules[45].opcodes[3]={type:6,string:[47]},this.rules[45].opcodes[4]={type:6,string:[63]},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:3,min:0,max:1/0},this.rules[46].opcodes[1]={type:1,children:[2,3,4]},this.rules[46].opcodes[2]={type:4,index:62},this.rules[46].opcodes[3]={type:6,string:[47]},this.rules[46].opcodes[4]={type:6,string:[63]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,2,3,4,8]},this.rules[47].opcodes[1]={type:4,index:49},this.rules[47].opcodes[2]={type:7,string:[58]},this.rules[47].opcodes[3]={type:4,index:48},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:2,children:[6,7]},this.rules[47].opcodes[6]={type:7,string:[63]},this.rules[47].opcodes[7]={type:4,index:50},this.rules[47].opcodes[8]={type:3,min:0,max:1},this.rules[47].opcodes[9]={type:2,children:[10,11]},this.rules[47].opcodes[10]={type:7,string:[35]},this.rules[47].opcodes[11]={type:4,index:51},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:1,children:[1,5,6,7]},this.rules[48].opcodes[1]={type:2,children:[2,3,4]},this.rules[48].opcodes[2]={type:7,string:[47,47]},this.rules[48].opcodes[3]={type:4,index:52},this.rules[48].opcodes[4]={type:4,index:56},this.rules[48].opcodes[5]={type:4,index:57},this.rules[48].opcodes[6]={type:4,index:58},this.rules[48].opcodes[7]={type:4,index:59},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2]},this.rules[49].opcodes[1]={type:4,index:77},this.rules[49].opcodes[2]={type:3,min:0,max:1/0},this.rules[49].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[49].opcodes[4]={type:4,index:77},this.rules[49].opcodes[5]={type:4,index:79},this.rules[49].opcodes[6]={type:6,string:[43]},this.rules[49].opcodes[7]={type:5,min:45,max:46},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:3,min:0,max:1/0},this.rules[50].opcodes[1]={type:1,children:[2,3,4]},this.rules[50].opcodes[2]={type:4,index:62},this.rules[50].opcodes[3]={type:6,string:[47]},this.rules[50].opcodes[4]={type:6,string:[63]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:3,min:0,max:1/0},this.rules[51].opcodes[1]={type:1,children:[2,3,4]},this.rules[51].opcodes[2]={type:4,index:62},this.rules[51].opcodes[3]={type:6,string:[47]},this.rules[51].opcodes[4]={type:6,string:[63]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:2,children:[1,5,6]},this.rules[52].opcodes[1]={type:3,min:0,max:1},this.rules[52].opcodes[2]={type:2,children:[3,4]},this.rules[52].opcodes[3]={type:4,index:53},this.rules[52].opcodes[4]={type:6,string:[64]},this.rules[52].opcodes[5]={type:4,index:54},this.rules[52].opcodes[6]={type:3,min:0,max:1},this.rules[52].opcodes[7]={type:2,children:[8,9]},this.rules[52].opcodes[8]={type:7,string:[58]},this.rules[52].opcodes[9]={type:4,index:55},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:3,min:0,max:1/0},this.rules[53].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12]},this.rules[53].opcodes[2]={type:5,min:97,max:122},this.rules[53].opcodes[3]={type:5,min:65,max:90},this.rules[53].opcodes[4]={type:5,min:48,max:57},this.rules[53].opcodes[5]={type:4,index:63},this.rules[53].opcodes[6]={type:6,string:[33]},this.rules[53].opcodes[7]={type:6,string:[36]},this.rules[53].opcodes[8]={type:5,min:38,max:46},this.rules[53].opcodes[9]={type:5,min:58,max:59},this.rules[53].opcodes[10]={type:6,string:[61]},this.rules[53].opcodes[11]={type:6,string:[95]},this.rules[53].opcodes[12]={type:6,string:[126]},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:1,children:[1,2,6]},this.rules[54].opcodes[1]={type:4,index:30},this.rules[54].opcodes[2]={type:2,children:[3,4]},this.rules[54].opcodes[3]={type:4,index:39},this.rules[54].opcodes[4]={type:13},this.rules[54].opcodes[5]={type:4,index:43},this.rules[54].opcodes[6]={type:4,index:42},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:3,min:0,max:1/0},this.rules[55].opcodes[1]={type:4,index:79},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1/0},this.rules[56].opcodes[1]={type:2,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[47]},this.rules[56].opcodes[3]={type:4,index:60},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2]},this.rules[57].opcodes[1]={type:7,string:[47]},this.rules[57].opcodes[2]={type:3,min:0,max:1},this.rules[57].opcodes[3]={type:2,children:[4,5]},this.rules[57].opcodes[4]={type:4,index:61},this.rules[57].opcodes[5]={type:3,min:0,max:1/0},this.rules[57].opcodes[6]={type:2,children:[7,8]},this.rules[57].opcodes[7]={type:7,string:[47]},this.rules[57].opcodes[8]={type:4,index:60},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:2,children:[1,2]},this.rules[58].opcodes[1]={type:4,index:61},this.rules[58].opcodes[2]={type:3,min:0,max:1/0},this.rules[58].opcodes[3]={type:2,children:[4,5]},this.rules[58].opcodes[4]={type:7,string:[47]},this.rules[58].opcodes[5]={type:4,index:60},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:7,string:[]},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:3,min:0,max:1/0},this.rules[60].opcodes[1]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:3,min:1,max:1/0},this.rules[61].opcodes[1]={type:4,index:62},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[62].opcodes[1]={type:5,min:97,max:122},this.rules[62].opcodes[2]={type:5,min:65,max:90},this.rules[62].opcodes[3]={type:5,min:48,max:57},this.rules[62].opcodes[4]={type:4,index:63},this.rules[62].opcodes[5]={type:6,string:[33]},this.rules[62].opcodes[6]={type:6,string:[36]},this.rules[62].opcodes[7]={type:5,min:38,max:46},this.rules[62].opcodes[8]={type:5,min:58,max:59},this.rules[62].opcodes[9]={type:6,string:[61]},this.rules[62].opcodes[10]={type:6,string:[64]},this.rules[62].opcodes[11]={type:6,string:[95]},this.rules[62].opcodes[12]={type:6,string:[126]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:2,children:[1,2,3]},this.rules[63].opcodes[1]={type:6,string:[37]},this.rules[63].opcodes[2]={type:4,index:80},this.rules[63].opcodes[3]={type:4,index:80},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:4,max:4},this.rules[64].opcodes[1]={type:4,index:79},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:3,min:2,max:2},this.rules[65].opcodes[1]={type:4,index:79},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:3,min:2,max:2},this.rules[66].opcodes[1]={type:4,index:79},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:2,max:2},this.rules[67].opcodes[1]={type:4,index:79},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:3,min:2,max:2},this.rules[68].opcodes[1]={type:4,index:79},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:3,min:2,max:2},this.rules[69].opcodes[1]={type:4,index:79},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:2,children:[1,2]},this.rules[70].opcodes[1]={type:7,string:[46]},this.rules[70].opcodes[2]={type:3,min:1,max:1/0},this.rules[70].opcodes[3]={type:4,index:79},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,4,5,6]},this.rules[71].opcodes[1]={type:1,children:[2,3]},this.rules[71].opcodes[2]={type:7,string:[43]},this.rules[71].opcodes[3]={type:7,string:[45]},this.rules[71].opcodes[4]={type:4,index:67},this.rules[71].opcodes[5]={type:7,string:[58]},this.rules[71].opcodes[6]={type:4,index:68},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:7,string:[122]},this.rules[72].opcodes[2]={type:4,index:71},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:2,children:[1,2,3,4,5,6]},this.rules[73].opcodes[1]={type:4,index:67},this.rules[73].opcodes[2]={type:7,string:[58]},this.rules[73].opcodes[3]={type:4,index:68},this.rules[73].opcodes[4]={type:7,string:[58]},this.rules[73].opcodes[5]={type:4,index:69},this.rules[73].opcodes[6]={type:3,min:0,max:1},this.rules[73].opcodes[7]={type:4,index:70},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[74].opcodes[1]={type:4,index:64},this.rules[74].opcodes[2]={type:7,string:[45]},this.rules[74].opcodes[3]={type:4,index:65},this.rules[74].opcodes[4]={type:7,string:[45]},this.rules[74].opcodes[5]={type:4,index:66},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2]},this.rules[75].opcodes[1]={type:4,index:73},this.rules[75].opcodes[2]={type:4,index:72},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:2,children:[1,2,3]},this.rules[76].opcodes[1]={type:4,index:74},this.rules[76].opcodes[2]={type:7,string:[116]},this.rules[76].opcodes[3]={type:4,index:75},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:5,min:65,max:90},this.rules[77].opcodes[2]={type:5,min:97,max:122},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:6,string:[10]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:5,min:48,max:57},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:1,children:[1,2,3]},this.rules[80].opcodes[1]={type:5,min:48,max:57},this.rules[80].opcodes[2]={type:5,min:65,max:70},this.rules[80].opcodes[3]={type:5,min:97,max:102},this.toString=function(){let t="";return t+=`; LDT 05/06/2024
7
+ `)!==S(this,Zy))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);V(this,nf,t)}return S(this,nf)};const mZ="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]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Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",yZ="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let r6=null;class Po extends Qy{constructor(){super("en",mZ,yZ)}static wordlist(){return r6==null&&(r6=new Po),r6}}function zT(t){return(1<<t)-1<<8-t&255}function vZ(t){return(1<<t)-1&255}function n6(t,e){a2("NFKD"),e==null&&(e=Po.wordlist());const r=e.split(t);pe(r.length%3===0&&r.length>=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<r.length;l++){let u=e.getWordIndex(r[l].normalize("NFKD"));pe(u>=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let d=0;d<11;d++)u&1<<10-d&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=zT(o),c=qe(Fn(n.slice(0,i/8)))[0]&a;return pe(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),Ze(n.slice(0,i/8))}function s6(t,e){pe(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=Po.wordlist());const r=[0];let n=11;for(let o=0;o<t.length;o++)n>8?(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]&vZ(8-n)),n+=3);const s=t.length/4,i=parseInt(Fn(t).substring(2,4),16)&zT(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const i6={};class Hc{constructor(e,r,n,s,i){X(this,"phrase"),X(this,"password"),X(this,"wordlist"),X(this,"entropy"),s==null&&(s=""),i==null&&(i=Po.wordlist()),vo(e,i6,"Mnemonic"),rt(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=qr("mnemonic"+this.password,"NFKD");return Ti(qr(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=n6(e,n);return e=s6(qe(s),n),new Hc(i6,s,e,r,n)}static fromEntropy(e,r,n){const s=qe(e,"entropy"),i=s6(s,n);return new Hc(i6,Ze(s),i,r,n)}static entropyToPhrase(e,r){const n=qe(e,"entropy");return s6(n,r)}static phraseToEntropy(e,r){return n6(e,r)}static isValidMnemonic(e,r){try{return n6(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var Sn=function(t,e,r,n){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)},o6=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},Yy,ti,xo;const bZ={16:10,24:12,32:14},wZ=[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],ri=[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],Ky=[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],kZ=[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],EZ=[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],AZ=[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],_Z=[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],SZ=[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],CZ=[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],TZ=[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],RZ=[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],PZ=[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],xZ=[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],NZ=[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],IZ=[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 a6(t){const e=[];for(let r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}class qy{get key(){return Sn(this,Yy,"f").slice()}constructor(e){if(Yy.set(this,void 0),ti.set(this,void 0),xo.set(this,void 0),!(this instanceof qy))throw Error("AES must be instanitated with `new`");o6(this,Yy,new Uint8Array(e));const r=bZ[this.key.length];if(r==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");o6(this,xo,[]),o6(this,ti,[]);for(let u=0;u<=r;u++)Sn(this,xo,"f").push([0,0,0,0]),Sn(this,ti,"f").push([0,0,0,0]);const n=(r+1)*4,s=this.key.length/4,i=a6(this.key);let o;for(let u=0;u<s;u++)o=u>>2,Sn(this,xo,"f")[o][u%4]=i[u],Sn(this,ti,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c<n;){if(l=i[s-1],i[0]^=ri[l>>16&255]<<24^ri[l>>8&255]<<16^ri[l&255]<<8^ri[l>>24&255]^wZ[a]<<24,a+=1,s!=8)for(let p=1;p<s;p++)i[p]^=i[p-1];else{for(let p=1;p<s/2;p++)i[p]^=i[p-1];l=i[s/2-1],i[s/2]^=ri[l&255]^ri[l>>8&255]<<8^ri[l>>16&255]<<16^ri[l>>24&255]<<24;for(let p=s/2+1;p<s;p++)i[p]^=i[p-1]}let u=0,d,h;for(;u<s&&c<n;)d=c>>2,h=c%4,Sn(this,xo,"f")[d][h]=i[u],Sn(this,ti,"f")[r-d][h]=i[u++],c++}for(let u=1;u<r;u++)for(let d=0;d<4;d++)l=Sn(this,ti,"f")[u][d],Sn(this,ti,"f")[u][d]=PZ[l>>24&255]^xZ[l>>16&255]^NZ[l>>8&255]^IZ[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=Sn(this,xo,"f").length-1,n=[0,0,0,0];let s=a6(e);for(let a=0;a<4;a++)s[a]^=Sn(this,xo,"f")[0][a];for(let a=1;a<r;a++){for(let c=0;c<4;c++)n[c]=kZ[s[c]>>24&255]^EZ[s[(c+1)%4]>>16&255]^AZ[s[(c+2)%4]>>8&255]^_Z[s[(c+3)%4]&255]^Sn(this,xo,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=Sn(this,xo,"f")[r][a],i[4*a]=(ri[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(ri[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(ri[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(ri[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=Sn(this,ti,"f").length-1,n=[0,0,0,0];let s=a6(e);for(let a=0;a<4;a++)s[a]^=Sn(this,ti,"f")[0][a];for(let a=1;a<r;a++){for(let c=0;c<4;c++)n[c]=SZ[s[c]>>24&255]^CZ[s[(c+3)%4]>>16&255]^TZ[s[(c+2)%4]>>8&255]^RZ[s[(c+1)%4]&255]^Sn(this,ti,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=Sn(this,ti,"f")[r][a],i[4*a]=(Ky[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Ky[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Ky[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Ky[s[(a+1)%4]&255]^o)&255;return i}}Yy=new WeakMap,ti=new WeakMap,xo=new WeakMap;class sf{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 qy(r)},name:{enumerable:!0,value:e}})}}var Xy=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},of=function(t,e,r,n){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)},mg,Ba;class ev extends sf{constructor(e,r){if(super("ECC",e,ev),mg.set(this,void 0),Ba.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Xy(this,mg,new Uint8Array(r))}else Xy(this,mg,new Uint8Array(16));Xy(this,Ba,this.iv)}get iv(){return new Uint8Array(of(this,mg))}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;n<e.length;n+=16){for(let s=0;s<16;s++)of(this,Ba)[s]^=e[n+s];Xy(this,Ba,this.aes.encrypt(of(this,Ba))),r.set(of(this,Ba),n)}return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){const s=this.aes.decrypt(e.subarray(n,n+16));for(let i=0;i<16;i++)r[n+i]=s[i]^of(this,Ba)[i],of(this,Ba)[i]=e[n+i]}return r}}mg=new WeakMap,Ba=new WeakMap;var c6=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},Zc=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)},tv,yg,Jc,l6;class u6 extends sf{constructor(e,r,n=8){if(super("CFB",e,u6),tv.add(this),yg.set(this,void 0),Jc.set(this,void 0),!Number.isInteger(n)||n%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:n}}),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");c6(this,yg,new Uint8Array(r))}else c6(this,yg,new Uint8Array(16));c6(this,Jc,this.iv)}get iv(){return new Uint8Array(Zc(this,yg,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const r=this.segmentSize/8,n=new Uint8Array(e);for(let s=0;s<n.length;s+=r){const i=this.aes.encrypt(Zc(this,Jc,"f"));for(let o=0;o<r;o++)n[s+o]^=i[o];Zc(this,tv,"m",l6).call(this,n.subarray(s))}return n}decrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const r=this.segmentSize/8,n=new Uint8Array(e);for(let s=0;s<n.length;s+=r){const i=this.aes.encrypt(Zc(this,Jc,"f"));for(let o=0;o<r;o++)n[s+o]^=i[o];Zc(this,tv,"m",l6).call(this,e.subarray(s))}return n}}yg=new WeakMap,Jc=new WeakMap,tv=new WeakSet,l6=function(t){const e=this.segmentSize/8;Zc(this,Jc,"f").set(Zc(this,Jc,"f").subarray(e)),Zc(this,Jc,"f").set(t.subarray(0,e),16-e)};var af=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},ni=function(t,e,r,n){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)},vg,Ru,si;class Pu extends sf{constructor(e,r){super("CTR",e,Pu),vg.set(this,void 0),Ru.set(this,void 0),si.set(this,void 0),af(this,si,new Uint8Array(16)),ni(this,si,"f").fill(0),af(this,vg,ni(this,si,"f")),af(this,Ru,16),r==null&&(r=1),typeof r=="number"?this.setCounterValue(r):this.setCounterBytes(r)}get counter(){return new Uint8Array(ni(this,si,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)ni(this,si,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");ni(this,si,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(ni(this,si,"f")[e]===255)ni(this,si,"f")[e]=0;else{ni(this,si,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i<s.length;i++)ni(this,Ru,"f")===16&&(af(this,vg,this.aes.encrypt(ni(this,si,"f"))),af(this,Ru,0),this.increment()),s[i]^=ni(this,vg,"f")[af(this,Ru,(n=ni(this,Ru,"f"),r=n++,n)),r];return s}decrypt(e){return this.encrypt(e)}}vg=new WeakMap,Ru=new WeakMap,si=new WeakMap;class h6 extends sf{constructor(e){super("ECB",e,h6)}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;n<e.length;n+=16)r.set(this.aes.encrypt(e.subarray(n,n+16)),n);return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16)r.set(this.aes.decrypt(e.subarray(n,n+16)),n);return r}}var xu=function(t,e,r,n,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r},bg=function(t,e,r,n){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)},wg,cf,Nu;class d6 extends sf{constructor(e,r){if(super("OFB",e,d6),wg.set(this,void 0),cf.set(this,void 0),Nu.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");xu(this,wg,new Uint8Array(r))}else xu(this,wg,new Uint8Array(16));xu(this,cf,this.iv),xu(this,Nu,16)}get iv(){return new Uint8Array(bg(this,wg))}encrypt(e){var r,n;if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const s=new Uint8Array(e);for(let i=0;i<s.length;i++)bg(this,Nu)===16&&(xu(this,cf,this.aes.encrypt(bg(this,cf))),xu(this,Nu,0)),s[i]^=bg(this,cf)[xu(this,Nu,(n=bg(this,Nu),r=n++,n)),r];return s}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}wg=new WeakMap,cf=new WeakMap,Nu=new WeakMap;function OZ(t){const e=16-t.length%16,r=new Uint8Array(t.length+e);r.set(t);for(let n=t.length;n<r.length;n++)r[n]=e;return r}function $T(t){if(t.length<16)throw new TypeError("PKCS#7 invalid length");const e=t[t.length-1];if(e>16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n<e;n++)if(t[r+n]!==e)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(t.subarray(0,r))}const BZ=Object.freeze(Object.defineProperty({__proto__:null,AES:qy,CBC:ev,CFB:u6,CTR:Pu,ECB:h6,ModeOfOperation:sf,OFB:d6,pkcs7Pad:OZ,pkcs7Strip:$T},Symbol.toStringTag,{value:"Module"}));function HT(t){return typeof t=="string"&&!t.startsWith("0x")&&(t="0x"+t),sn(t)}function kg(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function Eg(t){return typeof t=="string"?qr(t,"NFKC"):sn(t)}function Hr(t,e){const r=e.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);pe(r!=null,"invalid path","path",e);const n=r[1],s=r[3],i=r[4]==="!";let o=t;for(const a of n.toLowerCase().split(".")){if(Array.isArray(o)){if(!a.match(/^[0-9]+$/))break;o=o[parseInt(a)]}else if(typeof o=="object"){let c=null;for(const l in o)if(l.toLowerCase()===a){c=o[l];break}o=c}else o=null;if(o==null)break}if(pe(!i||o!=null,"missing required value","path",n),s&&o!=null){if(s==="int"){if(typeof o=="string"&&o.match(/^-?[0-9]+$/))return parseInt(o);if(Number.isSafeInteger(o))return o}if(s==="number"&&typeof o=="string"&&o.match(/^-?[0-9.]*$/))return parseFloat(o);if(s==="data"&&typeof o=="string")return HT(o);if(s==="array"&&Array.isArray(o)||s===typeof o)return o;pe(!1,`wrong type found for ${s} `,"path",n)}return o}const ZT="m/44'/60'/0'/0/0";function rv(t){try{const e=JSON.parse(t);if((e.version!=null?parseInt(e.version):0)===3)return!0}catch{}return!1}function UZ(t,e,r){if(Hr(t,"crypto.cipher:string")==="aes-128-ctr"){const n=Hr(t,"crypto.cipherparams.iv:data!"),s=new Pu(e,n);return Ze(s.decrypt(r))}Be(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function nv(t,e){const r=qe(e),n=Hr(t,"crypto.ciphertext:data!"),s=Ze(hr($t([r.slice(16,32),n]))).substring(2);pe(s===Hr(t,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const i=UZ(t,r.slice(0,16),n),o=ru(i);if(t.address){let c=t.address.toLowerCase();c.startsWith("0x")||(c="0x"+c),pe(Bt(c)===o,"keystore address/privateKey mismatch","address",t.address)}const a={address:o,privateKey:i};if(Hr(t,"x-ethers.version:string")==="0.1"){const c=r.slice(32,64),l=Hr(t,"x-ethers.mnemonicCiphertext:data!"),u=Hr(t,"x-ethers.mnemonicCounter:data!"),d=new Pu(c,u);a.mnemonic={path:Hr(t,"x-ethers.path:string")||ZT,locale:Hr(t,"x-ethers.locale:string")||"en",entropy:Ze(qe(d.decrypt(l)))}}return a}function JT(t){const e=Hr(t,"crypto.kdf:string");if(e&&typeof e=="string"){if(e.toLowerCase()==="scrypt"){const r=Hr(t,"crypto.kdfparams.salt:data!"),n=Hr(t,"crypto.kdfparams.n:int!"),s=Hr(t,"crypto.kdfparams.r:int!"),i=Hr(t,"crypto.kdfparams.p:int!");pe(n>0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),pe(s>0&&i>0,"invalid kdf","kdf",e);const o=Hr(t,"crypto.kdfparams.dklen:int!");return pe(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=Hr(t,"crypto.kdfparams.salt:data!"),n=Hr(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();pe(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Hr(t,"crypto.kdfparams.c:int!"),o=Hr(t,"crypto.kdfparams.dklen:int!");return pe(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}pe(!1,"unsupported key-derivation function","kdf",e)}function f6(t,e){const r=JSON.parse(t),n=Eg(e),s=JT(r);if(s.name==="pbkdf2"){const{salt:d,count:h,dkLen:p,algorithm:g}=s,m=Ti(n,d,h,p,g);return nv(r,m)}Be(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=ma(n,i,o,a,c,l);return nv(r,u)}function QT(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function p6(t,e,r){const n=JSON.parse(t),s=Eg(e),i=JT(n);if(i.name==="pbkdf2"){r&&(r(0),await QT(0));const{salt:h,count:p,dkLen:g,algorithm:m}=i,y=Ti(s,h,p,g,m);return r&&(r(1),await QT(0)),nv(n,y)}Be(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,d=await ga(s,o,a,c,l,u,r);return nv(n,d)}function YT(t){const e=t.salt!=null?qe(t.salt,"options.salt"):Cs(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)),pe(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),pe(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),pe(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 KT(t,e,r,n){const s=qe(r.privateKey,"privateKey"),i=n.iv!=null?qe(n.iv,"options.iv"):Cs(16);pe(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?qe(n.uuid,"options.uuid"):Cs(16);pe(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new Pu(a,i),u=qe(l.encrypt(s)),d=hr($t([c,u])),h={address:r.address.substring(2).toLowerCase(),id:e4(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Ze(i).substring(2)},ciphertext:Ze(u).substring(2),kdf:"scrypt",kdfparams:{salt:Ze(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:d.substring(2)}};if(r.mnemonic){const p=n.client!=null?n.client:`ethers/${i2}`,g=r.mnemonic.path||ZT,m=r.mnemonic.locale||"en",y=t.slice(32,64),v=qe(r.mnemonic.entropy,"account.mnemonic.entropy"),A=Cs(16),E=new Pu(y,A),w=qe(E.encrypt(v)),C=new Date,B="UTC--"+(C.getUTCFullYear()+"-"+kg(C.getUTCMonth()+1,2)+"-"+kg(C.getUTCDate(),2)+"T"+kg(C.getUTCHours(),2)+"-"+kg(C.getUTCMinutes(),2)+"-"+kg(C.getUTCSeconds(),2)+".0Z")+"--"+h.address;h["x-ethers"]={client:p,gethFilename:B,path:g,locale:m,mnemonicCounter:Ze(A).substring(2),mnemonicCiphertext:Ze(w).substring(2),version:"0.1"}}return JSON.stringify(h)}function sv(t,e,r){r==null&&(r={});const n=Eg(e),s=YT(r),i=ma(n,s.salt,s.N,s.r,s.p,64);return KT(qe(i),s,t,r)}async function iv(t,e,r){r==null&&(r={});const n=Eg(e),s=YT(r),i=await ga(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return KT(qe(i),s,t,r)}const Ag="m/44'/60'/0'/0/0",MZ=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),No=2147483648,FZ=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),LZ="0123456789abcdef";function ov(t,e){let r="";for(;t;)r=LZ[t%16]+r,t=Math.trunc(t/16);for(;r.length<e*2;)r="0"+r;return"0x"+r}function g6(t){const e=qe(t),r=ur(Fn(Fn(e)),0,4),n=$t([e,r]);return h2(n)}const Io={};function qT(t,e,r,n){const s=new Uint8Array(37);t&No?(Be(n!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),s.set(qe(n),1)):s.set(qe(r));for(let o=24;o>=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=qe(fa("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function XT(t,e){const r=e.split("/");pe(r.length>0,"invalid path","path",e),r[0]==="m"&&(pe(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<r.length;s++){const i=r[s];if(i.match(/^[0-9]+'$/)){const o=parseInt(i.substring(0,i.length-1));pe(o<No,"invalid path index",`path[${s}]`,i),n=n.deriveChild(No+o)}else if(i.match(/^[0-9]+$/)){const o=parseInt(i);pe(o<No,"invalid path index",`path[${s}]`,i),n=n.deriveChild(o)}else pe(!1,"invalid path component",`path[${s}]`,i)}return n}var av,m6,lf,_g;const y6=class Tl extends $y{constructor(e,r,n,s,i,o,a,c,l){super(r,l),ne(this,av),X(this,"publicKey"),X(this,"fingerprint"),X(this,"parentFingerprint"),X(this,"mnemonic"),X(this,"chainCode"),X(this,"path"),X(this,"index"),X(this,"depth"),vo(e,Io,"HDNodeWallet"),rt(this,{publicKey:r.compressedPublicKey});const u=ur(pa(Fn(this.publicKey)),0,4);rt(this,{parentFingerprint:n,fingerprint:u,chainCode:s,path:i,index:o,depth:a}),rt(this,{mnemonic:c})}connect(e){return new Tl(Io,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}async encrypt(e,r){return await iv(ve(this,av,m6).call(this),e,{progressCallback:r})}encryptSync(e){return sv(ve(this,av,m6).call(this),e)}get extendedKey(){return Be(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g6($t(["0x0488ADE4",ov(this.depth,1),this.parentFingerprint,ov(this.index,4),this.chainCode,$t(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new Iu(Io,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const r=mt(e,"index");pe(r<=4294967295,"invalid index","index",r);let n=this.path;n&&(n+="/"+(r&~No),r&No&&(n+="'"));const{IR:s,IL:i}=qT(r,this.chainCode,this.publicKey,this.privateKey),o=new _o(Zs((Gl(i)+BigInt(this.privateKey))%FZ,32));return new Tl(Io,o,this.fingerprint,Ze(s),n,r,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return XT(this,e)}static fromExtendedKey(e){const r=on(W3(e));pe(r.length===82||g6(r.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const n=r[4],s=Ze(r.slice(5,9)),i=parseInt(Ze(r.slice(9,13)).substring(2),16),o=Ze(r.slice(13,45)),a=r.slice(45,78);switch(Ze(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const c=Ze(a);return new Iu(Io,ru(c),c,s,o,null,i,n,null)}case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new Tl(Io,new _o(a.slice(1)),s,o,null,i,n,null,null)}pe(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,r,n){var s;e==null&&(e=""),r==null&&(r=Ag),n==null&&(n=Po.wordlist());const i=Hc.fromEntropy(Cs(16),e,n);return ve(s=Tl,lf,_g).call(s,i.computeSeed(),i).derivePath(r)}static fromMnemonic(e,r){var n;return r||(r=Ag),ve(n=Tl,lf,_g).call(n,e.computeSeed(),e).derivePath(r)}static fromPhrase(e,r,n,s){var i;r==null&&(r=""),n==null&&(n=Ag),s==null&&(s=Po.wordlist());const o=Hc.fromPhrase(e,r,s);return ve(i=Tl,lf,_g).call(i,o.computeSeed(),o).derivePath(n)}static fromSeed(e){var r;return ve(r=Tl,lf,_g).call(r,e,null)}};av=new WeakSet,m6=function(){const t={address:this.address,privateKey:this.privateKey},e=this.mnemonic;return this.path&&e&&e.wordlist.locale==="en"&&e.password===""&&(t.mnemonic={path:this.path,locale:"en",entropy:e.entropy}),t},lf=new WeakSet,_g=function(t,e){pe(Jh(t),"invalid seed","seed","[REDACTED]");const r=qe(t,"seed");pe(r.length>=16&&r.length<=64,"invalid seed","seed","[REDACTED]");const n=qe(fa("sha512",MZ,r)),s=new _o(Ze(n.slice(0,32)));return new y6(Io,s,"0x00000000",Ze(n.slice(32)),"m",0,0,e,null)},ne(y6,lf);let Sg=y6;class Iu extends Ny{constructor(e,r,n,s,i,o,a,c,l){super(r,l),X(this,"publicKey"),X(this,"fingerprint"),X(this,"parentFingerprint"),X(this,"chainCode"),X(this,"path"),X(this,"index"),X(this,"depth"),vo(e,Io,"HDNodeVoidWallet"),rt(this,{publicKey:n});const u=ur(pa(Fn(n)),0,4);rt(this,{publicKey:n,fingerprint:u,parentFingerprint:s,chainCode:i,path:o,index:a,depth:c})}connect(e){return new Iu(Io,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return Be(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),g6($t(["0x0488B21E",ov(this.depth,1),this.parentFingerprint,ov(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(e){const r=mt(e,"index");pe(r<=4294967295,"invalid index","index",r);let n=this.path;n&&(n+="/"+(r&~No),r&No&&(n+="'"));const{IR:s,IL:i}=qT(r,this.chainCode,this.publicKey,null),o=_o.addPoints(i,this.publicKey,!0),a=ru(o);return new Iu(Io,a,o,this.fingerprint,Ze(s),n,r,this.depth+1,this.provider)}derivePath(e){return XT(this,e)}}function eR(t){const e=mt(t,"index");return pe(e>=0&&e<No,"invalid account index","index",e),`m/44'/60'/${e}'/0/0`}function tR(t){const e=mt(t,"index");return pe(e>=0&&e<No,"invalid account index","index",e),`m/44'/60'/0'/0/${e}`}function cv(t){try{if(JSON.parse(t).encseed)return!0}catch{}return!1}function lv(t,e){const r=JSON.parse(t),n=Eg(e),s=Bt(Hr(r,"ethaddr:string!")),i=HT(Hr(r,"encseed:string!"));pe(i&&i.length%16===0,"invalid encseed","json",t);const o=qe(Ti(n,n,2e3,32,"sha256")).slice(0,16),a=i.slice(0,16),c=i.slice(16),l=new ev(o,a),u=$T(qe(l.decrypt(c)));let d="";for(let h=0;h<u.length;h++)d+=String.fromCharCode(u[h]);return{address:s,privateKey:xi(d)}}function rR(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var uv,v6;const b6=class $w extends $y{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new _o(e):e;super(n,r)}connect(e){return new $w(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await iv(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return sv(r,e)}static async fromEncryptedJson(e,r,n){var s;let i=null;return rv(e)?i=await p6(e,r,n):cv(e)&&(n&&(n(0),await rR(0)),i=lv(e,r),n&&(n(1),await rR(0))),ve(s=$w,uv,v6).call(s,i)}static fromEncryptedJsonSync(e,r){var n;let s=null;return rv(e)?s=f6(e,r):cv(e)?s=lv(e,r):pe(!1,"invalid JSON wallet","json","[ REDACTED ]"),ve(n=$w,uv,v6).call(n,s)}static createRandom(e){const r=Sg.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=Sg.fromPhrase(e);return r?n.connect(r):n}};uv=new WeakSet,v6=function(t){if(pe(t,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in t&&t.mnemonic&&t.mnemonic.locale==="en"){const r=Hc.fromEntropy(t.mnemonic.entropy),n=Sg.fromMnemonic(r,t.mnemonic.path);if(n.address===t.address&&n.privateKey===t.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const e=new b6(t.privateKey);return pe(e.address===t.address,"address/privateKey mismatch","json","[ REDACTED ]"),e},ne(b6,uv);let nR=b6;const VZ=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function DZ(t,e){const r=(1<<t)-1,n=[];let s=0,i=0,o=0;for(let a=0;a<e.length;a++)for(s=s<<6|VZ.indexOf(e[a]),i+=6;i>=t;){const c=s>>i-t;s&=(1<<i-t)-1,i-=t,c===0?o+=r:(n.push(c+o),o=0)}return n}function WZ(t,e){let r=GT(t).join(",");return e.split(/,/g).forEach(n=>{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);pe(s!==null,"internal error parsing accents","accents",e);let i=0;const o=DZ(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 hv;class sR extends Qy{constructor(e,r,n,s){super(e,r,s),ne(this,hv),V(this,hv,n)}get _accent(){return S(this,hv)}_decodeWords(){return WZ(this._data,this._accent)}}hv=new WeakMap;const iR={en:Po.wordlist()},jZ=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Rd,AbstractProvider:Dd,AbstractSigner:jd,AlchemyProvider:Yd,AnkrProvider:Qd,BaseContract:W0,BaseWallet:$y,Block:c5,BrowserProvider:X5,ChainstackProvider:Kd,CloudflareProvider:L5,ConstructorFragment:Ii,Contract:Vc,ContractEventPayload:u5,ContractFactory:wy,ContractTransactionReceipt:l5,ContractTransactionResponse:V0,ContractUnknownEventPayload:gy,EnsPlugin:Bd,EnsResolver:ky,ErrorDescription:a5,ErrorFragment:Ni,EtherSymbol:AS,EtherscanPlugin:Ly,EtherscanProvider:V5,EventFragment:qs,EventLog:F0,EventPayload:d2,FallbackFragment:Oi,FallbackProvider:q5,FeeData:uy,FeeDataNetworkPlugin:bT,FetchCancelSignal:H3,FetchRequest:Mn,FetchResponse:vc,FetchUrlFeeDataNetworkPlugin:b5,FixedNumber:v2,Fragment:Ea,FunctionFragment:Xs,GasCostPlugin:Od,HDNodeVoidWallet:Iu,HDNodeWallet:Sg,Indexed:oy,InfuraProvider:Cu,InfuraWebSocketProvider:z5,Interface:ly,IpcSocketProvider:WT,JsonRpcApiProvider:By,JsonRpcProvider:Ns,JsonRpcSigner:ng,LangEn:Po,Log:lu,LogDescription:i5,MaxInt256:ES,MaxUint256:wS,MessagePrefix:P4,MinInt256:kS,Mnemonic:Hc,MulticoinProviderPlugin:m5,N:vS,NamedFragment:Cd,Network:Xr,NetworkPlugin:Ta,NonceManager:DT,ParamType:An,PocketProvider:fg,QuickNodeProvider:tf,Result:cd,Signature:Pi,SigningKey:_o,SocketBlockSubscriber:D5,SocketEventSubscriber:j5,SocketPendingSubscriber:W5,SocketProvider:G5,SocketSubscriber:ag,StructFragment:Aa,Transaction:Sd,TransactionDescription:o5,TransactionReceipt:dy,TransactionResponse:M0,Typed:Vn,TypedDataEncoder:iu,UndecodedEventLog:fy,UnmanagedSubscriber:Ld,Utf8ErrorFuncs:z3,VoidSigner:Ny,Wallet:nR,WebSocketProvider:Wy,WeiPerEther:bS,Wordlist:e6,WordlistOwl:Qy,WordlistOwlA:sR,ZeroAddress:eu,ZeroHash:M2,accessListify:So,assert:Be,assertArgument:pe,assertArgumentCount:o2,assertNormalize:a2,assertPrivate:vo,checkResultErrors:V_,computeAddress:ru,computeHmac:fa,concat:$t,copyRequest:cu,dataLength:ia,dataSlice:ur,decodeBase58:W3,decodeBase64:j3,decodeBytes32String:XC,decodeRlp:ad,decryptCrowdsaleJson:lv,decryptKeystoreJson:p6,decryptKeystoreJsonSync:f6,defaultPath:Ag,defineProperties:rt,dnsEncode:J4,encodeBase58:h2,encodeBase64:G3,encodeBytes32String:qC,encodeRlp:ha,encryptKeystoreJson:iv,encryptKeystoreJsonSync:sv,ensNormalize:Z4,formatEther:U_,formatUnits:q3,fromTwos:Yh,getAccountPath:eR,getAddress:Bt,getBigInt:ct,getBytes:qe,getBytesCopy:sn,getCreate2Address:US,getCreateAddress:L2,getDefaultProvider:VT,getIcapAddress:BS,getIndexedAccountPath:tR,getNumber:mt,getUint:Kh,hashMessage:X2,hexlify:Ze,id:xi,isAddress:MS,isAddressable:V2,isBytesLike:Jh,isCallException:Vp,isCrowdsaleJson:cv,isError:jr,isHexString:lr,isKeystoreJson:rv,isValidName:bC,keccak256:hr,lock:xS,makeError:yr,mask:oa,namehash:v0,parseEther:M_,parseUnits:X3,pbkdf2:Ti,randomBytes:Cs,recoverAddress:b0,resolveAddress:an,resolveProperties:nn,ripemd160:pa,scrypt:ga,scryptSync:ma,sha256:Fn,sha512:dd,showThrottleMessage:Pa,solidityPacked:ey,solidityPackedKeccak256:AC,solidityPackedSha256:_C,stripZerosLeft:g_,toBeArray:on,toBeHex:Zs,toBigInt:Gl,toNumber:jp,toQuantity:aa,toTwos:Wp,toUtf8Bytes:qr,toUtf8CodePoints:w_,toUtf8String:ca,uuidV4:e4,verifyMessage:kC,verifyTypedData:IC,version:i2,wordlists:iR,zeroPadBytes:Dp,zeroPadValue:Hs},Symbol.toStringTag,{value:"Module"})),fr=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Rd,AbstractProvider:Dd,AbstractSigner:jd,AlchemyProvider:Yd,AnkrProvider:Qd,BaseContract:W0,BaseWallet:$y,Block:c5,BrowserProvider:X5,ChainstackProvider:Kd,CloudflareProvider:L5,ConstructorFragment:Ii,Contract:Vc,ContractEventPayload:u5,ContractFactory:wy,ContractTransactionReceipt:l5,ContractTransactionResponse:V0,ContractUnknownEventPayload:gy,EnsPlugin:Bd,EnsResolver:ky,ErrorDescription:a5,ErrorFragment:Ni,EtherSymbol:AS,EtherscanPlugin:Ly,EtherscanProvider:V5,EventFragment:qs,EventLog:F0,EventPayload:d2,FallbackFragment:Oi,FallbackProvider:q5,FeeData:uy,FeeDataNetworkPlugin:bT,FetchCancelSignal:H3,FetchRequest:Mn,FetchResponse:vc,FetchUrlFeeDataNetworkPlugin:b5,FixedNumber:v2,Fragment:Ea,FunctionFragment:Xs,GasCostPlugin:Od,HDNodeVoidWallet:Iu,HDNodeWallet:Sg,Indexed:oy,InfuraProvider:Cu,InfuraWebSocketProvider:z5,Interface:ly,IpcSocketProvider:WT,JsonRpcApiProvider:By,JsonRpcProvider:Ns,JsonRpcSigner:ng,LangEn:Po,Log:lu,LogDescription:i5,MaxInt256:ES,MaxUint256:wS,MessagePrefix:P4,MinInt256:kS,Mnemonic:Hc,MulticoinProviderPlugin:m5,N:vS,NamedFragment:Cd,Network:Xr,NetworkPlugin:Ta,NonceManager:DT,ParamType:An,PocketProvider:fg,QuickNodeProvider:tf,Result:cd,Signature:Pi,SigningKey:_o,SocketBlockSubscriber:D5,SocketEventSubscriber:j5,SocketPendingSubscriber:W5,SocketProvider:G5,SocketSubscriber:ag,StructFragment:Aa,Transaction:Sd,TransactionDescription:o5,TransactionReceipt:dy,TransactionResponse:M0,Typed:Vn,TypedDataEncoder:iu,UndecodedEventLog:fy,UnmanagedSubscriber:Ld,Utf8ErrorFuncs:z3,VoidSigner:Ny,Wallet:nR,WebSocketProvider:Wy,WeiPerEther:bS,Wordlist:e6,WordlistOwl:Qy,WordlistOwlA:sR,ZeroAddress:eu,ZeroHash:M2,accessListify:So,assert:Be,assertArgument:pe,assertArgumentCount:o2,assertNormalize:a2,assertPrivate:vo,checkResultErrors:V_,computeAddress:ru,computeHmac:fa,concat:$t,copyRequest:cu,dataLength:ia,dataSlice:ur,decodeBase58:W3,decodeBase64:j3,decodeBytes32String:XC,decodeRlp:ad,decryptCrowdsaleJson:lv,decryptKeystoreJson:p6,decryptKeystoreJsonSync:f6,defaultPath:Ag,defineProperties:rt,dnsEncode:J4,encodeBase58:h2,encodeBase64:G3,encodeBytes32String:qC,encodeRlp:ha,encryptKeystoreJson:iv,encryptKeystoreJsonSync:sv,ensNormalize:Z4,ethers:jZ,formatEther:U_,formatUnits:q3,fromTwos:Yh,getAccountPath:eR,getAddress:Bt,getBigInt:ct,getBytes:qe,getBytesCopy:sn,getCreate2Address:US,getCreateAddress:L2,getDefaultProvider:VT,getIcapAddress:BS,getIndexedAccountPath:tR,getNumber:mt,getUint:Kh,hashMessage:X2,hexlify:Ze,id:xi,isAddress:MS,isAddressable:V2,isBytesLike:Jh,isCallException:Vp,isCrowdsaleJson:cv,isError:jr,isHexString:lr,isKeystoreJson:rv,isValidName:bC,keccak256:hr,lock:xS,makeError:yr,mask:oa,namehash:v0,parseEther:M_,parseUnits:X3,pbkdf2:Ti,randomBytes:Cs,recoverAddress:b0,resolveAddress:an,resolveProperties:nn,ripemd160:pa,scrypt:ga,scryptSync:ma,sha256:Fn,sha512:dd,showThrottleMessage:Pa,solidityPacked:ey,solidityPackedKeccak256:AC,solidityPackedSha256:_C,stripZerosLeft:g_,toBeArray:on,toBeHex:Zs,toBigInt:Gl,toNumber:jp,toQuantity:aa,toTwos:Wp,toUtf8Bytes:qr,toUtf8CodePoints:w_,toUtf8String:ca,uuidV4:e4,verifyMessage:kC,verifyTypedData:IC,version:i2,wordlists:iR,zeroPadBytes:Dp,zeroPadValue:Hs},Symbol.toStringTag,{value:"Module"}));async function GZ({apiUrl:t,accessToken:e}){try{const r=await fetch(`${t}/accounts/address`,{headers:{Authorization:e}});if(!r.ok)throw new Error(r.statusText);return[(await r.json()).address]}catch(r){throw new Error(`Error requesting accounts: ${r.message}`)}}async function dv({apiUrl:t,accessToken:e},r){if(!r.method)throw new Error("Invalid method");if(!r.params)throw new Error("Invalid signature parameter");const n=JSON.stringify(r,(o,a)=>typeof a=="bigint"?Zs(a):a),s=await fetch(`${t}/accounts/sign`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:e},body:n});if(!s.ok)throw new Error(s.statusText);const{signature:i}=await s.json();return i}const fv={PROD:"https://accounts.credenza3.com",STAGING:"https://accounts.staging.credenza3.com",LOCAL:"http://localhost:8081"},w6={PROD:"https://auth.credenza3.com",STAGING:"https://auth.staging.credenza3.com",LOCAL:"https://auth.staging.credenza3.com"},Ua={LOCAL:"local",STAGING:"staging",PROD:"prod"},k6={PROD:"https://evm.credenza3.com",STAGING:"https://evm.staging.credenza3.com",LOCAL:"http://localhost:8082"};function zZ(t){switch(t.env){case Ua.LOCAL:return k6.LOCAL;case Ua.STAGING:return k6.STAGING;case Ua.PROD:return k6.PROD;default:throw new Error("Invalid sdk env")}}const uf={CONNECTED:"connected",DISCONNECTED:"disconnected",CONNECTING:"connecting"};class $Z{constructor(e){if(X(this,"addresses",[]),X(this,"provider"),X(this,"state",uf.DISCONNECTED),X(this,"chainConfig"),X(this,"apiUrl"),X(this,"accessToken"),X(this,"sdk"),!e.sdk&&!e.accessToken)throw new Error("Invalid constructor parameters.");this.apiUrl=e.apiUrl||fv.PROD,this.accessToken=e.accessToken,this.sdk=e.sdk||void 0,this._setChain(e.chainConfig)}_getRequestFields(){return this.sdk?{accessToken:`Bearer ${this.sdk.getAccessToken()}`,apiUrl:zZ(this.sdk)}:{accessToken:`Bearer ${this.accessToken}`,apiUrl:this.apiUrl}}_checkConnected(){if(this.state!==uf.CONNECTED||!this.provider)throw new Error("Credenza provider is not connected")}_setChain(e){this.provider=new Ns(e.rpcUrl),this.chainConfig=e}async switchChain(e){const r=this.provider,n=this.chainConfig;this.state;try{this._setChain(e),await this.connect()}catch(s){throw this.provider=r,this.chainConfig=n,this.state,s}}async _populateTransaction(e){this._checkConnected();const[r]=await this.listAccounts();return await new Ny(r,this.provider).populateTransaction(e)}async connect(){try{this.state=uf.CONNECTING;const e=await this.provider.getNetwork();if(jp(e.chainId)!==jp(this.chainConfig.chainId))throw new Error("Invalid chain Id");this.state=uf.CONNECTED}catch(e){throw this.state=uf.DISCONNECTED,e}}async disconnect(){this.state=uf.DISCONNECTED}async getRpcProvider(){return this._checkConnected(),this.provider}async listAccounts(){var e;return this._checkConnected(),(e=this.addresses)!=null&&e.length||(this.addresses=await GZ(this._getRequestFields())),this.addresses}async request({method:e,params:r}){switch(this._checkConnected(),e){case"eth_requestAccounts":case"eth_accounts":try{return await this.listAccounts()}catch(n){throw new Error(`Error listing accounts: ${n.message}`)}case"eth_sign":case"personal_sign":try{return await dv(this._getRequestFields(),{method:"personal_sign",params:r})}catch(n){throw new Error(`Sign message error: ${n.message}`)}case"account_signTransaction":case"eth_signRawTransaction":case"eth_signTransaction":try{const n=await this._populateTransaction(r?.[0]);return await dv(this._getRequestFields(),{method:"eth_signTransaction",params:[n]})}catch(n){throw new Error(`Sign tx error: ${n.message}`)}case"account_sendTransaction":case"eth_sendRawTransaction":case"eth_sendTransaction":try{const n=await this._populateTransaction(r?.[0]),s=await dv(this._getRequestFields(),{method:"eth_signTransaction",params:[n]});return(await this.provider.broadcastTransaction(s)).hash}catch(n){throw new Error(`Send tx error: ${n.message}`)}case"account_signTypedData":case"eth_signTypedData_v4":case"eth_signTypedData":try{return await dv(this._getRequestFields(),{method:"eth_signTypedData",params:r})}catch(n){throw new Error(`Sign typed data failed: ${n.message}`)}default:return await this.provider.send(e,r??[])}}}const Cg={OAUTH:"oauth",METAMASK:"metamask",EVM_PROVIDER:"evm_provider"},Ou=new Map;let Qc=0;function E6(t,e){const r=Ou.get(t);if(r!=null&&r.length){for(let n=r.length-1;n>=0;n--)if(r[n].id===e){r.splice(n,1),Ou.set(t,r);return}}}function HZ(t,e){const r=Ou.get(t)??[];return Qc=Qc+1,r.push({callback:e,id:Qc,once:!0}),Ou.set(t,r),()=>E6(t,Qc)}function ZZ(t,e){const r=Ou.get(t)??[];return Qc=Qc+1,r.push({callback:e,id:Qc}),Ou.set(t,r),()=>E6(t,Qc)}function JZ(t,e){const r=Ou.get(t);if(r!=null&&r.length)for(const n of r)n.callback(e),n.once&&E6(t,n.id)}const A6={EVM_ERROR:"EVM_ERROR",EVM_SWITCH_CHAIN:"EVM_SWITCH_CHAIN"},QZ={LOGOUT:"LOGOUT"};function YZ(t){switch(t.env){case Ua.LOCAL:return fv.LOCAL;case Ua.STAGING:return fv.STAGING;case Ua.PROD:return fv.PROD;default:throw new Error("Invalid sdk env")}}function KZ(t){switch(t.env){case Ua.LOCAL:return w6.LOCAL;case Ua.STAGING:return w6.STAGING;case Ua.PROD:return w6.PROD;default:throw new Error("Invalid sdk env")}}function _6(t=64){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=new Uint8Array(t);return crypto.getRandomValues(r),Array.from(r,n=>e[n%e.length]).join("")}const qZ="credenza_web_sdk:";function XZ(t,e){return sessionStorage.setItem(`${qZ}${t}`,e)}const eJ="oauth:client_code_verifier";async function tJ(t,e,r){if(e.searchParams.append("response_type",r.responseType||"token"),r.responseType==="code"){const n=_6();XZ(eJ,n);const{codeChallenge:s,codeChallengeMethod:i}=await t.oauth.buildS256CodeChallenge(n);e.searchParams.append("code_challenge",s),e.searchParams.append("code_challenge_method",i)}}function rJ(t){return t!=null&&t.is_evm?"/evm":t!=null&&t.is_jwt?"/jwt":""}async function nJ(t,e,r={}){const n=r!=null&&r.is_jwt||r!=null&&r.is_evm?YZ:KZ,s=new URL(n(t)+"/oauth2/authorize"+rJ(r));return s.searchParams.append("client_id",t.clientId),s.searchParams.append("scope",e.scope),s.searchParams.append("nonce",e.nonce||_6(32)),s.searchParams.append("state",e.state||_6(32)),await tJ(t,s,e),s}function sJ(t,e){t.searchParams.append("redirect_uri",e.redirectUrl)}var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function iJ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ii(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var oR={},pv={},aR={},Bu={},gv={};Object.defineProperty(gv,"__esModule",{value:!0}),gv.grammar=void 0;function oJ(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"sign-in-with-ethereum",lower:"sign-in-with-ethereum",index:0,isBkr:!1},this.rules[1]={name:"ex-title",lower:"ex-title",index:1,isBkr:!1},this.rules[2]={name:"nb-title",lower:"nb-title",index:2,isBkr:!1},this.rules[3]={name:"ri-title",lower:"ri-title",index:3,isBkr:!1},this.rules[4]={name:"re-title",lower:"re-title",index:4,isBkr:!1},this.rules[5]={name:"oscheme",lower:"oscheme",index:5,isBkr:!1},this.rules[6]={name:"domain",lower:"domain",index:6,isBkr:!1},this.rules[7]={name:"address",lower:"address",index:7,isBkr:!1},this.rules[8]={name:"statement",lower:"statement",index:8,isBkr:!1},this.rules[9]={name:"empty-statement",lower:"empty-statement",index:9,isBkr:!1},this.rules[10]={name:"version",lower:"version",index:10,isBkr:!1},this.rules[11]={name:"nonce",lower:"nonce",index:11,isBkr:!1},this.rules[12]={name:"issued-at",lower:"issued-at",index:12,isBkr:!1},this.rules[13]={name:"expiration-time",lower:"expiration-time",index:13,isBkr:!1},this.rules[14]={name:"not-before",lower:"not-before",index:14,isBkr:!1},this.rules[15]={name:"request-id",lower:"request-id",index:15,isBkr:!1},this.rules[16]={name:"chain-id",lower:"chain-id",index:16,isBkr:!1},this.rules[17]={name:"resources",lower:"resources",index:17,isBkr:!1},this.rules[18]={name:"resource",lower:"resource",index:18,isBkr:!1},this.rules[19]={name:"URI",lower:"uri",index:19,isBkr:!1},this.rules[20]={name:"hier-part",lower:"hier-part",index:20,isBkr:!1},this.rules[21]={name:"scheme",lower:"scheme",index:21,isBkr:!1},this.rules[22]={name:"authority",lower:"authority",index:22,isBkr:!1},this.rules[23]={name:"path-abempty",lower:"path-abempty",index:23,isBkr:!1},this.rules[24]={name:"path-absolute",lower:"path-absolute",index:24,isBkr:!1},this.rules[25]={name:"path-rootless",lower:"path-rootless",index:25,isBkr:!1},this.rules[26]={name:"path-empty",lower:"path-empty",index:26,isBkr:!1},this.rules[27]={name:"userinfo-at",lower:"userinfo-at",index:27,isBkr:!1},this.rules[28]={name:"userinfo",lower:"userinfo",index:28,isBkr:!1},this.rules[29]={name:"host",lower:"host",index:29,isBkr:!1},this.rules[30]={name:"IP-literal",lower:"ip-literal",index:30,isBkr:!1},this.rules[31]={name:"IPvFuture",lower:"ipvfuture",index:31,isBkr:!1},this.rules[32]={name:"IPv6address",lower:"ipv6address",index:32,isBkr:!1},this.rules[33]={name:"nodcolon",lower:"nodcolon",index:33,isBkr:!1},this.rules[34]={name:"dcolon",lower:"dcolon",index:34,isBkr:!1},this.rules[35]={name:"h16",lower:"h16",index:35,isBkr:!1},this.rules[36]={name:"h16c",lower:"h16c",index:36,isBkr:!1},this.rules[37]={name:"h16n",lower:"h16n",index:37,isBkr:!1},this.rules[38]={name:"h16cn",lower:"h16cn",index:38,isBkr:!1},this.rules[39]={name:"IPv4address",lower:"ipv4address",index:39,isBkr:!1},this.rules[40]={name:"dec-octet",lower:"dec-octet",index:40,isBkr:!1},this.rules[41]={name:"dec-digit",lower:"dec-digit",index:41,isBkr:!1},this.rules[42]={name:"reg-name",lower:"reg-name",index:42,isBkr:!1},this.rules[43]={name:"reg-name-char",lower:"reg-name-char",index:43,isBkr:!1},this.rules[44]={name:"port",lower:"port",index:44,isBkr:!1},this.rules[45]={name:"query",lower:"query",index:45,isBkr:!1},this.rules[46]={name:"fragment",lower:"fragment",index:46,isBkr:!1},this.rules[47]={name:"URI-r",lower:"uri-r",index:47,isBkr:!1},this.rules[48]={name:"hier-part-r",lower:"hier-part-r",index:48,isBkr:!1},this.rules[49]={name:"scheme-r",lower:"scheme-r",index:49,isBkr:!1},this.rules[50]={name:"query-r",lower:"query-r",index:50,isBkr:!1},this.rules[51]={name:"fragment-r",lower:"fragment-r",index:51,isBkr:!1},this.rules[52]={name:"authority-d",lower:"authority-d",index:52,isBkr:!1},this.rules[53]={name:"userinfo-d",lower:"userinfo-d",index:53,isBkr:!1},this.rules[54]={name:"host-d",lower:"host-d",index:54,isBkr:!1},this.rules[55]={name:"port-d",lower:"port-d",index:55,isBkr:!1},this.rules[56]={name:"path-abempty-r",lower:"path-abempty-r",index:56,isBkr:!1},this.rules[57]={name:"path-absolute-r",lower:"path-absolute-r",index:57,isBkr:!1},this.rules[58]={name:"path-rootless-r",lower:"path-rootless-r",index:58,isBkr:!1},this.rules[59]={name:"path-empty-r",lower:"path-empty-r",index:59,isBkr:!1},this.rules[60]={name:"segment",lower:"segment",index:60,isBkr:!1},this.rules[61]={name:"segment-nz",lower:"segment-nz",index:61,isBkr:!1},this.rules[62]={name:"pchar",lower:"pchar",index:62,isBkr:!1},this.rules[63]={name:"pct-encoded",lower:"pct-encoded",index:63,isBkr:!1},this.rules[64]={name:"date-fullyear",lower:"date-fullyear",index:64,isBkr:!1},this.rules[65]={name:"date-month",lower:"date-month",index:65,isBkr:!1},this.rules[66]={name:"date-mday",lower:"date-mday",index:66,isBkr:!1},this.rules[67]={name:"time-hour",lower:"time-hour",index:67,isBkr:!1},this.rules[68]={name:"time-minute",lower:"time-minute",index:68,isBkr:!1},this.rules[69]={name:"time-second",lower:"time-second",index:69,isBkr:!1},this.rules[70]={name:"time-secfrac",lower:"time-secfrac",index:70,isBkr:!1},this.rules[71]={name:"time-numoffset",lower:"time-numoffset",index:71,isBkr:!1},this.rules[72]={name:"time-offset",lower:"time-offset",index:72,isBkr:!1},this.rules[73]={name:"partial-time",lower:"partial-time",index:73,isBkr:!1},this.rules[74]={name:"full-date",lower:"full-date",index:74,isBkr:!1},this.rules[75]={name:"full-time",lower:"full-time",index:75,isBkr:!1},this.rules[76]={name:"date-time",lower:"date-time",index:76,isBkr:!1},this.rules[77]={name:"ALPHA",lower:"alpha",index:77,isBkr:!1},this.rules[78]={name:"LF",lower:"lf",index:78,isBkr:!1},this.rules[79]={name:"DIGIT",lower:"digit",index:79,isBkr:!1},this.rules[80]={name:"HEXDIG",lower:"hexdig",index:80,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,3,4,5,6,7,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,36,41,46]},this.rules[0].opcodes[1]={type:4,index:5},this.rules[0].opcodes[2]={type:4,index:6},this.rules[0].opcodes[3]={type:6,string:[32,119,97,110,116,115,32,121,111,117,32,116,111,32,115,105,103,110,32,105,110,32,119,105,116,104,32,121,111,117,114,32,69,116,104,101,114,101,117,109,32,97,99,99,111,117,110,116,58]},this.rules[0].opcodes[4]={type:4,index:78},this.rules[0].opcodes[5]={type:4,index:7},this.rules[0].opcodes[6]={type:4,index:78},this.rules[0].opcodes[7]={type:1,children:[8,13,14]},this.rules[0].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[0].opcodes[9]={type:4,index:78},this.rules[0].opcodes[10]={type:4,index:8},this.rules[0].opcodes[11]={type:4,index:78},this.rules[0].opcodes[12]={type:4,index:78},this.rules[0].opcodes[13]={type:4,index:9},this.rules[0].opcodes[14]={type:2,children:[15,16]},this.rules[0].opcodes[15]={type:4,index:78},this.rules[0].opcodes[16]={type:4,index:78},this.rules[0].opcodes[17]={type:6,string:[85,82,73,58,32]},this.rules[0].opcodes[18]={type:4,index:19},this.rules[0].opcodes[19]={type:4,index:78},this.rules[0].opcodes[20]={type:6,string:[86,101,114,115,105,111,110,58,32]},this.rules[0].opcodes[21]={type:4,index:10},this.rules[0].opcodes[22]={type:4,index:78},this.rules[0].opcodes[23]={type:6,string:[67,104,97,105,110,32,73,68,58,32]},this.rules[0].opcodes[24]={type:4,index:16},this.rules[0].opcodes[25]={type:4,index:78},this.rules[0].opcodes[26]={type:6,string:[78,111,110,99,101,58,32]},this.rules[0].opcodes[27]={type:4,index:11},this.rules[0].opcodes[28]={type:4,index:78},this.rules[0].opcodes[29]={type:6,string:[73,115,115,117,101,100,32,65,116,58,32]},this.rules[0].opcodes[30]={type:4,index:12},this.rules[0].opcodes[31]={type:3,min:0,max:1},this.rules[0].opcodes[32]={type:2,children:[33,34,35]},this.rules[0].opcodes[33]={type:4,index:78},this.rules[0].opcodes[34]={type:4,index:1},this.rules[0].opcodes[35]={type:4,index:13},this.rules[0].opcodes[36]={type:3,min:0,max:1},this.rules[0].opcodes[37]={type:2,children:[38,39,40]},this.rules[0].opcodes[38]={type:4,index:78},this.rules[0].opcodes[39]={type:4,index:2},this.rules[0].opcodes[40]={type:4,index:14},this.rules[0].opcodes[41]={type:3,min:0,max:1},this.rules[0].opcodes[42]={type:2,children:[43,44,45]},this.rules[0].opcodes[43]={type:4,index:78},this.rules[0].opcodes[44]={type:4,index:3},this.rules[0].opcodes[45]={type:4,index:15},this.rules[0].opcodes[46]={type:3,min:0,max:1},this.rules[0].opcodes[47]={type:2,children:[48,49,50]},this.rules[0].opcodes[48]={type:4,index:78},this.rules[0].opcodes[49]={type:4,index:4},this.rules[0].opcodes[50]={type:4,index:17},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:6,string:[69,120,112,105,114,97,116,105,111,110,32,84,105,109,101,58,32]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:6,string:[78,111,116,32,66,101,102,111,114,101,58,32]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:6,string:[82,101,113,117,101,115,116,32,73,68,58,32]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:6,string:[82,101,115,111,117,114,99,101,115,58]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:0,max:1},this.rules[5].opcodes[1]={type:2,children:[2,3,9]},this.rules[5].opcodes[2]={type:4,index:77},this.rules[5].opcodes[3]={type:3,min:0,max:1/0},this.rules[5].opcodes[4]={type:1,children:[5,6,7,8]},this.rules[5].opcodes[5]={type:4,index:77},this.rules[5].opcodes[6]={type:4,index:79},this.rules[5].opcodes[7]={type:6,string:[43]},this.rules[5].opcodes[8]={type:5,min:45,max:46},this.rules[5].opcodes[9]={type:7,string:[58,47,47]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:52},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2]},this.rules[7].opcodes[1]={type:7,string:[48,120]},this.rules[7].opcodes[2]={type:3,min:40,max:40},this.rules[7].opcodes[3]={type:4,index:80},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:1/0},this.rules[8].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[8].opcodes[2]={type:5,min:97,max:122},this.rules[8].opcodes[3]={type:5,min:65,max:90},this.rules[8].opcodes[4]={type:5,min:48,max:57},this.rules[8].opcodes[5]={type:5,min:32,max:33},this.rules[8].opcodes[6]={type:5,min:35,max:36},this.rules[8].opcodes[7]={type:5,min:38,max:59},this.rules[8].opcodes[8]={type:6,string:[61]},this.rules[8].opcodes[9]={type:5,min:63,max:64},this.rules[8].opcodes[10]={type:6,string:[91]},this.rules[8].opcodes[11]={type:6,string:[93]},this.rules[8].opcodes[12]={type:6,string:[95]},this.rules[8].opcodes[13]={type:6,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2,3]},this.rules[9].opcodes[1]={type:4,index:78},this.rules[9].opcodes[2]={type:4,index:78},this.rules[9].opcodes[3]={type:4,index:78},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:7,string:[49]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:3,min:8,max:1/0},this.rules[11].opcodes[1]={type:1,children:[2,3]},this.rules[11].opcodes[2]={type:4,index:77},this.rules[11].opcodes[3]={type:4,index:79},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:4,index:76},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:4,index:76},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:4,index:76},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:0,max:1/0},this.rules[15].opcodes[1]={type:4,index:62},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:3,min:1,max:1/0},this.rules[16].opcodes[1]={type:4,index:79},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:3,min:0,max:1/0},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:78},this.rules[17].opcodes[3]={type:4,index:18},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:2,children:[1,2]},this.rules[18].opcodes[1]={type:7,string:[45,32]},this.rules[18].opcodes[2]={type:4,index:47},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:2,children:[1,2,3,4,8]},this.rules[19].opcodes[1]={type:4,index:21},this.rules[19].opcodes[2]={type:7,string:[58]},this.rules[19].opcodes[3]={type:4,index:20},this.rules[19].opcodes[4]={type:3,min:0,max:1},this.rules[19].opcodes[5]={type:2,children:[6,7]},this.rules[19].opcodes[6]={type:7,string:[63]},this.rules[19].opcodes[7]={type:4,index:45},this.rules[19].opcodes[8]={type:3,min:0,max:1},this.rules[19].opcodes[9]={type:2,children:[10,11]},this.rules[19].opcodes[10]={type:7,string:[35]},this.rules[19].opcodes[11]={type:4,index:46},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,5,6,7]},this.rules[20].opcodes[1]={type:2,children:[2,3,4]},this.rules[20].opcodes[2]={type:7,string:[47,47]},this.rules[20].opcodes[3]={type:4,index:22},this.rules[20].opcodes[4]={type:4,index:23},this.rules[20].opcodes[5]={type:4,index:24},this.rules[20].opcodes[6]={type:4,index:25},this.rules[20].opcodes[7]={type:4,index:26},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2]},this.rules[21].opcodes[1]={type:4,index:77},this.rules[21].opcodes[2]={type:3,min:0,max:1/0},this.rules[21].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[21].opcodes[4]={type:4,index:77},this.rules[21].opcodes[5]={type:4,index:79},this.rules[21].opcodes[6]={type:6,string:[43]},this.rules[21].opcodes[7]={type:5,min:45,max:46},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,3,4]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:4,index:27},this.rules[22].opcodes[3]={type:4,index:29},this.rules[22].opcodes[4]={type:3,min:0,max:1},this.rules[22].opcodes[5]={type:2,children:[6,7]},this.rules[22].opcodes[6]={type:7,string:[58]},this.rules[22].opcodes[7]={type:4,index:44},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:3,min:0,max:1/0},this.rules[23].opcodes[1]={type:2,children:[2,3]},this.rules[23].opcodes[2]={type:7,string:[47]},this.rules[23].opcodes[3]={type:4,index:60},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:7,string:[47]},this.rules[24].opcodes[2]={type:3,min:0,max:1},this.rules[24].opcodes[3]={type:2,children:[4,5]},this.rules[24].opcodes[4]={type:4,index:61},this.rules[24].opcodes[5]={type:3,min:0,max:1/0},this.rules[24].opcodes[6]={type:2,children:[7,8]},this.rules[24].opcodes[7]={type:7,string:[47]},this.rules[24].opcodes[8]={type:4,index:60},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:61},this.rules[25].opcodes[2]={type:3,min:0,max:1/0},this.rules[25].opcodes[3]={type:2,children:[4,5]},this.rules[25].opcodes[4]={type:7,string:[47]},this.rules[25].opcodes[5]={type:4,index:60},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:7,string:[]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:6,string:[64]},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:3,min:0,max:1/0},this.rules[28].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12]},this.rules[28].opcodes[2]={type:5,min:97,max:122},this.rules[28].opcodes[3]={type:5,min:65,max:90},this.rules[28].opcodes[4]={type:5,min:48,max:57},this.rules[28].opcodes[5]={type:4,index:63},this.rules[28].opcodes[6]={type:6,string:[33]},this.rules[28].opcodes[7]={type:6,string:[36]},this.rules[28].opcodes[8]={type:5,min:38,max:46},this.rules[28].opcodes[9]={type:5,min:58,max:59},this.rules[28].opcodes[10]={type:6,string:[61]},this.rules[28].opcodes[11]={type:6,string:[95]},this.rules[28].opcodes[12]={type:6,string:[126]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:1,children:[1,2,6]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:2,children:[3,4]},this.rules[29].opcodes[3]={type:4,index:39},this.rules[29].opcodes[4]={type:13},this.rules[29].opcodes[5]={type:4,index:43},this.rules[29].opcodes[6]={type:4,index:42},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,5]},this.rules[30].opcodes[1]={type:7,string:[91]},this.rules[30].opcodes[2]={type:1,children:[3,4]},this.rules[30].opcodes[3]={type:4,index:32},this.rules[30].opcodes[4]={type:4,index:31},this.rules[30].opcodes[5]={type:7,string:[93]},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,2,4,5]},this.rules[31].opcodes[1]={type:7,string:[118]},this.rules[31].opcodes[2]={type:3,min:1,max:1/0},this.rules[31].opcodes[3]={type:4,index:80},this.rules[31].opcodes[4]={type:7,string:[46]},this.rules[31].opcodes[5]={type:3,min:1,max:1/0},this.rules[31].opcodes[6]={type:1,children:[7,8,9,10,11,12,13,14,15,16]},this.rules[31].opcodes[7]={type:5,min:97,max:122},this.rules[31].opcodes[8]={type:5,min:65,max:90},this.rules[31].opcodes[9]={type:5,min:48,max:57},this.rules[31].opcodes[10]={type:6,string:[33]},this.rules[31].opcodes[11]={type:6,string:[36]},this.rules[31].opcodes[12]={type:5,min:38,max:46},this.rules[31].opcodes[13]={type:5,min:58,max:59},this.rules[31].opcodes[14]={type:6,string:[61]},this.rules[31].opcodes[15]={type:6,string:[95]},this.rules[31].opcodes[16]={type:6,string:[126]},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:1,children:[1,2]},this.rules[32].opcodes[1]={type:4,index:33},this.rules[32].opcodes[2]={type:4,index:34},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:2,children:[2,3]},this.rules[33].opcodes[2]={type:4,index:37},this.rules[33].opcodes[3]={type:3,min:0,max:1/0},this.rules[33].opcodes[4]={type:4,index:38},this.rules[33].opcodes[5]={type:3,min:0,max:1},this.rules[33].opcodes[6]={type:2,children:[7,8]},this.rules[33].opcodes[7]={type:6,string:[58]},this.rules[33].opcodes[8]={type:4,index:39},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:2,children:[1,6,7]},this.rules[34].opcodes[1]={type:3,min:0,max:1},this.rules[34].opcodes[2]={type:2,children:[3,4]},this.rules[34].opcodes[3]={type:4,index:35},this.rules[34].opcodes[4]={type:3,min:0,max:1/0},this.rules[34].opcodes[5]={type:4,index:36},this.rules[34].opcodes[6]={type:6,string:[58,58]},this.rules[34].opcodes[7]={type:1,children:[8,17]},this.rules[34].opcodes[8]={type:2,children:[9,13]},this.rules[34].opcodes[9]={type:2,children:[10,11]},this.rules[34].opcodes[10]={type:4,index:37},this.rules[34].opcodes[11]={type:3,min:0,max:1/0},this.rules[34].opcodes[12]={type:4,index:38},this.rules[34].opcodes[13]={type:3,min:0,max:1},this.rules[34].opcodes[14]={type:2,children:[15,16]},this.rules[34].opcodes[15]={type:6,string:[58]},this.rules[34].opcodes[16]={type:4,index:39},this.rules[34].opcodes[17]={type:3,min:0,max:1},this.rules[34].opcodes[18]={type:4,index:39},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:3,min:1,max:4},this.rules[35].opcodes[1]={type:4,index:80},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:2,children:[1,2]},this.rules[36].opcodes[1]={type:6,string:[58]},this.rules[36].opcodes[2]={type:3,min:1,max:4},this.rules[36].opcodes[3]={type:4,index:80},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,3]},this.rules[37].opcodes[1]={type:3,min:1,max:4},this.rules[37].opcodes[2]={type:4,index:80},this.rules[37].opcodes[3]={type:13},this.rules[37].opcodes[4]={type:6,string:[46]},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2,4]},this.rules[38].opcodes[1]={type:6,string:[58]},this.rules[38].opcodes[2]={type:3,min:1,max:4},this.rules[38].opcodes[3]={type:4,index:80},this.rules[38].opcodes[4]={type:13},this.rules[38].opcodes[5]={type:6,string:[46]},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[39].opcodes[1]={type:4,index:40},this.rules[39].opcodes[2]={type:7,string:[46]},this.rules[39].opcodes[3]={type:4,index:40},this.rules[39].opcodes[4]={type:7,string:[46]},this.rules[39].opcodes[5]={type:4,index:40},this.rules[39].opcodes[6]={type:7,string:[46]},this.rules[39].opcodes[7]={type:4,index:40},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:3,min:0,max:3},this.rules[40].opcodes[1]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:5,min:48,max:57},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:3,min:0,max:1/0},this.rules[42].opcodes[1]={type:4,index:43},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[43].opcodes[1]={type:5,min:97,max:122},this.rules[43].opcodes[2]={type:5,min:65,max:90},this.rules[43].opcodes[3]={type:5,min:48,max:57},this.rules[43].opcodes[4]={type:4,index:63},this.rules[43].opcodes[5]={type:6,string:[33]},this.rules[43].opcodes[6]={type:6,string:[36]},this.rules[43].opcodes[7]={type:5,min:38,max:46},this.rules[43].opcodes[8]={type:6,string:[59]},this.rules[43].opcodes[9]={type:6,string:[61]},this.rules[43].opcodes[10]={type:6,string:[95]},this.rules[43].opcodes[11]={type:6,string:[126]},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:4,index:79},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:3,min:0,max:1/0},this.rules[45].opcodes[1]={type:1,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:62},this.rules[45].opcodes[3]={type:6,string:[47]},this.rules[45].opcodes[4]={type:6,string:[63]},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:3,min:0,max:1/0},this.rules[46].opcodes[1]={type:1,children:[2,3,4]},this.rules[46].opcodes[2]={type:4,index:62},this.rules[46].opcodes[3]={type:6,string:[47]},this.rules[46].opcodes[4]={type:6,string:[63]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,2,3,4,8]},this.rules[47].opcodes[1]={type:4,index:49},this.rules[47].opcodes[2]={type:7,string:[58]},this.rules[47].opcodes[3]={type:4,index:48},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:2,children:[6,7]},this.rules[47].opcodes[6]={type:7,string:[63]},this.rules[47].opcodes[7]={type:4,index:50},this.rules[47].opcodes[8]={type:3,min:0,max:1},this.rules[47].opcodes[9]={type:2,children:[10,11]},this.rules[47].opcodes[10]={type:7,string:[35]},this.rules[47].opcodes[11]={type:4,index:51},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:1,children:[1,5,6,7]},this.rules[48].opcodes[1]={type:2,children:[2,3,4]},this.rules[48].opcodes[2]={type:7,string:[47,47]},this.rules[48].opcodes[3]={type:4,index:52},this.rules[48].opcodes[4]={type:4,index:56},this.rules[48].opcodes[5]={type:4,index:57},this.rules[48].opcodes[6]={type:4,index:58},this.rules[48].opcodes[7]={type:4,index:59},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2]},this.rules[49].opcodes[1]={type:4,index:77},this.rules[49].opcodes[2]={type:3,min:0,max:1/0},this.rules[49].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[49].opcodes[4]={type:4,index:77},this.rules[49].opcodes[5]={type:4,index:79},this.rules[49].opcodes[6]={type:6,string:[43]},this.rules[49].opcodes[7]={type:5,min:45,max:46},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:3,min:0,max:1/0},this.rules[50].opcodes[1]={type:1,children:[2,3,4]},this.rules[50].opcodes[2]={type:4,index:62},this.rules[50].opcodes[3]={type:6,string:[47]},this.rules[50].opcodes[4]={type:6,string:[63]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:3,min:0,max:1/0},this.rules[51].opcodes[1]={type:1,children:[2,3,4]},this.rules[51].opcodes[2]={type:4,index:62},this.rules[51].opcodes[3]={type:6,string:[47]},this.rules[51].opcodes[4]={type:6,string:[63]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:2,children:[1,5,6]},this.rules[52].opcodes[1]={type:3,min:0,max:1},this.rules[52].opcodes[2]={type:2,children:[3,4]},this.rules[52].opcodes[3]={type:4,index:53},this.rules[52].opcodes[4]={type:6,string:[64]},this.rules[52].opcodes[5]={type:4,index:54},this.rules[52].opcodes[6]={type:3,min:0,max:1},this.rules[52].opcodes[7]={type:2,children:[8,9]},this.rules[52].opcodes[8]={type:7,string:[58]},this.rules[52].opcodes[9]={type:4,index:55},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:3,min:0,max:1/0},this.rules[53].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12]},this.rules[53].opcodes[2]={type:5,min:97,max:122},this.rules[53].opcodes[3]={type:5,min:65,max:90},this.rules[53].opcodes[4]={type:5,min:48,max:57},this.rules[53].opcodes[5]={type:4,index:63},this.rules[53].opcodes[6]={type:6,string:[33]},this.rules[53].opcodes[7]={type:6,string:[36]},this.rules[53].opcodes[8]={type:5,min:38,max:46},this.rules[53].opcodes[9]={type:5,min:58,max:59},this.rules[53].opcodes[10]={type:6,string:[61]},this.rules[53].opcodes[11]={type:6,string:[95]},this.rules[53].opcodes[12]={type:6,string:[126]},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:1,children:[1,2,6]},this.rules[54].opcodes[1]={type:4,index:30},this.rules[54].opcodes[2]={type:2,children:[3,4]},this.rules[54].opcodes[3]={type:4,index:39},this.rules[54].opcodes[4]={type:13},this.rules[54].opcodes[5]={type:4,index:43},this.rules[54].opcodes[6]={type:4,index:42},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:3,min:0,max:1/0},this.rules[55].opcodes[1]={type:4,index:79},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1/0},this.rules[56].opcodes[1]={type:2,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[47]},this.rules[56].opcodes[3]={type:4,index:60},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2]},this.rules[57].opcodes[1]={type:7,string:[47]},this.rules[57].opcodes[2]={type:3,min:0,max:1},this.rules[57].opcodes[3]={type:2,children:[4,5]},this.rules[57].opcodes[4]={type:4,index:61},this.rules[57].opcodes[5]={type:3,min:0,max:1/0},this.rules[57].opcodes[6]={type:2,children:[7,8]},this.rules[57].opcodes[7]={type:7,string:[47]},this.rules[57].opcodes[8]={type:4,index:60},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:2,children:[1,2]},this.rules[58].opcodes[1]={type:4,index:61},this.rules[58].opcodes[2]={type:3,min:0,max:1/0},this.rules[58].opcodes[3]={type:2,children:[4,5]},this.rules[58].opcodes[4]={type:7,string:[47]},this.rules[58].opcodes[5]={type:4,index:60},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:7,string:[]},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:3,min:0,max:1/0},this.rules[60].opcodes[1]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:3,min:1,max:1/0},this.rules[61].opcodes[1]={type:4,index:62},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[62].opcodes[1]={type:5,min:97,max:122},this.rules[62].opcodes[2]={type:5,min:65,max:90},this.rules[62].opcodes[3]={type:5,min:48,max:57},this.rules[62].opcodes[4]={type:4,index:63},this.rules[62].opcodes[5]={type:6,string:[33]},this.rules[62].opcodes[6]={type:6,string:[36]},this.rules[62].opcodes[7]={type:5,min:38,max:46},this.rules[62].opcodes[8]={type:5,min:58,max:59},this.rules[62].opcodes[9]={type:6,string:[61]},this.rules[62].opcodes[10]={type:6,string:[64]},this.rules[62].opcodes[11]={type:6,string:[95]},this.rules[62].opcodes[12]={type:6,string:[126]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:2,children:[1,2,3]},this.rules[63].opcodes[1]={type:6,string:[37]},this.rules[63].opcodes[2]={type:4,index:80},this.rules[63].opcodes[3]={type:4,index:80},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:4,max:4},this.rules[64].opcodes[1]={type:4,index:79},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:3,min:2,max:2},this.rules[65].opcodes[1]={type:4,index:79},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:3,min:2,max:2},this.rules[66].opcodes[1]={type:4,index:79},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:2,max:2},this.rules[67].opcodes[1]={type:4,index:79},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:3,min:2,max:2},this.rules[68].opcodes[1]={type:4,index:79},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:3,min:2,max:2},this.rules[69].opcodes[1]={type:4,index:79},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:2,children:[1,2]},this.rules[70].opcodes[1]={type:7,string:[46]},this.rules[70].opcodes[2]={type:3,min:1,max:1/0},this.rules[70].opcodes[3]={type:4,index:79},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,4,5,6]},this.rules[71].opcodes[1]={type:1,children:[2,3]},this.rules[71].opcodes[2]={type:7,string:[43]},this.rules[71].opcodes[3]={type:7,string:[45]},this.rules[71].opcodes[4]={type:4,index:67},this.rules[71].opcodes[5]={type:7,string:[58]},this.rules[71].opcodes[6]={type:4,index:68},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:7,string:[122]},this.rules[72].opcodes[2]={type:4,index:71},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:2,children:[1,2,3,4,5,6]},this.rules[73].opcodes[1]={type:4,index:67},this.rules[73].opcodes[2]={type:7,string:[58]},this.rules[73].opcodes[3]={type:4,index:68},this.rules[73].opcodes[4]={type:7,string:[58]},this.rules[73].opcodes[5]={type:4,index:69},this.rules[73].opcodes[6]={type:3,min:0,max:1},this.rules[73].opcodes[7]={type:4,index:70},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[74].opcodes[1]={type:4,index:64},this.rules[74].opcodes[2]={type:7,string:[45]},this.rules[74].opcodes[3]={type:4,index:65},this.rules[74].opcodes[4]={type:7,string:[45]},this.rules[74].opcodes[5]={type:4,index:66},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2]},this.rules[75].opcodes[1]={type:4,index:73},this.rules[75].opcodes[2]={type:4,index:72},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:2,children:[1,2,3]},this.rules[76].opcodes[1]={type:4,index:74},this.rules[76].opcodes[2]={type:7,string:[116]},this.rules[76].opcodes[3]={type:4,index:75},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:5,min:65,max:90},this.rules[77].opcodes[2]={type:5,min:97,max:122},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:6,string:[10]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:5,min:48,max:57},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:1,children:[1,2,3]},this.rules[80].opcodes[1]={type:5,min:48,max:57},this.rules[80].opcodes[2]={type:5,min:65,max:70},this.rules[80].opcodes[3]={type:5,min:97,max:102},this.toString=function(){let t="";return t+=`; LDT 05/06/2024
8
8
  `,t+=`; modified in several significant ways
9
9
  `,t+=`; 1) Literal strings are replaced with numbers and ranges (%d32 & %d32-126, etc.) when possible.
10
10
  `,t+=`; TRB and especially TRG operators are much more efficient than TLS operators.
@@ -565,7 +565,7 @@ table.apg-attrs a:hover {
565
565
  *
566
566
  * @author Feross Aboukhadijeh <https://feross.org>
567
567
  * @license MIT
568
- */(function(t){const e=Lv,r=lk,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s;const{Uint8Array:i,ArrayBuffer:o,SharedArrayBuffer:a}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const T=new i(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,i.prototype),Object.setPrototypeOf(T,k),T.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(T){if(T>s)throw new RangeError('The value "'+T+'" is invalid for option "size"');const k=new i(T);return Object.setPrototypeOf(k,u.prototype),k}function u(T,k,R){if(typeof T=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(T)}return d(T,k,R)}u.poolSize=8192;function d(T,k,R){if(typeof T=="string")return m(T,k);if(o.isView(T))return v(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(se(T,o)||T&&se(T.buffer,o)||typeof a<"u"&&(se(T,a)||T&&se(T.buffer,a)))return A(T,k,R);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=T.valueOf&&T.valueOf();if(H!=null&&H!==T)return u.from(H,k,R);const ce=E(T);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return u.from(T[Symbol.toPrimitive]("string"),k,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}u.from=function(T,k,R){return d(T,k,R)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function h(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function p(T,k,R){return h(T),T<=0?l(T):k!==void 0?typeof R=="string"?l(T).fill(k,R):l(T).fill(k):l(T)}u.alloc=function(T,k,R){return p(T,k,R)};function g(T){return h(T),l(T<0?0:w(T)|0)}u.allocUnsafe=function(T){return g(T)},u.allocUnsafeSlow=function(T){return g(T)};function m(T,k){if((typeof k!="string"||k==="")&&(k="utf8"),!u.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const R=B(T,k)|0;let H=l(R);const ce=H.write(T,k);return ce!==R&&(H=H.slice(0,ce)),H}function y(T){const k=T.length<0?0:w(T.length)|0,R=l(k);for(let H=0;H<k;H+=1)R[H]=T[H]&255;return R}function v(T){if(se(T,i)){const k=new i(T);return A(k.buffer,k.byteOffset,k.byteLength)}return y(T)}function A(T,k,R){if(k<0||T.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<k+(R||0))throw new RangeError('"length" is outside of buffer bounds');let H;return k===void 0&&R===void 0?H=new i(T):R===void 0?H=new i(T,k):H=new i(T,k,R),Object.setPrototypeOf(H,u.prototype),H}function E(T){if(u.isBuffer(T)){const k=w(T.length)|0,R=l(k);return R.length===0||T.copy(R,0,0,k),R}if(T.length!==void 0)return typeof T.length!="number"||ae(T.length)?l(0):y(T);if(T.type==="Buffer"&&Array.isArray(T.data))return y(T.data)}function w(T){if(T>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return T|0}function C(T){return+T!=T&&(T=0),u.alloc(+T)}u.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==u.prototype},u.compare=function(k,R){if(se(k,i)&&(k=u.from(k,k.offset,k.byteLength)),se(R,i)&&(R=u.from(R,R.offset,R.byteLength)),!u.isBuffer(k)||!u.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===R)return 0;let H=k.length,ce=R.length;for(let he=0,ke=Math.min(H,ce);he<ke;++he)if(k[he]!==R[he]){H=k[he],ce=R[he];break}return H<ce?-1:ce<H?1:0},u.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(k,R){if(!Array.isArray(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return u.alloc(0);let H;if(R===void 0)for(R=0,H=0;H<k.length;++H)R+=k[H].length;const ce=u.allocUnsafe(R);let he=0;for(H=0;H<k.length;++H){let ke=k[H];if(se(ke,i))he+ke.length>ce.length?(u.isBuffer(ke)||(ke=u.from(ke)),ke.copy(ce,he)):i.prototype.set.call(ce,ke,he);else if(u.isBuffer(ke))ke.copy(ce,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=ke.length}return ce};function B(T,k){if(u.isBuffer(T))return T.length;if(o.isView(T)||se(T,o))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const R=T.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&R===0)return 0;let ce=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return Ce(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return Pe(T).length;default:if(ce)return H?-1:Ce(T).length;k=(""+k).toLowerCase(),ce=!0}}u.byteLength=B;function F(T,k,R){let H=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,k>>>=0,R<=k))return"";for(T||(T="utf8");;)switch(T){case"hex":return te(this,k,R);case"utf8":case"utf-8":return Z(this,k,R);case"ascii":return Y(this,k,R);case"latin1":case"binary":return q(this,k,R);case"base64":return j(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,k,R);default:if(H)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),H=!0}}u.prototype._isBuffer=!0;function I(T,k,R){const H=T[k];T[k]=T[R],T[R]=H}u.prototype.swap16=function(){const k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<k;R+=2)I(this,R,R+1);return this},u.prototype.swap32=function(){const k=this.length;if(k%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<k;R+=4)I(this,R,R+3),I(this,R+1,R+2);return this},u.prototype.swap64=function(){const k=this.length;if(k%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<k;R+=8)I(this,R,R+7),I(this,R+1,R+6),I(this,R+2,R+5),I(this,R+3,R+4);return this},u.prototype.toString=function(){const k=this.length;return k===0?"":arguments.length===0?Z(this,0,k):F.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(k){if(!u.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k?!0:u.compare(this,k)===0},u.prototype.inspect=function(){let k="";const R=t.INSPECT_MAX_BYTES;return k=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(k+=" ... "),"<Buffer "+k+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(k,R,H,ce,he){if(se(k,i)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(R===void 0&&(R=0),H===void 0&&(H=k?k.length:0),ce===void 0&&(ce=0),he===void 0&&(he=this.length),R<0||H>k.length||ce<0||he>this.length)throw new RangeError("out of range index");if(ce>=he&&R>=H)return 0;if(ce>=he)return-1;if(R>=H)return 1;if(R>>>=0,H>>>=0,ce>>>=0,he>>>=0,this===k)return 0;let ke=he-ce,xe=H-R;const ze=Math.min(ke,xe),Lt=this.slice(ce,he),Ct=k.slice(R,H);for(let vt=0;vt<ze;++vt)if(Lt[vt]!==Ct[vt]){ke=Lt[vt],xe=Ct[vt];break}return ke<xe?-1:xe<ke?1:0};function L(T,k,R,H,ce){if(T.length===0)return-1;if(typeof R=="string"?(H=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,ae(R)&&(R=ce?0:T.length-1),R<0&&(R=T.length+R),R>=T.length){if(ce)return-1;R=T.length-1}else if(R<0)if(ce)R=0;else return-1;if(typeof k=="string"&&(k=u.from(k,H)),u.isBuffer(k))return k.length===0?-1:D(T,k,R,H,ce);if(typeof k=="number")return k=k&255,typeof i.prototype.indexOf=="function"?ce?i.prototype.indexOf.call(T,k,R):i.prototype.lastIndexOf.call(T,k,R):D(T,[k],R,H,ce);throw new TypeError("val must be string, number or Buffer")}function D(T,k,R,H,ce){let he=1,ke=T.length,xe=k.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(T.length<2||k.length<2)return-1;he=2,ke/=2,xe/=2,R/=2}function ze(Ct,vt){return he===1?Ct[vt]:Ct.readUInt16BE(vt*he)}let Lt;if(ce){let Ct=-1;for(Lt=R;Lt<ke;Lt++)if(ze(T,Lt)===ze(k,Ct===-1?0:Lt-Ct)){if(Ct===-1&&(Ct=Lt),Lt-Ct+1===xe)return Ct*he}else Ct!==-1&&(Lt-=Lt-Ct),Ct=-1}else for(R+xe>ke&&(R=ke-xe),Lt=R;Lt>=0;Lt--){let Ct=!0;for(let vt=0;vt<xe;vt++)if(ze(T,Lt+vt)!==ze(k,vt)){Ct=!1;break}if(Ct)return Lt}return-1}u.prototype.includes=function(k,R,H){return this.indexOf(k,R,H)!==-1},u.prototype.indexOf=function(k,R,H){return L(this,k,R,H,!0)},u.prototype.lastIndexOf=function(k,R,H){return L(this,k,R,H,!1)};function M(T,k,R,H){R=Number(R)||0;const ce=T.length-R;H?(H=Number(H),H>ce&&(H=ce)):H=ce;const he=k.length;H>he/2&&(H=he/2);let ke;for(ke=0;ke<H;++ke){const xe=parseInt(k.substr(ke*2,2),16);if(ae(xe))return ke;T[R+ke]=xe}return ke}function N(T,k,R,H){return Ve(Ce(k,T.length-R),T,R,H)}function P(T,k,R,H){return Ve(J(k),T,R,H)}function U(T,k,R,H){return Ve(Pe(k),T,R,H)}function O(T,k,R,H){return Ve(ge(k,T.length-R),T,R,H)}u.prototype.write=function(k,R,H,ce){if(R===void 0)ce="utf8",H=this.length,R=0;else if(H===void 0&&typeof R=="string")ce=R,H=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(H)?(H=H>>>0,ce===void 0&&(ce="utf8")):(ce=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const he=this.length-R;if((H===void 0||H>he)&&(H=he),k.length>0&&(H<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let ke=!1;for(;;)switch(ce){case"hex":return M(this,k,R,H);case"utf8":case"utf-8":return N(this,k,R,H);case"ascii":case"latin1":case"binary":return P(this,k,R,H);case"base64":return U(this,k,R,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,k,R,H);default:if(ke)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ke=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(T,k,R){return k===0&&R===T.length?e.fromByteArray(T):e.fromByteArray(T.slice(k,R))}function Z(T,k,R){R=Math.min(T.length,R);const H=[];let ce=k;for(;ce<R;){const he=T[ce];let ke=null,xe=he>239?4:he>223?3:he>191?2:1;if(ce+xe<=R){let ze,Lt,Ct,vt;switch(xe){case 1:he<128&&(ke=he);break;case 2:ze=T[ce+1],(ze&192)===128&&(vt=(he&31)<<6|ze&63,vt>127&&(ke=vt));break;case 3:ze=T[ce+1],Lt=T[ce+2],(ze&192)===128&&(Lt&192)===128&&(vt=(he&15)<<12|(ze&63)<<6|Lt&63,vt>2047&&(vt<55296||vt>57343)&&(ke=vt));break;case 4:ze=T[ce+1],Lt=T[ce+2],Ct=T[ce+3],(ze&192)===128&&(Lt&192)===128&&(Ct&192)===128&&(vt=(he&15)<<18|(ze&63)<<12|(Lt&63)<<6|Ct&63,vt>65535&&vt<1114112&&(ke=vt))}}ke===null?(ke=65533,xe=1):ke>65535&&(ke-=65536,H.push(ke>>>10&1023|55296),ke=56320|ke&1023),H.push(ke),ce+=xe}return $(H)}const K=4096;function $(T){const k=T.length;if(k<=K)return String.fromCharCode.apply(String,T);let R="",H=0;for(;H<k;)R+=String.fromCharCode.apply(String,T.slice(H,H+=K));return R}function Y(T,k,R){let H="";R=Math.min(T.length,R);for(let ce=k;ce<R;++ce)H+=String.fromCharCode(T[ce]&127);return H}function q(T,k,R){let H="";R=Math.min(T.length,R);for(let ce=k;ce<R;++ce)H+=String.fromCharCode(T[ce]);return H}function te(T,k,R){const H=T.length;(!k||k<0)&&(k=0),(!R||R<0||R>H)&&(R=H);let ce="";for(let he=k;he<R;++he)ce+=f[T[he]];return ce}function ie(T,k,R){const H=T.slice(k,R);let ce="";for(let he=0;he<H.length-1;he+=2)ce+=String.fromCharCode(H[he]+H[he+1]*256);return ce}u.prototype.slice=function(k,R){const H=this.length;k=~~k,R=R===void 0?H:~~R,k<0?(k+=H,k<0&&(k=0)):k>H&&(k=H),R<0?(R+=H,R<0&&(R=0)):R>H&&(R=H),R<k&&(R=k);const ce=this.subarray(k,R);return Object.setPrototypeOf(ce,u.prototype),ce};function ye(T,k,R){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+k>R)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=this[k],he=1,ke=0;for(;++ke<R&&(he*=256);)ce+=this[k+ke]*he;return ce},u.prototype.readUintBE=u.prototype.readUIntBE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=this[k+--R],he=1;for(;R>0&&(he*=256);)ce+=this[k+--R]*he;return ce},u.prototype.readUint8=u.prototype.readUInt8=function(k,R){return k=k>>>0,R||ye(k,1,this.length),this[k]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(k,R){return k=k>>>0,R||ye(k,2,this.length),this[k]|this[k+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(k,R){return k=k>>>0,R||ye(k,2,this.length),this[k]<<8|this[k+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},u.prototype.readBigUInt64LE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=R+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24,he=this[++k]+this[++k]*2**8+this[++k]*2**16+H*2**24;return BigInt(ce)+(BigInt(he)<<BigInt(32))}),u.prototype.readBigUInt64BE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=R*2**24+this[++k]*2**16+this[++k]*2**8+this[++k],he=this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+H;return(BigInt(ce)<<BigInt(32))+BigInt(he)}),u.prototype.readIntLE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=this[k],he=1,ke=0;for(;++ke<R&&(he*=256);)ce+=this[k+ke]*he;return he*=128,ce>=he&&(ce-=Math.pow(2,8*R)),ce},u.prototype.readIntBE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=R,he=1,ke=this[k+--ce];for(;ce>0&&(he*=256);)ke+=this[k+--ce]*he;return he*=128,ke>=he&&(ke-=Math.pow(2,8*R)),ke},u.prototype.readInt8=function(k,R){return k=k>>>0,R||ye(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},u.prototype.readInt16LE=function(k,R){k=k>>>0,R||ye(k,2,this.length);const H=this[k]|this[k+1]<<8;return H&32768?H|4294901760:H},u.prototype.readInt16BE=function(k,R){k=k>>>0,R||ye(k,2,this.length);const H=this[k+1]|this[k]<<8;return H&32768?H|4294901760:H},u.prototype.readInt32LE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},u.prototype.readInt32BE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},u.prototype.readBigInt64LE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=this[k+4]+this[k+5]*2**8+this[k+6]*2**16+(H<<24);return(BigInt(ce)<<BigInt(32))+BigInt(R+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24)}),u.prototype.readBigInt64BE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=(R<<24)+this[++k]*2**16+this[++k]*2**8+this[++k];return(BigInt(ce)<<BigInt(32))+BigInt(this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+H)}),u.prototype.readFloatLE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),r.read(this,k,!0,23,4)},u.prototype.readFloatBE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),r.read(this,k,!1,23,4)},u.prototype.readDoubleLE=function(k,R){return k=k>>>0,R||ye(k,8,this.length),r.read(this,k,!0,52,8)},u.prototype.readDoubleBE=function(k,R){return k=k>>>0,R||ye(k,8,this.length),r.read(this,k,!1,52,8)};function _e(T,k,R,H,ce,he){if(!u.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>ce||k<he)throw new RangeError('"value" argument is out of bounds');if(R+H>T.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(k,R,H,ce){if(k=+k,R=R>>>0,H=H>>>0,!ce){const xe=Math.pow(2,8*H)-1;_e(this,k,R,H,xe,0)}let he=1,ke=0;for(this[R]=k&255;++ke<H&&(he*=256);)this[R+ke]=k/he&255;return R+H},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(k,R,H,ce){if(k=+k,R=R>>>0,H=H>>>0,!ce){const xe=Math.pow(2,8*H)-1;_e(this,k,R,H,xe,0)}let he=H-1,ke=1;for(this[R+he]=k&255;--he>=0&&(ke*=256);)this[R+he]=k/ke&255;return R+H},u.prototype.writeUint8=u.prototype.writeUInt8=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,1,255,0),this[R]=k&255,R+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,65535,0),this[R]=k&255,this[R+1]=k>>>8,R+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=k&255,R+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=k&255,R+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=k&255,R+4};function Te(T,k,R,H,ce){x(k,H,ce,T,R,7);let he=Number(k&BigInt(4294967295));T[R++]=he,he=he>>8,T[R++]=he,he=he>>8,T[R++]=he,he=he>>8,T[R++]=he;let ke=Number(k>>BigInt(32)&BigInt(4294967295));return T[R++]=ke,ke=ke>>8,T[R++]=ke,ke=ke>>8,T[R++]=ke,ke=ke>>8,T[R++]=ke,R}function oe(T,k,R,H,ce){x(k,H,ce,T,R,7);let he=Number(k&BigInt(4294967295));T[R+7]=he,he=he>>8,T[R+6]=he,he=he>>8,T[R+5]=he,he=he>>8,T[R+4]=he;let ke=Number(k>>BigInt(32)&BigInt(4294967295));return T[R+3]=ke,ke=ke>>8,T[R+2]=ke,ke=ke>>8,T[R+1]=ke,ke=ke>>8,T[R]=ke,R+8}u.prototype.writeBigUInt64LE=b(function(k,R=0){return Te(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=b(function(k,R=0){return oe(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(k,R,H,ce){if(k=+k,R=R>>>0,!ce){const ze=Math.pow(2,8*H-1);_e(this,k,R,H,ze-1,-ze)}let he=0,ke=1,xe=0;for(this[R]=k&255;++he<H&&(ke*=256);)k<0&&xe===0&&this[R+he-1]!==0&&(xe=1),this[R+he]=(k/ke>>0)-xe&255;return R+H},u.prototype.writeIntBE=function(k,R,H,ce){if(k=+k,R=R>>>0,!ce){const ze=Math.pow(2,8*H-1);_e(this,k,R,H,ze-1,-ze)}let he=H-1,ke=1,xe=0;for(this[R+he]=k&255;--he>=0&&(ke*=256);)k<0&&xe===0&&this[R+he+1]!==0&&(xe=1),this[R+he]=(k/ke>>0)-xe&255;return R+H},u.prototype.writeInt8=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=k&255,R+1},u.prototype.writeInt16LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,32767,-32768),this[R]=k&255,this[R+1]=k>>>8,R+2},u.prototype.writeInt16BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=k&255,R+2},u.prototype.writeInt32LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,2147483647,-2147483648),this[R]=k&255,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},u.prototype.writeInt32BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=k&255,R+4},u.prototype.writeBigInt64LE=b(function(k,R=0){return Te(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=b(function(k,R=0){return oe(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function le(T,k,R,H,ce,he){if(R+H>T.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function we(T,k,R,H,ce){return k=+k,R=R>>>0,ce||le(T,k,R,4),r.write(T,k,R,H,23,4),R+4}u.prototype.writeFloatLE=function(k,R,H){return we(this,k,R,!0,H)},u.prototype.writeFloatBE=function(k,R,H){return we(this,k,R,!1,H)};function W(T,k,R,H,ce){return k=+k,R=R>>>0,ce||le(T,k,R,8),r.write(T,k,R,H,52,8),R+8}u.prototype.writeDoubleLE=function(k,R,H){return W(this,k,R,!0,H)},u.prototype.writeDoubleBE=function(k,R,H){return W(this,k,R,!1,H)},u.prototype.copy=function(k,R,H,ce){if(!u.isBuffer(k))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ce&&ce!==0&&(ce=this.length),R>=k.length&&(R=k.length),R||(R=0),ce>0&&ce<H&&(ce=H),ce===H||k.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),k.length-R<ce-H&&(ce=k.length-R+H);const he=ce-H;return this===k&&typeof i.prototype.copyWithin=="function"?this.copyWithin(R,H,ce):i.prototype.set.call(k,this.subarray(H,ce),R),he},u.prototype.fill=function(k,R,H,ce){if(typeof k=="string"){if(typeof R=="string"?(ce=R,R=0,H=this.length):typeof H=="string"&&(ce=H,H=this.length),ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!u.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);if(k.length===1){const ke=k.charCodeAt(0);(ce==="utf8"&&ke<128||ce==="latin1")&&(k=ke)}}else typeof k=="number"?k=k&255:typeof k=="boolean"&&(k=Number(k));if(R<0||this.length<R||this.length<H)throw new RangeError("Out of range index");if(H<=R)return this;R=R>>>0,H=H===void 0?this.length:H>>>0,k||(k=0);let he;if(typeof k=="number")for(he=R;he<H;++he)this[he]=k;else{const ke=u.isBuffer(k)?k:u.from(k,ce),xe=ke.length;if(xe===0)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(he=0;he<H-R;++he)this[he+R]=ke[he%xe]}return this};const ue={};function me(T,k,R){ue[T]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ce,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function(T,k){return`The "${T}" argument must be of type number. Received type ${typeof k}`},TypeError),me("ERR_OUT_OF_RANGE",function(T,k,R){let H=`The value of "${T}" is out of range.`,ce=R;return Number.isInteger(R)&&Math.abs(R)>2**32?ce=be(String(R)):typeof R=="bigint"&&(ce=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(ce=be(ce)),ce+="n"),H+=` It must be ${k}. Received ${ce}`,H},RangeError);function be(T){let k="",R=T.length;const H=T[0]==="-"?1:0;for(;R>=H+4;R-=3)k=`_${T.slice(R-3,R)}${k}`;return`${T.slice(0,R)}${k}`}function re(T,k,R){G(k,"offset"),(T[k]===void 0||T[k+R]===void 0)&&ee(k,T.length-(R+1))}function x(T,k,R,H,ce,he){if(T>R||T<k){const ke=typeof k=="bigint"?"n":"";let xe;throw k===0||k===BigInt(0)?xe=`>= 0${ke} and < 2${ke} ** ${(he+1)*8}${ke}`:xe=`>= -(2${ke} ** ${(he+1)*8-1}${ke}) and < 2 ** ${(he+1)*8-1}${ke}`,new ue.ERR_OUT_OF_RANGE("value",xe,T)}re(H,ce,he)}function G(T,k){if(typeof T!="number")throw new ue.ERR_INVALID_ARG_TYPE(k,"number",T)}function ee(T,k,R){throw Math.floor(T)!==T?(G(T,R),new ue.ERR_OUT_OF_RANGE("offset","an integer",T)):k<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${k}`,T)}const fe=/[^+/0-9A-Za-z-_]/g;function Ae(T){if(T=T.split("=")[0],T=T.trim().replace(fe,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function Ce(T,k){k=k||1/0;let R;const H=T.length;let ce=null;const he=[];for(let ke=0;ke<H;++ke){if(R=T.charCodeAt(ke),R>55295&&R<57344){if(!ce){if(R>56319){(k-=3)>-1&&he.push(239,191,189);continue}else if(ke+1===H){(k-=3)>-1&&he.push(239,191,189);continue}ce=R;continue}if(R<56320){(k-=3)>-1&&he.push(239,191,189),ce=R;continue}R=(ce-55296<<10|R-56320)+65536}else ce&&(k-=3)>-1&&he.push(239,191,189);if(ce=null,R<128){if((k-=1)<0)break;he.push(R)}else if(R<2048){if((k-=2)<0)break;he.push(R>>6|192,R&63|128)}else if(R<65536){if((k-=3)<0)break;he.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((k-=4)<0)break;he.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return he}function J(T){const k=[];for(let R=0;R<T.length;++R)k.push(T.charCodeAt(R)&255);return k}function ge(T,k){let R,H,ce;const he=[];for(let ke=0;ke<T.length&&!((k-=2)<0);++ke)R=T.charCodeAt(ke),H=R>>8,ce=R%256,he.push(ce),he.push(H);return he}function Pe(T){return e.toByteArray(Ae(T))}function Ve(T,k,R,H){let ce;for(ce=0;ce<H&&!(ce+R>=k.length||ce>=T.length);++ce)k[ce+R]=T[ce];return ce}function se(T,k){return T instanceof k||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===k.name}function ae(T){return T!==T}const f=function(){const T="0123456789abcdef",k=new Array(256);for(let R=0;R<16;++R){const H=R*16;for(let ce=0;ce<16;++ce)k[H+ce]=T[R]+T[ce]}return k}();function b(T){return typeof BigInt>"u"?_:T}function _(){throw new Error("BigInt not supported")}})(RI);const el=RI.Buffer;var Vv={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_d7b1bada-e611-46e0-83b6-032d5015cbd2",DOTNET_NOLOGO:"1",USER:"runner",npm_config_always_auth:"true",npm_config_user_agent:"pnpm/10.15.0 npm/? node/v20.19.4 linux x64",CI:"true",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_d7b1bada-e611-46e0-83b6-032d5015cbd2",PIPX_HOME:"/opt/pipx",RUNNER_ENVIRONMENT:"github-hosted",npm_node_execpath:"/opt/hostedtoolcache/node/20.19.4/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",HOME:"/home/runner",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",RUNNER_TEMP:"/home/runner/work/_temp",npm_package_json:"/home/runner/work/passport/passport/packages/passport-evm/package.json",GITHUB_REPOSITORY_OWNER:"credenza-web3",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",npm_package_engines_node:">=20.10.0",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.2.13676358",GITHUB_RETENTION_DAYS:"90",GRADLE_HOME:"/usr/share/gradle-9.0.0",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",GITHUB_REPOSITORY_OWNER_ID:"93208388",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",npm_config__credenza3_registry:"https://registry.npmjs.org/",npm_config_userconfig:"/home/runner/work/_temp/.npmrc",SYSTEMD_EXEC_PID:"1746",npm_config_engine_strict:"true",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",ImageVersion:"20250818.1.0",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",LOGNAME:"runner",RUNNER_OS:"Linux",SWIFT_PATH:"/usr/share/swift/usr/bin",pnpm_config_verify_deps_before_run:"false",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GITHUB_WORKFLOW:"Publish @credenza3/passport-evm",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.12/x64",JOURNAL_STREAM:"9:13182",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.6/x64",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"17238110461",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_BASE_REF:"",GITHUB_REF_TYPE:"branch",GITHUB_WORKFLOW_SHA:"17cd400b9766db6aca033e41f41f52ea27afa879",ImageOS:"ubuntu24",ENABLE_RUNNER_TRACING:"true",GITHUB_ACTION_REPOSITORY:"",GITHUB_WORKFLOW_REF:"credenza-web3/passport/.github/workflows/publish-evm.yml@refs/heads/main",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/passport/passport/packages/passport-evm/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",INVOCATION_ID:"1e1121384ca342c9abf573ac4380a679",NODE:"/opt/hostedtoolcache/node/20.19.4/x64/bin/node",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",RUNNER_TRACKING_ID:"github_059d90bb-b268-423e-be6c-09099e597cf7",TURBO_HASH:"5a62a58d518eddb7",npm_package_name:"@credenza3/passport-evm",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"71",GITHUB_TRIGGERING_ACTOR:"mikeavvad",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",npm_config_frozen_lockfile:"",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"credenza-web3/passport",RUNNER_NAME:"GitHub Actions 1000000515",XDG_CONFIG_HOME:"/home/runner/.config",npm_lifecycle_script:"vite build",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",DEBIAN_FRONTEND:"noninteractive",GITHUB_ACTION_REF:"",GITHUB_ACTIONS:"true",GITHUB_REPOSITORY_ID:"493155814",NODE_PATH:"/home/runner/work/passport/passport/node_modules/.pnpm/vite@7.1.3_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_sass@1.91.0_yaml@2.8.1/node_modules/vite/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@7.1.3_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_sass@1.91.0_yaml@2.8.1/node_modules/vite/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@7.1.3_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_sass@1.91.0_yaml@2.8.1/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",SHELL:"/bin/bash",npm_package_version:"0.2.20",npm_config_verify_deps_before_run:"false",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-gpr",GITHUB_WORKSPACE:"/home/runner/work/passport/passport",TURBO_INVOCATION_DIR:"/home/runner/work/passport/passport",npm_package_engines_pnpm:">=9",GITHUB_RUN_ATTEMPT:"1",GITHUB_SHA:"17cd400b9766db6aca033e41f41f52ea27afa879",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",GITHUB_ACTOR:"mikeavvad",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR_ID:"87299315",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_d7b1bada-e611-46e0-83b6-032d5015cbd2",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/passport/passport/packages/passport-evm",RUNNER_WORKSPACE:"/home/runner/work/passport",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.0/node_modules/pnpm/bin/pnpm.cjs",ANDROID_HOME:"/usr/local/lib/android/sdk",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_EVENT_NAME:"push",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_d7b1bada-e611-46e0-83b6-032d5015cbd2",GITHUB_SERVER_URL:"https://github.com",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",HOMEBREW_NO_AUTO_UPDATE:"1",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/passport/passport/packages/passport-evm",npm_config__jsr_registry:"https://npm.jsr.io/",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",CHROME_BIN:"/usr/bin/google-chrome",SGX_AESM_ADDR:"1",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_d7b1bada-e611-46e0-83b6-032d5015cbd2",INIT_CWD:"/home/runner/work/passport/passport/packages/passport-evm",NODE_ENV:"production"},tt;if(typeof window>"u"){var xI={hostname:""};tt={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:xI,referrer:""},screen:{width:0,height:0},location:xI,addEventListener:function(){},removeEventListener:function(){}}}else tt=window;function NI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function II(t,e,r,n,s,i,o){try{var a=t[i](o),c=a.value}catch(l){r(l);return}a.done?e(c):Promise.resolve(c).then(n,s)}function uk(t){return function(){var e=this,r=arguments;return new Promise(function(n,s){var i=t.apply(e,r);function o(c){II(i,n,s,o,a,"next",c)}function a(c){II(i,n,s,o,a,"throw",c)}o(void 0)})}}function Dv(t,e,r){return OI()?Dv=Reflect.construct:Dv=function(s,i,o){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(s,a),l=new c;return o&&U1(l,o.prototype),l},Dv.apply(null,arguments)}function qY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Pn(t,e,r){return e&&qY(t.prototype,e),t}function er(){return er=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},er.apply(this,arguments)}function hk(t){return hk=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},hk(t)}function jn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U1(t,e)}function Pt(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function XY(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function B1(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function U1(t,e){return U1=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},U1(t,e)}function Vt(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function eK(t,e){if(t){if(typeof t=="string")return NI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NI(t,e)}}function Wv(t){var e=typeof Map=="function"?new Map:void 0;return Wv=function(n){if(n===null||!XY(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,s)}function s(){return Dv(n,arguments,hk(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),U1(s,n)},Wv(t)}function OI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OI=function(){return!!t})()}function dt(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=eK(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M1(t,e){var r,n,s,i,o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){o.label=l[1];break}if(l[0]===6&&o.label<s[1]){o.label=s[1],s=l;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(l);break}s[2]&&o.ops.pop(),o.trys.pop();continue}l=e.call(t,o)}catch(u){l=[6,u],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function BI(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var tK=Object.defineProperty,rK=function(t,e,r){return e in t?tK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},et=function(t,e,r){return rK(t,(typeof e>"u"?"undefined":Vt(e))!=="symbol"?e+"":e,r)},UI,nK=Object.defineProperty,sK=function(t,e,r){return e in t?nK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},MI=function(t,e,r){return sK(t,(typeof e>"u"?"undefined":Vt(e))!=="symbol"?e+"":e,r)},ln=function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t}(ln||{}),FI={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},LI={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},jv={},iK=function(){return!!globalThis.Zone};function dk(t){if(jv[t])return jv[t];var e=globalThis[t],r=e.prototype,n=t in FI?FI[t]:void 0,s=!!(n&&n.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),i=t in LI?LI[t]:void 0,o=!!(i&&i.every(function(u){var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&o&&!iK())return jv[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return e.prototype;var l=c[t].prototype;return document.body.removeChild(a),l?jv[t]=l:r}catch{return r}}var fk={};function tl(t,e,r){var n,s=t+"."+String(r);if(fk[s])return fk[s].call(e);var i=dk(t),o=(n=Object.getOwnPropertyDescriptor(i,r))==null?void 0:n.get;return o?(fk[s]=o,o.call(e)):e[r]}var pk={};function VI(t,e,r){var n=t+"."+String(r);if(pk[n])return pk[n].bind(e);var s=dk(t),i=s[r];return typeof i!="function"?e[r]:(pk[n]=i,i.bind(e))}function oK(t){return tl("Node",t,"childNodes")}function aK(t){return tl("Node",t,"parentNode")}function cK(t){return tl("Node",t,"parentElement")}function lK(t){return tl("Node",t,"textContent")}function uK(t,e){return VI("Node",t,"contains")(e)}function hK(t){return VI("Node",t,"getRootNode")()}function dK(t){return!t||!("host"in t)?null:tl("ShadowRoot",t,"host")}function fK(t){return t.styleSheets}function pK(t){return!t||!("shadowRoot"in t)?null:tl("Element",t,"shadowRoot")}function gK(t,e){return tl("Element",t,"querySelector")(e)}function mK(t,e){return tl("Element",t,"querySelectorAll")(e)}function yK(){return dk("MutationObserver").constructor}function vK(t,e,r){try{if(!(e in t))return function(){};var n=t[e],s=r(n);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=s,function(){t[e]=n}}catch{return function(){}}}var Gn={childNodes:oK,parentNode:aK,parentElement:cK,textContent:lK,contains:uK,getRootNode:hK,host:dK,styleSheets:fK,shadowRoot:pK,querySelector:gK,querySelectorAll:mK,mutationObserver:yK,patch:vK};function DI(t){return t.nodeType===t.ELEMENT_NODE}function F1(t){var e=t&&"host"in t&&"mode"in t&&Gn.host(t)||null;return!!(e&&"shadowRoot"in e&&Gn.shadowRoot(e)===t)}function L1(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function bK(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function wK(t){var e=t.cssText;if(e.split('"').length<3)return e;var r=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?r.push("layer"):t.layerName&&r.push("layer("+t.layerName+")"),t.supportsText&&r.push("supports("+t.supportsText+")"),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}function gk(t){try{var e=t.rules||t.cssRules;if(!e)return null;var r=t.href;!r&&t.ownerNode&&t.ownerNode.ownerDocument&&(r=t.ownerNode.ownerDocument.location.href);var n=Array.from(e,function(s){return WI(s,r)}).join("");return bK(n)}catch{return null}}function WI(t,e){if(EK(t)){var r;try{r=gk(t.styleSheet)||wK(t)}catch{r=t.cssText}return t.styleSheet.href?$v(r,t.styleSheet.href):r}else{var n=t.cssText;return AK(t)&&t.selectorText.includes(":")&&(n=kK(n)),e?$v(n,e):n}}function kK(t){var e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function EK(t){return"styleSheet"in t}function AK(t){return"selectorText"in t}var jI=function(){function t(){MI(this,"idNodeMap",new Map),MI(this,"nodeMetaMap",new WeakMap)}var e=t.prototype;return e.getId=function(n){var s;if(!n)return-1;var i=(s=this.getMeta(n))==null?void 0:s.id;return i??-1},e.getNode=function(n){return this.idNodeMap.get(n)||null},e.getIds=function(){return Array.from(this.idNodeMap.keys())},e.getMeta=function(n){return this.nodeMetaMap.get(n)||null},e.removeNodeFromMap=function(n){var s=this,i=this.getId(n);this.idNodeMap.delete(i),n.childNodes&&n.childNodes.forEach(function(o){return s.removeNodeFromMap(o)})},e.has=function(n){return this.idNodeMap.has(n)},e.hasNode=function(n){return this.nodeMetaMap.has(n)},e.add=function(n,s){var i=s.id;this.idNodeMap.set(i,n),this.nodeMetaMap.set(n,s)},e.replace=function(n,s){var i=this.getNode(n);if(i){var o=this.nodeMetaMap.get(i);o&&this.nodeMetaMap.set(s,o)}this.idNodeMap.set(n,s)},e.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function _K(){return new jI}function Gv(t){var e=t.element,r=t.maskInputOptions,n=t.tagName,s=t.type,i=t.value,o=t.maskInputFn,a=i||"",c=s&&ih(s);return(r[n.toLowerCase()]||c&&r[c])&&(o?a=o(a,e):a="*".repeat(a.length)),a}function ih(t){return t.toLowerCase()}var GI="__rrweb_original__";function SK(t){var e=t.getContext("2d");if(!e)return!0;for(var r=50,n=0;n<t.width;n+=r)for(var s=0;s<t.height;s+=r){var i=e.getImageData,o=GI in i?i[GI]:i,a=new Uint32Array(o.call(e,n,s,Math.min(r,t.width-n),Math.min(r,t.height-s)).data.buffer);if(a.some(function(c){return c!==0}))return!1}return!0}function zv(t){var e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?ih(e):null}function zI(t,e){var r;try{r=new URL(t,e??window.location.href)}catch{return null}var n=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(n),i;return(i=s?.[1])!=null?i:null}function CK(t){var e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}var TK=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,RK=/^(?:[a-z+]+:)?\/\//i,PK=/^www\..*/i,xK=/^(data:)([^,]*),(.*)/i;function $v(t,e){return(t||"").replace(TK,function(r,n,s,i,o,a){var c=s||o||a,l=n||i||"";if(!c)return r;if(RK.test(c)||PK.test(c)||xK.test(c))return"url("+l+c+l+")";if(c[0]==="/")return"url("+l+(CK(e)+c)+l+")";var u=e.split("/"),d=c.split("/");u.pop();for(var h=dt(d),p;!(p=h()).done;){var g=p.value;g!=="."&&(g===".."?u.pop():u.push(g))}return"url("+l+u.join("/")+l+")"})}function Hv(t,e){return e===void 0&&(e=!1),e?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function NK(t,e,r){r===void 0&&(r=!1);var n=Array.from(e.childNodes),s=[],i=0;if(n.length>1&&t&&typeof t=="string"){for(var o=Hv(t,r),a=o.length/t.length,c=1;c<n.length;c++)if(n[c].textContent&&typeof n[c].textContent=="string"){for(var l=Hv(n[c].textContent,r),u=100,d=3;d<l.length&&(l[d].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,d),1)!==-1);d++);for(;d<l.length;d++){var h=l.substring(0,d),p=o.split(h),g=-1;if(p.length===2)g=p[0].length;else if(p.length>2&&p[0]===""&&n[c-1].textContent!=="")g=o.indexOf(h,1);else if(p.length===1){if(h=h.substring(0,h.length-1),p=o.split(h),p.length<=1)return s.push(t),s;d=u+1}else d===l.length-1&&(g=o.indexOf(h));if(p.length>=2&&d>u){var m=n[c-1].textContent;if(m&&typeof m=="string"){var y=Hv(m).length;g=o.indexOf(h,y)}g===-1&&(g=p[0].length)}if(g!==-1){for(var v=Math.floor(g/a);v>0&&v<t.length;){if(i+=1,i>50*n.length)return s.push(t),s;var A=Hv(t.substring(0,v),r);if(A.length===g){s.push(t.substring(0,v)),t=t.substring(v),o=o.substring(g);break}else A.length<g?v+=Math.max(1,Math.floor((g-A.length)/a)):v-=Math.max(1,Math.floor((A.length-g)*a))}break}}}}return s.push(t),s}function IK(t,e){return NK(t,e).join("/* rr_split */")}var OK=1,BK=new RegExp("[^a-z0-9-_:]"),V1=-2;function $I(){return OK++}function UK(t){if(Pt(t,HTMLFormElement))return"form";var e=ih(t.tagName);return BK.test(e)?"div":e}var wf,HI,MK=/^[^ \t\n\r\u000c]+/,FK=/^[, \t\n\r\u000c]+/;function LK(t,e){if(e.trim()==="")return e;var r=0;function n(l){var u,d=l.exec(e.substring(r));return d?(u=d[0],r+=u.length,u):""}for(var s=[];n(FK),!(r>=e.length);){var i=n(MK);if(i.slice(-1)===",")i=kf(t,i.substring(0,i.length-1)),s.push(i);else{var o="";i=kf(t,i);for(var a=!1;;){var c=e.charAt(r);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){r+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,r+=1}}}return s.join(", ")}var ZI=new WeakMap;function kf(t,e){return!e||e.trim()===""?e:mk(t,e)}function VK(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function mk(t,e){var r=ZI.get(t);if(r||(r=t.createElement("a"),ZI.set(t,r)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return r.setAttribute("href",e),r.href}function JI(t,e,r,n){return n&&(r==="src"||r==="href"&&!(e==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(e==="table"||e==="td"||e==="th")?kf(t,n):r==="srcset"?LK(t,n):r==="style"?$v(n,mk(t)):e==="object"&&r==="data"?kf(t,n):n)}function QI(t,e,r){return(t==="video"||t==="audio")&&e==="autoplay"}function DK(t,e,r){try{if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(var n=t.classList.length;n--;){var s=t.classList[n];if(e.test(s))return!0}if(r)return t.matches(r)}catch{}return!1}function Zv(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return r?Zv(Gn.parentNode(t),e,r):!1;for(var n=t.classList.length;n--;){var s=t.classList[n];if(e.test(s))return!0}return r?Zv(Gn.parentNode(t),e,r):!1}function YI(t,e,r,n){var s;if(DI(t)){if(s=t,!Gn.childNodes(s).length)return!1}else{if(Gn.parentElement(t)===null)return!1;s=Gn.parentElement(t)}try{if(typeof e=="string"){if(n){if(s.closest("."+e))return!0}else if(s.classList.contains(e))return!0}else if(Zv(s,e,n))return!0;if(r){if(n){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function WK(t,e,r){var n=t.contentWindow;if(n){var s=!1,i;try{i=n.document.readyState}catch{return}if(i!=="complete"){var o=setTimeout(function(){s||(e(),s=!0)},r);t.addEventListener("load",function(){clearTimeout(o),s=!0,e()});return}var a="about:blank";if(n.location.href!==a||t.src===a||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}}function jK(t,e,r){var n=!1,s;try{s=t.sheet}catch{return}if(!s){var i=setTimeout(function(){n||(e(),n=!0)},r);t.addEventListener("load",function(){clearTimeout(i),n=!0,e()})}}function GK(t,e){var r=e.doc,n=e.mirror,s=e.blockClass,i=e.blockSelector,o=e.needsMask,a=e.inlineStylesheet,c=e.maskInputOptions,l=c===void 0?{}:c,u=e.maskTextFn,d=e.maskInputFn,h=e.dataURLOptions,p=h===void 0?{}:h,g=e.inlineImages,m=e.recordCanvas,y=e.keepIframeSrcFn,v=e.newlyAddedElement,A=v===void 0?!1:v,E=e.cssCaptured,w=E===void 0?!1:E,C=zK(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ln.Document,childNodes:[],compatMode:t.compatMode}:{type:ln.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ln.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return HK(t,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:d,dataURLOptions:p,inlineImages:g,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:A,rootId:C});case t.TEXT_NODE:return $K(t,{doc:r,needsMask:o,maskTextFn:u,rootId:C,cssCaptured:w});case t.CDATA_SECTION_NODE:return{type:ln.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ln.Comment,textContent:Gn.textContent(t)||"",rootId:C};default:return!1}}function zK(t,e){if(e.hasNode(t)){var r=e.getId(t);return r===1?void 0:r}}function $K(t,e){var r=e.needsMask,n=e.maskTextFn,s=e.rootId,i=e.cssCaptured,o=Gn.parentNode(t),a=o&&o.tagName,c="",l=a==="STYLE"?!0:void 0,u=a==="SCRIPT"?!0:void 0;return u?c="SCRIPT_PLACEHOLDER":i||(c=Gn.textContent(t),l&&c&&(c=$v(c,mk(e.doc)))),!l&&!u&&c&&r&&(c=n?n(c,Gn.parentElement(t)):c.replace(/[\S]/g,"*")),{type:ln.Text,textContent:c||"",rootId:s}}function HK(t,e){for(var r=e.doc,n=e.blockClass,s=e.blockSelector,i=e.inlineStylesheet,o=e.maskInputOptions,a=o===void 0?{}:o,c=e.maskInputFn,l=e.dataURLOptions,u=l===void 0?{}:l,d=e.inlineImages,h=e.recordCanvas,p=e.keepIframeSrcFn,g=e.newlyAddedElement,m=g===void 0?!1:g,y=e.rootId,v=DK(t,n,s),A=UK(t),E={},w=t.attributes.length,C=0;C<w;C++){var B=t.attributes[C];QI(A,B.name,B.value)||(E[B.name]=JI(r,A,ih(B.name),B.value))}if(A==="link"&&i){var F=Array.from(r.styleSheets).find(function(ye){return ye.href===t.href}),I=null;F&&(I=gk(F)),I&&(delete E.rel,delete E.href,E._cssText=I)}if(A==="style"&&t.sheet){var L=gk(t.sheet);L&&(t.childNodes.length>1&&(L=IK(L,t)),E._cssText=L)}if(A==="input"||A==="textarea"||A==="select"){var D=t.value,M=t.checked;E.type!=="radio"&&E.type!=="checkbox"&&E.type!=="submit"&&E.type!=="button"&&D?E.value=Gv({element:t,type:zv(t),tagName:A,value:D,maskInputOptions:a,maskInputFn:c}):M&&(E.checked=M)}if(A==="option"&&(t.selected&&!a.select?E.selected=!0:delete E.selected),A==="dialog"&&t.open&&(E.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),A==="canvas"&&h){if(t.__context==="2d")SK(t)||(E.rr_dataURL=t.toDataURL(u.type,u.quality));else if(!("__context"in t)){var N=t.toDataURL(u.type,u.quality),P=r.createElement("canvas");P.width=t.width,P.height=t.height;var U=P.toDataURL(u.type,u.quality);N!==U&&(E.rr_dataURL=N)}}if(A==="img"&&d){wf||(wf=r.createElement("canvas"),HI=wf.getContext("2d"));var O=t,j=O.currentSrc||O.getAttribute("src")||"<unknown-src>",Z=O.crossOrigin,K=function(){O.removeEventListener("load",K);try{wf.width=O.naturalWidth,wf.height=O.naturalHeight,HI.drawImage(O,0,0),E.rr_dataURL=wf.toDataURL(u.type,u.quality)}catch(ye){if(O.crossOrigin!=="anonymous"){O.crossOrigin="anonymous",O.complete&&O.naturalWidth!==0?K():O.addEventListener("load",K);return}else console.warn("Cannot inline img src="+j+"! Error: "+ye)}O.crossOrigin==="anonymous"&&(Z?E.crossOrigin=Z:O.removeAttribute("crossorigin"))};O.complete&&O.naturalWidth!==0?K():O.addEventListener("load",K)}if(A==="audio"||A==="video"){var $=E;$.rr_mediaState=t.paused?"paused":"played",$.rr_mediaCurrentTime=t.currentTime,$.rr_mediaPlaybackRate=t.playbackRate,$.rr_mediaMuted=t.muted,$.rr_mediaLoop=t.loop,$.rr_mediaVolume=t.volume}if(m||(t.scrollLeft&&(E.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(E.rr_scrollTop=t.scrollTop)),v){var Y=t.getBoundingClientRect(),q=Y.width,te=Y.height;E={class:E.class,rr_width:""+q+"px",rr_height:""+te+"px"}}A==="iframe"&&!p(E.src)&&(t.contentDocument||(E.rr_src=E.src),delete E.src);var ie;try{customElements.get(A)&&(ie=!0)}catch{}return{type:ln.Element,tagName:A,attributes:E,childNodes:[],isSVG:VK(t)||void 0,needBlock:v,rootId:y,isCustom:ie}}function vr(t){return t==null?"":t.toLowerCase()}function ZK(t,e){if(e.comment&&t.type===ln.Comment)return!0;if(t.type===ln.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&zI(t.attributes.href)==="js"))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(vr(t.attributes.name).match(/^msapplication-tile(image|color)$/)||vr(t.attributes.name)==="application-name"||vr(t.attributes.rel)==="icon"||vr(t.attributes.rel)==="apple-touch-icon"||vr(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&vr(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(vr(t.attributes.property).match(/^(og|twitter|fb):/)||vr(t.attributes.name).match(/^(og|twitter):/)||vr(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(vr(t.attributes.name)==="robots"||vr(t.attributes.name)==="googlebot"||vr(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(vr(t.attributes.name)==="author"||vr(t.attributes.name)==="generator"||vr(t.attributes.name)==="framework"||vr(t.attributes.name)==="publisher"||vr(t.attributes.name)==="progid"||vr(t.attributes.property).match(/^article:/)||vr(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(vr(t.attributes.name)==="google-site-verification"||vr(t.attributes.name)==="yandex-verification"||vr(t.attributes.name)==="csrf-token"||vr(t.attributes.name)==="p:domain_verify"||vr(t.attributes.name)==="verify-v1"||vr(t.attributes.name)==="verification"||vr(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ef(t,e){var r=e.doc,n=e.mirror,s=e.blockClass,i=e.blockSelector,o=e.maskTextClass,a=e.maskTextSelector,c=e.skipChild,l=c===void 0?!1:c,u=e.inlineStylesheet,d=u===void 0?!0:u,h=e.maskInputOptions,p=h===void 0?{}:h,g=e.maskTextFn,m=e.maskInputFn,y=e.slimDOMOptions,v=e.dataURLOptions,A=v===void 0?{}:v,E=e.inlineImages,w=E===void 0?!1:E,C=e.recordCanvas,B=C===void 0?!1:C,F=e.onSerialize,I=e.onIframeLoad,L=e.iframeLoadTimeout,D=L===void 0?5e3:L,M=e.onStylesheetLoad,N=e.stylesheetLoadTimeout,P=N===void 0?5e3:N,U=e.keepIframeSrcFn,O=U===void 0?function(){return!1}:U,j=e.newlyAddedElement,Z=j===void 0?!1:j,K=e.cssCaptured,$=K===void 0?!1:K,Y=e.needsMask,q=e.preserveWhiteSpace,te=q===void 0?!0:q;if(!Y){var ie=Y===void 0;Y=YI(t,o,a,ie)}var ye=GK(t,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,dataURLOptions:A,inlineImages:w,recordCanvas:B,keepIframeSrcFn:O,newlyAddedElement:Z,cssCaptured:$});if(!ye)return console.warn(t,"not serialized"),null;var _e;n.hasNode(t)?_e=n.getId(t):ZK(ye,y)||!te&&ye.type===ln.Text&&!ye.textContent.replace(/^\s+|\s+$/gm,"").length?_e=V1:_e=$I();var Te=Object.assign(ye,{id:_e});if(n.add(t,Te),_e===V1)return null;F&&F(t);var oe=!l;if(Te.type===ln.Element){oe=oe&&!Te.needBlock,delete Te.needBlock;var le=Gn.shadowRoot(t);le&&L1(le)&&(Te.isShadowHost=!0)}if((Te.type===ln.Document||Te.type===ln.Element)&&oe){y.headWhitespace&&Te.type===ln.Element&&Te.tagName==="head"&&(te=!1);var we={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,slimDOMOptions:y,dataURLOptions:A,inlineImages:w,recordCanvas:B,preserveWhiteSpace:te,onSerialize:F,onIframeLoad:I,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:P,keepIframeSrcFn:O,cssCaptured:!1};if(!(Te.type===ln.Element&&Te.tagName==="textarea"&&Te.attributes.value!==void 0)){Te.type===ln.Element&&Te.attributes._cssText!==void 0&&typeof Te.attributes._cssText=="string"&&(we.cssCaptured=!0);for(var W=dt(Array.from(Gn.childNodes(t))),ue;!(ue=W()).done;){var me=ue.value,be=Ef(me,we);be&&Te.childNodes.push(be)}}var re=null;if(DI(t)&&(re=Gn.shadowRoot(t)))for(var x=dt(Array.from(Gn.childNodes(re))),G;!(G=x()).done;){var ee=G.value,fe=Ef(ee,we);fe&&(L1(re)&&(fe.isShadow=!0),Te.childNodes.push(fe))}}var Ae=Gn.parentNode(t);return Ae&&F1(Ae)&&L1(Ae)&&(Te.isShadow=!0),Te.type===ln.Element&&Te.tagName==="iframe"&&WK(t,function(){var Ce=t.contentDocument;if(Ce&&I){var J=Ef(Ce,{doc:Ce,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,slimDOMOptions:y,dataURLOptions:A,inlineImages:w,recordCanvas:B,preserveWhiteSpace:te,onSerialize:F,onIframeLoad:I,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:P,keepIframeSrcFn:O});J&&I(t,J)}},D),Te.type===ln.Element&&Te.tagName==="link"&&typeof Te.attributes.rel=="string"&&(Te.attributes.rel==="stylesheet"||Te.attributes.rel==="preload"&&typeof Te.attributes.href=="string"&&zI(Te.attributes.href)==="css")&&jK(t,function(){if(M){var Ce=Ef(t,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,slimDOMOptions:y,dataURLOptions:A,inlineImages:w,recordCanvas:B,preserveWhiteSpace:te,onSerialize:F,onIframeLoad:I,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:P,keepIframeSrcFn:O});Ce&&M(t,Ce)}},P),Te}function JK(t,e){var r=e||{},n=r.mirror,s=n===void 0?new jI:n,i=r.blockClass,o=i===void 0?"rr-block":i,a=r.blockSelector,c=a===void 0?null:a,l=r.maskTextClass,u=l===void 0?"rr-mask":l,d=r.maskTextSelector,h=d===void 0?null:d,p=r.inlineStylesheet,g=p===void 0?!0:p,m=r.inlineImages,y=m===void 0?!1:m,v=r.recordCanvas,A=v===void 0?!1:v,E=r.maskAllInputs,w=E===void 0?!1:E,C=r.maskTextFn,B=r.maskInputFn,F=r.slimDOM,I=F===void 0?!1:F,L=r.dataURLOptions,D=r.preserveWhiteSpace,M=r.onSerialize,N=r.onIframeLoad,P=r.iframeLoadTimeout,U=r.onStylesheetLoad,O=r.stylesheetLoadTimeout,j=r.keepIframeSrcFn,Z=j===void 0?function(){return!1}:j,K=w===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:w===!1?{password:!0}:w,$=I===!0||I==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:I==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:I===!1?{}:I;return Ef(t,{doc:t,mirror:s,blockClass:o,blockSelector:c,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:K,maskTextFn:C,maskInputFn:B,slimDOMOptions:$,dataURLOptions:L,inlineImages:y,recordCanvas:A,preserveWhiteSpace:D,onSerialize:M,onIframeLoad:N,iframeLoadTimeout:P,onStylesheetLoad:U,stylesheetLoadTimeout:O,keepIframeSrcFn:Z,newlyAddedElement:!1})}function QK(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function YK(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return Pt(this,n)?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var yk={exports:{}},Cr=String,KI=function(){return{isColorSupported:!1,reset:Cr,bold:Cr,dim:Cr,italic:Cr,underline:Cr,inverse:Cr,hidden:Cr,strikethrough:Cr,black:Cr,red:Cr,green:Cr,yellow:Cr,blue:Cr,magenta:Cr,cyan:Cr,white:Cr,gray:Cr,bgBlack:Cr,bgRed:Cr,bgGreen:Cr,bgYellow:Cr,bgBlue:Cr,bgMagenta:Cr,bgCyan:Cr,bgWhite:Cr}};yk.exports=KI(),yk.exports.createColors=KI;var KK=yk.exports,qK={},XK=Object.freeze(Object.defineProperty({__proto__:null,default:qK},Symbol.toStringTag,{value:"Module"})),Jr=YK(XK),qI=KK,XI=Jr,vk=function(t){jn(e,t);function e(n,s,i,o,a,c){var l;return l=t.call(this,n)||this,l.name="CssSyntaxError",l.reason=n,a&&(l.file=a),o&&(l.source=o),c&&(l.plugin=c),typeof s<"u"&&typeof i<"u"&&(typeof s=="number"?(l.line=s,l.column=i):(l.line=s.line,l.column=s.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,e),l}var r=e.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(s){var i=this;if(!this.source)return"";var o=this.source;s==null&&(s=qI.isColorSupported),XI&&s&&(o=XI(o));var a=o.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),u=String(l).length,d,h;if(s){var p=qI.createColors(!0),g=p.bold,m=p.gray,y=p.red;d=function(v){return g(y(v))},h=function(v){return m(v)}}else d=h=function(v){return v};return a.slice(c,l).map(function(v,A){var E=c+1+A,w=" "+(" "+E).slice(-u)+" | ";if(E===i.line){var C=h(w.replace(/\d/g," "))+v.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+h(w)+v+`
568
+ */(function(t){const e=Lv,r=lk,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s;const{Uint8Array:i,ArrayBuffer:o,SharedArrayBuffer:a}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const T=new i(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,i.prototype),Object.setPrototypeOf(T,k),T.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(T){if(T>s)throw new RangeError('The value "'+T+'" is invalid for option "size"');const k=new i(T);return Object.setPrototypeOf(k,u.prototype),k}function u(T,k,R){if(typeof T=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(T)}return d(T,k,R)}u.poolSize=8192;function d(T,k,R){if(typeof T=="string")return m(T,k);if(o.isView(T))return v(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(se(T,o)||T&&se(T.buffer,o)||typeof a<"u"&&(se(T,a)||T&&se(T.buffer,a)))return A(T,k,R);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=T.valueOf&&T.valueOf();if(H!=null&&H!==T)return u.from(H,k,R);const ce=E(T);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return u.from(T[Symbol.toPrimitive]("string"),k,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}u.from=function(T,k,R){return d(T,k,R)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function h(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function p(T,k,R){return h(T),T<=0?l(T):k!==void 0?typeof R=="string"?l(T).fill(k,R):l(T).fill(k):l(T)}u.alloc=function(T,k,R){return p(T,k,R)};function g(T){return h(T),l(T<0?0:w(T)|0)}u.allocUnsafe=function(T){return g(T)},u.allocUnsafeSlow=function(T){return g(T)};function m(T,k){if((typeof k!="string"||k==="")&&(k="utf8"),!u.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const R=B(T,k)|0;let H=l(R);const ce=H.write(T,k);return ce!==R&&(H=H.slice(0,ce)),H}function y(T){const k=T.length<0?0:w(T.length)|0,R=l(k);for(let H=0;H<k;H+=1)R[H]=T[H]&255;return R}function v(T){if(se(T,i)){const k=new i(T);return A(k.buffer,k.byteOffset,k.byteLength)}return y(T)}function A(T,k,R){if(k<0||T.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<k+(R||0))throw new RangeError('"length" is outside of buffer bounds');let H;return k===void 0&&R===void 0?H=new i(T):R===void 0?H=new i(T,k):H=new i(T,k,R),Object.setPrototypeOf(H,u.prototype),H}function E(T){if(u.isBuffer(T)){const k=w(T.length)|0,R=l(k);return R.length===0||T.copy(R,0,0,k),R}if(T.length!==void 0)return typeof T.length!="number"||ae(T.length)?l(0):y(T);if(T.type==="Buffer"&&Array.isArray(T.data))return y(T.data)}function w(T){if(T>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return T|0}function C(T){return+T!=T&&(T=0),u.alloc(+T)}u.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==u.prototype},u.compare=function(k,R){if(se(k,i)&&(k=u.from(k,k.offset,k.byteLength)),se(R,i)&&(R=u.from(R,R.offset,R.byteLength)),!u.isBuffer(k)||!u.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===R)return 0;let H=k.length,ce=R.length;for(let he=0,ke=Math.min(H,ce);he<ke;++he)if(k[he]!==R[he]){H=k[he],ce=R[he];break}return H<ce?-1:ce<H?1:0},u.isEncoding=function(k){switch(String(k).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(k,R){if(!Array.isArray(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return u.alloc(0);let H;if(R===void 0)for(R=0,H=0;H<k.length;++H)R+=k[H].length;const ce=u.allocUnsafe(R);let he=0;for(H=0;H<k.length;++H){let ke=k[H];if(se(ke,i))he+ke.length>ce.length?(u.isBuffer(ke)||(ke=u.from(ke)),ke.copy(ce,he)):i.prototype.set.call(ce,ke,he);else if(u.isBuffer(ke))ke.copy(ce,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=ke.length}return ce};function B(T,k){if(u.isBuffer(T))return T.length;if(o.isView(T)||se(T,o))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const R=T.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&R===0)return 0;let ce=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return Ce(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return Pe(T).length;default:if(ce)return H?-1:Ce(T).length;k=(""+k).toLowerCase(),ce=!0}}u.byteLength=B;function F(T,k,R){let H=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,k>>>=0,R<=k))return"";for(T||(T="utf8");;)switch(T){case"hex":return te(this,k,R);case"utf8":case"utf-8":return Z(this,k,R);case"ascii":return Y(this,k,R);case"latin1":case"binary":return q(this,k,R);case"base64":return j(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,k,R);default:if(H)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),H=!0}}u.prototype._isBuffer=!0;function I(T,k,R){const H=T[k];T[k]=T[R],T[R]=H}u.prototype.swap16=function(){const k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;R<k;R+=2)I(this,R,R+1);return this},u.prototype.swap32=function(){const k=this.length;if(k%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let R=0;R<k;R+=4)I(this,R,R+3),I(this,R+1,R+2);return this},u.prototype.swap64=function(){const k=this.length;if(k%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let R=0;R<k;R+=8)I(this,R,R+7),I(this,R+1,R+6),I(this,R+2,R+5),I(this,R+3,R+4);return this},u.prototype.toString=function(){const k=this.length;return k===0?"":arguments.length===0?Z(this,0,k):F.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(k){if(!u.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k?!0:u.compare(this,k)===0},u.prototype.inspect=function(){let k="";const R=t.INSPECT_MAX_BYTES;return k=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(k+=" ... "),"<Buffer "+k+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(k,R,H,ce,he){if(se(k,i)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(R===void 0&&(R=0),H===void 0&&(H=k?k.length:0),ce===void 0&&(ce=0),he===void 0&&(he=this.length),R<0||H>k.length||ce<0||he>this.length)throw new RangeError("out of range index");if(ce>=he&&R>=H)return 0;if(ce>=he)return-1;if(R>=H)return 1;if(R>>>=0,H>>>=0,ce>>>=0,he>>>=0,this===k)return 0;let ke=he-ce,xe=H-R;const ze=Math.min(ke,xe),Lt=this.slice(ce,he),Ct=k.slice(R,H);for(let vt=0;vt<ze;++vt)if(Lt[vt]!==Ct[vt]){ke=Lt[vt],xe=Ct[vt];break}return ke<xe?-1:xe<ke?1:0};function L(T,k,R,H,ce){if(T.length===0)return-1;if(typeof R=="string"?(H=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,ae(R)&&(R=ce?0:T.length-1),R<0&&(R=T.length+R),R>=T.length){if(ce)return-1;R=T.length-1}else if(R<0)if(ce)R=0;else return-1;if(typeof k=="string"&&(k=u.from(k,H)),u.isBuffer(k))return k.length===0?-1:D(T,k,R,H,ce);if(typeof k=="number")return k=k&255,typeof i.prototype.indexOf=="function"?ce?i.prototype.indexOf.call(T,k,R):i.prototype.lastIndexOf.call(T,k,R):D(T,[k],R,H,ce);throw new TypeError("val must be string, number or Buffer")}function D(T,k,R,H,ce){let he=1,ke=T.length,xe=k.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(T.length<2||k.length<2)return-1;he=2,ke/=2,xe/=2,R/=2}function ze(Ct,vt){return he===1?Ct[vt]:Ct.readUInt16BE(vt*he)}let Lt;if(ce){let Ct=-1;for(Lt=R;Lt<ke;Lt++)if(ze(T,Lt)===ze(k,Ct===-1?0:Lt-Ct)){if(Ct===-1&&(Ct=Lt),Lt-Ct+1===xe)return Ct*he}else Ct!==-1&&(Lt-=Lt-Ct),Ct=-1}else for(R+xe>ke&&(R=ke-xe),Lt=R;Lt>=0;Lt--){let Ct=!0;for(let vt=0;vt<xe;vt++)if(ze(T,Lt+vt)!==ze(k,vt)){Ct=!1;break}if(Ct)return Lt}return-1}u.prototype.includes=function(k,R,H){return this.indexOf(k,R,H)!==-1},u.prototype.indexOf=function(k,R,H){return L(this,k,R,H,!0)},u.prototype.lastIndexOf=function(k,R,H){return L(this,k,R,H,!1)};function M(T,k,R,H){R=Number(R)||0;const ce=T.length-R;H?(H=Number(H),H>ce&&(H=ce)):H=ce;const he=k.length;H>he/2&&(H=he/2);let ke;for(ke=0;ke<H;++ke){const xe=parseInt(k.substr(ke*2,2),16);if(ae(xe))return ke;T[R+ke]=xe}return ke}function N(T,k,R,H){return Ve(Ce(k,T.length-R),T,R,H)}function P(T,k,R,H){return Ve(J(k),T,R,H)}function U(T,k,R,H){return Ve(Pe(k),T,R,H)}function O(T,k,R,H){return Ve(ge(k,T.length-R),T,R,H)}u.prototype.write=function(k,R,H,ce){if(R===void 0)ce="utf8",H=this.length,R=0;else if(H===void 0&&typeof R=="string")ce=R,H=this.length,R=0;else if(isFinite(R))R=R>>>0,isFinite(H)?(H=H>>>0,ce===void 0&&(ce="utf8")):(ce=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const he=this.length-R;if((H===void 0||H>he)&&(H=he),k.length>0&&(H<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let ke=!1;for(;;)switch(ce){case"hex":return M(this,k,R,H);case"utf8":case"utf-8":return N(this,k,R,H);case"ascii":case"latin1":case"binary":return P(this,k,R,H);case"base64":return U(this,k,R,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,k,R,H);default:if(ke)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ke=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(T,k,R){return k===0&&R===T.length?e.fromByteArray(T):e.fromByteArray(T.slice(k,R))}function Z(T,k,R){R=Math.min(T.length,R);const H=[];let ce=k;for(;ce<R;){const he=T[ce];let ke=null,xe=he>239?4:he>223?3:he>191?2:1;if(ce+xe<=R){let ze,Lt,Ct,vt;switch(xe){case 1:he<128&&(ke=he);break;case 2:ze=T[ce+1],(ze&192)===128&&(vt=(he&31)<<6|ze&63,vt>127&&(ke=vt));break;case 3:ze=T[ce+1],Lt=T[ce+2],(ze&192)===128&&(Lt&192)===128&&(vt=(he&15)<<12|(ze&63)<<6|Lt&63,vt>2047&&(vt<55296||vt>57343)&&(ke=vt));break;case 4:ze=T[ce+1],Lt=T[ce+2],Ct=T[ce+3],(ze&192)===128&&(Lt&192)===128&&(Ct&192)===128&&(vt=(he&15)<<18|(ze&63)<<12|(Lt&63)<<6|Ct&63,vt>65535&&vt<1114112&&(ke=vt))}}ke===null?(ke=65533,xe=1):ke>65535&&(ke-=65536,H.push(ke>>>10&1023|55296),ke=56320|ke&1023),H.push(ke),ce+=xe}return $(H)}const K=4096;function $(T){const k=T.length;if(k<=K)return String.fromCharCode.apply(String,T);let R="",H=0;for(;H<k;)R+=String.fromCharCode.apply(String,T.slice(H,H+=K));return R}function Y(T,k,R){let H="";R=Math.min(T.length,R);for(let ce=k;ce<R;++ce)H+=String.fromCharCode(T[ce]&127);return H}function q(T,k,R){let H="";R=Math.min(T.length,R);for(let ce=k;ce<R;++ce)H+=String.fromCharCode(T[ce]);return H}function te(T,k,R){const H=T.length;(!k||k<0)&&(k=0),(!R||R<0||R>H)&&(R=H);let ce="";for(let he=k;he<R;++he)ce+=f[T[he]];return ce}function ie(T,k,R){const H=T.slice(k,R);let ce="";for(let he=0;he<H.length-1;he+=2)ce+=String.fromCharCode(H[he]+H[he+1]*256);return ce}u.prototype.slice=function(k,R){const H=this.length;k=~~k,R=R===void 0?H:~~R,k<0?(k+=H,k<0&&(k=0)):k>H&&(k=H),R<0?(R+=H,R<0&&(R=0)):R>H&&(R=H),R<k&&(R=k);const ce=this.subarray(k,R);return Object.setPrototypeOf(ce,u.prototype),ce};function ye(T,k,R){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+k>R)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=this[k],he=1,ke=0;for(;++ke<R&&(he*=256);)ce+=this[k+ke]*he;return ce},u.prototype.readUintBE=u.prototype.readUIntBE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=this[k+--R],he=1;for(;R>0&&(he*=256);)ce+=this[k+--R]*he;return ce},u.prototype.readUint8=u.prototype.readUInt8=function(k,R){return k=k>>>0,R||ye(k,1,this.length),this[k]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(k,R){return k=k>>>0,R||ye(k,2,this.length),this[k]|this[k+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(k,R){return k=k>>>0,R||ye(k,2,this.length),this[k]<<8|this[k+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},u.prototype.readBigUInt64LE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=R+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24,he=this[++k]+this[++k]*2**8+this[++k]*2**16+H*2**24;return BigInt(ce)+(BigInt(he)<<BigInt(32))}),u.prototype.readBigUInt64BE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=R*2**24+this[++k]*2**16+this[++k]*2**8+this[++k],he=this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+H;return(BigInt(ce)<<BigInt(32))+BigInt(he)}),u.prototype.readIntLE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=this[k],he=1,ke=0;for(;++ke<R&&(he*=256);)ce+=this[k+ke]*he;return he*=128,ce>=he&&(ce-=Math.pow(2,8*R)),ce},u.prototype.readIntBE=function(k,R,H){k=k>>>0,R=R>>>0,H||ye(k,R,this.length);let ce=R,he=1,ke=this[k+--ce];for(;ce>0&&(he*=256);)ke+=this[k+--ce]*he;return he*=128,ke>=he&&(ke-=Math.pow(2,8*R)),ke},u.prototype.readInt8=function(k,R){return k=k>>>0,R||ye(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},u.prototype.readInt16LE=function(k,R){k=k>>>0,R||ye(k,2,this.length);const H=this[k]|this[k+1]<<8;return H&32768?H|4294901760:H},u.prototype.readInt16BE=function(k,R){k=k>>>0,R||ye(k,2,this.length);const H=this[k+1]|this[k]<<8;return H&32768?H|4294901760:H},u.prototype.readInt32LE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},u.prototype.readInt32BE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},u.prototype.readBigInt64LE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=this[k+4]+this[k+5]*2**8+this[k+6]*2**16+(H<<24);return(BigInt(ce)<<BigInt(32))+BigInt(R+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24)}),u.prototype.readBigInt64BE=b(function(k){k=k>>>0,G(k,"offset");const R=this[k],H=this[k+7];(R===void 0||H===void 0)&&ee(k,this.length-8);const ce=(R<<24)+this[++k]*2**16+this[++k]*2**8+this[++k];return(BigInt(ce)<<BigInt(32))+BigInt(this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+H)}),u.prototype.readFloatLE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),r.read(this,k,!0,23,4)},u.prototype.readFloatBE=function(k,R){return k=k>>>0,R||ye(k,4,this.length),r.read(this,k,!1,23,4)},u.prototype.readDoubleLE=function(k,R){return k=k>>>0,R||ye(k,8,this.length),r.read(this,k,!0,52,8)},u.prototype.readDoubleBE=function(k,R){return k=k>>>0,R||ye(k,8,this.length),r.read(this,k,!1,52,8)};function _e(T,k,R,H,ce,he){if(!u.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>ce||k<he)throw new RangeError('"value" argument is out of bounds');if(R+H>T.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(k,R,H,ce){if(k=+k,R=R>>>0,H=H>>>0,!ce){const xe=Math.pow(2,8*H)-1;_e(this,k,R,H,xe,0)}let he=1,ke=0;for(this[R]=k&255;++ke<H&&(he*=256);)this[R+ke]=k/he&255;return R+H},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(k,R,H,ce){if(k=+k,R=R>>>0,H=H>>>0,!ce){const xe=Math.pow(2,8*H)-1;_e(this,k,R,H,xe,0)}let he=H-1,ke=1;for(this[R+he]=k&255;--he>=0&&(ke*=256);)this[R+he]=k/ke&255;return R+H},u.prototype.writeUint8=u.prototype.writeUInt8=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,1,255,0),this[R]=k&255,R+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,65535,0),this[R]=k&255,this[R+1]=k>>>8,R+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=k&255,R+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=k&255,R+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=k&255,R+4};function Te(T,k,R,H,ce){x(k,H,ce,T,R,7);let he=Number(k&BigInt(4294967295));T[R++]=he,he=he>>8,T[R++]=he,he=he>>8,T[R++]=he,he=he>>8,T[R++]=he;let ke=Number(k>>BigInt(32)&BigInt(4294967295));return T[R++]=ke,ke=ke>>8,T[R++]=ke,ke=ke>>8,T[R++]=ke,ke=ke>>8,T[R++]=ke,R}function oe(T,k,R,H,ce){x(k,H,ce,T,R,7);let he=Number(k&BigInt(4294967295));T[R+7]=he,he=he>>8,T[R+6]=he,he=he>>8,T[R+5]=he,he=he>>8,T[R+4]=he;let ke=Number(k>>BigInt(32)&BigInt(4294967295));return T[R+3]=ke,ke=ke>>8,T[R+2]=ke,ke=ke>>8,T[R+1]=ke,ke=ke>>8,T[R]=ke,R+8}u.prototype.writeBigUInt64LE=b(function(k,R=0){return Te(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=b(function(k,R=0){return oe(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(k,R,H,ce){if(k=+k,R=R>>>0,!ce){const ze=Math.pow(2,8*H-1);_e(this,k,R,H,ze-1,-ze)}let he=0,ke=1,xe=0;for(this[R]=k&255;++he<H&&(ke*=256);)k<0&&xe===0&&this[R+he-1]!==0&&(xe=1),this[R+he]=(k/ke>>0)-xe&255;return R+H},u.prototype.writeIntBE=function(k,R,H,ce){if(k=+k,R=R>>>0,!ce){const ze=Math.pow(2,8*H-1);_e(this,k,R,H,ze-1,-ze)}let he=H-1,ke=1,xe=0;for(this[R+he]=k&255;--he>=0&&(ke*=256);)k<0&&xe===0&&this[R+he+1]!==0&&(xe=1),this[R+he]=(k/ke>>0)-xe&255;return R+H},u.prototype.writeInt8=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=k&255,R+1},u.prototype.writeInt16LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,32767,-32768),this[R]=k&255,this[R+1]=k>>>8,R+2},u.prototype.writeInt16BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=k&255,R+2},u.prototype.writeInt32LE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,2147483647,-2147483648),this[R]=k&255,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},u.prototype.writeInt32BE=function(k,R,H){return k=+k,R=R>>>0,H||_e(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=k&255,R+4},u.prototype.writeBigInt64LE=b(function(k,R=0){return Te(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=b(function(k,R=0){return oe(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function le(T,k,R,H,ce,he){if(R+H>T.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function we(T,k,R,H,ce){return k=+k,R=R>>>0,ce||le(T,k,R,4),r.write(T,k,R,H,23,4),R+4}u.prototype.writeFloatLE=function(k,R,H){return we(this,k,R,!0,H)},u.prototype.writeFloatBE=function(k,R,H){return we(this,k,R,!1,H)};function W(T,k,R,H,ce){return k=+k,R=R>>>0,ce||le(T,k,R,8),r.write(T,k,R,H,52,8),R+8}u.prototype.writeDoubleLE=function(k,R,H){return W(this,k,R,!0,H)},u.prototype.writeDoubleBE=function(k,R,H){return W(this,k,R,!1,H)},u.prototype.copy=function(k,R,H,ce){if(!u.isBuffer(k))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ce&&ce!==0&&(ce=this.length),R>=k.length&&(R=k.length),R||(R=0),ce>0&&ce<H&&(ce=H),ce===H||k.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),k.length-R<ce-H&&(ce=k.length-R+H);const he=ce-H;return this===k&&typeof i.prototype.copyWithin=="function"?this.copyWithin(R,H,ce):i.prototype.set.call(k,this.subarray(H,ce),R),he},u.prototype.fill=function(k,R,H,ce){if(typeof k=="string"){if(typeof R=="string"?(ce=R,R=0,H=this.length):typeof H=="string"&&(ce=H,H=this.length),ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!u.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);if(k.length===1){const ke=k.charCodeAt(0);(ce==="utf8"&&ke<128||ce==="latin1")&&(k=ke)}}else typeof k=="number"?k=k&255:typeof k=="boolean"&&(k=Number(k));if(R<0||this.length<R||this.length<H)throw new RangeError("Out of range index");if(H<=R)return this;R=R>>>0,H=H===void 0?this.length:H>>>0,k||(k=0);let he;if(typeof k=="number")for(he=R;he<H;++he)this[he]=k;else{const ke=u.isBuffer(k)?k:u.from(k,ce),xe=ke.length;if(xe===0)throw new TypeError('The value "'+k+'" is invalid for argument "value"');for(he=0;he<H-R;++he)this[he+R]=ke[he%xe]}return this};const ue={};function me(T,k,R){ue[T]=class extends R{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ce,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function(T,k){return`The "${T}" argument must be of type number. Received type ${typeof k}`},TypeError),me("ERR_OUT_OF_RANGE",function(T,k,R){let H=`The value of "${T}" is out of range.`,ce=R;return Number.isInteger(R)&&Math.abs(R)>2**32?ce=be(String(R)):typeof R=="bigint"&&(ce=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(ce=be(ce)),ce+="n"),H+=` It must be ${k}. Received ${ce}`,H},RangeError);function be(T){let k="",R=T.length;const H=T[0]==="-"?1:0;for(;R>=H+4;R-=3)k=`_${T.slice(R-3,R)}${k}`;return`${T.slice(0,R)}${k}`}function re(T,k,R){G(k,"offset"),(T[k]===void 0||T[k+R]===void 0)&&ee(k,T.length-(R+1))}function x(T,k,R,H,ce,he){if(T>R||T<k){const ke=typeof k=="bigint"?"n":"";let xe;throw k===0||k===BigInt(0)?xe=`>= 0${ke} and < 2${ke} ** ${(he+1)*8}${ke}`:xe=`>= -(2${ke} ** ${(he+1)*8-1}${ke}) and < 2 ** ${(he+1)*8-1}${ke}`,new ue.ERR_OUT_OF_RANGE("value",xe,T)}re(H,ce,he)}function G(T,k){if(typeof T!="number")throw new ue.ERR_INVALID_ARG_TYPE(k,"number",T)}function ee(T,k,R){throw Math.floor(T)!==T?(G(T,R),new ue.ERR_OUT_OF_RANGE("offset","an integer",T)):k<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${k}`,T)}const fe=/[^+/0-9A-Za-z-_]/g;function Ae(T){if(T=T.split("=")[0],T=T.trim().replace(fe,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function Ce(T,k){k=k||1/0;let R;const H=T.length;let ce=null;const he=[];for(let ke=0;ke<H;++ke){if(R=T.charCodeAt(ke),R>55295&&R<57344){if(!ce){if(R>56319){(k-=3)>-1&&he.push(239,191,189);continue}else if(ke+1===H){(k-=3)>-1&&he.push(239,191,189);continue}ce=R;continue}if(R<56320){(k-=3)>-1&&he.push(239,191,189),ce=R;continue}R=(ce-55296<<10|R-56320)+65536}else ce&&(k-=3)>-1&&he.push(239,191,189);if(ce=null,R<128){if((k-=1)<0)break;he.push(R)}else if(R<2048){if((k-=2)<0)break;he.push(R>>6|192,R&63|128)}else if(R<65536){if((k-=3)<0)break;he.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((k-=4)<0)break;he.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return he}function J(T){const k=[];for(let R=0;R<T.length;++R)k.push(T.charCodeAt(R)&255);return k}function ge(T,k){let R,H,ce;const he=[];for(let ke=0;ke<T.length&&!((k-=2)<0);++ke)R=T.charCodeAt(ke),H=R>>8,ce=R%256,he.push(ce),he.push(H);return he}function Pe(T){return e.toByteArray(Ae(T))}function Ve(T,k,R,H){let ce;for(ce=0;ce<H&&!(ce+R>=k.length||ce>=T.length);++ce)k[ce+R]=T[ce];return ce}function se(T,k){return T instanceof k||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===k.name}function ae(T){return T!==T}const f=function(){const T="0123456789abcdef",k=new Array(256);for(let R=0;R<16;++R){const H=R*16;for(let ce=0;ce<16;++ce)k[H+ce]=T[R]+T[ce]}return k}();function b(T){return typeof BigInt>"u"?_:T}function _(){throw new Error("BigInt not supported")}})(RI);const el=RI.Buffer;var Vv={GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9bc25a6e-10a2-49ff-9530-6310172b5850",DOTNET_NOLOGO:"1",USER:"runner",npm_config_always_auth:"true",npm_config_user_agent:"pnpm/10.15.1 npm/? node/v20.19.5 linux x64",CI:"true",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9bc25a6e-10a2-49ff-9530-6310172b5850",PIPX_HOME:"/opt/pipx",RUNNER_ENVIRONMENT:"github-hosted",npm_node_execpath:"/opt/hostedtoolcache/node/20.19.5/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",NODE_AUTH_TOKEN:"XXXXX-XXXXX-XXXXX-XXXXX",SHLVL:"1",HOME:"/home/runner",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",RUNNER_TEMP:"/home/runner/work/_temp",npm_package_json:"/home/runner/work/passport/passport/packages/passport-evm/package.json",GITHUB_REPOSITORY_OWNER:"credenza-web3",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",npm_package_engines_node:">=20.10.0",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.2.13676358",GITHUB_RETENTION_DAYS:"90",GRADLE_HOME:"/usr/share/gradle-9.0.0",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",GITHUB_REPOSITORY_OWNER_ID:"93208388",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",npm_config__credenza3_registry:"https://registry.npmjs.org/",npm_config_userconfig:"/home/runner/work/_temp/.npmrc",SYSTEMD_EXEC_PID:"1736",npm_config_engine_strict:"true",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",ImageVersion:"20250907.24.1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",LOGNAME:"runner",RUNNER_OS:"Linux",SWIFT_PATH:"/usr/share/swift/usr/bin",pnpm_config_verify_deps_before_run:"false",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GITHUB_WORKFLOW:"Publish @credenza3/passport-evm",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.12/x64",JOURNAL_STREAM:"9:13390",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.7/x64",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GITHUB_RUN_ID:"17612990097",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_BASE_REF:"",GITHUB_REF_TYPE:"branch",GITHUB_WORKFLOW_SHA:"b1c9ccbb7d65fdba1c7c799ba16d439106443975",ImageOS:"ubuntu24",ENABLE_RUNNER_TRACING:"true",GITHUB_ACTION_REPOSITORY:"",GITHUB_WORKFLOW_REF:"credenza-web3/passport/.github/workflows/publish-evm.yml@refs/heads/main",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/passport/passport/packages/passport-evm/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/passport/passport/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",INVOCATION_ID:"2486d3b317ab47e1a9e336364b607af0",NODE:"/opt/hostedtoolcache/node/20.19.5/x64/bin/node",NPM_CONFIG_USERCONFIG:"/home/runner/work/_temp/.npmrc",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",RUNNER_TRACKING_ID:"github_e8d159d0-0919-49b9-ac07-15191febf8b1",TURBO_HASH:"4782c4b2b2b5d07a",npm_package_name:"@credenza3/passport-evm",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"72",GITHUB_TRIGGERING_ACTOR:"mikeavvad",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",npm_config_frozen_lockfile:"",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"credenza-web3/passport",RUNNER_NAME:"GitHub Actions 1000000553",XDG_CONFIG_HOME:"/home/runner/.config",npm_lifecycle_script:"vite build",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",DEBIAN_FRONTEND:"noninteractive",GITHUB_ACTION_REF:"",GITHUB_ACTIONS:"true",GITHUB_REPOSITORY_ID:"493155814",NODE_PATH:"/home/runner/work/passport/passport/node_modules/.pnpm/vite@7.1.3_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_sass@1.91.0_yaml@2.8.1/node_modules/vite/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@7.1.3_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_sass@1.91.0_yaml@2.8.1/node_modules/vite/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/vite@7.1.3_@types+node@24.3.0_jiti@2.4.2_lightningcss@1.29.1_sass@1.91.0_yaml@2.8.1/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/bin/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules/turbo/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/turbo@1.13.3/node_modules:/home/runner/work/passport/passport/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",SHELL:"/bin/bash",npm_package_version:"0.3.0",npm_config_verify_deps_before_run:"false",npm_lifecycle_event:"build",GITHUB_REF_PROTECTED:"false",ACCEPT_EULA:"Y",GITHUB_JOB:"publish-gpr",GITHUB_WORKSPACE:"/home/runner/work/passport/passport",TURBO_INVOCATION_DIR:"/home/runner/work/passport/passport",npm_package_engines_pnpm:">=9",GITHUB_RUN_ATTEMPT:"1",GITHUB_SHA:"b1c9ccbb7d65fdba1c7c799ba16d439106443975",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",GITHUB_ACTOR:"mikeavvad",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR_ID:"87299315",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9bc25a6e-10a2-49ff-9530-6310172b5850",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/passport/passport/packages/passport-evm",RUNNER_WORKSPACE:"/home/runner/work/passport",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.15.1/node_modules/pnpm/bin/pnpm.cjs",ANDROID_HOME:"/usr/local/lib/android/sdk",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_EVENT_NAME:"push",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9bc25a6e-10a2-49ff-9530-6310172b5850",GITHUB_SERVER_URL:"https://github.com",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",HOMEBREW_NO_AUTO_UPDATE:"1",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/passport/passport/packages/passport-evm",npm_config__jsr_registry:"https://npm.jsr.io/",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",CHROME_BIN:"/usr/bin/google-chrome",SGX_AESM_ADDR:"1",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9bc25a6e-10a2-49ff-9530-6310172b5850",INIT_CWD:"/home/runner/work/passport/passport/packages/passport-evm",NODE_ENV:"production"},tt;if(typeof window>"u"){var xI={hostname:""};tt={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:xI,referrer:""},screen:{width:0,height:0},location:xI,addEventListener:function(){},removeEventListener:function(){}}}else tt=window;function NI(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function II(t,e,r,n,s,i,o){try{var a=t[i](o),c=a.value}catch(l){r(l);return}a.done?e(c):Promise.resolve(c).then(n,s)}function uk(t){return function(){var e=this,r=arguments;return new Promise(function(n,s){var i=t.apply(e,r);function o(c){II(i,n,s,o,a,"next",c)}function a(c){II(i,n,s,o,a,"throw",c)}o(void 0)})}}function Dv(t,e,r){return OI()?Dv=Reflect.construct:Dv=function(s,i,o){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(s,a),l=new c;return o&&U1(l,o.prototype),l},Dv.apply(null,arguments)}function qY(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Pn(t,e,r){return e&&qY(t.prototype,e),t}function er(){return er=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},er.apply(this,arguments)}function hk(t){return hk=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},hk(t)}function jn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U1(t,e)}function Pt(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function XY(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function B1(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function U1(t,e){return U1=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},U1(t,e)}function Vt(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function eK(t,e){if(t){if(typeof t=="string")return NI(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NI(t,e)}}function Wv(t){var e=typeof Map=="function"?new Map:void 0;return Wv=function(n){if(n===null||!XY(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,s)}function s(){return Dv(n,arguments,hk(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),U1(s,n)},Wv(t)}function OI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OI=function(){return!!t})()}function dt(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=eK(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M1(t,e){var r,n,s,i,o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){o.label=l[1];break}if(l[0]===6&&o.label<s[1]){o.label=s[1],s=l;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(l);break}s[2]&&o.ops.pop(),o.trys.pop();continue}l=e.call(t,o)}catch(u){l=[6,u],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function BI(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var tK=Object.defineProperty,rK=function(t,e,r){return e in t?tK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},et=function(t,e,r){return rK(t,(typeof e>"u"?"undefined":Vt(e))!=="symbol"?e+"":e,r)},UI,nK=Object.defineProperty,sK=function(t,e,r){return e in t?nK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},MI=function(t,e,r){return sK(t,(typeof e>"u"?"undefined":Vt(e))!=="symbol"?e+"":e,r)},ln=function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t}(ln||{}),FI={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},LI={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},jv={},iK=function(){return!!globalThis.Zone};function dk(t){if(jv[t])return jv[t];var e=globalThis[t],r=e.prototype,n=t in FI?FI[t]:void 0,s=!!(n&&n.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(r,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),i=t in LI?LI[t]:void 0,o=!!(i&&i.every(function(u){var d;return typeof r[u]=="function"&&((d=r[u])==null?void 0:d.toString().includes("[native code]"))}));if(s&&o&&!iK())return jv[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return e.prototype;var l=c[t].prototype;return document.body.removeChild(a),l?jv[t]=l:r}catch{return r}}var fk={};function tl(t,e,r){var n,s=t+"."+String(r);if(fk[s])return fk[s].call(e);var i=dk(t),o=(n=Object.getOwnPropertyDescriptor(i,r))==null?void 0:n.get;return o?(fk[s]=o,o.call(e)):e[r]}var pk={};function VI(t,e,r){var n=t+"."+String(r);if(pk[n])return pk[n].bind(e);var s=dk(t),i=s[r];return typeof i!="function"?e[r]:(pk[n]=i,i.bind(e))}function oK(t){return tl("Node",t,"childNodes")}function aK(t){return tl("Node",t,"parentNode")}function cK(t){return tl("Node",t,"parentElement")}function lK(t){return tl("Node",t,"textContent")}function uK(t,e){return VI("Node",t,"contains")(e)}function hK(t){return VI("Node",t,"getRootNode")()}function dK(t){return!t||!("host"in t)?null:tl("ShadowRoot",t,"host")}function fK(t){return t.styleSheets}function pK(t){return!t||!("shadowRoot"in t)?null:tl("Element",t,"shadowRoot")}function gK(t,e){return tl("Element",t,"querySelector")(e)}function mK(t,e){return tl("Element",t,"querySelectorAll")(e)}function yK(){return dk("MutationObserver").constructor}function vK(t,e,r){try{if(!(e in t))return function(){};var n=t[e],s=r(n);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=s,function(){t[e]=n}}catch{return function(){}}}var Gn={childNodes:oK,parentNode:aK,parentElement:cK,textContent:lK,contains:uK,getRootNode:hK,host:dK,styleSheets:fK,shadowRoot:pK,querySelector:gK,querySelectorAll:mK,mutationObserver:yK,patch:vK};function DI(t){return t.nodeType===t.ELEMENT_NODE}function F1(t){var e=t&&"host"in t&&"mode"in t&&Gn.host(t)||null;return!!(e&&"shadowRoot"in e&&Gn.shadowRoot(e)===t)}function L1(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function bK(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function wK(t){var e=t.cssText;if(e.split('"').length<3)return e;var r=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?r.push("layer"):t.layerName&&r.push("layer("+t.layerName+")"),t.supportsText&&r.push("supports("+t.supportsText+")"),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}function gk(t){try{var e=t.rules||t.cssRules;if(!e)return null;var r=t.href;!r&&t.ownerNode&&t.ownerNode.ownerDocument&&(r=t.ownerNode.ownerDocument.location.href);var n=Array.from(e,function(s){return WI(s,r)}).join("");return bK(n)}catch{return null}}function WI(t,e){if(EK(t)){var r;try{r=gk(t.styleSheet)||wK(t)}catch{r=t.cssText}return t.styleSheet.href?$v(r,t.styleSheet.href):r}else{var n=t.cssText;return AK(t)&&t.selectorText.includes(":")&&(n=kK(n)),e?$v(n,e):n}}function kK(t){var e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function EK(t){return"styleSheet"in t}function AK(t){return"selectorText"in t}var jI=function(){function t(){MI(this,"idNodeMap",new Map),MI(this,"nodeMetaMap",new WeakMap)}var e=t.prototype;return e.getId=function(n){var s;if(!n)return-1;var i=(s=this.getMeta(n))==null?void 0:s.id;return i??-1},e.getNode=function(n){return this.idNodeMap.get(n)||null},e.getIds=function(){return Array.from(this.idNodeMap.keys())},e.getMeta=function(n){return this.nodeMetaMap.get(n)||null},e.removeNodeFromMap=function(n){var s=this,i=this.getId(n);this.idNodeMap.delete(i),n.childNodes&&n.childNodes.forEach(function(o){return s.removeNodeFromMap(o)})},e.has=function(n){return this.idNodeMap.has(n)},e.hasNode=function(n){return this.nodeMetaMap.has(n)},e.add=function(n,s){var i=s.id;this.idNodeMap.set(i,n),this.nodeMetaMap.set(n,s)},e.replace=function(n,s){var i=this.getNode(n);if(i){var o=this.nodeMetaMap.get(i);o&&this.nodeMetaMap.set(s,o)}this.idNodeMap.set(n,s)},e.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function _K(){return new jI}function Gv(t){var e=t.element,r=t.maskInputOptions,n=t.tagName,s=t.type,i=t.value,o=t.maskInputFn,a=i||"",c=s&&ih(s);return(r[n.toLowerCase()]||c&&r[c])&&(o?a=o(a,e):a="*".repeat(a.length)),a}function ih(t){return t.toLowerCase()}var GI="__rrweb_original__";function SK(t){var e=t.getContext("2d");if(!e)return!0;for(var r=50,n=0;n<t.width;n+=r)for(var s=0;s<t.height;s+=r){var i=e.getImageData,o=GI in i?i[GI]:i,a=new Uint32Array(o.call(e,n,s,Math.min(r,t.width-n),Math.min(r,t.height-s)).data.buffer);if(a.some(function(c){return c!==0}))return!1}return!0}function zv(t){var e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?ih(e):null}function zI(t,e){var r;try{r=new URL(t,e??window.location.href)}catch{return null}var n=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(n),i;return(i=s?.[1])!=null?i:null}function CK(t){var e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}var TK=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,RK=/^(?:[a-z+]+:)?\/\//i,PK=/^www\..*/i,xK=/^(data:)([^,]*),(.*)/i;function $v(t,e){return(t||"").replace(TK,function(r,n,s,i,o,a){var c=s||o||a,l=n||i||"";if(!c)return r;if(RK.test(c)||PK.test(c)||xK.test(c))return"url("+l+c+l+")";if(c[0]==="/")return"url("+l+(CK(e)+c)+l+")";var u=e.split("/"),d=c.split("/");u.pop();for(var h=dt(d),p;!(p=h()).done;){var g=p.value;g!=="."&&(g===".."?u.pop():u.push(g))}return"url("+l+u.join("/")+l+")"})}function Hv(t,e){return e===void 0&&(e=!1),e?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function NK(t,e,r){r===void 0&&(r=!1);var n=Array.from(e.childNodes),s=[],i=0;if(n.length>1&&t&&typeof t=="string"){for(var o=Hv(t,r),a=o.length/t.length,c=1;c<n.length;c++)if(n[c].textContent&&typeof n[c].textContent=="string"){for(var l=Hv(n[c].textContent,r),u=100,d=3;d<l.length&&(l[d].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,d),1)!==-1);d++);for(;d<l.length;d++){var h=l.substring(0,d),p=o.split(h),g=-1;if(p.length===2)g=p[0].length;else if(p.length>2&&p[0]===""&&n[c-1].textContent!=="")g=o.indexOf(h,1);else if(p.length===1){if(h=h.substring(0,h.length-1),p=o.split(h),p.length<=1)return s.push(t),s;d=u+1}else d===l.length-1&&(g=o.indexOf(h));if(p.length>=2&&d>u){var m=n[c-1].textContent;if(m&&typeof m=="string"){var y=Hv(m).length;g=o.indexOf(h,y)}g===-1&&(g=p[0].length)}if(g!==-1){for(var v=Math.floor(g/a);v>0&&v<t.length;){if(i+=1,i>50*n.length)return s.push(t),s;var A=Hv(t.substring(0,v),r);if(A.length===g){s.push(t.substring(0,v)),t=t.substring(v),o=o.substring(g);break}else A.length<g?v+=Math.max(1,Math.floor((g-A.length)/a)):v-=Math.max(1,Math.floor((A.length-g)*a))}break}}}}return s.push(t),s}function IK(t,e){return NK(t,e).join("/* rr_split */")}var OK=1,BK=new RegExp("[^a-z0-9-_:]"),V1=-2;function $I(){return OK++}function UK(t){if(Pt(t,HTMLFormElement))return"form";var e=ih(t.tagName);return BK.test(e)?"div":e}var wf,HI,MK=/^[^ \t\n\r\u000c]+/,FK=/^[, \t\n\r\u000c]+/;function LK(t,e){if(e.trim()==="")return e;var r=0;function n(l){var u,d=l.exec(e.substring(r));return d?(u=d[0],r+=u.length,u):""}for(var s=[];n(FK),!(r>=e.length);){var i=n(MK);if(i.slice(-1)===",")i=kf(t,i.substring(0,i.length-1)),s.push(i);else{var o="";i=kf(t,i);for(var a=!1;;){var c=e.charAt(r);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){r+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,r+=1}}}return s.join(", ")}var ZI=new WeakMap;function kf(t,e){return!e||e.trim()===""?e:mk(t,e)}function VK(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function mk(t,e){var r=ZI.get(t);if(r||(r=t.createElement("a"),ZI.set(t,r)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return r.setAttribute("href",e),r.href}function JI(t,e,r,n){return n&&(r==="src"||r==="href"&&!(e==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(e==="table"||e==="td"||e==="th")?kf(t,n):r==="srcset"?LK(t,n):r==="style"?$v(n,mk(t)):e==="object"&&r==="data"?kf(t,n):n)}function QI(t,e,r){return(t==="video"||t==="audio")&&e==="autoplay"}function DK(t,e,r){try{if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(var n=t.classList.length;n--;){var s=t.classList[n];if(e.test(s))return!0}if(r)return t.matches(r)}catch{}return!1}function Zv(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return r?Zv(Gn.parentNode(t),e,r):!1;for(var n=t.classList.length;n--;){var s=t.classList[n];if(e.test(s))return!0}return r?Zv(Gn.parentNode(t),e,r):!1}function YI(t,e,r,n){var s;if(DI(t)){if(s=t,!Gn.childNodes(s).length)return!1}else{if(Gn.parentElement(t)===null)return!1;s=Gn.parentElement(t)}try{if(typeof e=="string"){if(n){if(s.closest("."+e))return!0}else if(s.classList.contains(e))return!0}else if(Zv(s,e,n))return!0;if(r){if(n){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function WK(t,e,r){var n=t.contentWindow;if(n){var s=!1,i;try{i=n.document.readyState}catch{return}if(i!=="complete"){var o=setTimeout(function(){s||(e(),s=!0)},r);t.addEventListener("load",function(){clearTimeout(o),s=!0,e()});return}var a="about:blank";if(n.location.href!==a||t.src===a||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}}function jK(t,e,r){var n=!1,s;try{s=t.sheet}catch{return}if(!s){var i=setTimeout(function(){n||(e(),n=!0)},r);t.addEventListener("load",function(){clearTimeout(i),n=!0,e()})}}function GK(t,e){var r=e.doc,n=e.mirror,s=e.blockClass,i=e.blockSelector,o=e.needsMask,a=e.inlineStylesheet,c=e.maskInputOptions,l=c===void 0?{}:c,u=e.maskTextFn,d=e.maskInputFn,h=e.dataURLOptions,p=h===void 0?{}:h,g=e.inlineImages,m=e.recordCanvas,y=e.keepIframeSrcFn,v=e.newlyAddedElement,A=v===void 0?!1:v,E=e.cssCaptured,w=E===void 0?!1:E,C=zK(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ln.Document,childNodes:[],compatMode:t.compatMode}:{type:ln.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ln.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return HK(t,{doc:r,blockClass:s,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:d,dataURLOptions:p,inlineImages:g,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:A,rootId:C});case t.TEXT_NODE:return $K(t,{doc:r,needsMask:o,maskTextFn:u,rootId:C,cssCaptured:w});case t.CDATA_SECTION_NODE:return{type:ln.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ln.Comment,textContent:Gn.textContent(t)||"",rootId:C};default:return!1}}function zK(t,e){if(e.hasNode(t)){var r=e.getId(t);return r===1?void 0:r}}function $K(t,e){var r=e.needsMask,n=e.maskTextFn,s=e.rootId,i=e.cssCaptured,o=Gn.parentNode(t),a=o&&o.tagName,c="",l=a==="STYLE"?!0:void 0,u=a==="SCRIPT"?!0:void 0;return u?c="SCRIPT_PLACEHOLDER":i||(c=Gn.textContent(t),l&&c&&(c=$v(c,mk(e.doc)))),!l&&!u&&c&&r&&(c=n?n(c,Gn.parentElement(t)):c.replace(/[\S]/g,"*")),{type:ln.Text,textContent:c||"",rootId:s}}function HK(t,e){for(var r=e.doc,n=e.blockClass,s=e.blockSelector,i=e.inlineStylesheet,o=e.maskInputOptions,a=o===void 0?{}:o,c=e.maskInputFn,l=e.dataURLOptions,u=l===void 0?{}:l,d=e.inlineImages,h=e.recordCanvas,p=e.keepIframeSrcFn,g=e.newlyAddedElement,m=g===void 0?!1:g,y=e.rootId,v=DK(t,n,s),A=UK(t),E={},w=t.attributes.length,C=0;C<w;C++){var B=t.attributes[C];QI(A,B.name,B.value)||(E[B.name]=JI(r,A,ih(B.name),B.value))}if(A==="link"&&i){var F=Array.from(r.styleSheets).find(function(ye){return ye.href===t.href}),I=null;F&&(I=gk(F)),I&&(delete E.rel,delete E.href,E._cssText=I)}if(A==="style"&&t.sheet){var L=gk(t.sheet);L&&(t.childNodes.length>1&&(L=IK(L,t)),E._cssText=L)}if(A==="input"||A==="textarea"||A==="select"){var D=t.value,M=t.checked;E.type!=="radio"&&E.type!=="checkbox"&&E.type!=="submit"&&E.type!=="button"&&D?E.value=Gv({element:t,type:zv(t),tagName:A,value:D,maskInputOptions:a,maskInputFn:c}):M&&(E.checked=M)}if(A==="option"&&(t.selected&&!a.select?E.selected=!0:delete E.selected),A==="dialog"&&t.open&&(E.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),A==="canvas"&&h){if(t.__context==="2d")SK(t)||(E.rr_dataURL=t.toDataURL(u.type,u.quality));else if(!("__context"in t)){var N=t.toDataURL(u.type,u.quality),P=r.createElement("canvas");P.width=t.width,P.height=t.height;var U=P.toDataURL(u.type,u.quality);N!==U&&(E.rr_dataURL=N)}}if(A==="img"&&d){wf||(wf=r.createElement("canvas"),HI=wf.getContext("2d"));var O=t,j=O.currentSrc||O.getAttribute("src")||"<unknown-src>",Z=O.crossOrigin,K=function(){O.removeEventListener("load",K);try{wf.width=O.naturalWidth,wf.height=O.naturalHeight,HI.drawImage(O,0,0),E.rr_dataURL=wf.toDataURL(u.type,u.quality)}catch(ye){if(O.crossOrigin!=="anonymous"){O.crossOrigin="anonymous",O.complete&&O.naturalWidth!==0?K():O.addEventListener("load",K);return}else console.warn("Cannot inline img src="+j+"! Error: "+ye)}O.crossOrigin==="anonymous"&&(Z?E.crossOrigin=Z:O.removeAttribute("crossorigin"))};O.complete&&O.naturalWidth!==0?K():O.addEventListener("load",K)}if(A==="audio"||A==="video"){var $=E;$.rr_mediaState=t.paused?"paused":"played",$.rr_mediaCurrentTime=t.currentTime,$.rr_mediaPlaybackRate=t.playbackRate,$.rr_mediaMuted=t.muted,$.rr_mediaLoop=t.loop,$.rr_mediaVolume=t.volume}if(m||(t.scrollLeft&&(E.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(E.rr_scrollTop=t.scrollTop)),v){var Y=t.getBoundingClientRect(),q=Y.width,te=Y.height;E={class:E.class,rr_width:""+q+"px",rr_height:""+te+"px"}}A==="iframe"&&!p(E.src)&&(t.contentDocument||(E.rr_src=E.src),delete E.src);var ie;try{customElements.get(A)&&(ie=!0)}catch{}return{type:ln.Element,tagName:A,attributes:E,childNodes:[],isSVG:VK(t)||void 0,needBlock:v,rootId:y,isCustom:ie}}function vr(t){return t==null?"":t.toLowerCase()}function ZK(t,e){if(e.comment&&t.type===ln.Comment)return!0;if(t.type===ln.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&zI(t.attributes.href)==="js"))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(vr(t.attributes.name).match(/^msapplication-tile(image|color)$/)||vr(t.attributes.name)==="application-name"||vr(t.attributes.rel)==="icon"||vr(t.attributes.rel)==="apple-touch-icon"||vr(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&vr(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(vr(t.attributes.property).match(/^(og|twitter|fb):/)||vr(t.attributes.name).match(/^(og|twitter):/)||vr(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(vr(t.attributes.name)==="robots"||vr(t.attributes.name)==="googlebot"||vr(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(vr(t.attributes.name)==="author"||vr(t.attributes.name)==="generator"||vr(t.attributes.name)==="framework"||vr(t.attributes.name)==="publisher"||vr(t.attributes.name)==="progid"||vr(t.attributes.property).match(/^article:/)||vr(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(vr(t.attributes.name)==="google-site-verification"||vr(t.attributes.name)==="yandex-verification"||vr(t.attributes.name)==="csrf-token"||vr(t.attributes.name)==="p:domain_verify"||vr(t.attributes.name)==="verify-v1"||vr(t.attributes.name)==="verification"||vr(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ef(t,e){var r=e.doc,n=e.mirror,s=e.blockClass,i=e.blockSelector,o=e.maskTextClass,a=e.maskTextSelector,c=e.skipChild,l=c===void 0?!1:c,u=e.inlineStylesheet,d=u===void 0?!0:u,h=e.maskInputOptions,p=h===void 0?{}:h,g=e.maskTextFn,m=e.maskInputFn,y=e.slimDOMOptions,v=e.dataURLOptions,A=v===void 0?{}:v,E=e.inlineImages,w=E===void 0?!1:E,C=e.recordCanvas,B=C===void 0?!1:C,F=e.onSerialize,I=e.onIframeLoad,L=e.iframeLoadTimeout,D=L===void 0?5e3:L,M=e.onStylesheetLoad,N=e.stylesheetLoadTimeout,P=N===void 0?5e3:N,U=e.keepIframeSrcFn,O=U===void 0?function(){return!1}:U,j=e.newlyAddedElement,Z=j===void 0?!1:j,K=e.cssCaptured,$=K===void 0?!1:K,Y=e.needsMask,q=e.preserveWhiteSpace,te=q===void 0?!0:q;if(!Y){var ie=Y===void 0;Y=YI(t,o,a,ie)}var ye=GK(t,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,dataURLOptions:A,inlineImages:w,recordCanvas:B,keepIframeSrcFn:O,newlyAddedElement:Z,cssCaptured:$});if(!ye)return console.warn(t,"not serialized"),null;var _e;n.hasNode(t)?_e=n.getId(t):ZK(ye,y)||!te&&ye.type===ln.Text&&!ye.textContent.replace(/^\s+|\s+$/gm,"").length?_e=V1:_e=$I();var Te=Object.assign(ye,{id:_e});if(n.add(t,Te),_e===V1)return null;F&&F(t);var oe=!l;if(Te.type===ln.Element){oe=oe&&!Te.needBlock,delete Te.needBlock;var le=Gn.shadowRoot(t);le&&L1(le)&&(Te.isShadowHost=!0)}if((Te.type===ln.Document||Te.type===ln.Element)&&oe){y.headWhitespace&&Te.type===ln.Element&&Te.tagName==="head"&&(te=!1);var we={doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:l,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,slimDOMOptions:y,dataURLOptions:A,inlineImages:w,recordCanvas:B,preserveWhiteSpace:te,onSerialize:F,onIframeLoad:I,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:P,keepIframeSrcFn:O,cssCaptured:!1};if(!(Te.type===ln.Element&&Te.tagName==="textarea"&&Te.attributes.value!==void 0)){Te.type===ln.Element&&Te.attributes._cssText!==void 0&&typeof Te.attributes._cssText=="string"&&(we.cssCaptured=!0);for(var W=dt(Array.from(Gn.childNodes(t))),ue;!(ue=W()).done;){var me=ue.value,be=Ef(me,we);be&&Te.childNodes.push(be)}}var re=null;if(DI(t)&&(re=Gn.shadowRoot(t)))for(var x=dt(Array.from(Gn.childNodes(re))),G;!(G=x()).done;){var ee=G.value,fe=Ef(ee,we);fe&&(L1(re)&&(fe.isShadow=!0),Te.childNodes.push(fe))}}var Ae=Gn.parentNode(t);return Ae&&F1(Ae)&&L1(Ae)&&(Te.isShadow=!0),Te.type===ln.Element&&Te.tagName==="iframe"&&WK(t,function(){var Ce=t.contentDocument;if(Ce&&I){var J=Ef(Ce,{doc:Ce,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,slimDOMOptions:y,dataURLOptions:A,inlineImages:w,recordCanvas:B,preserveWhiteSpace:te,onSerialize:F,onIframeLoad:I,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:P,keepIframeSrcFn:O});J&&I(t,J)}},D),Te.type===ln.Element&&Te.tagName==="link"&&typeof Te.attributes.rel=="string"&&(Te.attributes.rel==="stylesheet"||Te.attributes.rel==="preload"&&typeof Te.attributes.href=="string"&&zI(Te.attributes.href)==="css")&&jK(t,function(){if(M){var Ce=Ef(t,{doc:r,mirror:n,blockClass:s,blockSelector:i,needsMask:Y,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:g,maskInputFn:m,slimDOMOptions:y,dataURLOptions:A,inlineImages:w,recordCanvas:B,preserveWhiteSpace:te,onSerialize:F,onIframeLoad:I,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:P,keepIframeSrcFn:O});Ce&&M(t,Ce)}},P),Te}function JK(t,e){var r=e||{},n=r.mirror,s=n===void 0?new jI:n,i=r.blockClass,o=i===void 0?"rr-block":i,a=r.blockSelector,c=a===void 0?null:a,l=r.maskTextClass,u=l===void 0?"rr-mask":l,d=r.maskTextSelector,h=d===void 0?null:d,p=r.inlineStylesheet,g=p===void 0?!0:p,m=r.inlineImages,y=m===void 0?!1:m,v=r.recordCanvas,A=v===void 0?!1:v,E=r.maskAllInputs,w=E===void 0?!1:E,C=r.maskTextFn,B=r.maskInputFn,F=r.slimDOM,I=F===void 0?!1:F,L=r.dataURLOptions,D=r.preserveWhiteSpace,M=r.onSerialize,N=r.onIframeLoad,P=r.iframeLoadTimeout,U=r.onStylesheetLoad,O=r.stylesheetLoadTimeout,j=r.keepIframeSrcFn,Z=j===void 0?function(){return!1}:j,K=w===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:w===!1?{password:!0}:w,$=I===!0||I==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:I==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:I===!1?{}:I;return Ef(t,{doc:t,mirror:s,blockClass:o,blockSelector:c,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:K,maskTextFn:C,maskInputFn:B,slimDOMOptions:$,dataURLOptions:L,inlineImages:y,recordCanvas:A,preserveWhiteSpace:D,onSerialize:M,onIframeLoad:N,iframeLoadTimeout:P,onStylesheetLoad:U,stylesheetLoadTimeout:O,keepIframeSrcFn:Z,newlyAddedElement:!1})}function QK(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function YK(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return Pt(this,n)?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var yk={exports:{}},Cr=String,KI=function(){return{isColorSupported:!1,reset:Cr,bold:Cr,dim:Cr,italic:Cr,underline:Cr,inverse:Cr,hidden:Cr,strikethrough:Cr,black:Cr,red:Cr,green:Cr,yellow:Cr,blue:Cr,magenta:Cr,cyan:Cr,white:Cr,gray:Cr,bgBlack:Cr,bgRed:Cr,bgGreen:Cr,bgYellow:Cr,bgBlue:Cr,bgMagenta:Cr,bgCyan:Cr,bgWhite:Cr}};yk.exports=KI(),yk.exports.createColors=KI;var KK=yk.exports,qK={},XK=Object.freeze(Object.defineProperty({__proto__:null,default:qK},Symbol.toStringTag,{value:"Module"})),Jr=YK(XK),qI=KK,XI=Jr,vk=function(t){jn(e,t);function e(n,s,i,o,a,c){var l;return l=t.call(this,n)||this,l.name="CssSyntaxError",l.reason=n,a&&(l.file=a),o&&(l.source=o),c&&(l.plugin=c),typeof s<"u"&&typeof i<"u"&&(typeof s=="number"?(l.line=s,l.column=i):(l.line=s.line,l.column=s.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,e),l}var r=e.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(s){var i=this;if(!this.source)return"";var o=this.source;s==null&&(s=qI.isColorSupported),XI&&s&&(o=XI(o));var a=o.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),u=String(l).length,d,h;if(s){var p=qI.createColors(!0),g=p.bold,m=p.gray,y=p.red;d=function(v){return g(y(v))},h=function(v){return m(v)}}else d=h=function(v){return v};return a.slice(c,l).map(function(v,A){var E=c+1+A,w=" "+(" "+E).slice(-u)+" | ";if(E===i.line){var C=h(w.replace(/\d/g," "))+v.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+h(w)+v+`
569
569
  `+C+d("^")}return" "+h(w)+v}).join(`
570
570
  `)},r.toString=function(){var s=this.showSourceCode();return s&&(s=`
571
571
 
@@ -666,7 +666,7 @@ or you can use record.mirror to access the mirror instance during recording.`,$B
666
666
  crtw-min-h-screen crtw-h-full crtw-flex crtw-justify-center crtw-items-center crtw-bg-black/70
667
667
  crtw-text-[#121e2b]`,null,c,h),[()=>({"crtw-backdrop-blur-md":r()})]),Ee(t,o),at({get shouldBlurBackdrop(){return r()},set shouldBlurBackdrop(h){r(h),je()},get isHeaderShown(){return n()},set isHeaderShown(h){n(h),je()},get footerAdditionalLogo(){return s()},set footerAdditionalLogo(h){s(h),je()},get onCloseClick(){return i()},set onCloseClick(h){i(h),je()},$set:ut,$on:(h,p)=>lt(e,h,p)})}var Pae=Le(`<div class="crtw-flex crtw-flex-col crtw-items-center crtw-mx-auto crtw-text-center crtw-text-textMain
668
668
  crtw-max-w-xs crtw-relative sm:crtw-max-w-[360px]"><p class="crtw-font-bold crtw-text-[21px] crtw-uppercase sm:crtw-text-2xl sm:crtw-mb-px"> </p> <p class="crtw-text-sm sm:crtw-text-base"> </p> <!></div>`);function zo(t,e){if(new.target)return ht({component:zo,...t});ot(e,!1);let r=Ge(e,"text",12,void 0),n=Ge(e,"description",12,void 0);var s=Pae(),i=Ie(s),o=Ie(i,!0);Ne(i);var a=Ue(i,2),c=Ie(a,!0);Ne(a);var l=Ue(a,2);return Ai(l,e,"default",{}),Ne(s),Ye(()=>{pt(o,r()??""),pt(c,n()??"")}),Ee(t,s),at({get text(){return r()},set text(u){r(u),je()},get description(){return n()},set description(u){n(u),je()},$set:ut,$on:(u,d)=>lt(e,u,d)})}var xae=Le('<div role="status"><svg aria-hidden="true" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg> <span class="crtw-sr-only">Loading...</span></div>');function Sh(t,e){if(new.target)return ht({component:Sh,...t});ot(e,!1);let r=Ge(e,"width",12,8),n=Ge(e,"height",12,8);var s=xae(),i=Ie(s);return Jn(2),Ne(s),Ye(()=>Lr(i,0,`crtw-w-${r()??""} crtw-h-${n()??""} crtw-animate-spin crtw-text-white crtw-fill-black`)),Ee(t,s),at({get width(){return r()},set width(o){r(o),je()},get height(){return n()},set height(o){n(o),je()},$set:ut,$on:(o,a)=>lt(e,o,a)})}var Nae=Le("<button><!></button>");function On(t,e){if(new.target)return ht({component:On,...t});ot(e,!1);let r=Ge(e,"onClick",12),n=Ge(e,"text",12),s=Ge(e,"disabled",12,!1),i=Ge(e,"isLoading",12,!1);var o=Nae();let a;var c=Ie(o);{var l=d=>{Sh(d,{})},u=d=>{var h=Ur();Ye(()=>pt(h,n())),Ee(d,h)};Je(c,d=>{i()?d(l):d(u,!1)})}return Ne(o),Ye(d=>a=Lr(o,1,`crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-bg-black crtw-text-white crtw-h-[50px] crtw-cursor-pointer
669
- crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium`,null,a,d),[()=>({"crtw-bg-gray-300":s()||i(),"crtw-pointer-events-none":s()||i()})]),un("click",o,I3(function(...d){r()?.apply(this,d)})),Ee(t,o),at({get onClick(){return r()},set onClick(d){r(d),je()},get text(){return n()},set text(d){n(d),je()},get disabled(){return s()},set disabled(d){s(d),je()},get isLoading(){return i()},set isLoading(d){i(d),je()},$set:ut,$on:(d,h)=>lt(e,d,h)})}var Iae=Le(`<div class="crtw-text-2xl crtw-font-bold crtw-font-['poppins'] crtw-mb-4"> </div>`),Oae=Le('<iframe id="videoProgressIframe" title="progress-video" frameborder="0" scrolling="no" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;" allowfullscreen="" width="100%" style="min-height: 200px"></iframe>'),Bae=Le('<video width="100%" controls autoplay><source/> Your browser does not support the video tag.</video>',2),Uae=Le('<div class="crtw-pt-4 crtw-w-full"><!></div>'),Mae=Le('<div class="crtw-w-full"><!> <!></div> <!>',1);function sL(t,e){if(new.target)return ht({component:sL,...t});ot(e,!1);const r=De();let n=Ge(e,"isProgressFinished",12),s=Ge(e,"options",12),{text:i,onSetVideoEnded:o}=s();gt(()=>$e(s()),()=>{Re(r,s().selected)}),mr(),Et();var a=Mae(),c=He(a),l=Ie(c);{var u=y=>{var v=Iae(),A=Ie(v,!0);Ne(v),Ye(()=>pt(A,i)),Ee(y,v)};Je(l,y=>{i&&y(u)})}var d=Ue(l,2);{var h=y=>{var v=Oae();Ye(()=>kt(v,"src",(z(r),Fe(()=>`${z(r).src}?autoplay=1&mute=1`)))),Ee(y,v)},p=y=>{var v=nt(),A=He(v);{var E=w=>{var C=Bae();C.muted=!0;var B=Ie(C);Jn(),Ne(C),Ye(()=>kt(B,"src",(z(r),Fe(()=>z(r).src)))),Ee(w,C)};Je(A,w=>{z(r),Fe(()=>z(r).src)&&w(E)},!0)}Ee(y,v)};Je(d,y=>{z(r),Fe(()=>z(r).embedded)?y(h):y(p,!1)})}Ne(c);var g=Ue(c,2);{var m=y=>{var v=Uae(),A=Ie(v);On(A,{get onClick(){return o},text:"Skip"}),Ne(v),Ee(y,v)};Je(g,y=>{n()&&y(m)})}return Ee(t,a),at({get isProgressFinished(){return n()},set isProgressFinished(y){n(y),je()},get options(){return s()},set options(y){s(y),je()},$set:ut,$on:(y,v)=>lt(e,y,v)})}var Fae=Le('<img alt="" class="crtw-mr-2 crtw-h-3"/>'),Lae=Le(`<button class="crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline"><!> </button>`);function Iw(t,e){if(new.target)return ht({component:Iw,...t});ot(e,!1);let r=Ge(e,"onClick",12),n=Ge(e,"icon",12,void 0),s=Ge(e,"text",12),i=Ge(e,"styles",28,()=>({}));const o=Object.entries(i()).map(([d,h])=>`${d}:${h}`).join(";");Et();var a=Lae(),c=Ie(a);{var l=d=>{var h=Fae();Ye(()=>kt(h,"src",n())),Ee(d,h)};Je(c,d=>{n()&&d(l)})}var u=Ue(c);return Ne(a),Ye(()=>{_i(a,o),pt(u,` ${s()??""}`)}),un("click",a,function(...d){r()?.apply(this,d)}),Ee(t,a),at({get onClick(){return r()},set onClick(d){r(d),je()},get icon(){return n()},set icon(d){n(d),je()},get text(){return s()},set text(d){s(d),je()},get styles(){return i()},set styles(d){i(d),je()},$set:ut,$on:(d,h)=>lt(e,d,h)})}var Vae=Le("<label><!></label>");function ep(t,e){if(new.target)return ht({component:ep,...t});const r=Lp(e,["children","$$slots","$$events","$$legacy"]),n=Lp(r,[]);ot(e,!1);var s=Vae();n9(s,()=>({class:"crtw-text-black crtw-text-sm crtw-text-left crtw-leading-1 crtw-pb-2",...n}));var i=Ie(s);return Ai(i,e,"default",{}),Ne(s),Ee(t,s),at({$set:ut,$on:(o,a)=>lt(e,o,a)})}var Dae=Le('<div class="crtw-flex crtw-justify-center"><input type="number" min="0" max="99999" class="crtw-w-full crtw-mb-1.5 phone crtw-border crtw-rounded crtw-px-2 crtw-outline-none crtw-mt-2.5 crtw-h-[50px] crtw-text-xs svelte-1o26kfq" name="code"/></div>');const Wae={hash:"svelte-1o26kfq",code:`input.svelte-1o26kfq::-webkit-outer-spin-button,
669
+ crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium`,null,a,d),[()=>({"crtw-bg-gray-300":s()||i(),"crtw-pointer-events-none":s()||i()})]),un("click",o,I3(function(...d){r()?.apply(this,d)})),Ee(t,o),at({get onClick(){return r()},set onClick(d){r(d),je()},get text(){return n()},set text(d){n(d),je()},get disabled(){return s()},set disabled(d){s(d),je()},get isLoading(){return i()},set isLoading(d){i(d),je()},$set:ut,$on:(d,h)=>lt(e,d,h)})}var Iae=Le(`<div class="crtw-text-2xl crtw-font-bold crtw-font-['poppins'] crtw-mb-4"> </div>`),Oae=Le('<iframe id="videoProgressIframe" title="progress-video" frameborder="0" scrolling="no" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;" allowfullscreen="" width="100%" style="min-height: 200px"></iframe>'),Bae=Le('<video width="100%" controls autoplay><source/> Your browser does not support the video tag.</video>',2),Uae=Le('<div class="crtw-pt-4 crtw-w-full"><!></div>'),Mae=Le('<div class="crtw-w-full"><!> <!></div> <!>',1);function sL(t,e){if(new.target)return ht({component:sL,...t});ot(e,!1);const r=De();let n=Ge(e,"isProgressFinished",12),s=Ge(e,"options",12),{text:i,onSetVideoEnded:o}=s();gt(()=>$e(s()),()=>{Re(r,s().selected)}),mr(),Et();var a=Mae(),c=He(a),l=Ie(c);{var u=y=>{var v=Iae(),A=Ie(v,!0);Ne(v),Ye(()=>pt(A,i)),Ee(y,v)};Je(l,y=>{i&&y(u)})}var d=Ue(l,2);{var h=y=>{var v=Oae();Ye(()=>kt(v,"src",(z(r),Fe(()=>`${z(r).src}?autoplay=1&mute=1`)))),Ee(y,v)},p=y=>{var v=nt(),A=He(v);{var E=w=>{var C=Bae();C.muted=!0;var B=Ie(C);Jn(),Ne(C),Ye(()=>kt(B,"src",(z(r),Fe(()=>z(r).src)))),Ee(w,C)};Je(A,w=>{z(r),Fe(()=>z(r).src)&&w(E)},!0)}Ee(y,v)};Je(d,y=>{z(r),Fe(()=>z(r).embedded)?y(h):y(p,!1)})}Ne(c);var g=Ue(c,2);{var m=y=>{var v=Uae(),A=Ie(v);On(A,{get onClick(){return o},text:"Skip"}),Ne(v),Ee(y,v)};Je(g,y=>{n()&&y(m)})}return Ee(t,a),at({get isProgressFinished(){return n()},set isProgressFinished(y){n(y),je()},get options(){return s()},set options(y){s(y),je()},$set:ut,$on:(y,v)=>lt(e,y,v)})}var Fae=Le('<img alt="" class="crtw-mr-2 crtw-h-3"/>'),Lae=Le(`<button class="crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline"><!> </button>`);function Iw(t,e){if(new.target)return ht({component:Iw,...t});ot(e,!1);let r=Ge(e,"onClick",12),n=Ge(e,"icon",12,void 0),s=Ge(e,"text",12),i=Ge(e,"styles",28,()=>({}));const o=Object.entries(i()).map(([d,h])=>`${d}:${h}`).join(";");Et();var a=Lae(),c=Ie(a);{var l=d=>{var h=Fae();Ye(()=>kt(h,"src",n())),Ee(d,h)};Je(c,d=>{n()&&d(l)})}var u=Ue(c);return Ne(a),Ye(()=>{_i(a,o),pt(u,` ${s()??""}`)}),un("click",a,function(...d){r()?.apply(this,d)}),Ee(t,a),at({get onClick(){return r()},set onClick(d){r(d),je()},get icon(){return n()},set icon(d){n(d),je()},get text(){return s()},set text(d){s(d),je()},get styles(){return i()},set styles(d){i(d),je()},$set:ut,$on:(d,h)=>lt(e,d,h)})}var Vae=Le("<label><!></label>");function ep(t,e){if(new.target)return ht({component:ep,...t});const r=Lp(e,["children","$$slots","$$events","$$legacy"]),n=Lp(r,[]);ot(e,!1);var s=Vae();n_(s,()=>({class:"crtw-text-black crtw-text-sm crtw-text-left crtw-leading-1 crtw-pb-2",...n}));var i=Ie(s);return Ai(i,e,"default",{}),Ne(s),Ee(t,s),at({$set:ut,$on:(o,a)=>lt(e,o,a)})}var Dae=Le('<div class="crtw-flex crtw-justify-center"><input type="number" min="0" max="99999" class="crtw-w-full crtw-mb-1.5 phone crtw-border crtw-rounded crtw-px-2 crtw-outline-none crtw-mt-2.5 crtw-h-[50px] crtw-text-xs svelte-1o26kfq" name="code"/></div>');const Wae={hash:"svelte-1o26kfq",code:`input.svelte-1o26kfq::-webkit-outer-spin-button,
670
670
  input.svelte-1o26kfq::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}input[type="number"].svelte-1o26kfq {appearance:textfield;-moz-appearance:textfield;}`};function aA(t,e){if(new.target)return ht({component:aA,...t});ot(e,!1),gc(t,Wae);let r=Ge(e,"value",12),n=Ge(e,"placeholder",12,"Code");var s=Dae(),i=Ie(s);return T3(i),Ne(s),Ye(()=>kt(i,"placeholder",n())),P3(i,r),Ee(t,s),at({get value(){return r()},set value(o){r(o),je()},get placeholder(){return n()},set placeholder(o){n(o),je()},$set:ut,$on:(o,a)=>lt(e,o,a)})}var jae=Le("<!> <!>",1),Gae=Le("<!> <!>",1),zae=Le("<!> <!> <!>",1),$ae=Le('<!> <!> <div class="crtw-mt-4"><!></div>',1);function iL(t,e){if(new.target)return ht({component:iL,...t});ot(e,!1);let r=Ge(e,"options",12),{onBackClick:n,onSubmit:s,pending:i,isLoading:o}=r(),a=De(),c=De();Et();var l=$ae(),u=He(l);zo(u,{text:"Before we start please verify your personal data"});var d=Ue(u,2);_h(d,{children:(g,m)=>{var y=zae(),v=He(y);{var A=B=>{var F=jae(),I=He(F);ep(I,{for:"code",children:(D,M)=>{Jn();var N=Ur();Ye(()=>pt(N,`Enter your code sent to ${Fe(()=>i?.phone)??""}`)),Ee(D,N)},$$slots:{default:!0}});var L=Ue(I,2);aA(L,{placeholder:"SMS Code",get value(){return z(a)},set value(D){Re(a,D)},$$legacy:!0}),Ee(B,F)};Je(v,B=>{Fe(()=>i?.phone)&&B(A)})}var E=Ue(v,2);{var w=B=>{var F=Gae(),I=He(F);ep(I,{for:"code",children:(D,M)=>{Jn();var N=Ur();Ye(()=>pt(N,`Enter your code sent to ${Fe(()=>i?.email)??""}`)),Ee(D,N)},$$slots:{default:!0}});var L=Ue(I,2);aA(L,{placeholder:"Email Code",get value(){return z(c)},set value(D){Re(c,D)},$$legacy:!0}),Ee(B,F)};Je(E,B=>{Fe(()=>i?.email)&&B(w)})}var C=Ue(E,2);{let B=bt(()=>(z(a),z(c),Fe(()=>o||!!(i?.phone&&String(z(a)).length!==6)||!!(i?.email&&String(z(c)).length!==6))));On(C,{text:"Verify",onClick:()=>s({confirmPhoneCode:z(a),confirmEmailCode:z(c)}),get disabled(){return z(B)}})}Ee(g,y)},$$slots:{default:!0}});var h=Ue(d,2),p=Ie(h);return Iw(p,{text:"Update your account details",get onClick(){return n}}),Ne(h),Ee(t,l),at({get options(){return r()},set options(g){r(g),je()},$set:ut,$on:(g,m)=>lt(e,g,m)})}const Hae="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;fill:%23010101;}%20.st1{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3cg%3e%3cpath%20class='st1'%20d='M361.3,161.1c0-5.9-2.3-11.6-6.5-15.8c-4.2-4.2-9.9-6.5-15.8-6.5s-11.6,2.3-15.8,6.5l-73.5,73.5l-73.5-73.5%20c-4.2-4.1-9.8-6.3-15.7-6.3c-5.9,0.1-11.4,2.4-15.6,6.5c-4.1,4.1-6.5,9.7-6.5,15.6c0,5.8,2.2,11.5,6.3,15.7l73.5,73.5l-73.5,73.5%20c-4.1,4.2-6.3,9.8-6.3,15.7c0.1,5.8,2.4,11.4,6.5,15.6c4.1,4.1,9.7,6.5,15.6,6.5c5.8,0.1,11.5-2.2,15.7-6.3l73.5-73.5l73.5,73.5%20c4.2,4.1,9.8,6.3,15.7,6.3c5.8-0.1,11.4-2.4,15.6-6.5c4.1-4.1,6.5-9.7,6.5-15.6c0-5.8-2.2-11.5-6.3-15.7l-73.5-73.5l73.5-73.5%20C359,172.7,361.3,167.1,361.3,161.1L361.3,161.1z'/%3e%3cpath%20class='st1'%20d='M249.8,5C114.3,5,4.5,114.9,4.5,250.4s109.9,245.4,245.4,245.4s245.4-109.9,245.4-245.4S385.3,5,249.8,5%20L249.8,5z%20M173,64.9c24.4-10.1,50.5-15.3,76.8-15.3c53.2,0,104.3,21.2,142,58.8c37.6,37.6,58.8,88.7,58.8,142s-21.2,104.3-58.8,142%20c-37.6,37.6-88.7,58.8-142,58.8c-26.4,0-52.5-5.2-76.8-15.3c-24.4-10.1-46.5-24.9-65.1-43.5c-18.6-18.6-33.4-40.8-43.5-65.1%20c-10.1-24.4-15.3-50.5-15.3-76.8s5.2-52.5,15.3-76.8c10.1-24.4,24.9-46.5,43.5-65.1S148.6,75,173,64.9L173,64.9z'/%3e%3c/g%3e%3c/svg%3e";var Zae=Le('<img class="crtw-w-[90px]" alt="error"/>'),Jae=Le('<img alt="error"/>'),Qae=Le(`<a class="crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer
671
671
  crtw-border-2 crtw-border-black crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium"> </a>`),Yae=Le('<div class="crtw-flex crtw-flex-col crtw-justify-center crtw-items-center"><div class="crtw-mb-6"><!></div> <div class="crtw-text-2xl crtw-uppercase crtw-text-black crtw-font-bold"> </div> <div class="crtw-text-base crtw-text-black crtw-text-center crtw-mb-9"> </div> <!></div> <!> <!>',1);function oL(t,e){if(new.target)return ht({component:oL,...t});ot(e,!1);let r=Ge(e,"options",12),{title:n,description:s,image:i,shouldRenderBackButton:o,onCloseClick:a,primaryActionText:c,openPaymentFunction:l,secondaryAction:u}=r();var d=Yae(),h=He(d),p=Ie(h),g=Ie(p);{var m=M=>{var N=Zae();Ye(()=>kt(N,"src",i)),Ee(M,N)},y=M=>{var N=Jae();Ye(()=>kt(N,"src",Hae)),Ee(M,N)};Je(g,M=>{i?M(m):M(y,!1)})}Ne(p);var v=Ue(p,2),A=Ie(v,!0);Ne(v);var E=Ue(v,2),w=Ie(E,!0);Ne(E);var C=Ue(E,2);{var B=M=>{On(M,{text:"Back to site",get onClick(){return a}})};Je(C,M=>{o!==!1&&M(B)})}Ne(h);var F=Ue(h,2);{var I=M=>{On(M,{get text(){return c},get onClick(){return l}})};Je(F,M=>{c&&l&&M(I)})}var L=Ue(F,2);{var D=M=>{var N=Qae(),P=Ie(N,!0);Ne(N),Ye(()=>{kt(N,"href",Fe(()=>u?.link)),kt(N,"target",Fe(()=>u.openInNewTab?"_blank":"_self")),pt(P,Fe(()=>u?.text))}),Ee(M,N)};Je(L,M=>{Fe(()=>u?.text&&u?.link)&&M(D)})}return Ye(()=>{pt(A,n),pt(w,s)}),Ee(t,d),at({get options(){return r()},set options(M){r(M),je()},$set:ut,$on:(M,N)=>lt(e,M,N)})}var Kae=Le("<!> <!>",1);function aL(t,e){if(new.target)return ht({component:aL,...t});ot(e,!1);let r=Ge(e,"options",12),{title:n,description:s,onClick:i}=r();var o=Kae(),a=He(o);zo(a,{get text(){return n},get description(){return s}});var c=Ue(a,2);return _h(c,{children:(l,u)=>{On(l,{text:"Sign out now",get onClick(){return i}})},$$slots:{default:!0}}),Ee(t,o),at({get options(){return r()},set options(l){r(l),je()},$set:ut,$on:(l,u)=>lt(e,l,u)})}var qae=Le(`<button class="crtw-w-full crtw-text-center crtw-h-11 crtw-font-medium
672
672
  crtw-rounded-sm crtw-text-[13px] sm:crtw-text-sm crtw-items-center crtw-bg-black
@@ -674,7 +674,7 @@ crtw-text-white crtw-mt-[5px] crtw-justify-center crtw-flex"><!></button>`);func
674
674
  event of unusually high traffic, you may have to wait as much as a minute
675
675
  or so. If several minutes pass and you are not seeing your purchase,
676
676
  please contact <a class="crtw-underline" href="mailto:support@credenza3.com">support@credenza3.com</a>.`,1),Rce=Le('<div><div class="crtw-text-black-900 crtw-text-xl md:crtw-text-2xl crtw-font-semibold crtw-pt-5 crtw-mb-3.5 crtw-text-center"> </div> <div class="crtw-mb-3.5 crtw-text-sm crtw-text-justify"> </div> <!> <div class="crtw-mb-3.5 crtw-text-sm crtw-text-justify"><!></div></div>');function gL(t,e){if(new.target)return ht({component:gL,...t});ot(e,!1);let r=Ge(e,"options",12);const{openUI:n}=We(Sr);let{title:s,subtitle:i,orders:o,networkType:a,tokenImage:c,isSui:l}=r();const u=(o??[]).filter(I=>I.tx),d=(o??[]).filter(I=>!I.tx);function h(){var I;if(d.some(N=>N.asset)){const N=d.filter(P=>P.asset).map(P=>({packageId:P.asset.packageId,type:P.asset.type,assetId:P.asset.assetId,amount:P.asset.amount}));if(!N.length)return;n(Xe.PAYMENT,{subtitle:"Retrying failed orders",payments:{credenzaStoredValue:{disabled:!1}},assets:N});return}const D=[],M=[];for(const N of d){const P=N.directive;P.type!=="membership"?D.push({contractAddress:P.resource_id,tokenId:(I=P.value)===null||I===void 0?void 0:I.token_id,amount:P.value.amount}):M.push({contractAddress:P.resource_id})}!D.length&&!M.length||n(Xe.PAYMENT,{subtitle:"Retrying failed orders",payments:{credenzaStoredValue:{disabled:!1}},tokens:D,memberships:M})}Et();var p=Rce(),g=Ie(p),m=Ie(g,!0);Ne(g);var y=Ue(g,2),v=Ie(y,!0);Ne(y);var A=Ue(y,2);{var E=I=>{var L=bce(),D=Ie(L),M=Ie(D);Ne(D),Ne(L),Ye(()=>kt(M,"src",c)),Ee(I,L)};Je(A,I=>{c&&I(E)})}var w=Ue(A,2),C=Ie(w);{var B=I=>{var L=Sce(),D=Ue(Ie(L),2);Mp(D,1,()=>u,Up,(j,Z)=>{var K=nt(),$=He(K);{var Y=q=>{var te=kce(),ie=Ie(te),ye=Ie(ie),_e=Ie(ye);{var Te=le=>{var we=Ur();Ye(()=>pt(we,(z(Z),Fe(()=>z(Z).metadata.name)))),Ee(le,we)},oe=le=>{var we=wce(),W=He(we),ue=Ie(W,!0);Ne(W);var me=Ue(W,2),be=Ie(me);Ne(me),Ye(()=>{pt(ue,(z(Z),Fe(()=>z(Z).directive.type))),pt(be,`(${z(Z),Fe(()=>z(Z).directive.resource_id)??""})`)}),Ee(le,we)};Je(_e,le=>{z(Z),Fe(()=>z(Z).metadata?.name)?le(Te):le(oe,!1)})}Ne(ye),Ne(ie),Ne(te),Ye(le=>kt(ie,"href",le),[()=>($e(pL),z(Z),Fe(()=>pL({chainId:z(Z).directive?.chain_id||""},z(Z).tx,z(Z).directive.chain_type,a||"")))]),Ee(q,te)};Je($,q=>{z(Z),Fe(()=>z(Z).tx)&&q(Y)})}Ee(j,K)});var M=Ue(D,2);let N;var P=Ue(M,2);{var U=j=>{var Z=nt(),K=He(Z);Mp(K,1,()=>d,Up,($,Y)=>{var q=_ce(),te=Ie(q),ie=Ie(te);{var ye=Te=>{var oe=Ur();Ye(()=>pt(oe,(z(Y),Fe(()=>z(Y).metadata.name)))),Ee(Te,oe)},_e=Te=>{var oe=nt(),le=He(oe);{var we=ue=>{var me=Ece(),be=He(me),re=Ie(be,!0);Ne(be);var x=Ue(be,2),G=Ie(x);Ne(x),Ye(()=>{pt(re,(z(Y),Fe(()=>z(Y).directive.type))),pt(G,`(${z(Y),Fe(()=>z(Y).directive.resource_id)??""})`)}),Ee(ue,me)},W=ue=>{var me=nt(),be=He(me);{var re=G=>{var ee=Ur();Ye(()=>pt(ee,`AssetId ${z(Y),Fe(()=>z(Y).asset.assetId)??""} : ${z(Y),Fe(()=>z(Y).error)??""}`)),Ee(G,ee)},x=G=>{var ee=Ace(),fe=He(ee),Ae=Ie(fe,!0);Ne(fe);var Ce=Ue(fe,2),J=Ie(Ce);Ne(Ce),Ye(()=>{pt(Ae,(z(Y),Fe(()=>z(Y).asset?.type))),pt(J,`(${z(Y),Fe(()=>z(Y).asset?.packageId)??""}) : ${z(Y),Fe(()=>z(Y).error)??""}`)}),Ee(G,ee)};Je(be,G=>{z(Y),Fe(()=>z(Y).asset?.assetId)?G(re):G(x,!1)},!0)}Ee(ue,me)};Je(le,ue=>{z(Y),Fe(()=>z(Y).directive?.type)?ue(we):ue(W,!1)},!0)}Ee(Te,oe)};Je(ie,Te=>{z(Y),Fe(()=>z(Y).metadata?.name)?Te(ye):Te(_e,!1)})}Ne(te),Ne(q),Ee($,q)}),Ee(j,Z)};Je(P,j=>{Fe(()=>d.length)&&j(U)})}var O=Ue(P,2);Ne(L),Ye(j=>N=Lr(M,1,"crtw-text-lg crtw-font-semibold crtw-mt-6 crtw-mb-2",null,N,j),[()=>({hidden:!d.length})]),un("click",O,h),Ee(I,L)},F=I=>{var L=nt(),D=He(L);{var M=P=>{var U=Cce();Jn(2),Ee(P,U)},N=P=>{var U=Tce();Jn(2),Ee(P,U)};Je(D,P=>{l?P(M):P(N,!1)},!0)}Ee(I,L)};Je(C,I=>{Fe(()=>o.length)?I(B):I(F,!1)})}return Ne(w),Ne(p),Ye(()=>{pt(m,s),pt(v,i)}),Ee(t,p),at({get options(){return r()},set options(I){r(I),je()},$set:ut,$on:(I,L)=>lt(e,I,L)})}const Ow="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2013C12.5523%2013%2013%2012.5523%2013%2012V3C13%202.44771%2012.5523%202%2012%202H3C2.44771%202%202%202.44771%202%203V6.5C2%206.77614%202.22386%207%202.5%207C2.77614%207%203%206.77614%203%206.5V3H12V12H8.5C8.22386%2012%208%2012.2239%208%2012.5C8%2012.7761%208.22386%2013%208.5%2013H12ZM9%206.5C9%206.5001%209%206.50021%209%206.50031V6.50035V9.5C9%209.77614%208.77614%2010%208.5%2010C8.22386%2010%208%209.77614%208%209.5V7.70711L2.85355%2012.8536C2.65829%2013.0488%202.34171%2013.0488%202.14645%2012.8536C1.95118%2012.6583%201.95118%2012.3417%202.14645%2012.1464L7.29289%207H5.5C5.22386%207%205%206.77614%205%206.5C5%206.22386%205.22386%206%205.5%206H8.5C8.56779%206%208.63244%206.01349%208.69139%206.03794C8.74949%206.06198%208.80398%206.09744%208.85143%206.14433C8.94251%206.23434%208.9992%206.35909%208.99999%206.49708L8.99999%206.49738'%20fill='currentColor'/%3e%3c/svg%3e",Pce="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiP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4xMHZ2T0IrRwpnVWlyWG9ST3ZYYzIyKzJjRytZbQoJXV0+CjwvaTphaXBnZj4KPC9zdmc+Cg==",mL="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2026.4.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500.4%20500'%20style='enable-background:new%200%200%20500.4%20500;'%20xml:space='preserve'%3e%3cpath%20d='M483.4,203.3c-49.2,31.1-45.4,30.9-89.9-4c29.8,48.7,30.1,43-4,89.9c51.2-30.5,42.9-32.4,90,4%20C448.8,242.1,448.8,251.7,483.4,203.3z'/%3e%3cpath%20d='M278.9,355.1c-56.3,38.4-51.5,37.5-106.1-1.5c36.3,55.7,37.2,49.9-1.5,106.1c59.1-37.6,48.9-39,106.1,1.5%20C239.8,402.1,239.6,413.4,278.9,355.1z'/%3e%3cpath%20d='M500.4,493.4v-72.9C431,412.6,383.5,353.3,335,280.1c-42.9-64.7-24.7-75.1,45.5-191.9c-136.8,104.4-126.2,102.6-268.1,9.2%20c98.6,136.9,99.7,119.8,9.2,268.1c110.6-78.7,121.1-99.4,186.4-62.7c101,58.1,135.8,125,137,197.4l55.4-0.2V493.4z'/%3e%3c/svg%3e";var xce=Le('<a target="_blank" title="View on Passport" class="crtw-flex crtw-items-center crtw-justify-start crtw-w-full crtw-border crtw-border-gray-300 crtw-p-2.5 crtw-no-underline crtw-text-gray-600" rel="noreferrer"><img class="crtw-h-7 crtw-mr-14" alt=""/> <div class="crtw-flex crtw-w-full crtw-justify-between"><span>View on Passport</span> <img alt=""/></div></a>'),Nce=Le('<a target="_blank" title="View in the block explorer" class="crtw-flex crtw-items-center crtw-justify-start crtw-w-full crtw-border crtw-border-gray-300 crtw-p-2.5 crtw-no-underline crtw-text-gray-600" rel="noreferrer"><img class="crtw-h-7 crtw-mr-14" alt=""/> <div class="crtw-flex crtw-w-full crtw-justify-between"><span> </span> <img alt=""/></div></a>'),Ice=Le('<a target="_blank" title="View assets" class="crtw-flex crtw-items-center crtw-justify-start crtw-w-full crtw-border crtw-border-gray-300 crtw-p-2.5 crtw-no-underline crtw-text-gray-600" rel="noreferrer"><img class="crtw-h-7 crtw-mr-14" alt=""/> <div class="crtw-flex crtw-w-full crtw-justify-between"><span>View assets on OpenSea</span> <img alt=""/></div></a>'),Oce=Le('<a target="_blank" title="GitBook docs" class="crtw-flex crtw-items-center crtw-justify-start crtw-w-full crtw-border crtw-border-gray-300 crtw-p-2.5 crtw-no-underline crtw-text-gray-600" rel="noreferrer"><img class="crtw-h-7 crtw-mr-14" alt=""/> <div class="crtw-flex crtw-w-full crtw-justify-between"><span>GitBook docs</span> <img alt=""/></div></a>'),Bce=Le('<!> <div class="crtw-flex crtw-flex-col crtw-w-full crtw-mt-9 crtw-gap-9"><!> <div class="crtw-flex crtw-flex-col crtw-w-full crtw-items-center crtw-gap-2.5"><!> <!> <!> <!></div> <div class="crtw-flex crtw-flex-col crtw-justify-center crtw-items-center crtw-gap-4"><!> <!></div></div>',1);function yL(t,e){if(new.target)return ht({component:yL,...t});ot(e,!1);const r=De(),n=De(),s=De();let i=Ge(e,"options",12),{gitbookToken:o,onSignOut:a,onUpdateProfile:c,gitbookUrl:l,userAddress:u,storedValueAlias:d}=i();gt(()=>$e(i()),()=>{Re(r,i().links)}),gt(()=>$e(i()),()=>{Re(n,i().balance)}),gt(()=>$e(i()),()=>{Re(s,i().userData)}),mr(),Et();var h=Bce(),p=He(h);zo(p,{text:"Account Details"});var g=Ue(p,2),m=Ie(g);{let N=bt(()=>({userAddress:u,userData:z(s),storedValueAlias:d,balance:z(n)}));cA(m,{get options(){return z(N)}})}var y=Ue(m,2),v=Ie(y);{var A=N=>{var P=xce(),U=Ie(P),O=Ue(U,2),j=Ue(Ie(O),2);Ne(O),Ne(P),Ye(()=>{kt(P,"href",(z(r),Fe(()=>z(r).passportLink))),kt(U,"src",mL),kt(j,"src",Ow)}),Ee(N,P)};Je(v,N=>{z(r),Fe(()=>z(r)?.passportLink)&&N(A)})}var E=Ue(v,2);{var w=N=>{var P=Nce(),U=Ie(P),O=Ue(U,2),j=Ie(O),Z=Ie(j);Ne(j);var K=Ue(j,2);Ne(O),Ne(P),Ye(()=>{kt(P,"href",(z(r),Fe(()=>z(r).scanLink))),kt(U,"src",(z(r),Fe(()=>z(r).scanIcon))),pt(Z,`View in ${z(r),Fe(()=>z(r).scanName||"Etherscan")??""}`),kt(K,"src",Ow)}),Ee(N,P)};Je(E,N=>{z(r),Fe(()=>z(r)?.scanLink&&z(r)?.scanIcon)&&N(w)})}var C=Ue(E,2);{var B=N=>{var P=Ice(),U=Ie(P),O=Ue(U,2),j=Ue(Ie(O),2);Ne(O),Ne(P),Ye(()=>{kt(P,"href",(z(r),Fe(()=>z(r).nftsLink))),kt(U,"src",(z(r),Fe(()=>z(r).nftsIcon))),kt(j,"src",Ow)}),Ee(N,P)};Je(C,N=>{z(r),Fe(()=>z(r)?.nftsLink&&z(r)?.nftsIcon)&&N(B)})}var F=Ue(C,2);{var I=N=>{var P=Oce(),U=Ie(P),O=Ue(U,2),j=Ue(Ie(O),2);Ne(O),Ne(P),Ye(()=>{kt(P,"href",`${l}?jwt_token=${o}`),kt(U,"src",Pce),kt(j,"src",Ow)}),Ee(N,P)};Je(F,N=>{o&&N(I)})}Ne(y);var L=Ue(y,2),D=Ie(L);Iw(D,{text:"Update your account details",get onClick(){return c}});var M=Ue(D,2);return On(M,{text:"Sign Out",get onClick(){return a}}),Ne(L),Ne(g),Ee(t,h),at({get options(){return i()},set options(N){i(N),je()},$set:ut,$on:(N,P)=>lt(e,N,P)})}var Uce=Le('<div class="crtw-w-full crtw-h-64 crtw-rounded-[10px] crtw-flex crtw-items-center crtw-justify-center" style="background-color: rgb(238, 238, 238)"><!></div>'),Mce=Le('<!> <div class="crtw-w-full"><!> <div id="cpuiScanner" style="background-color: rgb(238, 238, 238)"></div></div>',1);function vL(t,e){if(new.target)return ht({component:vL,...t});ot(e,!1);const r=De();let n=Ge(e,"options",12);gt(()=>$e(n()),()=>{Re(r,n().isScannerLoaded)}),mr(),Et();var s=Mce(),i=He(s);zo(i,{text:"Scan PassScan Code"});var o=Ue(i,2),a=Ie(o);{var c=d=>{var h=Uce(),p=Ie(h);Sh(p,{}),Ne(h),Ee(d,h)};Je(a,d=>{z(r)||d(c)})}var l=Ue(a,2);let u;return Ne(o),Ye(d=>u=Lr(l,1,"crtw-w-full crtw-h-64 crtw-rounded-lg crtw-flex crtw-items-center crtw-justify-center",null,u,d),[()=>({"crtw-hidden":!z(r)})]),Ee(t,s),at({get options(){return n()},set options(d){n(d),je()},$set:ut,$on:(d,h)=>lt(e,d,h)})}const Fce="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6.407'%20height='10.251'%20viewBox='612.753%20464%206.407%2010.251'%3e%3cpath%20d='m617.951%20464%201.209%201.208-3.99%203.92%203.99%203.915-1.209%201.208-5.198-5.124L617.95%20464Z'%20fill-rule='evenodd'%20data-name='iconmonstr-arrow-64'/%3e%3c/svg%3e";function Bw(t,e){if(new.target)return ht({component:Bw,...t});ot(e,!1);let r=Ge(e,"onClick",12);return Iw(t,{get icon(){return Fce},get onClick(){return r()},text:"Back"}),at({get onClick(){return r()},set onClick(n){r(n),je()},$set:ut,$on:(n,s)=>lt(e,n,s)})}var Lce=Le("<input/>");const Vce={hash:"svelte-9zbwls",code:`.phone.svelte-9zbwls {appearance:textfield;&::-webkit-outer-spin-button,
677
- &::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}}`};function tp(t,e){if(new.target)return ht({component:tp,...t});const r=Lp(e,["children","$$slots","$$events","$$legacy"]),n=Lp(r,["isPhone","isValid","value"]);ot(e,!1),gc(t,Vce);let s=Ge(e,"isPhone",12,!1),i=Ge(e,"isValid",12,!0),o=Ge(e,"value",12,null);var a=Lce();return T3(a),n9(a,c=>({class:"crtw-bg-white crtw-w-full crtw-h-[53px] crtw-text-xs crtw-text-[#121e2b] crtw-border crtw-border-[#d9d9d9] crtw-rounded crtw-px-2.5 crtw-py-0 crtw-placeholder-[#d9d9d9] focus:crtw-border-[#121e2b] focus:crtw-outline-none disabled:crtw-bg-[#d9d9d9]",...n,[jh]:c}),[()=>({phone:s(),"crtw-border-[#990008]":!i(),"focus:crtw-border-[#990008]":!i()})],void 0,"svelte-9zbwls"),P3(a,o),Ee(t,a),at({get isPhone(){return s()},set isPhone(c){s(c),je()},get isValid(){return i()},set isValid(c){i(c),je()},get value(){return o()},set value(c){o(c),je()},$set:ut,$on:(c,l)=>lt(e,c,l)})}const bL="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20none;%20stroke-width:%200;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpolygon%20points='86.06,86.06%2062.17,86.06%2062.17,77.28%2077.28,77.28%2077.28,62.17%2086.06,62.17%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3cpolygon%20points='27.83,86.06%203.94,86.06%203.94,62.17%2012.72,62.17%2012.72,77.28%2027.83,77.28%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3cpolygon%20points='12.72,27.83%203.94,27.83%203.94,3.94%2027.83,3.94%2027.83,12.72%2012.72,12.72%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3cpolygon%20points='86.06,27.83%2077.28,27.83%2077.28,12.72%2062.17,12.72%2062.17,3.94%2086.06,3.94%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3crect%20x='0'%20y='40.61'%20rx='0'%20ry='0'%20width='90'%20height='8.78'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3c/g%3e%3c/svg%3e",_m=(t,e)=>t.toLowerCase()==="cred"?e:t;var Dce=Le('<div>ChainId: <span class="crtw-font-bold"> </span></div>'),Wce=Le('<label class="crtw-text-[10px] crtw-text-warningTextColor cpui-send-tokens-validation-message" for="recipientAddress">Provided address is not valid.</label>'),jce=Le('<div class="crtw-ml-2.5 crtw-w-16 crtw-min-w-16"><!></div>'),Gce=Le('<!> <div class="crtw-w-full crtw-p-0 crtw-relative"><div id="cpuiCredScanner"></div> <!> <div>Your balance: <span class="crtw-font-bold"><!> </span></div> <div class="crtw-mb-2.5 crtw-flex crtw-items-start crtw-justify-between crtw-w-full"><div class="crtw-flex crtw-flex-col crtw-w-full"><!> <!></div> <div class="crtw-ml-2.5 crtw-cursor-pointer"><img width="53px" alt="" class="crtw-h-[53px]"/></div></div> <div class="crtw-mb-2.5 crtw-flex crtw-items-start crtw-justify-between crtw-w-full"><!> <div class="crtw-ml-2.5 crtw-w-16 crtw-min-w-16"><!></div> <!></div> <!></div> <div class="crtw-mt-0.5 crtw-mb-3 crtw-w-full"><!></div>',1);function wL(t,e){if(new.target)return ht({component:wL,...t});ot(e,!1);const r=De(),n=De(),s=De(),i=De(),o=De(),a=De(),c=De(),l=De(),u=De(),d=De();let h=Ge(e,"recipientAddress",12),p=Ge(e,"amount",12),g=Ge(e,"options",12),{onChangeCurrency:m,onSetMaxAmount:y,onBackClicked:v,onSendTokens:A,title:E,chainId:w,onScannerClicked:C,credAlias:B,isNativeCurrecyTransferAllowed:F=!0}=g();const I=ee=>Math.floor(ee*100)/100;gt(()=>$e(g()),()=>{Re(r,g().balance)}),gt(()=>$e(g()),()=>{Re(n,g().isLoading)}),gt(()=>$e(g()),()=>{Re(s,g().isSubmitDisabled)}),gt(()=>$e(g()),()=>{Re(i,g().isRecipientAddressValid)}),gt(()=>$e(g()),()=>{Re(o,g().isScannerHidden)}),gt(()=>$e(g()),()=>{Re(a,g().activeCurrency)}),gt(()=>$e(g()),()=>{Re(c,g().symbol)}),gt(()=>$e(g()),()=>{Re(l,g().nativeSymbol)}),gt(()=>$e(g()),()=>{Re(u,g().nativeBalance)}),gt(()=>z(a),()=>{Re(d,_m(z(a),B))}),mr(),Et();var L=Gce(),D=He(L);{let ee=bt(()=>z(o)?"":"Scan Passport Id");zo(D,{get text(){return E},get description(){return z(ee)}})}var M=Ue(D,2),N=Ie(M);let P;var U=Ue(N,2);{var O=ee=>{var fe=Dce(),Ae=Ue(Ie(fe)),Ce=Ie(Ae,!0);Ne(Ae),Ne(fe),Ye(()=>pt(Ce,w)),Ee(ee,fe)};Je(U,ee=>{w&&ee(O)})}var j=Ue(U,2),Z=Ue(Ie(j)),K=Ie(Z);{var $=ee=>{var fe=Ur();Ye(Ae=>pt(fe,`${Ae??""} ${z(l)??""} /`),[()=>(z(u),Fe(()=>I(+z(u))))]),Ee(ee,fe)};Je(K,ee=>{F&&ee($)})}var Y=Ue(K);Ne(Z),Ne(j);var q=Ue(j,2),te=Ie(q),ie=Ie(te);tp(ie,{name:"recipientAddress",type:"text",placeholder:"Address 0x...",get value(){return h()},set value(ee){h(ee)},$$legacy:!0});var ye=Ue(ie,2);{var _e=ee=>{var fe=Wce();Ee(ee,fe)};Je(ye,ee=>{h()&&!z(i)&&ee(_e)})}Ne(te);var Te=Ue(te,2),oe=Ie(Te);Ne(Te),Ne(q);var le=Ue(q,2),we=Ie(le);{let ee=bt(()=>`${z(d)} amount`);tp(we,{type:"number",min:"0",step:"0.001",get placeholder(){return z(ee)},get value(){return p()},set value(fe){p(fe)},$$legacy:!0})}var W=Ue(we,2),ue=Ie(W);{let ee=bt(()=>+z(r)<=0);On(ue,{get onClick(){return y},text:"MAX",get disabled(){return z(ee)}})}Ne(W);var me=Ue(W,2);{var be=ee=>{var fe=jce(),Ae=Ie(fe);{let Ce=bt(()=>!z(a));On(Ae,{get onClick(){return m},get text(){return z(d)},get disabled(){return z(Ce)}})}Ne(fe),Ee(ee,fe)};Je(me,ee=>{F&&ee(be)})}Ne(le);var re=Ue(le,2);{let ee=bt(()=>`Send ${p()||""} ${z(d)}`);On(re,{get onClick(){return A},get text(){return z(ee)},get isLoading(){return z(n)},get disabled(){return z(s)}})}Ne(M);var x=Ue(M,2),G=Ie(x);return Bw(G,{get onClick(){return v}}),Ne(x),Ye((ee,fe,Ae)=>{P=Lr(N,1,"crtw-absolute crtw-top-0 crtw-bottom-0 crtw-left-0 crtw-right-0 crtw-z-10 crtw-border crtw-border-gray-300 crtw-rounded-lg crtw-backdrop-blur-lg",null,P,ee),pt(Y,` ${fe??""} ${Ae??""}`),kt(oe,"src",bL)},[()=>({"crtw-hidden":z(o),"crtw-z-[-1]":z(o)}),()=>(z(r),Fe(()=>I(+z(r)))),()=>($e(_m),z(c),Fe(()=>_m(z(c),B)))]),un("click",oe,C),Ee(t,L),at({get recipientAddress(){return h()},set recipientAddress(ee){h(ee),je()},get amount(){return p()},set amount(ee){p(ee),je()},get options(){return g()},set options(ee){g(ee),je()},$set:ut,$on:(ee,fe)=>lt(e,ee,fe)})}var zce=Le('<label class="crtw-font-medium" for="credenzaSelect"> </label>'),$ce=Le("<option> </option>"),Hce=Le("<option> </option>"),Zce=Le('<div><!> <select name="credenzaSelect"><!><!></select></div>');const Jce={hash:"svelte-1dzo0ix",code:".simple.svelte-1dzo0ix {background-image:none;padding:0 10px;text-align:center;}.simple.svelte-1dzo0ix:focus {background-image:none;}"};function kL(t,e){if(new.target)return ht({component:kL,...t});ot(e,!1),gc(t,Jce);let r=Ge(e,"options",12),n=Ge(e,"placeholder",12,void 0),s=Ge(e,"label",12,void 0),i=Ge(e,"selected",12,void 0),o=Ge(e,"onChange",12,void 0),a=Ge(e,"simple",12,!1),c=Ge(e,"disabled",12,!1);const l=v=>{const A=v.target;i()!==void 0&&i(A.value),o()&&o()(v)};Et();var u=Zce(),d=Ie(u);{var h=v=>{var A=zce(),E=Ie(A,!0);Ne(A),Ye(()=>pt(E,s())),Ee(v,A)};Je(d,v=>{s()&&v(h)})}var p=Ue(d,2),g=Ie(p);{var m=v=>{var A=$ce();A.disabled=!0,A.hidden=!0;var E=Ie(A,!0);Ne(A);var w={};Ye(()=>{R3(A,!i()),pt(E,n()),w!==(w=n())&&(A.value=(A.__value=n())??"")}),Ee(v,A)};Je(g,v=>{n()&&v(m)})}var y=Ue(g);return Mp(y,1,r,Up,(v,A)=>{var E=Hce(),w=Ie(E,!0);Ne(E);var C={};Ye(()=>{R3(E,($e(i()),z(A),Fe(()=>i()===z(A).value))),pt(w,(z(A),Fe(()=>z(A).name??z(A).value))),C!==(C=(z(A),Fe(()=>z(A).value)))&&(E.value=(E.__value=(z(A),Fe(()=>z(A).value)))??"")}),Ee(v,E)}),Ne(p),Ne(u),Ye(()=>{Lr(p,1,`crtw-w-full crtw-h-[53px] crtw-px-5 crtw-appearance-none crtw-text-base crtw-rounded crtw-border crtw-border-gray-300
677
+ &::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}}`};function tp(t,e){if(new.target)return ht({component:tp,...t});const r=Lp(e,["children","$$slots","$$events","$$legacy"]),n=Lp(r,["isPhone","isValid","value"]);ot(e,!1),gc(t,Vce);let s=Ge(e,"isPhone",12,!1),i=Ge(e,"isValid",12,!0),o=Ge(e,"value",12,null);var a=Lce();return T3(a),n_(a,c=>({class:"crtw-bg-white crtw-w-full crtw-h-[53px] crtw-text-xs crtw-text-[#121e2b] crtw-border crtw-border-[#d9d9d9] crtw-rounded crtw-px-2.5 crtw-py-0 crtw-placeholder-[#d9d9d9] focus:crtw-border-[#121e2b] focus:crtw-outline-none disabled:crtw-bg-[#d9d9d9]",...n,[jh]:c}),[()=>({phone:s(),"crtw-border-[#990008]":!i(),"focus:crtw-border-[#990008]":!i()})],void 0,"svelte-9zbwls"),P3(a,o),Ee(t,a),at({get isPhone(){return s()},set isPhone(c){s(c),je()},get isValid(){return i()},set isValid(c){i(c),je()},get value(){return o()},set value(c){o(c),je()},$set:ut,$on:(c,l)=>lt(e,c,l)})}const bL="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20none;%20stroke-width:%200;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpolygon%20points='86.06,86.06%2062.17,86.06%2062.17,77.28%2077.28,77.28%2077.28,62.17%2086.06,62.17%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3cpolygon%20points='27.83,86.06%203.94,86.06%203.94,62.17%2012.72,62.17%2012.72,77.28%2027.83,77.28%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3cpolygon%20points='12.72,27.83%203.94,27.83%203.94,3.94%2027.83,3.94%2027.83,12.72%2012.72,12.72%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3cpolygon%20points='86.06,27.83%2077.28,27.83%2077.28,12.72%2062.17,12.72%2062.17,3.94%2086.06,3.94%20'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3crect%20x='0'%20y='40.61'%20rx='0'%20ry='0'%20width='90'%20height='8.78'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'/%3e%3c/g%3e%3c/svg%3e",_m=(t,e)=>t.toLowerCase()==="cred"?e:t;var Dce=Le('<div>ChainId: <span class="crtw-font-bold"> </span></div>'),Wce=Le('<label class="crtw-text-[10px] crtw-text-warningTextColor cpui-send-tokens-validation-message" for="recipientAddress">Provided address is not valid.</label>'),jce=Le('<div class="crtw-ml-2.5 crtw-w-16 crtw-min-w-16"><!></div>'),Gce=Le('<!> <div class="crtw-w-full crtw-p-0 crtw-relative"><div id="cpuiCredScanner"></div> <!> <div>Your balance: <span class="crtw-font-bold"><!> </span></div> <div class="crtw-mb-2.5 crtw-flex crtw-items-start crtw-justify-between crtw-w-full"><div class="crtw-flex crtw-flex-col crtw-w-full"><!> <!></div> <div class="crtw-ml-2.5 crtw-cursor-pointer"><img width="53px" alt="" class="crtw-h-[53px]"/></div></div> <div class="crtw-mb-2.5 crtw-flex crtw-items-start crtw-justify-between crtw-w-full"><!> <div class="crtw-ml-2.5 crtw-w-16 crtw-min-w-16"><!></div> <!></div> <!></div> <div class="crtw-mt-0.5 crtw-mb-3 crtw-w-full"><!></div>',1);function wL(t,e){if(new.target)return ht({component:wL,...t});ot(e,!1);const r=De(),n=De(),s=De(),i=De(),o=De(),a=De(),c=De(),l=De(),u=De(),d=De();let h=Ge(e,"recipientAddress",12),p=Ge(e,"amount",12),g=Ge(e,"options",12),{onChangeCurrency:m,onSetMaxAmount:y,onBackClicked:v,onSendTokens:A,title:E,chainId:w,onScannerClicked:C,credAlias:B,isNativeCurrecyTransferAllowed:F=!0}=g();const I=ee=>Math.floor(ee*100)/100;gt(()=>$e(g()),()=>{Re(r,g().balance)}),gt(()=>$e(g()),()=>{Re(n,g().isLoading)}),gt(()=>$e(g()),()=>{Re(s,g().isSubmitDisabled)}),gt(()=>$e(g()),()=>{Re(i,g().isRecipientAddressValid)}),gt(()=>$e(g()),()=>{Re(o,g().isScannerHidden)}),gt(()=>$e(g()),()=>{Re(a,g().activeCurrency)}),gt(()=>$e(g()),()=>{Re(c,g().symbol)}),gt(()=>$e(g()),()=>{Re(l,g().nativeSymbol)}),gt(()=>$e(g()),()=>{Re(u,g().nativeBalance)}),gt(()=>z(a),()=>{Re(d,_m(z(a),B))}),mr(),Et();var L=Gce(),D=He(L);{let ee=bt(()=>z(o)?"":"Scan Passport Id");zo(D,{get text(){return E},get description(){return z(ee)}})}var M=Ue(D,2),N=Ie(M);let P;var U=Ue(N,2);{var O=ee=>{var fe=Dce(),Ae=Ue(Ie(fe)),Ce=Ie(Ae,!0);Ne(Ae),Ne(fe),Ye(()=>pt(Ce,w)),Ee(ee,fe)};Je(U,ee=>{w&&ee(O)})}var j=Ue(U,2),Z=Ue(Ie(j)),K=Ie(Z);{var $=ee=>{var fe=Ur();Ye(Ae=>pt(fe,`${Ae??""} ${z(l)??""} /`),[()=>(z(u),Fe(()=>I(+z(u))))]),Ee(ee,fe)};Je(K,ee=>{F&&ee($)})}var Y=Ue(K);Ne(Z),Ne(j);var q=Ue(j,2),te=Ie(q),ie=Ie(te);tp(ie,{name:"recipientAddress",type:"text",placeholder:"Address 0x...",get value(){return h()},set value(ee){h(ee)},$$legacy:!0});var ye=Ue(ie,2);{var _e=ee=>{var fe=Wce();Ee(ee,fe)};Je(ye,ee=>{h()&&!z(i)&&ee(_e)})}Ne(te);var Te=Ue(te,2),oe=Ie(Te);Ne(Te),Ne(q);var le=Ue(q,2),we=Ie(le);{let ee=bt(()=>`${z(d)} amount`);tp(we,{type:"number",min:"0",step:"0.001",get placeholder(){return z(ee)},get value(){return p()},set value(fe){p(fe)},$$legacy:!0})}var W=Ue(we,2),ue=Ie(W);{let ee=bt(()=>+z(r)<=0);On(ue,{get onClick(){return y},text:"MAX",get disabled(){return z(ee)}})}Ne(W);var me=Ue(W,2);{var be=ee=>{var fe=jce(),Ae=Ie(fe);{let Ce=bt(()=>!z(a));On(Ae,{get onClick(){return m},get text(){return z(d)},get disabled(){return z(Ce)}})}Ne(fe),Ee(ee,fe)};Je(me,ee=>{F&&ee(be)})}Ne(le);var re=Ue(le,2);{let ee=bt(()=>`Send ${p()||""} ${z(d)}`);On(re,{get onClick(){return A},get text(){return z(ee)},get isLoading(){return z(n)},get disabled(){return z(s)}})}Ne(M);var x=Ue(M,2),G=Ie(x);return Bw(G,{get onClick(){return v}}),Ne(x),Ye((ee,fe,Ae)=>{P=Lr(N,1,"crtw-absolute crtw-top-0 crtw-bottom-0 crtw-left-0 crtw-right-0 crtw-z-10 crtw-border crtw-border-gray-300 crtw-rounded-lg crtw-backdrop-blur-lg",null,P,ee),pt(Y,` ${fe??""} ${Ae??""}`),kt(oe,"src",bL)},[()=>({"crtw-hidden":z(o),"crtw-z-[-1]":z(o)}),()=>(z(r),Fe(()=>I(+z(r)))),()=>($e(_m),z(c),Fe(()=>_m(z(c),B)))]),un("click",oe,C),Ee(t,L),at({get recipientAddress(){return h()},set recipientAddress(ee){h(ee),je()},get amount(){return p()},set amount(ee){p(ee),je()},get options(){return g()},set options(ee){g(ee),je()},$set:ut,$on:(ee,fe)=>lt(e,ee,fe)})}var zce=Le('<label class="crtw-font-medium" for="credenzaSelect"> </label>'),$ce=Le("<option> </option>"),Hce=Le("<option> </option>"),Zce=Le('<div><!> <select name="credenzaSelect"><!><!></select></div>');const Jce={hash:"svelte-1dzo0ix",code:".simple.svelte-1dzo0ix {background-image:none;padding:0 10px;text-align:center;}.simple.svelte-1dzo0ix:focus {background-image:none;}"};function kL(t,e){if(new.target)return ht({component:kL,...t});ot(e,!1),gc(t,Jce);let r=Ge(e,"options",12),n=Ge(e,"placeholder",12,void 0),s=Ge(e,"label",12,void 0),i=Ge(e,"selected",12,void 0),o=Ge(e,"onChange",12,void 0),a=Ge(e,"simple",12,!1),c=Ge(e,"disabled",12,!1);const l=v=>{const A=v.target;i()!==void 0&&i(A.value),o()&&o()(v)};Et();var u=Zce(),d=Ie(u);{var h=v=>{var A=zce(),E=Ie(A,!0);Ne(A),Ye(()=>pt(E,s())),Ee(v,A)};Je(d,v=>{s()&&v(h)})}var p=Ue(d,2),g=Ie(p);{var m=v=>{var A=$ce();A.disabled=!0,A.hidden=!0;var E=Ie(A,!0);Ne(A);var w={};Ye(()=>{R3(A,!i()),pt(E,n()),w!==(w=n())&&(A.value=(A.__value=n())??"")}),Ee(v,A)};Je(g,v=>{n()&&v(m)})}var y=Ue(g);return Mp(y,1,r,Up,(v,A)=>{var E=Hce(),w=Ie(E,!0);Ne(E);var C={};Ye(()=>{R3(E,($e(i()),z(A),Fe(()=>i()===z(A).value))),pt(w,(z(A),Fe(()=>z(A).name??z(A).value))),C!==(C=(z(A),Fe(()=>z(A).value)))&&(E.value=(E.__value=(z(A),Fe(()=>z(A).value)))??"")}),Ee(v,E)}),Ne(p),Ne(u),Ye(()=>{Lr(p,1,`crtw-w-full crtw-h-[53px] crtw-px-5 crtw-appearance-none crtw-text-base crtw-rounded crtw-border crtw-border-gray-300
678
678
  crtw-cursor-pointer crtw-text-gray-500 focus:crtw-outline-none focus:crtw-border-blue-900 focus:crtw-text-blue-900
679
679
  ${a()?"simple":""}`,"svelte-1dzo0ix"),p.disabled=c()}),un("change",p,l),Ee(t,u),at({get options(){return r()},set options(v){r(v),je()},get placeholder(){return n()},set placeholder(v){n(v),je()},get label(){return s()},set label(v){s(v),je()},get selected(){return i()},set selected(v){i(v),je()},get onChange(){return o()},set onChange(v){o(v),je()},get simple(){return a()},set simple(v){a(v),je()},get disabled(){return c()},set disabled(v){c(v),je()},$set:ut,$on:(v,A)=>lt(e,v,A)})}const Qce=/^\d{7,14}$/,Yce=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,EL=(t,e=Yce)=>e.test(t),Kce=t=>{if(!t)return!1;try{return!!new URL(t)}catch{return!1}},lA=[{value:"+1",name:"US/CA +1"},{value:"+49",name:"DE +49"},{value:"+33",name:"FR +33"},{value:"+44",name:"UK +44"},{value:"+380",name:"UA +380"},{value:"+48",name:"PL +48"},{value:"+233",name:"GH +233"}];var qce=Le('<div class="crtw-flex crtw-justify-center crtw-flex-row"><div class="crtw-w-40 crtw-mr-0.5"><!></div> <!></div>');function AL(t,e){if(new.target)return ht({component:AL,...t});ot(e,!1);let r=Ge(e,"phone",12),n=Ge(e,"isValid",12,!0),s=Ge(e,"disabled",12,!1),i=De(lA[0].value),o=De();if(r()){for(const d of lA)if(r().indexOf(d.value)===0){Re(o,parseInt(r().slice(d.value.length))),Re(i,d.value);break}}gt(()=>($e(n()),z(o),z(i)),()=>{n(!z(o)||EL(String(z(o)),Qce)),n()&&z(i)&&z(o)&&r(z(i)+String(z(o)).trim())}),mr(),Et();var a=qce(),c=Ie(a),l=Ie(c);kL(l,{get options(){return lA},simple:!0,get disabled(){return s()},get selected(){return z(i)},set selected(d){Re(i,d)},$$legacy:!0}),Ne(c);var u=Ue(c,2);return tp(u,{type:"number",min:"0",inputmode:"numeric",pattern:"[0-9]*",placeholder:"Phone Number",name:"phone",get disabled(){return s()},get value(){return z(o)},set value(d){Re(o,d)},$$legacy:!0}),Ne(a),Ee(t,a),at({get phone(){return r()},set phone(d){r(d),je()},get isValid(){return n()},set isValid(d){n(d),je()},get disabled(){return s()},set disabled(d){s(d),je()},$set:ut,$on:(d,h)=>lt(e,d,h)})}var Xce=Le('<span class="crtw-text-red-500">*</span>'),ele=Le("First and last name <!>",1),tle=Le('<span class="crtw-text-red-500">*</span>'),rle=Le("Email address <!>",1),nle=Le('<div class="crtw-text-xs crtw-text-[#990008]"> </div>'),sle=Le('<div class="crtw-text-left crtw-mt-2.5 crtw-w-full"><!></div>'),ile=Le('<div class="crtw-flex crtw-flex-col"><!> <!></div> <div class="crtw-flex crtw-flex-col"><!> <!></div> <div class="crtw-flex crtw-flex-col"><!> <!></div> <!> <!> <!>',1);function _L(t,e){if(new.target)return ht({component:_L,...t});ot(e,!1);let r=Ge(e,"name",12),n=Ge(e,"email",12),s=Ge(e,"phone",12),i=Ge(e,"isSubmitDisabled",12),o=Ge(e,"error",12),a=Ge(e,"isEmailInputValid",12),c=Ge(e,"options",12),{isExtendedRegistration:l,onProfileUpdate:u,onBackClick:d,shouldShowBackButton:h,isEmailChangeDisabled:p,isPhoneChangeDisabled:g}=c();return _h(t,{class:"crtw-flex crtw-justify-center crtw-flex-col crtw-gap-2.5",children:(m,y)=>{var v=ile(),A=He(v),E=Ie(A);ep(E,{for:"NameInput",children:(j,Z)=>{Jn();var K=ele(),$=Ue(He(K));{var Y=q=>{var te=Xce();Ee(q,te)};Je($,q=>{l&&q(Y)})}Ee(j,K)},$$slots:{default:!0}});var w=Ue(E,2);tp(w,{id:"NameInput",type:"text",placeholder:"First and last name",name:"name",get required(){return l},get value(){return r()},set value(j){r(j)},$$legacy:!0}),Ne(A);var C=Ue(A,2),B=Ie(C);ep(B,{for:"EmailInput",children:(j,Z)=>{Jn();var K=rle(),$=Ue(He(K));{var Y=q=>{var te=tle();Ee(q,te)};Je($,q=>{l&&q(Y)})}Ee(j,K)},$$slots:{default:!0}});var F=Ue(B,2);tp(F,{id:"EmailInput",type:"email",placeholder:"Email address",name:"email",get disabled(){return p},get isValid(){return a()},set isValid(j){a(j)},get value(){return n()},set value(j){n(j)},$$legacy:!0}),Ne(C);var I=Ue(C,2),L=Ie(I);ep(L,{for:"PhoneInput",children:(j,Z)=>{Jn();var K=Ur("Phone number");Ee(j,K)},$$slots:{default:!0}});var D=Ue(L,2);AL(D,{get disabled(){return g},get phone(){return s()},set phone(j){s(j)},$$legacy:!0}),Ne(I);var M=Ue(I,2);On(M,{text:"Update profile",get onClick(){return u},get disabled(){return i()}});var N=Ue(M,2);{var P=j=>{var Z=nle(),K=Ie(Z);Ne(Z),Ye(()=>pt(K,`- ${o()??""}`)),Ee(j,Z)};Je(N,j=>{o()&&j(P)})}var U=Ue(N,2);{var O=j=>{var Z=sle(),K=Ie(Z);Bw(K,{get onClick(){return d}}),Ne(Z),Ee(j,Z)};Je(U,j=>{h&&j(O)})}Ee(m,v)},$$slots:{default:!0}}),at({get name(){return r()},set name(m){r(m),je()},get email(){return n()},set email(m){n(m),je()},get phone(){return s()},set phone(m){s(m),je()},get isSubmitDisabled(){return i()},set isSubmitDisabled(m){i(m),je()},get error(){return o()},set error(m){o(m),je()},get isEmailInputValid(){return a()},set isEmailInputValid(m){a(m),je()},get options(){return c()},set options(m){c(m),je()},$set:ut,$on:(m,y)=>lt(e,m,y)})}const ole="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23bbb'%20d='M17%209.761v-4.761c0-2.761-2.238-5-5-5-2.763%200-5%202.239-5%205v4.761c-1.827%201.466-3%203.714-3%206.239%200%204.418%203.582%208%208%208s8-3.582%208-8c0-2.525-1.173-4.773-3-6.239zm-8-4.761c0-1.654%201.346-3%203-3s3%201.346%203%203v3.587c-.927-.376-1.938-.587-3-.587s-2.073.211-3%20.587v-3.587zm4%2011.723v2.277h-2v-2.277c-.596-.347-1-.984-1-1.723%200-1.104.896-2%202-2s2%20.896%202%202c0%20.738-.404%201.376-1%201.723z'/%3e%3c/svg%3e";var ale=Le('<button type="submit"><!></button>');const cle={hash:"svelte-1vafzgs",code:".active.svelte-1vafzgs {background-color:#ffff;font-weight:500;color:#000;}.btn-disabled.svelte-1vafzgs {pointer-events:none;background-color:#d0d2d5;}"};function uA(t,e){if(new.target)return ht({component:uA,...t});ot(e,!1),gc(t,cle);let r=Ge(e,"onClick",12),n=Ge(e,"text",12),s=Ge(e,"disabled",12,!1),i=Ge(e,"isLoading",12,!1),o=Ge(e,"isActive",12,!1);var a=ale();let c;var l=Ie(a);{var u=h=>{Sh(h,{})},d=h=>{var p=Ur();Ye(()=>pt(p,n())),Ee(h,p)};Je(l,h=>{i()?h(u):h(d,!1)})}return Ne(a),Ye(h=>c=Lr(a,1,`crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer crtw-border crtw-border-gray-300
680
680
  crtw-rounded crtw-font-['poppins'] crtw-text-gray-600 svelte-1vafzgs`,null,c,h),[()=>({"btn-disabled":s()||i(),active:o()})]),un("click",a,I3(function(...h){r()?.apply(this,h)})),Ee(t,a),at({get onClick(){return r()},set onClick(h){r(h),je()},get text(){return n()},set text(h){n(h),je()},get disabled(){return s()},set disabled(h){s(h),je()},get isLoading(){return i()},set isLoading(h){i(h),je()},get isActive(){return o()},set isActive(h){o(h),je()},$set:ut,$on:(h,p)=>lt(e,h,p)})}var lle=Le("<div> </div>"),ule=Le("<div>Getting price...</div>"),hle=Le("<div> </div>"),dle=Le('<div><div class="crtw-text-right crtw-text-[13px] crtw-text-gray-400 crtw-mb-6"><div class="crtw-break-words"> </div> <div> </div></div> <div class="crtw-font-bold crtw-text-xl"> </div> <div class="crtw-flex crtw-justify-between crtw-mb-3 crtw-text-gray-600 crtw-font-bold"><!> <!></div> <div class="crtw-flex crtw-bg-gray-200 crtw-rounded-md crtw-p-px"><!> <!></div> <hr class="crtw-block crtw-border-t-2 crtw-border-gray-200 crtw-w-1/2 crtw-mx-auto crtw-mt-3.5 crtw-mb-[30px]"/> <!> <div class="crtw-flex crtw-w-full crtw-justify-center crtw-items-center"><img alt=""/><span class="crtw-text-sm crtw-text-gray-400 crtw-ml-1">Payments are secure and encrypted</span></div> <div class="crtw-mt-1.5"><!></div></div>');function SL(t,e){if(new.target)return ht({component:SL,...t});ot(e,!1);const r=De(),n=De(),s=De();let i=Ge(e,"isLoading",12),o=Ge(e,"options",12),{user:a,title:c,subtitle:l,onBackClick:u,isStripeDisabled:d,currencySymbol:h="$"}=o(),p=De(d?Ls.CREDENZA_BALANCE:Ls.CREDIT_CARD);gt(()=>$e(o()),()=>{Re(r,o().isPriceLoading)}),gt(()=>$e(o()),()=>{Re(n,o().totalSumCents)}),gt(()=>$e(o()),()=>{Re(s,o().isCredezaValueDisabled)}),mr(),Et();var g=dle();let m;var y=Ie(g),v=Ie(y),A=Ie(v,!0);Ne(v);var E=Ue(v,2),w=Ie(E,!0);Ne(E),Ne(y);var C=Ue(y,2),B=Ie(C,!0);Ne(C);var F=Ue(C,2),I=Ie(F);{var L=ie=>{var ye=lle(),_e=Ie(ye,!0);Ne(ye),Ye(()=>pt(_e,l)),Ee(ie,ye)};Je(I,ie=>{l&&ie(L)})}var D=Ue(I,2);{var M=ie=>{var ye=ule();Ee(ie,ye)},N=ie=>{var ye=nt(),_e=He(ye);{var Te=oe=>{var le=hle(),we=Ie(le);Ne(le),Ye(W=>pt(we,`${h??""}${W??""}`),[()=>(z(n),Fe(()=>(+z(n)/100).toFixed(2)))]),Ee(oe,le)};Je(_e,oe=>{z(n)&&oe(Te)},!0)}Ee(ie,ye)};Je(D,ie=>{z(r)?ie(M):ie(N,!1)})}Ne(F);var P=Ue(F,2),U=Ie(P);{let ie=bt(()=>(z(p),$e(Ls),Fe(()=>z(p)===Ls.CREDIT_CARD)));uA(U,{text:"Credit Card",onClick:()=>Re(p,Ls.CREDIT_CARD),get isActive(){return z(ie)},get disabled(){return d}})}var O=Ue(U,2);{let ie=bt(()=>(z(p),$e(Ls),Fe(()=>z(p)===Ls.CREDENZA_BALANCE)));uA(O,{text:"Credenza Balance",onClick:()=>Re(p,Ls.CREDENZA_BALANCE),get isActive(){return z(ie)},get disabled(){return z(s)}})}Ne(P);var j=Ue(P,4);{var Z=ie=>{var ye=nt(),_e=He(ye);Ai(_e,e,"credit-card",{}),Ee(ie,ye)},K=ie=>{var ye=nt(),_e=He(ye);{var Te=oe=>{var le=nt(),we=He(le);Ai(we,e,"cred-balance",{}),Ee(oe,le)};Je(_e,oe=>{z(p),$e(Ls),Fe(()=>z(p)===Ls.CREDENZA_BALANCE)&&oe(Te)},!0)}Ee(ie,ye)};Je(j,ie=>{z(p),$e(Ls),Fe(()=>z(p)===Ls.CREDIT_CARD)?ie(Z):ie(K,!1)})}var $=Ue(j,2),Y=Ie($);Jn(),Ne($);var q=Ue($,2),te=Ie(q);return Bw(te,{get onClick(){return u}}),Ne(q),Ne(g),Ye(ie=>{m=Lr(g,1,"cpui-payment crtw-text-left crtw-w-full",null,m,ie),pt(A,Fe(()=>a?.email||a?.pending?.email||"")),pt(w,Fe(()=>a?.phone||a?.pending?.phone||"")),pt(B,c),kt(Y,"src",ole)},[()=>({"crtw-hidden":i()})]),Ee(t,g),at({get isLoading(){return i()},set isLoading(ie){i(ie),je()},get options(){return o()},set options(ie){o(ie),je()},$set:ut,$on:(ie,ye)=>lt(e,ie,ye)})}var fle=Le('<div class="crtw-text-base crtw-mb-1.5">Credit card details</div> <div id="cpui-card-element" class="crtw-border crtw-border-gray-300 crtw-rounded crtw-px-2.5 crtw-py-4 crtw-mb-2.5 crtw-w-full"></div> <div id="card-errors" role="alert"></div> <!>',1);function CL(t,e){if(new.target)return ht({component:CL,...t});ot(e,!1);let r=Ge(e,"options",12),n=Ge(e,"isPaymentDisabled",12),s=Ge(e,"isLoading",12),i=Ge(e,"totalToPay",12),{isCardFocused:o,onPay:a,currencySymbol:c="$"}=r();var l=fle(),u=Ue(He(l),2),d=Ue(u,4);{let h=bt(()=>`Pay ${c}${i()}`);On(d,{get text(){return z(h)},get onClick(){return a},get disabled(){return n()},get isLoading(){return s()},set isLoading(p){s(p)},$$legacy:!0})}return Ye(()=>_i(u,o?"border-color: #121e2b":"")),Ee(t,l),at({get options(){return r()},set options(h){r(h),je()},get isPaymentDisabled(){return n()},set isPaymentDisabled(h){n(h),je()},get isLoading(){return s()},set isLoading(h){s(h),je()},get totalToPay(){return i()},set totalToPay(h){i(h),je()},$set:ut,$on:(h,p)=>lt(e,h,p)})}var ple=Le('You do not have enough stored value to make this payment. <span class="crtw-text-black crtw-cursor-pointer" role="button" tabindex="0"> </span>',1),gle=Le('<div class="crtw-w-full crtw-text-center crtw-my-5"><div class="crtw-text-3xl crtw-text-black crtw-font-bold"><!></div> <div class="crtw-mb-5 crtw-text-gray-600"><!></div> <!></div>');function TL(t,e){if(new.target)return ht({component:TL,...t});ot(e,!1);const r=De(),n=De(),s=De(),i=De(),o=De();let a=Ge(e,"options",12),{credAlias:c,onPay:l,onGetCred:u}=a();gt(()=>$e(a()),()=>{Re(r,a().isLoading)}),gt(()=>$e(a()),()=>{Re(n,a().isPaymentDisabled)}),gt(()=>$e(a()),()=>{Re(s,a().formattedBalance)}),gt(()=>$e(a()),()=>{Re(i,a().totalToPay)}),gt(()=>$e(a()),()=>{Re(o,a().balance)}),mr(),Et();var d=gle(),h=Ie(d),p=Ie(h);{var g=C=>{var B=Ur("INSUFFICIENT FUNDS");Ee(C,B)},m=C=>{var B=Ur();Ye(()=>pt(B,z(s))),Ee(C,B)};Je(p,C=>{z(i),z(o),Fe(()=>Number(z(i))>z(o))?C(g):C(m,!1)})}Ne(h);var y=Ue(h,2),v=Ie(y);{var A=C=>{var B=ple(),F=Ue(He(B)),I=Ie(F);Ne(F),Ye(()=>pt(I,`Click to get some ${c??""}`)),un("click",F,u),Ee(C,B)},E=C=>{var B=Ur("Your balance after purchase");Ee(C,B)};Je(v,C=>{z(i),z(o),Fe(()=>Number(z(i))>z(o))?C(A):C(E,!1)})}Ne(y);var w=Ue(y,2);{let C=bt(()=>`Pay ${z(i)} ${c}`);On(w,{get text(){return z(C)},get onClick(){return l},get disabled(){return z(n)},get isLoading(){return z(r)}})}return Ne(d),Ee(t,d),at({get options(){return a()},set options(C){a(C),je()},$set:ut,$on:(C,B)=>lt(e,C,B)})}var mle=Le("<button> </button>"),yle=Le('<div class="crtw-text-xs crtw-text-gray-400 crtw-mt-1"> </div>'),vle=Le('<input class="crtw-appearance-none focus:crtw-outline-0 crtw-w-full crtw-h-9 crtw-mt-4 crtw-px-5 crtw-text-base crtw-border crtw-border-gray-300 crtw-rounded focus:crtw-border-blue-800 hover:crtw-bg-gray-100" type="number" min="1" max="100"/> <!>',1),ble=Le('<div><div class="crtw-flex crtw-flex-col">Select amount <div class="crtw-inline-flex crtw-w-full" role="group"></div> <!></div></div>');function RL(t,e){if(new.target)return ht({component:RL,...t});ot(e,!1);let r=Ge(e,"selected",12,void 0),n=Ge(e,"minStoredValueToPurchase",12,0),s=Ge(e,"maxStoredValueToPurchase",12,100),i=De(!1),o=De(r());const a=[{value:"10",name:"10"},{value:"25",name:"25"},{value:"50",name:"50"},{value:"CUSTOM",name:"Custom"}],c=m=>{if(Re(o,m),m==="CUSTOM"){Re(i,!0),r("");return}Re(i,!1),r(m)},l=m=>{const y=m.target;if(y.value=y.value.replace(/[,.-]/g,""),+y.value>s()){r(s().toString());return}r(y.value)};Et();var u=ble(),d=Ie(u),h=Ue(Ie(d));Mp(h,5,()=>a,Up,(m,y)=>{var v=mle();let A;var E=Ie(v,!0);Ne(v),Ye(w=>{A=Lr(v,1,"crtw-w-full crtw-h-[30px] crtw-text-sm crtw-border hover:crtw-bg-gray-100 hover:crtw-text-blue-800 first:crtw-rounded-l last:crtw-rounded-r",null,A,w),pt(E,(z(y),Fe(()=>z(y).name)))},[()=>({"crtw-border-blue-800":z(y).value===z(o),"crtw-z-10":z(y).value===z(o)})]),un("click",v,()=>c(z(y).value)),Ee(m,v)}),Ne(h);var p=Ue(h,2);{var g=m=>{var y=vle(),v=He(y);T3(v);var A=Ue(v,2);{var E=w=>{var C=yle(),B=Ie(C);Ne(C),Ye(()=>pt(B,`Minimum purchase amount is ${n()??""}`)),Ee(w,C)};Je(A,w=>{n()&&w(E)})}P3(v,r),un("input",v,l),Ee(m,y)};Je(p,m=>{z(i)&&m(g)})}return Ne(d),Ne(u),Ee(t,u),at({get selected(){return r()},set selected(m){r(m),je()},get minStoredValueToPurchase(){return n()},set minStoredValueToPurchase(m){n(m),je()},get maxStoredValueToPurchase(){return s()},set maxStoredValueToPurchase(m){s(m),je()},$set:ut,$on:(m,y)=>lt(e,m,y)})}var wle=Le('<div class="crtw-w-full crtw-px-2.5"><!> <!> <div class="crtw-h-4"></div> <!> <div class="crtw-m-3.5"></div> <!></div>');function PL(t,e){if(new.target)return ht({component:PL,...t});ot(e,!1);const r=De();let n=Ge(e,"selected",12),s=Ge(e,"options",12),{title:i,description:o,onSendClick:a,sendValueButtonText:c,onPaymentClick:l,minStoredValueToPurchase:u=0,maxStoredValueToPurchase:d=100}=s();gt(()=>$e(s()),()=>{Re(r,s().isSendValueDisabled)}),mr(),Et();var h=wle(),p=Ie(h);zo(p,{get text(){return i},get description(){return o}});var g=Ue(p,2);RL(g,{get minStoredValueToPurchase(){return u},get maxStoredValueToPurchase(){return d},get selected(){return n()},set selected(v){n(v)},$$legacy:!0});var m=Ue(g,4);{let v=bt(()=>!n()||!!u&&+n()<u);On(m,{text:"Confirm purchase",get disabled(){return z(v)},get onClick(){return l}})}var y=Ue(m,4);return On(y,{get onClick(){return a},get text(){return c},get disabled(){return z(r)}}),Ne(h),Ee(t,h),at({get selected(){return n()},set selected(v){n(v),je()},get options(){return s()},set options(v){s(v),je()},$set:ut,$on:(v,A)=>lt(e,v,A)})}const kle="data:image/svg+xml,%3csvg%20width='2875'%20height='988'%20viewBox='0%200%202875%20988'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_8944_64327)'%3e%3cpath%20d='M2726.97%203.67969H147.206C67.9385%203.67969%203.67969%2067.9385%203.67969%20147.206V840.794C3.67969%20920.061%2067.9385%20984.32%20147.206%20984.32H2726.97C2806.24%20984.32%202870.5%20920.061%202870.5%20840.794V147.206C2870.5%2067.9385%202806.24%203.67969%202726.97%203.67969Z'%20fill='white'%20stroke='black'%20stroke-width='7.36033'/%3e%3cpath%20d='M832.065%20559.183C842.849%20540.814%20869.633%20540.814%20880.299%20559.183L994.901%20754.965C1005.69%20773.335%20992.175%20796.207%20970.724%20796.207H741.522C720.071%20796.207%20706.679%20773.335%20717.345%20754.965L831.946%20559.183H832.065Z'%20fill='black'/%3e%3cpath%20d='M762.844%20428.817C773.273%20410.566%20773.273%20388.049%20762.844%20369.679L668.864%20205.777C658.316%20187.408%20632.006%20187.408%20621.459%20205.777L306.928%20754.844C296.38%20773.213%20309.535%20796.204%20330.63%20796.204H518.472C539.448%20796.204%20558.766%20784.946%20569.195%20766.695L762.725%20428.817H762.844Z'%20fill='black'/%3e%3cpath%20d='M1293.06%20667.221V694.63H1276.73C1257.2%20694.63%201249.89%20686.18%201249.6%20671.836C1239.66%20686.393%201224.18%20696.334%201200.89%20696.334C1168.51%20696.334%201146%20680.286%201146%20652.593C1146%20621.633%201167.87%20604.733%201209.34%20604.733H1246.41V595.715C1246.41%20579.099%201234.48%20568.873%201214.03%20568.873C1195.64%20568.873%201183.42%20577.607%201181.08%20590.744H1149.83C1153.31%20561.843%201177.81%20543.452%201215.52%20543.452C1253.22%20543.452%201277.65%20562.412%201277.65%20597.703V657.492C1277.65%20665.09%201280.28%20667.15%201286.95%20667.15H1293.06V667.221ZM1246.41%20628.095H1207.92C1188.68%20628.095%201177.88%20635.409%201177.88%20650.534C1177.88%20663.102%201188.39%20671.836%201205.29%20671.836C1231%20671.836%201246.41%20656.356%201246.41%20633.917V628.095Z'%20fill='black'/%3e%3cpath%20d='M1361.64%20694.63L1305.05%20545.228H1338.92L1381.53%20660.759L1423.85%20545.228H1457.08L1400.2%20694.63H1361.72H1361.64Z'%20fill='black'/%3e%3cpath%20d='M1618%20667.221V694.63H1601.67C1582.15%20694.63%201574.83%20686.18%201574.55%20671.836C1564.61%20686.393%201549.13%20696.334%201525.84%20696.334C1493.46%20696.334%201470.95%20680.286%201470.95%20652.593C1470.95%20621.633%201492.82%20604.733%201534.29%20604.733H1571.35V595.715C1571.35%20579.099%201559.42%20568.873%201538.97%20568.873C1520.58%20568.873%201508.37%20577.607%201506.02%20590.744H1474.78C1478.26%20561.843%201502.76%20543.452%201540.46%20543.452C1578.17%20543.452%201602.6%20562.412%201602.6%20597.703V657.492C1602.6%20665.09%201605.22%20667.15%201611.9%20667.15H1618V667.221ZM1571.28%20628.095H1532.79C1513.55%20628.095%201502.76%20635.409%201502.76%20650.534C1502.76%20663.102%201513.27%20671.836%201530.17%20671.836C1555.87%20671.836%201571.28%20656.356%201571.28%20633.917V628.095Z'%20fill='black'/%3e%3cpath%20d='M1762.28%20666.94V694.634H1640.93V666.94H1686.02V520.094L1640.93%20535.006V507.17L1679.48%20492.4H1717.54V667.011H1762.35L1762.28%20666.94Z'%20fill='black'/%3e%3cpath%20d='M1930.37%20667.221V694.63H1914.04C1894.51%20694.63%201887.19%20686.18%201886.91%20671.836C1876.97%20686.393%201861.49%20696.334%201838.2%20696.334C1805.82%20696.334%201783.31%20680.286%201783.31%20652.593C1783.31%20621.633%201805.18%20604.733%201846.65%20604.733H1883.72V595.715C1883.72%20579.099%201871.79%20568.873%201851.34%20568.873C1832.94%20568.873%201820.73%20577.607%201818.39%20590.744H1787.14C1790.62%20561.843%201815.12%20543.452%201852.83%20543.452C1890.53%20543.452%201914.96%20562.412%201914.96%20597.703V657.492C1914.96%20665.09%201917.59%20667.15%201924.26%20667.15H1930.37V667.221ZM1883.72%20628.095H1845.23C1825.98%20628.095%201815.19%20635.409%201815.19%20650.534C1815.19%20663.102%201825.7%20671.836%201842.6%20671.836C1868.31%20671.836%201883.72%20656.356%201883.72%20633.917V628.095Z'%20fill='black'/%3e%3cpath%20d='M2099.09%20609.419V694.63H2067.28V612.331C2067.28%20585.773%202055.92%20571.217%202033.41%20571.217C2009.76%20571.217%201995.49%20588.401%201995.49%20617.301V694.63H1963.96V545.227H1991.37L1994.85%20564.755C2003.87%20553.109%202017.93%20543.452%202040.65%20543.452C2072.46%20543.452%202099.02%20560.636%202099.02%20609.419H2099.09Z'%20fill='black'/%3e%3cpath%20d='M2137.79%20620.213C2137.79%20574.128%202167.25%20543.452%202212.2%20543.452C2250.41%20543.452%202274.34%20564.755%202280.16%20598.626H2247.21C2243.09%20581.087%202230.59%20570.294%202211.64%20570.294C2186.57%20570.294%202169.88%20591.028%202169.88%20620.213C2169.88%20649.397%202186.5%20669.493%202211.64%20669.493C2230.31%20669.493%202243.16%20658.416%202246.93%20641.16H2280.16C2274.62%20675.032%202249.2%20696.334%202211.28%20696.334C2166.33%20696.334%202137.71%20666.866%202137.71%20620.213H2137.79Z'%20fill='black'/%3e%3cpath%20d='M2454.62%20609.421V694.632H2422.8V612.048C2422.8%20586.343%202411.44%20571.218%202388.08%20571.218C2364.72%20571.218%202349.59%20588.757%202349.59%20617.019V694.632H2318.07V490.41H2349.59V564.259C2359.82%20551.407%202375.3%20543.525%202395.4%20543.525C2430.4%20543.525%202454.62%20564.259%202454.62%20609.492V609.421Z'%20fill='black'/%3e%3cpath%20d='M2524.84%20627.248V628.739C2525.69%20654.089%202541.46%20670.776%202565.96%20670.776C2584.63%20670.776%202598.9%20661.119%202603.02%20644.503H2634.55C2629.3%20673.972%202604.51%20696.41%202567.73%20696.41C2521.08%20696.41%202491.89%20666.09%202491.89%20620.289C2491.89%20574.488%202521.08%20543.528%202564.54%20543.528C2607.99%20543.528%202636.33%20570.938%202637.18%20614.75C2637.18%20617.946%202636.89%20622.916%202636.33%20627.319H2524.84V627.248ZM2525.98%20603.602H2604.44C2601.82%20581.447%202586.62%20568.878%202564.75%20568.878C2545.22%20568.878%202528.25%20582.299%202525.91%20603.602H2525.98Z'%20fill='black'/%3e%3cpath%20d='M1278.66%20238.532H1349.09C1363.01%20238.532%201374.23%20242.471%201382.76%20250.347C1391.28%20258.153%201395.54%20269.153%201395.54%20283.345C1395.54%20295.551%201391.74%20306.196%201384.14%20315.279C1376.54%20324.291%201364.86%20328.798%201349.09%20328.798H1299.86V394.9H1278.66V238.532ZM1374.13%20283.452C1374.13%20271.956%201369.87%20264.15%201361.34%20260.034C1356.65%20257.834%201350.23%20256.734%201342.06%20256.734H1299.86V310.915H1342.06C1351.58%20310.915%201359.28%20308.892%201365.18%20304.847C1371.14%20300.802%201374.13%20293.671%201374.13%20283.452Z'%20fill='black'/%3e%3cpath%20d='M1460.54%20382.553C1473.26%20382.553%201481.96%20377.763%201486.64%20368.183C1491.4%20358.532%201493.78%20347.817%201493.78%20336.037C1493.78%20325.392%201492.08%20316.735%201488.67%20310.064C1483.27%20299.562%201473.97%20294.31%201460.75%20294.31C1449.03%20294.31%201440.51%20298.781%201435.18%20307.722C1429.86%20316.664%201427.19%20327.45%201427.19%20340.082C1427.19%20352.216%201429.86%20362.329%201435.18%20370.419C1440.51%20378.508%201448.96%20382.553%201460.54%20382.553ZM1461.29%20277.598C1475.99%20277.598%201488.42%20282.495%201498.58%20292.288C1508.74%20302.081%201513.81%20316.486%201513.81%20335.505C1513.81%20353.884%201509.34%20369.07%201500.39%20381.063C1491.44%20393.056%201477.55%20399.052%201458.73%20399.052C1443.03%20399.052%201430.57%20393.766%201421.33%20383.192C1412.1%20372.548%201407.48%20358.284%201407.48%20340.401C1407.48%20321.241%201412.35%20305.984%201422.08%20294.63C1431.81%20283.276%201444.88%20277.598%201461.29%20277.598Z'%20fill='black'/%3e%3cpath%20d='M1541.2%20280.897L1563.15%20370.737L1585.42%20280.897H1606.94L1629.31%20370.205L1652.65%20280.897H1671.83L1638.69%20394.9H1618.77L1595.54%20306.657L1573.06%20394.9H1553.13L1520.21%20280.897H1541.2Z'%20fill='black'/%3e%3cpath%20d='M1733.2%20278.343C1741.3%20278.343%201749.15%20280.259%201756.75%20284.091C1764.35%20287.852%201770.14%20292.748%201774.12%20298.78C1777.95%20304.528%201780.51%20311.234%201781.79%20318.898C1782.92%20324.149%201783.49%20332.523%201783.49%20344.019H1699.85C1700.21%20355.586%201702.94%20364.882%201708.06%20371.908C1713.17%20378.862%201721.09%20382.339%201731.82%20382.339C1741.83%20382.339%201749.82%20379.04%201755.79%20372.44C1759.2%20368.608%201761.61%20364.173%201763.03%20359.134H1781.89C1781.4%20363.321%201779.73%20368.005%201776.89%20373.185C1774.12%20378.295%201770.99%20382.481%201767.51%20385.746C1761.69%20391.423%201754.48%20395.255%201745.88%20397.242C1741.26%20398.377%201736.04%20398.945%201730.22%20398.945C1716.01%20398.945%201703.97%20393.8%201694.1%20383.51C1684.23%20373.15%201679.29%20358.673%201679.29%20340.081C1679.29%20321.772%201684.26%20306.905%201694.21%20295.48C1704.15%20284.055%201717.15%20278.343%201733.2%20278.343ZM1763.78%20328.798C1763%20320.495%201761.19%20313.86%201758.35%20308.892C1753.09%20299.667%201744.32%20295.054%201732.03%20295.054C1723.22%20295.054%201715.83%20298.248%201709.87%20304.635C1703.9%20310.95%201700.74%20319.005%201700.39%20328.798H1763.78Z'%20fill='black'/%3e%3cpath%20d='M1803.31%20280.897H1821.53V300.59C1823.02%20296.758%201826.68%20292.109%201832.51%20286.645C1838.33%20281.11%201845.04%20278.343%201852.64%20278.343C1853%20278.343%201853.6%20278.378%201854.46%20278.449C1855.31%20278.52%201856.76%20278.662%201858.82%20278.875V299.099C1857.69%20298.886%201856.62%20298.745%201855.63%20298.674C1854.7%20298.603%201853.67%20298.567%201852.54%20298.567C1842.88%20298.567%201835.45%20301.69%201830.27%20307.934C1825.08%20314.108%201822.49%20321.24%201822.49%20329.33V394.9H1803.31V280.897Z'%20fill='black'/%3e%3cpath%20d='M1918.6%20278.343C1926.7%20278.343%201934.55%20280.259%201942.15%20284.091C1949.75%20287.852%201955.54%20292.748%201959.51%20298.78C1963.35%20304.528%201965.91%20311.234%201967.19%20318.898C1968.32%20324.149%201968.89%20332.523%201968.89%20344.019H1885.25C1885.61%20355.586%201888.34%20364.882%201893.46%20371.908C1898.57%20378.862%201906.49%20382.339%201917.22%20382.339C1927.23%20382.339%201935.22%20379.04%201941.19%20372.44C1944.6%20368.608%201947.01%20364.173%201948.43%20359.134H1967.29C1966.8%20363.321%201965.13%20368.005%201962.28%20373.185C1959.51%20378.295%201956.39%20382.481%201952.91%20385.746C1947.08%20391.423%201939.87%20395.255%201931.28%20397.242C1926.66%20398.377%201921.44%20398.945%201915.62%20398.945C1901.41%20398.945%201889.37%20393.8%201879.5%20383.51C1869.63%20373.15%201864.69%20358.673%201864.69%20340.081C1864.69%20321.772%201869.66%20306.905%201879.6%20295.48C1889.55%20284.055%201902.55%20278.343%201918.6%20278.343ZM1949.18%20328.798C1948.4%20320.495%201946.59%20313.86%201943.75%20308.892C1938.49%20299.667%201929.72%20295.054%201917.43%20295.054C1908.62%20295.054%201901.23%20298.248%201895.27%20304.635C1889.3%20310.95%201886.14%20319.005%201885.78%20328.798H1949.18Z'%20fill='black'/%3e%3cpath%20d='M2000.33%20339.229C2000.33%20351.435%202002.92%20361.654%202008.1%20369.885C2013.29%20378.117%202021.6%20382.233%202033.04%20382.233C2041.91%20382.233%202049.2%20378.436%202054.88%20370.843C2060.63%20363.179%202063.51%20352.215%202063.51%20337.952C2063.51%20323.546%202060.56%20312.902%202054.66%20306.018C2048.77%20299.064%202041.49%20295.587%202032.82%20295.587C2023.16%20295.587%202015.31%20299.277%202009.28%20306.657C2003.31%20314.037%202000.33%20324.895%202000.33%20339.229ZM2029.2%20278.875C2037.94%20278.875%202045.25%20280.72%202051.15%20284.41C2054.56%20286.539%202058.43%20290.264%202062.76%20295.587V238H2081.19V394.9H2063.93V379.04C2059.46%20386.065%202054.17%20391.139%202048.06%20394.261C2041.95%20397.384%202034.95%20398.945%202027.07%20398.945C2014.35%20398.945%202003.34%20393.623%201994.04%20382.978C1984.73%20372.263%201980.08%20358.034%201980.08%20340.294C1980.08%20323.688%201984.31%20309.318%201992.76%20297.183C2001.29%20284.978%202013.43%20278.875%202029.2%20278.875Z'%20fill='black'/%3e%3cpath%20d='M2160.15%20238H2178.8V294.735C2182.99%20289.271%202188%20285.12%202193.82%20282.281C2199.65%20279.372%202205.97%20277.917%202212.79%20277.917C2226.99%20277.917%202238.5%20282.813%202247.31%20292.606C2256.19%20302.328%202260.63%20316.698%202260.63%20335.716C2260.63%20353.741%202256.26%20368.714%202247.52%20380.636C2238.79%20392.558%202226.67%20398.519%202211.19%20398.519C2202.52%20398.519%202195.21%20396.426%202189.24%20392.239C2185.69%20389.755%202181.89%20385.781%202177.84%20380.317V394.9H2160.15V238ZM2210.02%20381.594C2220.39%20381.594%202228.13%20377.478%202233.25%20369.247C2238.43%20361.015%202241.02%20350.158%202241.02%20336.675C2241.02%20324.682%202238.43%20314.747%202233.25%20306.87C2228.13%20298.993%202220.57%20295.054%202210.55%20295.054C2201.81%20295.054%202194.14%20298.283%202187.54%20304.741C2181%20311.199%202177.73%20321.843%202177.73%20336.675C2177.73%20347.39%202179.08%20356.083%202181.78%20362.754C2186.83%20375.314%202196.24%20381.594%202210.02%20381.594Z'%20fill='black'/%3e%3cpath%20d='M2350.02%20280.897H2371.23C2368.53%20288.206%202362.53%20304.883%202353.22%20330.926C2346.26%20350.512%202340.43%20366.479%202335.75%20378.827C2324.67%20407.922%202316.85%20425.663%202312.31%20432.049C2307.76%20438.436%202299.95%20441.629%202288.87%20441.629C2286.17%20441.629%202284.07%20441.523%202282.58%20441.31C2281.16%20441.097%202279.38%20440.707%202277.25%20440.139V422.682C2280.59%20423.605%202283.01%20424.172%202284.5%20424.385C2285.99%20424.598%202287.3%20424.705%202288.44%20424.705C2291.99%20424.705%202294.58%20424.101%202296.22%20422.895C2297.92%20421.76%202299.34%20420.34%202300.48%20418.637C2300.84%20418.07%202302.11%20415.16%202304.32%20409.909C2306.52%20404.657%202308.12%20400.754%202309.11%20398.2L2266.92%20280.897H2288.65L2319.23%20373.717L2350.02%20280.897Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_8944_64327'%3e%3crect%20width='2875'%20height='988'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function xL(t,e){if(new.target)return ht({component:xL,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(yE,"$cloakStore",r),i=()=>Rt(ok,"$ppaStore",r),o=()=>Rt(wt,"$configStore",r),a=()=>Rt(mE,"$forcedPage",r),c=()=>Rt(Zt,"$pageStore",r),l=De(),u=De(),d=()=>{const{close:m}=We(Sr);Kt(xt.UI_CLOSED,{page:We(mE)||We(Zt),pageOpts:We(Mt)}),m()};let h=De(void 0);const p=()=>{switch(o().chainId){case Qe.AVALANCHE:case Qe.AVALANCHE_FUJI:Re(h,{img:kle,width:90});break;default:Re(h,void 0)}};gt(()=>(s(),i()),()=>{Re(l,s()||i().active)}),gt(()=>(s(),i()),()=>{Re(u,!s()&&!i().active&&!i().loading)}),gt(()=>o(),()=>{o().chainId&&p()}),mr(),Et(),nL(t,{get footerAdditionalLogo(){return z(h)},onCloseClick:d,get shouldBlurBackdrop(){return z(l)},set shouldBlurBackdrop(m){Re(l,m)},get isHeaderShown(){return z(u)},set isHeaderShown(m){Re(u,m)},children:(m,y)=>{var v=nt(),A=He(v);{var E=C=>{var B=nt(),F=He(B);hn(F,()=>Promise.resolve().then(()=>Xle),null,(I,L)=>{var D=nt(),M=He(D);dn(M,()=>z(L).default,(N,P)=>{P(N,{})}),Ee(I,D)}),Ee(C,B)},w=C=>{var B=nt(),F=He(B);{var I=D=>{var M=nt(),N=He(M);hn(N,()=>Promise.resolve().then(()=>eue),null,(P,U)=>{var O=nt(),j=He(O);dn(j,()=>z(U).default,(Z,K)=>{K(Z,{})}),Ee(P,O)}),Ee(D,M)},L=D=>{var M=nt(),N=He(M);{var P=O=>{var j=nt(),Z=He(j);hn(Z,()=>Promise.resolve().then(()=>tue),null,(K,$)=>{var Y=nt(),q=He(Y);dn(q,()=>z($).default,(te,ie)=>{ie(te,{})}),Ee(K,Y)}),Ee(O,j)},U=O=>{var j=nt(),Z=He(j);{var K=Y=>{var q=nt(),te=He(q);hn(te,()=>Promise.resolve().then(()=>rue),null,(ie,ye)=>{var _e=nt(),Te=He(_e);dn(Te,()=>z(ye).default,(oe,le)=>{le(oe,{})}),Ee(ie,_e)}),Ee(Y,q)},$=Y=>{var q=nt(),te=He(q);{var ie=_e=>{var Te=nt(),oe=He(Te);hn(oe,()=>Promise.resolve().then(()=>nue),null,(le,we)=>{var W=nt(),ue=He(W);dn(ue,()=>z(we).default,(me,be)=>{be(me,{})}),Ee(le,W)}),Ee(_e,Te)},ye=_e=>{var Te=nt(),oe=He(Te);{var le=W=>{var ue=nt(),me=He(ue);hn(me,()=>Promise.resolve().then(()=>sue),null,(be,re)=>{var x=nt(),G=He(x);dn(G,()=>z(re).default,(ee,fe)=>{fe(ee,{})}),Ee(be,x)}),Ee(W,ue)},we=W=>{var ue=nt(),me=He(ue);{var be=x=>{var G=nt(),ee=He(G);hn(ee,()=>Promise.resolve().then(()=>iue),null,(fe,Ae)=>{var Ce=nt(),J=He(Ce);dn(J,()=>z(Ae).default,(ge,Pe)=>{Pe(ge,{})}),Ee(fe,Ce)}),Ee(x,G)},re=x=>{var G=nt(),ee=He(G);{var fe=Ce=>{var J=nt(),ge=He(J);hn(ge,()=>Promise.resolve().then(()=>$ue),null,(Pe,Ve)=>{var se=nt(),ae=He(se);dn(ae,()=>z(Ve).default,(f,b)=>{b(f,{})}),Ee(Pe,se)}),Ee(Ce,J)},Ae=Ce=>{var J=nt(),ge=He(J);{var Pe=se=>{var ae=nt(),f=He(ae);hn(f,()=>Promise.resolve().then(()=>nhe),null,(b,_)=>{var T=nt(),k=He(T);dn(k,()=>z(_).default,(R,H)=>{H(R,{})}),Ee(b,T)}),Ee(se,ae)},Ve=se=>{var ae=nt(),f=He(ae);{var b=T=>{var k=nt(),R=He(k);hn(R,()=>Promise.resolve().then(()=>she),null,(H,ce)=>{var he=nt(),ke=He(he);dn(ke,()=>z(ce).default,(xe,ze)=>{ze(xe,{})}),Ee(H,he)}),Ee(T,k)},_=T=>{var k=nt(),R=He(k);{var H=he=>{var ke=nt(),xe=He(ke);hn(xe,()=>Promise.resolve().then(()=>ihe),null,(ze,Lt)=>{var Ct=nt(),vt=He(Ct);dn(vt,()=>z(Lt).default,(ys,vn)=>{vn(ys,{})}),Ee(ze,Ct)}),Ee(he,ke)},ce=he=>{var ke=nt(),xe=He(ke);{var ze=Ct=>{var vt=nt(),ys=He(vt);hn(ys,()=>Promise.resolve().then(()=>che),null,(vn,Ho)=>{var Hn=nt(),vs=He(Hn);dn(vs,()=>z(Ho).default,(mi,yi)=>{yi(mi,{})}),Ee(vn,Hn)}),Ee(Ct,vt)},Lt=Ct=>{var vt=nt(),ys=He(vt);{var vn=Hn=>{var vs=nt(),mi=He(vs);hn(mi,()=>Promise.resolve().then(()=>dhe),null,(yi,bn)=>{var Zn=nt(),bs=He(Zn);dn(bs,()=>z(bn).default,(vi,bi)=>{bi(vi,{})}),Ee(yi,Zn)}),Ee(Hn,vs)},Ho=Hn=>{var vs=nt(),mi=He(vs);{var yi=Zn=>{var bs=nt(),vi=He(bs);hn(vi,()=>Promise.resolve().then(()=>RV),null,(bi,Zo)=>{var Bn=nt(),Jo=He(Bn);dn(Jo,()=>z(Zo).default,(Qo,Yo)=>{Yo(Qo,{})}),Ee(bi,Bn)}),Ee(Zn,bs)},bn=Zn=>{var bs=nt(),vi=He(bs);hn(vi,()=>Promise.resolve().then(()=>phe),null,(bi,Zo)=>{var Bn=nt(),Jo=He(Bn);dn(Jo,()=>z(Zo).default,(Qo,Yo)=>{Yo(Qo,{})}),Ee(bi,Bn)}),Ee(Zn,bs)};Je(mi,Zn=>{c(),$e(Xe),Fe(()=>c()===Xe.LOADER)?Zn(yi):Zn(bn,!1)},!0)}Ee(Hn,vs)};Je(ys,Hn=>{c(),$e(Xe),Fe(()=>c()===Xe.RICH_ALERT)?Hn(vn):Hn(Ho,!1)},!0)}Ee(Ct,vt)};Je(xe,Ct=>{c(),$e(Xe),Fe(()=>c()===Xe.ERROR)?Ct(ze):Ct(Lt,!1)},!0)}Ee(he,ke)};Je(R,he=>{c(),$e(Xe),Fe(()=>c()===Xe.SCANNER)?he(H):he(ce,!1)},!0)}Ee(T,k)};Je(f,T=>{c(),$e(Xe),Fe(()=>c()===Xe.PAYMENT_RESULT)?T(b):T(_,!1)},!0)}Ee(se,ae)};Je(ge,se=>{c(),$e(Xe),Fe(()=>c()===Xe.PAYMENT)?se(Pe):se(Ve,!1)},!0)}Ee(Ce,J)};Je(ee,Ce=>{c(),$e(Xe),Fe(()=>c()===Xe.SEND_TOKENS)?Ce(fe):Ce(Ae,!1)},!0)}Ee(x,G)};Je(me,x=>{c(),$e(Xe),Fe(()=>c()===Xe.WALLET)?x(be):x(re,!1)},!0)}Ee(W,ue)};Je(oe,W=>{c(),$e(Xe),Fe(()=>c()===Xe.SIGN)?W(le):W(we,!1)},!0)}Ee(_e,Te)};Je(te,_e=>{c(),$e(Xe),Fe(()=>c()===Xe.PASSPORT_ID)?_e(ie):_e(ye,!1)},!0)}Ee(Y,q)};Je(Z,Y=>{a(),$e(Xe),c(),Fe(()=>a()===Xe.UPDATE_PROFILE||c()===Xe.UPDATE_PROFILE)?Y(K):Y($,!1)},!0)}Ee(O,j)};Je(N,O=>{a(),$e(Xe),c(),Fe(()=>a()===Xe.CONFIRM_ACCOUNT||c()===Xe.CONFIRM_ACCOUNT)?O(P):O(U,!1)},!0)}Ee(D,M)};Je(F,D=>{c(),$e(Xe),Fe(()=>c()===Xe.LOGOUT)?D(I):D(L,!1)},!0)}Ee(C,B)};Je(A,C=>{a(),$e(Xe),c(),Fe(()=>a()===Xe.LOGIN||c()===Xe.LOGIN)?C(E):C(w,!1)})}Ee(m,v)},$$slots:{default:!0},$$legacy:!0});var g=at({$set:ut,$on:(m,y)=>lt(e,m,y)});return n(),g}const Ele=Object.freeze(Object.defineProperty({__proto__:null,default:xL},Symbol.toStringTag,{value:"Module"})),hA=(t=null)=>({width:"20px",...t===Uo.BLACK?{filter:"brightness(0) invert(1)"}:{}}),NL="data:image/svg+xml,%3csvg%20width='18px'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20350.3%20550.12'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23010101;}.cls-2{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M306.25,19.41A19.41,19.41,0,0,0,286.91,0a19.87,19.87,0,0,0-4.48.52L84.06,46.8H306.25Z'/%3e%3cpath%20class='cls-1'%20d='M330.86,68.67H16.41A16.43,16.43,0,0,0,0,85.08V533.52a16.43,16.43,0,0,0,16.41,16.41H330.86A19.15,19.15,0,0,0,350,530.79v-443a19.15,19.15,0,0,0-19.14-19.14Z'/%3e%3cpath%20class='cls-2'%20d='M335.18,324.34c-36.63,23.17-33.8,23-67-3,22.17,36.31,22.44,32-3,67,38.13-22.69,31.95-24.1,67,3C309.46,353.18,309.39,360.34,335.18,324.34Z'/%3e%3cpath%20class='cls-2'%20d='M182.86,437.36c-41.92,28.61-38.35,27.94-79.07-1.09,27.05,41.47,27.72,37.15-1.09,79.06,44-28,36.41-29.05,79.06,1.1C153.74,472.43,153.61,480.83,182.86,437.36Z'/%3e%3cpath%20class='cls-2'%20d='M350.3,542V487.21c-54.42-5.37-91.43-51.55-129.29-108.62-33.17-50-19.06-58,35.18-148.25C150.55,311,158.7,309.56,49.08,237.47c76.21,105.73,77,92.51,7.14,207.11,85.43-60.77,93.57-76.77,144-48.43,78.67,45.26,105.36,97.48,105.8,154h35Z'/%3e%3c/svg%3e",Ale="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16.934'%20height='16.936'%3e%3cpath%20d='M12.766%2013.903v1.46c0%20.87-.726%201.573-1.613%201.573h-9.54c-.887%200-1.613-.71-1.613-1.573V1.573C0%20.702.726%200%201.613%200h9.54c.887%200%201.613.71%201.613%201.573v1.46a.809.809%200%200%201-.806.806.809.809%200%200%201-.807-.807v-1.46l-9.54.04v13.751l9.532-.04v-1.42c0-.443.363-.806.807-.806.443%200%20.806.363.806.806h.008Zm3.968-5.967-2.387-2.734a.805.805%200%201%200-1.218%201.056l1.218%201.403h-6.29a.809.809%200%200%200-.807.807c0%20.443.363.806.807.806h6.29l-1.218%201.404a.805.805%200%200%200%20.08%201.137.803.803%200%200%200%201.137-.073l2.388-2.734a.799.799%200%200%200%200-1.056v-.016Z'%20fill-rule='evenodd'%20data-name='Path%2031'/%3e%3c/svg%3e",_le="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M24%2013h-24v-3h24v3zm-14-5h1v-2h-2v1h1v1zm2-3h1v-1h-1v-1h-3v1h2v2h1v-1zm2%201h1v-5h-1v1h-1v-1h-4v1h3v1h2v3zm-1%201h1v-1h-1v1zm-10-1h3v-3h-3v3zm15%200h3v-3h-3v3zm-2%202v-7h7v7h-7zm1-1h5v-5h-5v5zm-2%201v-1h-1v1h1zm-3%200h1v-1h-1v1zm-11%200v-7h7v7h-7zm1-1h5v-5h-5v5zm11%2013v1h1v-1h-1zm3-4h1v-1h-1v1zm2%203h2v1h-1v2h-1v1h-1v-1h-1v1h-1v-1h-1v-1h1v-2h-2v1h-3v1h1v1h-1v1h-1v-5h1v-1h2v-1h1v-1h1v1h2v1h-1v1h1v1h1v-1h1v1zm-1%201h-1v1h1v-1zm2-5v1h1v-1h-1zm2%200v1h1v-1h-1zm-3%202v-1h-1v1h1zm3%200v-1h-1v1h-1v1h1v1h1v-1h2v-2h-1v1h-1zm-9%206h1v-2h-1v2zm9-2v2h1v-1h1v-2h-1v1h-1zm-20-5h7v7h-7v-7zm1%206h5v-5h-5v5zm18%201v-1h-1v1h1zm-17-2h3v-3h-3v3zm19-1v-1h-1v1h1zm-13-5v2h1v-2h-1z'/%3e%3c/svg%3e",Sle="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17'%20height='17'%20viewBox='258%20216%2017%2017'%3e%3cg%20data-name='Group%2016'%20transform='translate(258%20216)'%20clip-path='url(&quot;%23a&quot;)'%3e%3cpath%20d='M8.5%200C3.812%200%200%203.812%200%208.5%200%2013.188%203.812%2017%208.5%2017c4.688%200%208.5-3.812%208.5-8.5C17%203.812%2013.188%200%208.5%200m3.221%203.507.519-.715c.054-.072.143-.09.215-.036l.411.304c.412.34.805.716%201.128%201.11l.268.34a.163.163%200%200%201-.018.214l-.698.555a.163.163%200%200%201-.214-.018l-.251-.34a6.928%206.928%200%200%200-.966-.948l-.358-.25c-.072-.055-.072-.144-.036-.216ZM7.23%201.628l.52-.071a5.935%205.935%200%200%201%201.592%200l.447.054c.09.017.144.089.144.179l-.09.876a.174.174%200%200%201-.179.144l-.447-.072a4.822%204.822%200%200%200-1.342.018l-.448.053c-.09.018-.16-.053-.179-.125l-.143-.877c-.018-.09.054-.16.125-.179Zm-4.473%202.9.304-.412c.34-.412.716-.805%201.127-1.128l.34-.268a.163.163%200%200%201%20.215.018l.555.698a.163.163%200%200%201-.018.214l-.358.269c-.34.286-.662.608-.948.966l-.25.358c-.055.072-.144.09-.216.036l-.715-.519a.17.17%200%200%201-.036-.233Zm-.949%205.368c-.09.018-.16-.054-.179-.126l-.071-.518a5.938%205.938%200%200%201%200-1.593l.054-.447a.174.174%200%200%201%20.179-.144l.876.09c.09.018.144.09.144.179l-.072.447a4.82%204.82%200%200%200%20.018%201.342l.071.43c.018.09-.053.16-.125.179l-.895.16Zm3.472%203.597-.519.715c-.054.072-.143.09-.215.036l-.411-.304a7.463%207.463%200%200%201-1.128-1.127l-.268-.34a.163.163%200%200%201%20.018-.215l.698-.555a.163.163%200%200%201%20.214.018l.269.34c.286.34.608.662.966.948l.358.25a.22.22%200%200%201%20.018.234Zm4.492%201.879-.52.071a5.935%205.935%200%200%201-1.592%200l-.447-.054a.174.174%200%200%201-.144-.179l.09-.876a.174.174%200%200%201%20.179-.144l.447.054a4.82%204.82%200%200%200%201.342-.018l.43-.071c.09-.018.161.053.179.125l.143.877c.036.125-.036.197-.107.215Zm.393-3.991-1.575-.895a.163.163%200%200%200-.179%200l-1.574.895c-.269.143-.591-.09-.52-.376l.359-1.771a.144.144%200%200%200-.054-.161L5.279%207.838c-.233-.215-.107-.59.197-.608l1.807-.197a.156.156%200%200%200%20.143-.108l.752-1.646a.349.349%200%200%201%20.644%200l.752%201.646c.017.054.09.09.143.108l1.807.197c.304.035.43.411.197.608l-1.342%201.217a.144.144%200%200%200-.054.16l.358%201.772c.072.322-.25.537-.519.394Zm4.08%201.092-.304.411c-.34.412-.716.805-1.127%201.128l-.34.268a.163.163%200%200%201-.215-.018l-.555-.698a.163.163%200%200%201%20.018-.215l.34-.268c.34-.286.662-.608.948-.966l.25-.358c.055-.072.144-.09.216-.036l.715.52c.09.053.108.16.054.232Zm1.163-2.685a.174.174%200%200%201-.179.144l-.877-.09a.174.174%200%200%201-.143-.179l.054-.447a4.822%204.822%200%200%200-.018-1.342l-.054-.448c-.018-.09.054-.16.126-.179l.876-.143c.09-.018.161.054.18.125l.071.52a5.938%205.938%200%200%201%200%201.592l-.036.447Z'%20fill-rule='evenodd'%20data-name='Path%2033'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20d='M0%200h17v17H0V0z'%20data-name='Rectangle%2022'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";var Cle=Le('<img slot="icon" alt=""/>'),Tle=Le('<img slot="icon" alt=""/>'),Rle=Le('<img slot="icon" alt=""/>'),Ple=Le("<span> </span>"),xle=Le('<img slot="icon" alt=""/>'),Nle=Le('<img slot="icon" alt=""/>'),Ile=Le("<!> <!> <!> <!> <!>",1);function IL(t,e){if(new.target)return ht({component:IL,...t});ot(e,!1);const r=De(),n=De(),s=De();let i=Ge(e,"options",12),{theme:o,iconStyles:a,onClick:c}=i();gt(()=>$e(i()),()=>{Re(r,i().balance)}),gt(()=>$e(i()),()=>{Re(n,i().isShownBalance)}),gt(()=>$e(i()),()=>{Re(s,i().isMinimized)}),mr(),Et();var l=Ile(),u=He(l);{let y=bt(()=>({isMinimized:z(s),theme:o,title:"Sign Out",onClick:()=>c(Xe.LOGOUT)}));Eh(u,{get options(){return z(y)},$$slots:{icon:(v,A)=>{var E=Cle();Ye(()=>{kt(E,"src",Ale),_i(E,a)}),Ee(v,E)}}})}var d=Ue(u,2);{let y=bt(()=>({isMinimized:z(s),theme:o,title:"Show ID",onClick:()=>c(Xe.PASSPORT_ID)}));Eh(d,{get options(){return z(y)},$$slots:{icon:(v,A)=>{var E=Tle();Ye(()=>{kt(E,"src",_le),_i(E,a)}),Ee(v,E)}}})}var h=Ue(d,2);{let y=bt(()=>({isMinimized:z(s),theme:o,title:"PassScan",onClick:()=>c(Xe.SCANNER)}));Eh(h,{get options(){return z(y)},$$slots:{icon:(v,A)=>{var E=Rle();Ye(()=>{kt(E,"src",bL),_i(E,a)}),Ee(v,E)}}})}var p=Ue(h,2);{var g=y=>{{let v=bt(()=>({theme:o,title:"Wallet",onClick:()=>c(Xe.WALLET),isMinimized:z(s)}));Eh(y,{get options(){return z(v)},children:(A,E)=>{var w=Ple();let C;var B=Ie(w,!0);Ne(w),Ye(F=>{C=Lr(w,1,"cpnav-menu-item-balance crtw-text-[9px]",null,C,F),pt(B,z(r))},[()=>({"cpnav-menu-item-balance-white":o===Uo.BLACK})]),Ee(A,w)},$$slots:{default:!0,icon:(A,E)=>{var w=xle();Ye(()=>{kt(w,"src",Sle),_i(w,a)}),Ee(A,w)}}})}};Je(p,y=>{z(n)&&y(g)})}var m=Ue(p,2);{let y=bt(()=>({isMinimized:z(s),theme:o,title:"My Account",onClick:()=>c(Xe.PROFILE)}));Eh(m,{get options(){return z(y)},$$slots:{icon:(v,A)=>{var E=Nle();Ye(()=>{kt(E,"src",mL),_i(E,a)}),Ee(v,E)}}})}return Ee(t,l),at({get options(){return i()},set options(y){i(y),je()},$set:ut,$on:(y,v)=>lt(e,y,v)})}const Ole={hash:"svelte-f74vpm",code:".cpnav svg:focus {outline:0;}"};function OL(t,e){if(new.target)return ht({component:OL,...t});ot(e,!1),gc(t,Ole);const[r,n]=kn(),s=()=>Rt(wt,"$configStore",r),i=()=>Rt(Yr,"$providerStore",r),o=()=>Rt(qc,"$clientPublicStore",r),a=()=>Rt(ci,"$isLoggedInStore",r);var c=this&&this.__awaiter||function(K,$,Y,q){function te(ie){return ie instanceof Y?ie:new Y(function(ye){ye(ie)})}return new(Y||(Y=Promise))(function(ie,ye){function _e(le){try{oe(q.next(le))}catch(we){ye(we)}}function Te(le){try{oe(q.throw(le))}catch(we){ye(we)}}function oe(le){le.done?ie(le.value):te(le.value).then(_e,Te)}oe((q=q.apply(K,$||[])).next())})},l,u,d;let h=Ge(e,"styles",12),p=Ge(e,"navConfig",12);const g=We(wt),{openUI:m,getCREDContract:y,getBalance:v}=We(Sr);let A=De("");const E=()=>c(void 0,void 0,void 0,function*(){try{if(!(yield rn()))return;const{decimals:$,contract:Y,address:q}=yield y(),te=yield v(),ie=fr.formatUnits(te,$),ye=yield Y.symbol();Re(A,`(${ie} ${_m(ye,"cred")})`),Nn.track("cp_nav_balance_read",{chain:s().chainId,contract:q,decimals:$,balance:ie,symbol:ye})}catch(K){console.log(K),Re(A,"")}}),w=BE(xt.RECHECK_BALANCE,K=>c(void 0,void 0,void 0,function*(){K?.length&&(yield Promise.all(K.map($=>i().waitForTransaction($)))),yield E()})),C=BE(xt.LOGIN,()=>c(void 0,void 0,void 0,function*(){yield E()})),B=Yr.subscribe(K=>c(void 0,void 0,void 0,function*(){K&&(yield E())})),F=Object.entries((o()===null||o()===void 0?void 0:o().ui_settings)||{}).map(([K,$])=>K==="text_color"?["color",$]:[`${K.replace(/_/g,"-")}`,$]),I=Object.assign(Object.assign({},h()),Object.fromEntries(F)),L=Object.entries(I).map(([K,$])=>`${K}:${$} !important`).join(";");let D=De(!1),M=((l=p().minimization)===null||l===void 0?void 0:l.enabled)||!1;const N=((u=g.nav)===null||u===void 0?void 0:u.direction)||nh.TOP,P=((d=g.nav)===null||d===void 0?void 0:d.theme)||Uo.WHITE;let U=De("");const O=Object.entries(hA(P)).map(([K,$])=>`${K}:${$}`).join(";"),j=ci.subscribe(K=>{K||Re(D,!1)});zh(()=>{w(),C(),j(),B()}),gt(()=>(z(D),hA),()=>{Re(U,Object.entries(Object.assign(Object.assign({},z(D)?{transform:"scale(1, -1)"}:{}),hA(P))).map(([K,$])=>`${K}:${$}`).join(";"))}),mr(),Et();{let K=bt(()=>({isExpanded:z(D),theme:P,isMinimized:M,cssVarStyles:L,navConfig:p(),navDirection:N,iconStyles:O,onItemClicked:q=>m(q),expandedNavComponent:IL})),$=bt(()=>(a(),z(D),o(),$e(NL),z(U),Fe(()=>({onClick:()=>a()?Re(D,!z(D)):m(),title:`${o()?.name}`,passIcon:o()?.ui_settings.logo_url||NL,chevronStyles:z(U)})))),Y=bt(()=>(z(A),Fe(()=>({isShown:g.buyTokens!==!1,balance:z(A)}))));XF(t,{get options(){return z(K)},get navItemOptions(){return z($)},get balanceOptions(){return z(Y)}})}var Z=at({get styles(){return h()},set styles(K){h(K),je()},get navConfig(){return p()},set navConfig(K){p(K),je()},$set:ut,$on:(K,$)=>lt(e,K,$)});return n(),Z}const Ble=Object.freeze(Object.defineProperty({__proto__:null,default:OL},Symbol.toStringTag,{value:"Module"})),Ule=[.2,3/8,5/9,2/3],Mle=(t,e)=>r=>{const n=4*t+r-4,s="*-04-39?2$%%$%%'$%''%'''%')(%'))%(++'(++'(+.'+-.',/3',33)-/5)-43).36)058*18<+37<+4:<,4:E,5<A-7>C/8@F/:EH/<EK0=FM1?IP2@KS3BNV4DPY5FS\\6HV_6IXb7K[e8N^i9Pam;Rdp<Tgt".charCodeAt(n)-35,i=n>8?s:1,o=e/i|0,a=e%i,c=i-a,l=n>8?o*Ule[r]+(t>5)&-2:s,u=o-l;return{t:c*u+a*u+a,o:[[c,u],[a,u+1]],i:l}},Ch=t=>new Uint8Array(t),Sm=t=>{const e=new Error(`lean-qr error ${t}`);throw e.code=t,e},Uw=t=>"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(t),dA=t=>t.charCodeAt(0),BL=(...t)=>(e,r)=>t.forEach(n=>n(e,r)),UL=t=>e=>{e.eci!==t&&(e.push(7,4),e.push(t,8),e.eci=t)},fA=t=>(e,r)=>{e.push(4,4),e.push(t.length,8+8*(r>9)),t.forEach(n=>e.push(n,8))},rp=(t,e,r,n,s=(o,a)=>r(o.length,a),i=n?o=>BL(UL(n),t(o)):t)=>(i.test=e,i.l=r,i.est=s,i.eci=n&&[n],i),ML=rp(t=>(e,r)=>{e.push(1,4),e.push(t.length,10+2*(r>26)+2*(r>9));let n=0;for(;n<t.length-2;n+=3)e.push(+t.slice(n,n+3),10);n<t.length-1?e.push(+t.slice(n),7):n<t.length&&e.push(+t[n],4)},t=>/[0-9]/.test(t),(t,e)=>14+2*(e>26)+2*(e>9)+10*t/3),FL=rp(t=>(e,r)=>{e.push(2,4),e.push(t.length,9+2*(r>26)+2*(r>9));let n=0;for(;n<t.length-1;n+=2)e.push(45*Uw(t[n])+Uw(t[n+1]),11);n<t.length&&e.push(Uw(t[n]),6)},t=>Uw(t)>=0,(t,e)=>13+2*(e>26)+2*(e>9)+5.5*t),np=rp(t=>fA([...t].map(dA)),t=>dA(t)<128,(t,e)=>12+8*(e>9)+8*t);np._=!0,np.u=!0;const pA=rp(np,t=>dA(t)<256,np.l,3);pA._=!0;const LL=new TextEncoder,gA=rp(t=>fA(LL.encode(t)),()=>1,0,26,(t,e)=>12+8*(e>9)+8*LL.encode(t).length);gA._=!0;let mA=()=>{const t=new Map,e=new TextDecoder("sjis"),r=Ch(2);for(let n=0;n<7973;++n)r[0]=n/192+129+64*(n>5951),r[1]=n%192+64,t.set(e.decode(r),n);return t.delete("�"),mA=()=>t,t};const yA=rp(t=>(e,r)=>{e.push(8,4),e.push(t.length,8+2*(r>26)+2*(r>9));for(const n of t)e.push(mA().get(n),13)},t=>mA().has(t),(t,e)=>12+2*(e>26)+2*(e>9)+13*t);yA._=!0;const VL=[ML,FL,np,pA,yA,gA],Fle={auto:(t,{modes:e=VL}={})=>(r,n)=>{const s=e.map((u,d)=>{const h=new Map,p=(g,m)=>(h.has(g)||h.set(g,m(g,n)),h.get(g));return{m:u,h:1<<d,C:u.est("",n),S:u.l?(g,m)=>p(m-g,u.l):(g,m)=>p(t.slice(g,m),u.est)}});let i=[{v:0}],o=0,a=0,c=-1;for(const u of[...t,""]){let d=0;if(u)for(const h of s)h.m.test(u)&&(d|=h.h);if(!u||d!==c){if(c!==-1){const h=new Set(i.map(g=>g.D)),p=[];for(const{m:g,C:m,S:y,h:v}of s)if(c&v){const A=y(o,a);for(const E of g.eci??h)if(!g.u||!E){let w;for(const C of i)if(C.D===E||g.eci){const B=C.m===g&&C.D===E,F=B?C.V:C,I=g._&&B?C.v+A-m:F.v+12*(F.D!==E)+(B?y(B?C.$:o,a):A);(!w||I<w.v)&&(w={$:B?C.$:o,V:F,m:g,D:E,A:a,v:I})}w&&p.push(w)}}i=p}c=d,o=a}a+=u.length}i.length||Sm(5);const l=[];for(let u=i.reduce((d,h)=>h.v<d.v?h:d);u.m;u=u.V)l.push(u.m(t.slice(u.$,u.A)));l.reverse().forEach(u=>u(r,n))},multi:BL,eci:UL,bytes:fA,numeric:ML,alphaNumeric:FL,ascii:np,iso8859_1:pA,shift_jis:yA,utf8:gA},Lle=()=>({F:Ch(2956),I:0,push(t,e){for(let r=e,n=8-(7&this.I);r>0;r-=n,n=8)this.F[this.I>>3]|=t<<n>>r,this.I+=r<n?r:n}}),vA=(t,e=t*t,r=Ch(e))=>({size:t,K:r,get:(n,s)=>n>=0&&n<t&&!!(1&r[s*t+n]),toString({on:n="##",off:s=" ",lf:i=`
@@ -685,7 +685,7 @@ crtw-text-white crtw-mt-[5px] crtw-justify-center crtw-flex"><!></button>`);func
685
685
  * @license MIT
686
686
  */(function(t){const e=Ww,r=xA,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=A,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const f=new Uint8Array(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(f,b),f.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(f){if(f>s)throw new RangeError('The value "'+f+'" is invalid for option "size"');const b=new Uint8Array(f);return Object.setPrototypeOf(b,a.prototype),b}function a(f,b,_){if(typeof f=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(f)}return c(f,b,_)}a.poolSize=8192;function c(f,b,_){if(typeof f=="string")return h(f,b);if(ArrayBuffer.isView(f))return g(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(ge(f,ArrayBuffer)||f&&ge(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ge(f,SharedArrayBuffer)||f&&ge(f.buffer,SharedArrayBuffer)))return m(f,b,_);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=f.valueOf&&f.valueOf();if(T!=null&&T!==f)return a.from(T,b,_);const k=y(f);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return a.from(f[Symbol.toPrimitive]("string"),b,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}a.from=function(f,b,_){return c(f,b,_)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function u(f,b,_){return l(f),f<=0?o(f):b!==void 0?typeof _=="string"?o(f).fill(b,_):o(f).fill(b):o(f)}a.alloc=function(f,b,_){return u(f,b,_)};function d(f){return l(f),o(f<0?0:v(f)|0)}a.allocUnsafe=function(f){return d(f)},a.allocUnsafeSlow=function(f){return d(f)};function h(f,b){if((typeof b!="string"||b==="")&&(b="utf8"),!a.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const _=E(f,b)|0;let T=o(_);const k=T.write(f,b);return k!==_&&(T=T.slice(0,k)),T}function p(f){const b=f.length<0?0:v(f.length)|0,_=o(b);for(let T=0;T<b;T+=1)_[T]=f[T]&255;return _}function g(f){if(ge(f,Uint8Array)){const b=new Uint8Array(f);return m(b.buffer,b.byteOffset,b.byteLength)}return p(f)}function m(f,b,_){if(b<0||f.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<b+(_||0))throw new RangeError('"length" is outside of buffer bounds');let T;return b===void 0&&_===void 0?T=new Uint8Array(f):_===void 0?T=new Uint8Array(f,b):T=new Uint8Array(f,b,_),Object.setPrototypeOf(T,a.prototype),T}function y(f){if(a.isBuffer(f)){const b=v(f.length)|0,_=o(b);return _.length===0||f.copy(_,0,0,b),_}if(f.length!==void 0)return typeof f.length!="number"||Pe(f.length)?o(0):p(f);if(f.type==="Buffer"&&Array.isArray(f.data))return p(f.data)}function v(f){if(f>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return f|0}function A(f){return+f!=f&&(f=0),a.alloc(+f)}a.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==a.prototype},a.compare=function(f,b){if(ge(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),ge(b,Uint8Array)&&(b=a.from(b,b.offset,b.byteLength)),!a.isBuffer(f)||!a.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===b)return 0;let _=f.length,T=b.length;for(let k=0,R=Math.min(_,T);k<R;++k)if(f[k]!==b[k]){_=f[k],T=b[k];break}return _<T?-1:T<_?1:0},a.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(f,b){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return a.alloc(0);let _;if(b===void 0)for(b=0,_=0;_<f.length;++_)b+=f[_].length;const T=a.allocUnsafe(b);let k=0;for(_=0;_<f.length;++_){let R=f[_];if(ge(R,Uint8Array))k+R.length>T.length?(a.isBuffer(R)||(R=a.from(R)),R.copy(T,k)):Uint8Array.prototype.set.call(T,R,k);else if(a.isBuffer(R))R.copy(T,k);else throw new TypeError('"list" argument must be an Array of Buffers');k+=R.length}return T};function E(f,b){if(a.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||ge(f,ArrayBuffer))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const _=f.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&_===0)return 0;let k=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return ee(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ce(f).length;default:if(k)return T?-1:ee(f).length;b=(""+b).toLowerCase(),k=!0}}a.byteLength=E;function w(f,b,_){let T=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,b>>>=0,_<=b))return"";for(f||(f="utf8");;)switch(f){case"hex":return $(this,b,_);case"utf8":case"utf-8":return U(this,b,_);case"ascii":return Z(this,b,_);case"latin1":case"binary":return K(this,b,_);case"base64":return P(this,b,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,b,_);default:if(T)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),T=!0}}a.prototype._isBuffer=!0;function C(f,b,_){const T=f[b];f[b]=f[_],f[_]=T}a.prototype.swap16=function(){const f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<f;b+=2)C(this,b,b+1);return this},a.prototype.swap32=function(){const f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<f;b+=4)C(this,b,b+3),C(this,b+1,b+2);return this},a.prototype.swap64=function(){const f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<f;b+=8)C(this,b,b+7),C(this,b+1,b+6),C(this,b+2,b+5),C(this,b+3,b+4);return this},a.prototype.toString=function(){const f=this.length;return f===0?"":arguments.length===0?U(this,0,f):w.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(f){if(!a.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:a.compare(this,f)===0},a.prototype.inspect=function(){let f="";const b=t.INSPECT_MAX_BYTES;return f=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(f+=" ... "),"<Buffer "+f+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(f,b,_,T,k){if(ge(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(b===void 0&&(b=0),_===void 0&&(_=f?f.length:0),T===void 0&&(T=0),k===void 0&&(k=this.length),b<0||_>f.length||T<0||k>this.length)throw new RangeError("out of range index");if(T>=k&&b>=_)return 0;if(T>=k)return-1;if(b>=_)return 1;if(b>>>=0,_>>>=0,T>>>=0,k>>>=0,this===f)return 0;let R=k-T,H=_-b;const ce=Math.min(R,H),he=this.slice(T,k),ke=f.slice(b,_);for(let xe=0;xe<ce;++xe)if(he[xe]!==ke[xe]){R=he[xe],H=ke[xe];break}return R<H?-1:H<R?1:0};function B(f,b,_,T,k){if(f.length===0)return-1;if(typeof _=="string"?(T=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Pe(_)&&(_=k?0:f.length-1),_<0&&(_=f.length+_),_>=f.length){if(k)return-1;_=f.length-1}else if(_<0)if(k)_=0;else return-1;if(typeof b=="string"&&(b=a.from(b,T)),a.isBuffer(b))return b.length===0?-1:F(f,b,_,T,k);if(typeof b=="number")return b=b&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(f,b,_):Uint8Array.prototype.lastIndexOf.call(f,b,_):F(f,[b],_,T,k);throw new TypeError("val must be string, number or Buffer")}function F(f,b,_,T,k){let R=1,H=f.length,ce=b.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(f.length<2||b.length<2)return-1;R=2,H/=2,ce/=2,_/=2}function he(xe,ze){return R===1?xe[ze]:xe.readUInt16BE(ze*R)}let ke;if(k){let xe=-1;for(ke=_;ke<H;ke++)if(he(f,ke)===he(b,xe===-1?0:ke-xe)){if(xe===-1&&(xe=ke),ke-xe+1===ce)return xe*R}else xe!==-1&&(ke-=ke-xe),xe=-1}else for(_+ce>H&&(_=H-ce),ke=_;ke>=0;ke--){let xe=!0;for(let ze=0;ze<ce;ze++)if(he(f,ke+ze)!==he(b,ze)){xe=!1;break}if(xe)return ke}return-1}a.prototype.includes=function(f,b,_){return this.indexOf(f,b,_)!==-1},a.prototype.indexOf=function(f,b,_){return B(this,f,b,_,!0)},a.prototype.lastIndexOf=function(f,b,_){return B(this,f,b,_,!1)};function I(f,b,_,T){_=Number(_)||0;const k=f.length-_;T?(T=Number(T),T>k&&(T=k)):T=k;const R=b.length;T>R/2&&(T=R/2);let H;for(H=0;H<T;++H){const ce=parseInt(b.substr(H*2,2),16);if(Pe(ce))return H;f[_+H]=ce}return H}function L(f,b,_,T){return J(ee(b,f.length-_),f,_,T)}function D(f,b,_,T){return J(fe(b),f,_,T)}function M(f,b,_,T){return J(Ce(b),f,_,T)}function N(f,b,_,T){return J(Ae(b,f.length-_),f,_,T)}a.prototype.write=function(f,b,_,T){if(b===void 0)T="utf8",_=this.length,b=0;else if(_===void 0&&typeof b=="string")T=b,_=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(_)?(_=_>>>0,T===void 0&&(T="utf8")):(T=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const k=this.length-b;if((_===void 0||_>k)&&(_=k),f.length>0&&(_<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let R=!1;for(;;)switch(T){case"hex":return I(this,f,b,_);case"utf8":case"utf-8":return L(this,f,b,_);case"ascii":case"latin1":case"binary":return D(this,f,b,_);case"base64":return M(this,f,b,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,f,b,_);default:if(R)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),R=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(f,b,_){return b===0&&_===f.length?e.fromByteArray(f):e.fromByteArray(f.slice(b,_))}function U(f,b,_){_=Math.min(f.length,_);const T=[];let k=b;for(;k<_;){const R=f[k];let H=null,ce=R>239?4:R>223?3:R>191?2:1;if(k+ce<=_){let he,ke,xe,ze;switch(ce){case 1:R<128&&(H=R);break;case 2:he=f[k+1],(he&192)===128&&(ze=(R&31)<<6|he&63,ze>127&&(H=ze));break;case 3:he=f[k+1],ke=f[k+2],(he&192)===128&&(ke&192)===128&&(ze=(R&15)<<12|(he&63)<<6|ke&63,ze>2047&&(ze<55296||ze>57343)&&(H=ze));break;case 4:he=f[k+1],ke=f[k+2],xe=f[k+3],(he&192)===128&&(ke&192)===128&&(xe&192)===128&&(ze=(R&15)<<18|(he&63)<<12|(ke&63)<<6|xe&63,ze>65535&&ze<1114112&&(H=ze))}}H===null?(H=65533,ce=1):H>65535&&(H-=65536,T.push(H>>>10&1023|55296),H=56320|H&1023),T.push(H),k+=ce}return j(T)}const O=4096;function j(f){const b=f.length;if(b<=O)return String.fromCharCode.apply(String,f);let _="",T=0;for(;T<b;)_+=String.fromCharCode.apply(String,f.slice(T,T+=O));return _}function Z(f,b,_){let T="";_=Math.min(f.length,_);for(let k=b;k<_;++k)T+=String.fromCharCode(f[k]&127);return T}function K(f,b,_){let T="";_=Math.min(f.length,_);for(let k=b;k<_;++k)T+=String.fromCharCode(f[k]);return T}function $(f,b,_){const T=f.length;(!b||b<0)&&(b=0),(!_||_<0||_>T)&&(_=T);let k="";for(let R=b;R<_;++R)k+=Ve[f[R]];return k}function Y(f,b,_){const T=f.slice(b,_);let k="";for(let R=0;R<T.length-1;R+=2)k+=String.fromCharCode(T[R]+T[R+1]*256);return k}a.prototype.slice=function(f,b){const _=this.length;f=~~f,b=b===void 0?_:~~b,f<0?(f+=_,f<0&&(f=0)):f>_&&(f=_),b<0?(b+=_,b<0&&(b=0)):b>_&&(b=_),b<f&&(b=f);const T=this.subarray(f,b);return Object.setPrototypeOf(T,a.prototype),T};function q(f,b,_){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+b>_)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(f,b,_){f=f>>>0,b=b>>>0,_||q(f,b,this.length);let T=this[f],k=1,R=0;for(;++R<b&&(k*=256);)T+=this[f+R]*k;return T},a.prototype.readUintBE=a.prototype.readUIntBE=function(f,b,_){f=f>>>0,b=b>>>0,_||q(f,b,this.length);let T=this[f+--b],k=1;for(;b>0&&(k*=256);)T+=this[f+--b]*k;return T},a.prototype.readUint8=a.prototype.readUInt8=function(f,b){return f=f>>>0,b||q(f,1,this.length),this[f]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(f,b){return f=f>>>0,b||q(f,2,this.length),this[f]|this[f+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(f,b){return f=f>>>0,b||q(f,2,this.length),this[f]<<8|this[f+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(f,b){return f=f>>>0,b||q(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(f,b){return f=f>>>0,b||q(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},a.prototype.readBigUInt64LE=se(function(f){f=f>>>0,be(f,"offset");const b=this[f],_=this[f+7];(b===void 0||_===void 0)&&re(f,this.length-8);const T=b+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24,k=this[++f]+this[++f]*2**8+this[++f]*2**16+_*2**24;return BigInt(T)+(BigInt(k)<<BigInt(32))}),a.prototype.readBigUInt64BE=se(function(f){f=f>>>0,be(f,"offset");const b=this[f],_=this[f+7];(b===void 0||_===void 0)&&re(f,this.length-8);const T=b*2**24+this[++f]*2**16+this[++f]*2**8+this[++f],k=this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+_;return(BigInt(T)<<BigInt(32))+BigInt(k)}),a.prototype.readIntLE=function(f,b,_){f=f>>>0,b=b>>>0,_||q(f,b,this.length);let T=this[f],k=1,R=0;for(;++R<b&&(k*=256);)T+=this[f+R]*k;return k*=128,T>=k&&(T-=Math.pow(2,8*b)),T},a.prototype.readIntBE=function(f,b,_){f=f>>>0,b=b>>>0,_||q(f,b,this.length);let T=b,k=1,R=this[f+--T];for(;T>0&&(k*=256);)R+=this[f+--T]*k;return k*=128,R>=k&&(R-=Math.pow(2,8*b)),R},a.prototype.readInt8=function(f,b){return f=f>>>0,b||q(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},a.prototype.readInt16LE=function(f,b){f=f>>>0,b||q(f,2,this.length);const _=this[f]|this[f+1]<<8;return _&32768?_|4294901760:_},a.prototype.readInt16BE=function(f,b){f=f>>>0,b||q(f,2,this.length);const _=this[f+1]|this[f]<<8;return _&32768?_|4294901760:_},a.prototype.readInt32LE=function(f,b){return f=f>>>0,b||q(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},a.prototype.readInt32BE=function(f,b){return f=f>>>0,b||q(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},a.prototype.readBigInt64LE=se(function(f){f=f>>>0,be(f,"offset");const b=this[f],_=this[f+7];(b===void 0||_===void 0)&&re(f,this.length-8);const T=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(_<<24);return(BigInt(T)<<BigInt(32))+BigInt(b+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24)}),a.prototype.readBigInt64BE=se(function(f){f=f>>>0,be(f,"offset");const b=this[f],_=this[f+7];(b===void 0||_===void 0)&&re(f,this.length-8);const T=(b<<24)+this[++f]*2**16+this[++f]*2**8+this[++f];return(BigInt(T)<<BigInt(32))+BigInt(this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+_)}),a.prototype.readFloatLE=function(f,b){return f=f>>>0,b||q(f,4,this.length),r.read(this,f,!0,23,4)},a.prototype.readFloatBE=function(f,b){return f=f>>>0,b||q(f,4,this.length),r.read(this,f,!1,23,4)},a.prototype.readDoubleLE=function(f,b){return f=f>>>0,b||q(f,8,this.length),r.read(this,f,!0,52,8)},a.prototype.readDoubleBE=function(f,b){return f=f>>>0,b||q(f,8,this.length),r.read(this,f,!1,52,8)};function te(f,b,_,T,k,R){if(!a.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>k||b<R)throw new RangeError('"value" argument is out of bounds');if(_+T>f.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(f,b,_,T){if(f=+f,b=b>>>0,_=_>>>0,!T){const H=Math.pow(2,8*_)-1;te(this,f,b,_,H,0)}let k=1,R=0;for(this[b]=f&255;++R<_&&(k*=256);)this[b+R]=f/k&255;return b+_},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(f,b,_,T){if(f=+f,b=b>>>0,_=_>>>0,!T){const H=Math.pow(2,8*_)-1;te(this,f,b,_,H,0)}let k=_-1,R=1;for(this[b+k]=f&255;--k>=0&&(R*=256);)this[b+k]=f/R&255;return b+_},a.prototype.writeUint8=a.prototype.writeUInt8=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,1,255,0),this[b]=f&255,b+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,2,65535,0),this[b]=f&255,this[b+1]=f>>>8,b+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,2,65535,0),this[b]=f>>>8,this[b+1]=f&255,b+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,4,4294967295,0),this[b+3]=f>>>24,this[b+2]=f>>>16,this[b+1]=f>>>8,this[b]=f&255,b+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,4,4294967295,0),this[b]=f>>>24,this[b+1]=f>>>16,this[b+2]=f>>>8,this[b+3]=f&255,b+4};function ie(f,b,_,T,k){me(b,T,k,f,_,7);let R=Number(b&BigInt(4294967295));f[_++]=R,R=R>>8,f[_++]=R,R=R>>8,f[_++]=R,R=R>>8,f[_++]=R;let H=Number(b>>BigInt(32)&BigInt(4294967295));return f[_++]=H,H=H>>8,f[_++]=H,H=H>>8,f[_++]=H,H=H>>8,f[_++]=H,_}function ye(f,b,_,T,k){me(b,T,k,f,_,7);let R=Number(b&BigInt(4294967295));f[_+7]=R,R=R>>8,f[_+6]=R,R=R>>8,f[_+5]=R,R=R>>8,f[_+4]=R;let H=Number(b>>BigInt(32)&BigInt(4294967295));return f[_+3]=H,H=H>>8,f[_+2]=H,H=H>>8,f[_+1]=H,H=H>>8,f[_]=H,_+8}a.prototype.writeBigUInt64LE=se(function(f,b=0){return ie(this,f,b,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=se(function(f,b=0){return ye(this,f,b,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(f,b,_,T){if(f=+f,b=b>>>0,!T){const ce=Math.pow(2,8*_-1);te(this,f,b,_,ce-1,-ce)}let k=0,R=1,H=0;for(this[b]=f&255;++k<_&&(R*=256);)f<0&&H===0&&this[b+k-1]!==0&&(H=1),this[b+k]=(f/R>>0)-H&255;return b+_},a.prototype.writeIntBE=function(f,b,_,T){if(f=+f,b=b>>>0,!T){const ce=Math.pow(2,8*_-1);te(this,f,b,_,ce-1,-ce)}let k=_-1,R=1,H=0;for(this[b+k]=f&255;--k>=0&&(R*=256);)f<0&&H===0&&this[b+k+1]!==0&&(H=1),this[b+k]=(f/R>>0)-H&255;return b+_},a.prototype.writeInt8=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,1,127,-128),f<0&&(f=255+f+1),this[b]=f&255,b+1},a.prototype.writeInt16LE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,2,32767,-32768),this[b]=f&255,this[b+1]=f>>>8,b+2},a.prototype.writeInt16BE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,2,32767,-32768),this[b]=f>>>8,this[b+1]=f&255,b+2},a.prototype.writeInt32LE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,4,2147483647,-2147483648),this[b]=f&255,this[b+1]=f>>>8,this[b+2]=f>>>16,this[b+3]=f>>>24,b+4},a.prototype.writeInt32BE=function(f,b,_){return f=+f,b=b>>>0,_||te(this,f,b,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[b]=f>>>24,this[b+1]=f>>>16,this[b+2]=f>>>8,this[b+3]=f&255,b+4},a.prototype.writeBigInt64LE=se(function(f,b=0){return ie(this,f,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=se(function(f,b=0){return ye(this,f,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(f,b,_,T,k,R){if(_+T>f.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Te(f,b,_,T,k){return b=+b,_=_>>>0,k||_e(f,b,_,4),r.write(f,b,_,T,23,4),_+4}a.prototype.writeFloatLE=function(f,b,_){return Te(this,f,b,!0,_)},a.prototype.writeFloatBE=function(f,b,_){return Te(this,f,b,!1,_)};function oe(f,b,_,T,k){return b=+b,_=_>>>0,k||_e(f,b,_,8),r.write(f,b,_,T,52,8),_+8}a.prototype.writeDoubleLE=function(f,b,_){return oe(this,f,b,!0,_)},a.prototype.writeDoubleBE=function(f,b,_){return oe(this,f,b,!1,_)},a.prototype.copy=function(f,b,_,T){if(!a.isBuffer(f))throw new TypeError("argument should be a Buffer");if(_||(_=0),!T&&T!==0&&(T=this.length),b>=f.length&&(b=f.length),b||(b=0),T>0&&T<_&&(T=_),T===_||f.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),f.length-b<T-_&&(T=f.length-b+_);const k=T-_;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,_,T):Uint8Array.prototype.set.call(f,this.subarray(_,T),b),k},a.prototype.fill=function(f,b,_,T){if(typeof f=="string"){if(typeof b=="string"?(T=b,b=0,_=this.length):typeof _=="string"&&(T=_,_=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!a.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(f.length===1){const R=f.charCodeAt(0);(T==="utf8"&&R<128||T==="latin1")&&(f=R)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(b<0||this.length<b||this.length<_)throw new RangeError("Out of range index");if(_<=b)return this;b=b>>>0,_=_===void 0?this.length:_>>>0,f||(f=0);let k;if(typeof f=="number")for(k=b;k<_;++k)this[k]=f;else{const R=a.isBuffer(f)?f:a.from(f,T),H=R.length;if(H===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(k=0;k<_-b;++k)this[k+b]=R[k%H]}return this};const le={};function we(f,b,_){le[f]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(f,b){return`The "${f}" argument must be of type number. Received type ${typeof b}`},TypeError),we("ERR_OUT_OF_RANGE",function(f,b,_){let T=`The value of "${f}" is out of range.`,k=_;return Number.isInteger(_)&&Math.abs(_)>2**32?k=W(String(_)):typeof _=="bigint"&&(k=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(k=W(k)),k+="n"),T+=` It must be ${b}. Received ${k}`,T},RangeError);function W(f){let b="",_=f.length;const T=f[0]==="-"?1:0;for(;_>=T+4;_-=3)b=`_${f.slice(_-3,_)}${b}`;return`${f.slice(0,_)}${b}`}function ue(f,b,_){be(b,"offset"),(f[b]===void 0||f[b+_]===void 0)&&re(b,f.length-(_+1))}function me(f,b,_,T,k,R){if(f>_||f<b){const H=typeof b=="bigint"?"n":"";let ce;throw b===0||b===BigInt(0)?ce=`>= 0${H} and < 2${H} ** ${(R+1)*8}${H}`:ce=`>= -(2${H} ** ${(R+1)*8-1}${H}) and < 2 ** ${(R+1)*8-1}${H}`,new le.ERR_OUT_OF_RANGE("value",ce,f)}ue(T,k,R)}function be(f,b){if(typeof f!="number")throw new le.ERR_INVALID_ARG_TYPE(b,"number",f)}function re(f,b,_){throw Math.floor(f)!==f?(be(f,_),new le.ERR_OUT_OF_RANGE("offset","an integer",f)):b<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,f)}const x=/[^+/0-9A-Za-z-_]/g;function G(f){if(f=f.split("=")[0],f=f.trim().replace(x,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function ee(f,b){b=b||1/0;let _;const T=f.length;let k=null;const R=[];for(let H=0;H<T;++H){if(_=f.charCodeAt(H),_>55295&&_<57344){if(!k){if(_>56319){(b-=3)>-1&&R.push(239,191,189);continue}else if(H+1===T){(b-=3)>-1&&R.push(239,191,189);continue}k=_;continue}if(_<56320){(b-=3)>-1&&R.push(239,191,189),k=_;continue}_=(k-55296<<10|_-56320)+65536}else k&&(b-=3)>-1&&R.push(239,191,189);if(k=null,_<128){if((b-=1)<0)break;R.push(_)}else if(_<2048){if((b-=2)<0)break;R.push(_>>6|192,_&63|128)}else if(_<65536){if((b-=3)<0)break;R.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((b-=4)<0)break;R.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return R}function fe(f){const b=[];for(let _=0;_<f.length;++_)b.push(f.charCodeAt(_)&255);return b}function Ae(f,b){let _,T,k;const R=[];for(let H=0;H<f.length&&!((b-=2)<0);++H)_=f.charCodeAt(H),T=_>>8,k=_%256,R.push(k),R.push(T);return R}function Ce(f){return e.toByteArray(G(f))}function J(f,b,_,T){let k;for(k=0;k<T&&!(k+_>=b.length||k>=f.length);++k)b[k+_]=f[k];return k}function ge(f,b){return f instanceof b||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===b.name}function Pe(f){return f!==f}const Ve=function(){const f="0123456789abcdef",b=new Array(256);for(let _=0;_<16;++_){const T=_*16;for(let k=0;k<16;++k)b[T+k]=f[_]+f[k]}return b}();function se(f){return typeof BigInt>"u"?ae:f}function ae(){throw new Error("BigInt not supported")}})(RA);const jue=t=>{const e=RA.Buffer.from(t,"base64").toString("utf8"),r=RA.Buffer.from(e,"binary").toString("base64");return t===r?e:t},Gue=async t=>{const e=jue(t),r=JSON.parse(e);return{message:e,...r}};class Ot{constructor(e,r,n,s,i){this._legacyCanvasSize=Ot.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=e,this.$canvas=document.createElement("canvas"),n&&typeof n=="object"?this._onDecode=r:(console.warn(n||s||i?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=r),r=typeof n=="object"?n:{},this._onDecodeError=r.onDecodeError||(typeof n=="function"?n:this._onDecodeError),this._calculateScanRegion=r.calculateScanRegion||(typeof s=="function"?s:this._calculateScanRegion),this._preferredCamera=r.preferredCamera||i||this._preferredCamera,this._legacyCanvasSize=typeof n=="number"?n:typeof s=="number"?s:this._legacyCanvasSize,this._maxScansPerSecond=r.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),e.disablePictureInPicture=!0,e.playsInline=!0,e.muted=!0;let o=!1;if(e.hidden&&(e.hidden=!1,o=!0),document.body.contains(e)||(document.body.appendChild(e),o=!0),n=e.parentElement,r.highlightScanRegion||r.highlightCodeOutline){if(s=!!r.overlay,this.$overlay=r.overlay||document.createElement("div"),i=this.$overlay.style,i.position="absolute",i.display="none",i.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!s&&r.highlightScanRegion){this.$overlay.innerHTML='<svg class="scan-region-highlight-svg" viewBox="0 0 238 238" preserveAspectRatio="none" style="position:absolute;width:100%;height:100%;left:0;top:0;fill:none;stroke:#e9b213;stroke-width:4;stroke-linecap:round;stroke-linejoin:round"><path d="M31 2H10a8 8 0 0 0-8 8v21M207 2h21a8 8 0 0 1 8 8v21m0 176v21a8 8 0 0 1-8 8h-21m-176 0H10a8 8 0 0 1-8-8v-21"/></svg>';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}n.insertBefore(this.$overlay,this.$video.nextSibling)}r.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",'<svg class="code-outline-highlight" preserveAspectRatio="none" style="display:none;width:100%;height:100%;fill:none;stroke:#e9b213;stroke-width:5;stroke-dasharray:25;stroke-linecap:round;stroke-linejoin:round"><polygon/></svg>'),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(e),requestAnimationFrame(()=>{let a=window.getComputedStyle(e);a.display==="none"&&(e.style.setProperty("display","block","important"),o=!0),a.visibility!=="visible"&&(e.style.setProperty("visibility","visible","important"),o=!0),o&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),e.style.opacity="0",e.style.width="0",e.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),e.addEventListener("play",this._onPlay),e.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=Ot.createQrEngine()}static set WORKER_PATH(e){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static async hasCamera(){try{return!!(await Ot.listCameras(!1)).length}catch{return!1}}static async listCameras(e=!1){if(!navigator.mediaDevices)return[];let r=async()=>(await navigator.mediaDevices.enumerateDevices()).filter(s=>s.kind==="videoinput"),n;try{e&&(await r()).every(s=>!s.label)&&(n=await navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(await r()).map((s,i)=>({id:s.deviceId,label:s.label||(i===0?"Default Camera":`Camera ${i+1}`)}))}finally{n&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),Ot._stopVideoStream(n))}}async hasFlash(){let e;try{if(this.$video.srcObject){if(!(this.$video.srcObject instanceof MediaStream))return!1;e=this.$video.srcObject}else e=(await this._getCameraStream()).stream;return"torch"in e.getVideoTracks()[0].getSettings()}catch{return!1}finally{e&&e!==this.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),Ot._stopVideoStream(e))}}isFlashOn(){return this._flashOn}async toggleFlash(){this._flashOn?await this.turnFlashOff():await this.turnFlashOn()}async turnFlashOn(){if(!this._flashOn&&!this._destroyed&&(this._flashOn=!0,this._active&&!this._paused))try{if(!await this.hasFlash())throw"No flash available";await this.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(e){throw this._flashOn=!1,e}}async turnFlashOff(){this._flashOn&&(this._flashOn=!1,await this._restartVideoStream())}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),Ot._postWorkerMessage(this._qrEnginePromise,"close")}async start(){if(this._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!this._active||this._paused)&&(window.location.protocol!=="https:"&&console.warn("The camera stream is only accessible if the page is transferred via https."),this._active=!0,!document.hidden))if(this._paused=!1,this.$video.srcObject)await this.$video.play();else try{let{stream:e,facingMode:r}=await this._getCameraStream();!this._active||this._paused?Ot._stopVideoStream(e):(this._setVideoMirror(r),this.$video.srcObject=e,await this.$video.play(),this._flashOn&&(this._flashOn=!1,this.turnFlashOn().catch(()=>{})))}catch(e){if(!this._paused)throw this._active=!1,e}}stop(){this.pause(),this._active=!1}async pause(e=!1){if(this._paused=!0,!this._active)return!0;this.$video.pause(),this.$overlay&&(this.$overlay.style.display="none");let r=()=>{this.$video.srcObject instanceof MediaStream&&(Ot._stopVideoStream(this.$video.srcObject),this.$video.srcObject=null)};return e?(r(),!0):(await new Promise(n=>setTimeout(n,300)),this._paused?(r(),!0):!1)}async setCamera(e){e!==this._preferredCamera&&(this._preferredCamera=e,await this._restartVideoStream())}static async scanImage(e,r,n,s,i=!1,o=!1){let a,c=!1;r&&("scanRegion"in r||"qrEngine"in r||"canvas"in r||"disallowCanvasResizing"in r||"alsoTryWithoutScanRegion"in r||"returnDetailedScanResult"in r)?(a=r.scanRegion,n=r.qrEngine,s=r.canvas,i=r.disallowCanvasResizing||!1,o=r.alsoTryWithoutScanRegion||!1,c=!0):console.warn(r||n||s||i||o?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),r=!!n;try{let l,u;[n,l]=await Promise.all([n||Ot.createQrEngine(),Ot._loadImage(e)]),[s,u]=Ot._drawToCanvas(l,a,s,i);let d;if(n instanceof Worker){let h=n;r||Ot._postWorkerMessageSync(h,"inversionMode","both"),d=await new Promise((p,g)=>{let m,y,v,A=-1;y=w=>{w.data.id===A&&(h.removeEventListener("message",y),h.removeEventListener("error",v),clearTimeout(m),w.data.data!==null?p({data:w.data.data,cornerPoints:Ot._convertPoints(w.data.cornerPoints,a)}):g(Ot.NO_QR_CODE_FOUND))},v=w=>{h.removeEventListener("message",y),h.removeEventListener("error",v),clearTimeout(m),g("Scanner error: "+(w?w.message||w:"Unknown Error"))},h.addEventListener("message",y),h.addEventListener("error",v),m=setTimeout(()=>v("timeout"),1e4);let E=u.getImageData(0,0,s.width,s.height);A=Ot._postWorkerMessageSync(h,"decode",E,[E.data.buffer])})}else d=await Promise.race([new Promise((h,p)=>window.setTimeout(()=>p("Scanner error: timeout"),1e4)),(async()=>{try{var[h]=await n.detect(s);if(!h)throw Ot.NO_QR_CODE_FOUND;return{data:h.rawValue,cornerPoints:Ot._convertPoints(h.cornerPoints,a)}}catch(p){if(h=p.message||p,/not implemented|service unavailable/.test(h))return Ot._disableBarcodeDetector=!0,Ot.scanImage(e,{scanRegion:a,canvas:s,disallowCanvasResizing:i,alsoTryWithoutScanRegion:o});throw`Scanner error: ${h}`}})()]);return c?d:d.data}catch(l){if(!a||!o)throw l;let u=await Ot.scanImage(e,{qrEngine:n,canvas:s,disallowCanvasResizing:i});return c?u:u.data}finally{r||Ot._postWorkerMessage(n,"close")}}setGrayscaleWeights(e,r,n,s=!0){Ot._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:e,green:r,blue:n,useIntegerApproximation:s})}setInversionMode(e){Ot._postWorkerMessage(this._qrEnginePromise,"inversionMode",e)}static async createQrEngine(e){if(e&&console.warn("Specifying a worker path is not required and not supported anymore."),e=()=>Promise.resolve().then(()=>ghe).then(n=>n.createWorker()),!(!Ot._disableBarcodeDetector&&"BarcodeDetector"in window&&BarcodeDetector.getSupportedFormats&&(await BarcodeDetector.getSupportedFormats()).includes("qr_code")))return e();let r=navigator.userAgentData;return r&&r.brands.some(({brand:n})=>/Chromium/i.test(n))&&/mac ?OS/i.test(r.platform)&&await r.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:n,platformVersion:s})=>/arm/i.test(n||"arm")&&13<=parseInt(s||"13")).catch(()=>!0)?e():new BarcodeDetector({formats:["qr_code"]})}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(e){let r=Math.round(.6666666666666666*Math.min(e.videoWidth,e.videoHeight));return{x:Math.round((e.videoWidth-r)/2),y:Math.round((e.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var e=this.$video,r=e.videoWidth,n=e.videoHeight,s=e.offsetWidth,i=e.offsetHeight,o=e.offsetLeft,a=e.offsetTop,c=window.getComputedStyle(e),l=c.objectFit,u=r/n,d=s/i;switch(l){case"none":var h=r,p=n;break;case"fill":h=s,p=i;break;default:(l==="cover"?u>d:u<d)?(p=i,h=p*u):(h=s,p=h/u),l==="scale-down"&&(h=Math.min(h,r),p=Math.min(p,n))}var[g,m]=c.objectPosition.split(" ").map((v,A)=>{const E=parseFloat(v);return v.endsWith("%")?(A?i-p:s-h)*E/100:E});c=this._scanRegion.width||r,d=this._scanRegion.height||n,l=this._scanRegion.x||0;var y=this._scanRegion.y||0;u=this.$overlay.style,u.width=`${c/r*h}px`,u.height=`${d/n*p}px`,u.top=`${a+m+y/n*p}px`,n=/scaleX\(-1\)/.test(e.style.transform),u.left=`${o+(n?s-g-h:g)+(n?r-l-c:l)/r*h}px`,u.transform=e.style.transform}})}static _convertPoints(e,r){if(!r)return e;let n=r.x||0,s=r.y||0,i=r.width&&r.downScaledWidth?r.width/r.downScaledWidth:1;r=r.height&&r.downScaledHeight?r.height/r.downScaledHeight:1;for(let o of e)o.x=o.x*i+n,o.y=o.y*r+s;return e}_scanFrame(){!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)(async()=>{if(!(1>=this.$video.readyState)){var e=Date.now()-this._lastScanTimestamp,r=1e3/this._maxScansPerSecond;e<r&&await new Promise(s=>setTimeout(s,r-e)),this._lastScanTimestamp=Date.now();try{var n=await Ot.scanImage(this.$video,{scanRegion:this._scanRegion,qrEngine:this._qrEnginePromise,canvas:this.$canvas})}catch(s){if(!this._active)return;this._onDecodeError(s)}!Ot._disableBarcodeDetector||await this._qrEnginePromise instanceof Worker||(this._qrEnginePromise=Ot.createQrEngine()),n?(this._onDecode?this._onDecode(n):this._legacyOnDecode&&this._legacyOnDecode(n.data),this.$codeOutlineHighlight&&(clearTimeout(this._codeOutlineHighlightRemovalTimeout),this._codeOutlineHighlightRemovalTimeout=void 0,this.$codeOutlineHighlight.setAttribute("viewBox",`${this._scanRegion.x||0} ${this._scanRegion.y||0} ${this._scanRegion.width||this.$video.videoWidth} ${this._scanRegion.height||this.$video.videoHeight}`),this.$codeOutlineHighlight.firstElementChild.setAttribute("points",n.cornerPoints.map(({x:s,y:i})=>`${s},${i}`).join(" ")),this.$codeOutlineHighlight.style.display="")):this.$codeOutlineHighlight&&!this._codeOutlineHighlightRemovalTimeout&&(this._codeOutlineHighlightRemovalTimeout=setTimeout(()=>this.$codeOutlineHighlight.style.display="none",100))}this._scanFrame()})}_onDecodeError(e){e!==Ot.NO_QR_CODE_FOUND&&console.log(e)}async _getCameraStream(){if(!navigator.mediaDevices)throw"Camera not found.";let e=/^(environment|user)$/.test(this._preferredCamera)?"facingMode":"deviceId",r=[{width:{min:1024}},{width:{min:768}},{}],n=r.map(s=>Object.assign({},s,{[e]:{exact:this._preferredCamera}}));for(let s of[...n,...r])try{let i=await navigator.mediaDevices.getUserMedia({video:s,audio:!1}),o=this._getFacingMode(i)||(s.facingMode?this._preferredCamera:this._preferredCamera==="environment"?"user":"environment");return{stream:i,facingMode:o}}catch{}throw"Camera not found."}async _restartVideoStream(){let e=this._paused;await this.pause(!0)&&!e&&this._active&&await this.start()}static _stopVideoStream(e){for(let r of e.getTracks())r.stop(),e.removeTrack(r)}_setVideoMirror(e){this.$video.style.transform="scaleX("+(e==="user"?-1:1)+")"}_getFacingMode(e){return(e=e.getVideoTracks()[0])?/rear|back|environment/i.test(e.label)?"environment":/front|user|face/i.test(e.label)?"user":null:null}static _drawToCanvas(e,r,n,s=!1){n=n||document.createElement("canvas");let i=r&&r.x?r.x:0,o=r&&r.y?r.y:0,a=r&&r.width?r.width:e.videoWidth||e.width,c=r&&r.height?r.height:e.videoHeight||e.height;return s||(s=r&&r.downScaledWidth?r.downScaledWidth:a,r=r&&r.downScaledHeight?r.downScaledHeight:c,n.width!==s&&(n.width=s),n.height!==r&&(n.height=r)),r=n.getContext("2d",{alpha:!1}),r.imageSmoothingEnabled=!1,r.drawImage(e,i,o,a,c,0,0,n.width,n.height),[n,r]}static async _loadImage(e){if(e instanceof Image)return await Ot._awaitImageLoad(e),e;if(e instanceof HTMLVideoElement||e instanceof HTMLCanvasElement||e instanceof SVGImageElement||"OffscreenCanvas"in window&&e instanceof OffscreenCanvas||"ImageBitmap"in window&&e instanceof ImageBitmap)return e;if(e instanceof File||e instanceof Blob||e instanceof URL||typeof e=="string"){let r=new Image;r.src=e instanceof File||e instanceof Blob?URL.createObjectURL(e):e.toString();try{return await Ot._awaitImageLoad(r),r}finally{(e instanceof File||e instanceof Blob)&&URL.revokeObjectURL(r.src)}}else throw"Unsupported image type."}static async _awaitImageLoad(e){e.complete&&e.naturalWidth!==0||await new Promise((r,n)=>{let s=i=>{e.removeEventListener("load",s),e.removeEventListener("error",s),i instanceof ErrorEvent?n("Image load error"):r()};e.addEventListener("load",s),e.addEventListener("error",s)})}static async _postWorkerMessage(e,r,n,s){return Ot._postWorkerMessageSync(await e,r,n,s)}static _postWorkerMessageSync(e,r,n,s){if(!(e instanceof Worker))return-1;let i=Ot._workerMessageId++;return e.postMessage({id:i,type:r,data:n},s),i}}Ot.DEFAULT_CANVAS_SIZE=400,Ot.NO_QR_CODE_FOUND="No QR code found",Ot._disableBarcodeDetector=!1,Ot._workerMessageId=0;const fV=class{constructor(e,r,n){this.events={};const s=document.querySelector(e.target);if(!s)throw new Error(`Target element '${e.target}' is not found`);this.targetElement=s,this.decode=r,this.scannerElements=n}async _initializeScanner(e,r=25){var n,s,i,o;try{if(!e){const a=await this.listVideoInputDevices();e=this._getMainCameraDeviceId(a)}this.qrScanner=new Ot(document.getElementById(`${this.scannerElements.VIDEO}`),async a=>{var c,l,u,d;if(this.previousScanText!==a.data)try{this.previousScanText=a.data,(l=(c=this.events)==null?void 0:c[ap.CAPTURE])==null||l.call(c,await this.decode(a.data))}catch(h){(d=(u=this.events)==null?void 0:u[ap.ERROR])==null||d.call(u,h)}},{returnDetailedScanResult:!0,maxScansPerSecond:r,preferredCamera:e,highlightScanRegion:!0,highlightCodeOutline:!0,onDecodeError:()=>{}}),await this.qrScanner.start()}catch(a){(s=(n=this.events)==null?void 0:n[ap.ERROR])==null||s.call(n,a),(i=this.qrScanner)==null||i.stop(),(o=this.rootElement)==null||o.remove()}}async listVideoInputDevices(){return Ot.listCameras(!0)}_getMainCameraDeviceId(e){var r,n;if(!(e!=null&&e.length))throw new Error("No video input devices available");const s=["back","задня"],i=e.find(o=>{const a=o.label.toLowerCase();return a.includes(s[0])||a.includes(s[1])});return i?.id||((r=e[1])==null?void 0:r.id)||((n=e[0])==null?void 0:n.id)}close(){var e,r,n,s;this.previousScanText=null,(r=(e=this.events)==null?void 0:e[ap.CANCEL])==null||r.call(e),(n=this.qrScanner)==null||n.stop(),(s=this.rootElement)==null||s.remove()}on(e,r){this.events[e]=r}off(e){this.events[e]=void 0}};fV.events=ap;let zue=fV;class pV extends zue{constructor(e){super(e,Gue,Dw)}async scan({deviceId:e,maxScansPerSecond:r,isCloseButton:n}={}){var s,i;n===void 0&&(n=!0),(s=this.qrScanner)==null||s.stop(),(i=this.rootElement)==null||i.remove(),new Oue({target:this.targetElement,props:{close:this.close.bind(this),isCloseButton:n,scannerElements:Dw}}),this.rootElement=document.getElementById(Dw.ROOT),await this._initializeScanner(e,r)}}typeof window<"u"&&(window.CredenzaScanner=pV);const gV=Object.freeze(Object.defineProperty({__proto__:null,Scanner:pV},Symbol.toStringTag,{value:"Module"}));function mV(t,e){if(new.target)return ht({component:mV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(wt,"$configStore",r),i=()=>Rt(Yr,"$providerStore",r),o=()=>Rt(qc,"$clientPublicStore",r),a=De(),c=De();var l=this&&this.__awaiter||function(Z,K,$,Y){function q(te){return te instanceof $?te:new $(function(ie){ie(te)})}return new($||($=Promise))(function(te,ie){function ye(oe){try{Te(Y.next(oe))}catch(le){ie(le)}}function _e(oe){try{Te(Y.throw(oe))}catch(le){ie(le)}}function Te(oe){oe.done?te(oe.value):q(oe.value).then(ye,_e)}Te((Y=Y.apply(Z,K||[])).next())})};const u=We(wt),{sendTokens:d,getCREDContract:h,toastAlert:p}=We(Sr);let g="",m=De(""),y=De(),v=De(""),A=18,E=De("-"),w=De(""),C=18,B=De("-"),F=De(""),I=De(!0),L=De(!1),D,M,N;const P=()=>l(void 0,void 0,void 0,function*(){const{Scanner:Z}=yield Promise.resolve().then(()=>gV);N=new Z({target:"#cpuiCredScanner"}),OE(xt.UI_CLOSED,N.close),yield N.scan(),N.on(Z.events.CAPTURE,K=>l(void 0,[K],void 0,function*({sub:$}){const{address:Y}=yield fF($);Re(m,Y),N.close()})),N.on(Z.events.CANCEL,()=>Re(I,!0)),N.on(Z.events.ERROR,K=>{(K?.message||K).includes("Permission")&&alert("In order to scan please allow the current page to access your camera and try again."),Re(I,!0)}),Re(I,!1)}),U=()=>l(void 0,void 0,void 0,function*(){const Z=z(v)===z(E);Re(L,!0);try{const K=fr.parseUnits(String(z(y)),Z?A:C),$=yield d({address:z(m),amount:K,instance:Z?D:void 0});p(`<a href="${qM($.hash)}" target="_blank">Send TX</a> was created`),Re(m,""),Re(y,void 0);const[Y,q]=yield Promise.all([D.balanceOf(g),M.provider.getBalance(g)]);Re(w,fr.formatUnits(Y,A)),Re(F,parseFloat(fr.formatUnits(q,C)).toFixed(4)),Kt(xt.RECHECK_BALANCE,[$.hash])}catch(K){p(K?.message||K||"An error occurred while sending tokens","failure"),Kt(xt.ERROR,{error:K})}Re(L,!1)}),O=()=>l(void 0,void 0,void 0,function*(){var Z,K,$,Y,q,te;const ie=We(Mt);Re(m,ie?.to||""),Re(y,ie?.amount||void 0);const{decimals:ye,contract:_e}=yield h();A=ye,D=_e;const Te=We(Yr);M=yield Te.getSigner(),g=yield rn();const oe=yield Promise.all([D.symbol(),D.balanceOf(g),Te.getBalance(g),fetch("https://chainid.network/chains.json").then(le=>le.json()).then(le=>le.find(we=>String(we.chainId)===u.chainId))]);Re(E,oe[0]),Re(w,fr.formatUnits(oe[1],A)),C=($=(K=(Z=oe[3])===null||Z===void 0?void 0:Z.nativeCurrency)===null||K===void 0?void 0:K.decimals)!==null&&$!==void 0?$:18,Re(F,parseFloat(fr.formatUnits(oe[2],C)).toFixed(4)),Re(B,(te=(q=(Y=oe[3])===null||Y===void 0?void 0:Y.nativeCurrency)===null||q===void 0?void 0:q.symbol)!==null&&te!==void 0?te:"ETH"),Re(v,z(E))});gt(()=>(s(),i()),()=>{s().chainId&&i()&&O()}),gt(()=>z(m),()=>{Re(a,!!fr.isAddress(z(m)))}),gt(()=>(z(L),z(y),z(a),z(v),z(E),z(w),z(B),z(F)),()=>{Re(c,z(L)||!z(y)||!z(a)||z(v)===z(E)&&z(y)>+z(w)||z(v)===z(B)&&z(y)>+z(F))}),mr(),Et();{let Z=bt(()=>(s(),z(I),z(w),z(a),$e(Zt),$e(Xe),z(v),z(E),z(B),z(y),z(F),z(L),z(c),o(),Fe(()=>({title:"Send stored value",isNativeCurrecyTransferAllowed:s().transferTokens?.nativeCurrency!==!1,isScannerHidden:z(I),balance:z(w),chainId:u.chainId,isRecipientAddressValid:z(a),onScannerClicked:P,onSendTokens:U,onBackClicked:()=>Zt.set(Xe.WALLET),onChangeCurrency:()=>z(v)===z(E)?Re(v,z(B)):Re(v,z(E)),onSetMaxAmount:()=>z(v)===z(E)?Re(y,+z(w)):Re(y,+z(F)),isLoading:z(L),isSubmitDisabled:z(c),credAlias:o()?.ui_settings.cred_alias,activeCurrency:z(v),symbol:z(E),nativeSymbol:z(B),nativeBalance:z(F)}))));wL(t,{get options(){return z(Z)},get recipientAddress(){return z(m)},set recipientAddress(K){Re(m,K)},get amount(){return z(y)},set amount(K){Re(y,K)},$$legacy:!0})}var j=at({$set:ut,$on:(Z,K)=>lt(e,Z,K)});return n(),j}const $ue=Object.freeze(Object.defineProperty({__proto__:null,default:mV},Symbol.toStringTag,{value:"Module"}));var Hue=Le('<div id="ctui-wallet-pay" class="crtw-w-full crtw-my-4" style="dispay: none;"><div id="ctui-payment-request-button"></div></div>');function yV(t,e){if(new.target)return ht({component:yV,...t});ot(e,!1);var r=this&&this.__awaiter||function(l,u,d,h){function p(g){return g instanceof d?g:new d(function(m){m(g)})}return new(d||(d=Promise))(function(g,m){function y(E){try{A(h.next(E))}catch(w){m(w)}}function v(E){try{A(h.throw(E))}catch(w){m(w)}}function A(E){E.done?g(E.value):p(E.value).then(y,v)}A((h=h.apply(l,u||[])).next())})};let n=Ge(e,"doPayment",12),s=Ge(e,"stripe",12),i=Ge(e,"stripeElements",12),o=Ge(e,"priceCents",12),a=Ge(e,"isLoading",12);Gh(()=>r(void 0,void 0,void 0,function*(){const l=s().paymentRequest({country:"US",currency:"usd",total:{label:"Apple/Google payment",amount:o()},requestPayerName:!0,requestPayerEmail:!0});if(!(yield l.canMakePayment()))return;const d=document.getElementById("ctui-wallet-pay");d&&(d.style.display="crtw-block"),i().create("paymentRequestButton",{paymentRequest:l,style:{paymentRequestButton:{height:"48px"}}}).mount("#ctui-payment-request-button"),l.on("token",p=>r(void 0,void 0,void 0,function*(){a(!0);try{yield n()(p.token.id),yield p.complete("success")}catch(g){yield p.complete("error"),Kt(xt.ERROR,{error:g})}a(!1)}))})),Et();var c=Hue();return Ee(t,c),at({get doPayment(){return n()},set doPayment(l){n(l),je()},get stripe(){return s()},set stripe(l){s(l),je()},get stripeElements(){return i()},set stripeElements(l){i(l),je()},get priceCents(){return o()},set priceCents(l){o(l),je()},get isLoading(){return a()},set isLoading(l){a(l),je()},$set:ut,$on:(l,u)=>lt(e,l,u)})}const Zue={base:{color:"#121e2b",fontSize:"12px","::placeholder":{color:"#d9d9d9"}},invalid:{color:"#fa755a"}},Jue=t=>new Promise((e,r)=>{const n=document.createElement("script");n.src=t,document.body.appendChild(n),n.addEventListener("load",()=>e(n)),n.addEventListener("error",()=>r(n))}),Que=async(t,e,r=5)=>{let n=0;for(;n<r;){const s=await fetch(`${t}/orders/completed/${e}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${We(gs)}`},method:"GET"});if(s.status===204){if(n++,n<r)continue;throw new Error("No content received after multiple attempts")}if(!s.ok)throw new Error("Failed to get order details");return await s.json()}},Yue=(t,e)=>{const r=e.filter(n=>n.error).map(n=>`Name: ${n.metadata?.name||n.directive.resource_id}, reason: ${n.error}`).join(`
687
687
  `);if(t.every(n=>n===null))throw new Error(`All transactions failed.
688
- ${r}`);if(e?.every(n=>n.status==="ERROR"))throw new Error("All transactions failed.}");return r},vV=async({hash:t,stripeChargeId:e,title:r,subtitle:n,amount:s,currency:i})=>{const{credenza:o,recieptTarget:a,clientId:c}=We(wt);return(await fetch(`${o.evmApiUrl}/contracts/receipt`,{method:"POST",body:JSON.stringify({...t?{tx:t}:{charge_id:e},...s?{amount:s}:{},...i?{currency:i}:{},target:a||TI.EMAIL,title:r,subtitle:n,source:Am(c).name}),headers:{Authorization:`Bearer ${We(gs)}`,"Content-Type":"application/json"}})).ok},Kue=async(t,e,r)=>{const{toastAlert:n}=We(Sr),s=We(wt),{chain_txs:i,items:o}=t,a=Yue(i,o);Kt(xt.PAYMENT,{type:Fv.STRIPE,results:{tokens:r.tokens,memberships:r.memberships}}),n("Your payment was successful"),Kt(xt.RECHECK_BALANCE,i);const c=We(Wn);c&&Nn.track("cp_payment_fiat",{$email:c.email,$phone:c.phone,chain:s.chainId,clientId:s.clientId,address:await rn(),location:window.location.href,tokens:r?.tokens,memberships:r?.memberships,total:e/100,description:(r?.title??"")+`(${r?.subtitle??""})`}),await gE(),e===0&&Mt.set({subtitle:"Your claim was successful!",receipt:!1}),a&&Mt.set({title:"Done!",subtitle:"Your payment was partly successful",orders:o}),Zt.set(Xe.PAYMENT_RESULT)};var que=Le("<!> <!>",1);function bV(t,e){if(new.target)return ht({component:bV,...t});ot(e,!1);const r=De(),n=De();var s=this&&this.__awaiter||function(F,I,L,D){function M(N){return N instanceof L?N:new L(function(P){P(N)})}return new(L||(L=Promise))(function(N,P){function U(Z){try{j(D.next(Z))}catch(K){P(K)}}function O(Z){try{j(D.throw(Z))}catch(K){P(K)}}function j(Z){Z.done?N(Z.value):M(Z.value).then(U,O)}j((D=D.apply(F,I||[])).next())})};let i=Ge(e,"priceCents",12),o=Ge(e,"isLoading",12),a=Ge(e,"purchaseConfig",12),c=Ge(e,"isPriceLoading",12);const{toastAlert:l}=We(Sr),u=We(wt);let d,h=De(),p=De(),g,m=De(),y=De(!1);Gh(()=>s(void 0,void 0,void 0,function*(){var F;try{if(!d){if(!window.Stripe&&(yield Jue("https://js.stripe.com/v3/"),!window.Stripe))throw{};d=window.Stripe}}catch{return console.log("Please include stripe to use payments.")}if(z(h))return;const I=Am(u.clientId).name;Re(h,d((F=u.stripe.pk[I])!==null&&F!==void 0?F:u.stripe.pk.DEFAULT)),Re(p,z(h).elements()),g=z(p).create("card",{style:Zue}),g.mount("#cpui-card-element"),g.on("change",L=>{Re(m,L.complete&&!L.error)}),g.on("focus",()=>Re(y,!0)),g.on("blur",()=>Re(y,!1))}));const v=()=>s(void 0,void 0,void 0,function*(){try{if(!z(m))return;o(!0);const F=yield z(h).createToken(g);if(F.error)throw F.error;yield A(F.token.id)}catch(F){Kt(xt.ERROR,{error:F})}o(!1)}),A=F=>s(void 0,void 0,void 0,function*(){try{const{processPayment:I}=yield Promise.resolve().then(()=>vhe),L=yield I(F);yield Kue(L,i(),a())}catch(I){l(`Payment error: ${I.message||I}`,"failure"),Mt.set({errorMessage:I.message||I}),Zt.set(Xe.ERROR),Kt(xt.ERROR,{error:I})}});gt(()=>(z(m),$e(o()),$e(c())),()=>{Re(r,!z(m)||o()||c())}),gt(()=>$e(i()),()=>{Re(n,(i()/100).toFixed(2))}),mr(),Et();var E=que(),w=He(E);{let F=bt(()=>(z(y),$e(Am),Fe(()=>({isCardFocused:z(y),onPay:v,currencySymbol:Am(u.clientId).currencySymbol}))));CL(w,{get options(){return z(F)},get isPaymentDisabled(){return z(r)},set isPaymentDisabled(I){Re(r,I)},get isLoading(){return o()},set isLoading(I){o(I)},get totalToPay(){return z(n)},set totalToPay(I){Re(n,I)},$$legacy:!0})}var C=Ue(w,2);{var B=F=>{yV(F,{doPayment:A,get stripe(){return z(h)},get stripeElements(){return z(p)},get priceCents(){return i()},get isLoading(){return o()},set isLoading(I){o(I)},$$legacy:!0})};Je(C,F=>{z(h)&&z(p)&&F(B)})}return Ee(t,E),at({get priceCents(){return i()},set priceCents(F){i(F),je()},get isLoading(){return o()},set isLoading(F){o(F),je()},get purchaseConfig(){return a()},set purchaseConfig(F){a(F),je()},get isPriceLoading(){return c()},set isPriceLoading(F){c(F),je()},$set:ut,$on:(F,I)=>lt(e,F,I)})}var Xue=Le('<div class="crtw-w-full crtw-justify-items-center crtw-my-5"><!></div>');function wV(t,e){if(new.target)return ht({component:wV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(qc,"$clientPublicStore",r);var i=this&&this.__awaiter||function(O,j,Z,K){function $(Y){return Y instanceof Z?Y:new Z(function(q){q(Y)})}return new(Z||(Z=Promise))(function(Y,q){function te(_e){try{ye(K.next(_e))}catch(Te){q(Te)}}function ie(_e){try{ye(K.throw(_e))}catch(Te){q(Te)}}function ye(_e){_e.done?Y(_e.value):$(_e.value).then(te,ie)}ye((K=K.apply(O,j||[])).next())})};let o=Ge(e,"totalPriceToken",12),a=Ge(e,"purchaseConfig",12),c=Ge(e,"isLoading",12),l=Ge(e,"isPriceLoading",12),u=Ge(e,"pricesByToken",12);const{getCREDContract:d,toastAlert:h}=We(Sr),{chainId:p,clientId:g}=We(wt);let m=De(!1),y=De(BigInt(0)),v=De(),A="",E,w=De(),C,B,F;const I=(O,j)=>i(void 0,void 0,void 0,function*(){try{const{credenzaSellableMinAbi:Z}=yield Promise.resolve().then(()=>kl),K=new fr.Contract(O.contractAddress,Z,B),$=O.tokenId?O.tokenId:O.typeId,Y=u()[`${O.contractAddress}/${$}`],q=yield E.approve.populateTransaction(yield K.getAddress(),Y);yield dm(q,E);const te=yield K.buyWithToken.populateTransaction($,O.amount||1,C),ie=yield dm(te,K);h(`<a href="${qM(ie.hash)}" target="_blank">Purchase TX #${j}</a> was created`),Kt(xt.PAYMENT,{type:Fv.ERC20,data:ie}),Kt(xt.RECHECK_BALANCE),yield vV({hash:ie.hash,title:a().title,subtitle:a().subtitle,currency:"CRED",amount:+fr.formatUnits(Y,z(w))}),Kt(xt.RECEIPT,{hash:ie.hash})}catch(Z){h(`Payment error: ${Z.message||Z}`,"failure"),Mt.set({errorMessage:Z.message}),Zt.set(Xe.ERROR),Kt(xt.ERROR,{error:Z})}}),L=()=>i(void 0,void 0,void 0,function*(){var O,j;try{if(BigInt(o())>z(y))return;c(!0);const Z=[...a().tokens||[],...a().memberships||[]].map(($,Y)=>I($,Y+1));yield Promise.all(Z);const K=We(Wn);K&&Nn.track("cp_payment_stored_value",{$email:K.email,$phone:K.phone,chain:p,clientId:g,address:C,location:window.location.href,tokens:a().tokens,memberships:a().memberships,total:o(),description:((O=a()===null||a()===void 0?void 0:a().title)!==null&&O!==void 0?O:"")+`(${(j=a()===null||a()===void 0?void 0:a().subtitle)!==null&&j!==void 0?j:""})`}),yield gE(),o()===0&&Mt.set({subtitle:"Your claim was successful!",receipt:!1}),Zt.set(Xe.PAYMENT_RESULT)}catch(Z){h(`Payment error: ${Z.message||Z}`,"failure"),Mt.set({errorMessage:Z.message}),Zt.set(Xe.ERROR),Kt(xt.ERROR,{error:Z})}finally{c(!1)}});Gh(()=>i(void 0,void 0,void 0,function*(){try{Re(m,!0),F=yield d(),B=yield We(Yr).getSigner(),E=F.contract,Re(w,F.decimals),[C,A]=yield Promise.all([rn(),E.symbol()]),Re(y,yield E.balanceOf(C)),Re(v,`${fr.formatUnits(BigInt(z(y))-BigInt(o()),z(w))} ${_m(A,"cred")}`)}catch(O){console.log(O)}finally{Re(m,!1)}})),Et();var D=nt(),M=He(D);{var N=O=>{var j=Xue(),Z=Ie(j);Sh(Z,{}),Ne(j),Ee(O,j)},P=O=>{{let j=bt(()=>(z(v),$e(fr),z(y),z(w),s(),$e(Zt),$e(Xe),$e(o()),$e(c()),$e(l()),Fe(()=>({formattedBalance:z(v),balance:Number((+fr.formatUnits(BigInt(z(y)),z(w))).toFixed(2)),credAlias:s()?.ui_settings.cred_alias,onPay:L,onGetCred:()=>Zt.set(Xe.WALLET),totalToPay:(+fr.formatUnits(o(),z(w))).toFixed(2),isLoading:c(),isPaymentDisabled:!Number(z(y))||BigInt(o())>z(y)||l()}))));TL(O,{get options(){return z(j)}})}};Je(M,O=>{z(m)?O(N):O(P,!1)})}Ee(t,D);var U=at({get totalPriceToken(){return o()},set totalPriceToken(O){o(O),je()},get purchaseConfig(){return a()},set purchaseConfig(O){a(O),je()},get isLoading(){return c()},set isLoading(O){c(O),je()},get isPriceLoading(){return l()},set isPriceLoading(O){l(O),je()},get pricesByToken(){return u()},set pricesByToken(O){u(O),je()},$set:ut,$on:(O,j)=>lt(e,O,j)});return n(),U}var ehe=Le('<div slot="credit-card"><!></div>'),the=Le('<div slot="cred-balance"><!></div>'),rhe=Le("<!> <!>",1);function kV(t,e){if(new.target)return ht({component:kV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(wt,"$configStore",r),i=()=>Rt(jf,"$contractsStore",r),o=()=>Rt(Yr,"$providerStore",r),a=()=>Rt(Wn,"$userStore",r),c=()=>Rt(Mt,"$pageOptsStore",r);var l=this&&this.__awaiter||function(L,D,M,N){function P(U){return U instanceof M?U:new M(function(O){O(U)})}return new(M||(M=Promise))(function(U,O){function j($){try{K(N.next($))}catch(Y){O(Y)}}function Z($){try{K(N.throw($))}catch(Y){O(Y)}}function K($){$.done?U($.value):P($.value).then(j,Z)}K((N=N.apply(L,D||[])).next())})};const{close:u}=We(Sr),d=We(wt).chainId;let h=De(0),p=De(0),g=De(!1),m=De(!1),y=De({});const v=(L,D)=>l(void 0,void 0,void 0,function*(){let M=yield L.getPriceFiat(D).then(P=>Number(P)),N=0;return M===0?[M,N]=yield Promise.all([L.getPriceFiat(fE).then(P=>Number(P)),L.getPriceToken(fE).then(P=>Number(P))]):N=yield L.getPriceToken(D).then(P=>Number(P)),[M,N]}),A=L=>l(void 0,void 0,void 0,function*(){try{Re(g,!0);for(const D of L)if(D.contractAddress===i().erc20Cred.address)Re(h,z(h)+D.amount*100);else{const{credenzaSellableMinAbi:M}=yield Promise.resolve().then(()=>kl),N=new fr.Contract(D.contractAddress,M,o()),P=D.tokenId||D.typeId||fE;let[U,O]=yield v(N,+P);D?.amount&&D?.amount!==0&&(U*=D.amount,O*=D.amount),Re(h,z(h)+U),Re(p,z(p)+O),HD(y,z(y)[`${D.contractAddress}/${P}`]=O)}}catch(D){Kt(xt.ERROR,D)}finally{Re(g,!1)}}),E=Mt.subscribe(L=>l(void 0,void 0,void 0,function*(){var D,M;!(!((D=L?.tokens)===null||D===void 0)&&D.length)&&!(!((M=L?.memberships)===null||M===void 0)&&M.length)||(yield A([...L?.tokens||[],...L?.memberships||[]]))}));zh(E),gt(()=>s(),()=>{s().chainId!==d&&u()}),mr(),Et();var w=rhe(),C=He(w);{var B=L=>{var D=nt(),M=He(D);hn(M,()=>Promise.resolve().then(()=>RV),null,(N,P)=>{var U=nt(),O=He(U);dn(O,()=>z(P).default,(j,Z)=>{Z(j,{})}),Ee(N,U)}),Ee(L,D)};Je(C,L=>{z(m)&&L(B)})}var F=Ue(C,2);{let L=bt(()=>(a(),c(),$e(Zt),$e(Xe),z(h),z(g),Fe(()=>({user:a(),title:c().title||"Order Summary",subtitle:c().subtitle,onBackClick:()=>Zt.set(Xe.WALLET),isStripeDisabled:c().payments?.stripe?.disabled,isCredezaValueDisabled:!z(h)||c().payments?.credenzaStoredValue?.disabled,isPriceLoading:z(g),totalSumCents:z(h)}))));SL(F,{get options(){return z(L)},get isLoading(){return z(m)},set isLoading(D){Re(m,D)},$$slots:{"credit-card":(D,M)=>{var N=ehe(),P=Ie(N);bV(P,{get priceCents(){return z(h)},get isPriceLoading(){return z(g)},get purchaseConfig(){return c()},get isLoading(){return z(m)},set isLoading(U){Re(m,U)},$$legacy:!0}),Ne(N),Ee(D,N)},"cred-balance":(D,M)=>{var N=the(),P=Ie(N);wV(P,{get pricesByToken(){return z(y)},get totalPriceToken(){return z(p)},get isPriceLoading(){return z(g)},get purchaseConfig(){return c()},get isLoading(){return z(m)},set isLoading(U){Re(m,U)},$$legacy:!0}),Ne(N),Ee(D,N)}},$$legacy:!0})}Ee(t,w);var I=at({$set:ut,$on:(L,D)=>lt(e,L,D)});return n(),I}const nhe=Object.freeze(Object.defineProperty({__proto__:null,default:kV},Symbol.toStringTag,{value:"Module"}));function EV(t,e){if(new.target)return ht({component:EV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(Mt,"$pageOptsStore",r);let i=We(wt);Et();{let a=bt(()=>({title:s()?.title||i.content?.paymentResult?.title||"Success!",subtitle:s()?.subtitle||i.content?.paymentResult?.subtitle||"Your payment was successful!",description:s()?.description||i.content?.paymentResult?.description,orders:s()?.orders||[],tokenImage:s()?.tokenImage||""}));gL(t,{get options(){return z(a)}})}var o=at({$set:ut,$on:(a,c)=>lt(e,a,c)});return n(),o}const she=Object.freeze(Object.defineProperty({__proto__:null,default:EV},Symbol.toStringTag,{value:"Module"}));function AV(t,e){if(new.target)return ht({component:AV,...t});ot(e,!1);var r=this&&this.__awaiter||function(a,c,l,u){function d(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function g(v){try{y(u.next(v))}catch(A){p(A)}}function m(v){try{y(u.throw(v))}catch(A){p(A)}}function y(v){v.done?h(v.value):d(v.value).then(g,m)}y((u=u.apply(a,c||[])).next())})};const{close:n}=We(Sr);let s,i=De(!1);const o=a=>r(void 0,[a],void 0,function*({message:c,sub:l,scanType:u}){switch(s.close(),u){case Xc.PASSPORT_ID_PASS:case Xc.PASSPORT_ID:{const d=JSON.parse(c),{address:h}=yield fF(l);Sie({userAddress:h,amount:d?.amount});break}case Xc.TOKENS_PURCHASE:{dF(JSON.parse(c));break}case Xc.AIR_DROP_ASSET:{yield Cie(JSON.parse(c));break}case Xc.REQUEST_LOYALTY_POINTS:{yield Tie(JSON.parse(c));break}default:n(),Zt.set(null)}});Gh(()=>r(void 0,void 0,void 0,function*(){const{Scanner:a}=yield Promise.resolve().then(()=>gV);s=new a({target:"#cpuiScanner"}),OE(xt.UI_CLOSED,()=>{s.close(),Zt.set(null)}),yield s.scan({isCloseButton:!1}),Re(i,!0),s.on(a.events.CAPTURE,o),s.on(a.events.ERROR,c=>{(c?.message||c).includes("Permission")&&alert("In order to scan please allow the current page to access your camera and try again.")})})),Et();{let a=bt(()=>({isScannerLoaded:z(i)}));vL(t,{get options(){return z(a)}})}return at({$set:ut,$on:(a,c)=>lt(e,a,c)})}const ihe=Object.freeze(Object.defineProperty({__proto__:null,default:AV},Symbol.toStringTag,{value:"Module"})),ohe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3c/svg%3e",El={titles:{DEFAULT_ERROR_TITLE:"Something went wrong",TRANSACTION_REVERTED_TITLE:"The transaction is reverted",SOLD_OUT_ERROR_TITLE:"Sold out",INVALID_TOKEN_ERROR_TITLE:"Invalid token ID"},desctiptions:{DEFAULT_ERROR_DESC:"An unexpected error occured and we are unable to complete your order.",SOLD_OUT_ERROR_DESC:"We are unable to complete your order as the item that you are trying to add is currently sold out.",INVALID_TOKEN_ERROR_DESC:"There is no token associated with provided ID.",HAS_MEMBERSHIP_ALREADY_ERROR_DESC:"This membership is already assosiated with your account."}},ahe=t=>{let e={};return(t.includes("SOLD_OUT")||t.includes("Sold out"))&&(e={title:El.titles.SOLD_OUT_ERROR_TITLE,description:El.desctiptions.SOLD_OUT_ERROR_DESC,image:ohe}),t.includes("invalid token ID")&&(e={title:El.titles.INVALID_TOKEN_ERROR_TITLE,description:El.desctiptions.INVALID_TOKEN_ERROR_DESC}),t.includes("ALREADY_HAS_MEMBERSHIP")&&(e={title:El.titles.TRANSACTION_REVERTED_TITLE,description:El.desctiptions.HAS_MEMBERSHIP_ALREADY_ERROR_DESC}),e};function _V(t,e){if(new.target)return ht({component:_V,...t});ot(e,!1);const r=()=>We(Sr).close(),{openUI:n}=We(Sr);let s=De();const i=Mt.subscribe(a=>{a.errorMessage?Re(s,Object.assign(Object.assign({},z(s)),ahe(a.errorMessage))):a.title&&a.description&&Re(s,Object.assign(Object.assign({},z(s)),a))}),o=()=>{const{primaryAction:a}=z(s);let c={tokens:[{contractAddress:a?.contractAddress,tokenId:a?.tokenId}]},l={memberships:[{contractAddress:a?.contractAddress,typeId:a?.typeId}]};n(Xe.PAYMENT,Object.assign({title:a?.text,subtitle:""},a?.typeId?l:c))};zh(i),Et();{let a=bt(()=>({title:z(s)?.title||El.titles.DEFAULT_ERROR_TITLE,description:z(s)?.description||El.desctiptions.DEFAULT_ERROR_DESC,image:z(s)?.image,shouldRenderBackButton:z(s)?.shouldRenderBackButton,onCloseClick:r,secondaryAction:z(s)?.secondaryAction,primaryActionText:z(s)?.primaryAction?.text,openPaymentFunction:o}));oL(t,{get options(){return z(a)}})}return at({$set:ut,$on:(a,c)=>lt(e,a,c)})}const che=Object.freeze(Object.defineProperty({__proto__:null,default:_V},Symbol.toStringTag,{value:"Module"}));var lhe=Le("<button> </button>"),uhe=Le(`<a class="crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer
688
+ ${r}`);if(e?.every(n=>n.status==="ERROR"))throw new Error("All transactions failed.}");return r},vV=async({hash:t,stripeChargeId:e,title:r,subtitle:n,amount:s,currency:i})=>{const{credenza:o,receiptTarget:a,clientId:c}=We(wt),l=[];a?l.push(...a):l.push(TI.EMAIL);let u=0;for(const d of l){const h=await fetch(`${o.evmApiUrl}/contracts/receipt`,{method:"POST",body:JSON.stringify({...t?{tx:t}:{charge_id:e},...s?{amount:s}:{},...i?{currency:i}:{},target:d,title:r,subtitle:n,source:Am(c).name}),headers:{Authorization:`Bearer ${We(gs)}`,"Content-Type":"application/json"}});h.ok?u++:console.warn(`Failed to send receipt to ${d}:`,h.status)}return u>0},Kue=async(t,e,r)=>{const{toastAlert:n}=We(Sr),s=We(wt),{chain_txs:i,items:o}=t,a=Yue(i,o);Kt(xt.PAYMENT,{type:Fv.STRIPE,results:{tokens:r.tokens,memberships:r.memberships}}),n("Your payment was successful"),Kt(xt.RECHECK_BALANCE,i);const c=We(Wn);c&&Nn.track("cp_payment_fiat",{$email:c.email,$phone:c.phone,chain:s.chainId,clientId:s.clientId,address:await rn(),location:window.location.href,tokens:r?.tokens,memberships:r?.memberships,total:e/100,description:(r?.title??"")+`(${r?.subtitle??""})`}),await gE(),e===0&&Mt.set({subtitle:"Your claim was successful!",receipt:!1}),a&&Mt.set({title:"Done!",subtitle:"Your payment was partly successful",orders:o}),Zt.set(Xe.PAYMENT_RESULT)};var que=Le("<!> <!>",1);function bV(t,e){if(new.target)return ht({component:bV,...t});ot(e,!1);const r=De(),n=De();var s=this&&this.__awaiter||function(F,I,L,D){function M(N){return N instanceof L?N:new L(function(P){P(N)})}return new(L||(L=Promise))(function(N,P){function U(Z){try{j(D.next(Z))}catch(K){P(K)}}function O(Z){try{j(D.throw(Z))}catch(K){P(K)}}function j(Z){Z.done?N(Z.value):M(Z.value).then(U,O)}j((D=D.apply(F,I||[])).next())})};let i=Ge(e,"priceCents",12),o=Ge(e,"isLoading",12),a=Ge(e,"purchaseConfig",12),c=Ge(e,"isPriceLoading",12);const{toastAlert:l}=We(Sr),u=We(wt);let d,h=De(),p=De(),g,m=De(),y=De(!1);Gh(()=>s(void 0,void 0,void 0,function*(){var F;try{if(!d){if(!window.Stripe&&(yield Jue("https://js.stripe.com/v3/"),!window.Stripe))throw{};d=window.Stripe}}catch{return console.log("Please include stripe to use payments.")}if(z(h))return;const I=Am(u.clientId).name;Re(h,d((F=u.stripe.pk[I])!==null&&F!==void 0?F:u.stripe.pk.DEFAULT)),Re(p,z(h).elements()),g=z(p).create("card",{style:Zue}),g.mount("#cpui-card-element"),g.on("change",L=>{Re(m,L.complete&&!L.error)}),g.on("focus",()=>Re(y,!0)),g.on("blur",()=>Re(y,!1))}));const v=()=>s(void 0,void 0,void 0,function*(){try{if(!z(m))return;o(!0);const F=yield z(h).createToken(g);if(F.error)throw F.error;yield A(F.token.id)}catch(F){Kt(xt.ERROR,{error:F})}o(!1)}),A=F=>s(void 0,void 0,void 0,function*(){try{const{processPayment:I}=yield Promise.resolve().then(()=>vhe),L=yield I(F);yield Kue(L,i(),a())}catch(I){l(`Payment error: ${I.message||I}`,"failure"),Mt.set({errorMessage:I.message||I}),Zt.set(Xe.ERROR),Kt(xt.ERROR,{error:I})}});gt(()=>(z(m),$e(o()),$e(c())),()=>{Re(r,!z(m)||o()||c())}),gt(()=>$e(i()),()=>{Re(n,(i()/100).toFixed(2))}),mr(),Et();var E=que(),w=He(E);{let F=bt(()=>(z(y),$e(Am),Fe(()=>({isCardFocused:z(y),onPay:v,currencySymbol:Am(u.clientId).currencySymbol}))));CL(w,{get options(){return z(F)},get isPaymentDisabled(){return z(r)},set isPaymentDisabled(I){Re(r,I)},get isLoading(){return o()},set isLoading(I){o(I)},get totalToPay(){return z(n)},set totalToPay(I){Re(n,I)},$$legacy:!0})}var C=Ue(w,2);{var B=F=>{yV(F,{doPayment:A,get stripe(){return z(h)},get stripeElements(){return z(p)},get priceCents(){return i()},get isLoading(){return o()},set isLoading(I){o(I)},$$legacy:!0})};Je(C,F=>{z(h)&&z(p)&&F(B)})}return Ee(t,E),at({get priceCents(){return i()},set priceCents(F){i(F),je()},get isLoading(){return o()},set isLoading(F){o(F),je()},get purchaseConfig(){return a()},set purchaseConfig(F){a(F),je()},get isPriceLoading(){return c()},set isPriceLoading(F){c(F),je()},$set:ut,$on:(F,I)=>lt(e,F,I)})}var Xue=Le('<div class="crtw-w-full crtw-justify-items-center crtw-my-5"><!></div>');function wV(t,e){if(new.target)return ht({component:wV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(qc,"$clientPublicStore",r);var i=this&&this.__awaiter||function(O,j,Z,K){function $(Y){return Y instanceof Z?Y:new Z(function(q){q(Y)})}return new(Z||(Z=Promise))(function(Y,q){function te(_e){try{ye(K.next(_e))}catch(Te){q(Te)}}function ie(_e){try{ye(K.throw(_e))}catch(Te){q(Te)}}function ye(_e){_e.done?Y(_e.value):$(_e.value).then(te,ie)}ye((K=K.apply(O,j||[])).next())})};let o=Ge(e,"totalPriceToken",12),a=Ge(e,"purchaseConfig",12),c=Ge(e,"isLoading",12),l=Ge(e,"isPriceLoading",12),u=Ge(e,"pricesByToken",12);const{getCREDContract:d,toastAlert:h}=We(Sr),{chainId:p,clientId:g}=We(wt);let m=De(!1),y=De(BigInt(0)),v=De(),A="",E,w=De(),C,B,F;const I=(O,j)=>i(void 0,void 0,void 0,function*(){try{const{credenzaSellableMinAbi:Z}=yield Promise.resolve().then(()=>kl),K=new fr.Contract(O.contractAddress,Z,B),$=O.tokenId?O.tokenId:O.typeId,Y=u()[`${O.contractAddress}/${$}`],q=yield E.approve.populateTransaction(yield K.getAddress(),Y);yield dm(q,E);const te=yield K.buyWithToken.populateTransaction($,O.amount||1,C),ie=yield dm(te,K);h(`<a href="${qM(ie.hash)}" target="_blank">Purchase TX #${j}</a> was created`),Kt(xt.PAYMENT,{type:Fv.ERC20,data:ie}),Kt(xt.RECHECK_BALANCE),yield vV({hash:ie.hash,title:a().title,subtitle:a().subtitle,currency:"CRED",amount:+fr.formatUnits(Y,z(w))}),Kt(xt.RECEIPT,{hash:ie.hash})}catch(Z){h(`Payment error: ${Z.message||Z}`,"failure"),Mt.set({errorMessage:Z.message}),Zt.set(Xe.ERROR),Kt(xt.ERROR,{error:Z})}}),L=()=>i(void 0,void 0,void 0,function*(){var O,j;try{if(BigInt(o())>z(y))return;c(!0);const Z=[...a().tokens||[],...a().memberships||[]].map(($,Y)=>I($,Y+1));yield Promise.all(Z);const K=We(Wn);K&&Nn.track("cp_payment_stored_value",{$email:K.email,$phone:K.phone,chain:p,clientId:g,address:C,location:window.location.href,tokens:a().tokens,memberships:a().memberships,total:o(),description:((O=a()===null||a()===void 0?void 0:a().title)!==null&&O!==void 0?O:"")+`(${(j=a()===null||a()===void 0?void 0:a().subtitle)!==null&&j!==void 0?j:""})`}),yield gE(),o()===0&&Mt.set({subtitle:"Your claim was successful!",receipt:!1}),Zt.set(Xe.PAYMENT_RESULT)}catch(Z){h(`Payment error: ${Z.message||Z}`,"failure"),Mt.set({errorMessage:Z.message}),Zt.set(Xe.ERROR),Kt(xt.ERROR,{error:Z})}finally{c(!1)}});Gh(()=>i(void 0,void 0,void 0,function*(){try{Re(m,!0),F=yield d(),B=yield We(Yr).getSigner(),E=F.contract,Re(w,F.decimals),[C,A]=yield Promise.all([rn(),E.symbol()]),Re(y,yield E.balanceOf(C)),Re(v,`${fr.formatUnits(BigInt(z(y))-BigInt(o()),z(w))} ${_m(A,"cred")}`)}catch(O){console.log(O)}finally{Re(m,!1)}})),Et();var D=nt(),M=He(D);{var N=O=>{var j=Xue(),Z=Ie(j);Sh(Z,{}),Ne(j),Ee(O,j)},P=O=>{{let j=bt(()=>(z(v),$e(fr),z(y),z(w),s(),$e(Zt),$e(Xe),$e(o()),$e(c()),$e(l()),Fe(()=>({formattedBalance:z(v),balance:Number((+fr.formatUnits(BigInt(z(y)),z(w))).toFixed(2)),credAlias:s()?.ui_settings.cred_alias,onPay:L,onGetCred:()=>Zt.set(Xe.WALLET),totalToPay:(+fr.formatUnits(o(),z(w))).toFixed(2),isLoading:c(),isPaymentDisabled:!Number(z(y))||BigInt(o())>z(y)||l()}))));TL(O,{get options(){return z(j)}})}};Je(M,O=>{z(m)?O(N):O(P,!1)})}Ee(t,D);var U=at({get totalPriceToken(){return o()},set totalPriceToken(O){o(O),je()},get purchaseConfig(){return a()},set purchaseConfig(O){a(O),je()},get isLoading(){return c()},set isLoading(O){c(O),je()},get isPriceLoading(){return l()},set isPriceLoading(O){l(O),je()},get pricesByToken(){return u()},set pricesByToken(O){u(O),je()},$set:ut,$on:(O,j)=>lt(e,O,j)});return n(),U}var ehe=Le('<div slot="credit-card"><!></div>'),the=Le('<div slot="cred-balance"><!></div>'),rhe=Le("<!> <!>",1);function kV(t,e){if(new.target)return ht({component:kV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(wt,"$configStore",r),i=()=>Rt(jf,"$contractsStore",r),o=()=>Rt(Yr,"$providerStore",r),a=()=>Rt(Wn,"$userStore",r),c=()=>Rt(Mt,"$pageOptsStore",r);var l=this&&this.__awaiter||function(L,D,M,N){function P(U){return U instanceof M?U:new M(function(O){O(U)})}return new(M||(M=Promise))(function(U,O){function j($){try{K(N.next($))}catch(Y){O(Y)}}function Z($){try{K(N.throw($))}catch(Y){O(Y)}}function K($){$.done?U($.value):P($.value).then(j,Z)}K((N=N.apply(L,D||[])).next())})};const{close:u}=We(Sr),d=We(wt).chainId;let h=De(0),p=De(0),g=De(!1),m=De(!1),y=De({});const v=(L,D)=>l(void 0,void 0,void 0,function*(){let M=yield L.getPriceFiat(D).then(P=>Number(P)),N=0;return M===0?[M,N]=yield Promise.all([L.getPriceFiat(fE).then(P=>Number(P)),L.getPriceToken(fE).then(P=>Number(P))]):N=yield L.getPriceToken(D).then(P=>Number(P)),[M,N]}),A=L=>l(void 0,void 0,void 0,function*(){try{Re(g,!0);for(const D of L)if(D.contractAddress===i().erc20Cred.address)Re(h,z(h)+D.amount*100);else{const{credenzaSellableMinAbi:M}=yield Promise.resolve().then(()=>kl),N=new fr.Contract(D.contractAddress,M,o()),P=D.tokenId||D.typeId||fE;let[U,O]=yield v(N,+P);D?.amount&&D?.amount!==0&&(U*=D.amount,O*=D.amount),Re(h,z(h)+U),Re(p,z(p)+O),HD(y,z(y)[`${D.contractAddress}/${P}`]=O)}}catch(D){Kt(xt.ERROR,D)}finally{Re(g,!1)}}),E=Mt.subscribe(L=>l(void 0,void 0,void 0,function*(){var D,M;!(!((D=L?.tokens)===null||D===void 0)&&D.length)&&!(!((M=L?.memberships)===null||M===void 0)&&M.length)||(yield A([...L?.tokens||[],...L?.memberships||[]]))}));zh(E),gt(()=>s(),()=>{s().chainId!==d&&u()}),mr(),Et();var w=rhe(),C=He(w);{var B=L=>{var D=nt(),M=He(D);hn(M,()=>Promise.resolve().then(()=>RV),null,(N,P)=>{var U=nt(),O=He(U);dn(O,()=>z(P).default,(j,Z)=>{Z(j,{})}),Ee(N,U)}),Ee(L,D)};Je(C,L=>{z(m)&&L(B)})}var F=Ue(C,2);{let L=bt(()=>(a(),c(),$e(Zt),$e(Xe),z(h),z(g),Fe(()=>({user:a(),title:c().title||"Order Summary",subtitle:c().subtitle,onBackClick:()=>Zt.set(Xe.WALLET),isStripeDisabled:c().payments?.stripe?.disabled,isCredezaValueDisabled:!z(h)||c().payments?.credenzaStoredValue?.disabled,isPriceLoading:z(g),totalSumCents:z(h)}))));SL(F,{get options(){return z(L)},get isLoading(){return z(m)},set isLoading(D){Re(m,D)},$$slots:{"credit-card":(D,M)=>{var N=ehe(),P=Ie(N);bV(P,{get priceCents(){return z(h)},get isPriceLoading(){return z(g)},get purchaseConfig(){return c()},get isLoading(){return z(m)},set isLoading(U){Re(m,U)},$$legacy:!0}),Ne(N),Ee(D,N)},"cred-balance":(D,M)=>{var N=the(),P=Ie(N);wV(P,{get pricesByToken(){return z(y)},get totalPriceToken(){return z(p)},get isPriceLoading(){return z(g)},get purchaseConfig(){return c()},get isLoading(){return z(m)},set isLoading(U){Re(m,U)},$$legacy:!0}),Ne(N),Ee(D,N)}},$$legacy:!0})}Ee(t,w);var I=at({$set:ut,$on:(L,D)=>lt(e,L,D)});return n(),I}const nhe=Object.freeze(Object.defineProperty({__proto__:null,default:kV},Symbol.toStringTag,{value:"Module"}));function EV(t,e){if(new.target)return ht({component:EV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(Mt,"$pageOptsStore",r);let i=We(wt);Et();{let a=bt(()=>({title:s()?.title||i.content?.paymentResult?.title||"Success!",subtitle:s()?.subtitle||i.content?.paymentResult?.subtitle||"Your payment was successful!",description:s()?.description||i.content?.paymentResult?.description,orders:s()?.orders||[],tokenImage:s()?.tokenImage||""}));gL(t,{get options(){return z(a)}})}var o=at({$set:ut,$on:(a,c)=>lt(e,a,c)});return n(),o}const she=Object.freeze(Object.defineProperty({__proto__:null,default:EV},Symbol.toStringTag,{value:"Module"}));function AV(t,e){if(new.target)return ht({component:AV,...t});ot(e,!1);var r=this&&this.__awaiter||function(a,c,l,u){function d(h){return h instanceof l?h:new l(function(p){p(h)})}return new(l||(l=Promise))(function(h,p){function g(v){try{y(u.next(v))}catch(A){p(A)}}function m(v){try{y(u.throw(v))}catch(A){p(A)}}function y(v){v.done?h(v.value):d(v.value).then(g,m)}y((u=u.apply(a,c||[])).next())})};const{close:n}=We(Sr);let s,i=De(!1);const o=a=>r(void 0,[a],void 0,function*({message:c,sub:l,scanType:u}){switch(s.close(),u){case Xc.PASSPORT_ID_PASS:case Xc.PASSPORT_ID:{const d=JSON.parse(c),{address:h}=yield fF(l);Sie({userAddress:h,amount:d?.amount});break}case Xc.TOKENS_PURCHASE:{dF(JSON.parse(c));break}case Xc.AIR_DROP_ASSET:{yield Cie(JSON.parse(c));break}case Xc.REQUEST_LOYALTY_POINTS:{yield Tie(JSON.parse(c));break}default:n(),Zt.set(null)}});Gh(()=>r(void 0,void 0,void 0,function*(){const{Scanner:a}=yield Promise.resolve().then(()=>gV);s=new a({target:"#cpuiScanner"}),OE(xt.UI_CLOSED,()=>{s.close(),Zt.set(null)}),yield s.scan({isCloseButton:!1}),Re(i,!0),s.on(a.events.CAPTURE,o),s.on(a.events.ERROR,c=>{(c?.message||c).includes("Permission")&&alert("In order to scan please allow the current page to access your camera and try again.")})})),Et();{let a=bt(()=>({isScannerLoaded:z(i)}));vL(t,{get options(){return z(a)}})}return at({$set:ut,$on:(a,c)=>lt(e,a,c)})}const ihe=Object.freeze(Object.defineProperty({__proto__:null,default:AV},Symbol.toStringTag,{value:"Module"})),ohe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3c/svg%3e",El={titles:{DEFAULT_ERROR_TITLE:"Something went wrong",TRANSACTION_REVERTED_TITLE:"The transaction is reverted",SOLD_OUT_ERROR_TITLE:"Sold out",INVALID_TOKEN_ERROR_TITLE:"Invalid token ID"},desctiptions:{DEFAULT_ERROR_DESC:"An unexpected error occured and we are unable to complete your order.",SOLD_OUT_ERROR_DESC:"We are unable to complete your order as the item that you are trying to add is currently sold out.",INVALID_TOKEN_ERROR_DESC:"There is no token associated with provided ID.",HAS_MEMBERSHIP_ALREADY_ERROR_DESC:"This membership is already assosiated with your account."}},ahe=t=>{let e={};return(t.includes("SOLD_OUT")||t.includes("Sold out"))&&(e={title:El.titles.SOLD_OUT_ERROR_TITLE,description:El.desctiptions.SOLD_OUT_ERROR_DESC,image:ohe}),t.includes("invalid token ID")&&(e={title:El.titles.INVALID_TOKEN_ERROR_TITLE,description:El.desctiptions.INVALID_TOKEN_ERROR_DESC}),t.includes("ALREADY_HAS_MEMBERSHIP")&&(e={title:El.titles.TRANSACTION_REVERTED_TITLE,description:El.desctiptions.HAS_MEMBERSHIP_ALREADY_ERROR_DESC}),e};function _V(t,e){if(new.target)return ht({component:_V,...t});ot(e,!1);const r=()=>We(Sr).close(),{openUI:n}=We(Sr);let s=De();const i=Mt.subscribe(a=>{a.errorMessage?Re(s,Object.assign(Object.assign({},z(s)),ahe(a.errorMessage))):a.title&&a.description&&Re(s,Object.assign(Object.assign({},z(s)),a))}),o=()=>{const{primaryAction:a}=z(s);let c={tokens:[{contractAddress:a?.contractAddress,tokenId:a?.tokenId}]},l={memberships:[{contractAddress:a?.contractAddress,typeId:a?.typeId}]};n(Xe.PAYMENT,Object.assign({title:a?.text,subtitle:""},a?.typeId?l:c))};zh(i),Et();{let a=bt(()=>({title:z(s)?.title||El.titles.DEFAULT_ERROR_TITLE,description:z(s)?.description||El.desctiptions.DEFAULT_ERROR_DESC,image:z(s)?.image,shouldRenderBackButton:z(s)?.shouldRenderBackButton,onCloseClick:r,secondaryAction:z(s)?.secondaryAction,primaryActionText:z(s)?.primaryAction?.text,openPaymentFunction:o}));oL(t,{get options(){return z(a)}})}return at({$set:ut,$on:(a,c)=>lt(e,a,c)})}const che=Object.freeze(Object.defineProperty({__proto__:null,default:_V},Symbol.toStringTag,{value:"Module"}));var lhe=Le("<button> </button>"),uhe=Le(`<a class="crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer
689
689
  crtw-border-2 crtw-border-black crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium"> </a>`),hhe=Le(`<div class="crtw-flex crtw-flex-col crtw-justify-start crtw-items-start crtw-w-full crtw-mx-[50px]"><img alt="credenza-logo" class="crtw-w-[200px] crtw-mx-auto"/> <div class="crtw-flex crtw-flex-col crtw-justify-start crtw-items-start crtw-font-['Poppins'] crtw-w-full crtw-mt-[36px]"><span class="crtw-text-[24px] crtw-text-[#313a2c] crtw-font-medium"> </span> <span class="crtw-text-base crtw-text-[#747474] crtw-mb-1"> </span></div> <div class="crtw-flex crtw-flex crtw-gap-[6px] crtw-w-full crtw-items-center crtw-mb-[100px] crtw-mt-[30px]"><!> <button> </button></div></div>`);function SV(t,e){if(new.target)return ht({component:SV,...t});ot(e,!1);let r=Ge(e,"options",12),n=De(),s=De(),i=De();const{close:o}=We(Sr),a=`crtw-px-[36px] crtw-flex crtw-justify-center crtw-items-center crtw-bg-black crtw-text-white crtw-h-[50px] crtw-cursor-pointer
690
690
  crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-sm crtw-font-medium`;gt(()=>($e(r()),z(n),z(s),z(i)),()=>{r()&&(w=>{Re(n,w.title),Re(s,w.description),Re(i,w.action)})(r())}),mr(),Et();var c=hhe(),l=Ie(c),u=Ue(l,2),d=Ie(u),h=Ie(d,!0);Ne(d);var p=Ue(d,2),g=Ie(p,!0);Ne(p),Ne(u);var m=Ue(u,2),y=Ie(m);{var v=w=>{var C=nt(),B=He(C);{var F=L=>{var D=lhe();Lr(D,1,A3(a));var M=Ie(D,!0);Ne(D),Ye(()=>pt(M,(z(i),Fe(()=>z(i).text)))),un("click",D,function(...N){z(i).onClick?.apply(this,N)}),Ee(L,D)},I=L=>{var D=nt(),M=He(D);{var N=P=>{var U=uhe(),O=Ie(U,!0);Ne(U),Ye(()=>{kt(U,"href",(z(i),Fe(()=>z(i)?.link))),pt(O,(z(i),Fe(()=>z(i)?.text)))}),Ee(P,U)};Je(M,P=>{z(i),Fe(()=>z(i)?.link)&&P(N)},!0)}Ee(L,D)};Je(B,L=>{z(i),Fe(()=>z(i)?.onClick)?L(F):L(I,!1)})}Ee(w,C)};Je(y,w=>{z(i)&&w(v)})}var A=Ue(y,2);Lr(A,1,A3(a));var E=Ie(A,!0);return Ne(A),Ne(m),Ne(c),Ye(()=>{kt(l,"src",tL),pt(h,z(n)),pt(g,z(s)),pt(E,($e(r()),Fe(()=>r().closeButtonText||"Close")))}),un("click",A,o),Ee(t,c),at({get options(){return r()},set options(w){r(w),je()},$set:ut,$on:(w,C)=>lt(e,w,C)})}function CV(t,e){if(new.target)return ht({component:CV,...t});ot(e,!1);let r=De();const n=Mt.subscribe(s=>{Re(r,Object.assign(Object.assign({},z(r)),s.richAlertData))});zh(n),Et();{let s=bt(()=>({title:z(r).title||"Notification",description:z(r).description||"Choose your next steps",action:z(r).action,closeButtonText:z(r).closeButtonText}));SV(t,{get options(){return z(s)}})}return at({$set:ut,$on:(s,i)=>lt(e,s,i)})}const dhe=Object.freeze(Object.defineProperty({__proto__:null,default:CV},Symbol.toStringTag,{value:"Module"}));function TV(t,e){if(new.target)return ht({component:TV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(Mt,"$pageOptsStore",r);var i,o,a,c;const l=((i=We(Mt))===null||i===void 0?void 0:i.loaderText)||xM,u=((o=We(Mt))===null||o===void 0?void 0:o.progressVideos)||((c=(a=We(wt))===null||a===void 0?void 0:a.content)===null||c===void 0?void 0:c.progressVideos)||[pE];let d=De(pE);Gh(()=>{const p=Math.floor(Math.random()*u.length);Re(d,Kce(u[p].src)?u[p]:pE)}),Et();{let p=bt(()=>({text:l,selected:z(d),onSetVideoEnded:xne}));sL(t,{get options(){return z(p)},get isProgressFinished(){return s().isProgressFinished},set isProgressFinished(g){EW(Mt,Fe(s).isProgressFinished=g,Fe(s))},$$legacy:!0})}var h=at({$set:ut,$on:(p,g)=>lt(e,p,g)});return n(),h}const RV=Object.freeze(Object.defineProperty({__proto__:null,default:TV},Symbol.toStringTag,{value:"Module"})),fhe=t=>{const{chainId:e}=We(wt);switch(e){case Qe.POLYGON_AMOY:return{scanName:"Polygonscan",scanIcon:"https://amoy.polygonscan.com/assets/poly/images/svg/logos/polygon-chain.svg?v=23.11.1.0",scanLink:Yt[Qe.POLYGON_AMOY].scanUrl+"/address/"+t,nftsIcon:"https://opensea.io/static/images/logos/opensea.svg",nftsLink:"https://testnets.opensea.io/"+t,passportLink:"https://passport.testnets.credenza3.com"};case Qe.CHILIZ_SPICY:return{scanName:"Explorer",scanIcon:"https://cloudflare-ipfs.com/ipfs/bafkreic5h74pwuf3ony3c5zmqoenps4pxj7l5q5j3o2mdcflfpb7g5tivy",scanLink:Yt[Qe.CHILIZ_SPICY].scanUrl+"/address/"+t,passportLink:"https://passport.testnets.credenza3.com"};case Qe.CHILIZ:return{scanName:"Explorer",scanIcon:"https://cloudflare-ipfs.com/ipfs/bafkreic5h74pwuf3ony3c5zmqoenps4pxj7l5q5j3o2mdcflfpb7g5tivy",scanLink:Yt[Qe.CHILIZ].scanUrl+"/address/"+t,passportLink:"https://passport.credenza3.com"};case Qe.AVALANCHE_FUJI:return{scanName:"Explorer",scanIcon:"https://cryptologos.cc/logos/avalanche-avax-logo.svg?v=040",scanLink:Yt[Qe.AVALANCHE_FUJI].scanUrl+"/address/"+t,passportLink:"https://passport.testnets.credenza3.com",nftsIcon:"https://opensea.io/static/images/logos/opensea.svg",nftsLink:"https://testnets.opensea.io/"+t};case Qe.AVALANCHE:return{scanName:"Explorer",scanIcon:"https://cryptologos.cc/logos/avalanche-avax-logo.svg?v=040",scanLink:Yt[Qe.AVALANCHE].scanUrl+"/address/"+t,passportLink:"https://passport.credenza3.com",nftsIcon:"https://opensea.io/static/images/logos/opensea.svg",nftsLink:"https://opensea.io/"+t};case Qe.BASE:return{scanName:"Explorer",scanIcon:"https://cdn.brandfetch.io/id6XsSOVVS/theme/dark/logo.svg?c=1dxbfHSJFAPEGdCLU4o5B",scanLink:Yt[Qe.BASE].scanUrl+"/address/"+t,passportLink:"https://passport.credenza3.com",nftsIcon:"https://opensea.io/static/images/logos/opensea.svg",nftsLink:"https://opensea.io/"+t};case Qe.BASE_SEPOLIA:return{scanName:"Explorer",scanIcon:"https://cdn.brandfetch.io/id6XsSOVVS/theme/dark/logo.svg?c=1dxbfHSJFAPEGdCLU4o5B",scanLink:Yt[Qe.BASE_SEPOLIA].scanUrl+"/address/"+t,passportLink:"https://passport.testnets.credenza3.com",nftsIcon:"https://opensea.io/static/images/logos/opensea.svg",nftsLink:"https://testnets.opensea.io/"+t};case Qe.POLYGON:default:return{scanName:"Polygonscan",scanIcon:Yt[Qe.POLYGON].scanUrl+"/assets/poly/images/svg/logos/polygon-chain.svg?v=23.11.1.0",scanLink:Yt[Qe.POLYGON].scanUrl+"/address/"+t,nftsIcon:"https://opensea.io/static/images/logos/opensea.svg",nftsLink:"https://opensea.io/"+t,passportLink:"https://passport.credenza3.com"}}};function PV(t,e){if(new.target)return ht({component:PV,...t});ot(e,!1);const[r,n]=kn(),s=()=>Rt(wt,"$configStore",r),i=()=>Rt(qc,"$clientPublicStore",r),o=()=>Rt(Wn,"$userStore",r);var a=this&&this.__awaiter||function(m,y,v,A){function E(w){return w instanceof v?w:new v(function(C){C(w)})}return new(v||(v=Promise))(function(w,C){function B(L){try{I(A.next(L))}catch(D){C(D)}}function F(L){try{I(A.throw(L))}catch(D){C(D)}}function I(L){L.done?w(L.value):E(L.value).then(B,F)}I((A=A.apply(m,y||[])).next())})};const{getCREDContract:c,checkMembership:l}=We(Sr);let u=De({}),d=De(null),h=De(null);const p=()=>a(void 0,void 0,void 0,function*(){const m=yield rn();Re(u,fhe(m));try{const{isMember:y}=yield l(m);y&&Re(h,yield Iie())}catch{Re(h,null)}if(s().buyTokens!==!1)try{const{contract:y,decimals:v,address:A}=yield c(),[E,w]=yield Promise.all([y.balanceOf(m).then(C=>fr.formatUnits(C,v)),y.symbol()]);Re(d,`${E} ${w}`),Nn.track("cp_profile_balance_read",{chain:s().chainId,contract:A,decimals:v,balance:E,symbol:w})}catch{Re(d,"-")}});gt(()=>s(),()=>{s().chainId&&p()}),mr(),Et();{let m=bt(()=>(z(u),z(h),$e(We),$e(wt),$e(Zt),$e(Xe),$e(Ha),z(d),i(),o(),$e(rn),Fe(()=>({links:z(u),gitbookToken:z(h),gitbookUrl:We(wt).credenza.gitbookUrl,onSignOut:()=>Zt.set(Xe.LOGOUT),onUpdateProfile:()=>Ha.set(Xe.UPDATE_PROFILE),balance:z(d),storedValueAlias:i()?.ui_settings.stored_value_alias,userData:o(),userAddress:rn()}))));yL(t,{get options(){return z(m)}})}var g=at({$set:ut,$on:(m,y)=>lt(e,m,y)});return n(),g}const phe=Object.freeze(Object.defineProperty({__proto__:null,default:PV},Symbol.toStringTag,{value:"Module"})),ghe=Object.freeze(Object.defineProperty({__proto__:null,createWorker:()=>new Worker(URL.createObjectURL(new Blob([`class x{constructor(a,b){this.width=b;this.height=a.length/b;this.data=a}static createEmpty(a,b){return new x(new Uint8ClampedArray(a*b),a)}get(a,b){return 0>a||a>=this.width||0>b||b>=this.height?!1:!!this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c?1:0}setRegion(a,b,c,d,e){for(let f=b;f<b+d;f++)for(let g=a;g<a+c;g++)this.set(g,f,!!e)}}
691
691
  class A{constructor(a,b,c){this.width=a;a*=b;if(c&&c.length!==a)throw Error("Wrong buffer size");this.data=c||new Uint8ClampedArray(a)}get(a,b){return this.data[b*this.width+a]}set(a,b,c){this.data[b*this.width+a]=c}}