@permaweb/libs 0.0.60 → 0.0.61

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.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ ${JSON.stringify(Buffer.from(t))},${JSON.stringify(Buffer.from(n))},${f} => ${JS
12
12
  `)+`
13
13
  `)},r.register=function(e,t){if(t||(t=e.locale),BO)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,u9.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();ds.Wordlist=IO});var h9=z(H0=>{"use strict";var pQ=A(_()),FO=H0&&H0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(H0,"__esModule",{value:!0});H0.langCz=void 0;var b2=Va(),DO="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",uu=null;function d9(r){if(uu==null&&(uu=DO.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),b2.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw uu=null,new Error("BIP39 Wordlist for en (English) FAILED")}var OO=function(r){FO(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return d9(this),uu[t]},e.prototype.getWordIndex=function(t){return d9(this),uu.indexOf(t)},e}(b2.Wordlist),l9=new OO;H0.langCz=l9;b2.Wordlist.register(l9)});var v9=z(G0=>{"use strict";var gQ=A(_()),kO=G0&&G0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G0,"__esModule",{value:!0});G0.langEn=void 0;var p2=Va(),NO="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",du=null;function b9(r){if(du==null&&(du=NO.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),p2.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw du=null,new Error("BIP39 Wordlist for en (English) FAILED")}var JO=function(r){kO(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return b9(this),du[t]},e.prototype.getWordIndex=function(t){return b9(this),du.indexOf(t)},e}(p2.Wordlist),p9=new JO;G0.langEn=p9;p2.Wordlist.register(p9)});var w9=z(X0=>{"use strict";var yQ=A(_()),qO=X0&&X0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X0,"__esModule",{value:!0});X0.langEs=void 0;var qh=ai(),Uh=Va(),UO="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",m9={},lu=null;function y9(r){return Uh.logger.checkNormalize(),(0,qh.toUtf8String)(Array.prototype.filter.call((0,qh.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function zO(r){var e=[];return Array.prototype.forEach.call((0,qh.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,qh.toUtf8String)(e)}function g9(r){if(lu==null&&(lu=UO.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return zO(e)}),lu.forEach(function(e,t){m9[y9(e)]=t}),Uh.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw lu=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var HO=function(r){qO(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return g9(this),lu[t]},e.prototype.getWordIndex=function(t){return g9(this),m9[y9(t)]},e}(Uh.Wordlist),x9=new HO;X0.langEs=x9;Uh.Wordlist.register(x9)});var E9=z(Z0=>{"use strict";var wQ=A(_()),GO=Z0&&Z0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z0,"__esModule",{value:!0});Z0.langFr=void 0;var zh=ai(),Hh=Va(),XO="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",hu=null,M9={};function S9(r){return Hh.logger.checkNormalize(),(0,zh.toUtf8String)(Array.prototype.filter.call((0,zh.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function ZO(r){var e=[];return Array.prototype.forEach.call((0,zh.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,zh.toUtf8String)(e)}function A9(r){if(hu==null&&(hu=XO.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return ZO(e)}),hu.forEach(function(e,t){M9[S9(e)]=t}),Hh.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw hu=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var KO=function(r){GO(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return A9(this),hu[t]},e.prototype.getWordIndex=function(t){return A9(this),M9[S9(t)]},e}(Hh.Wordlist),_9=new KO;Z0.langFr=_9;Hh.Wordlist.register(_9)});var C9=z(K0=>{"use strict";var MQ=A(_()),VO=K0&&K0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K0,"__esModule",{value:!0});K0.langJa=void 0;var jO=cu(),Dn=ai(),Gh=Va(),QO=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],YO="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",fn=null;function T9(r){return(0,jO.hexlify)((0,Dn.toUtf8Bytes)(r))}var WO="0xe3818de38284e3818f",$O="0xe3818de38283e3818f";function P9(r){if(fn!==null)return;fn=[];var e={};e[(0,Dn.toUtf8String)([227,130,154])]=!1,e[(0,Dn.toUtf8String)([227,130,153])]=!1,e[(0,Dn.toUtf8String)([227,130,133])]=(0,Dn.toUtf8String)([227,130,134]),e[(0,Dn.toUtf8String)([227,129,163])]=(0,Dn.toUtf8String)([227,129,164]),e[(0,Dn.toUtf8String)([227,130,131])]=(0,Dn.toUtf8String)([227,130,132]),e[(0,Dn.toUtf8String)([227,130,135])]=(0,Dn.toUtf8String)([227,130,136]);function t(T){for(var L="",R=0;R<T.length;R++){var B=T[R],D=e[B];D!==!1&&(D&&(B=D),L+=B)}return L}function n(T,L){return T=t(T),L=t(L),T<L?-1:T>L?1:0}for(var i=3;i<=9;i++)for(var f=QO[i-3],h=0;h<f.length;h+=i){for(var p=[],y=0;y<i;y++){var x=YO.indexOf(f[h+y]);p.push(227),p.push(x&64?130:129),p.push((x&63)+128)}fn.push((0,Dn.toUtf8String)(p))}if(fn.sort(n),T9(fn[442])===WO&&T9(fn[443])===$O){var S=fn[442];fn[442]=fn[443],fn[443]=S}if(Gh.Wordlist.check(r)!=="0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600")throw fn=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}var ek=function(r){VO(e,r);function e(){return r.call(this,"ja")||this}return e.prototype.getWord=function(t){return P9(this),fn[t]},e.prototype.getWordIndex=function(t){return P9(this),fn.indexOf(t)},e.prototype.split=function(t){return Gh.logger.checkNormalize(),t.split(/(?:\u3000| )+/g)},e.prototype.join=function(t){return t.join("\u3000")},e}(Gh.Wordlist),B9=new ek;K0.langJa=B9;Gh.Wordlist.register(B9)});var I9=z(V0=>{"use strict";var _Q=A(_()),rk=V0&&V0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(V0,"__esModule",{value:!0});V0.langKo=void 0;var tk=ai(),v2=Va(),ik=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],nk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function ak(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,tk.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var ls=null;function L9(r){if(ls==null&&(ls=[],ik.forEach(function(e,t){t+=4;for(var n=0;n<e.length;n+=t){for(var i="",f=0;f<t;f++)i+=ak(nk.indexOf(e[n+f]));ls.push(i)}}),ls.sort(),v2.Wordlist.check(r)!=="0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"))throw ls=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}var ok=function(r){rk(e,r);function e(){return r.call(this,"ko")||this}return e.prototype.getWord=function(t){return L9(this),ls[t]},e.prototype.getWordIndex=function(t){return L9(this),ls.indexOf(t)},e}(v2.Wordlist),R9=new ok;V0.langKo=R9;v2.Wordlist.register(R9)});var O9=z(j0=>{"use strict";var TQ=A(_()),fk=j0&&j0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(j0,"__esModule",{value:!0});j0.langIt=void 0;var g2=Va(),sk="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",bu=null;function F9(r){if(bu==null&&(bu=sk.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),g2.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw bu=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var ck=function(r){fk(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return F9(this),bu[t]},e.prototype.getWordIndex=function(t){return F9(this),bu.indexOf(t)},e}(g2.Wordlist),D9=new ck;j0.langIt=D9;g2.Wordlist.register(D9)});var q9=z(sf=>{"use strict";var BQ=A(_()),uk=sf&&sf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sf,"__esModule",{value:!0});sf.langZhTw=sf.langZhCn=void 0;var dk=ai(),pu=Va(),m2="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",lk="FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL",Q0={zh_cn:null,zh_tw:null},hk={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},y2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bk="~!@#$%^&*_-=[]{}|;:,.()<>?";function k9(r){if(Q0[r.locale]===null){Q0[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=bk.indexOf(m2[t*3]),i=[228+(n>>2),128+y2.indexOf(m2[t*3+1]),128+y2.indexOf(m2[t*3+2])];if(r.locale==="zh_tw")for(var f=n%4,h=f;h<3;h++)i[h]=y2.indexOf(lk[e++])+(h==0?228:128);Q0[r.locale].push((0,dk.toUtf8String)(i))}if(pu.Wordlist.check(r)!==hk[r.locale])throw Q0[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var N9=function(r){uk(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return k9(this),Q0[this.locale][t]},e.prototype.getWordIndex=function(t){return k9(this),Q0[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(pu.Wordlist),x2=new N9("cn");sf.langZhCn=x2;pu.Wordlist.register(x2);pu.Wordlist.register(x2,"zh");var J9=new N9("tw");sf.langZhTw=J9;pu.Wordlist.register(J9)});var U9=z(Xh=>{"use strict";var LQ=A(_());Object.defineProperty(Xh,"__esModule",{value:!0});Xh.wordlists=void 0;var pk=h9(),vk=v9(),gk=w9(),mk=E9(),yk=C9(),xk=I9(),wk=O9(),w2=q9();Xh.wordlists={cz:pk.langCz,en:vk.langEn,es:gk.langEs,fr:mk.langFr,it:wk.langIt,ja:yk.langJa,ko:xk.langKo,zh:w2.langZhCn,zh_cn:w2.langZhCn,zh_tw:w2.langZhTw}});var H9=z(cf=>{"use strict";var IQ=A(_());Object.defineProperty(cf,"__esModule",{value:!0});cf.wordlists=cf.Wordlist=cf.logger=void 0;var z9=Va();Object.defineProperty(cf,"logger",{enumerable:!0,get:function(){return z9.logger}});Object.defineProperty(cf,"Wordlist",{enumerable:!0,get:function(){return z9.Wordlist}});var Ak=U9();Object.defineProperty(cf,"wordlists",{enumerable:!0,get:function(){return Ak.wordlists}})});var G9=z(Zh=>{"use strict";var DQ=A(_());Object.defineProperty(Zh,"__esModule",{value:!0});Zh.version=void 0;Zh.version="hdnode/5.8.0"});var S2=z(Oi=>{"use strict";var kQ=A(_());Object.defineProperty(Oi,"__esModule",{value:!0});Oi.getAccountPath=Oi.isValidMnemonic=Oi.entropyToMnemonic=Oi.mnemonicToEntropy=Oi.mnemonicToSeed=Oi.HDNode=Oi.defaultPath=void 0;var V9=jx(),Sr=th(),j9=Ca(),vu=ai(),Mk=sh(),Di=oi(),X9=jv(),ja=m7(),Sk=E7(),Z9=H9(),_k=qe(),Ek=G9(),gu=new _k.Logger(Ek.version),Tk=j9.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Pk=(0,vu.toUtf8Bytes)("Bitcoin seed"),W0=2147483648;function Q9(r){return(1<<r)-1<<8-r}function Bk(r){return(1<<r)-1}function Kh(r){return(0,Sr.hexZeroPad)((0,Sr.hexlify)(r),32)}function K9(r){return V9.Base58.encode((0,Sr.concat)([r,(0,Sr.hexDataSlice)((0,ja.sha256)((0,ja.sha256)(r)),0,4)]))}function A2(r){if(r==null)return Z9.wordlists.en;if(typeof r=="string"){var e=Z9.wordlists[r];return e==null&&gu.throwArgumentError("unknown locale","wordlist",r),e}return r}var Y0={};Oi.defaultPath="m/44'/60'/0'/0/0";var Ck=function(){function r(e,t,n,i,f,h,p,y){if(e!==Y0)throw new Error("HDNode constructor cannot be called directly");if(t){var x=new X9.SigningKey(t);(0,Di.defineReadOnly)(this,"privateKey",x.privateKey),(0,Di.defineReadOnly)(this,"publicKey",x.compressedPublicKey)}else(0,Di.defineReadOnly)(this,"privateKey",null),(0,Di.defineReadOnly)(this,"publicKey",(0,Sr.hexlify)(n));(0,Di.defineReadOnly)(this,"parentFingerprint",i),(0,Di.defineReadOnly)(this,"fingerprint",(0,Sr.hexDataSlice)((0,ja.ripemd160)((0,ja.sha256)(this.publicKey)),0,4)),(0,Di.defineReadOnly)(this,"address",(0,Sk.computeAddress)(this.publicKey)),(0,Di.defineReadOnly)(this,"chainCode",f),(0,Di.defineReadOnly)(this,"index",h),(0,Di.defineReadOnly)(this,"depth",p),y==null?((0,Di.defineReadOnly)(this,"mnemonic",null),(0,Di.defineReadOnly)(this,"path",null)):typeof y=="string"?((0,Di.defineReadOnly)(this,"mnemonic",null),(0,Di.defineReadOnly)(this,"path",y)):((0,Di.defineReadOnly)(this,"mnemonic",y),(0,Di.defineReadOnly)(this,"path",y.path))}return Object.defineProperty(r.prototype,"extendedKey",{get:function(){if(this.depth>=256)throw new Error("Depth too large!");return K9((0,Sr.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,Sr.hexlify)(this.depth),this.parentFingerprint,(0,Sr.hexZeroPad)((0,Sr.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,Sr.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(Y0,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~W0));var n=new Uint8Array(37);if(e&W0){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,Sr.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,Sr.arrayify)(this.publicKey));for(var i=24;i>=0;i-=8)n[33+(i>>3)]=e>>24-i&255;var f=(0,Sr.arrayify)((0,ja.computeHmac)(ja.SupportedAlgorithm.sha512,this.chainCode,n)),h=f.slice(0,32),p=f.slice(32),y=null,x=null;if(this.privateKey)y=Kh(j9.BigNumber.from(h).add(this.privateKey).mod(Tk));else{var S=new X9.SigningKey((0,Sr.hexlify)(h));x=S._addPoint(this.publicKey)}var T=t,L=this.mnemonic;return L&&(T=Object.freeze({phrase:L.phrase,path:t,locale:L.locale||"en"})),new r(Y0,y,x,this.fingerprint,Kh(p),e,this.depth+1,T)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,i=0;i<t.length;i++){var f=t[i];if(f.match(/^[0-9]+'$/)){var h=parseInt(f.substring(0,f.length-1));if(h>=W0)throw new Error("invalid path index - "+f);n=n._derive(W0+h)}else if(f.match(/^[0-9]+$/)){var h=parseInt(f);if(h>=W0)throw new Error("invalid path index - "+f);n=n._derive(h)}else throw new Error("invalid path component - "+f)}return n},r._fromSeed=function(e,t){var n=(0,Sr.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var i=(0,Sr.arrayify)((0,ja.computeHmac)(ja.SupportedAlgorithm.sha512,Pk,n));return new r(Y0,Kh(i.slice(0,32)),null,"0x00000000",Kh(i.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=A2(n),e=W9(M2(e,n),n),r._fromSeed(Y9(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=V9.Base58.decode(e);(t.length!==82||K9(t.slice(0,78))!==e)&&gu.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],i=(0,Sr.hexlify)(t.slice(5,9)),f=parseInt((0,Sr.hexlify)(t.slice(9,13)).substring(2),16),h=(0,Sr.hexlify)(t.slice(13,45)),p=t.slice(45,78);switch((0,Sr.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(Y0,null,(0,Sr.hexlify)(p),i,h,f,n,null);case"0x0488ade4":case"0x04358394 ":if(p[0]!==0)break;return new r(Y0,(0,Sr.hexlify)(p.slice(1)),null,i,h,f,n,null)}return gu.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();Oi.HDNode=Ck;function Y9(r,e){e||(e="");var t=(0,vu.toUtf8Bytes)("mnemonic"+e,vu.UnicodeNormalizationForm.NFKD);return(0,Mk.pbkdf2)((0,vu.toUtf8Bytes)(r,vu.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}Oi.mnemonicToSeed=Y9;function M2(r,e){e=A2(e),gu.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,Sr.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),i=0,f=0;f<t.length;f++){var h=e.getWordIndex(t[f].normalize("NFKD"));if(h===-1)throw new Error("invalid mnemonic");for(var p=0;p<11;p++)h&1<<10-p&&(n[i>>3]|=1<<7-i%8),i++}var y=32*t.length/3,x=t.length/3,S=Q9(x),T=(0,Sr.arrayify)((0,ja.sha256)(n.slice(0,y/8)))[0]&S;if(T!==(n[n.length-1]&S))throw new Error("invalid checksum");return(0,Sr.hexlify)(n.slice(0,y/8))}Oi.mnemonicToEntropy=M2;function W9(r,e){if(e=A2(e),r=(0,Sr.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,i=0;i<r.length;i++)n>8?(t[t.length-1]<<=8,t[t.length-1]|=r[i],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[i]>>8-n,t.push(r[i]&Bk(8-n)),n+=3);var f=r.length/4,h=(0,Sr.arrayify)((0,ja.sha256)(r))[0]&Q9(f);return t[t.length-1]<<=f,t[t.length-1]|=h>>8-f,e.join(t.map(function(p){return e.getWord(p)}))}Oi.entropyToMnemonic=W9;function Lk(r,e){try{return M2(r,e),!0}catch{}return!1}Oi.isValidMnemonic=Lk;function Rk(r){return(typeof r!="number"||r<0||r>=W0||r%1)&&gu.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}Oi.getAccountPath=Rk});var $9=z(Vh=>{"use strict";var JQ=A(_());Object.defineProperty(Vh,"__esModule",{value:!0});Vh.version=void 0;Vh.version="bytes/5.8.0"});var fw=z(cr=>{"use strict";var UQ=A(_());Object.defineProperty(cr,"__esModule",{value:!0});cr.joinSignature=cr.splitSignature=cr.hexZeroPad=cr.hexStripZeros=cr.hexValue=cr.hexConcat=cr.hexDataSlice=cr.hexDataLength=cr.hexlify=cr.isHexString=cr.zeroPad=cr.stripZeros=cr.concat=cr.arrayify=cr.isBytes=cr.isBytesLike=void 0;var Ik=qe(),Fk=$9(),gt=new Ik.Logger(Fk.version);function rw(r){return!!r.toHexString}function $0(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return $0(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function tw(r){return pa(r)&&!(r.length%2)||Qh(r)}cr.isBytesLike=tw;function ew(r){return typeof r=="number"&&r==r&&r%1===0}function Qh(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!ew(r.length)||r.length<0)return!1;for(var e=0;e<r.length;e++){var t=r[e];if(!ew(t)||t<0||t>=256)return!1}return!0}cr.isBytes=Qh;function hs(r,e){if(e||(e={}),typeof r=="number"){gt.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),$0(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),rw(r)&&(r=r.toHexString()),pa(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":gt.throwArgumentError("hex data is odd-length","value",r));for(var t=[],i=0;i<n.length;i+=2)t.push(parseInt(n.substring(i,i+2),16));return $0(new Uint8Array(t))}return Qh(r)?$0(new Uint8Array(r)):gt.throwArgumentError("invalid arrayify value","value",r)}cr.arrayify=hs;function iw(r){var e=r.map(function(i){return hs(i)}),t=e.reduce(function(i,f){return i+f.length},0),n=new Uint8Array(t);return e.reduce(function(i,f){return n.set(f,i),i+f.length},0),$0(n)}cr.concat=iw;function Dk(r){var e=hs(r);if(e.length===0)return e;for(var t=0;t<e.length&&e[t]===0;)t++;return t&&(e=e.slice(t)),e}cr.stripZeros=Dk;function nw(r,e){r=hs(r),r.length>e&&gt.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),$0(t)}cr.zeroPad=nw;function pa(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}cr.isHexString=pa;var _2="0123456789abcdef";function ki(r,e){if(e||(e={}),typeof r=="number"){gt.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=_2[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),rw(r))return r.toHexString();if(pa(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":gt.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Qh(r)){for(var n="0x",i=0;i<r.length;i++){var f=r[i];n+=_2[(f&240)>>4]+_2[f&15]}return n}return gt.throwArgumentError("invalid hexlify value","value",r)}cr.hexlify=ki;function Ok(r){if(typeof r!="string")r=ki(r);else if(!pa(r)||r.length%2)return null;return(r.length-2)/2}cr.hexDataLength=Ok;function kk(r,e,t){return typeof r!="string"?r=ki(r):(!pa(r)||r.length%2)&&gt.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}cr.hexDataSlice=kk;function Nk(r){var e="0x";return r.forEach(function(t){e+=ki(t).substring(2)}),e}cr.hexConcat=Nk;function Jk(r){var e=aw(ki(r,{hexPad:"left"}));return e==="0x"?"0x0":e}cr.hexValue=Jk;function aw(r){typeof r!="string"&&(r=ki(r)),pa(r)||gt.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e<r.length&&r[e]==="0";)e++;return"0x"+r.substring(e)}cr.hexStripZeros=aw;function jh(r,e){for(typeof r!="string"?r=ki(r):pa(r)||gt.throwArgumentError("invalid hex string","value",r),r.length>2*e+2&&gt.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}cr.hexZeroPad=jh;function ow(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(tw(r)){var t=hs(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=ki(t.slice(0,32)),e.s=ki(t.slice(32,64))):t.length===65?(e.r=ki(t.slice(0,32)),e.s=ki(t.slice(32,64)),e.v=t[64]):gt.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:gt.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=ki(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=nw(hs(e._vs),32);e._vs=ki(n);var i=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=i:e.recoveryParam!==i&&gt.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var f=ki(n);e.s==null?e.s=f:e.s!==f&&gt.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?gt.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var h=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==h&&gt.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!pa(e.r)?gt.throwArgumentError("signature missing or invalid r","signature",r):e.r=jh(e.r,32),e.s==null||!pa(e.s)?gt.throwArgumentError("signature missing or invalid s","signature",r):e.s=jh(e.s,32);var p=hs(e.s);p[0]>=128&&gt.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(p[0]|=128);var y=ki(p);e._vs&&(pa(e._vs)||gt.throwArgumentError("signature invalid _vs","signature",r),e._vs=jh(e._vs,32)),e._vs==null?e._vs=y:e._vs!==y&&gt.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}cr.splitSignature=ow;function qk(r){return r=ow(r),ki(iw([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}cr.joinSignature=qk});var sw=z(Yh=>{"use strict";var HQ=A(_());Object.defineProperty(Yh,"__esModule",{value:!0});Yh.randomBytes=void 0;var Uk=vr("crypto"),zk=fw();function Hk(r){return(0,zk.arrayify)((0,Uk.randomBytes)(r))}Yh.randomBytes=Hk});var cw=z(Wh=>{"use strict";var XQ=A(_());Object.defineProperty(Wh,"__esModule",{value:!0});Wh.shuffled=void 0;function Gk(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}Wh.shuffled=Gk});var E2=z(ec=>{"use strict";var KQ=A(_());Object.defineProperty(ec,"__esModule",{value:!0});ec.shuffled=ec.randomBytes=void 0;var Xk=sw();Object.defineProperty(ec,"randomBytes",{enumerable:!0,get:function(){return Xk.randomBytes}});var Zk=cw();Object.defineProperty(ec,"shuffled",{enumerable:!0,get:function(){return Zk.shuffled}})});var P2=z((T2,uw)=>{"use strict";var VQ=A(_());(function(r){function e(o){return parseInt(o)===o}function t(o){if(!e(o.length))return!1;for(var b=0;b<o.length;b++)if(!e(o[b])||o[b]<0||o[b]>255)return!1;return!0}function n(o,b){if(o.buffer&&ArrayBuffer.isView(o)&&o.name==="Uint8Array")return b&&(o.slice?o=o.slice():o=Array.prototype.slice.call(o)),o;if(Array.isArray(o)){if(!t(o))throw new Error("Array contains invalid value: "+o);return new Uint8Array(o)}if(e(o.length)&&t(o))return new Uint8Array(o);throw new Error("unsupported array-like object")}function i(o){return new Uint8Array(o)}function f(o,b,E,w,M){(w!=null||M!=null)&&(o.slice?o=o.slice(w,M):o=Array.prototype.slice.call(o,w,M)),b.set(o,E)}var h=function(){function o(E){var w=[],M=0;for(E=encodeURI(E);M<E.length;){var J=E.charCodeAt(M++);J===37?(w.push(parseInt(E.substr(M,2),16)),M+=2):w.push(J)}return n(w)}function b(E){for(var w=[],M=0;M<E.length;){var J=E[M];J<128?(w.push(String.fromCharCode(J)),M++):J>191&&J<224?(w.push(String.fromCharCode((J&31)<<6|E[M+1]&63)),M+=2):(w.push(String.fromCharCode((J&15)<<12|(E[M+1]&63)<<6|E[M+2]&63)),M+=3)}return w.join("")}return{toBytes:o,fromBytes:b}}(),p=function(){function o(w){for(var M=[],J=0;J<w.length;J+=2)M.push(parseInt(w.substr(J,2),16));return M}var b="0123456789abcdef";function E(w){for(var M=[],J=0;J<w.length;J++){var P=w[J];M.push(b[(P&240)>>4]+b[P&15])}return M.join("")}return{toBytes:o,fromBytes:E}}(),y={16:10,24:12,32:14},x=[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],S=[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],T=[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],L=[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],R=[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],B=[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],D=[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],j=[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],q=[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],ie=[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],Y=[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],de=[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],ne=[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],te=[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],ve=[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 $(o){for(var b=[],E=0;E<o.length;E+=4)b.push(o[E]<<24|o[E+1]<<16|o[E+2]<<8|o[E+3]);return b}var W=function(o){if(!(this instanceof W))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:n(o,!0)}),this._prepare()};W.prototype._prepare=function(){var o=y[this.key.length];if(o==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var b=0;b<=o;b++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var E=(o+1)*4,w=this.key.length/4,M=$(this.key),J,b=0;b<w;b++)J=b>>2,this._Ke[J][b%4]=M[b],this._Kd[o-J][b%4]=M[b];for(var P=0,N=w,Z;N<E;){if(Z=M[w-1],M[0]^=S[Z>>16&255]<<24^S[Z>>8&255]<<16^S[Z&255]<<8^S[Z>>24&255]^x[P]<<24,P+=1,w!=8)for(var b=1;b<w;b++)M[b]^=M[b-1];else{for(var b=1;b<w/2;b++)M[b]^=M[b-1];Z=M[w/2-1],M[w/2]^=S[Z&255]^S[Z>>8&255]<<8^S[Z>>16&255]<<16^S[Z>>24&255]<<24;for(var b=w/2+1;b<w;b++)M[b]^=M[b-1]}for(var b=0,X,C;b<w&&N<E;)X=N>>2,C=N%4,this._Ke[X][C]=M[b],this._Kd[o-X][C]=M[b++],N++}for(var X=1;X<o;X++)for(var C=0;C<4;C++)Z=this._Kd[X][C],this._Kd[X][C]=de[Z>>24&255]^ne[Z>>16&255]^te[Z>>8&255]^ve[Z&255]},W.prototype.encrypt=function(o){if(o.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var b=this._Ke.length-1,E=[0,0,0,0],w=$(o),M=0;M<4;M++)w[M]^=this._Ke[0][M];for(var J=1;J<b;J++){for(var M=0;M<4;M++)E[M]=L[w[M]>>24&255]^R[w[(M+1)%4]>>16&255]^B[w[(M+2)%4]>>8&255]^D[w[(M+3)%4]&255]^this._Ke[J][M];w=E.slice()}for(var P=i(16),N,M=0;M<4;M++)N=this._Ke[b][M],P[4*M]=(S[w[M]>>24&255]^N>>24)&255,P[4*M+1]=(S[w[(M+1)%4]>>16&255]^N>>16)&255,P[4*M+2]=(S[w[(M+2)%4]>>8&255]^N>>8)&255,P[4*M+3]=(S[w[(M+3)%4]&255]^N)&255;return P},W.prototype.decrypt=function(o){if(o.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var b=this._Kd.length-1,E=[0,0,0,0],w=$(o),M=0;M<4;M++)w[M]^=this._Kd[0][M];for(var J=1;J<b;J++){for(var M=0;M<4;M++)E[M]=j[w[M]>>24&255]^q[w[(M+3)%4]>>16&255]^ie[w[(M+2)%4]>>8&255]^Y[w[(M+1)%4]&255]^this._Kd[J][M];w=E.slice()}for(var P=i(16),N,M=0;M<4;M++)N=this._Kd[b][M],P[4*M]=(T[w[M]>>24&255]^N>>24)&255,P[4*M+1]=(T[w[(M+3)%4]>>16&255]^N>>16)&255,P[4*M+2]=(T[w[(M+2)%4]>>8&255]^N>>8)&255,P[4*M+3]=(T[w[(M+1)%4]&255]^N)&255;return P};var m=function(o){if(!(this instanceof m))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new W(o)};m.prototype.encrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var b=i(o.length),E=i(16),w=0;w<o.length;w+=16)f(o,E,0,w,w+16),E=this._aes.encrypt(E),f(E,b,w);return b},m.prototype.decrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var b=i(o.length),E=i(16),w=0;w<o.length;w+=16)f(o,E,0,w,w+16),E=this._aes.decrypt(E),f(E,b,w);return b};var a=function(o,b){if(!(this instanceof a))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!b)b=i(16);else if(b.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=n(b,!0),this._aes=new W(o)};a.prototype.encrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var b=i(o.length),E=i(16),w=0;w<o.length;w+=16){f(o,E,0,w,w+16);for(var M=0;M<16;M++)E[M]^=this._lastCipherblock[M];this._lastCipherblock=this._aes.encrypt(E),f(this._lastCipherblock,b,w)}return b},a.prototype.decrypt=function(o){if(o=n(o),o.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var b=i(o.length),E=i(16),w=0;w<o.length;w+=16){f(o,E,0,w,w+16),E=this._aes.decrypt(E);for(var M=0;M<16;M++)b[w+M]=E[M]^this._lastCipherblock[M];f(o,this._lastCipherblock,0,w,w+16)}return b};var c=function(o,b,E){if(!(this instanceof c))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!b)b=i(16);else if(b.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");E||(E=1),this.segmentSize=E,this._shiftRegister=n(b,!0),this._aes=new W(o)};c.prototype.encrypt=function(o){if(o.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var b=n(o,!0),E,w=0;w<b.length;w+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var M=0;M<this.segmentSize;M++)b[w+M]^=E[M];f(this._shiftRegister,this._shiftRegister,0,this.segmentSize),f(b,this._shiftRegister,16-this.segmentSize,w,w+this.segmentSize)}return b},c.prototype.decrypt=function(o){if(o.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var b=n(o,!0),E,w=0;w<b.length;w+=this.segmentSize){E=this._aes.encrypt(this._shiftRegister);for(var M=0;M<this.segmentSize;M++)b[w+M]^=E[M];f(this._shiftRegister,this._shiftRegister,0,this.segmentSize),f(o,this._shiftRegister,16-this.segmentSize,w,w+this.segmentSize)}return b};var u=function(o,b){if(!(this instanceof u))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",!b)b=i(16);else if(b.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastPrecipher=n(b,!0),this._lastPrecipherIndex=16,this._aes=new W(o)};u.prototype.encrypt=function(o){for(var b=n(o,!0),E=0;E<b.length;E++)this._lastPrecipherIndex===16&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),b[E]^=this._lastPrecipher[this._lastPrecipherIndex++];return b},u.prototype.decrypt=u.prototype.encrypt;var s=function(o){if(!(this instanceof s))throw Error("Counter must be instanitated with `new`");o!==0&&!o&&(o=1),typeof o=="number"?(this._counter=i(16),this.setValue(o)):this.setBytes(o)};s.prototype.setValue=function(o){if(typeof o!="number"||parseInt(o)!=o)throw new Error("invalid counter value (must be an integer)");for(var b=15;b>=0;--b)this._counter[b]=o%256,o=o>>8},s.prototype.setBytes=function(o){if(o=n(o,!0),o.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=o},s.prototype.increment=function(){for(var o=15;o>=0;o--)if(this._counter[o]===255)this._counter[o]=0;else{this._counter[o]++;break}};var d=function(o,b){if(!(this instanceof d))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",b instanceof s||(b=new s(b)),this._counter=b,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new W(o)};d.prototype.encrypt=function(o){for(var b=n(o,!0),E=0;E<b.length;E++)this._remainingCounterIndex===16&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),b[E]^=this._remainingCounter[this._remainingCounterIndex++];return b},d.prototype.decrypt=d.prototype.encrypt;function v(o){o=n(o,!0);var b=16-o.length%16,E=i(o.length+b);f(o,E);for(var w=o.length;w<E.length;w++)E[w]=b;return E}function g(o){if(o=n(o,!0),o.length<16)throw new Error("PKCS#7 invalid length");var b=o[o.length-1];if(b>16)throw new Error("PKCS#7 padding byte out of range");for(var E=o.length-b,w=0;w<b;w++)if(o[E+w]!==b)throw new Error("PKCS#7 invalid padding byte");var M=i(E);return f(o,M,0,0,E),M}var l={AES:W,Counter:s,ModeOfOperation:{ecb:m,cbc:a,cfb:c,ofb:u,ctr:d},utils:{hex:p,utf8:h},padding:{pkcs7:{pad:v,strip:g}},_arrayTest:{coerceArray:n,createArray:i,copyArray:f}};typeof T2<"u"?uw.exports=l:typeof define=="function"&&define.amd?define(l):(r.aesjs&&(l._aesjs=r.aesjs),r.aesjs=l)})(T2)});var dw=z($h=>{"use strict";var QQ=A(_());Object.defineProperty($h,"__esModule",{value:!0});$h.version=void 0;$h.version="bytes/5.8.0"});var tc=z(ur=>{"use strict";var WQ=A(_());Object.defineProperty(ur,"__esModule",{value:!0});ur.joinSignature=ur.splitSignature=ur.hexZeroPad=ur.hexStripZeros=ur.hexValue=ur.hexConcat=ur.hexDataSlice=ur.hexDataLength=ur.hexlify=ur.isHexString=ur.zeroPad=ur.stripZeros=ur.concat=ur.arrayify=ur.isBytes=ur.isBytesLike=void 0;var Kk=qe(),Vk=dw(),mt=new Kk.Logger(Vk.version);function hw(r){return!!r.toHexString}function rc(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return rc(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function bw(r){return va(r)&&!(r.length%2)||r1(r)}ur.isBytesLike=bw;function lw(r){return typeof r=="number"&&r==r&&r%1===0}function r1(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!lw(r.length)||r.length<0)return!1;for(var e=0;e<r.length;e++){var t=r[e];if(!lw(t)||t<0||t>=256)return!1}return!0}ur.isBytes=r1;function bs(r,e){if(e||(e={}),typeof r=="number"){mt.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),rc(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),hw(r)&&(r=r.toHexString()),va(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":mt.throwArgumentError("hex data is odd-length","value",r));for(var t=[],i=0;i<n.length;i+=2)t.push(parseInt(n.substring(i,i+2),16));return rc(new Uint8Array(t))}return r1(r)?rc(new Uint8Array(r)):mt.throwArgumentError("invalid arrayify value","value",r)}ur.arrayify=bs;function pw(r){var e=r.map(function(i){return bs(i)}),t=e.reduce(function(i,f){return i+f.length},0),n=new Uint8Array(t);return e.reduce(function(i,f){return n.set(f,i),i+f.length},0),rc(n)}ur.concat=pw;function jk(r){var e=bs(r);if(e.length===0)return e;for(var t=0;t<e.length&&e[t]===0;)t++;return t&&(e=e.slice(t)),e}ur.stripZeros=jk;function vw(r,e){r=bs(r),r.length>e&&mt.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),rc(t)}ur.zeroPad=vw;function va(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}ur.isHexString=va;var B2="0123456789abcdef";function Ni(r,e){if(e||(e={}),typeof r=="number"){mt.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=B2[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),hw(r))return r.toHexString();if(va(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":mt.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(r1(r)){for(var n="0x",i=0;i<r.length;i++){var f=r[i];n+=B2[(f&240)>>4]+B2[f&15]}return n}return mt.throwArgumentError("invalid hexlify value","value",r)}ur.hexlify=Ni;function Qk(r){if(typeof r!="string")r=Ni(r);else if(!va(r)||r.length%2)return null;return(r.length-2)/2}ur.hexDataLength=Qk;function Yk(r,e,t){return typeof r!="string"?r=Ni(r):(!va(r)||r.length%2)&&mt.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}ur.hexDataSlice=Yk;function Wk(r){var e="0x";return r.forEach(function(t){e+=Ni(t).substring(2)}),e}ur.hexConcat=Wk;function $k(r){var e=gw(Ni(r,{hexPad:"left"}));return e==="0x"?"0x0":e}ur.hexValue=$k;function gw(r){typeof r!="string"&&(r=Ni(r)),va(r)||mt.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e<r.length&&r[e]==="0";)e++;return"0x"+r.substring(e)}ur.hexStripZeros=gw;function e1(r,e){for(typeof r!="string"?r=Ni(r):va(r)||mt.throwArgumentError("invalid hex string","value",r),r.length>2*e+2&&mt.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}ur.hexZeroPad=e1;function mw(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(bw(r)){var t=bs(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=Ni(t.slice(0,32)),e.s=Ni(t.slice(32,64))):t.length===65?(e.r=Ni(t.slice(0,32)),e.s=Ni(t.slice(32,64)),e.v=t[64]):mt.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:mt.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=Ni(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=vw(bs(e._vs),32);e._vs=Ni(n);var i=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=i:e.recoveryParam!==i&&mt.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var f=Ni(n);e.s==null?e.s=f:e.s!==f&&mt.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?mt.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var h=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==h&&mt.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!va(e.r)?mt.throwArgumentError("signature missing or invalid r","signature",r):e.r=e1(e.r,32),e.s==null||!va(e.s)?mt.throwArgumentError("signature missing or invalid s","signature",r):e.s=e1(e.s,32);var p=bs(e.s);p[0]>=128&&mt.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(p[0]|=128);var y=Ni(p);e._vs&&(va(e._vs)||mt.throwArgumentError("signature invalid _vs","signature",r),e._vs=e1(e._vs,32)),e._vs==null?e._vs=y:e._vs!==y&&mt.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}ur.splitSignature=mw;function eN(r){return r=mw(r),Ni(pw([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}ur.joinSignature=eN});var C2=z(t1=>{"use strict";var eY=A(_());Object.defineProperty(t1,"__esModule",{value:!0});t1.version=void 0;t1.version="json-wallets/5.8.0"});var L2=z(On=>{"use strict";var tY=A(_());Object.defineProperty(On,"__esModule",{value:!0});On.uuidV4=On.searchPath=On.getPassword=On.zpad=On.looseArrayify=void 0;var i1=tc(),yw=ai();function rN(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,i1.arrayify)(r)}On.looseArrayify=rN;function tN(r,e){for(r=String(r);r.length<e;)r="0"+r;return r}On.zpad=tN;function iN(r){return typeof r=="string"?(0,yw.toUtf8Bytes)(r,yw.UnicodeNormalizationForm.NFKC):(0,i1.arrayify)(r)}On.getPassword=iN;function nN(r,e){for(var t=r,n=e.toLowerCase().split("/"),i=0;i<n.length;i++){var f=null;for(var h in t)if(h.toLowerCase()===n[i]){f=t[h];break}if(f===null)return null;t=f}return t}On.searchPath=nN;function aN(r){var e=(0,i1.arrayify)(r);e[6]=e[6]&15|64,e[8]=e[8]&63|128;var t=(0,i1.hexlify)(e);return[t.substring(2,10),t.substring(10,14),t.substring(14,18),t.substring(18,22),t.substring(22,34)].join("-")}On.uuidV4=aN});var Mw=z(Qa=>{"use strict";var nY=A(_()),oN=Qa&&Qa.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fN=Qa&&Qa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qa,"__esModule",{value:!0});Qa.decrypt=Qa.CrowdsaleAccount=void 0;var xw=fN(P2()),sN=Fa(),ww=tc(),cN=pi(),uN=sh(),dN=ai(),lN=oi(),hN=qe(),bN=C2(),pN=new hN.Logger(bN.version),n1=L2(),Aw=function(r){oN(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(lN.Description);Qa.CrowdsaleAccount=Aw;function vN(r,e){var t=JSON.parse(r);e=(0,n1.getPassword)(e);var n=(0,sN.getAddress)((0,n1.searchPath)(t,"ethaddr")),i=(0,n1.looseArrayify)((0,n1.searchPath)(t,"encseed"));(!i||i.length%16!==0)&&pN.throwArgumentError("invalid encseed","json",r);for(var f=(0,ww.arrayify)((0,uN.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),h=i.slice(0,16),p=i.slice(16),y=new xw.default.ModeOfOperation.cbc(f,h),x=xw.default.padding.pkcs7.strip((0,ww.arrayify)(y.decrypt(p))),S="",T=0;T<x.length;T++)S+=String.fromCharCode(x[T]);var L=(0,dN.toUtf8Bytes)(S),R=(0,cN.keccak256)(L);return new Aw({_isCrowdsaleAccount:!0,address:n,privateKey:R})}Qa.decrypt=vN});var Tw=z(uf=>{"use strict";var oY=A(_());Object.defineProperty(uf,"__esModule",{value:!0});uf.getJsonWalletAddress=uf.isKeystoreWallet=uf.isCrowdsaleWallet=void 0;var Sw=Fa();function _w(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}uf.isCrowdsaleWallet=_w;function Ew(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}uf.isKeystoreWallet=Ew;function gN(r){if(_w(r))try{return(0,Sw.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(Ew(r))try{return(0,Sw.getAddress)(JSON.parse(r).address)}catch{return null}return null}uf.getJsonWalletAddress=gN});var Bw=z((R2,Pw)=>{"use strict";var fY=A(_());(function(r){function t(R){let B=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]),D=1779033703,j=3144134277,q=1013904242,ie=2773480762,Y=1359893119,de=2600822924,ne=528734635,te=1541459225,ve=new Uint32Array(64);function $(d){let v=0,g=d.length;for(;g>=64;){let l=D,o=j,b=q,E=ie,w=Y,M=de,J=ne,P=te,N,Z,X,C,F;for(Z=0;Z<16;Z++)X=v+Z*4,ve[Z]=(d[X]&255)<<24|(d[X+1]&255)<<16|(d[X+2]&255)<<8|d[X+3]&255;for(Z=16;Z<64;Z++)N=ve[Z-2],C=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,N=ve[Z-15],F=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,ve[Z]=(C+ve[Z-7]|0)+(F+ve[Z-16]|0)|0;for(Z=0;Z<64;Z++)C=(((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&M^~w&J)|0)+(P+(B[Z]+ve[Z]|0)|0)|0,F=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&o^l&b^o&b)|0,P=J,J=M,M=w,w=E+C|0,E=b,b=o,o=l,l=C+F|0;D=D+l|0,j=j+o|0,q=q+b|0,ie=ie+E|0,Y=Y+w|0,de=de+M|0,ne=ne+J|0,te=te+P|0,v+=64,g-=64}}$(R);let W,m=R.length%64,a=R.length/536870912|0,c=R.length<<3,u=m<56?56:120,s=R.slice(R.length-m,R.length);for(s.push(128),W=m+1;W<u;W++)s.push(0);return s.push(a>>>24&255),s.push(a>>>16&255),s.push(a>>>8&255),s.push(a>>>0&255),s.push(c>>>24&255),s.push(c>>>16&255),s.push(c>>>8&255),s.push(c>>>0&255),$(s),[D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,q>>>24&255,q>>>16&255,q>>>8&255,q>>>0&255,ie>>>24&255,ie>>>16&255,ie>>>8&255,ie>>>0&255,Y>>>24&255,Y>>>16&255,Y>>>8&255,Y>>>0&255,de>>>24&255,de>>>16&255,de>>>8&255,de>>>0&255,ne>>>24&255,ne>>>16&255,ne>>>8&255,ne>>>0&255,te>>>24&255,te>>>16&255,te>>>8&255,te>>>0&255]}function n(R,B,D){R=R.length<=64?R:t(R);let j=64+B.length+4,q=new Array(j),ie=new Array(64),Y,de=[];for(Y=0;Y<64;Y++)q[Y]=54;for(Y=0;Y<R.length;Y++)q[Y]^=R[Y];for(Y=0;Y<B.length;Y++)q[64+Y]=B[Y];for(Y=j-4;Y<j;Y++)q[Y]=0;for(Y=0;Y<64;Y++)ie[Y]=92;for(Y=0;Y<R.length;Y++)ie[Y]^=R[Y];function ne(){for(let te=j-1;te>=j-4;te--){if(q[te]++,q[te]<=255)return;q[te]=0}}for(;D>=32;)ne(),de=de.concat(t(ie.concat(t(q)))),D-=32;return D>0&&(ne(),de=de.concat(t(ie.concat(t(q))).slice(0,D))),de}function i(R,B,D,j,q){let ie;for(y(R,(2*D-1)*16,q,0,16),ie=0;ie<2*D;ie++)p(R,ie*16,q,16),h(q,j),y(q,0,R,B+ie*16,16);for(ie=0;ie<D;ie++)y(R,B+ie*2*16,R,ie*16,16);for(ie=0;ie<D;ie++)y(R,B+(ie*2+1)*16,R,(ie+D)*16,16)}function f(R,B){return R<<B|R>>>32-B}function h(R,B){y(R,0,B,0,16);for(let D=8;D>0;D-=2)B[4]^=f(B[0]+B[12],7),B[8]^=f(B[4]+B[0],9),B[12]^=f(B[8]+B[4],13),B[0]^=f(B[12]+B[8],18),B[9]^=f(B[5]+B[1],7),B[13]^=f(B[9]+B[5],9),B[1]^=f(B[13]+B[9],13),B[5]^=f(B[1]+B[13],18),B[14]^=f(B[10]+B[6],7),B[2]^=f(B[14]+B[10],9),B[6]^=f(B[2]+B[14],13),B[10]^=f(B[6]+B[2],18),B[3]^=f(B[15]+B[11],7),B[7]^=f(B[3]+B[15],9),B[11]^=f(B[7]+B[3],13),B[15]^=f(B[11]+B[7],18),B[1]^=f(B[0]+B[3],7),B[2]^=f(B[1]+B[0],9),B[3]^=f(B[2]+B[1],13),B[0]^=f(B[3]+B[2],18),B[6]^=f(B[5]+B[4],7),B[7]^=f(B[6]+B[5],9),B[4]^=f(B[7]+B[6],13),B[5]^=f(B[4]+B[7],18),B[11]^=f(B[10]+B[9],7),B[8]^=f(B[11]+B[10],9),B[9]^=f(B[8]+B[11],13),B[10]^=f(B[9]+B[8],18),B[12]^=f(B[15]+B[14],7),B[13]^=f(B[12]+B[15],9),B[14]^=f(B[13]+B[12],13),B[15]^=f(B[14]+B[13],18);for(let D=0;D<16;++D)R[D]+=B[D]}function p(R,B,D,j){for(let q=0;q<j;q++)D[q]^=R[B+q]}function y(R,B,D,j,q){for(;q--;)D[j++]=R[B++]}function x(R){if(!R||typeof R.length!="number")return!1;for(let B=0;B<R.length;B++){let D=R[B];if(typeof D!="number"||D%1||D<0||D>=256)return!1}return!0}function S(R,B){if(typeof R!="number"||R%1)throw new Error("invalid "+B);return R}function T(R,B,D,j,q,ie,Y){if(D=S(D,"N"),j=S(j,"r"),q=S(q,"p"),ie=S(ie,"dkLen"),D===0||D&D-1)throw new Error("N must be power of 2");if(D>2147483647/128/j)throw new Error("N too large");if(j>2147483647/128/q)throw new Error("r too large");if(!x(R))throw new Error("password must be an array or buffer");if(R=Array.prototype.slice.call(R),!x(B))throw new Error("salt must be an array or buffer");B=Array.prototype.slice.call(B);let de=n(R,B,q*128*j),ne=new Uint32Array(q*32*j);for(let w=0;w<ne.length;w++){let M=w*4;ne[w]=(de[M+3]&255)<<24|(de[M+2]&255)<<16|(de[M+1]&255)<<8|(de[M+0]&255)<<0}let te=new Uint32Array(64*j),ve=new Uint32Array(32*j*D),$=32*j,W=new Uint32Array(16),m=new Uint32Array(16),a=q*D*2,c=0,u=null,s=!1,d=0,v=0,g,l,o=Y?parseInt(1e3/j):4294967295,b=typeof setImmediate<"u"?setImmediate:setTimeout,E=function(){if(s)return Y(new Error("cancelled"),c/a);let w;switch(d){case 0:l=v*32*j,y(ne,l,te,0,$),d=1,g=0;case 1:w=D-g,w>o&&(w=o);for(let J=0;J<w;J++)y(te,0,ve,(g+J)*$,$),i(te,$,j,W,m);if(g+=w,c+=w,Y){let J=parseInt(1e3*c/a);if(J!==u){if(s=Y(null,c/a),s)break;u=J}}if(g<D)break;g=0,d=2;case 2:w=D-g,w>o&&(w=o);for(let J=0;J<w;J++){let P=(2*j-1)*16,N=te[P]&D-1;p(ve,N*$,te,$),i(te,$,j,W,m)}if(g+=w,c+=w,Y){let J=parseInt(1e3*c/a);if(J!==u){if(s=Y(null,c/a),s)break;u=J}}if(g<D)break;if(y(te,0,ne,l,$),v++,v<q){d=0;break}de=[];for(let J=0;J<ne.length;J++)de.push(ne[J]>>0&255),de.push(ne[J]>>8&255),de.push(ne[J]>>16&255),de.push(ne[J]>>24&255);let M=n(R,de,ie);return Y&&Y(null,1,M),M}Y&&b(E)};if(!Y)for(;;){let w=E();if(w!=null)return w}E()}let L={scrypt:function(R,B,D,j,q,ie,Y){return new Promise(function(de,ne){let te=0;Y&&Y(0),T(R,B,D,j,q,ie,function(ve,$,W){if(ve)ne(ve);else if(W)Y&&te!==1&&Y(1),de(new Uint8Array(W));else if(Y&&$!==te)return te=$,Y($)})})},syncScrypt:function(R,B,D,j,q,ie){return new Uint8Array(T(R,B,D,j,q,ie))}};typeof R2<"u"?Pw.exports=L:typeof define=="function"&&define.amd?define(L):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=L)})(R2)});var Cw=z((sY,mN)=>{mN.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Ya=z((Lw,I2)=>{var cY=A(_());(function(r,e){"use strict";function t(m,a){if(!m)throw new Error(a||"Assertion failed")}function n(m,a){m.super_=a;var c=function(){};c.prototype=a.prototype,m.prototype=new c,m.prototype.constructor=m}function i(m,a,c){if(i.isBN(m))return m;this.negative=0,this.words=null,this.length=0,this.red=null,m!==null&&((a==="le"||a==="be")&&(c=a,a=10),this._init(m||0,a||10,c||"be"))}typeof r=="object"?r.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=vr("buffer").Buffer}catch{}i.isBN=function(a){return a instanceof i?!0:a!==null&&typeof a=="object"&&a.constructor.wordSize===i.wordSize&&Array.isArray(a.words)},i.max=function(a,c){return a.cmp(c)>0?a:c},i.min=function(a,c){return a.cmp(c)<0?a:c},i.prototype._init=function(a,c,u){if(typeof a=="number")return this._initNumber(a,c,u);if(typeof a=="object")return this._initArray(a,c,u);c==="hex"&&(c=16),t(c===(c|0)&&c>=2&&c<=36),a=a.toString().replace(/\s+/g,"");var s=0;a[0]==="-"&&(s++,this.negative=1),s<a.length&&(c===16?this._parseHex(a,s,u):(this._parseBase(a,c,s),u==="le"&&this._initArray(this.toArray(),c,u)))},i.prototype._initNumber=function(a,c,u){a<0&&(this.negative=1,a=-a),a<67108864?(this.words=[a&67108863],this.length=1):a<4503599627370496?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(t(a<9007199254740992),this.words=[a&67108863,a/67108864&67108863,1],this.length=3),u==="le"&&this._initArray(this.toArray(),c,u)},i.prototype._initArray=function(a,c,u){if(t(typeof a.length=="number"),a.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3),this.words=new Array(this.length);for(var s=0;s<this.length;s++)this.words[s]=0;var d,v,g=0;if(u==="be")for(s=a.length-1,d=0;s>=0;s-=3)v=a[s]|a[s-1]<<8|a[s-2]<<16,this.words[d]|=v<<g&67108863,this.words[d+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,d++);else if(u==="le")for(s=0,d=0;s<a.length;s+=3)v=a[s]|a[s+1]<<8|a[s+2]<<16,this.words[d]|=v<<g&67108863,this.words[d+1]=v>>>26-g&67108863,g+=24,g>=26&&(g-=26,d++);return this.strip()};function h(m,a){var c=m.charCodeAt(a);return c>=65&&c<=70?c-55:c>=97&&c<=102?c-87:c-48&15}function p(m,a,c){var u=h(m,c);return c-1>=a&&(u|=h(m,c-1)<<4),u}i.prototype._parseHex=function(a,c,u){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var s=0;s<this.length;s++)this.words[s]=0;var d=0,v=0,g;if(u==="be")for(s=a.length-1;s>=c;s-=2)g=p(a,c,s)<<d,this.words[v]|=g&67108863,d>=18?(d-=18,v+=1,this.words[v]|=g>>>26):d+=8;else{var l=a.length-c;for(s=l%2===0?c+1:c;s<a.length;s+=2)g=p(a,c,s)<<d,this.words[v]|=g&67108863,d>=18?(d-=18,v+=1,this.words[v]|=g>>>26):d+=8}this.strip()};function y(m,a,c,u){for(var s=0,d=Math.min(m.length,c),v=a;v<d;v++){var g=m.charCodeAt(v)-48;s*=u,g>=49?s+=g-49+10:g>=17?s+=g-17+10:s+=g}return s}i.prototype._parseBase=function(a,c,u){this.words=[0],this.length=1;for(var s=0,d=1;d<=67108863;d*=c)s++;s--,d=d/c|0;for(var v=a.length-u,g=v%s,l=Math.min(v,v-g)+u,o=0,b=u;b<l;b+=s)o=y(a,b,b+s,c),this.imuln(d),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(g!==0){var E=1;for(o=y(a,b,a.length,c),b=0;b<g;b++)E*=c;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},i.prototype.copy=function(a){a.words=new Array(this.length);for(var c=0;c<this.length;c++)a.words[c]=this.words[c];a.length=this.length,a.negative=this.negative,a.red=this.red},i.prototype.clone=function(){var a=new i(null);return this.copy(a),a},i.prototype._expand=function(a){for(;this.length<a;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var x=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(a,c){a=a||10,c=c|0||1;var u;if(a===16||a==="hex"){u="";for(var s=0,d=0,v=0;v<this.length;v++){var g=this.words[v],l=((g<<s|d)&16777215).toString(16);d=g>>>24-s&16777215,s+=2,s>=26&&(s-=26,v--),d!==0||v!==this.length-1?u=x[6-l.length]+l+u:u=l+u}for(d!==0&&(u=d.toString(16)+u);u.length%c!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}if(a===(a|0)&&a>=2&&a<=36){var o=S[a],b=T[a];u="";var E=this.clone();for(E.negative=0;!E.isZero();){var w=E.modn(b).toString(a);E=E.idivn(b),E.isZero()?u=w+u:u=x[o-w.length]+w+u}for(this.isZero()&&(u="0"+u);u.length%c!==0;)u="0"+u;return this.negative!==0&&(u="-"+u),u}t(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(a,c){return t(typeof f<"u"),this.toArrayLike(f,a,c)},i.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)},i.prototype.toArrayLike=function(a,c,u){var s=this.byteLength(),d=u||Math.max(1,s);t(s<=d,"byte array longer than desired length"),t(d>0,"Requested array length <= 0"),this.strip();var v=c==="le",g=new a(d),l,o,b=this.clone();if(v){for(o=0;!b.isZero();o++)l=b.andln(255),b.iushrn(8),g[o]=l;for(;o<d;o++)g[o]=0}else{for(o=0;o<d-s;o++)g[o]=0;for(o=0;!b.isZero();o++)l=b.andln(255),b.iushrn(8),g[d-o-1]=l}return g},Math.clz32?i.prototype._countBits=function(a){return 32-Math.clz32(a)}:i.prototype._countBits=function(a){var c=a,u=0;return c>=4096&&(u+=13,c>>>=13),c>=64&&(u+=7,c>>>=7),c>=8&&(u+=4,c>>>=4),c>=2&&(u+=2,c>>>=2),u+c},i.prototype._zeroBits=function(a){if(a===0)return 26;var c=a,u=0;return c&8191||(u+=13,c>>>=13),c&127||(u+=7,c>>>=7),c&15||(u+=4,c>>>=4),c&3||(u+=2,c>>>=2),c&1||u++,u},i.prototype.bitLength=function(){var a=this.words[this.length-1],c=this._countBits(a);return(this.length-1)*26+c};function L(m){for(var a=new Array(m.bitLength()),c=0;c<a.length;c++){var u=c/26|0,s=c%26;a[c]=(m.words[u]&1<<s)>>>s}return a}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;c<this.length;c++){var u=this._zeroBits(this.words[c]);if(a+=u,u!==26)break}return a},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(a){return this.negative!==0?this.abs().inotn(a).iaddn(1):this.clone()},i.prototype.fromTwos=function(a){return this.testn(a-1)?this.notn(a).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(a){for(;this.length<a.length;)this.words[this.length++]=0;for(var c=0;c<a.length;c++)this.words[c]=this.words[c]|a.words[c];return this.strip()},i.prototype.ior=function(a){return t((this.negative|a.negative)===0),this.iuor(a)},i.prototype.or=function(a){return this.length>a.length?this.clone().ior(a):a.clone().ior(this)},i.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},i.prototype.iuand=function(a){var c;this.length>a.length?c=a:c=this;for(var u=0;u<c.length;u++)this.words[u]=this.words[u]&a.words[u];return this.length=c.length,this.strip()},i.prototype.iand=function(a){return t((this.negative|a.negative)===0),this.iuand(a)},i.prototype.and=function(a){return this.length>a.length?this.clone().iand(a):a.clone().iand(this)},i.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},i.prototype.iuxor=function(a){var c,u;this.length>a.length?(c=this,u=a):(c=a,u=this);for(var s=0;s<u.length;s++)this.words[s]=c.words[s]^u.words[s];if(this!==c)for(;s<c.length;s++)this.words[s]=c.words[s];return this.length=c.length,this.strip()},i.prototype.ixor=function(a){return t((this.negative|a.negative)===0),this.iuxor(a)},i.prototype.xor=function(a){return this.length>a.length?this.clone().ixor(a):a.clone().ixor(this)},i.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},i.prototype.inotn=function(a){t(typeof a=="number"&&a>=0);var c=Math.ceil(a/26)|0,u=a%26;this._expand(c),u>0&&c--;for(var s=0;s<c;s++)this.words[s]=~this.words[s]&67108863;return u>0&&(this.words[s]=~this.words[s]&67108863>>26-u),this.strip()},i.prototype.notn=function(a){return this.clone().inotn(a)},i.prototype.setn=function(a,c){t(typeof a=="number"&&a>=0);var u=a/26|0,s=a%26;return this._expand(u+1),c?this.words[u]=this.words[u]|1<<s:this.words[u]=this.words[u]&~(1<<s),this.strip()},i.prototype.iadd=function(a){var c;if(this.negative!==0&&a.negative===0)return this.negative=0,c=this.isub(a),this.negative^=1,this._normSign();if(this.negative===0&&a.negative!==0)return a.negative=0,c=this.isub(a),a.negative=1,c._normSign();var u,s;this.length>a.length?(u=this,s=a):(u=a,s=this);for(var d=0,v=0;v<s.length;v++)c=(u.words[v]|0)+(s.words[v]|0)+d,this.words[v]=c&67108863,d=c>>>26;for(;d!==0&&v<u.length;v++)c=(u.words[v]|0)+d,this.words[v]=c&67108863,d=c>>>26;if(this.length=u.length,d!==0)this.words[this.length]=d,this.length++;else if(u!==this)for(;v<u.length;v++)this.words[v]=u.words[v];return this},i.prototype.add=function(a){var c;return a.negative!==0&&this.negative===0?(a.negative=0,c=this.sub(a),a.negative^=1,c):a.negative===0&&this.negative!==0?(this.negative=0,c=a.sub(this),this.negative=1,c):this.length>a.length?this.clone().iadd(a):a.clone().iadd(this)},i.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var u=this.cmp(a);if(u===0)return this.negative=0,this.length=1,this.words[0]=0,this;var s,d;u>0?(s=this,d=a):(s=a,d=this);for(var v=0,g=0;g<d.length;g++)c=(s.words[g]|0)-(d.words[g]|0)+v,v=c>>26,this.words[g]=c&67108863;for(;v!==0&&g<s.length;g++)c=(s.words[g]|0)+v,v=c>>26,this.words[g]=c&67108863;if(v===0&&g<s.length&&s!==this)for(;g<s.length;g++)this.words[g]=s.words[g];return this.length=Math.max(this.length,g),s!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(a){return this.clone().isub(a)};function R(m,a,c){c.negative=a.negative^m.negative;var u=m.length+a.length|0;c.length=u,u=u-1|0;var s=m.words[0]|0,d=a.words[0]|0,v=s*d,g=v&67108863,l=v/67108864|0;c.words[0]=g;for(var o=1;o<u;o++){for(var b=l>>>26,E=l&67108863,w=Math.min(o,a.length-1),M=Math.max(0,o-m.length+1);M<=w;M++){var J=o-M|0;s=m.words[J]|0,d=a.words[M]|0,v=s*d+E,b+=v/67108864|0,E=v&67108863}c.words[o]=E|0,l=b|0}return l!==0?c.words[o]=l|0:c.length--,c.strip()}var B=function(a,c,u){var s=a.words,d=c.words,v=u.words,g=0,l,o,b,E=s[0]|0,w=E&8191,M=E>>>13,J=s[1]|0,P=J&8191,N=J>>>13,Z=s[2]|0,X=Z&8191,C=Z>>>13,F=s[3]|0,I=F&8191,O=F>>>13,V=s[4]|0,k=V&8191,H=V>>>13,Q=s[5]|0,U=Q&8191,G=Q>>>13,ee=s[6]|0,K=ee&8191,re=ee>>>13,Fe=s[7]|0,oe=Fe&8191,ce=Fe>>>13,Ne=s[8]|0,ae=Ne&8191,fe=Ne>>>13,Je=s[9]|0,be=Je&8191,pe=Je>>>13,_r=d[0]|0,le=_r&8191,he=_r>>>13,He=d[1]|0,ue=He&8191,se=He>>>13,Dr=d[2]|0,ge=Dr&8191,me=Dr>>>13,Or=d[3]|0,ye=Or&8191,xe=Or>>>13,kr=d[4]|0,we=kr&8191,Ae=kr>>>13,Nr=d[5]|0,Me=Nr&8191,Se=Nr>>>13,Jr=d[6]|0,_e=Jr&8191,Ee=Jr>>>13,qr=d[7]|0,Te=qr&8191,Pe=qr>>>13,Ur=d[8]|0,Be=Ur&8191,Ce=Ur>>>13,zr=d[9]|0,Le=zr&8191,Re=zr>>>13;u.negative=a.negative^c.negative,u.length=19,l=Math.imul(w,le),o=Math.imul(w,he),o=o+Math.imul(M,le)|0,b=Math.imul(M,he);var Er=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Er>>>26)|0,Er&=67108863,l=Math.imul(P,le),o=Math.imul(P,he),o=o+Math.imul(N,le)|0,b=Math.imul(N,he),l=l+Math.imul(w,ue)|0,o=o+Math.imul(w,se)|0,o=o+Math.imul(M,ue)|0,b=b+Math.imul(M,se)|0;var De=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(De>>>26)|0,De&=67108863,l=Math.imul(X,le),o=Math.imul(X,he),o=o+Math.imul(C,le)|0,b=Math.imul(C,he),l=l+Math.imul(P,ue)|0,o=o+Math.imul(P,se)|0,o=o+Math.imul(N,ue)|0,b=b+Math.imul(N,se)|0,l=l+Math.imul(w,ge)|0,o=o+Math.imul(w,me)|0,o=o+Math.imul(M,ge)|0,b=b+Math.imul(M,me)|0;var Oe=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,l=Math.imul(I,le),o=Math.imul(I,he),o=o+Math.imul(O,le)|0,b=Math.imul(O,he),l=l+Math.imul(X,ue)|0,o=o+Math.imul(X,se)|0,o=o+Math.imul(C,ue)|0,b=b+Math.imul(C,se)|0,l=l+Math.imul(P,ge)|0,o=o+Math.imul(P,me)|0,o=o+Math.imul(N,ge)|0,b=b+Math.imul(N,me)|0,l=l+Math.imul(w,ye)|0,o=o+Math.imul(w,xe)|0,o=o+Math.imul(M,ye)|0,b=b+Math.imul(M,xe)|0;var mr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(mr>>>26)|0,mr&=67108863,l=Math.imul(k,le),o=Math.imul(k,he),o=o+Math.imul(H,le)|0,b=Math.imul(H,he),l=l+Math.imul(I,ue)|0,o=o+Math.imul(I,se)|0,o=o+Math.imul(O,ue)|0,b=b+Math.imul(O,se)|0,l=l+Math.imul(X,ge)|0,o=o+Math.imul(X,me)|0,o=o+Math.imul(C,ge)|0,b=b+Math.imul(C,me)|0,l=l+Math.imul(P,ye)|0,o=o+Math.imul(P,xe)|0,o=o+Math.imul(N,ye)|0,b=b+Math.imul(N,xe)|0,l=l+Math.imul(w,we)|0,o=o+Math.imul(w,Ae)|0,o=o+Math.imul(M,we)|0,b=b+Math.imul(M,Ae)|0;var yr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(yr>>>26)|0,yr&=67108863,l=Math.imul(U,le),o=Math.imul(U,he),o=o+Math.imul(G,le)|0,b=Math.imul(G,he),l=l+Math.imul(k,ue)|0,o=o+Math.imul(k,se)|0,o=o+Math.imul(H,ue)|0,b=b+Math.imul(H,se)|0,l=l+Math.imul(I,ge)|0,o=o+Math.imul(I,me)|0,o=o+Math.imul(O,ge)|0,b=b+Math.imul(O,me)|0,l=l+Math.imul(X,ye)|0,o=o+Math.imul(X,xe)|0,o=o+Math.imul(C,ye)|0,b=b+Math.imul(C,xe)|0,l=l+Math.imul(P,we)|0,o=o+Math.imul(P,Ae)|0,o=o+Math.imul(N,we)|0,b=b+Math.imul(N,Ae)|0,l=l+Math.imul(w,Me)|0,o=o+Math.imul(w,Se)|0,o=o+Math.imul(M,Me)|0,b=b+Math.imul(M,Se)|0;var xr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(xr>>>26)|0,xr&=67108863,l=Math.imul(K,le),o=Math.imul(K,he),o=o+Math.imul(re,le)|0,b=Math.imul(re,he),l=l+Math.imul(U,ue)|0,o=o+Math.imul(U,se)|0,o=o+Math.imul(G,ue)|0,b=b+Math.imul(G,se)|0,l=l+Math.imul(k,ge)|0,o=o+Math.imul(k,me)|0,o=o+Math.imul(H,ge)|0,b=b+Math.imul(H,me)|0,l=l+Math.imul(I,ye)|0,o=o+Math.imul(I,xe)|0,o=o+Math.imul(O,ye)|0,b=b+Math.imul(O,xe)|0,l=l+Math.imul(X,we)|0,o=o+Math.imul(X,Ae)|0,o=o+Math.imul(C,we)|0,b=b+Math.imul(C,Ae)|0,l=l+Math.imul(P,Me)|0,o=o+Math.imul(P,Se)|0,o=o+Math.imul(N,Me)|0,b=b+Math.imul(N,Se)|0,l=l+Math.imul(w,_e)|0,o=o+Math.imul(w,Ee)|0,o=o+Math.imul(M,_e)|0,b=b+Math.imul(M,Ee)|0;var wr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(wr>>>26)|0,wr&=67108863,l=Math.imul(oe,le),o=Math.imul(oe,he),o=o+Math.imul(ce,le)|0,b=Math.imul(ce,he),l=l+Math.imul(K,ue)|0,o=o+Math.imul(K,se)|0,o=o+Math.imul(re,ue)|0,b=b+Math.imul(re,se)|0,l=l+Math.imul(U,ge)|0,o=o+Math.imul(U,me)|0,o=o+Math.imul(G,ge)|0,b=b+Math.imul(G,me)|0,l=l+Math.imul(k,ye)|0,o=o+Math.imul(k,xe)|0,o=o+Math.imul(H,ye)|0,b=b+Math.imul(H,xe)|0,l=l+Math.imul(I,we)|0,o=o+Math.imul(I,Ae)|0,o=o+Math.imul(O,we)|0,b=b+Math.imul(O,Ae)|0,l=l+Math.imul(X,Me)|0,o=o+Math.imul(X,Se)|0,o=o+Math.imul(C,Me)|0,b=b+Math.imul(C,Se)|0,l=l+Math.imul(P,_e)|0,o=o+Math.imul(P,Ee)|0,o=o+Math.imul(N,_e)|0,b=b+Math.imul(N,Ee)|0,l=l+Math.imul(w,Te)|0,o=o+Math.imul(w,Pe)|0,o=o+Math.imul(M,Te)|0,b=b+Math.imul(M,Pe)|0;var Ar=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,l=Math.imul(ae,le),o=Math.imul(ae,he),o=o+Math.imul(fe,le)|0,b=Math.imul(fe,he),l=l+Math.imul(oe,ue)|0,o=o+Math.imul(oe,se)|0,o=o+Math.imul(ce,ue)|0,b=b+Math.imul(ce,se)|0,l=l+Math.imul(K,ge)|0,o=o+Math.imul(K,me)|0,o=o+Math.imul(re,ge)|0,b=b+Math.imul(re,me)|0,l=l+Math.imul(U,ye)|0,o=o+Math.imul(U,xe)|0,o=o+Math.imul(G,ye)|0,b=b+Math.imul(G,xe)|0,l=l+Math.imul(k,we)|0,o=o+Math.imul(k,Ae)|0,o=o+Math.imul(H,we)|0,b=b+Math.imul(H,Ae)|0,l=l+Math.imul(I,Me)|0,o=o+Math.imul(I,Se)|0,o=o+Math.imul(O,Me)|0,b=b+Math.imul(O,Se)|0,l=l+Math.imul(X,_e)|0,o=o+Math.imul(X,Ee)|0,o=o+Math.imul(C,_e)|0,b=b+Math.imul(C,Ee)|0,l=l+Math.imul(P,Te)|0,o=o+Math.imul(P,Pe)|0,o=o+Math.imul(N,Te)|0,b=b+Math.imul(N,Pe)|0,l=l+Math.imul(w,Be)|0,o=o+Math.imul(w,Ce)|0,o=o+Math.imul(M,Be)|0,b=b+Math.imul(M,Ce)|0;var Hr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,l=Math.imul(be,le),o=Math.imul(be,he),o=o+Math.imul(pe,le)|0,b=Math.imul(pe,he),l=l+Math.imul(ae,ue)|0,o=o+Math.imul(ae,se)|0,o=o+Math.imul(fe,ue)|0,b=b+Math.imul(fe,se)|0,l=l+Math.imul(oe,ge)|0,o=o+Math.imul(oe,me)|0,o=o+Math.imul(ce,ge)|0,b=b+Math.imul(ce,me)|0,l=l+Math.imul(K,ye)|0,o=o+Math.imul(K,xe)|0,o=o+Math.imul(re,ye)|0,b=b+Math.imul(re,xe)|0,l=l+Math.imul(U,we)|0,o=o+Math.imul(U,Ae)|0,o=o+Math.imul(G,we)|0,b=b+Math.imul(G,Ae)|0,l=l+Math.imul(k,Me)|0,o=o+Math.imul(k,Se)|0,o=o+Math.imul(H,Me)|0,b=b+Math.imul(H,Se)|0,l=l+Math.imul(I,_e)|0,o=o+Math.imul(I,Ee)|0,o=o+Math.imul(O,_e)|0,b=b+Math.imul(O,Ee)|0,l=l+Math.imul(X,Te)|0,o=o+Math.imul(X,Pe)|0,o=o+Math.imul(C,Te)|0,b=b+Math.imul(C,Pe)|0,l=l+Math.imul(P,Be)|0,o=o+Math.imul(P,Ce)|0,o=o+Math.imul(N,Be)|0,b=b+Math.imul(N,Ce)|0,l=l+Math.imul(w,Le)|0,o=o+Math.imul(w,Re)|0,o=o+Math.imul(M,Le)|0,b=b+Math.imul(M,Re)|0;var Gr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,l=Math.imul(be,ue),o=Math.imul(be,se),o=o+Math.imul(pe,ue)|0,b=Math.imul(pe,se),l=l+Math.imul(ae,ge)|0,o=o+Math.imul(ae,me)|0,o=o+Math.imul(fe,ge)|0,b=b+Math.imul(fe,me)|0,l=l+Math.imul(oe,ye)|0,o=o+Math.imul(oe,xe)|0,o=o+Math.imul(ce,ye)|0,b=b+Math.imul(ce,xe)|0,l=l+Math.imul(K,we)|0,o=o+Math.imul(K,Ae)|0,o=o+Math.imul(re,we)|0,b=b+Math.imul(re,Ae)|0,l=l+Math.imul(U,Me)|0,o=o+Math.imul(U,Se)|0,o=o+Math.imul(G,Me)|0,b=b+Math.imul(G,Se)|0,l=l+Math.imul(k,_e)|0,o=o+Math.imul(k,Ee)|0,o=o+Math.imul(H,_e)|0,b=b+Math.imul(H,Ee)|0,l=l+Math.imul(I,Te)|0,o=o+Math.imul(I,Pe)|0,o=o+Math.imul(O,Te)|0,b=b+Math.imul(O,Pe)|0,l=l+Math.imul(X,Be)|0,o=o+Math.imul(X,Ce)|0,o=o+Math.imul(C,Be)|0,b=b+Math.imul(C,Ce)|0,l=l+Math.imul(P,Le)|0,o=o+Math.imul(P,Re)|0,o=o+Math.imul(N,Le)|0,b=b+Math.imul(N,Re)|0;var Xr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,l=Math.imul(be,ge),o=Math.imul(be,me),o=o+Math.imul(pe,ge)|0,b=Math.imul(pe,me),l=l+Math.imul(ae,ye)|0,o=o+Math.imul(ae,xe)|0,o=o+Math.imul(fe,ye)|0,b=b+Math.imul(fe,xe)|0,l=l+Math.imul(oe,we)|0,o=o+Math.imul(oe,Ae)|0,o=o+Math.imul(ce,we)|0,b=b+Math.imul(ce,Ae)|0,l=l+Math.imul(K,Me)|0,o=o+Math.imul(K,Se)|0,o=o+Math.imul(re,Me)|0,b=b+Math.imul(re,Se)|0,l=l+Math.imul(U,_e)|0,o=o+Math.imul(U,Ee)|0,o=o+Math.imul(G,_e)|0,b=b+Math.imul(G,Ee)|0,l=l+Math.imul(k,Te)|0,o=o+Math.imul(k,Pe)|0,o=o+Math.imul(H,Te)|0,b=b+Math.imul(H,Pe)|0,l=l+Math.imul(I,Be)|0,o=o+Math.imul(I,Ce)|0,o=o+Math.imul(O,Be)|0,b=b+Math.imul(O,Ce)|0,l=l+Math.imul(X,Le)|0,o=o+Math.imul(X,Re)|0,o=o+Math.imul(C,Le)|0,b=b+Math.imul(C,Re)|0;var Zr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,l=Math.imul(be,ye),o=Math.imul(be,xe),o=o+Math.imul(pe,ye)|0,b=Math.imul(pe,xe),l=l+Math.imul(ae,we)|0,o=o+Math.imul(ae,Ae)|0,o=o+Math.imul(fe,we)|0,b=b+Math.imul(fe,Ae)|0,l=l+Math.imul(oe,Me)|0,o=o+Math.imul(oe,Se)|0,o=o+Math.imul(ce,Me)|0,b=b+Math.imul(ce,Se)|0,l=l+Math.imul(K,_e)|0,o=o+Math.imul(K,Ee)|0,o=o+Math.imul(re,_e)|0,b=b+Math.imul(re,Ee)|0,l=l+Math.imul(U,Te)|0,o=o+Math.imul(U,Pe)|0,o=o+Math.imul(G,Te)|0,b=b+Math.imul(G,Pe)|0,l=l+Math.imul(k,Be)|0,o=o+Math.imul(k,Ce)|0,o=o+Math.imul(H,Be)|0,b=b+Math.imul(H,Ce)|0,l=l+Math.imul(I,Le)|0,o=o+Math.imul(I,Re)|0,o=o+Math.imul(O,Le)|0,b=b+Math.imul(O,Re)|0;var Kr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,l=Math.imul(be,we),o=Math.imul(be,Ae),o=o+Math.imul(pe,we)|0,b=Math.imul(pe,Ae),l=l+Math.imul(ae,Me)|0,o=o+Math.imul(ae,Se)|0,o=o+Math.imul(fe,Me)|0,b=b+Math.imul(fe,Se)|0,l=l+Math.imul(oe,_e)|0,o=o+Math.imul(oe,Ee)|0,o=o+Math.imul(ce,_e)|0,b=b+Math.imul(ce,Ee)|0,l=l+Math.imul(K,Te)|0,o=o+Math.imul(K,Pe)|0,o=o+Math.imul(re,Te)|0,b=b+Math.imul(re,Pe)|0,l=l+Math.imul(U,Be)|0,o=o+Math.imul(U,Ce)|0,o=o+Math.imul(G,Be)|0,b=b+Math.imul(G,Ce)|0,l=l+Math.imul(k,Le)|0,o=o+Math.imul(k,Re)|0,o=o+Math.imul(H,Le)|0,b=b+Math.imul(H,Re)|0;var Vr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,l=Math.imul(be,Me),o=Math.imul(be,Se),o=o+Math.imul(pe,Me)|0,b=Math.imul(pe,Se),l=l+Math.imul(ae,_e)|0,o=o+Math.imul(ae,Ee)|0,o=o+Math.imul(fe,_e)|0,b=b+Math.imul(fe,Ee)|0,l=l+Math.imul(oe,Te)|0,o=o+Math.imul(oe,Pe)|0,o=o+Math.imul(ce,Te)|0,b=b+Math.imul(ce,Pe)|0,l=l+Math.imul(K,Be)|0,o=o+Math.imul(K,Ce)|0,o=o+Math.imul(re,Be)|0,b=b+Math.imul(re,Ce)|0,l=l+Math.imul(U,Le)|0,o=o+Math.imul(U,Re)|0,o=o+Math.imul(G,Le)|0,b=b+Math.imul(G,Re)|0;var jr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(jr>>>26)|0,jr&=67108863,l=Math.imul(be,_e),o=Math.imul(be,Ee),o=o+Math.imul(pe,_e)|0,b=Math.imul(pe,Ee),l=l+Math.imul(ae,Te)|0,o=o+Math.imul(ae,Pe)|0,o=o+Math.imul(fe,Te)|0,b=b+Math.imul(fe,Pe)|0,l=l+Math.imul(oe,Be)|0,o=o+Math.imul(oe,Ce)|0,o=o+Math.imul(ce,Be)|0,b=b+Math.imul(ce,Ce)|0,l=l+Math.imul(K,Le)|0,o=o+Math.imul(K,Re)|0,o=o+Math.imul(re,Le)|0,b=b+Math.imul(re,Re)|0;var Qr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,l=Math.imul(be,Te),o=Math.imul(be,Pe),o=o+Math.imul(pe,Te)|0,b=Math.imul(pe,Pe),l=l+Math.imul(ae,Be)|0,o=o+Math.imul(ae,Ce)|0,o=o+Math.imul(fe,Be)|0,b=b+Math.imul(fe,Ce)|0,l=l+Math.imul(oe,Le)|0,o=o+Math.imul(oe,Re)|0,o=o+Math.imul(ce,Le)|0,b=b+Math.imul(ce,Re)|0;var Yr=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,l=Math.imul(be,Be),o=Math.imul(be,Ce),o=o+Math.imul(pe,Be)|0,b=Math.imul(pe,Ce),l=l+Math.imul(ae,Le)|0,o=o+Math.imul(ae,Re)|0,o=o+Math.imul(fe,Le)|0,b=b+Math.imul(fe,Re)|0;var Ot=(g+l|0)+((o&8191)<<13)|0;g=(b+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,l=Math.imul(be,Le),o=Math.imul(be,Re),o=o+Math.imul(pe,Le)|0,b=Math.imul(pe,Re);var kt=(g+l|0)+((o&8191)<<13)|0;return g=(b+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,v[0]=Er,v[1]=De,v[2]=Oe,v[3]=mr,v[4]=yr,v[5]=xr,v[6]=wr,v[7]=Ar,v[8]=Hr,v[9]=Gr,v[10]=Xr,v[11]=Zr,v[12]=Kr,v[13]=Vr,v[14]=jr,v[15]=Qr,v[16]=Yr,v[17]=Ot,v[18]=kt,g!==0&&(v[19]=g,u.length++),u};Math.imul||(B=R);function D(m,a,c){c.negative=a.negative^m.negative,c.length=m.length+a.length;for(var u=0,s=0,d=0;d<c.length-1;d++){var v=s;s=0;for(var g=u&67108863,l=Math.min(d,a.length-1),o=Math.max(0,d-m.length+1);o<=l;o++){var b=d-o,E=m.words[b]|0,w=a.words[o]|0,M=E*w,J=M&67108863;v=v+(M/67108864|0)|0,J=J+g|0,g=J&67108863,v=v+(J>>>26)|0,s+=v>>>26,v&=67108863}c.words[d]=g,u=v,v=s}return u!==0?c.words[d]=u:c.length--,c.strip()}function j(m,a,c){var u=new q;return u.mulp(m,a,c)}i.prototype.mulTo=function(a,c){var u,s=this.length+a.length;return this.length===10&&a.length===10?u=B(this,a,c):s<63?u=R(this,a,c):s<1024?u=D(this,a,c):u=j(this,a,c),u};function q(m,a){this.x=m,this.y=a}q.prototype.makeRBT=function(a){for(var c=new Array(a),u=i.prototype._countBits(a)-1,s=0;s<a;s++)c[s]=this.revBin(s,u,a);return c},q.prototype.revBin=function(a,c,u){if(a===0||a===u-1)return a;for(var s=0,d=0;d<c;d++)s|=(a&1)<<c-d-1,a>>=1;return s},q.prototype.permute=function(a,c,u,s,d,v){for(var g=0;g<v;g++)s[g]=c[a[g]],d[g]=u[a[g]]},q.prototype.transform=function(a,c,u,s,d,v){this.permute(v,a,c,u,s,d);for(var g=1;g<d;g<<=1)for(var l=g<<1,o=Math.cos(2*Math.PI/l),b=Math.sin(2*Math.PI/l),E=0;E<d;E+=l)for(var w=o,M=b,J=0;J<g;J++){var P=u[E+J],N=s[E+J],Z=u[E+J+g],X=s[E+J+g],C=w*Z-M*X;X=w*X+M*Z,Z=C,u[E+J]=P+Z,s[E+J]=N+X,u[E+J+g]=P-Z,s[E+J+g]=N-X,J!==l&&(C=o*w-b*M,M=o*M+b*w,w=C)}},q.prototype.guessLen13b=function(a,c){var u=Math.max(c,a)|1,s=u&1,d=0;for(u=u/2|0;u;u=u>>>1)d++;return 1<<d+1+s},q.prototype.conjugate=function(a,c,u){if(!(u<=1))for(var s=0;s<u/2;s++){var d=a[s];a[s]=a[u-s-1],a[u-s-1]=d,d=c[s],c[s]=-c[u-s-1],c[u-s-1]=-d}},q.prototype.normalize13b=function(a,c){for(var u=0,s=0;s<c/2;s++){var d=Math.round(a[2*s+1]/c)*8192+Math.round(a[2*s]/c)+u;a[s]=d&67108863,d<67108864?u=0:u=d/67108864|0}return a},q.prototype.convert13b=function(a,c,u,s){for(var d=0,v=0;v<c;v++)d=d+(a[v]|0),u[2*v]=d&8191,d=d>>>13,u[2*v+1]=d&8191,d=d>>>13;for(v=2*c;v<s;++v)u[v]=0;t(d===0),t((d&-8192)===0)},q.prototype.stub=function(a){for(var c=new Array(a),u=0;u<a;u++)c[u]=0;return c},q.prototype.mulp=function(a,c,u){var s=2*this.guessLen13b(a.length,c.length),d=this.makeRBT(s),v=this.stub(s),g=new Array(s),l=new Array(s),o=new Array(s),b=new Array(s),E=new Array(s),w=new Array(s),M=u.words;M.length=s,this.convert13b(a.words,a.length,g,s),this.convert13b(c.words,c.length,b,s),this.transform(g,v,l,o,s,d),this.transform(b,v,E,w,s,d);for(var J=0;J<s;J++){var P=l[J]*E[J]-o[J]*w[J];o[J]=l[J]*w[J]+o[J]*E[J],l[J]=P}return this.conjugate(l,o,s),this.transform(l,o,M,v,s,d),this.conjugate(M,v,s),this.normalize13b(M,s),u.negative=a.negative^c.negative,u.length=a.length+c.length,u.strip()},i.prototype.mul=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),this.mulTo(a,c)},i.prototype.mulf=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),j(this,a,c)},i.prototype.imul=function(a){return this.clone().mulTo(a,this)},i.prototype.imuln=function(a){t(typeof a=="number"),t(a<67108864);for(var c=0,u=0;u<this.length;u++){var s=(this.words[u]|0)*a,d=(s&67108863)+(c&67108863);c>>=26,c+=s/67108864|0,c+=d>>>26,this.words[u]=d&67108863}return c!==0&&(this.words[u]=c,this.length++),this.length=a===0?1:this.length,this},i.prototype.muln=function(a){return this.clone().imuln(a)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(a){var c=L(a);if(c.length===0)return new i(1);for(var u=this,s=0;s<c.length&&c[s]===0;s++,u=u.sqr());if(++s<c.length)for(var d=u.sqr();s<c.length;s++,d=d.sqr())c[s]!==0&&(u=u.mul(d));return u},i.prototype.iushln=function(a){t(typeof a=="number"&&a>=0);var c=a%26,u=(a-c)/26,s=67108863>>>26-c<<26-c,d;if(c!==0){var v=0;for(d=0;d<this.length;d++){var g=this.words[d]&s,l=(this.words[d]|0)-g<<c;this.words[d]=l|v,v=g>>>26-c}v&&(this.words[d]=v,this.length++)}if(u!==0){for(d=this.length-1;d>=0;d--)this.words[d+u]=this.words[d];for(d=0;d<u;d++)this.words[d]=0;this.length+=u}return this.strip()},i.prototype.ishln=function(a){return t(this.negative===0),this.iushln(a)},i.prototype.iushrn=function(a,c,u){t(typeof a=="number"&&a>=0);var s;c?s=(c-c%26)/26:s=0;var d=a%26,v=Math.min((a-d)/26,this.length),g=67108863^67108863>>>d<<d,l=u;if(s-=v,s=Math.max(0,s),l){for(var o=0;o<v;o++)l.words[o]=this.words[o];l.length=v}if(v!==0)if(this.length>v)for(this.length-=v,o=0;o<this.length;o++)this.words[o]=this.words[o+v];else this.words[0]=0,this.length=1;var b=0;for(o=this.length-1;o>=0&&(b!==0||o>=s);o--){var E=this.words[o]|0;this.words[o]=b<<26-d|E>>>d,b=E&g}return l&&b!==0&&(l.words[l.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(a,c,u){return t(this.negative===0),this.iushrn(a,c,u)},i.prototype.shln=function(a){return this.clone().ishln(a)},i.prototype.ushln=function(a){return this.clone().iushln(a)},i.prototype.shrn=function(a){return this.clone().ishrn(a)},i.prototype.ushrn=function(a){return this.clone().iushrn(a)},i.prototype.testn=function(a){t(typeof a=="number"&&a>=0);var c=a%26,u=(a-c)/26,s=1<<c;if(this.length<=u)return!1;var d=this.words[u];return!!(d&s)},i.prototype.imaskn=function(a){t(typeof a=="number"&&a>=0);var c=a%26,u=(a-c)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=u)return this;if(c!==0&&u++,this.length=Math.min(u,this.length),c!==0){var s=67108863^67108863>>>c<<c;this.words[this.length-1]&=s}return this.strip()},i.prototype.maskn=function(a){return this.clone().imaskn(a)},i.prototype.iaddn=function(a){return t(typeof a=="number"),t(a<67108864),a<0?this.isubn(-a):this.negative!==0?this.length===1&&(this.words[0]|0)<a?(this.words[0]=a-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(a),this.negative=1,this):this._iaddn(a)},i.prototype._iaddn=function(a){this.words[0]+=a;for(var c=0;c<this.length&&this.words[c]>=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(a){if(t(typeof a=="number"),t(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c<this.length&&this.words[c]<0;c++)this.words[c]+=67108864,this.words[c+1]-=1;return this.strip()},i.prototype.addn=function(a){return this.clone().iaddn(a)},i.prototype.subn=function(a){return this.clone().isubn(a)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(a,c,u){var s=a.length+u,d;this._expand(s);var v,g=0;for(d=0;d<a.length;d++){v=(this.words[d+u]|0)+g;var l=(a.words[d]|0)*c;v-=l&67108863,g=(v>>26)-(l/67108864|0),this.words[d+u]=v&67108863}for(;d<this.length-u;d++)v=(this.words[d+u]|0)+g,g=v>>26,this.words[d+u]=v&67108863;if(g===0)return this.strip();for(t(g===-1),g=0,d=0;d<this.length;d++)v=-(this.words[d]|0)+g,g=v>>26,this.words[d]=v&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(a,c){var u=this.length-a.length,s=this.clone(),d=a,v=d.words[d.length-1]|0,g=this._countBits(v);u=26-g,u!==0&&(d=d.ushln(u),s.iushln(u),v=d.words[d.length-1]|0);var l=s.length-d.length,o;if(c!=="mod"){o=new i(null),o.length=l+1,o.words=new Array(o.length);for(var b=0;b<o.length;b++)o.words[b]=0}var E=s.clone()._ishlnsubmul(d,1,l);E.negative===0&&(s=E,o&&(o.words[l]=1));for(var w=l-1;w>=0;w--){var M=(s.words[d.length+w]|0)*67108864+(s.words[d.length+w-1]|0);for(M=Math.min(M/v|0,67108863),s._ishlnsubmul(d,M,w);s.negative!==0;)M--,s.negative=0,s._ishlnsubmul(d,1,w),s.isZero()||(s.negative^=1);o&&(o.words[w]=M)}return o&&o.strip(),s.strip(),c!=="div"&&u!==0&&s.iushrn(u),{div:o||null,mod:s}},i.prototype.divmod=function(a,c,u){if(t(!a.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var s,d,v;return this.negative!==0&&a.negative===0?(v=this.neg().divmod(a,c),c!=="mod"&&(s=v.div.neg()),c!=="div"&&(d=v.mod.neg(),u&&d.negative!==0&&d.iadd(a)),{div:s,mod:d}):this.negative===0&&a.negative!==0?(v=this.divmod(a.neg(),c),c!=="mod"&&(s=v.div.neg()),{div:s,mod:v.mod}):this.negative&a.negative?(v=this.neg().divmod(a.neg(),c),c!=="div"&&(d=v.mod.neg(),u&&d.negative!==0&&d.isub(a)),{div:v.div,mod:d}):a.length>this.length||this.cmp(a)<0?{div:new i(0),mod:this}:a.length===1?c==="div"?{div:this.divn(a.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new i(this.modn(a.words[0]))}:this._wordDiv(a,c)},i.prototype.div=function(a){return this.divmod(a,"div",!1).div},i.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},i.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},i.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var u=c.div.negative!==0?c.mod.isub(a):c.mod,s=a.ushrn(1),d=a.andln(1),v=u.cmp(s);return v<0||d===1&&v===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modn=function(a){t(a<=67108863);for(var c=(1<<26)%a,u=0,s=this.length-1;s>=0;s--)u=(c*u+(this.words[s]|0))%a;return u},i.prototype.idivn=function(a){t(a<=67108863);for(var c=0,u=this.length-1;u>=0;u--){var s=(this.words[u]|0)+c*67108864;this.words[u]=s/a|0,c=s%a}return this.strip()},i.prototype.divn=function(a){return this.clone().idivn(a)},i.prototype.egcd=function(a){t(a.negative===0),t(!a.isZero());var c=this,u=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var s=new i(1),d=new i(0),v=new i(0),g=new i(1),l=0;c.isEven()&&u.isEven();)c.iushrn(1),u.iushrn(1),++l;for(var o=u.clone(),b=c.clone();!c.isZero();){for(var E=0,w=1;!(c.words[0]&w)&&E<26;++E,w<<=1);if(E>0)for(c.iushrn(E);E-- >0;)(s.isOdd()||d.isOdd())&&(s.iadd(o),d.isub(b)),s.iushrn(1),d.iushrn(1);for(var M=0,J=1;!(u.words[0]&J)&&M<26;++M,J<<=1);if(M>0)for(u.iushrn(M);M-- >0;)(v.isOdd()||g.isOdd())&&(v.iadd(o),g.isub(b)),v.iushrn(1),g.iushrn(1);c.cmp(u)>=0?(c.isub(u),s.isub(v),d.isub(g)):(u.isub(c),v.isub(s),g.isub(d))}return{a:v,b:g,gcd:u.iushln(l)}},i.prototype._invmp=function(a){t(a.negative===0),t(!a.isZero());var c=this,u=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var s=new i(1),d=new i(0),v=u.clone();c.cmpn(1)>0&&u.cmpn(1)>0;){for(var g=0,l=1;!(c.words[0]&l)&&g<26;++g,l<<=1);if(g>0)for(c.iushrn(g);g-- >0;)s.isOdd()&&s.iadd(v),s.iushrn(1);for(var o=0,b=1;!(u.words[0]&b)&&o<26;++o,b<<=1);if(o>0)for(u.iushrn(o);o-- >0;)d.isOdd()&&d.iadd(v),d.iushrn(1);c.cmp(u)>=0?(c.isub(u),s.isub(d)):(u.isub(c),d.isub(s))}var E;return c.cmpn(1)===0?E=s:E=d,E.cmpn(0)<0&&E.iadd(a),E},i.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),u=a.clone();c.negative=0,u.negative=0;for(var s=0;c.isEven()&&u.isEven();s++)c.iushrn(1),u.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;u.isEven();)u.iushrn(1);var d=c.cmp(u);if(d<0){var v=c;c=u,u=v}else if(d===0||u.cmpn(1)===0)break;c.isub(u)}while(!0);return u.iushln(s)},i.prototype.invm=function(a){return this.egcd(a).a.umod(a)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(a){return this.words[0]&a},i.prototype.bincn=function(a){t(typeof a=="number");var c=a%26,u=(a-c)/26,s=1<<c;if(this.length<=u)return this._expand(u+1),this.words[u]|=s,this;for(var d=s,v=u;d!==0&&v<this.length;v++){var g=this.words[v]|0;g+=d,d=g>>>26,g&=67108863,this.words[v]=g}return d!==0&&(this.words[v]=d,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(a){var c=a<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this.strip();var u;if(this.length>1)u=1;else{c&&(a=-a),t(a<=67108863,"Number is too big");var s=this.words[0]|0;u=s===a?0:s<a?-1:1}return this.negative!==0?-u|0:u},i.prototype.cmp=function(a){if(this.negative!==0&&a.negative===0)return-1;if(this.negative===0&&a.negative!==0)return 1;var c=this.ucmp(a);return this.negative!==0?-c|0:c},i.prototype.ucmp=function(a){if(this.length>a.length)return 1;if(this.length<a.length)return-1;for(var c=0,u=this.length-1;u>=0;u--){var s=this.words[u]|0,d=a.words[u]|0;if(s!==d){s<d?c=-1:s>d&&(c=1);break}}return c},i.prototype.gtn=function(a){return this.cmpn(a)===1},i.prototype.gt=function(a){return this.cmp(a)===1},i.prototype.gten=function(a){return this.cmpn(a)>=0},i.prototype.gte=function(a){return this.cmp(a)>=0},i.prototype.ltn=function(a){return this.cmpn(a)===-1},i.prototype.lt=function(a){return this.cmp(a)===-1},i.prototype.lten=function(a){return this.cmpn(a)<=0},i.prototype.lte=function(a){return this.cmp(a)<=0},i.prototype.eqn=function(a){return this.cmpn(a)===0},i.prototype.eq=function(a){return this.cmp(a)===0},i.red=function(a){return new $(a)},i.prototype.toRed=function(a){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},i.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(a){return this.red=a,this},i.prototype.forceRed=function(a){return t(!this.red,"Already a number in reduction context"),this._forceRed(a)},i.prototype.redAdd=function(a){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},i.prototype.redIAdd=function(a){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},i.prototype.redSub=function(a){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},i.prototype.redISub=function(a){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},i.prototype.redShl=function(a){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},i.prototype.redMul=function(a){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},i.prototype.redIMul=function(a){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},i.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(a){return t(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var ie={k256:null,p224:null,p192:null,p25519:null};function Y(m,a){this.name=m,this.p=new i(a,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Y.prototype._tmp=function(){var a=new i(null);return a.words=new Array(Math.ceil(this.n/13)),a},Y.prototype.ireduce=function(a){var c=a,u;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),u=c.bitLength();while(u>this.n);var s=u<this.n?-1:c.ucmp(this.p);return s===0?(c.words[0]=0,c.length=1):s>0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},Y.prototype.split=function(a,c){a.iushrn(this.n,0,c)},Y.prototype.imulK=function(a){return a.imul(this.k)};function de(){Y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(de,Y),de.prototype.split=function(a,c){for(var u=4194303,s=Math.min(a.length,9),d=0;d<s;d++)c.words[d]=a.words[d];if(c.length=s,a.length<=9){a.words[0]=0,a.length=1;return}var v=a.words[9];for(c.words[c.length++]=v&u,d=10;d<a.length;d++){var g=a.words[d]|0;a.words[d-10]=(g&u)<<4|v>>>22,v=g}v>>>=22,a.words[d-10]=v,v===0&&a.length>10?a.length-=10:a.length-=9},de.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,u=0;u<a.length;u++){var s=a.words[u]|0;c+=s*977,a.words[u]=c&67108863,c=s*64+(c/67108864|0)}return a.words[a.length-1]===0&&(a.length--,a.words[a.length-1]===0&&a.length--),a};function ne(){Y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ne,Y);function te(){Y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(te,Y);function ve(){Y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ve,Y),ve.prototype.imulK=function(a){for(var c=0,u=0;u<a.length;u++){var s=(a.words[u]|0)*19+c,d=s&67108863;s>>>=26,a.words[u]=d,c=s}return c!==0&&(a.words[a.length++]=c),a},i._prime=function(a){if(ie[a])return ie[a];var c;if(a==="k256")c=new de;else if(a==="p224")c=new ne;else if(a==="p192")c=new te;else if(a==="p25519")c=new ve;else throw new Error("Unknown prime "+a);return ie[a]=c,c};function $(m){if(typeof m=="string"){var a=i._prime(m);this.m=a.p,this.prime=a}else t(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}$.prototype._verify1=function(a){t(a.negative===0,"red works only with positives"),t(a.red,"red works only with red numbers")},$.prototype._verify2=function(a,c){t((a.negative|c.negative)===0,"red works only with positives"),t(a.red&&a.red===c.red,"red works only with red numbers")},$.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},$.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},$.prototype.add=function(a,c){this._verify2(a,c);var u=a.add(c);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},$.prototype.iadd=function(a,c){this._verify2(a,c);var u=a.iadd(c);return u.cmp(this.m)>=0&&u.isub(this.m),u},$.prototype.sub=function(a,c){this._verify2(a,c);var u=a.sub(c);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},$.prototype.isub=function(a,c){this._verify2(a,c);var u=a.isub(c);return u.cmpn(0)<0&&u.iadd(this.m),u},$.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},$.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},$.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},$.prototype.isqr=function(a){return this.imul(a,a.clone())},$.prototype.sqr=function(a){return this.mul(a,a)},$.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(t(c%2===1),c===3){var u=this.m.add(new i(1)).iushrn(2);return this.pow(a,u)}for(var s=this.m.subn(1),d=0;!s.isZero()&&s.andln(1)===0;)d++,s.iushrn(1);t(!s.isZero());var v=new i(1).toRed(this),g=v.redNeg(),l=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new i(2*o*o).toRed(this);this.pow(o,l).cmp(g)!==0;)o.redIAdd(g);for(var b=this.pow(o,s),E=this.pow(a,s.addn(1).iushrn(1)),w=this.pow(a,s),M=d;w.cmp(v)!==0;){for(var J=w,P=0;J.cmp(v)!==0;P++)J=J.redSqr();t(P<M);var N=this.pow(b,new i(1).iushln(M-P-1));E=E.redMul(N),b=N.redSqr(),w=w.redMul(b),M=P}return E},$.prototype.invm=function(a){var c=a._invmp(this.m);return c.negative!==0?(c.negative=0,this.imod(c).redNeg()):this.imod(c)},$.prototype.pow=function(a,c){if(c.isZero())return new i(1).toRed(this);if(c.cmpn(1)===0)return a.clone();var u=4,s=new Array(1<<u);s[0]=new i(1).toRed(this),s[1]=a;for(var d=2;d<s.length;d++)s[d]=this.mul(s[d-1],a);var v=s[0],g=0,l=0,o=c.bitLength()%26;for(o===0&&(o=26),d=c.length-1;d>=0;d--){for(var b=c.words[d],E=o-1;E>=0;E--){var w=b>>E&1;if(v!==s[0]&&(v=this.sqr(v)),w===0&&g===0){l=0;continue}g<<=1,g|=w,l++,!(l!==u&&(d!==0||E!==0))&&(v=this.mul(v,s[g]),l=0,g=0)}o=26}return v},$.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},$.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},i.mont=function(a){return new W(a)};function W(m){$.call(this,m),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(W,$),W.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},W.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},W.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var u=a.imul(c),s=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=u.isub(s).iushrn(this.shift),v=d;return d.cmp(this.m)>=0?v=d.isub(this.m):d.cmpn(0)<0&&(v=d.iadd(this.m)),v._forceRed(this)},W.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new i(0)._forceRed(this);var u=a.mul(c),s=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=u.isub(s).iushrn(this.shift),v=d;return d.cmp(this.m)>=0?v=d.isub(this.m):d.cmpn(0)<0&&(v=d.iadd(this.m)),v._forceRed(this)},W.prototype.invm=function(a){var c=this.imod(a._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(typeof I2>"u"||I2,Lw)});var sn=z(Rw=>{"use strict";var dY=A(_()),ga=Rw,yN=Ya(),xN=Xn(),a1=Kc();ga.assert=xN;ga.toArray=a1.toArray;ga.zero2=a1.zero2;ga.toHex=a1.toHex;ga.encode=a1.encode;function wN(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1),i;for(i=0;i<n.length;i+=1)n[i]=0;var f=1<<e+1,h=r.clone();for(i=0;i<n.length;i++){var p,y=h.andln(f-1);h.isOdd()?(y>(f>>1)-1?p=(f>>1)-y:p=y,h.isubn(p)):p=0,n[i]=p,h.iushrn(1)}return n}ga.getNAF=wN;function AN(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,i=0,f;r.cmpn(-n)>0||e.cmpn(-i)>0;){var h=r.andln(3)+n&3,p=e.andln(3)+i&3;h===3&&(h=-1),p===3&&(p=-1);var y;h&1?(f=r.andln(7)+n&7,(f===3||f===5)&&p===2?y=-h:y=h):y=0,t[0].push(y);var x;p&1?(f=e.andln(7)+i&7,(f===3||f===5)&&h===2?x=-p:x=p):x=0,t[1].push(x),2*n===y+1&&(n=1-n),2*i===x+1&&(i=1-i),r.iushrn(1),e.iushrn(1)}return t}ga.getJSF=AN;function MN(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}ga.cachedProperty=MN;function SN(r){return typeof r=="string"?ga.toArray(r,"hex"):r}ga.parseBytes=SN;function _N(r){return new yN(r,"hex","le")}ga.intFromLE=_N});var yu=z((lY,Iw)=>{"use strict";var hY=A(_()),ps=Ya(),mu=sn(),o1=mu.getNAF,EN=mu.getJSF,f1=mu.assert;function df(r,e){this.type=r,this.p=new ps(e.p,16),this.red=e.prime?ps.red(e.prime):ps.mont(this.p),this.zero=new ps(0).toRed(this.red),this.one=new ps(1).toRed(this.red),this.two=new ps(2).toRed(this.red),this.n=e.n&&new ps(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Iw.exports=df;df.prototype.point=function(){throw new Error("Not implemented")};df.prototype.validate=function(){throw new Error("Not implemented")};df.prototype._fixedNafMul=function(e,t){f1(e.precomputed);var n=e._getDoubles(),i=o1(t,1,this._bitLength),f=(1<<n.step+1)-(n.step%2===0?2:1);f/=3;var h=[],p,y;for(p=0;p<i.length;p+=n.step){y=0;for(var x=p+n.step-1;x>=p;x--)y=(y<<1)+i[x];h.push(y)}for(var S=this.jpoint(null,null,null),T=this.jpoint(null,null,null),L=f;L>0;L--){for(p=0;p<h.length;p++)y=h[p],y===L?T=T.mixedAdd(n.points[p]):y===-L&&(T=T.mixedAdd(n.points[p].neg()));S=S.add(T)}return S.toP()};df.prototype._wnafMul=function(e,t){var n=4,i=e._getNAFPoints(n);n=i.wnd;for(var f=i.points,h=o1(t,n,this._bitLength),p=this.jpoint(null,null,null),y=h.length-1;y>=0;y--){for(var x=0;y>=0&&h[y]===0;y--)x++;if(y>=0&&x++,p=p.dblp(x),y<0)break;var S=h[y];f1(S!==0),e.type==="affine"?S>0?p=p.mixedAdd(f[S-1>>1]):p=p.mixedAdd(f[-S-1>>1].neg()):S>0?p=p.add(f[S-1>>1]):p=p.add(f[-S-1>>1].neg())}return e.type==="affine"?p.toP():p};df.prototype._wnafMulAdd=function(e,t,n,i,f){var h=this._wnafT1,p=this._wnafT2,y=this._wnafT3,x=0,S,T,L;for(S=0;S<i;S++){L=t[S];var R=L._getNAFPoints(e);h[S]=R.wnd,p[S]=R.points}for(S=i-1;S>=1;S-=2){var B=S-1,D=S;if(h[B]!==1||h[D]!==1){y[B]=o1(n[B],h[B],this._bitLength),y[D]=o1(n[D],h[D],this._bitLength),x=Math.max(y[B].length,x),x=Math.max(y[D].length,x);continue}var j=[t[B],null,null,t[D]];t[B].y.cmp(t[D].y)===0?(j[1]=t[B].add(t[D]),j[2]=t[B].toJ().mixedAdd(t[D].neg())):t[B].y.cmp(t[D].y.redNeg())===0?(j[1]=t[B].toJ().mixedAdd(t[D]),j[2]=t[B].add(t[D].neg())):(j[1]=t[B].toJ().mixedAdd(t[D]),j[2]=t[B].toJ().mixedAdd(t[D].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],ie=EN(n[B],n[D]);for(x=Math.max(ie[0].length,x),y[B]=new Array(x),y[D]=new Array(x),T=0;T<x;T++){var Y=ie[0][T]|0,de=ie[1][T]|0;y[B][T]=q[(Y+1)*3+(de+1)],y[D][T]=0,p[B]=j}}var ne=this.jpoint(null,null,null),te=this._wnafT4;for(S=x;S>=0;S--){for(var ve=0;S>=0;){var $=!0;for(T=0;T<i;T++)te[T]=y[T][S]|0,te[T]!==0&&($=!1);if(!$)break;ve++,S--}if(S>=0&&ve++,ne=ne.dblp(ve),S<0)break;for(T=0;T<i;T++){var W=te[T];W!==0&&(W>0?L=p[T][W-1>>1]:W<0&&(L=p[T][-W-1>>1].neg()),L.type==="affine"?ne=ne.mixedAdd(L):ne=ne.add(L))}}for(S=0;S<i;S++)p[S]=null;return f?ne:ne.toP()};function kn(r,e){this.curve=r,this.type=e,this.precomputed=null}df.BasePoint=kn;kn.prototype.eq=function(){throw new Error("Not implemented")};kn.prototype.validate=function(){return this.curve.validate(this)};df.prototype.decodePoint=function(e,t){e=mu.toArray(e,t);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*n){e[0]===6?f1(e[e.length-1]%2===0):e[0]===7&&f1(e[e.length-1]%2===1);var i=this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));return i}else if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")};kn.prototype.encodeCompressed=function(e){return this.encode(e,!0)};kn.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))};kn.prototype.encode=function(e,t){return mu.encode(this._encode(t),e)};kn.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this};kn.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return t?t.points.length>=Math.ceil((e.bitLength()+1)/t.step):!1};kn.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,f=0;f<t;f+=e){for(var h=0;h<e;h++)i=i.dbl();n.push(i)}return{step:e,points:n}};kn.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,i=n===1?null:this.dbl(),f=1;f<n;f++)t[f]=t[f-1].add(i);return{wnd:e,points:t}};kn.prototype._getBeta=function(){return null};kn.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}});var Dw=z((bY,Fw)=>{"use strict";var pY=A(_()),TN=sn(),yt=Ya(),F2=Wr(),ic=yu(),PN=TN.assert;function Nn(r){ic.call(this,"short",r),this.a=new yt(r.a,16).toRed(this.red),this.b=new yt(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}F2(Nn,ic);Fw.exports=Nn;Nn.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new yt(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);t=i[0].cmp(i[1])<0?i[0]:i[1],t=t.toRed(this.red)}if(e.lambda)n=new yt(e.lambda,16);else{var f=this._getEndoRoots(this.n);this.g.mul(f[0]).x.cmp(this.g.x.redMul(t))===0?n=f[0]:(n=f[1],PN(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var h;return e.basis?h=e.basis.map(function(p){return{a:new yt(p.a,16),b:new yt(p.b,16)}}):h=this._getEndoBasis(n),{beta:t,lambda:n,basis:h}}};Nn.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:yt.mont(e),n=new yt(2).toRed(t).redInvm(),i=n.redNeg(),f=new yt(3).toRed(t).redNeg().redSqrt().redMul(n),h=i.redAdd(f).fromRed(),p=i.redSub(f).fromRed();return[h,p]};Nn.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,i=this.n.clone(),f=new yt(1),h=new yt(0),p=new yt(0),y=new yt(1),x,S,T,L,R,B,D,j=0,q,ie;n.cmpn(0)!==0;){var Y=i.div(n);q=i.sub(Y.mul(n)),ie=p.sub(Y.mul(f));var de=y.sub(Y.mul(h));if(!T&&q.cmp(t)<0)x=D.neg(),S=f,T=q.neg(),L=ie;else if(T&&++j===2)break;D=q,i=n,n=q,p=f,f=ie,y=h,h=de}R=q.neg(),B=ie;var ne=T.sqr().add(L.sqr()),te=R.sqr().add(B.sqr());return te.cmp(ne)>=0&&(R=x,B=S),T.negative&&(T=T.neg(),L=L.neg()),R.negative&&(R=R.neg(),B=B.neg()),[{a:T,b:L},{a:R,b:B}]};Nn.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],i=t[1],f=i.b.mul(e).divRound(this.n),h=n.b.neg().mul(e).divRound(this.n),p=f.mul(n.a),y=h.mul(i.a),x=f.mul(n.b),S=h.mul(i.b),T=e.sub(p).sub(y),L=x.add(S).neg();return{k1:T,k2:L}};Nn.prototype.pointFromX=function(e,t){e=new yt(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var f=i.fromRed().isOdd();return(t&&!f||!t&&f)&&(i=i.redNeg()),this.point(e,i)};Nn.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,i=this.a.redMul(t),f=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(f).cmpn(0)===0};Nn.prototype._endoWnafMulAdd=function(e,t,n){for(var i=this._endoWnafT1,f=this._endoWnafT2,h=0;h<e.length;h++){var p=this._endoSplit(t[h]),y=e[h],x=y._getBeta();p.k1.negative&&(p.k1.ineg(),y=y.neg(!0)),p.k2.negative&&(p.k2.ineg(),x=x.neg(!0)),i[h*2]=y,i[h*2+1]=x,f[h*2]=p.k1,f[h*2+1]=p.k2}for(var S=this._wnafMulAdd(1,i,f,h*2,n),T=0;T<h*2;T++)i[T]=null,f[T]=null;return S};function ri(r,e,t,n){ic.BasePoint.call(this,r,"affine"),e===null&&t===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new yt(e,16),this.y=new yt(t,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}F2(ri,ic.BasePoint);Nn.prototype.point=function(e,t,n){return new ri(this,e,t,n)};Nn.prototype.pointFromJSON=function(e,t){return ri.fromJSON(this,e,t)};ri.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,i=function(f){return n.point(f.x.redMul(n.endo.beta),f.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}};ri.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};ri.fromJSON=function(e,t,n){typeof t=="string"&&(t=JSON.parse(t));var i=e.point(t[0],t[1],n);if(!t[2])return i;function f(p){return e.point(p[0],p[1],n)}var h=t[2];return i.precomputed={beta:null,doubles:h.doubles&&{step:h.doubles.step,points:[i].concat(h.doubles.points.map(f))},naf:h.naf&&{wnd:h.naf.wnd,points:[i].concat(h.naf.points.map(f))}},i};ri.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};ri.prototype.isInfinity=function(){return this.inf};ri.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};ri.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),f=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(i),h=f.redSqr().redISub(this.x.redAdd(this.x)),p=f.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,p)};ri.prototype.getX=function(){return this.x.fromRed()};ri.prototype.getY=function(){return this.y.fromRed()};ri.prototype.mul=function(e){return e=new yt(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};ri.prototype.mulAdd=function(e,t,n){var i=[this,t],f=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,f):this.curve._wnafMulAdd(1,i,f,2)};ri.prototype.jmulAdd=function(e,t,n){var i=[this,t],f=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,f,!0):this.curve._wnafMulAdd(1,i,f,2,!0)};ri.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};ri.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(f){return f.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return t};ri.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function li(r,e,t,n){ic.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new yt(0)):(this.x=new yt(e,16),this.y=new yt(t,16),this.z=new yt(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}F2(li,ic.BasePoint);Nn.prototype.jpoint=function(e,t,n){return new li(this,e,t,n)};li.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(n,i)};li.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};li.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(t),f=e.x.redMul(n),h=this.y.redMul(t.redMul(e.z)),p=e.y.redMul(n.redMul(this.z)),y=i.redSub(f),x=h.redSub(p);if(y.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=y.redSqr(),T=S.redMul(y),L=i.redMul(S),R=x.redSqr().redIAdd(T).redISub(L).redISub(L),B=x.redMul(L.redISub(R)).redISub(h.redMul(T)),D=this.z.redMul(e.z).redMul(y);return this.curve.jpoint(R,B,D)};li.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,i=e.x.redMul(t),f=this.y,h=e.y.redMul(t).redMul(this.z),p=n.redSub(i),y=f.redSub(h);if(p.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=p.redSqr(),S=x.redMul(p),T=n.redMul(x),L=y.redSqr().redIAdd(S).redISub(T).redISub(T),R=y.redMul(T.redISub(L)).redISub(f.redMul(S)),B=this.z.redMul(p);return this.curve.jpoint(L,R,B)};li.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var i=this.curve.a,f=this.curve.tinv,h=this.x,p=this.y,y=this.z,x=y.redSqr().redSqr(),S=p.redAdd(p);for(t=0;t<e;t++){var T=h.redSqr(),L=S.redSqr(),R=L.redSqr(),B=T.redAdd(T).redIAdd(T).redIAdd(i.redMul(x)),D=h.redMul(L),j=B.redSqr().redISub(D.redAdd(D)),q=D.redISub(j),ie=B.redMul(q);ie=ie.redIAdd(ie).redISub(R);var Y=S.redMul(y);t+1<e&&(x=x.redMul(R)),h=j,y=Y,S=ie}return this.curve.jpoint(h,S.redMul(f),y)};li.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};li.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var i=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(i).redISub(h);p=p.redIAdd(p);var y=i.redAdd(i).redIAdd(i),x=y.redSqr().redISub(p).redISub(p),S=h.redIAdd(h);S=S.redIAdd(S),S=S.redIAdd(S),e=x,t=y.redMul(p.redISub(x)).redISub(S),n=this.y.redAdd(this.y)}else{var T=this.x.redSqr(),L=this.y.redSqr(),R=L.redSqr(),B=this.x.redAdd(L).redSqr().redISub(T).redISub(R);B=B.redIAdd(B);var D=T.redAdd(T).redIAdd(T),j=D.redSqr(),q=R.redIAdd(R);q=q.redIAdd(q),q=q.redIAdd(q),e=j.redISub(B).redISub(B),t=D.redMul(B.redISub(e)).redISub(q),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(e,t,n)};li.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var i=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(i).redISub(h);p=p.redIAdd(p);var y=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),x=y.redSqr().redISub(p).redISub(p);e=x;var S=h.redIAdd(h);S=S.redIAdd(S),S=S.redIAdd(S),t=y.redMul(p.redISub(x)).redISub(S),n=this.y.redAdd(this.y)}else{var T=this.z.redSqr(),L=this.y.redSqr(),R=this.x.redMul(L),B=this.x.redSub(T).redMul(this.x.redAdd(T));B=B.redAdd(B).redIAdd(B);var D=R.redIAdd(R);D=D.redIAdd(D);var j=D.redAdd(D);e=B.redSqr().redISub(j),n=this.y.redAdd(this.z).redSqr().redISub(L).redISub(T);var q=L.redSqr();q=q.redIAdd(q),q=q.redIAdd(q),q=q.redIAdd(q),t=B.redMul(D.redISub(e)).redISub(q)}return this.curve.jpoint(e,t,n)};li.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,i=this.z,f=i.redSqr().redSqr(),h=t.redSqr(),p=n.redSqr(),y=h.redAdd(h).redIAdd(h).redIAdd(e.redMul(f)),x=t.redAdd(t);x=x.redIAdd(x);var S=x.redMul(p),T=y.redSqr().redISub(S.redAdd(S)),L=S.redISub(T),R=p.redSqr();R=R.redIAdd(R),R=R.redIAdd(R),R=R.redIAdd(R);var B=y.redMul(L).redISub(R),D=n.redAdd(n).redMul(i);return this.curve.jpoint(T,B,D)};li.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),i=t.redSqr(),f=e.redAdd(e).redIAdd(e),h=f.redSqr(),p=this.x.redAdd(t).redSqr().redISub(e).redISub(i);p=p.redIAdd(p),p=p.redAdd(p).redIAdd(p),p=p.redISub(h);var y=p.redSqr(),x=i.redIAdd(i);x=x.redIAdd(x),x=x.redIAdd(x),x=x.redIAdd(x);var S=f.redIAdd(p).redSqr().redISub(h).redISub(y).redISub(x),T=t.redMul(S);T=T.redIAdd(T),T=T.redIAdd(T);var L=this.x.redMul(y).redISub(T);L=L.redIAdd(L),L=L.redIAdd(L);var R=this.y.redMul(S.redMul(x.redISub(S)).redISub(p.redMul(y)));R=R.redIAdd(R),R=R.redIAdd(R),R=R.redIAdd(R);var B=this.z.redAdd(p).redSqr().redISub(n).redISub(y);return this.curve.jpoint(L,R,B)};li.prototype.mul=function(e,t){return e=new yt(e,t),this.curve._wnafMul(this,e)};li.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var i=t.redMul(this.z),f=n.redMul(e.z);return this.y.redMul(f).redISub(e.y.redMul(i)).cmpn(0)===0};li.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(n)===0)return!0;for(var i=e.clone(),f=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(f),this.x.cmp(n)===0)return!0}};li.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};li.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var Nw=z((vY,kw)=>{"use strict";var gY=A(_()),nc=Ya(),Ow=Wr(),s1=yu(),BN=sn();function ac(r){s1.call(this,"mont",r),this.a=new nc(r.a,16).toRed(this.red),this.b=new nc(r.b,16).toRed(this.red),this.i4=new nc(4).toRed(this.red).redInvm(),this.two=new nc(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Ow(ac,s1);kw.exports=ac;ac.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),i=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),f=i.redSqrt();return f.redSqr().cmp(i)===0};function ti(r,e,t){s1.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new nc(e,16),this.z=new nc(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Ow(ti,s1.BasePoint);ac.prototype.decodePoint=function(e,t){return this.point(BN.toArray(e,t),1)};ac.prototype.point=function(e,t){return new ti(this,e,t)};ac.prototype.pointFromJSON=function(e){return ti.fromJSON(this,e)};ti.prototype.precompute=function(){};ti.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};ti.fromJSON=function(e,t){return new ti(e,t[0],t[1]||e.one)};ti.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};ti.prototype.isInfinity=function(){return this.z.cmpn(0)===0};ti.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),f=t.redSub(i),h=t.redMul(i),p=f.redMul(i.redAdd(this.curve.a24.redMul(f)));return this.curve.point(h,p)};ti.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};ti.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),f=e.x.redAdd(e.z),h=e.x.redSub(e.z),p=h.redMul(n),y=f.redMul(i),x=t.z.redMul(p.redAdd(y).redSqr()),S=t.x.redMul(p.redISub(y).redSqr());return this.curve.point(x,S)};ti.prototype.mul=function(e){for(var t=e.clone(),n=this,i=this.curve.point(null,null),f=this,h=[];t.cmpn(0)!==0;t.iushrn(1))h.push(t.andln(1));for(var p=h.length-1;p>=0;p--)h[p]===0?(n=n.diffAdd(i,f),i=i.dbl()):(i=n.diffAdd(i,f),n=n.dbl());return i};ti.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};ti.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};ti.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};ti.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};ti.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var Uw=z((mY,qw)=>{"use strict";var yY=A(_()),CN=sn(),Eo=Ya(),Jw=Wr(),c1=yu(),LN=CN.assert;function Wa(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,c1.call(this,"edwards",r),this.a=new Eo(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Eo(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Eo(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),LN(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}Jw(Wa,c1);qw.exports=Wa;Wa.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Wa.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Wa.prototype.jpoint=function(e,t,n,i){return this.point(e,t,n,i)};Wa.prototype.pointFromX=function(e,t){e=new Eo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),f=this.one.redSub(this.c2.redMul(this.d).redMul(n)),h=i.redMul(f.redInvm()),p=h.redSqrt();if(p.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var y=p.fromRed().isOdd();return(t&&!y||!t&&y)&&(p=p.redNeg()),this.point(e,p)};Wa.prototype.pointFromY=function(e,t){e=new Eo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.c2),f=n.redMul(this.d).redMul(this.c2).redSub(this.a),h=i.redMul(f.redInvm());if(h.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var p=h.redSqrt();if(p.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");return p.fromRed().isOdd()!==t&&(p=p.redNeg()),this.point(p,e)};Wa.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),i=t.redMul(this.a).redAdd(n),f=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return i.cmp(f)===0};function Rr(r,e,t,n,i){c1.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Eo(e,16),this.y=new Eo(t,16),this.z=n?new Eo(n,16):this.curve.one,this.t=i&&new Eo(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Jw(Rr,c1.BasePoint);Wa.prototype.pointFromJSON=function(e){return Rr.fromJSON(this,e)};Wa.prototype.point=function(e,t,n,i){return new Rr(this,e,t,n,i)};Rr.fromJSON=function(e,t){return new Rr(e,t[0],t[1],t[2])};Rr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Rr.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Rr.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),f=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),h=i.redAdd(t),p=h.redSub(n),y=i.redSub(t),x=f.redMul(p),S=h.redMul(y),T=f.redMul(y),L=p.redMul(h);return this.curve.point(x,S,L,T)};Rr.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),i,f,h,p,y,x;if(this.curve.twisted){p=this.curve._mulA(t);var S=p.redAdd(n);this.zOne?(i=e.redSub(t).redSub(n).redMul(S.redSub(this.curve.two)),f=S.redMul(p.redSub(n)),h=S.redSqr().redSub(S).redSub(S)):(y=this.z.redSqr(),x=S.redSub(y).redISub(y),i=e.redSub(t).redISub(n).redMul(x),f=S.redMul(p.redSub(n)),h=S.redMul(x))}else p=t.redAdd(n),y=this.curve._mulC(this.z).redSqr(),x=p.redSub(y).redSub(y),i=this.curve._mulC(e.redISub(p)).redMul(x),f=this.curve._mulC(p).redMul(t.redISub(n)),h=p.redMul(x);return this.curve.point(i,f,h)};Rr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Rr.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),f=this.z.redMul(e.z.redAdd(e.z)),h=n.redSub(t),p=f.redSub(i),y=f.redAdd(i),x=n.redAdd(t),S=h.redMul(p),T=y.redMul(x),L=h.redMul(x),R=p.redMul(y);return this.curve.point(S,T,R,L)};Rr.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),i=this.x.redMul(e.x),f=this.y.redMul(e.y),h=this.curve.d.redMul(i).redMul(f),p=n.redSub(h),y=n.redAdd(h),x=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(f),S=t.redMul(p).redMul(x),T,L;return this.curve.twisted?(T=t.redMul(y).redMul(f.redSub(this.curve._mulA(i))),L=p.redMul(y)):(T=t.redMul(y).redMul(f.redSub(i)),L=this.curve._mulC(p).redMul(y)),this.curve.point(S,T,L)};Rr.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};Rr.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};Rr.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};Rr.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};Rr.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};Rr.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Rr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Rr.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Rr.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Rr.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),this.x.cmp(t)===0)return!0}};Rr.prototype.toP=Rr.prototype.normalize;Rr.prototype.mixedAdd=Rr.prototype.add});var D2=z(zw=>{"use strict";var wY=A(_()),u1=zw;u1.base=yu();u1.short=Dw();u1.mont=Nw();u1.edwards=Uw()});var Gw=z((AY,Hw)=>{var MY=A(_());Hw.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var d1=z(Kw=>{"use strict";var _Y=A(_()),k2=Kw,lf=Mo(),O2=D2(),RN=sn(),Xw=RN.assert;function Zw(r){r.type==="short"?this.curve=new O2.short(r):r.type==="edwards"?this.curve=new O2.edwards(r):this.curve=new O2.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,Xw(this.g.validate(),"Invalid curve"),Xw(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}k2.PresetCurve=Zw;function hf(r,e){Object.defineProperty(k2,r,{configurable:!0,enumerable:!0,get:function(){var t=new Zw(e);return Object.defineProperty(k2,r,{configurable:!0,enumerable:!0,value:t}),t}})}hf("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:lf.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});hf("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:lf.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});hf("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:lf.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});hf("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:lf.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});hf("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:lf.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});hf("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:lf.sha256,gRed:!1,g:["9"]});hf("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:lf.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var N2;try{N2=Gw()}catch{N2=void 0}hf("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:lf.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",N2]})});var jw=z((EY,Vw)=>{"use strict";var TY=A(_()),IN=Ya(),FN=sn(),J2=FN.assert;function Ji(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}Vw.exports=Ji;Ji.fromPublic=function(e,t,n){return t instanceof Ji?t:new Ji(e,{pub:t,pubEnc:n})};Ji.fromPrivate=function(e,t,n){return t instanceof Ji?t:new Ji(e,{priv:t,privEnc:n})};Ji.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Ji.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Ji.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Ji.prototype._importPrivate=function(e,t){this.priv=new IN(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Ji.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?J2(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&J2(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};Ji.prototype.derive=function(e){return e.validate()||J2(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Ji.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Ji.prototype.verify=function(e,t,n){return this.ec.verify(e,t,this,void 0,n)};Ji.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}});var Ww=z((PY,Yw)=>{"use strict";var BY=A(_()),l1=Ya(),z2=sn(),DN=z2.assert;function h1(r,e){if(r instanceof h1)return r;this._importDER(r,e)||(DN(r.r&&r.s,"Signature without r or s"),this.r=new l1(r.r,16),this.s=new l1(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}Yw.exports=h1;function ON(){this.place=0}function q2(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4||r[e.place]===0)return!1;for(var i=0,f=0,h=e.place;f<n;f++,h++)i<<=8,i|=r[h],i>>>=0;return i<=127?!1:(e.place=h,i)}function Qw(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e<t;)e++;return e===0?r:r.slice(e)}h1.prototype._importDER=function(e,t){e=z2.toArray(e,t);var n=new ON;if(e[n.place++]!==48)return!1;var i=q2(e,n);if(i===!1||i+n.place!==e.length||e[n.place++]!==2)return!1;var f=q2(e,n);if(f===!1||e[n.place]&128)return!1;var h=e.slice(n.place,f+n.place);if(n.place+=f,e[n.place++]!==2)return!1;var p=q2(e,n);if(p===!1||e.length!==p+n.place||e[n.place]&128)return!1;var y=e.slice(n.place,p+n.place);if(h[0]===0)if(h[1]&128)h=h.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new l1(h),this.s=new l1(y),this.recoveryParam=null,!0};function U2(r,e){if(e<128){r.push(e);return}var t=1+(Math.log(e)/Math.LN2>>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}h1.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=Qw(t),n=Qw(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];U2(i,t.length),i=i.concat(t),i.push(2),U2(i,n.length);var f=i.concat(n),h=[48];return U2(h,f.length),h=h.concat(f),z2.encode(h,e)}});var rA=z((CY,eA)=>{"use strict";var LY=A(_()),ma=Ya(),$w=Ll(),kN=sn(),H2=d1(),NN=Hf(),vs=kN.assert,G2=jw(),b1=Ww();function Jn(r){if(!(this instanceof Jn))return new Jn(r);typeof r=="string"&&(vs(Object.prototype.hasOwnProperty.call(H2,r),"Unknown curve "+r),r=H2[r]),r instanceof H2.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}eA.exports=Jn;Jn.prototype.keyPair=function(e){return new G2(this,e)};Jn.prototype.keyFromPrivate=function(e,t){return G2.fromPrivate(this,e,t)};Jn.prototype.keyFromPublic=function(e,t){return G2.fromPublic(this,e,t)};Jn.prototype.genKeyPair=function(e){e||(e={});for(var t=new $w({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||NN(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new ma(2));;){var f=new ma(t.generate(n));if(!(f.cmp(i)>0))return f.iaddn(1),this.keyFromPrivate(f)}};Jn.prototype._truncateToN=function(e,t,n){var i;if(ma.isBN(e)||typeof e=="number")e=new ma(e,16),i=e.byteLength();else if(typeof e=="object")i=e.length,e=new ma(e,16);else{var f=e.toString();i=f.length+1>>>1,e=new ma(f,16)}typeof n!="number"&&(n=i*8);var h=n-this.n.bitLength();return h>0&&(e=e.ushrn(h)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Jn.prototype.sign=function(e,t,n,i){if(typeof n=="object"&&(i=n,n=null),i||(i={}),typeof e!="string"&&typeof e!="number"&&!ma.isBN(e)){vs(typeof e=="object"&&e&&typeof e.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),vs(e.length>>>0===e.length);for(var f=0;f<e.length;f++)vs((e[f]&255)===e[f])}t=this.keyFromPrivate(t,n),e=this._truncateToN(e,!1,i.msgBitLength),vs(!e.isNeg(),"Can not sign a negative message");var h=this.n.byteLength(),p=t.getPrivate().toArray("be",h),y=e.toArray("be",h);vs(new ma(y).eq(e),"Can not sign message");for(var x=new $w({hash:this.hash,entropy:p,nonce:y,pers:i.pers,persEnc:i.persEnc||"utf8"}),S=this.n.sub(new ma(1)),T=0;;T++){var L=i.k?i.k(T):new ma(x.generate(this.n.byteLength()));if(L=this._truncateToN(L,!0),!(L.cmpn(1)<=0||L.cmp(S)>=0)){var R=this.g.mul(L);if(!R.isInfinity()){var B=R.getX(),D=B.umod(this.n);if(D.cmpn(0)!==0){var j=L.invm(this.n).mul(D.mul(t.getPrivate()).iadd(e));if(j=j.umod(this.n),j.cmpn(0)!==0){var q=(R.getY().isOdd()?1:0)|(B.cmp(D)!==0?2:0);return i.canonical&&j.cmp(this.nh)>0&&(j=this.n.sub(j),q^=1),new b1({r:D,s:j,recoveryParam:q})}}}}}};Jn.prototype.verify=function(e,t,n,i,f){f||(f={}),e=this._truncateToN(e,!1,f.msgBitLength),n=this.keyFromPublic(n,i),t=new b1(t,"hex");var h=t.r,p=t.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var y=p.invm(this.n),x=y.mul(e).umod(this.n),S=y.mul(h).umod(this.n),T;return this.curve._maxwellTrick?(T=this.g.jmulAdd(x,n.getPublic(),S),T.isInfinity()?!1:T.eqXToP(h)):(T=this.g.mulAdd(x,n.getPublic(),S),T.isInfinity()?!1:T.getX().umod(this.n).cmp(h)===0)};Jn.prototype.recoverPubKey=function(r,e,t,n){vs((3&t)===t,"The recovery param is more than two bits"),e=new b1(e,n);var i=this.n,f=new ma(r),h=e.r,p=e.s,y=t&1,x=t>>1;if(h.cmp(this.curve.p.umod(this.curve.n))>=0&&x)throw new Error("Unable to find sencond key candinate");x?h=this.curve.pointFromX(h.add(this.curve.n),y):h=this.curve.pointFromX(h,y);var S=e.r.invm(i),T=i.sub(f).mul(S).umod(i),L=p.mul(S).umod(i);return this.g.mulAdd(T,h,L)};Jn.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new b1(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var f;try{f=this.recoverPubKey(r,e,i)}catch{continue}if(f.eq(t))return i}throw new Error("Unable to find valid recovery factor")}});var aA=z((RY,nA)=>{"use strict";var IY=A(_()),xu=sn(),iA=xu.assert,tA=xu.parseBytes,oc=xu.cachedProperty;function ii(r,e){this.eddsa=r,this._secret=tA(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=tA(e.pub)}ii.fromPublic=function(e,t){return t instanceof ii?t:new ii(e,{pub:t})};ii.fromSecret=function(e,t){return t instanceof ii?t:new ii(e,{secret:t})};ii.prototype.secret=function(){return this._secret};oc(ii,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});oc(ii,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});oc(ii,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});oc(ii,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});oc(ii,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});oc(ii,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});ii.prototype.sign=function(e){return iA(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};ii.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};ii.prototype.getSecret=function(e){return iA(this._secret,"KeyPair is public only"),xu.encode(this.secret(),e)};ii.prototype.getPublic=function(e){return xu.encode(this.pubBytes(),e)};nA.exports=ii});var sA=z((FY,fA)=>{"use strict";var DY=A(_()),JN=Ya(),p1=sn(),oA=p1.assert,v1=p1.cachedProperty,qN=p1.parseBytes;function gs(r,e){this.eddsa=r,typeof e!="object"&&(e=qN(e)),Array.isArray(e)&&(oA(e.length===r.encodingLength*2,"Signature has invalid size"),e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),oA(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof JN&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}v1(gs,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});v1(gs,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});v1(gs,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});v1(gs,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});gs.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};gs.prototype.toHex=function(){return p1.encode(this.toBytes(),"hex").toUpperCase()};fA.exports=gs});var hA=z((OY,lA)=>{"use strict";var kY=A(_()),UN=Mo(),zN=d1(),fc=sn(),HN=fc.assert,uA=fc.parseBytes,dA=aA(),cA=sA();function Yi(r){if(HN(r==="ed25519","only tested with ed25519 so far"),!(this instanceof Yi))return new Yi(r);r=zN[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=UN.sha512}lA.exports=Yi;Yi.prototype.sign=function(e,t){e=uA(e);var n=this.keyFromSecret(t),i=this.hashInt(n.messagePrefix(),e),f=this.g.mul(i),h=this.encodePoint(f),p=this.hashInt(h,n.pubBytes(),e).mul(n.priv()),y=i.add(p).umod(this.curve.n);return this.makeSignature({R:f,S:y,Rencoded:h})};Yi.prototype.verify=function(e,t,n){if(e=uA(e),t=this.makeSignature(t),t.S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var i=this.keyFromPublic(n),f=this.hashInt(t.Rencoded(),i.pubBytes(),e),h=this.g.mul(t.S()),p=t.R().add(i.pub().mul(f));return p.eq(h)};Yi.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return fc.intFromLE(e.digest()).umod(this.curve.n)};Yi.prototype.keyFromPublic=function(e){return dA.fromPublic(this,e)};Yi.prototype.keyFromSecret=function(e){return dA.fromSecret(this,e)};Yi.prototype.makeSignature=function(e){return e instanceof cA?e:new cA(this,e)};Yi.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t};Yi.prototype.decodePoint=function(e){e=fc.parseBytes(e);var t=e.length-1,n=e.slice(0,t).concat(e[t]&-129),i=(e[t]&128)!==0,f=fc.intFromLE(n);return this.curve.pointFromY(f,i)};Yi.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)};Yi.prototype.decodeInt=function(e){return fc.intFromLE(e)};Yi.prototype.isPoint=function(e){return e instanceof this.pointClass}});var pA=z(bA=>{"use strict";var JY=A(_()),ms=bA;ms.version=Cw().version;ms.utils=sn();ms.rand=Hf();ms.curve=D2();ms.curves=d1();ms.ec=rA();ms.eddsa=hA()});var vA=z(sc=>{"use strict";var UY=A(_()),GN=sc&&sc.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sc,"__esModule",{value:!0});sc.EC=void 0;var XN=GN(pA()),ZN=XN.default.ec;sc.EC=ZN});var gA=z(g1=>{"use strict";var HY=A(_());Object.defineProperty(g1,"__esModule",{value:!0});g1.version=void 0;g1.version="signing-key/5.8.0"});var xA=z(bf=>{"use strict";var XY=A(_());Object.defineProperty(bf,"__esModule",{value:!0});bf.computePublicKey=bf.recoverPublicKey=bf.SigningKey=void 0;var KN=vA(),It=tc(),wu=oi(),VN=qe(),jN=gA(),Z2=new VN.Logger(jN.version),X2=null;function $a(){return X2||(X2=new KN.EC("secp256k1")),X2}var mA=function(){function r(e){(0,wu.defineReadOnly)(this,"curve","secp256k1"),(0,wu.defineReadOnly)(this,"privateKey",(0,It.hexlify)(e)),(0,It.hexDataLength)(this.privateKey)!==32&&Z2.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=$a().keyFromPrivate((0,It.arrayify)(this.privateKey));(0,wu.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,wu.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,wu.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=$a().keyFromPublic((0,It.arrayify)(this.publicKey)),n=$a().keyFromPublic((0,It.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=$a().keyFromPrivate((0,It.arrayify)(this.privateKey)),n=(0,It.arrayify)(e);n.length!==32&&Z2.throwArgumentError("bad digest length","digest",e);var i=t.sign(n,{canonical:!0});return(0,It.splitSignature)({recoveryParam:i.recoveryParam,r:(0,It.hexZeroPad)("0x"+i.r.toString(16),32),s:(0,It.hexZeroPad)("0x"+i.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=$a().keyFromPrivate((0,It.arrayify)(this.privateKey)),n=$a().keyFromPublic((0,It.arrayify)(yA(e)));return(0,It.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();bf.SigningKey=mA;function QN(r,e){var t=(0,It.splitSignature)(e),n={r:(0,It.arrayify)(t.r),s:(0,It.arrayify)(t.s)};return"0x"+$a().recoverPubKey((0,It.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}bf.recoverPublicKey=QN;function yA(r,e){var t=(0,It.arrayify)(r);if(t.length===32){var n=new mA(t);return e?"0x"+$a().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,It.hexlify)(t):"0x"+$a().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+$a().keyFromPublic(t).getPublic(!0,"hex"):(0,It.hexlify)(t)}return Z2.throwArgumentError("invalid public or private key","key","[REDACTED]")}bf.computePublicKey=yA});var wA=z(m1=>{"use strict";var KY=A(_());Object.defineProperty(m1,"__esModule",{value:!0});m1.version=void 0;m1.version="transactions/5.8.0"});var PA=z(Tt=>{"use strict";var jY=A(_()),YN=Tt&&Tt.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),WN=Tt&&Tt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),$N=Tt&&Tt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&YN(e,r,t);return WN(e,r),e};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.parse=Tt.serialize=Tt.accessListify=Tt.recoverAddress=Tt.computeAddress=Tt.TransactionTypes=void 0;var Au=Fa(),ys=Ca(),Ke=tc(),eJ=Gc(),cc=pi(),rJ=oi(),pf=$N(Zc()),AA=xA(),V2=qe(),tJ=wA(),Ui=new V2.Logger(tJ.version),iJ;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(iJ=Tt.TransactionTypes||(Tt.TransactionTypes={}));function j2(r){return r==="0x"?null:(0,Au.getAddress)(r)}function qi(r){return r==="0x"?eJ.Zero:ys.BigNumber.from(r)}var nJ=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],aJ={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function MA(r){var e=(0,AA.computePublicKey)(r);return(0,Au.getAddress)((0,Ke.hexDataSlice)((0,cc.keccak256)((0,Ke.hexDataSlice)(e,1)),12))}Tt.computeAddress=MA;function Q2(r,e){return MA((0,AA.recoverPublicKey)((0,Ke.arrayify)(r),e))}Tt.recoverAddress=Q2;function cn(r,e){var t=(0,Ke.stripZeros)(ys.BigNumber.from(r).toHexString());return t.length>32&&Ui.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function K2(r,e){return{address:(0,Au.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Ke.hexDataLength)(t)!==32&&Ui.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function y1(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&Ui.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),K2(t[0],t[1])):K2(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(i,f){return i[f]=!0,i},{});return K2(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}Tt.accessListify=y1;function SA(r){return y1(r).map(function(e){return[e.address,e.storageKeys]})}function _A(r,e){if(r.gasPrice!=null){var t=ys.BigNumber.from(r.gasPrice),n=ys.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||Ui.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var i=[cn(r.chainId||0,"chainId"),cn(r.nonce||0,"nonce"),cn(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),cn(r.maxFeePerGas||0,"maxFeePerGas"),cn(r.gasLimit||0,"gasLimit"),r.to!=null?(0,Au.getAddress)(r.to):"0x",cn(r.value||0,"value"),r.data||"0x",SA(r.accessList||[])];if(e){var f=(0,Ke.splitSignature)(e);i.push(cn(f.recoveryParam,"recoveryParam")),i.push((0,Ke.stripZeros)(f.r)),i.push((0,Ke.stripZeros)(f.s))}return(0,Ke.hexConcat)(["0x02",pf.encode(i)])}function EA(r,e){var t=[cn(r.chainId||0,"chainId"),cn(r.nonce||0,"nonce"),cn(r.gasPrice||0,"gasPrice"),cn(r.gasLimit||0,"gasLimit"),r.to!=null?(0,Au.getAddress)(r.to):"0x",cn(r.value||0,"value"),r.data||"0x",SA(r.accessList||[])];if(e){var n=(0,Ke.splitSignature)(e);t.push(cn(n.recoveryParam,"recoveryParam")),t.push((0,Ke.stripZeros)(n.r)),t.push((0,Ke.stripZeros)(n.s))}return(0,Ke.hexConcat)(["0x01",pf.encode(t)])}function oJ(r,e){(0,rJ.checkProperties)(r,aJ);var t=[];nJ.forEach(function(h){var p=r[h.name]||[],y={};h.numeric&&(y.hexPad="left"),p=(0,Ke.arrayify)((0,Ke.hexlify)(p,y)),h.length&&p.length!==h.length&&p.length>0&&Ui.throwArgumentError("invalid length for "+h.name,"transaction:"+h.name,p),h.maxLength&&(p=(0,Ke.stripZeros)(p),p.length>h.maxLength&&Ui.throwArgumentError("invalid length for "+h.name,"transaction:"+h.name,p)),t.push((0,Ke.hexlify)(p))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&Ui.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Ke.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Ke.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return pf.encode(t);var i=(0,Ke.splitSignature)(e),f=27+i.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),f+=n*2+8,i.v>28&&i.v!==f&&Ui.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==f&&Ui.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Ke.hexlify)(f)),t.push((0,Ke.stripZeros)((0,Ke.arrayify)(i.r))),t.push((0,Ke.stripZeros)((0,Ke.arrayify)(i.s))),pf.encode(t)}function fJ(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&Ui.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),oJ(r,e);switch(r.type){case 1:return EA(r,e);case 2:return _A(r,e);default:break}return Ui.throwError("unsupported transaction type: "+r.type,V2.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}Tt.serialize=fJ;function TA(r,e,t){try{var n=qi(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{Ui.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Ke.hexZeroPad)(e[1],32),r.s=(0,Ke.hexZeroPad)(e[2],32);try{var i=(0,cc.keccak256)(t(r));r.from=Q2(i,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function sJ(r){var e=pf.decode(r.slice(1));e.length!==9&&e.length!==12&&Ui.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Ke.hexlify)(r));var t=qi(e[2]),n=qi(e[3]),i={type:2,chainId:qi(e[0]).toNumber(),nonce:qi(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:qi(e[4]),to:j2(e[5]),value:qi(e[6]),data:e[7],accessList:y1(e[8])};return e.length===9||(i.hash=(0,cc.keccak256)(r),TA(i,e.slice(9),_A)),i}function cJ(r){var e=pf.decode(r.slice(1));e.length!==8&&e.length!==11&&Ui.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Ke.hexlify)(r));var t={type:1,chainId:qi(e[0]).toNumber(),nonce:qi(e[1]).toNumber(),gasPrice:qi(e[2]),gasLimit:qi(e[3]),to:j2(e[4]),value:qi(e[5]),data:e[6],accessList:y1(e[7])};return e.length===8||(t.hash=(0,cc.keccak256)(r),TA(t,e.slice(8),EA)),t}function uJ(r){var e=pf.decode(r);e.length!==9&&e.length!==6&&Ui.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:qi(e[0]).toNumber(),gasPrice:qi(e[1]),gasLimit:qi(e[2]),to:j2(e[3]),value:qi(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=ys.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Ke.hexZeroPad)(e[7],32),t.s=(0,Ke.hexZeroPad)(e[8],32),ys.BigNumber.from(t.r).isZero()&&ys.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,i=e.slice(0,6);t.chainId!==0&&(i.push((0,Ke.hexlify)(t.chainId)),i.push("0x"),i.push("0x"),n-=t.chainId*2+8);var f=(0,cc.keccak256)(pf.encode(i));try{t.from=Q2(f,{r:(0,Ke.hexlify)(t.r),s:(0,Ke.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,cc.keccak256)(r)}return t.type=null,t}function dJ(r){var e=(0,Ke.arrayify)(r);if(e[0]>127)return uJ(e);switch(e[0]){case 1:return cJ(e);case 2:return sJ(e);default:break}return Ui.throwError("unsupported transaction type: "+e[0],V2.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}Tt.parse=dJ});var NA=z(ni=>{"use strict";var YY=A(_()),lJ=ni&&ni.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hJ=ni&&ni.__awaiter||function(r,e,t,n){function i(f){return f instanceof t?f:new t(function(h){h(f)})}return new(t||(t=Promise))(function(f,h){function p(S){try{x(n.next(S))}catch(T){h(T)}}function y(S){try{x(n.throw(S))}catch(T){h(T)}}function x(S){S.done?f(S.value):i(S.value).then(p,y)}x((n=n.apply(r,e||[])).next())})},bJ=ni&&ni.__generator||function(r,e){var t={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},n,i,f,h;return h={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function p(x){return function(S){return y([x,S])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(f=x[0]&2?i.return:x[0]?i.throw||((f=i.return)&&f.call(i),0):i.next)&&!(f=f.call(i,x[1])).done)return f;switch(i=0,f&&(x=[x[0]&2,f.value]),x[0]){case 0:case 1:f=x;break;case 4:return t.label++,{value:x[1],done:!1};case 5:t.label++,i=x[1],x=[0];continue;case 7:x=t.ops.pop(),t.trys.pop();continue;default:if(f=t.trys,!(f=f.length>0&&f[f.length-1])&&(x[0]===6||x[0]===2)){t=0;continue}if(x[0]===3&&(!f||x[1]>f[0]&&x[1]<f[3])){t.label=x[1];break}if(x[0]===6&&t.label<f[1]){t.label=f[1],f=x;break}if(f&&t.label<f[2]){t.label=f[2],t.ops.push(x);break}f[2]&&t.ops.pop(),t.trys.pop();continue}x=e.call(r,t)}catch(S){x=[6,S],i=0}finally{n=f=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},CA=ni&&ni.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ni,"__esModule",{value:!0});ni.encrypt=ni.decrypt=ni.decryptSync=ni.KeystoreAccount=void 0;var vf=CA(P2()),$2=CA(Bw()),LA=Fa(),Ft=tc(),xs=S2(),RA=pi(),pJ=sh(),x1=E2(),vJ=oi(),IA=PA(),lr=L2(),Y2=qe(),gJ=C2(),W2=new Y2.Logger(gJ.version);function BA(r){return r!=null&&r.mnemonic&&r.mnemonic.phrase}var FA=function(r){lJ(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isKeystoreAccount=function(t){return!!(t&&t._isKeystoreAccount)},e}(vJ.Description);ni.KeystoreAccount=FA;function mJ(r,e,t){var n=(0,lr.searchPath)(r,"crypto/cipher");if(n==="aes-128-ctr"){var i=(0,lr.looseArrayify)((0,lr.searchPath)(r,"crypto/cipherparams/iv")),f=new vf.default.Counter(i),h=new vf.default.ModeOfOperation.ctr(e,f);return(0,Ft.arrayify)(h.decrypt(t))}return null}function DA(r,e){var t=(0,lr.looseArrayify)((0,lr.searchPath)(r,"crypto/ciphertext")),n=(0,Ft.hexlify)((0,RA.keccak256)((0,Ft.concat)([e.slice(16,32),t]))).substring(2);if(n!==(0,lr.searchPath)(r,"crypto/mac").toLowerCase())throw new Error("invalid password");var i=mJ(r,e.slice(0,16),t);i||W2.throwError("unsupported cipher",Y2.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var f=e.slice(32,64),h=(0,IA.computeAddress)(i);if(r.address){var p=r.address.toLowerCase();if(p.substring(0,2)!=="0x"&&(p="0x"+p),(0,LA.getAddress)(p)!==h)throw new Error("address mismatch")}var y={_isKeystoreAccount:!0,address:h,privateKey:(0,Ft.hexlify)(i)};if((0,lr.searchPath)(r,"x-ethers/version")==="0.1"){var x=(0,lr.looseArrayify)((0,lr.searchPath)(r,"x-ethers/mnemonicCiphertext")),S=(0,lr.looseArrayify)((0,lr.searchPath)(r,"x-ethers/mnemonicCounter")),T=new vf.default.Counter(S),L=new vf.default.ModeOfOperation.ctr(f,T),R=(0,lr.searchPath)(r,"x-ethers/path")||xs.defaultPath,B=(0,lr.searchPath)(r,"x-ethers/locale")||"en",D=(0,Ft.arrayify)(L.decrypt(x));try{var j=(0,xs.entropyToMnemonic)(D,B),q=xs.HDNode.fromMnemonic(j,null,B).derivePath(R);if(q.privateKey!=y.privateKey)throw new Error("mnemonic mismatch");y.mnemonic=q.mnemonic}catch(ie){if(ie.code!==Y2.Logger.errors.INVALID_ARGUMENT||ie.argument!=="wordlist")throw ie}}return new FA(y)}function OA(r,e,t,n,i){return(0,Ft.arrayify)((0,pJ.pbkdf2)(r,e,t,n,i))}function yJ(r,e,t,n,i){return Promise.resolve(OA(r,e,t,n,i))}function kA(r,e,t,n,i){var f=(0,lr.getPassword)(e),h=(0,lr.searchPath)(r,"crypto/kdf");if(h&&typeof h=="string"){var p=function(j,q){return W2.throwArgumentError("invalid key-derivation function parameters",j,q)};if(h.toLowerCase()==="scrypt"){var y=(0,lr.looseArrayify)((0,lr.searchPath)(r,"crypto/kdfparams/salt")),x=parseInt((0,lr.searchPath)(r,"crypto/kdfparams/n")),S=parseInt((0,lr.searchPath)(r,"crypto/kdfparams/r")),T=parseInt((0,lr.searchPath)(r,"crypto/kdfparams/p"));(!x||!S||!T)&&p("kdf",h),x&x-1&&p("N",x);var L=parseInt((0,lr.searchPath)(r,"crypto/kdfparams/dklen"));return L!==32&&p("dklen",L),n(f,y,x,S,T,64,i)}else if(h.toLowerCase()==="pbkdf2"){var y=(0,lr.looseArrayify)((0,lr.searchPath)(r,"crypto/kdfparams/salt")),R=null,B=(0,lr.searchPath)(r,"crypto/kdfparams/prf");B==="hmac-sha256"?R="sha256":B==="hmac-sha512"?R="sha512":p("prf",B);var D=parseInt((0,lr.searchPath)(r,"crypto/kdfparams/c")),L=parseInt((0,lr.searchPath)(r,"crypto/kdfparams/dklen"));return L!==32&&p("dklen",L),t(f,y,D,L,R)}}return W2.throwArgumentError("unsupported key-derivation function","kdf",h)}function xJ(r,e){var t=JSON.parse(r),n=kA(t,e,OA,$2.default.syncScrypt);return DA(t,n)}ni.decryptSync=xJ;function wJ(r,e,t){return hJ(this,void 0,void 0,function(){var n,i;return bJ(this,function(f){switch(f.label){case 0:return n=JSON.parse(r),[4,kA(n,e,yJ,$2.default.scrypt,t)];case 1:return i=f.sent(),[2,DA(n,i)]}})})}ni.decrypt=wJ;function AJ(r,e,t,n){try{if((0,LA.getAddress)(r.address)!==(0,IA.computeAddress)(r.privateKey))throw new Error("address/privateKey mismatch");if(BA(r)){var i=r.mnemonic,f=xs.HDNode.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||xs.defaultPath);if(f.privateKey!=r.privateKey)throw new Error("mnemonic mismatch")}}catch(Y){return Promise.reject(Y)}typeof t=="function"&&!n&&(n=t,t={}),t||(t={});var h=(0,Ft.arrayify)(r.privateKey),p=(0,lr.getPassword)(e),y=null,x=null,S=null;if(BA(r)){var T=r.mnemonic;y=(0,Ft.arrayify)((0,xs.mnemonicToEntropy)(T.phrase,T.locale||"en")),x=T.path||xs.defaultPath,S=T.locale||"en"}var L=t.client;L||(L="ethers.js");var R=null;t.salt?R=(0,Ft.arrayify)(t.salt):R=(0,x1.randomBytes)(32);var B=null;if(t.iv){if(B=(0,Ft.arrayify)(t.iv),B.length!==16)throw new Error("invalid iv")}else B=(0,x1.randomBytes)(16);var D=null;if(t.uuid){if(D=(0,Ft.arrayify)(t.uuid),D.length!==16)throw new Error("invalid uuid")}else D=(0,x1.randomBytes)(16);var j=1<<17,q=8,ie=1;return t.scrypt&&(t.scrypt.N&&(j=t.scrypt.N),t.scrypt.r&&(q=t.scrypt.r),t.scrypt.p&&(ie=t.scrypt.p)),$2.default.scrypt(p,R,j,q,ie,64,n).then(function(Y){Y=(0,Ft.arrayify)(Y);var de=Y.slice(0,16),ne=Y.slice(16,32),te=Y.slice(32,64),ve=new vf.default.Counter(B),$=new vf.default.ModeOfOperation.ctr(de,ve),W=(0,Ft.arrayify)($.encrypt(h)),m=(0,RA.keccak256)((0,Ft.concat)([ne,W])),a={address:r.address.substring(2).toLowerCase(),id:(0,lr.uuidV4)(D),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,Ft.hexlify)(B).substring(2)},ciphertext:(0,Ft.hexlify)(W).substring(2),kdf:"scrypt",kdfparams:{salt:(0,Ft.hexlify)(R).substring(2),n:j,dklen:32,p:ie,r:q},mac:m.substring(2)}};if(y){var c=(0,x1.randomBytes)(16),u=new vf.default.Counter(c),s=new vf.default.ModeOfOperation.ctr(te,u),d=(0,Ft.arrayify)(s.encrypt(y)),v=new Date,g=v.getUTCFullYear()+"-"+(0,lr.zpad)(v.getUTCMonth()+1,2)+"-"+(0,lr.zpad)(v.getUTCDate(),2)+"T"+(0,lr.zpad)(v.getUTCHours(),2)+"-"+(0,lr.zpad)(v.getUTCMinutes(),2)+"-"+(0,lr.zpad)(v.getUTCSeconds(),2)+".0Z";a["x-ethers"]={client:L,gethFilename:"UTC--"+g+"--"+a.address,mnemonicCounter:(0,Ft.hexlify)(c).substring(2),mnemonicCiphertext:(0,Ft.hexlify)(d).substring(2),path:x,locale:S,version:"0.1"}}return JSON.stringify(a)})}ni.encrypt=AJ});var JA=z(Dt=>{"use strict";var $Y=A(_());Object.defineProperty(Dt,"__esModule",{value:!0});Dt.decryptJsonWalletSync=Dt.decryptJsonWallet=Dt.getJsonWalletAddress=Dt.isKeystoreWallet=Dt.isCrowdsaleWallet=Dt.encryptKeystore=Dt.decryptKeystoreSync=Dt.decryptKeystore=Dt.decryptCrowdsale=void 0;var eg=Mw();Object.defineProperty(Dt,"decryptCrowdsale",{enumerable:!0,get:function(){return eg.decrypt}});var ws=Tw();Object.defineProperty(Dt,"getJsonWalletAddress",{enumerable:!0,get:function(){return ws.getJsonWalletAddress}});Object.defineProperty(Dt,"isCrowdsaleWallet",{enumerable:!0,get:function(){return ws.isCrowdsaleWallet}});Object.defineProperty(Dt,"isKeystoreWallet",{enumerable:!0,get:function(){return ws.isKeystoreWallet}});var Mu=NA();Object.defineProperty(Dt,"decryptKeystore",{enumerable:!0,get:function(){return Mu.decrypt}});Object.defineProperty(Dt,"decryptKeystoreSync",{enumerable:!0,get:function(){return Mu.decryptSync}});Object.defineProperty(Dt,"encryptKeystore",{enumerable:!0,get:function(){return Mu.encrypt}});function MJ(r,e,t){if((0,ws.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,eg.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,ws.isKeystoreWallet)(r)?(0,Mu.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}Dt.decryptJsonWallet=MJ;function SJ(r,e){if((0,ws.isCrowdsaleWallet)(r))return(0,eg.decrypt)(r,e);if((0,ws.isKeystoreWallet)(r))return(0,Mu.decryptSync)(r,e);throw new Error("invalid JSON wallet")}Dt.decryptJsonWalletSync=SJ});var qA=z(w1=>{"use strict";var rW=A(_());Object.defineProperty(w1,"__esModule",{value:!0});w1.version=void 0;w1.version="wallet/5.7.0"});var Eu=z(Wi=>{"use strict";var iW=A(_()),_J=Wi&&Wi.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(n[f]=i[f])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UA=Wi&&Wi.__awaiter||function(r,e,t,n){function i(f){return f instanceof t?f:new t(function(h){h(f)})}return new(t||(t=Promise))(function(f,h){function p(S){try{x(n.next(S))}catch(T){h(T)}}function y(S){try{x(n.throw(S))}catch(T){h(T)}}function x(S){S.done?f(S.value):i(S.value).then(p,y)}x((n=n.apply(r,e||[])).next())})},zA=Wi&&Wi.__generator||function(r,e){var t={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},n,i,f,h;return h={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function p(x){return function(S){return y([x,S])}}function y(x){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(f=x[0]&2?i.return:x[0]?i.throw||((f=i.return)&&f.call(i),0):i.next)&&!(f=f.call(i,x[1])).done)return f;switch(i=0,f&&(x=[x[0]&2,f.value]),x[0]){case 0:case 1:f=x;break;case 4:return t.label++,{value:x[1],done:!1};case 5:t.label++,i=x[1],x=[0];continue;case 7:x=t.ops.pop(),t.trys.pop();continue;default:if(f=t.trys,!(f=f.length>0&&f[f.length-1])&&(x[0]===6||x[0]===2)){t=0;continue}if(x[0]===3&&(!f||x[1]>f[0]&&x[1]<f[3])){t.label=x[1];break}if(x[0]===6&&t.label<f[1]){t.label=f[1],f=x;break}if(f&&t.label<f[2]){t.label=f[2],t.ops.push(x);break}f[2]&&t.ops.pop(),t.trys.pop();continue}x=e.call(r,t)}catch(S){x=[6,S],i=0}finally{n=f=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.verifyTypedData=Wi.verifyMessage=Wi.Wallet=void 0;var HA=Fa(),EJ=Dx(),TJ=Nx(),dc=vo(),_u=xl(),Su=S2(),GA=pi(),eo=oi(),PJ=E2(),rg=Nl(),tg=JA(),As=Pv(),XA=qe(),BJ=qA(),uc=new XA.Logger(BJ.version);function CJ(r){return r!=null&&(0,dc.isHexString)(r.privateKey,32)&&r.address!=null}function LJ(r){var e=r.mnemonic;return e&&e.phrase}var RJ=function(r){_J(e,r);function e(t,n){var i=r.call(this)||this;if(CJ(t)){var f=new rg.SigningKey(t.privateKey);if((0,eo.defineReadOnly)(i,"_signingKey",function(){return f}),(0,eo.defineReadOnly)(i,"address",(0,As.computeAddress)(i.publicKey)),i.address!==(0,HA.getAddress)(t.address)&&uc.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),LJ(t)){var h=t.mnemonic;(0,eo.defineReadOnly)(i,"_mnemonic",function(){return{phrase:h.phrase,path:h.path||Su.defaultPath,locale:h.locale||"en"}});var p=i.mnemonic,y=Su.HDNode.fromMnemonic(p.phrase,null,p.locale).derivePath(p.path);(0,As.computeAddress)(y.privateKey)!==i.address&&uc.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,eo.defineReadOnly)(i,"_mnemonic",function(){return null})}else{if(rg.SigningKey.isSigningKey(t))t.curve!=="secp256k1"&&uc.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,eo.defineReadOnly)(i,"_signingKey",function(){return t});else{typeof t=="string"&&t.match(/^[0-9a-f]*$/i)&&t.length===64&&(t="0x"+t);var x=new rg.SigningKey(t);(0,eo.defineReadOnly)(i,"_signingKey",function(){return x})}(0,eo.defineReadOnly)(i,"_mnemonic",function(){return null}),(0,eo.defineReadOnly)(i,"address",(0,As.computeAddress)(i.publicKey))}return n&&!EJ.Provider.isProvider(n)&&uc.throwArgumentError("invalid provider","provider",n),(0,eo.defineReadOnly)(i,"provider",n||null),i}return Object.defineProperty(e.prototype,"mnemonic",{get:function(){return this._mnemonic()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"privateKey",{get:function(){return this._signingKey().privateKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"publicKey",{get:function(){return this._signingKey().publicKey},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype.connect=function(t){return new e(this,t)},e.prototype.signTransaction=function(t){var n=this;return(0,eo.resolveProperties)(t).then(function(i){i.from!=null&&((0,HA.getAddress)(i.from)!==n.address&&uc.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete i.from);var f=n._signingKey().signDigest((0,GA.keccak256)((0,As.serialize)(i)));return(0,As.serialize)(i,f)})},e.prototype.signMessage=function(t){return UA(this,void 0,void 0,function(){return zA(this,function(n){return[2,(0,dc.joinSignature)(this._signingKey().signDigest((0,_u.hashMessage)(t)))]})})},e.prototype._signTypedData=function(t,n,i){return UA(this,void 0,void 0,function(){var f,h=this;return zA(this,function(p){switch(p.label){case 0:return[4,_u._TypedDataEncoder.resolveNames(t,n,i,function(y){return h.provider==null&&uc.throwError("cannot resolve ENS names without a provider",XA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:y}),h.provider.resolveName(y)})];case 1:return f=p.sent(),[2,(0,dc.joinSignature)(this._signingKey().signDigest(_u._TypedDataEncoder.hash(f.domain,n,f.value)))]}})})},e.prototype.encrypt=function(t,n,i){if(typeof n=="function"&&!i&&(i=n,n={}),i&&typeof i!="function")throw new Error("invalid callback");return n||(n={}),(0,tg.encryptKeystore)(this,t,n,i)},e.createRandom=function(t){var n=(0,PJ.randomBytes)(16);t||(t={}),t.extraEntropy&&(n=(0,dc.arrayify)((0,dc.hexDataSlice)((0,GA.keccak256)((0,dc.concat)([n,t.extraEntropy])),0,16)));var i=(0,Su.entropyToMnemonic)(n,t.locale);return e.fromMnemonic(i,t.path,t.locale)},e.fromEncryptedJson=function(t,n,i){return(0,tg.decryptJsonWallet)(t,n,i).then(function(f){return new e(f)})},e.fromEncryptedJsonSync=function(t,n){return new e((0,tg.decryptJsonWalletSync)(t,n))},e.fromMnemonic=function(t,n,i){return n||(n=Su.defaultPath),new e(Su.HDNode.fromMnemonic(t,null,i).derivePath(n))},e}(TJ.Signer);Wi.Wallet=RJ;function IJ(r,e){return(0,As.recoverAddress)((0,_u.hashMessage)(r),e)}Wi.verifyMessage=IJ;function FJ(r,e,t,n){return(0,As.recoverAddress)(_u._TypedDataEncoder.hash(r,e,t),n)}Wi.verifyTypedData=FJ});var WA=z((ag,YA)=>{var fW=A(_());var A1=vr("buffer"),ro=A1.Buffer;function QA(r,e){for(var t in r)e[t]=r[t]}ro.from&&ro.alloc&&ro.allocUnsafe&&ro.allocUnsafeSlow?YA.exports=A1:(QA(A1,ag),ag.Buffer=Ms);function Ms(r,e,t){return ro(r,e,t)}Ms.prototype=Object.create(ro.prototype);QA(ro,Ms);Ms.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return ro(r,e,t)};Ms.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=ro(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};Ms.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return ro(r)};Ms.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return A1.SlowBuffer(r)}});var eM=z((sW,$A)=>{"use strict";var cW=A(_()),M1=WA().Buffer;function DJ(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t<e.length;t++)e[t]=255;for(var n=0;n<r.length;n++){var i=r.charAt(n),f=i.charCodeAt(0);if(e[f]!==255)throw new TypeError(i+" is ambiguous");e[f]=n}var h=r.length,p=r.charAt(0),y=Math.log(h)/Math.log(256),x=Math.log(256)/Math.log(h);function S(R){if((Array.isArray(R)||R instanceof Uint8Array)&&(R=M1.from(R)),!M1.isBuffer(R))throw new TypeError("Expected Buffer");if(R.length===0)return"";for(var B=0,D=0,j=0,q=R.length;j!==q&&R[j]===0;)j++,B++;for(var ie=(q-j)*x+1>>>0,Y=new Uint8Array(ie);j!==q;){for(var de=R[j],ne=0,te=ie-1;(de!==0||ne<D)&&te!==-1;te--,ne++)de+=256*Y[te]>>>0,Y[te]=de%h>>>0,de=de/h>>>0;if(de!==0)throw new Error("Non-zero carry");D=ne,j++}for(var ve=ie-D;ve!==ie&&Y[ve]===0;)ve++;for(var $=p.repeat(B);ve<ie;++ve)$+=r.charAt(Y[ve]);return $}function T(R){if(typeof R!="string")throw new TypeError("Expected String");if(R.length===0)return M1.alloc(0);for(var B=0,D=0,j=0;R[B]===p;)D++,B++;for(var q=(R.length-B)*y+1>>>0,ie=new Uint8Array(q);B<R.length;){var Y=R.charCodeAt(B);if(Y>255)return;var de=e[Y];if(de===255)return;for(var ne=0,te=q-1;(de!==0||ne<j)&&te!==-1;te--,ne++)de+=h*ie[te]>>>0,ie[te]=de%256>>>0,de=de/256>>>0;if(de!==0)throw new Error("Non-zero carry");j=ne,B++}for(var ve=q-j;ve!==q&&ie[ve]===0;)ve++;var $=M1.allocUnsafe(D+(q-ve));$.fill(0,0,D);for(var W=D;ve!==q;)$[W++]=ie[ve++];return $}function L(R){var B=T(R);if(B)return B;throw new Error("Non-base"+h+" character")}return{encode:S,decodeUnsafe:T,decode:L}}$A.exports=DJ});var tM=z((uW,rM)=>{var dW=A(_()),OJ=eM(),kJ="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";rM.exports=OJ(kJ)});var mM=z((pW,gM)=>{var vW=A(_()),oM=vr("fs"),Po=vr("path"),fM=vr("os"),sM=typeof __webpack_require__=="function"?__non_webpack_require__:vr,NJ=process.config&&process.config.variables||{},JJ=!!process.env.PREBUILDS_ONLY,iM=process.versions.modules,og=zJ()?"electron":UJ()?"node-webkit":"node",fg=process.env.npm_config_arch||fM.arch(),sg=process.env.npm_config_platform||fM.platform(),cM=process.env.LIBC||(HJ(sg)?"musl":"glibc"),cg=process.env.ARM_VERSION||(fg==="arm64"?"8":NJ.arm_version)||"",uM=(process.versions.uv||"").split(".")[0];gM.exports=to;function to(r){return sM(to.resolve(r))}to.resolve=to.path=function(r){r=Po.resolve(r||".");try{var e=sM(Po.join(r,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(r=process.env[e+"_PREBUILD"])}catch{}if(!JJ){var t=nM(Po.join(r,"build/Release"),aM);if(t)return t;var n=nM(Po.join(r,"build/Debug"),aM);if(n)return n}var i=p(r);if(i)return i;var f=p(Po.dirname(process.execPath));if(f)return f;var h=["platform="+sg,"arch="+fg,"runtime="+og,"abi="+iM,"uv="+uM,cg?"armv="+cg:"","libc="+cM,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+h+`
14
14
  loaded from: `+r+`
15
- `);function p(y){var x=ug(Po.join(y,"prebuilds")).map(dM),S=x.filter(lM(sg,fg)).sort(hM)[0];if(S){var T=Po.join(y,"prebuilds",S.name),L=ug(T).map(bM),R=L.filter(pM(og,iM)),B=R.sort(vM(og))[0];if(B)return Po.join(T,B.file)}}};function ug(r){try{return oM.readdirSync(r)}catch{return[]}}function nM(r,e){var t=ug(r).filter(e);return t[0]&&Po.join(r,t[0])}function aM(r){return/\.node$/.test(r)}function dM(r){var e=r.split("-");if(e.length===2){var t=e[0],n=e[1].split("+");if(t&&n.length&&n.every(Boolean))return{name:r,platform:t,architectures:n}}}function lM(r,e){return function(t){return t==null||t.platform!==r?!1:t.architectures.includes(e)}}function hM(r,e){return r.architectures.length-e.architectures.length}function bM(r){var e=r.split("."),t=e.pop(),n={file:r,specificity:0};if(t==="node"){for(var i=0;i<e.length;i++){var f=e[i];if(f==="node"||f==="electron"||f==="node-webkit")n.runtime=f;else if(f==="napi")n.napi=!0;else if(f.slice(0,3)==="abi")n.abi=f.slice(3);else if(f.slice(0,2)==="uv")n.uv=f.slice(2);else if(f.slice(0,4)==="armv")n.armv=f.slice(4);else if(f==="glibc"||f==="musl")n.libc=f;else continue;n.specificity++}return n}}function pM(r,e){return function(t){return!(t==null||t.runtime&&t.runtime!==r&&!qJ(t)||t.abi&&t.abi!==e&&!t.napi||t.uv&&t.uv!==uM||t.armv&&t.armv!==cg||t.libc&&t.libc!==cM)}}function qJ(r){return r.runtime==="node"&&r.napi}function vM(r){return function(e,t){return e.runtime!==t.runtime?e.runtime===r?-1:1:e.abi!==t.abi?e.abi?-1:1:e.specificity!==t.specificity?e.specificity>t.specificity?-1:1:0}}function UJ(){return!!(process.versions&&process.versions.nw)}function zJ(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function HJ(r){return r==="linux"&&oM.existsSync("/etc/alpine-release")}to.parseTags=bM;to.matchTags=pM;to.compareTags=vM;to.parseTuple=dM;to.matchTuple=lM;to.compareTuples=hM});var hg=z((mW,lg)=>{var yW=A(_()),dg=typeof __webpack_require__=="function"?__non_webpack_require__:vr;typeof dg.addon=="function"?lg.exports=dg.addon.bind(dg):lg.exports=mM()});var bg=z((wW,yM)=>{var AW=A(_()),br={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function qn(r,e){if(!r)throw new Error(e)}function dr(r,e,t){if(qn(e instanceof Uint8Array,`Expected ${r} to be an Uint8Array`),t!==void 0)if(Array.isArray(t)){let n=t.join(", "),i=`Expected ${r} to be an Uint8Array with length [${n}]`;qn(t.includes(e.length),i)}else{let n=`Expected ${r} to be an Uint8Array with length ${t}`;qn(e.length===t,n)}}function Ss(r){qn(hc(r)==="Boolean","Expected compressed to be a Boolean")}function ya(r=t=>new Uint8Array(t),e){return typeof r=="function"&&(r=r(e)),dr("output",r,e),r}function hc(r){return Object.prototype.toString.call(r).slice(8,-1)}yM.exports=r=>({contextRandomize(e){switch(qn(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&dr("seed",e,32),r.contextRandomize(e)){case 1:throw new Error(br.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return dr("private key",e,32),r.privateKeyVerify(e)===0},privateKeyNegate(e){switch(dr("private key",e,32),r.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(br.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,t){switch(dr("private key",e,32),dr("tweak",t,32),r.privateKeyTweakAdd(e,t)){case 0:return e;case 1:throw new Error(br.TWEAK_ADD)}},privateKeyTweakMul(e,t){switch(dr("private key",e,32),dr("tweak",t,32),r.privateKeyTweakMul(e,t)){case 0:return e;case 1:throw new Error(br.TWEAK_MUL)}},publicKeyVerify(e){return dr("public key",e,[33,65]),r.publicKeyVerify(e)===0},publicKeyCreate(e,t=!0,n){switch(dr("private key",e,32),Ss(t),n=ya(n,t?33:65),r.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(br.SECKEY_INVALID);case 2:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyConvert(e,t=!0,n){switch(dr("public key",e,[33,65]),Ss(t),n=ya(n,t?33:65),r.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyNegate(e,t=!0,n){switch(dr("public key",e,[33,65]),Ss(t),n=ya(n,t?33:65),r.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.IMPOSSIBLE_CASE);case 3:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyCombine(e,t=!0,n){qn(Array.isArray(e),"Expected public keys to be an Array"),qn(e.length>0,"Expected public keys array will have more than zero items");for(let i of e)dr("public key",i,[33,65]);switch(Ss(t),n=ya(n,t?33:65),r.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.PUBKEY_COMBINE);case 3:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,t,n=!0,i){switch(dr("public key",e,[33,65]),dr("tweak",t,32),Ss(n),i=ya(i,n?33:65),r.publicKeyTweakAdd(i,e,t)){case 0:return i;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.TWEAK_ADD)}},publicKeyTweakMul(e,t,n=!0,i){switch(dr("public key",e,[33,65]),dr("tweak",t,32),Ss(n),i=ya(i,n?33:65),r.publicKeyTweakMul(i,e,t)){case 0:return i;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.TWEAK_MUL)}},signatureNormalize(e){switch(dr("signature",e,64),r.signatureNormalize(e)){case 0:return e;case 1:throw new Error(br.SIG_PARSE)}},signatureExport(e,t){dr("signature",e,64),t=ya(t,72);let n={output:t,outputlen:72};switch(r.signatureExport(n,e)){case 0:return t.slice(0,n.outputlen);case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.IMPOSSIBLE_CASE)}},signatureImport(e,t){switch(dr("signature",e),t=ya(t,64),r.signatureImport(t,e)){case 0:return t;case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.IMPOSSIBLE_CASE)}},ecdsaSign(e,t,n={},i){dr("message",e,32),dr("private key",t,32),qn(hc(n)==="Object","Expected options to be an Object"),n.data!==void 0&&dr("options.data",n.data),n.noncefn!==void 0&&qn(hc(n.noncefn)==="Function","Expected options.noncefn to be a Function"),i=ya(i,64);let f={signature:i,recid:null};switch(r.ecdsaSign(f,e,t,n.data,n.noncefn)){case 0:return f;case 1:throw new Error(br.SIGN);case 2:throw new Error(br.IMPOSSIBLE_CASE)}},ecdsaVerify(e,t,n){switch(dr("signature",e,64),dr("message",t,32),dr("public key",n,[33,65]),r.ecdsaVerify(e,t,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.PUBKEY_PARSE)}},ecdsaRecover(e,t,n,i=!0,f){switch(dr("signature",e,64),qn(hc(t)==="Number"&&t>=0&&t<=3,"Expected recovery id to be a Number within interval [0, 3]"),dr("message",n,32),Ss(i),f=ya(f,i?33:65),r.ecdsaRecover(f,e,t,n)){case 0:return f;case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.RECOVER);case 3:throw new Error(br.IMPOSSIBLE_CASE)}},ecdh(e,t,n={},i){switch(dr("public key",e,[33,65]),dr("private key",t,32),qn(hc(n)==="Object","Expected options to be an Object"),n.data!==void 0&&dr("options.data",n.data),n.hashfn!==void 0?(qn(hc(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&dr("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&dr("options.ybuf",n.ybuf,32),dr("output",i)):i=ya(i,32),r.ecdh(i,e,t,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.ECDH)}}})});var wM=z((MW,xM)=>{var SW=A(_()),GJ=hg()(__dirname);xM.exports=bg()(new GJ.Secp256k1)});var MM=z((_W,AM)=>{var EW=A(_()),XJ=wv().ec,io=new XJ("secp256k1"),Ve=io.curve,Pr=Ve.n.constructor;function ZJ(r,e){let t=new Pr(e);if(t.cmp(Ve.p)>=0)return null;t=t.toRed(Ve.red);let n=t.redSqr().redIMul(t).redIAdd(Ve.b).redSqrt();return r===3!==n.isOdd()&&(n=n.redNeg()),io.keyPair({pub:{x:t,y:n}})}function KJ(r,e,t){let n=new Pr(e),i=new Pr(t);if(n.cmp(Ve.p)>=0||i.cmp(Ve.p)>=0||(n=n.toRed(Ve.red),i=i.toRed(Ve.red),(r===6||r===7)&&i.isOdd()!==(r===7)))return null;let f=n.redSqr().redIMul(n);return i.redSqr().redISub(f.redIAdd(Ve.b)).isZero()?io.keyPair({pub:{x:n,y:i}}):null}function gf(r){let e=r[0];switch(e){case 2:case 3:return r.length!==33?null:ZJ(e,r.subarray(1,33));case 4:case 6:case 7:return r.length!==65?null:KJ(e,r.subarray(1,33),r.subarray(33,65));default:return null}}function _s(r,e){let t=e.encode(null,r.length===33);for(let n=0;n<r.length;++n)r[n]=t[n]}AM.exports={contextRandomize(){return 0},privateKeyVerify(r){let e=new Pr(r);return e.cmp(Ve.n)<0&&!e.isZero()?0:1},privateKeyNegate(r){let e=new Pr(r),t=Ve.n.sub(e).umod(Ve.n).toArrayLike(Uint8Array,"be",32);return r.set(t),0},privateKeyTweakAdd(r,e){let t=new Pr(e);if(t.cmp(Ve.n)>=0||(t.iadd(new Pr(r)),t.cmp(Ve.n)>=0&&t.isub(Ve.n),t.isZero()))return 1;let n=t.toArrayLike(Uint8Array,"be",32);return r.set(n),0},privateKeyTweakMul(r,e){let t=new Pr(e);if(t.cmp(Ve.n)>=0||t.isZero())return 1;t.imul(new Pr(r)),t.cmp(Ve.n)>=0&&(t=t.umod(Ve.n));let n=t.toArrayLike(Uint8Array,"be",32);return r.set(n),0},publicKeyVerify(r){return gf(r)===null?1:0},publicKeyCreate(r,e){let t=new Pr(e);if(t.cmp(Ve.n)>=0||t.isZero())return 1;let n=io.keyFromPrivate(e).getPublic();return _s(r,n),0},publicKeyConvert(r,e){let t=gf(e);if(t===null)return 1;let n=t.getPublic();return _s(r,n),0},publicKeyNegate(r,e){let t=gf(e);if(t===null)return 1;let n=t.getPublic();return n.y=n.y.redNeg(),_s(r,n),0},publicKeyCombine(r,e){let t=new Array(e.length);for(let i=0;i<e.length;++i)if(t[i]=gf(e[i]),t[i]===null)return 1;let n=t[0].getPublic();for(let i=1;i<t.length;++i)n=n.add(t[i].pub);return n.isInfinity()?2:(_s(r,n),0)},publicKeyTweakAdd(r,e,t){let n=gf(e);if(n===null)return 1;if(t=new Pr(t),t.cmp(Ve.n)>=0)return 2;let i=n.getPublic().add(Ve.g.mul(t));return i.isInfinity()?2:(_s(r,i),0)},publicKeyTweakMul(r,e,t){let n=gf(e);if(n===null)return 1;if(t=new Pr(t),t.cmp(Ve.n)>=0||t.isZero())return 2;let i=n.getPublic().mul(t);return _s(r,i),0},signatureNormalize(r){let e=new Pr(r.subarray(0,32)),t=new Pr(r.subarray(32,64));return e.cmp(Ve.n)>=0||t.cmp(Ve.n)>=0?1:(t.cmp(io.nh)===1&&r.set(Ve.n.sub(t).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(r,e){let t=e.subarray(0,32),n=e.subarray(32,64);if(new Pr(t).cmp(Ve.n)>=0||new Pr(n).cmp(Ve.n)>=0)return 1;let{output:i}=r,f=i.subarray(4,37);f[0]=0,f.set(t,1);let h=33,p=0;for(;h>1&&f[p]===0&&!(f[p+1]&128);--h,++p);if(f=f.subarray(p),f[0]&128||h>1&&f[0]===0&&!(f[1]&128))return 1;let y=i.subarray(39,72);y[0]=0,y.set(n,1);let x=33,S=0;for(;x>1&&y[S]===0&&!(y[S+1]&128);--x,++S);return y=y.subarray(S),y[0]&128||x>1&&y[0]===0&&!(y[1]&128)?1:(r.outputlen=6+h+x,i[0]=48,i[1]=r.outputlen-2,i[2]=2,i[3]=f.length,i.set(f,4),i[4+h]=2,i[5+h]=y.length,i.set(y,6+h),0)},signatureImport(r,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;let t=e[3];if(t===0||5+t>=e.length||e[4+t]!==2)return 1;let n=e[5+t];if(n===0||6+t+n!==e.length||e[4]&128||t>1&&e[4]===0&&!(e[5]&128)||e[t+6]&128||n>1&&e[t+6]===0&&!(e[t+7]&128))return 1;let i=e.subarray(4,4+t);if(i.length===33&&i[0]===0&&(i=i.subarray(1)),i.length>32)return 1;let f=e.subarray(6+t);if(f.length===33&&f[0]===0&&(f=f.slice(1)),f.length>32)throw new Error("S length is too long");let h=new Pr(i);h.cmp(Ve.n)>=0&&(h=new Pr(0));let p=new Pr(e.subarray(6+t));return p.cmp(Ve.n)>=0&&(p=new Pr(0)),r.set(h.toArrayLike(Uint8Array,"be",32),0),r.set(p.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(r,e,t,n,i){if(i){let p=i;i=y=>{let x=p(e,t,null,n,y);if(!(x instanceof Uint8Array&&x.length===32))throw new Error("This is the way");return new Pr(x)}}let f=new Pr(t);if(f.cmp(Ve.n)>=0||f.isZero())return 1;let h;try{h=io.sign(e,t,{canonical:!0,k:i,pers:n})}catch{return 1}return r.signature.set(h.r.toArrayLike(Uint8Array,"be",32),0),r.signature.set(h.s.toArrayLike(Uint8Array,"be",32),32),r.recid=h.recoveryParam,0},ecdsaVerify(r,e,t){let n={r:r.subarray(0,32),s:r.subarray(32,64)},i=new Pr(n.r),f=new Pr(n.s);if(i.cmp(Ve.n)>=0||f.cmp(Ve.n)>=0)return 1;if(f.cmp(io.nh)===1||i.isZero()||f.isZero())return 3;let h=gf(t);if(h===null)return 2;let p=h.getPublic();return io.verify(e,n,p)?0:3},ecdsaRecover(r,e,t,n){let i={r:e.slice(0,32),s:e.slice(32,64)},f=new Pr(i.r),h=new Pr(i.s);if(f.cmp(Ve.n)>=0||h.cmp(Ve.n)>=0)return 1;if(f.isZero()||h.isZero())return 2;let p;try{p=io.recoverPubKey(n,i,t)}catch{return 2}return _s(r,p),0},ecdh(r,e,t,n,i,f,h){let p=gf(e);if(p===null)return 1;let y=new Pr(t);if(y.cmp(Ve.n)>=0||y.isZero())return 2;let x=p.getPublic().mul(y);if(i===void 0){let S=x.encode(null,!0),T=io.hash().update(S).digest();for(let L=0;L<32;++L)r[L]=T[L]}else{f||(f=new Uint8Array(32));let S=x.getX().toArray("be",32);for(let B=0;B<32;++B)f[B]=S[B];h||(h=new Uint8Array(32));let T=x.getY().toArray("be",32);for(let B=0;B<32;++B)h[B]=T[B];let L=i(f,h,n);if(!(L instanceof Uint8Array&&L.length===r.length))return 2;r.set(L)}return 0}}});var _M=z((TW,SM)=>{var PW=A(_());SM.exports=bg()(MM())});var vg=z((BW,pg)=>{var CW=A(_());try{pg.exports=wM()}catch{pg.exports=_M()}});var gg=z((LW,EM)=>{var RW=A(_());EM.exports=vr("stream")});var RM=z((IW,LM)=>{"use strict";var FW=A(_());function TM(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function PM(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?TM(Object(t),!0).forEach(function(n){VJ(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):TM(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function VJ(r,e,t){return e=CM(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function jJ(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function BM(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,CM(n.key),n)}}function QJ(r,e,t){return e&&BM(r.prototype,e),t&&BM(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function CM(r){var e=YJ(r,"string");return typeof e=="symbol"?e:String(e)}function YJ(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var WJ=vr("buffer"),S1=WJ.Buffer,$J=vr("util"),mg=$J.inspect,eq=mg&&mg.custom||"inspect";function rq(r,e,t){S1.prototype.copy.call(r,e,t)}LM.exports=function(){function r(){jJ(this,r),this.head=null,this.tail=null,this.length=0}return QJ(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return S1.alloc(0);for(var n=S1.allocUnsafe(t>>>0),i=this.head,f=0;i;)rq(i.data,n,f),f+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,f=n.data;for(t-=f.length;n=n.next;){var h=n.data,p=t>h.length?h.length:t;if(p===h.length?f+=h:f+=h.slice(0,t),t-=p,t===0){p===h.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=h.slice(p));break}++i}return this.length-=i,f}},{key:"_getBuffer",value:function(t){var n=S1.allocUnsafe(t),i=this.head,f=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var h=i.data,p=t>h.length?h.length:t;if(h.copy(n,n.length-t,0,p),t-=p,t===0){p===h.length?(++f,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=h.slice(p));break}++f}return this.length-=f,n}},{key:eq,value:function(t,n){return mg(this,PM(PM({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var xg=z((DW,FM)=>{"use strict";var OW=A(_());function tq(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(yg,this,r)):process.nextTick(yg,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(f){!e&&f?t._writableState?t._writableState.errorEmitted?process.nextTick(_1,t):(t._writableState.errorEmitted=!0,process.nextTick(IM,t,f)):process.nextTick(IM,t,f):e?(process.nextTick(_1,t),e(f)):process.nextTick(_1,t)}),this)}function IM(r,e){yg(r,e),_1(r)}function _1(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function iq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function yg(r,e){r.emit("error",e)}function nq(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}FM.exports={destroy:tq,undestroy:iq,errorOrDestroy:nq}});var mf=z((kW,kM)=>{"use strict";var NW=A(_()),OM={};function Un(r,e,t){t||(t=Error);function n(f,h,p){return typeof e=="string"?e:e(f,h,p)}class i extends t{constructor(h,p,y){super(n(h,p,y))}}i.prototype.name=t.name,i.prototype.code=r,OM[r]=i}function DM(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(n=>String(n)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function aq(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function oq(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function fq(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Un("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Un("ERR_INVALID_ARG_TYPE",function(r,e,t){let n;typeof e=="string"&&aq(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(oq(r," argument"))i=`The ${r} ${n} ${DM(e,"type")}`;else{let f=fq(r,".")?"property":"argument";i=`The "${r}" ${f} ${n} ${DM(e,"type")}`}return i+=`. Received type ${typeof t}`,i},TypeError);Un("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Un("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Un("ERR_STREAM_PREMATURE_CLOSE","Premature close");Un("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Un("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Un("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Un("ERR_STREAM_WRITE_AFTER_END","write after end");Un("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Un("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Un("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");kM.exports.codes=OM});var wg=z((JW,NM)=>{"use strict";var qW=A(_()),sq=mf().codes.ERR_INVALID_OPT_VALUE;function cq(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function uq(r,e,t,n){var i=cq(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var f=n?t:"highWaterMark";throw new sq(f,i)}return Math.floor(i)}return r.objectMode?16:16*1024}NM.exports={getHighWaterMark:uq}});var qM=z((UW,JM)=>{var zW=A(_());JM.exports=vr("util").deprecate});var Sg=z((HW,ZM)=>{"use strict";var GW=A(_());ZM.exports=xt;function zM(r){var e=this;this.next=null,this.entry=null,this.finish=function(){kq(e,r)}}var bc;xt.WritableState=Pu;var dq={deprecate:qM()},HM=gg(),T1=vr("buffer").Buffer,lq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hq(r){return T1.from(r)}function bq(r){return T1.isBuffer(r)||r instanceof lq}var Mg=xg(),pq=wg(),vq=pq.getHighWaterMark,yf=mf().codes,gq=yf.ERR_INVALID_ARG_TYPE,mq=yf.ERR_METHOD_NOT_IMPLEMENTED,yq=yf.ERR_MULTIPLE_CALLBACK,xq=yf.ERR_STREAM_CANNOT_PIPE,wq=yf.ERR_STREAM_DESTROYED,Aq=yf.ERR_STREAM_NULL_VALUES,Mq=yf.ERR_STREAM_WRITE_AFTER_END,Sq=yf.ERR_UNKNOWN_ENCODING,pc=Mg.errorOrDestroy;Wr()(xt,HM);function _q(){}function Pu(r,e,t){bc=bc||Es(),r=r||{},typeof t!="boolean"&&(t=e instanceof bc),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=vq(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Rq(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zM(this)}Pu.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(Pu.prototype,"buffer",{get:dq.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var E1;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E1=Function.prototype[Symbol.hasInstance],Object.defineProperty(xt,Symbol.hasInstance,{value:function(e){return E1.call(this,e)?!0:this!==xt?!1:e&&e._writableState instanceof Pu}})):E1=function(e){return e instanceof this};function xt(r){bc=bc||Es();var e=this instanceof bc;if(!e&&!E1.call(xt,this))return new xt(r);this._writableState=new Pu(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),HM.call(this)}xt.prototype.pipe=function(){pc(this,new xq)};function Eq(r,e){var t=new Mq;pc(r,t),process.nextTick(e,t)}function Tq(r,e,t,n){var i;return t===null?i=new Aq:typeof t!="string"&&!e.objectMode&&(i=new gq("chunk",["string","Buffer"],t)),i?(pc(r,i),process.nextTick(n,i),!1):!0}xt.prototype.write=function(r,e,t){var n=this._writableState,i=!1,f=!n.objectMode&&bq(r);return f&&!T1.isBuffer(r)&&(r=hq(r)),typeof e=="function"&&(t=e,e=null),f?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=_q),n.ending?Eq(this,t):(f||Tq(this,n,r,t))&&(n.pendingcb++,i=Bq(this,n,f,r,e,t)),i};xt.prototype.cork=function(){this._writableState.corked++};xt.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&GM(this,r))};xt.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Sq(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(xt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Pq(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=T1.from(e,t)),e}Object.defineProperty(xt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Bq(r,e,t,n,i,f){if(!t){var h=Pq(e,n,i);n!==h&&(t=!0,i="buffer",n=h)}var p=e.objectMode?1:n.length;e.length+=p;var y=e.length<e.highWaterMark;if(y||(e.needDrain=!0),e.writing||e.corked){var x=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:f,next:null},x?x.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ag(r,e,!1,p,n,i,f);return y}function Ag(r,e,t,n,i,f,h){e.writelen=n,e.writecb=h,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new wq("write")):t?r._writev(i,e.onwrite):r._write(i,f,e.onwrite),e.sync=!1}function Cq(r,e,t,n,i){--e.pendingcb,t?(process.nextTick(i,n),process.nextTick(Tu,r,e),r._writableState.errorEmitted=!0,pc(r,n)):(i(n),r._writableState.errorEmitted=!0,pc(r,n),Tu(r,e))}function Lq(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Rq(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new yq;if(Lq(t),e)Cq(r,t,n,e,i);else{var f=XM(t)||r.destroyed;!f&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&GM(r,t),n?process.nextTick(UM,r,t,f,i):UM(r,t,f,i)}}function UM(r,e,t,n){t||Iq(r,e),e.pendingcb--,n(),Tu(r,e)}function Iq(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function GM(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),f=e.corkedRequestsFree;f.entry=t;for(var h=0,p=!0;t;)i[h]=t,t.isBuf||(p=!1),t=t.next,h+=1;i.allBuffers=p,Ag(r,e,!0,e.length,i,"",f.finish),e.pendingcb++,e.lastBufferedRequest=null,f.next?(e.corkedRequestsFree=f.next,f.next=null):e.corkedRequestsFree=new zM(e),e.bufferedRequestCount=0}else{for(;t;){var y=t.chunk,x=t.encoding,S=t.callback,T=e.objectMode?1:y.length;if(Ag(r,e,!1,T,y,x,S),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}xt.prototype._write=function(r,e,t){t(new mq("_write()"))};xt.prototype._writev=null;xt.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Oq(this,n,t),this};Object.defineProperty(xt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function XM(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function Fq(r,e){r._final(function(t){e.pendingcb--,t&&pc(r,t),e.prefinished=!0,r.emit("prefinish"),Tu(r,e)})}function Dq(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Fq,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function Tu(r,e){var t=XM(e);if(t&&(Dq(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function Oq(r,e,t){e.ending=!0,Tu(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function kq(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(xt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});xt.prototype.destroy=Mg.destroy;xt.prototype._undestroy=Mg.undestroy;xt.prototype._destroy=function(r,e){e(r)}});var Es=z((XW,VM)=>{"use strict";var ZW=A(_()),Nq=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};VM.exports=no;var KM=Tg(),Eg=Sg();Wr()(no,KM);for(_g=Nq(Eg.prototype),P1=0;P1<_g.length;P1++)B1=_g[P1],no.prototype[B1]||(no.prototype[B1]=Eg.prototype[B1]);var _g,B1,P1;function no(r){if(!(this instanceof no))return new no(r);KM.call(this,r),Eg.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Jq)))}Object.defineProperty(no.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(no.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(no.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jq(){this._writableState.ended||process.nextTick(qq,this)}function qq(r){r.end()}Object.defineProperty(no.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var YM=z((Pg,QM)=>{var KW=A(_()),C1=vr("buffer"),Bo=C1.Buffer;function jM(r,e){for(var t in r)e[t]=r[t]}Bo.from&&Bo.alloc&&Bo.allocUnsafe&&Bo.allocUnsafeSlow?QM.exports=C1:(jM(C1,Pg),Pg.Buffer=vc);function vc(r,e,t){return Bo(r,e,t)}jM(Bo,vc);vc.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Bo(r,e,t)};vc.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=Bo(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};vc.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Bo(r)};vc.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return C1.SlowBuffer(r)}});var Lg=z($M=>{"use strict";var jW=A(_()),Cg=YM().Buffer,WM=Cg.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Uq(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function zq(r){var e=Uq(r);if(typeof e!="string"&&(Cg.isEncoding===WM||!WM(r)))throw new Error("Unknown encoding: "+r);return e||r}$M.StringDecoder=Bu;function Bu(r){this.encoding=zq(r);var e;switch(this.encoding){case"utf16le":this.text=Vq,this.end=jq,e=4;break;case"utf8":this.fillLast=Xq,e=4;break;case"base64":this.text=Qq,this.end=Yq,e=3;break;default:this.write=Wq,this.end=$q;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Cg.allocUnsafe(e)}Bu.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};Bu.prototype.end=Kq;Bu.prototype.text=Zq;Bu.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function Bg(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Hq(r,e,t){var n=e.length-1;if(n<t)return 0;var i=Bg(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=Bg(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=Bg(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Gq(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function Xq(r){var e=this.lastTotal-this.lastNeed,t=Gq(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function Zq(r,e){var t=Hq(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function Kq(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function Vq(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function jq(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Qq(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Yq(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wq(r){return r.toString(this.encoding)}function $q(r){return r&&r.length?this.write(r):""}});var L1=z((QW,tS)=>{"use strict";var YW=A(_()),eS=mf().codes.ERR_STREAM_PREMATURE_CLOSE;function eU(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function rU(){}function tU(r){return r.setHeader&&typeof r.abort=="function"}function rS(r,e,t){if(typeof e=="function")return rS(r,null,e);e||(e={}),t=eU(t||rU);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,f=function(){r.writable||p()},h=r._writableState&&r._writableState.finished,p=function(){i=!1,h=!0,n||t.call(r)},y=r._readableState&&r._readableState.endEmitted,x=function(){n=!1,y=!0,i||t.call(r)},S=function(B){t.call(r,B)},T=function(){var B;if(n&&!y)return(!r._readableState||!r._readableState.ended)&&(B=new eS),t.call(r,B);if(i&&!h)return(!r._writableState||!r._writableState.ended)&&(B=new eS),t.call(r,B)},L=function(){r.req.on("finish",p)};return tU(r)?(r.on("complete",p),r.on("abort",T),r.req?L():r.on("request",L)):i&&!r._writableState&&(r.on("end",f),r.on("close",f)),r.on("end",x),r.on("finish",p),e.error!==!1&&r.on("error",S),r.on("close",T),function(){r.removeListener("complete",p),r.removeListener("abort",T),r.removeListener("request",L),r.req&&r.req.removeListener("finish",p),r.removeListener("end",f),r.removeListener("close",f),r.removeListener("finish",p),r.removeListener("end",x),r.removeListener("error",S),r.removeListener("close",T)}}tS.exports=rS});var nS=z((WW,iS)=>{"use strict";var $W=A(_()),R1;function xf(r,e,t){return e=iU(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function iU(r){var e=nU(r,"string");return typeof e=="symbol"?e:String(e)}function nU(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var aU=L1(),wf=Symbol("lastResolve"),Ts=Symbol("lastReject"),Cu=Symbol("error"),I1=Symbol("ended"),Ps=Symbol("lastPromise"),Rg=Symbol("handlePromise"),Bs=Symbol("stream");function Af(r,e){return{value:r,done:e}}function oU(r){var e=r[wf];if(e!==null){var t=r[Bs].read();t!==null&&(r[Ps]=null,r[wf]=null,r[Ts]=null,e(Af(t,!1)))}}function fU(r){process.nextTick(oU,r)}function sU(r,e){return function(t,n){r.then(function(){if(e[I1]){t(Af(void 0,!0));return}e[Rg](t,n)},n)}}var cU=Object.getPrototypeOf(function(){}),uU=Object.setPrototypeOf((R1={get stream(){return this[Bs]},next:function(){var e=this,t=this[Cu];if(t!==null)return Promise.reject(t);if(this[I1])return Promise.resolve(Af(void 0,!0));if(this[Bs].destroyed)return new Promise(function(h,p){process.nextTick(function(){e[Cu]?p(e[Cu]):h(Af(void 0,!0))})});var n=this[Ps],i;if(n)i=new Promise(sU(n,this));else{var f=this[Bs].read();if(f!==null)return Promise.resolve(Af(f,!1));i=new Promise(this[Rg])}return this[Ps]=i,i}},xf(R1,Symbol.asyncIterator,function(){return this}),xf(R1,"return",function(){var e=this;return new Promise(function(t,n){e[Bs].destroy(null,function(i){if(i){n(i);return}t(Af(void 0,!0))})})}),R1),cU),dU=function(e){var t,n=Object.create(uU,(t={},xf(t,Bs,{value:e,writable:!0}),xf(t,wf,{value:null,writable:!0}),xf(t,Ts,{value:null,writable:!0}),xf(t,Cu,{value:null,writable:!0}),xf(t,I1,{value:e._readableState.endEmitted,writable:!0}),xf(t,Rg,{value:function(f,h){var p=n[Bs].read();p?(n[Ps]=null,n[wf]=null,n[Ts]=null,f(Af(p,!1))):(n[wf]=f,n[Ts]=h)},writable:!0}),t));return n[Ps]=null,aU(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var f=n[Ts];f!==null&&(n[Ps]=null,n[wf]=null,n[Ts]=null,f(i)),n[Cu]=i;return}var h=n[wf];h!==null&&(n[Ps]=null,n[wf]=null,n[Ts]=null,h(Af(void 0,!0))),n[I1]=!0}),e.on("readable",fU.bind(null,n)),n};iS.exports=dU});var sS=z((e$,fS)=>{"use strict";var r$=A(_());function aS(r,e,t,n,i,f,h){try{var p=r[f](h),y=p.value}catch(x){t(x);return}p.done?e(y):Promise.resolve(y).then(n,i)}function lU(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var f=r.apply(e,t);function h(y){aS(f,n,i,h,p,"next",y)}function p(y){aS(f,n,i,h,p,"throw",y)}h(void 0)})}}function oS(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function hU(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?oS(Object(t),!0).forEach(function(n){bU(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):oS(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function bU(r,e,t){return e=pU(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function pU(r){var e=vU(r,"string");return typeof e=="symbol"?e:String(e)}function vU(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var gU=mf().codes.ERR_INVALID_ARG_TYPE;function mU(r,e,t){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new gU("iterable",["Iterable"],e);var i=new r(hU({objectMode:!0},t)),f=!1;i._read=function(){f||(f=!0,h())};function h(){return p.apply(this,arguments)}function p(){return p=lU(function*(){try{var y=yield n.next(),x=y.value,S=y.done;S?i.push(null):i.push(yield x)?h():f=!1}catch(T){i.destroy(T)}}),p.apply(this,arguments)}return i}fS.exports=mU});var Tg=z((i$,mS)=>{"use strict";var n$=A(_());mS.exports=hr;var gc;hr.ReadableState=lS;var t$=vr("events").EventEmitter,dS=function(e,t){return e.listeners(t).length},Ru=gg(),F1=vr("buffer").Buffer,yU=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xU(r){return F1.from(r)}function wU(r){return F1.isBuffer(r)||r instanceof yU}var Ig=vr("util"),Ue;Ig&&Ig.debuglog?Ue=Ig.debuglog("stream"):Ue=function(){};var AU=RM(),qg=xg(),MU=wg(),SU=MU.getHighWaterMark,D1=mf().codes,_U=D1.ERR_INVALID_ARG_TYPE,EU=D1.ERR_STREAM_PUSH_AFTER_EOF,TU=D1.ERR_METHOD_NOT_IMPLEMENTED,PU=D1.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,mc,Fg,Dg;Wr()(hr,Ru);var Lu=qg.errorOrDestroy,Og=["error","close","destroy","pause","resume"];function BU(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function lS(r,e,t){gc=gc||Es(),r=r||{},typeof t!="boolean"&&(t=e instanceof gc),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=SU(this,r,"readableHighWaterMark",t),this.buffer=new AU,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(mc||(mc=Lg().StringDecoder),this.decoder=new mc(r.encoding),this.encoding=r.encoding)}function hr(r){if(gc=gc||Es(),!(this instanceof hr))return new hr(r);var e=this instanceof gc;this._readableState=new lS(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),Ru.call(this)}Object.defineProperty(hr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});hr.prototype.destroy=qg.destroy;hr.prototype._undestroy=qg.undestroy;hr.prototype._destroy=function(r,e){e(r)};hr.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=F1.from(r,e),e=""),n=!0),hS(this,r,e,!1,n)};hr.prototype.unshift=function(r){return hS(this,r,null,!0,!1)};function hS(r,e,t,n,i){Ue("readableAddChunk",e);var f=r._readableState;if(e===null)f.reading=!1,RU(r,f);else{var h;if(i||(h=CU(f,e)),h)Lu(r,h);else if(f.objectMode||e&&e.length>0)if(typeof e!="string"&&!f.objectMode&&Object.getPrototypeOf(e)!==F1.prototype&&(e=xU(e)),n)f.endEmitted?Lu(r,new PU):kg(r,f,e,!0);else if(f.ended)Lu(r,new EU);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!t?(e=f.decoder.write(e),f.objectMode||e.length!==0?kg(r,f,e,!1):Jg(r,f)):kg(r,f,e,!1)}else n||(f.reading=!1,Jg(r,f))}return!f.ended&&(f.length<f.highWaterMark||f.length===0)}function kg(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&O1(r)),Jg(r,e)}function CU(r,e){var t;return!wU(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new _U("chunk",["string","Buffer","Uint8Array"],e)),t}hr.prototype.isPaused=function(){return this._readableState.flowing===!1};hr.prototype.setEncoding=function(r){mc||(mc=Lg().StringDecoder);var e=new mc(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var cS=1073741824;function LU(r){return r>=cS?r=cS:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function uS(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=LU(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}hr.prototype.read=function(r){Ue("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ng(this):O1(this),null;if(r=uS(r,e),r===0&&e.ended)return e.length===0&&Ng(this),null;var n=e.needReadable;Ue("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,Ue("length less than watermark",n)),e.ended||e.reading?(n=!1,Ue("reading or ended",n)):n&&(Ue("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=uS(t,e)));var i;return r>0?i=vS(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Ng(this)),i!==null&&this.emit("data",i),i};function RU(r,e){if(Ue("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?O1(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,bS(r)))}}function O1(r){var e=r._readableState;Ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(bS,r))}function bS(r){var e=r._readableState;Ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Ug(r)}function Jg(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(IU,r,e))}function IU(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(Ue("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}hr.prototype._read=function(r){Lu(this,new TU("_read()"))};hr.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,Ue("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,f=i?p:D;n.endEmitted?process.nextTick(f):t.once("end",f),r.on("unpipe",h);function h(j,q){Ue("onunpipe"),j===t&&q&&q.hasUnpiped===!1&&(q.hasUnpiped=!0,S())}function p(){Ue("onend"),r.end()}var y=FU(t);r.on("drain",y);var x=!1;function S(){Ue("cleanup"),r.removeListener("close",R),r.removeListener("finish",B),r.removeListener("drain",y),r.removeListener("error",L),r.removeListener("unpipe",h),t.removeListener("end",p),t.removeListener("end",D),t.removeListener("data",T),x=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&y()}t.on("data",T);function T(j){Ue("ondata");var q=r.write(j);Ue("dest.write",q),q===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&gS(n.pipes,r)!==-1)&&!x&&(Ue("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function L(j){Ue("onerror",j),D(),r.removeListener("error",L),dS(r,"error")===0&&Lu(r,j)}BU(r,"error",L);function R(){r.removeListener("finish",B),D()}r.once("close",R);function B(){Ue("onfinish"),r.removeListener("close",R),D()}r.once("finish",B);function D(){Ue("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Ue("pipe resume"),t.resume()),r};function FU(r){return function(){var t=r._readableState;Ue("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&dS(r,"data")&&(t.flowing=!0,Ug(r))}}hr.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var f=0;f<i;f++)n[f].emit("unpipe",this,{hasUnpiped:!1});return this}var h=gS(e.pipes,r);return h===-1?this:(e.pipes.splice(h,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};hr.prototype.on=function(r,e){var t=Ru.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Ue("on readable",n.length,n.reading),n.length?O1(this):n.reading||process.nextTick(DU,this)),t};hr.prototype.addListener=hr.prototype.on;hr.prototype.removeListener=function(r,e){var t=Ru.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(pS,this),t};hr.prototype.removeAllListeners=function(r){var e=Ru.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(pS,this),e};function pS(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function DU(r){Ue("readable nexttick read 0"),r.read(0)}hr.prototype.resume=function(){var r=this._readableState;return r.flowing||(Ue("resume"),r.flowing=!r.readableListening,OU(this,r)),r.paused=!1,this};function OU(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(kU,r,e))}function kU(r,e){Ue("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Ug(r),e.flowing&&!e.reading&&r.read(0)}hr.prototype.pause=function(){return Ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ug(r){var e=r._readableState;for(Ue("flow",e.flowing);e.flowing&&r.read()!==null;);}hr.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Ue("wrapped end"),t.decoder&&!t.ended){var h=t.decoder.end();h&&h.length&&e.push(h)}e.push(null)}),r.on("data",function(h){if(Ue("wrapped data"),t.decoder&&(h=t.decoder.write(h)),!(t.objectMode&&h==null)&&!(!t.objectMode&&(!h||!h.length))){var p=e.push(h);p||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=function(p){return function(){return r[p].apply(r,arguments)}}(i));for(var f=0;f<Og.length;f++)r.on(Og[f],this.emit.bind(this,Og[f]));return this._read=function(h){Ue("wrapped _read",h),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(hr.prototype[Symbol.asyncIterator]=function(){return Fg===void 0&&(Fg=nS()),Fg(this)});Object.defineProperty(hr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(hr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(hr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});hr._fromList=vS;Object.defineProperty(hr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function vS(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Ng(r){var e=r._readableState;Ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(NU,e,r))}function NU(r,e){if(Ue("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(hr.from=function(r,e){return Dg===void 0&&(Dg=sS()),Dg(hr,r,e)});function gS(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var zg=z((a$,xS)=>{"use strict";var o$=A(_());xS.exports=Co;var k1=mf().codes,JU=k1.ERR_METHOD_NOT_IMPLEMENTED,qU=k1.ERR_MULTIPLE_CALLBACK,UU=k1.ERR_TRANSFORM_ALREADY_TRANSFORMING,zU=k1.ERR_TRANSFORM_WITH_LENGTH_0,N1=Es();Wr()(Co,N1);function HU(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new qU);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Co(r){if(!(this instanceof Co))return new Co(r);N1.call(this,r),this._transformState={afterTransform:HU.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",GU)}function GU(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){yS(r,e,t)}):yS(this,null,null)}Co.prototype.push=function(r,e){return this._transformState.needTransform=!1,N1.prototype.push.call(this,r,e)};Co.prototype._transform=function(r,e,t){t(new JU("_transform()"))};Co.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Co.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Co.prototype._destroy=function(r,e){N1.prototype._destroy.call(this,r,function(t){e(t)})};function yS(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new zU;if(r._transformState.transforming)throw new UU;return r.push(null)}});var MS=z((f$,AS)=>{"use strict";var s$=A(_());AS.exports=Iu;var wS=zg();Wr()(Iu,wS);function Iu(r){if(!(this instanceof Iu))return new Iu(r);wS.call(this,r)}Iu.prototype._transform=function(r,e,t){t(null,r)}});var PS=z((c$,TS)=>{"use strict";var u$=A(_()),Hg;function XU(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var ES=mf().codes,ZU=ES.ERR_MISSING_ARGS,KU=ES.ERR_STREAM_DESTROYED;function SS(r){if(r)throw r}function VU(r){return r.setHeader&&typeof r.abort=="function"}function jU(r,e,t,n){n=XU(n);var i=!1;r.on("close",function(){i=!0}),Hg===void 0&&(Hg=L1()),Hg(r,{readable:e,writable:t},function(h){if(h)return n(h);i=!0,n()});var f=!1;return function(h){if(!i&&!f){if(f=!0,VU(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(h||new KU("pipe"))}}}function _S(r){r()}function QU(r,e){return r.pipe(e)}function YU(r){return!r.length||typeof r[r.length-1]!="function"?SS:r.pop()}function WU(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=YU(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new ZU("streams");var i,f=e.map(function(h,p){var y=p<e.length-1,x=p>0;return jU(h,y,x,function(S){i||(i=S),S&&f.forEach(_S),!y&&(f.forEach(_S),n(i))})});return e.reduce(QU)}TS.exports=WU});var Gg=z((zn,Du)=>{var d$=A(_()),Fu=vr("stream");process.env.READABLE_STREAM==="disable"&&Fu?(Du.exports=Fu.Readable,Object.assign(Du.exports,Fu),Du.exports.Stream=Fu):(zn=Du.exports=Tg(),zn.Stream=Fu||zn,zn.Readable=zn,zn.Writable=Sg(),zn.Duplex=Es(),zn.Transform=zg(),zn.PassThrough=MS(),zn.finished=L1(),zn.pipeline=PS())});var LS=z((l$,CS)=>{var h$=A(_()),{Transform:$U}=Gg();CS.exports=r=>class BS extends $U{constructor(t,n,i,f,h){super(h),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=f,this._options=h,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,i){let f=null;try{this.update(t,n)}catch(h){f=h}i(f)}_flush(t){let n=null;try{this.push(this.digest())}catch(i){n=i}t(n)}update(t,n){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new BS(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var FS=z((b$,IS)=>{var p$=A(_()),{Transform:ez}=Gg();IS.exports=r=>class RS extends ez{constructor(t,n,i,f){super(f),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._options=f,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,i){let f=null;try{this.update(t,n)}catch(h){f=h}i(f)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(t);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new RS(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var Xg=z((v$,DS)=>{var g$=A(_()),rz=LS(),tz=FS();DS.exports=function(r){let e=rz(r),t=tz(r);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,i);case"keccak256":return new e(1088,512,null,256,i);case"keccak384":return new e(832,768,null,384,i);case"keccak512":return new e(576,1024,null,512,i);case"sha3-224":return new e(1152,448,6,224,i);case"sha3-256":return new e(1088,512,6,256,i);case"sha3-384":return new e(832,768,6,384,i);case"sha3-512":return new e(576,1024,6,512,i);case"shake128":return new t(1344,256,31,i);case"shake256":return new t(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}}});var kS=z((m$,OS)=>{var y$=A(_());OS.exports=Xg()(hg()(__dirname))});var qS=z(JS=>{var w$=A(_()),NS=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];JS.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],i=r[2]^r[12]^r[22]^r[32]^r[42],f=r[3]^r[13]^r[23]^r[33]^r[43],h=r[4]^r[14]^r[24]^r[34]^r[44],p=r[5]^r[15]^r[25]^r[35]^r[45],y=r[6]^r[16]^r[26]^r[36]^r[46],x=r[7]^r[17]^r[27]^r[37]^r[47],S=r[8]^r[18]^r[28]^r[38]^r[48],T=r[9]^r[19]^r[29]^r[39]^r[49],L=S^(i<<1|f>>>31),R=T^(f<<1|i>>>31),B=r[0]^L,D=r[1]^R,j=r[10]^L,q=r[11]^R,ie=r[20]^L,Y=r[21]^R,de=r[30]^L,ne=r[31]^R,te=r[40]^L,ve=r[41]^R;L=t^(h<<1|p>>>31),R=n^(p<<1|h>>>31);let $=r[2]^L,W=r[3]^R,m=r[12]^L,a=r[13]^R,c=r[22]^L,u=r[23]^R,s=r[32]^L,d=r[33]^R,v=r[42]^L,g=r[43]^R;L=i^(y<<1|x>>>31),R=f^(x<<1|y>>>31);let l=r[4]^L,o=r[5]^R,b=r[14]^L,E=r[15]^R,w=r[24]^L,M=r[25]^R,J=r[34]^L,P=r[35]^R,N=r[44]^L,Z=r[45]^R;L=h^(S<<1|T>>>31),R=p^(T<<1|S>>>31);let X=r[6]^L,C=r[7]^R,F=r[16]^L,I=r[17]^R,O=r[26]^L,V=r[27]^R,k=r[36]^L,H=r[37]^R,Q=r[46]^L,U=r[47]^R;L=y^(t<<1|n>>>31),R=x^(n<<1|t>>>31);let G=r[8]^L,ee=r[9]^R,K=r[18]^L,re=r[19]^R,Fe=r[28]^L,oe=r[29]^R,ce=r[38]^L,Ne=r[39]^R,ae=r[48]^L,fe=r[49]^R,Je=B,be=D,pe=q<<4|j>>>28,_r=j<<4|q>>>28,le=ie<<3|Y>>>29,he=Y<<3|ie>>>29,He=ne<<9|de>>>23,ue=de<<9|ne>>>23,se=te<<18|ve>>>14,Dr=ve<<18|te>>>14,ge=$<<1|W>>>31,me=W<<1|$>>>31,Or=a<<12|m>>>20,ye=m<<12|a>>>20,xe=c<<10|u>>>22,kr=u<<10|c>>>22,we=d<<13|s>>>19,Ae=s<<13|d>>>19,Nr=v<<2|g>>>30,Me=g<<2|v>>>30,Se=o<<30|l>>>2,Jr=l<<30|o>>>2,_e=b<<6|E>>>26,Ee=E<<6|b>>>26,qr=M<<11|w>>>21,Te=w<<11|M>>>21,Pe=J<<15|P>>>17,Ur=P<<15|J>>>17,Be=Z<<29|N>>>3,Ce=N<<29|Z>>>3,zr=X<<28|C>>>4,Le=C<<28|X>>>4,Re=I<<23|F>>>9,Er=F<<23|I>>>9,De=O<<25|V>>>7,Oe=V<<25|O>>>7,mr=k<<21|H>>>11,yr=H<<21|k>>>11,xr=U<<24|Q>>>8,wr=Q<<24|U>>>8,Ar=G<<27|ee>>>5,Hr=ee<<27|G>>>5,Gr=K<<20|re>>>12,Xr=re<<20|K>>>12,Zr=oe<<7|Fe>>>25,Kr=Fe<<7|oe>>>25,Vr=ce<<8|Ne>>>24,jr=Ne<<8|ce>>>24,Qr=ae<<14|fe>>>18,Yr=fe<<14|ae>>>18;r[0]=Je^~Or&qr,r[1]=be^~ye&Te,r[10]=zr^~Gr&le,r[11]=Le^~Xr&he,r[20]=ge^~_e&De,r[21]=me^~Ee&Oe,r[30]=Ar^~pe&xe,r[31]=Hr^~_r&kr,r[40]=Se^~Re&Zr,r[41]=Jr^~Er&Kr,r[2]=Or^~qr&mr,r[3]=ye^~Te&yr,r[12]=Gr^~le&we,r[13]=Xr^~he&Ae,r[22]=_e^~De&Vr,r[23]=Ee^~Oe&jr,r[32]=pe^~xe&Pe,r[33]=_r^~kr&Ur,r[42]=Re^~Zr&He,r[43]=Er^~Kr&ue,r[4]=qr^~mr&Qr,r[5]=Te^~yr&Yr,r[14]=le^~we&Be,r[15]=he^~Ae&Ce,r[24]=De^~Vr&se,r[25]=Oe^~jr&Dr,r[34]=xe^~Pe&xr,r[35]=kr^~Ur&wr,r[44]=Zr^~He&Nr,r[45]=Kr^~ue&Me,r[6]=mr^~Qr&Je,r[7]=yr^~Yr&be,r[16]=we^~Be&zr,r[17]=Ae^~Ce&Le,r[26]=Vr^~se&ge,r[27]=jr^~Dr&me,r[36]=Pe^~xr&Ar,r[37]=Ur^~wr&Hr,r[46]=He^~Nr&Se,r[47]=ue^~Me&Jr,r[8]=Qr^~Je&Or,r[9]=Yr^~be&ye,r[18]=Be^~zr&Gr,r[19]=Ce^~Le&Xr,r[28]=se^~ge&_e,r[29]=Dr^~me&Ee,r[38]=xr^~Ar&pe,r[39]=wr^~Hr&_r,r[48]=Nr^~Se&Re,r[49]=Me^~Jr&Er,r[0]^=NS[e*2],r[1]^=NS[e*2+1]}}});var zS=z((A$,US)=>{var M$=A(_()),J1=qS();function yc(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}yc.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};yc.prototype.absorb=function(r){for(let e=0;e<r.length;++e)this.state[~~(this.count/4)]^=r[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(J1.p1600(this.state),this.count=0)};yc.prototype.absorbLastFewBits=function(r){this.state[~~(this.count/4)]^=r<<8*(this.count%4),r&128&&this.count===this.blockSize-1&&J1.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),J1.p1600(this.state),this.count=0,this.squeezing=!0};yc.prototype.squeeze=function(r){this.squeezing||this.absorbLastFewBits(1);let e=Buffer.alloc(r);for(let t=0;t<r;++t)e[t]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(J1.p1600(this.state),this.count=0);return e};yc.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};US.exports=yc});var GS=z((S$,HS)=>{var _$=A(_());HS.exports=Xg()(zS())});var XS=z((E$,Zg)=>{var T$=A(_());try{Zg.exports=kS()}catch{Zg.exports=GS()}});var Tie=A(_(),1);var Rte=A(_(),1);var Zz=A(_(),1);var Dz=A(_(),1),Pt={module:"URgYpPQzvxxfYQtjrIQ116bl3YBfcImo3JEnNo8Hlrk",scheduler:"_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA",mu:"fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY",src:{asset:"LlyF5s11sJIWvfNbkH-tavR-P7IJfTvkHHOdlwtGIJM",collection:"EmeE2B70hVDdhr9fWou3i_nKARSb_6LXvxRFTH67qvU",collectionActivity:"8cQtC9TsWURFzboq1aozm8VbzRBc5GGVt7yB80kapfc",comments:"RvozS-4Mbcmq66gPapsNOyERkg3LrpR0vSRKz8wIi4k",zone:{id:"qh8L94J0ZT4h-Gv3mLH8kDb-IhmJo_aIL1j7vtr-jF0",version:"0.0.2"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},l3={defaultNode:"https://forward.computer"},h3={"application/json":{type:"application/json",serialize:r=>JSON.stringify(r)}},Aa={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var pr={keys:{access:"Access-Fee",ans110:{title:"Title",description:"Description",topic:"Topic:*",type:"Type",implements:"Implements",license:"License"},assetType:"Asset-Type",banner:"Banner",bootloader:"Bootloader",collectionId:"Collection-Id",collectionName:"Collection-Name",commericalUse:"Commercial-Use",contentType:"Content-Type",creator:"Creator",currency:"Currency",dataModelTraining:"Data-Model-Training",dataProtocol:"Data-Protocol",dateCreated:"Date-Created",derivations:"Derivations",description:"Description",displayName:"Display-Name",handle:"Handle",implements:"Implements",initialOwner:"Initial-Owner",license:"License",name:"Name",onBoot:"On-Boot",paymentAddress:"Payment-Address",paymentMode:"Payment-Mode",profileCreator:"Profile-Creator",profileIndex:"Profile-Index",protocolName:"Protocol-Name",renderWith:"Render-With",thumbnail:"Thumbnail",title:"Title",topic:"Topic",type:"Type",zoneType:"Zone-Type"},values:{dataProtocol:"ao",document:"Document",user:"User"}},ab={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var Uz=A(_(),1);var Nz=A(_(),1);function dn(r){return r?/^[a-z0-9_-]{43}$/i.test(r):!1}function $u(r,e){for(let t=0;t<r.length;t++)if(r[t]&&r[t].name===e)return r[t].value;return null}function b3(r){let e=r.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return e?e[1]:null}function p3(r){return r.split(",")[1]}function v3(r){let e;if(Buffer.isBuffer(r))e=r.length;else if(typeof r=="string")e=Buffer.byteLength(r,"utf-8");else throw new Error("Input must be a string or a Buffer");return e}function ob(r){let e;return e=r.replace(/\[|\]/g,""),`[[${e}]]`}function Ac(r){let e;return e=r.replace(/\[|\]/g,""),e}var Zi=(...r)=>{console.log("[@permaweb/libs]",...r)};function G_(r){return r.replace(/^[a-z]/,e=>e.toUpperCase())}function qs(r){return Array.isArray(r)?r.map(qs):r&&typeof r=="object"?Object.entries(r).reduce((e,[t,n])=>{let i=G_(t);return e[i]=dn(n)?n:qs(n),e},{}):r}function X_(r){return r.charAt(0).toLowerCase()+r.slice(1)}function ln(r){return Array.isArray(r)?r.map(ln):r&&typeof r=="object"?Object.entries(r).reduce((e,[t,n])=>{let i=dn(t)||t.includes("-")?t:X_(t);return e[i]=dn(n)?n:ln(n),e},{}):r}function hi(r,e){let t=r.charAt(0).toUpperCase()+r.slice(1);return{name:`${pr.keys.bootloader}-${t}`,value:e}}function ed(r){return dn(r)||r.startsWith("data")}var Z_="https://arweave.net";function rd(r){return`${Z_}/${r}`}async function K_(r,e){let t=[{name:"Authority",value:r.node?.authority??Pt.mu}];e.tags&&e.tags.length>0&&e.tags.forEach(n=>t.push(n));try{let n=await r.ao.spawn({module:e.module,scheduler:r.node?.scheduler||e.scheduler,signer:r.signer,tags:t,data:e.data});return Zi(`Process ID: ${n}`),Zi("Sending initial message..."),await Nt(r,{processId:n,action:"Init"}),n}catch(n){throw console.log(n),new Error(n.message??"Error spawning process")}}function g3(r){return async e=>await Nt(r,e)}async function Nt(r,e){try{let t=[{name:"Action",value:e.action},{name:"Message-Timestamp",value:new Date().getTime().toString()}];e.tags&&t.push(...e.tags);let n=e.useRawData?e.data:JSON.stringify(e.data);return await r.ao.message({process:e.processId,signer:r.signer,tags:t,data:n})}catch(t){throw new Error(t)}}function m3(r){return async e=>await so(r,e)}async function so(r,e){let n=`${r.node?.url??l3.defaultNode}/${e.processId}~process@1.0/now/${e.path}`;e.serialize&&(n+="/serialize~json@1.0");try{let i=await fetch(n);if(i.ok)return i.json();throw new Error("Error getting state from HyperBEAM.")}catch(i){if(e.fallbackAction)return await td(r,{processId:e.processId,action:e.fallbackAction});throw i}}function y3(r){return async e=>await td(r,e)}async function td(r,e){try{let t=[{name:"Action",value:e.action}];e.tags&&t.push(...e.tags);let n;if(typeof e.data=="object")n=JSON.stringify(e.data||{});else if(typeof e.data=="string"){try{JSON.parse(e.data)}catch(f){throw console.error(f),new Error("Invalid JSON data")}n=e.data}let i=await r.ao.dryrun({process:e.processId,tags:t,data:n});if(i.Messages&&i.Messages.length){if(i.Messages[0].Data)return JSON.parse(i.Messages[0].Data);if(i.Messages[0].Tags)return i.Messages[0].Tags.reduce((f,h)=>(f[h.name]=h.value,f),{})}}catch(t){throw new Error(t.message??"Error dryrunning process")}}async function V_(r,e){try{let{Messages:t}=await r.ao.result({message:e.messageId,process:e.processId});if(t&&t.length){let n={};return t.forEach(i=>{let f=$u(i.Tags,"Action")||e.action,h=null,p=i.Data;if(p)try{h=JSON.parse(p)}catch{h=p}let y=$u(i.Tags,"Status"),x=$u(i.Tags,"Message");n[f]={id:e.messageId,status:y,message:x,data:h}}),n}else return null}catch(t){console.error(t)}}async function Mc(r,e){let t=null;if(e.evalSrc)t=e.evalSrc;else if(e.evalTxId)try{t=await(await fetch(rd(e.evalTxId))).text()}catch(n){throw new Error(n)}if(t)try{let n=await Nt(r,{processId:e.processId,action:"Eval",data:t,tags:e.evalTags||null,useRawData:!0});return Zi(`Eval: ${n}`),await V_(r,{processId:e.processId,messageId:n,action:"Eval"})}catch(n){throw new Error(n.message??"Error sending process eval")}return null}function co(r){return async(e,t)=>{try{let n={module:e.module||Pt.module,scheduler:r.node?.scheduler||Pt.scheduler};e.data&&(n.data=e.data),e.tags&&(n.tags=e.tags),t&&t("Spawning process...");let i=await K_(r,n);if(e.evalTxId||e.evalSrc){t&&t("Process retrieved!"),t&&t("Sending eval...");try{await Mc(r,{processId:i,evalTxId:e.evalTxId||null,evalSrc:e.evalSrc||null,evalTags:e.evalTags})&&t&&t("Eval complete")}catch(f){throw new Error(f.message??"Error creating process")}}return i}catch(n){throw new Error(n.message??"Error creating process")}}}var Pte=A(_(),1);var wte=A(_(),1);var r3={};f3(r3,{AVSCTap:()=>Vu,AlgorandSigner:()=>Ju,AptosSigner:()=>Uu,ArconnectSigner:()=>Os,Arweave:()=>xm.default,ArweaveSigner:()=>Pf,Bundle:()=>V1,BundleItem:()=>e3,CryptoDriver:()=>gd,Curve25519:()=>$i,DataItem:()=>X1,EthereumSigner:()=>un,HexInjectedSolanaSigner:()=>Rs,HexSolanaSigner:()=>qu,InjectedAptosSigner:()=>Is,InjectedEthereumSigner:()=>ng,InjectedSolanaSigner:()=>Bf,InjectedTypedEthereumSigner:()=>Qg,KyveSigner:()=>Gu,MAX_TAG_BYTES:()=>G1,MIN_BINARY_SIZE:()=>Z1,MultiSignatureAptosSigner:()=>Fs,NearSigner:()=>Nu,PolygonSigner:()=>ku,Rsa4096:()=>Ef,SIG_CONFIG:()=>ze,SignatureConfig:()=>ke,Signer:()=>fb,SolanaSigner:()=>To,Transaction:()=>ym.default,TypedEthereumSigner:()=>Ds,bundleAndSignData:()=>uz,byteArrayToLong:()=>wt,concatBuffers:()=>gr.concatBuffers,createData:()=>Yu,deepHash:()=>Oo,deserializeTags:()=>xc,exportForTesting:()=>nz,getCryptoDriver:()=>Mt,getSignatureAndId:()=>o_,indexToType:()=>Xu,keccak256:()=>Kg,longTo16ByteArray:()=>oz,longTo32ByteArray:()=>H1,longTo8ByteArray:()=>z1,longToNByteArray:()=>Ku,secp256k1:()=>Ls,serializeTags:()=>Wg,shortTo2ByteArray:()=>Yg,sign:()=>K1,stringToBuffer:()=>gr.stringToBuffer,unbundleData:()=>cz});var jre=A(_(),1);var tre=A(_(),1);var Vz=A(_(),1),fb=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(e,t,n,i){throw new Error("You must implement verify method on child")}};var jee=A(_(),1);var uH=A(_(),1),L3=A(hn(),1);var tH=A(_(),1),ke;(function(r){r[r.ARWEAVE=1]="ARWEAVE",r[r.ED25519=2]="ED25519",r[r.ETHEREUM=3]="ETHEREUM",r[r.SOLANA=4]="SOLANA",r[r.INJECTEDAPTOS=5]="INJECTEDAPTOS",r[r.MULTIAPTOS=6]="MULTIAPTOS",r[r.TYPEDETHEREUM=7]="TYPEDETHEREUM",r[r.KYVE=101]="KYVE"})(ke||(ke={}));var ze={[ke.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[ke.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[ke.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[ke.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[ke.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[ke.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[ke.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[ke.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};var oH=A(_(),1);import $_ from"crypto";var Jt=BigInt(0),je=BigInt(1),zi=BigInt(2),E3=BigInt(255),M3=zi**BigInt(252)+BigInt("27742317777372353535851937790883648493"),Ir={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:zi**E3-BigInt(19),l:M3,n:M3,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")};var T3=zi**BigInt(256),Sc=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),nH=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),eE=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),rE=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),tE=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),iE=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),qt=class r{constructor(e,t,n,i){this.x=e,this.y=t,this.z=n,this.t=i}static fromAffine(e){if(!(e instanceof Bt))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(Bt.ZERO)?r.ZERO:new r(e.x,e.y,je,Ie(e.x*e.y))}static toAffineBatch(e){let t=oE(e.map(n=>n.z));return e.map((n,i)=>n.toAffine(t[i]))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){S3(e);let{x:t,y:n,z:i}=this,{x:f,y:h,z:p}=e,y=Ie(t*p),x=Ie(f*i),S=Ie(n*p),T=Ie(h*i);return y===x&&S===T}negate(){return new r(Ie(-this.x),this.y,this.z,Ie(-this.t))}double(){let{x:e,y:t,z:n}=this,{a:i}=Ir,f=Ie(e**zi),h=Ie(t**zi),p=Ie(zi*Ie(n**zi)),y=Ie(i*f),x=Ie(Ie((e+t)**zi)-f-h),S=y+h,T=S-p,L=y-h,R=Ie(x*T),B=Ie(S*L),D=Ie(x*L),j=Ie(T*S);return new r(R,B,j,D)}add(e){S3(e);let{x:t,y:n,z:i,t:f}=this,{x:h,y:p,z:y,t:x}=e,S=Ie((n-t)*(p+h)),T=Ie((n+t)*(p-h)),L=Ie(T-S);if(L===Jt)return this.double();let R=Ie(i*zi*x),B=Ie(f*zi*y),D=B+R,j=T+S,q=B-R,ie=Ie(D*L),Y=Ie(j*q),de=Ie(D*q),ne=Ie(L*j);return new r(ie,Y,ne,de)}subtract(e){return this.add(e.negate())}precomputeWindow(e){let t=1+256/e,n=[],i=this,f=i;for(let h=0;h<t;h++){f=i,n.push(f);for(let p=1;p<2**(e-1);p++)f=f.add(i),n.push(f);i=f.double()}return n}wNAF(e,t){!t&&this.equals(r.BASE)&&(t=Bt.BASE);let n=t&&t._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=t&&pb.get(t);i||(i=this.precomputeWindow(n),t&&n!==1&&(i=r.normalizeZ(i),pb.set(t,i)));let f=r.ZERO,h=r.ZERO,p=1+256/n,y=2**(n-1),x=BigInt(2**n-1),S=2**n,T=BigInt(n);for(let L=0;L<p;L++){let R=L*y,B=Number(e&x);if(e>>=T,B>y&&(B-=S,e+=je),B===0){let D=i[R];L%2&&(D=D.negate()),h=h.add(D)}else{let D=i[R+Math.abs(B)-1];B<0&&(D=D.negate()),f=f.add(D)}}return r.normalizeZ([f,h])[0]}multiply(e,t){return this.wNAF(nd(e,Ir.l),t)}multiplyUnsafe(e){let t=nd(e,Ir.l,!1),n=r.BASE,i=r.ZERO;if(t===Jt)return i;if(this.equals(i)||t===je)return this;if(this.equals(n))return this.wNAF(t);let f=i,h=this;for(;t>Jt;)t&je&&(f=f.add(h)),h=h.double(),t>>=je;return f}isSmallOrder(){return this.multiplyUnsafe(Ir.h).equals(r.ZERO)}isTorsionFree(){return this.multiplyUnsafe(Ir.l).equals(r.ZERO)}toAffine(e=ad(this.z)){let{x:t,y:n,z:i}=this,f=Ie(t*e),h=Ie(n*e);if(Ie(i*e)!==je)throw new Error("invZ was invalid");return new Bt(f,h)}fromRistrettoBytes(){hb()}toRistrettoBytes(){hb()}fromRistrettoHash(){hb()}};qt.BASE=new qt(Ir.Gx,Ir.Gy,je,Ie(Ir.Gx*Ir.Gy));qt.ZERO=new qt(Jt,je,je,Jt);function S3(r){if(!(r instanceof qt))throw new TypeError("ExtendedPoint expected")}function lb(r){if(!(r instanceof Sf))throw new TypeError("RistrettoPoint expected")}function hb(){throw new Error("Legacy method: switch to RistrettoPoint")}var Sf=class r{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){let{d:t}=Ir,n=Ie(Sc*e*e),i=Ie((n+je)*tE),f=BigInt(-1),h=Ie((f-t*n)*Ie(n+t)),{isValid:p,value:y}=gb(i,h),x=Ie(y*e);Io(x)||(x=Ie(-x)),p||(y=x),p||(f=n);let S=Ie(f*(n-je)*iE-h),T=y*y,L=Ie((y+y)*h),R=Ie(S*eE),B=Ie(je-T),D=Ie(je+T);return new qt(Ie(L*D),Ie(B*R),Ie(R*D),Ie(L*B))}static hashToCurve(e){e=Fo(e,64);let t=bb(e.slice(0,32)),n=this.calcElligatorRistrettoMap(t),i=bb(e.slice(32,64)),f=this.calcElligatorRistrettoMap(i);return new r(n.add(f))}static fromHex(e){e=Fo(e,32);let{a:t,d:n}=Ir,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",f=bb(e);if(!sE(Ec(f),e)||Io(f))throw new Error(i);let h=Ie(f*f),p=Ie(je+t*h),y=Ie(je-t*h),x=Ie(p*p),S=Ie(y*y),T=Ie(t*n*x-S),{isValid:L,value:R}=_3(Ie(T*S)),B=Ie(R*y),D=Ie(R*B*T),j=Ie((f+f)*B);Io(j)&&(j=Ie(-j));let q=Ie(p*D),ie=Ie(j*q);if(!L||Io(ie)||q===Jt)throw new Error(i);return new r(new qt(j,q,je,ie))}toRawBytes(){let{x:e,y:t,z:n,t:i}=this.ep,f=Ie(Ie(n+t)*Ie(n-t)),h=Ie(e*t),{value:p}=_3(Ie(f*h**zi)),y=Ie(p*f),x=Ie(p*h),S=Ie(y*x*i),T;if(Io(i*S)){let R=Ie(t*Sc),B=Ie(e*Sc);e=R,t=B,T=Ie(y*rE)}else T=x;Io(e*S)&&(t=Ie(-t));let L=Ie((n-t)*T);return Io(L)&&(L=Ie(-L)),Ec(L)}toHex(){return Tc(this.toRawBytes())}toString(){return this.toHex()}equals(e){lb(e);let t=this.ep,n=e.ep,i=Ie(t.x*n.y)===Ie(t.y*n.x),f=Ie(t.y*n.y)===Ie(t.x*n.x);return i||f}add(e){return lb(e),new r(this.ep.add(e.ep))}subtract(e){return lb(e),new r(this.ep.subtract(e.ep))}multiply(e){return new r(this.ep.multiply(e))}multiplyUnsafe(e){return new r(this.ep.multiplyUnsafe(e))}};Sf.BASE=new Sf(qt.BASE);Sf.ZERO=new Sf(qt.ZERO);var pb=new WeakMap,Bt=class r{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,pb.delete(this)}static fromHex(e,t=!0){let{d:n,P:i}=Ir;e=Fo(e,32);let f=e.slice();f[31]=e[31]&-129;let h=zs(f);if(t&&h>=i)throw new Error("Expected 0 < hex < P");if(!t&&h>=T3)throw new Error("Expected 0 < hex < 2**256");let p=Ie(h*h),y=Ie(p-je),x=Ie(n*p+je),{isValid:S,value:T}=gb(y,x);if(!S)throw new Error("Point.fromHex: invalid y coordinate");let L=(T&je)===je;return(e[31]&128)!==0!==L&&(T=Ie(-T)),new r(T,h)}static async fromPrivateKey(e){return(await mb(e)).point}toRawBytes(){let e=Ec(this.y);return e[31]|=this.x&je?128:0,e}toHex(){return Tc(this.toRawBytes())}toX25519(){let{y:e}=this,t=Ie((je+e)*ad(je-e));return Ec(t)}isTorsionFree(){return qt.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new r(Ie(-this.x),this.y)}add(e){return qt.fromAffine(this).add(qt.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return qt.fromAffine(this).multiply(e,this).toAffine()}};Bt.BASE=new Bt(Ir.Gx,Ir.Gy);Bt.ZERO=new Bt(Jt,je);var _c=class r{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromHex(e){let t=Fo(e,64),n=Bt.fromHex(t.slice(0,32),!1),i=zs(t.slice(32,64));return new r(n,i)}assertValidity(){let{r:e,s:t}=this;if(!(e instanceof Bt))throw new Error("Expected Point instance");return nd(t,Ir.l,!1),this}toRawBytes(){let e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(Ec(this.s),32),e}toHex(){return Tc(this.toRawBytes())}};function nE(...r){if(!r.every(n=>n instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(r.length===1)return r[0];let e=r.reduce((n,i)=>n+i.length,0),t=new Uint8Array(e);for(let n=0,i=0;n<r.length;n++){let f=r[n];t.set(f,i),i+=f.length}return t}var aE=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function Tc(r){if(!(r instanceof Uint8Array))throw new Error("Uint8Array expected");let e="";for(let t=0;t<r.length;t++)e+=aE[r[t]];return e}function P3(r){if(typeof r!="string")throw new TypeError("hexToBytes: expected string, got "+typeof r);if(r.length%2)throw new Error("hexToBytes: received invalid unpadded hex");let e=new Uint8Array(r.length/2);for(let t=0;t<e.length;t++){let n=t*2,i=r.slice(n,n+2),f=Number.parseInt(i,16);if(Number.isNaN(f)||f<0)throw new Error("Invalid byte sequence");e[t]=f}return e}function B3(r){let t=r.toString(16).padStart(64,"0");return P3(t)}function Ec(r){return B3(r).reverse()}function Io(r){return(Ie(r)&je)===je}function zs(r){if(!(r instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+Tc(Uint8Array.from(r).reverse()))}function bb(r){return Ie(zs(r)&zi**E3-je)}function Ie(r,e=Ir.P){let t=r%e;return t>=Jt?t:e+t}function ad(r,e=Ir.P){if(r===Jt||e<=Jt)throw new Error(`invert: expected positive integers, got n=${r} mod=${e}`);let t=Ie(r,e),n=e,i=Jt,f=je,h=je,p=Jt;for(;t!==Jt;){let x=n/t,S=n%t,T=i-h*x,L=f-p*x;n=t,t=S,i=h,f=p,h=T,p=L}if(n!==je)throw new Error("invert: does not exist");return Ie(i,e)}function oE(r,e=Ir.P){let t=new Array(r.length),n=r.reduce((f,h,p)=>h===Jt?f:(t[p]=f,Ie(f*h,e)),je),i=ad(n,e);return r.reduceRight((f,h,p)=>h===Jt?f:(t[p]=Ie(f*t[p],e),Ie(f*h,e)),i),t}function Ma(r,e){let{P:t}=Ir,n=r;for(;e-- >Jt;)n*=n,n%=t;return n}function fE(r){let{P:e}=Ir,t=BigInt(5),n=BigInt(10),i=BigInt(20),f=BigInt(40),h=BigInt(80),y=r*r%e*r%e,x=Ma(y,zi)*y%e,S=Ma(x,je)*r%e,T=Ma(S,t)*S%e,L=Ma(T,n)*T%e,R=Ma(L,i)*L%e,B=Ma(R,f)*R%e,D=Ma(B,h)*B%e,j=Ma(D,h)*B%e,q=Ma(j,n)*T%e;return{pow_p_5_8:Ma(q,zi)*r%e,b2:y}}function gb(r,e){let t=Ie(e*e*e),n=Ie(t*t*e),i=fE(r*n).pow_p_5_8,f=Ie(r*t*i),h=Ie(e*f*f),p=f,y=Ie(f*Sc),x=h===r,S=h===Ie(-r),T=h===Ie(-r*Sc);return x&&(f=p),(S||T)&&(f=y),Io(f)&&(f=Ie(-f)),{isValid:x||S,value:f}}function _3(r){return gb(je,r)}async function vb(...r){let e=await yb.sha512(nE(...r)),t=zs(e);return Ie(t,Ir.l)}function sE(r,e){if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function Fo(r,e){let t=r instanceof Uint8Array?Uint8Array.from(r):P3(r);if(typeof e=="number"&&t.length!==e)throw new Error(`Expected ${e} bytes`);return t}function nd(r,e,t=!0){if(!e)throw new TypeError("Specify max value");if(typeof r=="number"&&Number.isSafeInteger(r)&&(r=BigInt(r)),typeof r=="bigint"&&r<e){if(t){if(Jt<r)return r}else if(Jt<=r)return r}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function cE(r){return r[0]&=248,r[31]&=127,r[31]|=64,r}async function mb(r){if(r=typeof r=="bigint"||typeof r=="number"?B3(nd(r,T3)):Fo(r),r.length!==32)throw new Error("Expected 32 bytes");let e=await yb.sha512(r),t=cE(e.slice(0,32)),n=e.slice(32,64),i=Ie(zs(t),Ir.l),f=Bt.BASE.multiply(i),h=f.toRawBytes();return{head:t,prefix:n,scalar:i,point:f,pointBytes:h}}async function C3(r,e){r=Fo(r);let{prefix:t,scalar:n,pointBytes:i}=await mb(e),f=await vb(t,r),h=Bt.BASE.multiply(f),p=await vb(h.toRawBytes(),i,r),y=Ie(f+p*n,Ir.l);return new _c(h,y).toRawBytes()}async function Do(r,e,t){e=Fo(e),t instanceof Bt||(t=Bt.fromHex(t,!1));let{r:n,s:i}=r instanceof _c?r.assertValidity():_c.fromHex(r),f=qt.BASE.multiplyUnsafe(i),h=await vb(n.toRawBytes(),t.toRawBytes(),e),p=qt.fromAffine(t).multiplyUnsafe(h);return qt.fromAffine(n).add(p).subtract(f).multiplyUnsafe(Ir.h).equals(qt.ZERO)}Bt.BASE._setWindowSize(8);var Ro={node:$_,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},yb={TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],bytesToHex:Tc,getExtendedPublicKey:mb,mod:Ie,invert:ad,hashToPrivateScalar:r=>{if(r=Fo(r),r.length<40||r.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");let e=Ie(zs(r),Ir.l);if(e===Jt||e===je)throw new Error("Invalid private key");return e},randomBytes:(r=32)=>{if(Ro.web)return Ro.web.getRandomValues(new Uint8Array(r));if(Ro.node){let{randomBytes:e}=Ro.node;return new Uint8Array(e(r).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>yb.randomBytes(32),sha512:async r=>{if(Ro.web){let e=await Ro.web.subtle.digest("SHA-512",r.buffer);return new Uint8Array(e)}else{if(Ro.node)return Uint8Array.from(Ro.node.createHash("sha512").update(r).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(r=8,e=Bt.BASE){let t=e.equals(Bt.BASE)?e:new Bt(e.x,e.y);return t._setWindowSize(r),t.multiply(zi),t}};var $i=class{_key;pk;ownerLength=ze[2].pubLength;signatureLength=ze[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(e,t){this._key=e,this.pk=t}get key(){throw new Error("You must implement `key`")}sign(e){return C3(Buffer.from(e),Buffer.from(this.key))}static async verify(e,t,n){let i=e;return typeof e=="string"&&(i=L3.default.toBuffer(e)),Do(Buffer.from(n),Buffer.from(t),Buffer.from(i))}};var Pee=A(_(),1);var WG=A(_(),1);var cG=A(_(),1);var iG=A(_(),1),gr=A(Gn(),1);var mH=A(_(),1);import{createHash as xE}from"crypto";async function Oo(r){if(typeof r[Symbol.asyncIterator]=="function"){let i=r,f=xE("sha384"),h=0;for await(let x of i)h+=x.byteLength,f.update(x);let p=(0,gr.concatBuffers)([(0,gr.stringToBuffer)("blob"),(0,gr.stringToBuffer)(h.toString())]),y=(0,gr.concatBuffers)([await Mt().hash(p,"SHA-384"),f.digest()]);return await Mt().hash(y,"SHA-384")}else if(Array.isArray(r)){let i=(0,gr.concatBuffers)([(0,gr.stringToBuffer)("list"),(0,gr.stringToBuffer)(r.length.toString())]);return await H3(r,await Mt().hash(i,"SHA-384"))}let e=r,t=(0,gr.concatBuffers)([(0,gr.stringToBuffer)("blob"),(0,gr.stringToBuffer)(e.byteLength.toString())]),n=(0,gr.concatBuffers)([await Mt().hash(t,"SHA-384"),await Mt().hash(e,"SHA-384")]);return await Mt().hash(n,"SHA-384")}async function H3(r,e){if(r.length<1)return e;let t=(0,gr.concatBuffers)([e,await Oo(r[0])]),n=await Mt().hash(t,"SHA-384");return await H3(r.slice(1),n)}var vd=A(Mb(),1),ym=A(Ic(),1),xm=A(mm(),1),QE=vd.default.default?vd.default.default:vd.default,gd=class extends QE{getPublicKey(e){throw new Error("Unimplemented")}},YE;function Mt(){return YE??=new gd}var wm=A(hn(),1);import{constants as WE,createSign as $E}from"crypto";var Ef=class{_key;pk;signatureType=1;ownerLength=ze[1].pubLength;signatureLength=ze[1].sigLength;_publicKey;get publicKey(){return this._publicKey}constructor(e,t){this._key=e,this.pk=t,t||(this.pk=Mt().getPublicKey(JSON.parse(e)))}sign(e){return $E("sha256").update(e).sign({key:this._key,padding:WE.RSA_PKCS1_PSS_PADDING})}static async verify(e,t,n){return await Mt().verify(Buffer.isBuffer(e)?wm.default.encode(e):e,t,n)}};var d6=A(u6(),1),l6=A(hn(),1);var Pf=class extends Ef{jwk;constructor(e){super((0,d6.jwkTopem)(e),e.n),this.jwk=e}get publicKey(){if(!this.pk)throw new Error("ArweaveSigner - pk is undefined");return l6.default.toBuffer(this.pk)}sign(e){return Mt().sign(this.jwk,e)}static async verify(e,t,n){return await Mt().verify(e,t,n)}};var tX=A(_(),1),h6=A(hn(),1);var Bf=class{_publicKey;ownerLength=ze[2].pubLength;signatureLength=ze[2].sigLength;signatureType=2;pem;provider;constructor(e){if(this.provider=e,!this.provider.publicKey)throw new Error("InjectedSolanaSigner - provider.publicKey is undefined");this._publicKey=this.provider.publicKey.toBuffer()}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");return await this.provider.signMessage(e)}static async verify(e,t,n){let i=e;return typeof e=="string"&&(i=h6.default.toBuffer(e)),Do(Buffer.from(n),Buffer.from(t),Buffer.from(i))}};var oW=A(_(),1),ZA=A(xl(),1),KA=A(Nl(),1);var ig=A(vo(),1),VA=A(Pv(),1),jA=A(Eu(),1),ng=class{signer;publicKey;ownerLength=ze[ke.ETHEREUM].pubLength;signatureLength=ze[ke.ETHEREUM].sigLength;signatureType=ke.ETHEREUM;constructor(e){this.signer=e.getSigner()}async setPublicKey(){let e="sign this message to connect to Bundlr.Network",t=await this.signer.signMessage(e),n=await(0,ZA.hashMessage)(e),i=(0,KA.recoverPublicKey)((0,ig.arrayify)(n),t);this.publicKey=Buffer.from((0,ig.arrayify)(i))}async sign(e){this.publicKey||await this.setPublicKey();let t=await this.signer.signMessage(e);return Buffer.from(t.slice(2),"hex")}static verify(e,t,n){let i=(0,VA.computeAddress)(e);return(0,jA.verifyMessage)(t,n)===i}};var bW=A(_(),1);var lc=A(tM(),1),To=class extends $i{get publicKey(){return lc.default.decode(this.pk)}get key(){return lc.default.decode(this._key)}constructor(e){let t=lc.default.decode(e);super(lc.default.encode(t.subarray(0,32)),lc.default.encode(t.subarray(32,64)))}};var q$=A(_(),1);var k$=A(_(),1);var F$=A(_(),1),$S=A(hn(),1),Vg=A(vg(),1);var C$=A(_(),1),ZS=A(XS(),1);import{Buffer as Cs}from"buffer";function Kg(r){return r=KS(r),(0,ZS.default)("keccak256").update(r).digest()}function KS(r){if(!Cs.isBuffer(r))if(Array.isArray(r))r=Cs.from(r);else if(typeof r=="string")VS(r)?r=Cs.from(q1(jS(r)),"hex"):r=Cs.from(r);else if(typeof r=="number")r=YS(r);else if(typeof r=="bigint")r=iz(r);else if(r==null)r=Cs.allocUnsafe(0);else throw new Error("invalid type");return r}function VS(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function q1(r){if(typeof r!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof r}, while padToEven.`);return r.length%2&&(r=`0${r}`),r}function jS(r){return typeof r!="string"?r:QS(r)?r.slice(2):r}function QS(r){if(typeof r!="string")throw new Error("value must be type 'string', is currently type "+typeof r+", while checking isHexPrefixed.");return r.startsWith("0x")}function YS(r){let e=WS(r);return Cs.from(q1(e.slice(2)),"hex")}function WS(r){return`0x${r.toString(16)}`}function iz(r){let e=r.toString(16);return Cs.from(q1(e),"hex")}typeof window<"u"&&(window.keccak256=Kg);var Ou=Kg,nz={intToBuffer:YS,intToHex:WS,isHexPrefixed:QS,stripHexPrefix:jS,padToEven:q1,isHexString:VS,toBuffer:KS};var Ls=class{_key;ownerLength=ze[ke.ETHEREUM].pubLength;signatureLength=ze[ke.ETHEREUM].sigLength;signatureType=ke.ETHEREUM;pk;constructor(e,t){this._key=e,this.pk=t.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return Buffer.from(this._key,"hex")}static async verify(e,t,n){let i=e;typeof e=="string"&&(i=$S.default.toBuffer(e));let f=!1;try{f=Vg.default.ecdsaVerify(n,Ou(Buffer.from(t)),i)}catch{}return f}async sign(e){return Vg.default.ecdsaSign(Ou(Buffer.from(e)),Buffer.from(this.key)).signature}};var jg=A(vg(),1),e_=A(hn(),1),r_=A(vo(),1),t_=A(Eu(),1),i_=A(xl(),1),un=class extends Ls{get publicKey(){return Buffer.from(this.pk,"hex")}constructor(e){e.startsWith("0x")&&(e=e.slice(2));let t=Buffer.from(e,"hex"),n=jg.default.publicKeyCreate(t,!1);super(e,Buffer.from(n))}async sign(e){return new t_.Wallet(this._key).signMessage(e).then(n=>Buffer.from(n.slice(2),"hex"))}static async verify(e,t,n){return jg.default.ecdsaVerify(n.length===65?n.slice(0,-1):n,(0,r_.arrayify)((0,i_.hashMessage)(t)),typeof e=="string"?e_.default.toBuffer(e):e)}};var ku=class extends un{};var H$=A(_(),1);var Nu=class extends To{constructor(e){super(e.replace("ed25519:",""))}};var Z$=A(_(),1);var Ju=class extends $i{get publicKey(){return Buffer.from(this.pk)}get key(){return Buffer.from(this._key)}constructor(e,t){super(e.subarray(0,32),t)}};var j$=A(_(),1);var Rs=class extends Bf{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,t,n){return super.verify(e,Buffer.from(Buffer.from(t).toString("hex")),n)}};var W$=A(_(),1);var qu=class extends To{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,t,n){return super.verify(e,Buffer.from(Buffer.from(t).toString("hex")),n)}};var ree=A(_(),1);var Uu=class extends $i{constructor(e,t){super(e,t)}get publicKey(){return Buffer.from(this.pk.slice(2),"hex")}get key(){return Buffer.from(this._key.slice(2),"hex")}};var aee=A(_(),1);var Is=class{_publicKey;ownerLength=ze[ke.INJECTEDAPTOS].pubLength;signatureLength=ze[ke.INJECTEDAPTOS].sigLength;signatureType=ke.INJECTEDAPTOS;pem;provider;constructor(e,t){this.provider=e,this._publicKey=t}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");let n=(await this.provider.signMessage({message:Buffer.from(e).toString("hex"),nonce:"bundlr"})).signature;return typeof n=="string"?Buffer.from(n,"hex"):n.data.toUint8Array()}static async verify(e,t,n){let i=e;return Do(Buffer.from(n),Buffer.from(`APTOS
15
+ `);function p(y){var x=ug(Po.join(y,"prebuilds")).map(dM),S=x.filter(lM(sg,fg)).sort(hM)[0];if(S){var T=Po.join(y,"prebuilds",S.name),L=ug(T).map(bM),R=L.filter(pM(og,iM)),B=R.sort(vM(og))[0];if(B)return Po.join(T,B.file)}}};function ug(r){try{return oM.readdirSync(r)}catch{return[]}}function nM(r,e){var t=ug(r).filter(e);return t[0]&&Po.join(r,t[0])}function aM(r){return/\.node$/.test(r)}function dM(r){var e=r.split("-");if(e.length===2){var t=e[0],n=e[1].split("+");if(t&&n.length&&n.every(Boolean))return{name:r,platform:t,architectures:n}}}function lM(r,e){return function(t){return t==null||t.platform!==r?!1:t.architectures.includes(e)}}function hM(r,e){return r.architectures.length-e.architectures.length}function bM(r){var e=r.split("."),t=e.pop(),n={file:r,specificity:0};if(t==="node"){for(var i=0;i<e.length;i++){var f=e[i];if(f==="node"||f==="electron"||f==="node-webkit")n.runtime=f;else if(f==="napi")n.napi=!0;else if(f.slice(0,3)==="abi")n.abi=f.slice(3);else if(f.slice(0,2)==="uv")n.uv=f.slice(2);else if(f.slice(0,4)==="armv")n.armv=f.slice(4);else if(f==="glibc"||f==="musl")n.libc=f;else continue;n.specificity++}return n}}function pM(r,e){return function(t){return!(t==null||t.runtime&&t.runtime!==r&&!qJ(t)||t.abi&&t.abi!==e&&!t.napi||t.uv&&t.uv!==uM||t.armv&&t.armv!==cg||t.libc&&t.libc!==cM)}}function qJ(r){return r.runtime==="node"&&r.napi}function vM(r){return function(e,t){return e.runtime!==t.runtime?e.runtime===r?-1:1:e.abi!==t.abi?e.abi?-1:1:e.specificity!==t.specificity?e.specificity>t.specificity?-1:1:0}}function UJ(){return!!(process.versions&&process.versions.nw)}function zJ(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function HJ(r){return r==="linux"&&oM.existsSync("/etc/alpine-release")}to.parseTags=bM;to.matchTags=pM;to.compareTags=vM;to.parseTuple=dM;to.matchTuple=lM;to.compareTuples=hM});var hg=z((mW,lg)=>{var yW=A(_()),dg=typeof __webpack_require__=="function"?__non_webpack_require__:vr;typeof dg.addon=="function"?lg.exports=dg.addon.bind(dg):lg.exports=mM()});var bg=z((wW,yM)=>{var AW=A(_()),br={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function qn(r,e){if(!r)throw new Error(e)}function dr(r,e,t){if(qn(e instanceof Uint8Array,`Expected ${r} to be an Uint8Array`),t!==void 0)if(Array.isArray(t)){let n=t.join(", "),i=`Expected ${r} to be an Uint8Array with length [${n}]`;qn(t.includes(e.length),i)}else{let n=`Expected ${r} to be an Uint8Array with length ${t}`;qn(e.length===t,n)}}function Ss(r){qn(hc(r)==="Boolean","Expected compressed to be a Boolean")}function ya(r=t=>new Uint8Array(t),e){return typeof r=="function"&&(r=r(e)),dr("output",r,e),r}function hc(r){return Object.prototype.toString.call(r).slice(8,-1)}yM.exports=r=>({contextRandomize(e){switch(qn(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&dr("seed",e,32),r.contextRandomize(e)){case 1:throw new Error(br.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return dr("private key",e,32),r.privateKeyVerify(e)===0},privateKeyNegate(e){switch(dr("private key",e,32),r.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(br.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,t){switch(dr("private key",e,32),dr("tweak",t,32),r.privateKeyTweakAdd(e,t)){case 0:return e;case 1:throw new Error(br.TWEAK_ADD)}},privateKeyTweakMul(e,t){switch(dr("private key",e,32),dr("tweak",t,32),r.privateKeyTweakMul(e,t)){case 0:return e;case 1:throw new Error(br.TWEAK_MUL)}},publicKeyVerify(e){return dr("public key",e,[33,65]),r.publicKeyVerify(e)===0},publicKeyCreate(e,t=!0,n){switch(dr("private key",e,32),Ss(t),n=ya(n,t?33:65),r.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(br.SECKEY_INVALID);case 2:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyConvert(e,t=!0,n){switch(dr("public key",e,[33,65]),Ss(t),n=ya(n,t?33:65),r.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyNegate(e,t=!0,n){switch(dr("public key",e,[33,65]),Ss(t),n=ya(n,t?33:65),r.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.IMPOSSIBLE_CASE);case 3:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyCombine(e,t=!0,n){qn(Array.isArray(e),"Expected public keys to be an Array"),qn(e.length>0,"Expected public keys array will have more than zero items");for(let i of e)dr("public key",i,[33,65]);switch(Ss(t),n=ya(n,t?33:65),r.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.PUBKEY_COMBINE);case 3:throw new Error(br.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,t,n=!0,i){switch(dr("public key",e,[33,65]),dr("tweak",t,32),Ss(n),i=ya(i,n?33:65),r.publicKeyTweakAdd(i,e,t)){case 0:return i;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.TWEAK_ADD)}},publicKeyTweakMul(e,t,n=!0,i){switch(dr("public key",e,[33,65]),dr("tweak",t,32),Ss(n),i=ya(i,n?33:65),r.publicKeyTweakMul(i,e,t)){case 0:return i;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.TWEAK_MUL)}},signatureNormalize(e){switch(dr("signature",e,64),r.signatureNormalize(e)){case 0:return e;case 1:throw new Error(br.SIG_PARSE)}},signatureExport(e,t){dr("signature",e,64),t=ya(t,72);let n={output:t,outputlen:72};switch(r.signatureExport(n,e)){case 0:return t.slice(0,n.outputlen);case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.IMPOSSIBLE_CASE)}},signatureImport(e,t){switch(dr("signature",e),t=ya(t,64),r.signatureImport(t,e)){case 0:return t;case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.IMPOSSIBLE_CASE)}},ecdsaSign(e,t,n={},i){dr("message",e,32),dr("private key",t,32),qn(hc(n)==="Object","Expected options to be an Object"),n.data!==void 0&&dr("options.data",n.data),n.noncefn!==void 0&&qn(hc(n.noncefn)==="Function","Expected options.noncefn to be a Function"),i=ya(i,64);let f={signature:i,recid:null};switch(r.ecdsaSign(f,e,t,n.data,n.noncefn)){case 0:return f;case 1:throw new Error(br.SIGN);case 2:throw new Error(br.IMPOSSIBLE_CASE)}},ecdsaVerify(e,t,n){switch(dr("signature",e,64),dr("message",t,32),dr("public key",n,[33,65]),r.ecdsaVerify(e,t,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.PUBKEY_PARSE)}},ecdsaRecover(e,t,n,i=!0,f){switch(dr("signature",e,64),qn(hc(t)==="Number"&&t>=0&&t<=3,"Expected recovery id to be a Number within interval [0, 3]"),dr("message",n,32),Ss(i),f=ya(f,i?33:65),r.ecdsaRecover(f,e,t,n)){case 0:return f;case 1:throw new Error(br.SIG_PARSE);case 2:throw new Error(br.RECOVER);case 3:throw new Error(br.IMPOSSIBLE_CASE)}},ecdh(e,t,n={},i){switch(dr("public key",e,[33,65]),dr("private key",t,32),qn(hc(n)==="Object","Expected options to be an Object"),n.data!==void 0&&dr("options.data",n.data),n.hashfn!==void 0?(qn(hc(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&dr("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&dr("options.ybuf",n.ybuf,32),dr("output",i)):i=ya(i,32),r.ecdh(i,e,t,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(br.PUBKEY_PARSE);case 2:throw new Error(br.ECDH)}}})});var wM=z((MW,xM)=>{var SW=A(_()),GJ=hg()(__dirname);xM.exports=bg()(new GJ.Secp256k1)});var MM=z((_W,AM)=>{var EW=A(_()),XJ=wv().ec,io=new XJ("secp256k1"),Ve=io.curve,Pr=Ve.n.constructor;function ZJ(r,e){let t=new Pr(e);if(t.cmp(Ve.p)>=0)return null;t=t.toRed(Ve.red);let n=t.redSqr().redIMul(t).redIAdd(Ve.b).redSqrt();return r===3!==n.isOdd()&&(n=n.redNeg()),io.keyPair({pub:{x:t,y:n}})}function KJ(r,e,t){let n=new Pr(e),i=new Pr(t);if(n.cmp(Ve.p)>=0||i.cmp(Ve.p)>=0||(n=n.toRed(Ve.red),i=i.toRed(Ve.red),(r===6||r===7)&&i.isOdd()!==(r===7)))return null;let f=n.redSqr().redIMul(n);return i.redSqr().redISub(f.redIAdd(Ve.b)).isZero()?io.keyPair({pub:{x:n,y:i}}):null}function gf(r){let e=r[0];switch(e){case 2:case 3:return r.length!==33?null:ZJ(e,r.subarray(1,33));case 4:case 6:case 7:return r.length!==65?null:KJ(e,r.subarray(1,33),r.subarray(33,65));default:return null}}function _s(r,e){let t=e.encode(null,r.length===33);for(let n=0;n<r.length;++n)r[n]=t[n]}AM.exports={contextRandomize(){return 0},privateKeyVerify(r){let e=new Pr(r);return e.cmp(Ve.n)<0&&!e.isZero()?0:1},privateKeyNegate(r){let e=new Pr(r),t=Ve.n.sub(e).umod(Ve.n).toArrayLike(Uint8Array,"be",32);return r.set(t),0},privateKeyTweakAdd(r,e){let t=new Pr(e);if(t.cmp(Ve.n)>=0||(t.iadd(new Pr(r)),t.cmp(Ve.n)>=0&&t.isub(Ve.n),t.isZero()))return 1;let n=t.toArrayLike(Uint8Array,"be",32);return r.set(n),0},privateKeyTweakMul(r,e){let t=new Pr(e);if(t.cmp(Ve.n)>=0||t.isZero())return 1;t.imul(new Pr(r)),t.cmp(Ve.n)>=0&&(t=t.umod(Ve.n));let n=t.toArrayLike(Uint8Array,"be",32);return r.set(n),0},publicKeyVerify(r){return gf(r)===null?1:0},publicKeyCreate(r,e){let t=new Pr(e);if(t.cmp(Ve.n)>=0||t.isZero())return 1;let n=io.keyFromPrivate(e).getPublic();return _s(r,n),0},publicKeyConvert(r,e){let t=gf(e);if(t===null)return 1;let n=t.getPublic();return _s(r,n),0},publicKeyNegate(r,e){let t=gf(e);if(t===null)return 1;let n=t.getPublic();return n.y=n.y.redNeg(),_s(r,n),0},publicKeyCombine(r,e){let t=new Array(e.length);for(let i=0;i<e.length;++i)if(t[i]=gf(e[i]),t[i]===null)return 1;let n=t[0].getPublic();for(let i=1;i<t.length;++i)n=n.add(t[i].pub);return n.isInfinity()?2:(_s(r,n),0)},publicKeyTweakAdd(r,e,t){let n=gf(e);if(n===null)return 1;if(t=new Pr(t),t.cmp(Ve.n)>=0)return 2;let i=n.getPublic().add(Ve.g.mul(t));return i.isInfinity()?2:(_s(r,i),0)},publicKeyTweakMul(r,e,t){let n=gf(e);if(n===null)return 1;if(t=new Pr(t),t.cmp(Ve.n)>=0||t.isZero())return 2;let i=n.getPublic().mul(t);return _s(r,i),0},signatureNormalize(r){let e=new Pr(r.subarray(0,32)),t=new Pr(r.subarray(32,64));return e.cmp(Ve.n)>=0||t.cmp(Ve.n)>=0?1:(t.cmp(io.nh)===1&&r.set(Ve.n.sub(t).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(r,e){let t=e.subarray(0,32),n=e.subarray(32,64);if(new Pr(t).cmp(Ve.n)>=0||new Pr(n).cmp(Ve.n)>=0)return 1;let{output:i}=r,f=i.subarray(4,37);f[0]=0,f.set(t,1);let h=33,p=0;for(;h>1&&f[p]===0&&!(f[p+1]&128);--h,++p);if(f=f.subarray(p),f[0]&128||h>1&&f[0]===0&&!(f[1]&128))return 1;let y=i.subarray(39,72);y[0]=0,y.set(n,1);let x=33,S=0;for(;x>1&&y[S]===0&&!(y[S+1]&128);--x,++S);return y=y.subarray(S),y[0]&128||x>1&&y[0]===0&&!(y[1]&128)?1:(r.outputlen=6+h+x,i[0]=48,i[1]=r.outputlen-2,i[2]=2,i[3]=f.length,i.set(f,4),i[4+h]=2,i[5+h]=y.length,i.set(y,6+h),0)},signatureImport(r,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;let t=e[3];if(t===0||5+t>=e.length||e[4+t]!==2)return 1;let n=e[5+t];if(n===0||6+t+n!==e.length||e[4]&128||t>1&&e[4]===0&&!(e[5]&128)||e[t+6]&128||n>1&&e[t+6]===0&&!(e[t+7]&128))return 1;let i=e.subarray(4,4+t);if(i.length===33&&i[0]===0&&(i=i.subarray(1)),i.length>32)return 1;let f=e.subarray(6+t);if(f.length===33&&f[0]===0&&(f=f.slice(1)),f.length>32)throw new Error("S length is too long");let h=new Pr(i);h.cmp(Ve.n)>=0&&(h=new Pr(0));let p=new Pr(e.subarray(6+t));return p.cmp(Ve.n)>=0&&(p=new Pr(0)),r.set(h.toArrayLike(Uint8Array,"be",32),0),r.set(p.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(r,e,t,n,i){if(i){let p=i;i=y=>{let x=p(e,t,null,n,y);if(!(x instanceof Uint8Array&&x.length===32))throw new Error("This is the way");return new Pr(x)}}let f=new Pr(t);if(f.cmp(Ve.n)>=0||f.isZero())return 1;let h;try{h=io.sign(e,t,{canonical:!0,k:i,pers:n})}catch{return 1}return r.signature.set(h.r.toArrayLike(Uint8Array,"be",32),0),r.signature.set(h.s.toArrayLike(Uint8Array,"be",32),32),r.recid=h.recoveryParam,0},ecdsaVerify(r,e,t){let n={r:r.subarray(0,32),s:r.subarray(32,64)},i=new Pr(n.r),f=new Pr(n.s);if(i.cmp(Ve.n)>=0||f.cmp(Ve.n)>=0)return 1;if(f.cmp(io.nh)===1||i.isZero()||f.isZero())return 3;let h=gf(t);if(h===null)return 2;let p=h.getPublic();return io.verify(e,n,p)?0:3},ecdsaRecover(r,e,t,n){let i={r:e.slice(0,32),s:e.slice(32,64)},f=new Pr(i.r),h=new Pr(i.s);if(f.cmp(Ve.n)>=0||h.cmp(Ve.n)>=0)return 1;if(f.isZero()||h.isZero())return 2;let p;try{p=io.recoverPubKey(n,i,t)}catch{return 2}return _s(r,p),0},ecdh(r,e,t,n,i,f,h){let p=gf(e);if(p===null)return 1;let y=new Pr(t);if(y.cmp(Ve.n)>=0||y.isZero())return 2;let x=p.getPublic().mul(y);if(i===void 0){let S=x.encode(null,!0),T=io.hash().update(S).digest();for(let L=0;L<32;++L)r[L]=T[L]}else{f||(f=new Uint8Array(32));let S=x.getX().toArray("be",32);for(let B=0;B<32;++B)f[B]=S[B];h||(h=new Uint8Array(32));let T=x.getY().toArray("be",32);for(let B=0;B<32;++B)h[B]=T[B];let L=i(f,h,n);if(!(L instanceof Uint8Array&&L.length===r.length))return 2;r.set(L)}return 0}}});var _M=z((TW,SM)=>{var PW=A(_());SM.exports=bg()(MM())});var vg=z((BW,pg)=>{var CW=A(_());try{pg.exports=wM()}catch{pg.exports=_M()}});var gg=z((LW,EM)=>{var RW=A(_());EM.exports=vr("stream")});var RM=z((IW,LM)=>{"use strict";var FW=A(_());function TM(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function PM(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?TM(Object(t),!0).forEach(function(n){VJ(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):TM(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function VJ(r,e,t){return e=CM(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function jJ(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function BM(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,CM(n.key),n)}}function QJ(r,e,t){return e&&BM(r.prototype,e),t&&BM(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function CM(r){var e=YJ(r,"string");return typeof e=="symbol"?e:String(e)}function YJ(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var WJ=vr("buffer"),S1=WJ.Buffer,$J=vr("util"),mg=$J.inspect,eq=mg&&mg.custom||"inspect";function rq(r,e,t){S1.prototype.copy.call(r,e,t)}LM.exports=function(){function r(){jJ(this,r),this.head=null,this.tail=null,this.length=0}return QJ(r,[{key:"push",value:function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=t+n.data;return i}},{key:"concat",value:function(t){if(this.length===0)return S1.alloc(0);for(var n=S1.allocUnsafe(t>>>0),i=this.head,f=0;i;)rq(i.data,n,f),f+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,n){var i;return t<this.head.data.length?(i=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?i=this.shift():i=n?this._getString(t):this._getBuffer(t),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var n=this.head,i=1,f=n.data;for(t-=f.length;n=n.next;){var h=n.data,p=t>h.length?h.length:t;if(p===h.length?f+=h:f+=h.slice(0,t),t-=p,t===0){p===h.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=h.slice(p));break}++i}return this.length-=i,f}},{key:"_getBuffer",value:function(t){var n=S1.allocUnsafe(t),i=this.head,f=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var h=i.data,p=t>h.length?h.length:t;if(h.copy(n,n.length-t,0,p),t-=p,t===0){p===h.length?(++f,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=h.slice(p));break}++f}return this.length-=f,n}},{key:eq,value:function(t,n){return mg(this,PM(PM({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var xg=z((DW,FM)=>{"use strict";var OW=A(_());function tq(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(yg,this,r)):process.nextTick(yg,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(f){!e&&f?t._writableState?t._writableState.errorEmitted?process.nextTick(_1,t):(t._writableState.errorEmitted=!0,process.nextTick(IM,t,f)):process.nextTick(IM,t,f):e?(process.nextTick(_1,t),e(f)):process.nextTick(_1,t)}),this)}function IM(r,e){yg(r,e),_1(r)}function _1(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function iq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function yg(r,e){r.emit("error",e)}function nq(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}FM.exports={destroy:tq,undestroy:iq,errorOrDestroy:nq}});var mf=z((kW,kM)=>{"use strict";var NW=A(_()),OM={};function Un(r,e,t){t||(t=Error);function n(f,h,p){return typeof e=="string"?e:e(f,h,p)}class i extends t{constructor(h,p,y){super(n(h,p,y))}}i.prototype.name=t.name,i.prototype.code=r,OM[r]=i}function DM(r,e){if(Array.isArray(r)){let t=r.length;return r=r.map(n=>String(n)),t>2?`one of ${e} ${r.slice(0,t-1).join(", ")}, or `+r[t-1]:t===2?`one of ${e} ${r[0]} or ${r[1]}`:`of ${e} ${r[0]}`}else return`of ${e} ${String(r)}`}function aq(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function oq(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function fq(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Un("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Un("ERR_INVALID_ARG_TYPE",function(r,e,t){let n;typeof e=="string"&&aq(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(oq(r," argument"))i=`The ${r} ${n} ${DM(e,"type")}`;else{let f=fq(r,".")?"property":"argument";i=`The "${r}" ${f} ${n} ${DM(e,"type")}`}return i+=`. Received type ${typeof t}`,i},TypeError);Un("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Un("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Un("ERR_STREAM_PREMATURE_CLOSE","Premature close");Un("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Un("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Un("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Un("ERR_STREAM_WRITE_AFTER_END","write after end");Un("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Un("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Un("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");kM.exports.codes=OM});var wg=z((JW,NM)=>{"use strict";var qW=A(_()),sq=mf().codes.ERR_INVALID_OPT_VALUE;function cq(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function uq(r,e,t,n){var i=cq(e,n,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var f=n?t:"highWaterMark";throw new sq(f,i)}return Math.floor(i)}return r.objectMode?16:16*1024}NM.exports={getHighWaterMark:uq}});var qM=z((UW,JM)=>{var zW=A(_());JM.exports=vr("util").deprecate});var Sg=z((HW,ZM)=>{"use strict";var GW=A(_());ZM.exports=xt;function zM(r){var e=this;this.next=null,this.entry=null,this.finish=function(){kq(e,r)}}var bc;xt.WritableState=Pu;var dq={deprecate:qM()},HM=gg(),T1=vr("buffer").Buffer,lq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hq(r){return T1.from(r)}function bq(r){return T1.isBuffer(r)||r instanceof lq}var Mg=xg(),pq=wg(),vq=pq.getHighWaterMark,yf=mf().codes,gq=yf.ERR_INVALID_ARG_TYPE,mq=yf.ERR_METHOD_NOT_IMPLEMENTED,yq=yf.ERR_MULTIPLE_CALLBACK,xq=yf.ERR_STREAM_CANNOT_PIPE,wq=yf.ERR_STREAM_DESTROYED,Aq=yf.ERR_STREAM_NULL_VALUES,Mq=yf.ERR_STREAM_WRITE_AFTER_END,Sq=yf.ERR_UNKNOWN_ENCODING,pc=Mg.errorOrDestroy;Wr()(xt,HM);function _q(){}function Pu(r,e,t){bc=bc||Es(),r=r||{},typeof t!="boolean"&&(t=e instanceof bc),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=vq(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Rq(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zM(this)}Pu.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(Pu.prototype,"buffer",{get:dq.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var E1;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E1=Function.prototype[Symbol.hasInstance],Object.defineProperty(xt,Symbol.hasInstance,{value:function(e){return E1.call(this,e)?!0:this!==xt?!1:e&&e._writableState instanceof Pu}})):E1=function(e){return e instanceof this};function xt(r){bc=bc||Es();var e=this instanceof bc;if(!e&&!E1.call(xt,this))return new xt(r);this._writableState=new Pu(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),HM.call(this)}xt.prototype.pipe=function(){pc(this,new xq)};function Eq(r,e){var t=new Mq;pc(r,t),process.nextTick(e,t)}function Tq(r,e,t,n){var i;return t===null?i=new Aq:typeof t!="string"&&!e.objectMode&&(i=new gq("chunk",["string","Buffer"],t)),i?(pc(r,i),process.nextTick(n,i),!1):!0}xt.prototype.write=function(r,e,t){var n=this._writableState,i=!1,f=!n.objectMode&&bq(r);return f&&!T1.isBuffer(r)&&(r=hq(r)),typeof e=="function"&&(t=e,e=null),f?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=_q),n.ending?Eq(this,t):(f||Tq(this,n,r,t))&&(n.pendingcb++,i=Bq(this,n,f,r,e,t)),i};xt.prototype.cork=function(){this._writableState.corked++};xt.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&GM(this,r))};xt.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Sq(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(xt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Pq(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=T1.from(e,t)),e}Object.defineProperty(xt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Bq(r,e,t,n,i,f){if(!t){var h=Pq(e,n,i);n!==h&&(t=!0,i="buffer",n=h)}var p=e.objectMode?1:n.length;e.length+=p;var y=e.length<e.highWaterMark;if(y||(e.needDrain=!0),e.writing||e.corked){var x=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:t,callback:f,next:null},x?x.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ag(r,e,!1,p,n,i,f);return y}function Ag(r,e,t,n,i,f,h){e.writelen=n,e.writecb=h,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new wq("write")):t?r._writev(i,e.onwrite):r._write(i,f,e.onwrite),e.sync=!1}function Cq(r,e,t,n,i){--e.pendingcb,t?(process.nextTick(i,n),process.nextTick(Tu,r,e),r._writableState.errorEmitted=!0,pc(r,n)):(i(n),r._writableState.errorEmitted=!0,pc(r,n),Tu(r,e))}function Lq(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function Rq(r,e){var t=r._writableState,n=t.sync,i=t.writecb;if(typeof i!="function")throw new yq;if(Lq(t),e)Cq(r,t,n,e,i);else{var f=XM(t)||r.destroyed;!f&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&GM(r,t),n?process.nextTick(UM,r,t,f,i):UM(r,t,f,i)}}function UM(r,e,t,n){t||Iq(r,e),e.pendingcb--,n(),Tu(r,e)}function Iq(r,e){e.length===0&&e.needDrain&&(e.needDrain=!1,r.emit("drain"))}function GM(r,e){e.bufferProcessing=!0;var t=e.bufferedRequest;if(r._writev&&t&&t.next){var n=e.bufferedRequestCount,i=new Array(n),f=e.corkedRequestsFree;f.entry=t;for(var h=0,p=!0;t;)i[h]=t,t.isBuf||(p=!1),t=t.next,h+=1;i.allBuffers=p,Ag(r,e,!0,e.length,i,"",f.finish),e.pendingcb++,e.lastBufferedRequest=null,f.next?(e.corkedRequestsFree=f.next,f.next=null):e.corkedRequestsFree=new zM(e),e.bufferedRequestCount=0}else{for(;t;){var y=t.chunk,x=t.encoding,S=t.callback,T=e.objectMode?1:y.length;if(Ag(r,e,!1,T,y,x,S),t=t.next,e.bufferedRequestCount--,e.writing)break}t===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=t,e.bufferProcessing=!1}xt.prototype._write=function(r,e,t){t(new mq("_write()"))};xt.prototype._writev=null;xt.prototype.end=function(r,e,t){var n=this._writableState;return typeof r=="function"?(t=r,r=null,e=null):typeof e=="function"&&(t=e,e=null),r!=null&&this.write(r,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Oq(this,n,t),this};Object.defineProperty(xt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function XM(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function Fq(r,e){r._final(function(t){e.pendingcb--,t&&pc(r,t),e.prefinished=!0,r.emit("prefinish"),Tu(r,e)})}function Dq(r,e){!e.prefinished&&!e.finalCalled&&(typeof r._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Fq,r,e)):(e.prefinished=!0,r.emit("prefinish")))}function Tu(r,e){var t=XM(e);if(t&&(Dq(r,e),e.pendingcb===0&&(e.finished=!0,r.emit("finish"),e.autoDestroy))){var n=r._readableState;(!n||n.autoDestroy&&n.endEmitted)&&r.destroy()}return t}function Oq(r,e,t){e.ending=!0,Tu(r,e),t&&(e.finished?process.nextTick(t):r.once("finish",t)),e.ended=!0,r.writable=!1}function kq(r,e,t){var n=r.entry;for(r.entry=null;n;){var i=n.callback;e.pendingcb--,i(t),n=n.next}e.corkedRequestsFree.next=r}Object.defineProperty(xt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});xt.prototype.destroy=Mg.destroy;xt.prototype._undestroy=Mg.undestroy;xt.prototype._destroy=function(r,e){e(r)}});var Es=z((XW,VM)=>{"use strict";var ZW=A(_()),Nq=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};VM.exports=no;var KM=Tg(),Eg=Sg();Wr()(no,KM);for(_g=Nq(Eg.prototype),P1=0;P1<_g.length;P1++)B1=_g[P1],no.prototype[B1]||(no.prototype[B1]=Eg.prototype[B1]);var _g,B1,P1;function no(r){if(!(this instanceof no))return new no(r);KM.call(this,r),Eg.call(this,r),this.allowHalfOpen=!0,r&&(r.readable===!1&&(this.readable=!1),r.writable===!1&&(this.writable=!1),r.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Jq)))}Object.defineProperty(no.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(no.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(no.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jq(){this._writableState.ended||process.nextTick(qq,this)}function qq(r){r.end()}Object.defineProperty(no.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var YM=z((Pg,QM)=>{var KW=A(_()),C1=vr("buffer"),Bo=C1.Buffer;function jM(r,e){for(var t in r)e[t]=r[t]}Bo.from&&Bo.alloc&&Bo.allocUnsafe&&Bo.allocUnsafeSlow?QM.exports=C1:(jM(C1,Pg),Pg.Buffer=vc);function vc(r,e,t){return Bo(r,e,t)}jM(Bo,vc);vc.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Bo(r,e,t)};vc.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=Bo(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};vc.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Bo(r)};vc.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return C1.SlowBuffer(r)}});var Lg=z($M=>{"use strict";var jW=A(_()),Cg=YM().Buffer,WM=Cg.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Uq(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function zq(r){var e=Uq(r);if(typeof e!="string"&&(Cg.isEncoding===WM||!WM(r)))throw new Error("Unknown encoding: "+r);return e||r}$M.StringDecoder=Bu;function Bu(r){this.encoding=zq(r);var e;switch(this.encoding){case"utf16le":this.text=Vq,this.end=jq,e=4;break;case"utf8":this.fillLast=Xq,e=4;break;case"base64":this.text=Qq,this.end=Yq,e=3;break;default:this.write=Wq,this.end=$q;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Cg.allocUnsafe(e)}Bu.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<r.length?e?e+this.text(r,t):this.text(r,t):e||""};Bu.prototype.end=Kq;Bu.prototype.text=Zq;Bu.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function Bg(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Hq(r,e,t){var n=e.length-1;if(n<t)return 0;var i=Bg(e[n]);return i>=0?(i>0&&(r.lastNeed=i-1),i):--n<t||i===-2?0:(i=Bg(e[n]),i>=0?(i>0&&(r.lastNeed=i-2),i):--n<t||i===-2?0:(i=Bg(e[n]),i>=0?(i>0&&(i===2?i=0:r.lastNeed=i-3),i):0))}function Gq(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function Xq(r){var e=this.lastTotal-this.lastNeed,t=Gq(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function Zq(r,e){var t=Hq(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function Kq(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function Vq(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function jq(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function Qq(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function Yq(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wq(r){return r.toString(this.encoding)}function $q(r){return r&&r.length?this.write(r):""}});var L1=z((QW,tS)=>{"use strict";var YW=A(_()),eS=mf().codes.ERR_STREAM_PREMATURE_CLOSE;function eU(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r.apply(this,n)}}}function rU(){}function tU(r){return r.setHeader&&typeof r.abort=="function"}function rS(r,e,t){if(typeof e=="function")return rS(r,null,e);e||(e={}),t=eU(t||rU);var n=e.readable||e.readable!==!1&&r.readable,i=e.writable||e.writable!==!1&&r.writable,f=function(){r.writable||p()},h=r._writableState&&r._writableState.finished,p=function(){i=!1,h=!0,n||t.call(r)},y=r._readableState&&r._readableState.endEmitted,x=function(){n=!1,y=!0,i||t.call(r)},S=function(B){t.call(r,B)},T=function(){var B;if(n&&!y)return(!r._readableState||!r._readableState.ended)&&(B=new eS),t.call(r,B);if(i&&!h)return(!r._writableState||!r._writableState.ended)&&(B=new eS),t.call(r,B)},L=function(){r.req.on("finish",p)};return tU(r)?(r.on("complete",p),r.on("abort",T),r.req?L():r.on("request",L)):i&&!r._writableState&&(r.on("end",f),r.on("close",f)),r.on("end",x),r.on("finish",p),e.error!==!1&&r.on("error",S),r.on("close",T),function(){r.removeListener("complete",p),r.removeListener("abort",T),r.removeListener("request",L),r.req&&r.req.removeListener("finish",p),r.removeListener("end",f),r.removeListener("close",f),r.removeListener("finish",p),r.removeListener("end",x),r.removeListener("error",S),r.removeListener("close",T)}}tS.exports=rS});var nS=z((WW,iS)=>{"use strict";var $W=A(_()),R1;function xf(r,e,t){return e=iU(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function iU(r){var e=nU(r,"string");return typeof e=="symbol"?e:String(e)}function nU(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var aU=L1(),wf=Symbol("lastResolve"),Ts=Symbol("lastReject"),Cu=Symbol("error"),I1=Symbol("ended"),Ps=Symbol("lastPromise"),Rg=Symbol("handlePromise"),Bs=Symbol("stream");function Af(r,e){return{value:r,done:e}}function oU(r){var e=r[wf];if(e!==null){var t=r[Bs].read();t!==null&&(r[Ps]=null,r[wf]=null,r[Ts]=null,e(Af(t,!1)))}}function fU(r){process.nextTick(oU,r)}function sU(r,e){return function(t,n){r.then(function(){if(e[I1]){t(Af(void 0,!0));return}e[Rg](t,n)},n)}}var cU=Object.getPrototypeOf(function(){}),uU=Object.setPrototypeOf((R1={get stream(){return this[Bs]},next:function(){var e=this,t=this[Cu];if(t!==null)return Promise.reject(t);if(this[I1])return Promise.resolve(Af(void 0,!0));if(this[Bs].destroyed)return new Promise(function(h,p){process.nextTick(function(){e[Cu]?p(e[Cu]):h(Af(void 0,!0))})});var n=this[Ps],i;if(n)i=new Promise(sU(n,this));else{var f=this[Bs].read();if(f!==null)return Promise.resolve(Af(f,!1));i=new Promise(this[Rg])}return this[Ps]=i,i}},xf(R1,Symbol.asyncIterator,function(){return this}),xf(R1,"return",function(){var e=this;return new Promise(function(t,n){e[Bs].destroy(null,function(i){if(i){n(i);return}t(Af(void 0,!0))})})}),R1),cU),dU=function(e){var t,n=Object.create(uU,(t={},xf(t,Bs,{value:e,writable:!0}),xf(t,wf,{value:null,writable:!0}),xf(t,Ts,{value:null,writable:!0}),xf(t,Cu,{value:null,writable:!0}),xf(t,I1,{value:e._readableState.endEmitted,writable:!0}),xf(t,Rg,{value:function(f,h){var p=n[Bs].read();p?(n[Ps]=null,n[wf]=null,n[Ts]=null,f(Af(p,!1))):(n[wf]=f,n[Ts]=h)},writable:!0}),t));return n[Ps]=null,aU(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var f=n[Ts];f!==null&&(n[Ps]=null,n[wf]=null,n[Ts]=null,f(i)),n[Cu]=i;return}var h=n[wf];h!==null&&(n[Ps]=null,n[wf]=null,n[Ts]=null,h(Af(void 0,!0))),n[I1]=!0}),e.on("readable",fU.bind(null,n)),n};iS.exports=dU});var sS=z((e$,fS)=>{"use strict";var r$=A(_());function aS(r,e,t,n,i,f,h){try{var p=r[f](h),y=p.value}catch(x){t(x);return}p.done?e(y):Promise.resolve(y).then(n,i)}function lU(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var f=r.apply(e,t);function h(y){aS(f,n,i,h,p,"next",y)}function p(y){aS(f,n,i,h,p,"throw",y)}h(void 0)})}}function oS(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function hU(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?oS(Object(t),!0).forEach(function(n){bU(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):oS(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function bU(r,e,t){return e=pU(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function pU(r){var e=vU(r,"string");return typeof e=="symbol"?e:String(e)}function vU(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var gU=mf().codes.ERR_INVALID_ARG_TYPE;function mU(r,e,t){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new gU("iterable",["Iterable"],e);var i=new r(hU({objectMode:!0},t)),f=!1;i._read=function(){f||(f=!0,h())};function h(){return p.apply(this,arguments)}function p(){return p=lU(function*(){try{var y=yield n.next(),x=y.value,S=y.done;S?i.push(null):i.push(yield x)?h():f=!1}catch(T){i.destroy(T)}}),p.apply(this,arguments)}return i}fS.exports=mU});var Tg=z((i$,mS)=>{"use strict";var n$=A(_());mS.exports=hr;var gc;hr.ReadableState=lS;var t$=vr("events").EventEmitter,dS=function(e,t){return e.listeners(t).length},Ru=gg(),F1=vr("buffer").Buffer,yU=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xU(r){return F1.from(r)}function wU(r){return F1.isBuffer(r)||r instanceof yU}var Ig=vr("util"),Ue;Ig&&Ig.debuglog?Ue=Ig.debuglog("stream"):Ue=function(){};var AU=RM(),qg=xg(),MU=wg(),SU=MU.getHighWaterMark,D1=mf().codes,_U=D1.ERR_INVALID_ARG_TYPE,EU=D1.ERR_STREAM_PUSH_AFTER_EOF,TU=D1.ERR_METHOD_NOT_IMPLEMENTED,PU=D1.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,mc,Fg,Dg;Wr()(hr,Ru);var Lu=qg.errorOrDestroy,Og=["error","close","destroy","pause","resume"];function BU(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function lS(r,e,t){gc=gc||Es(),r=r||{},typeof t!="boolean"&&(t=e instanceof gc),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=SU(this,r,"readableHighWaterMark",t),this.buffer=new AU,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(mc||(mc=Lg().StringDecoder),this.decoder=new mc(r.encoding),this.encoding=r.encoding)}function hr(r){if(gc=gc||Es(),!(this instanceof hr))return new hr(r);var e=this instanceof gc;this._readableState=new lS(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),Ru.call(this)}Object.defineProperty(hr.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});hr.prototype.destroy=qg.destroy;hr.prototype._undestroy=qg.undestroy;hr.prototype._destroy=function(r,e){e(r)};hr.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=F1.from(r,e),e=""),n=!0),hS(this,r,e,!1,n)};hr.prototype.unshift=function(r){return hS(this,r,null,!0,!1)};function hS(r,e,t,n,i){Ue("readableAddChunk",e);var f=r._readableState;if(e===null)f.reading=!1,RU(r,f);else{var h;if(i||(h=CU(f,e)),h)Lu(r,h);else if(f.objectMode||e&&e.length>0)if(typeof e!="string"&&!f.objectMode&&Object.getPrototypeOf(e)!==F1.prototype&&(e=xU(e)),n)f.endEmitted?Lu(r,new PU):kg(r,f,e,!0);else if(f.ended)Lu(r,new EU);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!t?(e=f.decoder.write(e),f.objectMode||e.length!==0?kg(r,f,e,!1):Jg(r,f)):kg(r,f,e,!1)}else n||(f.reading=!1,Jg(r,f))}return!f.ended&&(f.length<f.highWaterMark||f.length===0)}function kg(r,e,t,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,r.emit("data",t)):(e.length+=e.objectMode?1:t.length,n?e.buffer.unshift(t):e.buffer.push(t),e.needReadable&&O1(r)),Jg(r,e)}function CU(r,e){var t;return!wU(e)&&typeof e!="string"&&e!==void 0&&!r.objectMode&&(t=new _U("chunk",["string","Buffer","Uint8Array"],e)),t}hr.prototype.isPaused=function(){return this._readableState.flowing===!1};hr.prototype.setEncoding=function(r){mc||(mc=Lg().StringDecoder);var e=new mc(r);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,n="";t!==null;)n+=e.write(t.data),t=t.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var cS=1073741824;function LU(r){return r>=cS?r=cS:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function uS(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=LU(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}hr.prototype.read=function(r){Ue("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ng(this):O1(this),null;if(r=uS(r,e),r===0&&e.ended)return e.length===0&&Ng(this),null;var n=e.needReadable;Ue("need readable",n),(e.length===0||e.length-r<e.highWaterMark)&&(n=!0,Ue("length less than watermark",n)),e.ended||e.reading?(n=!1,Ue("reading or ended",n)):n&&(Ue("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(r=uS(t,e)));var i;return r>0?i=vS(r,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Ng(this)),i!==null&&this.emit("data",i),i};function RU(r,e){if(Ue("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?O1(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,bS(r)))}}function O1(r){var e=r._readableState;Ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(bS,r))}function bS(r){var e=r._readableState;Ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Ug(r)}function Jg(r,e){e.readingMore||(e.readingMore=!0,process.nextTick(IU,r,e))}function IU(r,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var t=e.length;if(Ue("maybeReadMore read 0"),r.read(0),t===e.length)break}e.readingMore=!1}hr.prototype._read=function(r){Lu(this,new TU("_read()"))};hr.prototype.pipe=function(r,e){var t=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=r;break;case 1:n.pipes=[n.pipes,r];break;default:n.pipes.push(r);break}n.pipesCount+=1,Ue("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&r!==process.stdout&&r!==process.stderr,f=i?p:D;n.endEmitted?process.nextTick(f):t.once("end",f),r.on("unpipe",h);function h(j,q){Ue("onunpipe"),j===t&&q&&q.hasUnpiped===!1&&(q.hasUnpiped=!0,S())}function p(){Ue("onend"),r.end()}var y=FU(t);r.on("drain",y);var x=!1;function S(){Ue("cleanup"),r.removeListener("close",R),r.removeListener("finish",B),r.removeListener("drain",y),r.removeListener("error",L),r.removeListener("unpipe",h),t.removeListener("end",p),t.removeListener("end",D),t.removeListener("data",T),x=!0,n.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&y()}t.on("data",T);function T(j){Ue("ondata");var q=r.write(j);Ue("dest.write",q),q===!1&&((n.pipesCount===1&&n.pipes===r||n.pipesCount>1&&gS(n.pipes,r)!==-1)&&!x&&(Ue("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function L(j){Ue("onerror",j),D(),r.removeListener("error",L),dS(r,"error")===0&&Lu(r,j)}BU(r,"error",L);function R(){r.removeListener("finish",B),D()}r.once("close",R);function B(){Ue("onfinish"),r.removeListener("close",R),D()}r.once("finish",B);function D(){Ue("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Ue("pipe resume"),t.resume()),r};function FU(r){return function(){var t=r._readableState;Ue("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&dS(r,"data")&&(t.flowing=!0,Ug(r))}}hr.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var f=0;f<i;f++)n[f].emit("unpipe",this,{hasUnpiped:!1});return this}var h=gS(e.pipes,r);return h===-1?this:(e.pipes.splice(h,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),r.emit("unpipe",this,t),this)};hr.prototype.on=function(r,e){var t=Ru.prototype.on.call(this,r,e),n=this._readableState;return r==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Ue("on readable",n.length,n.reading),n.length?O1(this):n.reading||process.nextTick(DU,this)),t};hr.prototype.addListener=hr.prototype.on;hr.prototype.removeListener=function(r,e){var t=Ru.prototype.removeListener.call(this,r,e);return r==="readable"&&process.nextTick(pS,this),t};hr.prototype.removeAllListeners=function(r){var e=Ru.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&process.nextTick(pS,this),e};function pS(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function DU(r){Ue("readable nexttick read 0"),r.read(0)}hr.prototype.resume=function(){var r=this._readableState;return r.flowing||(Ue("resume"),r.flowing=!r.readableListening,OU(this,r)),r.paused=!1,this};function OU(r,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(kU,r,e))}function kU(r,e){Ue("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),Ug(r),e.flowing&&!e.reading&&r.read(0)}hr.prototype.pause=function(){return Ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ug(r){var e=r._readableState;for(Ue("flow",e.flowing);e.flowing&&r.read()!==null;);}hr.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Ue("wrapped end"),t.decoder&&!t.ended){var h=t.decoder.end();h&&h.length&&e.push(h)}e.push(null)}),r.on("data",function(h){if(Ue("wrapped data"),t.decoder&&(h=t.decoder.write(h)),!(t.objectMode&&h==null)&&!(!t.objectMode&&(!h||!h.length))){var p=e.push(h);p||(n=!0,r.pause())}});for(var i in r)this[i]===void 0&&typeof r[i]=="function"&&(this[i]=function(p){return function(){return r[p].apply(r,arguments)}}(i));for(var f=0;f<Og.length;f++)r.on(Og[f],this.emit.bind(this,Og[f]));return this._read=function(h){Ue("wrapped _read",h),n&&(n=!1,r.resume())},this};typeof Symbol=="function"&&(hr.prototype[Symbol.asyncIterator]=function(){return Fg===void 0&&(Fg=nS()),Fg(this)});Object.defineProperty(hr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(hr.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(hr.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});hr._fromList=vS;Object.defineProperty(hr.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function vS(r,e){if(e.length===0)return null;var t;return e.objectMode?t=e.buffer.shift():!r||r>=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Ng(r){var e=r._readableState;Ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(NU,e,r))}function NU(r,e){if(Ue("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(hr.from=function(r,e){return Dg===void 0&&(Dg=sS()),Dg(hr,r,e)});function gS(r,e){for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}});var zg=z((a$,xS)=>{"use strict";var o$=A(_());xS.exports=Co;var k1=mf().codes,JU=k1.ERR_METHOD_NOT_IMPLEMENTED,qU=k1.ERR_MULTIPLE_CALLBACK,UU=k1.ERR_TRANSFORM_ALREADY_TRANSFORMING,zU=k1.ERR_TRANSFORM_WITH_LENGTH_0,N1=Es();Wr()(Co,N1);function HU(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new qU);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Co(r){if(!(this instanceof Co))return new Co(r);N1.call(this,r),this._transformState={afterTransform:HU.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",GU)}function GU(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,t){yS(r,e,t)}):yS(this,null,null)}Co.prototype.push=function(r,e){return this._transformState.needTransform=!1,N1.prototype.push.call(this,r,e)};Co.prototype._transform=function(r,e,t){t(new JU("_transform()"))};Co.prototype._write=function(r,e,t){var n=this._transformState;if(n.writecb=t,n.writechunk=r,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Co.prototype._read=function(r){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Co.prototype._destroy=function(r,e){N1.prototype._destroy.call(this,r,function(t){e(t)})};function yS(r,e,t){if(e)return r.emit("error",e);if(t!=null&&r.push(t),r._writableState.length)throw new zU;if(r._transformState.transforming)throw new UU;return r.push(null)}});var MS=z((f$,AS)=>{"use strict";var s$=A(_());AS.exports=Iu;var wS=zg();Wr()(Iu,wS);function Iu(r){if(!(this instanceof Iu))return new Iu(r);wS.call(this,r)}Iu.prototype._transform=function(r,e,t){t(null,r)}});var PS=z((c$,TS)=>{"use strict";var u$=A(_()),Hg;function XU(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var ES=mf().codes,ZU=ES.ERR_MISSING_ARGS,KU=ES.ERR_STREAM_DESTROYED;function SS(r){if(r)throw r}function VU(r){return r.setHeader&&typeof r.abort=="function"}function jU(r,e,t,n){n=XU(n);var i=!1;r.on("close",function(){i=!0}),Hg===void 0&&(Hg=L1()),Hg(r,{readable:e,writable:t},function(h){if(h)return n(h);i=!0,n()});var f=!1;return function(h){if(!i&&!f){if(f=!0,VU(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(h||new KU("pipe"))}}}function _S(r){r()}function QU(r,e){return r.pipe(e)}function YU(r){return!r.length||typeof r[r.length-1]!="function"?SS:r.pop()}function WU(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=YU(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new ZU("streams");var i,f=e.map(function(h,p){var y=p<e.length-1,x=p>0;return jU(h,y,x,function(S){i||(i=S),S&&f.forEach(_S),!y&&(f.forEach(_S),n(i))})});return e.reduce(QU)}TS.exports=WU});var Gg=z((zn,Du)=>{var d$=A(_()),Fu=vr("stream");process.env.READABLE_STREAM==="disable"&&Fu?(Du.exports=Fu.Readable,Object.assign(Du.exports,Fu),Du.exports.Stream=Fu):(zn=Du.exports=Tg(),zn.Stream=Fu||zn,zn.Readable=zn,zn.Writable=Sg(),zn.Duplex=Es(),zn.Transform=zg(),zn.PassThrough=MS(),zn.finished=L1(),zn.pipeline=PS())});var LS=z((l$,CS)=>{var h$=A(_()),{Transform:$U}=Gg();CS.exports=r=>class BS extends $U{constructor(t,n,i,f,h){super(h),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=f,this._options=h,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,i){let f=null;try{this.update(t,n)}catch(h){f=h}i(f)}_flush(t){let n=null;try{this.push(this.digest())}catch(i){n=i}t(n)}update(t,n){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new BS(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var FS=z((b$,IS)=>{var p$=A(_()),{Transform:ez}=Gg();IS.exports=r=>class RS extends ez{constructor(t,n,i,f){super(f),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._options=f,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,i){let f=null;try{this.update(t,n)}catch(h){f=h}i(f)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(t);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new RS(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var Xg=z((v$,DS)=>{var g$=A(_()),rz=LS(),tz=FS();DS.exports=function(r){let e=rz(r),t=tz(r);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,i);case"keccak256":return new e(1088,512,null,256,i);case"keccak384":return new e(832,768,null,384,i);case"keccak512":return new e(576,1024,null,512,i);case"sha3-224":return new e(1152,448,6,224,i);case"sha3-256":return new e(1088,512,6,256,i);case"sha3-384":return new e(832,768,6,384,i);case"sha3-512":return new e(576,1024,6,512,i);case"shake128":return new t(1344,256,31,i);case"shake256":return new t(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}}});var kS=z((m$,OS)=>{var y$=A(_());OS.exports=Xg()(hg()(__dirname))});var qS=z(JS=>{var w$=A(_()),NS=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];JS.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],i=r[2]^r[12]^r[22]^r[32]^r[42],f=r[3]^r[13]^r[23]^r[33]^r[43],h=r[4]^r[14]^r[24]^r[34]^r[44],p=r[5]^r[15]^r[25]^r[35]^r[45],y=r[6]^r[16]^r[26]^r[36]^r[46],x=r[7]^r[17]^r[27]^r[37]^r[47],S=r[8]^r[18]^r[28]^r[38]^r[48],T=r[9]^r[19]^r[29]^r[39]^r[49],L=S^(i<<1|f>>>31),R=T^(f<<1|i>>>31),B=r[0]^L,D=r[1]^R,j=r[10]^L,q=r[11]^R,ie=r[20]^L,Y=r[21]^R,de=r[30]^L,ne=r[31]^R,te=r[40]^L,ve=r[41]^R;L=t^(h<<1|p>>>31),R=n^(p<<1|h>>>31);let $=r[2]^L,W=r[3]^R,m=r[12]^L,a=r[13]^R,c=r[22]^L,u=r[23]^R,s=r[32]^L,d=r[33]^R,v=r[42]^L,g=r[43]^R;L=i^(y<<1|x>>>31),R=f^(x<<1|y>>>31);let l=r[4]^L,o=r[5]^R,b=r[14]^L,E=r[15]^R,w=r[24]^L,M=r[25]^R,J=r[34]^L,P=r[35]^R,N=r[44]^L,Z=r[45]^R;L=h^(S<<1|T>>>31),R=p^(T<<1|S>>>31);let X=r[6]^L,C=r[7]^R,F=r[16]^L,I=r[17]^R,O=r[26]^L,V=r[27]^R,k=r[36]^L,H=r[37]^R,Q=r[46]^L,U=r[47]^R;L=y^(t<<1|n>>>31),R=x^(n<<1|t>>>31);let G=r[8]^L,ee=r[9]^R,K=r[18]^L,re=r[19]^R,Fe=r[28]^L,oe=r[29]^R,ce=r[38]^L,Ne=r[39]^R,ae=r[48]^L,fe=r[49]^R,Je=B,be=D,pe=q<<4|j>>>28,_r=j<<4|q>>>28,le=ie<<3|Y>>>29,he=Y<<3|ie>>>29,He=ne<<9|de>>>23,ue=de<<9|ne>>>23,se=te<<18|ve>>>14,Dr=ve<<18|te>>>14,ge=$<<1|W>>>31,me=W<<1|$>>>31,Or=a<<12|m>>>20,ye=m<<12|a>>>20,xe=c<<10|u>>>22,kr=u<<10|c>>>22,we=d<<13|s>>>19,Ae=s<<13|d>>>19,Nr=v<<2|g>>>30,Me=g<<2|v>>>30,Se=o<<30|l>>>2,Jr=l<<30|o>>>2,_e=b<<6|E>>>26,Ee=E<<6|b>>>26,qr=M<<11|w>>>21,Te=w<<11|M>>>21,Pe=J<<15|P>>>17,Ur=P<<15|J>>>17,Be=Z<<29|N>>>3,Ce=N<<29|Z>>>3,zr=X<<28|C>>>4,Le=C<<28|X>>>4,Re=I<<23|F>>>9,Er=F<<23|I>>>9,De=O<<25|V>>>7,Oe=V<<25|O>>>7,mr=k<<21|H>>>11,yr=H<<21|k>>>11,xr=U<<24|Q>>>8,wr=Q<<24|U>>>8,Ar=G<<27|ee>>>5,Hr=ee<<27|G>>>5,Gr=K<<20|re>>>12,Xr=re<<20|K>>>12,Zr=oe<<7|Fe>>>25,Kr=Fe<<7|oe>>>25,Vr=ce<<8|Ne>>>24,jr=Ne<<8|ce>>>24,Qr=ae<<14|fe>>>18,Yr=fe<<14|ae>>>18;r[0]=Je^~Or&qr,r[1]=be^~ye&Te,r[10]=zr^~Gr&le,r[11]=Le^~Xr&he,r[20]=ge^~_e&De,r[21]=me^~Ee&Oe,r[30]=Ar^~pe&xe,r[31]=Hr^~_r&kr,r[40]=Se^~Re&Zr,r[41]=Jr^~Er&Kr,r[2]=Or^~qr&mr,r[3]=ye^~Te&yr,r[12]=Gr^~le&we,r[13]=Xr^~he&Ae,r[22]=_e^~De&Vr,r[23]=Ee^~Oe&jr,r[32]=pe^~xe&Pe,r[33]=_r^~kr&Ur,r[42]=Re^~Zr&He,r[43]=Er^~Kr&ue,r[4]=qr^~mr&Qr,r[5]=Te^~yr&Yr,r[14]=le^~we&Be,r[15]=he^~Ae&Ce,r[24]=De^~Vr&se,r[25]=Oe^~jr&Dr,r[34]=xe^~Pe&xr,r[35]=kr^~Ur&wr,r[44]=Zr^~He&Nr,r[45]=Kr^~ue&Me,r[6]=mr^~Qr&Je,r[7]=yr^~Yr&be,r[16]=we^~Be&zr,r[17]=Ae^~Ce&Le,r[26]=Vr^~se&ge,r[27]=jr^~Dr&me,r[36]=Pe^~xr&Ar,r[37]=Ur^~wr&Hr,r[46]=He^~Nr&Se,r[47]=ue^~Me&Jr,r[8]=Qr^~Je&Or,r[9]=Yr^~be&ye,r[18]=Be^~zr&Gr,r[19]=Ce^~Le&Xr,r[28]=se^~ge&_e,r[29]=Dr^~me&Ee,r[38]=xr^~Ar&pe,r[39]=wr^~Hr&_r,r[48]=Nr^~Se&Re,r[49]=Me^~Jr&Er,r[0]^=NS[e*2],r[1]^=NS[e*2+1]}}});var zS=z((A$,US)=>{var M$=A(_()),J1=qS();function yc(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}yc.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};yc.prototype.absorb=function(r){for(let e=0;e<r.length;++e)this.state[~~(this.count/4)]^=r[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(J1.p1600(this.state),this.count=0)};yc.prototype.absorbLastFewBits=function(r){this.state[~~(this.count/4)]^=r<<8*(this.count%4),r&128&&this.count===this.blockSize-1&&J1.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),J1.p1600(this.state),this.count=0,this.squeezing=!0};yc.prototype.squeeze=function(r){this.squeezing||this.absorbLastFewBits(1);let e=Buffer.alloc(r);for(let t=0;t<r;++t)e[t]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(J1.p1600(this.state),this.count=0);return e};yc.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};US.exports=yc});var GS=z((S$,HS)=>{var _$=A(_());HS.exports=Xg()(zS())});var XS=z((E$,Zg)=>{var T$=A(_());try{Zg.exports=kS()}catch{Zg.exports=GS()}});var Tie=A(_(),1);var Rte=A(_(),1);var Zz=A(_(),1);var Dz=A(_(),1),Pt={module:"ISShJH1ij-hPPt9St5UFFr_8Ys3Kj5cyg7zrMGt7H9s",scheduler:"_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA",mu:"fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY",src:{asset:"LlyF5s11sJIWvfNbkH-tavR-P7IJfTvkHHOdlwtGIJM",collection:"EmeE2B70hVDdhr9fWou3i_nKARSb_6LXvxRFTH67qvU",collectionActivity:"8cQtC9TsWURFzboq1aozm8VbzRBc5GGVt7yB80kapfc",comments:"RvozS-4Mbcmq66gPapsNOyERkg3LrpR0vSRKz8wIi4k",zone:{id:"eDZu7f4RKNT0TawGluj0Uo-qN-rQqleWR-rIgF26A5A",version:"0.0.4"}},collectionRegistry:"zwKi27GuKS3GOlwL3EhNGH02SJDDAO5Uy43ZJwomhZ4"},l3={defaultNode:"https://forward.computer"},h3={"application/json":{type:"application/json",serialize:r=>JSON.stringify(r)}},Aa={arweave:"arweave.net",ao:"ao-search-gateway.goldsky.com"};var pr={keys:{access:"Access-Fee",ans110:{title:"Title",description:"Description",topic:"Topic:*",type:"Type",implements:"Implements",license:"License"},assetType:"Asset-Type",banner:"Banner",bootloader:"Bootloader",collectionId:"Collection-Id",collectionName:"Collection-Name",commericalUse:"Commercial-Use",contentType:"Content-Type",creator:"Creator",currency:"Currency",dataModelTraining:"Data-Model-Training",dataProtocol:"Data-Protocol",dateCreated:"Date-Created",derivations:"Derivations",description:"Description",displayName:"Display-Name",handle:"Handle",implements:"Implements",initialOwner:"Initial-Owner",license:"License",name:"Name",onBoot:"On-Boot",paymentAddress:"Payment-Address",paymentMode:"Payment-Mode",profileCreator:"Profile-Creator",profileIndex:"Profile-Index",protocolName:"Protocol-Name",renderWith:"Render-With",thumbnail:"Thumbnail",title:"Title",topic:"Topic",type:"Type",zoneType:"Zone-Type"},values:{dataProtocol:"ao",document:"Document",user:"User"}},ab={node1:"https://turbo.ardrive.io",batchSize:1,chunkSize:75e5,dispatchUploadSize:100*1024};var Uz=A(_(),1);var Nz=A(_(),1);function dn(r){return r?/^[a-z0-9_-]{43}$/i.test(r):!1}function $u(r,e){for(let t=0;t<r.length;t++)if(r[t]&&r[t].name===e)return r[t].value;return null}function b3(r){let e=r.match(/^data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+);base64,/);return e?e[1]:null}function p3(r){return r.split(",")[1]}function v3(r){let e;if(Buffer.isBuffer(r))e=r.length;else if(typeof r=="string")e=Buffer.byteLength(r,"utf-8");else throw new Error("Input must be a string or a Buffer");return e}function ob(r){let e;return e=r.replace(/\[|\]/g,""),`[[${e}]]`}function Ac(r){let e;return e=r.replace(/\[|\]/g,""),e}var Zi=(...r)=>{console.log("[@permaweb/libs]",...r)};function G_(r){return r.replace(/^[a-z]/,e=>e.toUpperCase())}function qs(r){return Array.isArray(r)?r.map(qs):r&&typeof r=="object"?Object.entries(r).reduce((e,[t,n])=>{let i=G_(t);return e[i]=dn(n)?n:qs(n),e},{}):r}function X_(r){return r.charAt(0).toLowerCase()+r.slice(1)}function ln(r){return Array.isArray(r)?r.map(ln):r&&typeof r=="object"?Object.entries(r).reduce((e,[t,n])=>{let i=dn(t)||t.includes("-")?t:X_(t);return e[i]=dn(n)?n:ln(n),e},{}):r}function hi(r,e){let t=r.charAt(0).toUpperCase()+r.slice(1);return{name:`${pr.keys.bootloader}-${t}`,value:e}}function ed(r){return dn(r)||r.startsWith("data")}var Z_="https://arweave.net";function rd(r){return`${Z_}/${r}`}async function K_(r,e){let t=[{name:"Authority",value:r.node?.authority??Pt.mu}];e.tags&&e.tags.length>0&&e.tags.forEach(n=>t.push(n));try{let n=await r.ao.spawn({module:e.module,scheduler:r.node?.scheduler||e.scheduler,signer:r.signer,tags:t,data:e.data});return Zi(`Process ID: ${n}`),Zi("Sending initial message..."),await Nt(r,{processId:n,action:"Init"}),n}catch(n){throw console.log(n),new Error(n.message??"Error spawning process")}}function g3(r){return async e=>await Nt(r,e)}async function Nt(r,e){try{let t=[{name:"Action",value:e.action},{name:"Message-Timestamp",value:new Date().getTime().toString()}];e.tags&&t.push(...e.tags);let n=e.useRawData?e.data:JSON.stringify(e.data);return await r.ao.message({process:e.processId,signer:r.signer,tags:t,data:n})}catch(t){throw new Error(t)}}function m3(r){return async e=>await so(r,e)}async function so(r,e){let n=`${r.node?.url??l3.defaultNode}/${e.processId}~process@1.0/now/${e.path}`;e.serialize&&(n+="/serialize~json@1.0");try{let i=await fetch(n);if(i.ok)return i.json();throw new Error("Error getting state from HyperBEAM.")}catch(i){if(e.fallbackAction)return await td(r,{processId:e.processId,action:e.fallbackAction});throw i}}function y3(r){return async e=>await td(r,e)}async function td(r,e){try{let t=[{name:"Action",value:e.action}];e.tags&&t.push(...e.tags);let n;if(typeof e.data=="object")n=JSON.stringify(e.data||{});else if(typeof e.data=="string"){try{JSON.parse(e.data)}catch(f){throw console.error(f),new Error("Invalid JSON data")}n=e.data}let i=await r.ao.dryrun({process:e.processId,tags:t,data:n});if(i.Messages&&i.Messages.length){if(i.Messages[0].Data)return JSON.parse(i.Messages[0].Data);if(i.Messages[0].Tags)return i.Messages[0].Tags.reduce((f,h)=>(f[h.name]=h.value,f),{})}}catch(t){throw new Error(t.message??"Error dryrunning process")}}async function V_(r,e){try{let{Messages:t}=await r.ao.result({message:e.messageId,process:e.processId});if(t&&t.length){let n={};return t.forEach(i=>{let f=$u(i.Tags,"Action")||e.action,h=null,p=i.Data;if(p)try{h=JSON.parse(p)}catch{h=p}let y=$u(i.Tags,"Status"),x=$u(i.Tags,"Message");n[f]={id:e.messageId,status:y,message:x,data:h}}),n}else return null}catch(t){console.error(t)}}async function Mc(r,e){let t=null;if(e.evalSrc)t=e.evalSrc;else if(e.evalTxId)try{t=await(await fetch(rd(e.evalTxId))).text()}catch(n){throw new Error(n)}if(t)try{let n=await Nt(r,{processId:e.processId,action:"Eval",data:t,tags:e.evalTags||null,useRawData:!0});return Zi(`Eval: ${n}`),await V_(r,{processId:e.processId,messageId:n,action:"Eval"})}catch(n){throw new Error(n.message??"Error sending process eval")}return null}function co(r){return async(e,t)=>{try{let n={module:e.module||Pt.module,scheduler:r.node?.scheduler||Pt.scheduler};e.data&&(n.data=e.data),e.tags&&(n.tags=e.tags),t&&t("Spawning process...");let i=await K_(r,n);if(e.evalTxId||e.evalSrc){t&&t("Process retrieved!"),t&&t("Sending eval...");try{await Mc(r,{processId:i,evalTxId:e.evalTxId||null,evalSrc:e.evalSrc||null,evalTags:e.evalTags})&&t&&t("Eval complete")}catch(f){throw new Error(f.message??"Error creating process")}}return i}catch(n){throw new Error(n.message??"Error creating process")}}}var Pte=A(_(),1);var wte=A(_(),1);var r3={};f3(r3,{AVSCTap:()=>Vu,AlgorandSigner:()=>Ju,AptosSigner:()=>Uu,ArconnectSigner:()=>Os,Arweave:()=>xm.default,ArweaveSigner:()=>Pf,Bundle:()=>V1,BundleItem:()=>e3,CryptoDriver:()=>gd,Curve25519:()=>$i,DataItem:()=>X1,EthereumSigner:()=>un,HexInjectedSolanaSigner:()=>Rs,HexSolanaSigner:()=>qu,InjectedAptosSigner:()=>Is,InjectedEthereumSigner:()=>ng,InjectedSolanaSigner:()=>Bf,InjectedTypedEthereumSigner:()=>Qg,KyveSigner:()=>Gu,MAX_TAG_BYTES:()=>G1,MIN_BINARY_SIZE:()=>Z1,MultiSignatureAptosSigner:()=>Fs,NearSigner:()=>Nu,PolygonSigner:()=>ku,Rsa4096:()=>Ef,SIG_CONFIG:()=>ze,SignatureConfig:()=>ke,Signer:()=>fb,SolanaSigner:()=>To,Transaction:()=>ym.default,TypedEthereumSigner:()=>Ds,bundleAndSignData:()=>uz,byteArrayToLong:()=>wt,concatBuffers:()=>gr.concatBuffers,createData:()=>Yu,deepHash:()=>Oo,deserializeTags:()=>xc,exportForTesting:()=>nz,getCryptoDriver:()=>Mt,getSignatureAndId:()=>o_,indexToType:()=>Xu,keccak256:()=>Kg,longTo16ByteArray:()=>oz,longTo32ByteArray:()=>H1,longTo8ByteArray:()=>z1,longToNByteArray:()=>Ku,secp256k1:()=>Ls,serializeTags:()=>Wg,shortTo2ByteArray:()=>Yg,sign:()=>K1,stringToBuffer:()=>gr.stringToBuffer,unbundleData:()=>cz});var jre=A(_(),1);var tre=A(_(),1);var Vz=A(_(),1),fb=class{publicKey;signatureType;signatureLength;ownerLength;pem;static verify(e,t,n,i){throw new Error("You must implement verify method on child")}};var jee=A(_(),1);var uH=A(_(),1),L3=A(hn(),1);var tH=A(_(),1),ke;(function(r){r[r.ARWEAVE=1]="ARWEAVE",r[r.ED25519=2]="ED25519",r[r.ETHEREUM=3]="ETHEREUM",r[r.SOLANA=4]="SOLANA",r[r.INJECTEDAPTOS=5]="INJECTEDAPTOS",r[r.MULTIAPTOS=6]="MULTIAPTOS",r[r.TYPEDETHEREUM=7]="TYPEDETHEREUM",r[r.KYVE=101]="KYVE"})(ke||(ke={}));var ze={[ke.ARWEAVE]:{sigLength:512,pubLength:512,sigName:"arweave"},[ke.ED25519]:{sigLength:64,pubLength:32,sigName:"ed25519"},[ke.ETHEREUM]:{sigLength:65,pubLength:65,sigName:"ethereum"},[ke.SOLANA]:{sigLength:64,pubLength:32,sigName:"solana"},[ke.INJECTEDAPTOS]:{sigLength:64,pubLength:32,sigName:"injectedAptos"},[ke.MULTIAPTOS]:{sigLength:64*32+4,pubLength:32*32+1,sigName:"multiAptos"},[ke.TYPEDETHEREUM]:{sigLength:65,pubLength:42,sigName:"typedEthereum"},[ke.KYVE]:{sigLength:65,pubLength:65,sigName:"kyve"}};var oH=A(_(),1);import $_ from"crypto";var Jt=BigInt(0),je=BigInt(1),zi=BigInt(2),E3=BigInt(255),M3=zi**BigInt(252)+BigInt("27742317777372353535851937790883648493"),Ir={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:zi**E3-BigInt(19),l:M3,n:M3,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")};var T3=zi**BigInt(256),Sc=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),nH=BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),eE=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),rE=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),tE=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),iE=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),qt=class r{constructor(e,t,n,i){this.x=e,this.y=t,this.z=n,this.t=i}static fromAffine(e){if(!(e instanceof Bt))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return e.equals(Bt.ZERO)?r.ZERO:new r(e.x,e.y,je,Ie(e.x*e.y))}static toAffineBatch(e){let t=oE(e.map(n=>n.z));return e.map((n,i)=>n.toAffine(t[i]))}static normalizeZ(e){return this.toAffineBatch(e).map(this.fromAffine)}equals(e){S3(e);let{x:t,y:n,z:i}=this,{x:f,y:h,z:p}=e,y=Ie(t*p),x=Ie(f*i),S=Ie(n*p),T=Ie(h*i);return y===x&&S===T}negate(){return new r(Ie(-this.x),this.y,this.z,Ie(-this.t))}double(){let{x:e,y:t,z:n}=this,{a:i}=Ir,f=Ie(e**zi),h=Ie(t**zi),p=Ie(zi*Ie(n**zi)),y=Ie(i*f),x=Ie(Ie((e+t)**zi)-f-h),S=y+h,T=S-p,L=y-h,R=Ie(x*T),B=Ie(S*L),D=Ie(x*L),j=Ie(T*S);return new r(R,B,j,D)}add(e){S3(e);let{x:t,y:n,z:i,t:f}=this,{x:h,y:p,z:y,t:x}=e,S=Ie((n-t)*(p+h)),T=Ie((n+t)*(p-h)),L=Ie(T-S);if(L===Jt)return this.double();let R=Ie(i*zi*x),B=Ie(f*zi*y),D=B+R,j=T+S,q=B-R,ie=Ie(D*L),Y=Ie(j*q),de=Ie(D*q),ne=Ie(L*j);return new r(ie,Y,ne,de)}subtract(e){return this.add(e.negate())}precomputeWindow(e){let t=1+256/e,n=[],i=this,f=i;for(let h=0;h<t;h++){f=i,n.push(f);for(let p=1;p<2**(e-1);p++)f=f.add(i),n.push(f);i=f.double()}return n}wNAF(e,t){!t&&this.equals(r.BASE)&&(t=Bt.BASE);let n=t&&t._WINDOW_SIZE||1;if(256%n)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let i=t&&pb.get(t);i||(i=this.precomputeWindow(n),t&&n!==1&&(i=r.normalizeZ(i),pb.set(t,i)));let f=r.ZERO,h=r.ZERO,p=1+256/n,y=2**(n-1),x=BigInt(2**n-1),S=2**n,T=BigInt(n);for(let L=0;L<p;L++){let R=L*y,B=Number(e&x);if(e>>=T,B>y&&(B-=S,e+=je),B===0){let D=i[R];L%2&&(D=D.negate()),h=h.add(D)}else{let D=i[R+Math.abs(B)-1];B<0&&(D=D.negate()),f=f.add(D)}}return r.normalizeZ([f,h])[0]}multiply(e,t){return this.wNAF(nd(e,Ir.l),t)}multiplyUnsafe(e){let t=nd(e,Ir.l,!1),n=r.BASE,i=r.ZERO;if(t===Jt)return i;if(this.equals(i)||t===je)return this;if(this.equals(n))return this.wNAF(t);let f=i,h=this;for(;t>Jt;)t&je&&(f=f.add(h)),h=h.double(),t>>=je;return f}isSmallOrder(){return this.multiplyUnsafe(Ir.h).equals(r.ZERO)}isTorsionFree(){return this.multiplyUnsafe(Ir.l).equals(r.ZERO)}toAffine(e=ad(this.z)){let{x:t,y:n,z:i}=this,f=Ie(t*e),h=Ie(n*e);if(Ie(i*e)!==je)throw new Error("invZ was invalid");return new Bt(f,h)}fromRistrettoBytes(){hb()}toRistrettoBytes(){hb()}fromRistrettoHash(){hb()}};qt.BASE=new qt(Ir.Gx,Ir.Gy,je,Ie(Ir.Gx*Ir.Gy));qt.ZERO=new qt(Jt,je,je,Jt);function S3(r){if(!(r instanceof qt))throw new TypeError("ExtendedPoint expected")}function lb(r){if(!(r instanceof Sf))throw new TypeError("RistrettoPoint expected")}function hb(){throw new Error("Legacy method: switch to RistrettoPoint")}var Sf=class r{constructor(e){this.ep=e}static calcElligatorRistrettoMap(e){let{d:t}=Ir,n=Ie(Sc*e*e),i=Ie((n+je)*tE),f=BigInt(-1),h=Ie((f-t*n)*Ie(n+t)),{isValid:p,value:y}=gb(i,h),x=Ie(y*e);Io(x)||(x=Ie(-x)),p||(y=x),p||(f=n);let S=Ie(f*(n-je)*iE-h),T=y*y,L=Ie((y+y)*h),R=Ie(S*eE),B=Ie(je-T),D=Ie(je+T);return new qt(Ie(L*D),Ie(B*R),Ie(R*D),Ie(L*B))}static hashToCurve(e){e=Fo(e,64);let t=bb(e.slice(0,32)),n=this.calcElligatorRistrettoMap(t),i=bb(e.slice(32,64)),f=this.calcElligatorRistrettoMap(i);return new r(n.add(f))}static fromHex(e){e=Fo(e,32);let{a:t,d:n}=Ir,i="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",f=bb(e);if(!sE(Ec(f),e)||Io(f))throw new Error(i);let h=Ie(f*f),p=Ie(je+t*h),y=Ie(je-t*h),x=Ie(p*p),S=Ie(y*y),T=Ie(t*n*x-S),{isValid:L,value:R}=_3(Ie(T*S)),B=Ie(R*y),D=Ie(R*B*T),j=Ie((f+f)*B);Io(j)&&(j=Ie(-j));let q=Ie(p*D),ie=Ie(j*q);if(!L||Io(ie)||q===Jt)throw new Error(i);return new r(new qt(j,q,je,ie))}toRawBytes(){let{x:e,y:t,z:n,t:i}=this.ep,f=Ie(Ie(n+t)*Ie(n-t)),h=Ie(e*t),{value:p}=_3(Ie(f*h**zi)),y=Ie(p*f),x=Ie(p*h),S=Ie(y*x*i),T;if(Io(i*S)){let R=Ie(t*Sc),B=Ie(e*Sc);e=R,t=B,T=Ie(y*rE)}else T=x;Io(e*S)&&(t=Ie(-t));let L=Ie((n-t)*T);return Io(L)&&(L=Ie(-L)),Ec(L)}toHex(){return Tc(this.toRawBytes())}toString(){return this.toHex()}equals(e){lb(e);let t=this.ep,n=e.ep,i=Ie(t.x*n.y)===Ie(t.y*n.x),f=Ie(t.y*n.y)===Ie(t.x*n.x);return i||f}add(e){return lb(e),new r(this.ep.add(e.ep))}subtract(e){return lb(e),new r(this.ep.subtract(e.ep))}multiply(e){return new r(this.ep.multiply(e))}multiplyUnsafe(e){return new r(this.ep.multiplyUnsafe(e))}};Sf.BASE=new Sf(qt.BASE);Sf.ZERO=new Sf(qt.ZERO);var pb=new WeakMap,Bt=class r{constructor(e,t){this.x=e,this.y=t}_setWindowSize(e){this._WINDOW_SIZE=e,pb.delete(this)}static fromHex(e,t=!0){let{d:n,P:i}=Ir;e=Fo(e,32);let f=e.slice();f[31]=e[31]&-129;let h=zs(f);if(t&&h>=i)throw new Error("Expected 0 < hex < P");if(!t&&h>=T3)throw new Error("Expected 0 < hex < 2**256");let p=Ie(h*h),y=Ie(p-je),x=Ie(n*p+je),{isValid:S,value:T}=gb(y,x);if(!S)throw new Error("Point.fromHex: invalid y coordinate");let L=(T&je)===je;return(e[31]&128)!==0!==L&&(T=Ie(-T)),new r(T,h)}static async fromPrivateKey(e){return(await mb(e)).point}toRawBytes(){let e=Ec(this.y);return e[31]|=this.x&je?128:0,e}toHex(){return Tc(this.toRawBytes())}toX25519(){let{y:e}=this,t=Ie((je+e)*ad(je-e));return Ec(t)}isTorsionFree(){return qt.fromAffine(this).isTorsionFree()}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new r(Ie(-this.x),this.y)}add(e){return qt.fromAffine(this).add(qt.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return qt.fromAffine(this).multiply(e,this).toAffine()}};Bt.BASE=new Bt(Ir.Gx,Ir.Gy);Bt.ZERO=new Bt(Jt,je);var _c=class r{constructor(e,t){this.r=e,this.s=t,this.assertValidity()}static fromHex(e){let t=Fo(e,64),n=Bt.fromHex(t.slice(0,32),!1),i=zs(t.slice(32,64));return new r(n,i)}assertValidity(){let{r:e,s:t}=this;if(!(e instanceof Bt))throw new Error("Expected Point instance");return nd(t,Ir.l,!1),this}toRawBytes(){let e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(Ec(this.s),32),e}toHex(){return Tc(this.toRawBytes())}};function nE(...r){if(!r.every(n=>n instanceof Uint8Array))throw new Error("Expected Uint8Array list");if(r.length===1)return r[0];let e=r.reduce((n,i)=>n+i.length,0),t=new Uint8Array(e);for(let n=0,i=0;n<r.length;n++){let f=r[n];t.set(f,i),i+=f.length}return t}var aE=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function Tc(r){if(!(r instanceof Uint8Array))throw new Error("Uint8Array expected");let e="";for(let t=0;t<r.length;t++)e+=aE[r[t]];return e}function P3(r){if(typeof r!="string")throw new TypeError("hexToBytes: expected string, got "+typeof r);if(r.length%2)throw new Error("hexToBytes: received invalid unpadded hex");let e=new Uint8Array(r.length/2);for(let t=0;t<e.length;t++){let n=t*2,i=r.slice(n,n+2),f=Number.parseInt(i,16);if(Number.isNaN(f)||f<0)throw new Error("Invalid byte sequence");e[t]=f}return e}function B3(r){let t=r.toString(16).padStart(64,"0");return P3(t)}function Ec(r){return B3(r).reverse()}function Io(r){return(Ie(r)&je)===je}function zs(r){if(!(r instanceof Uint8Array))throw new Error("Expected Uint8Array");return BigInt("0x"+Tc(Uint8Array.from(r).reverse()))}function bb(r){return Ie(zs(r)&zi**E3-je)}function Ie(r,e=Ir.P){let t=r%e;return t>=Jt?t:e+t}function ad(r,e=Ir.P){if(r===Jt||e<=Jt)throw new Error(`invert: expected positive integers, got n=${r} mod=${e}`);let t=Ie(r,e),n=e,i=Jt,f=je,h=je,p=Jt;for(;t!==Jt;){let x=n/t,S=n%t,T=i-h*x,L=f-p*x;n=t,t=S,i=h,f=p,h=T,p=L}if(n!==je)throw new Error("invert: does not exist");return Ie(i,e)}function oE(r,e=Ir.P){let t=new Array(r.length),n=r.reduce((f,h,p)=>h===Jt?f:(t[p]=f,Ie(f*h,e)),je),i=ad(n,e);return r.reduceRight((f,h,p)=>h===Jt?f:(t[p]=Ie(f*t[p],e),Ie(f*h,e)),i),t}function Ma(r,e){let{P:t}=Ir,n=r;for(;e-- >Jt;)n*=n,n%=t;return n}function fE(r){let{P:e}=Ir,t=BigInt(5),n=BigInt(10),i=BigInt(20),f=BigInt(40),h=BigInt(80),y=r*r%e*r%e,x=Ma(y,zi)*y%e,S=Ma(x,je)*r%e,T=Ma(S,t)*S%e,L=Ma(T,n)*T%e,R=Ma(L,i)*L%e,B=Ma(R,f)*R%e,D=Ma(B,h)*B%e,j=Ma(D,h)*B%e,q=Ma(j,n)*T%e;return{pow_p_5_8:Ma(q,zi)*r%e,b2:y}}function gb(r,e){let t=Ie(e*e*e),n=Ie(t*t*e),i=fE(r*n).pow_p_5_8,f=Ie(r*t*i),h=Ie(e*f*f),p=f,y=Ie(f*Sc),x=h===r,S=h===Ie(-r),T=h===Ie(-r*Sc);return x&&(f=p),(S||T)&&(f=y),Io(f)&&(f=Ie(-f)),{isValid:x||S,value:f}}function _3(r){return gb(je,r)}async function vb(...r){let e=await yb.sha512(nE(...r)),t=zs(e);return Ie(t,Ir.l)}function sE(r,e){if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function Fo(r,e){let t=r instanceof Uint8Array?Uint8Array.from(r):P3(r);if(typeof e=="number"&&t.length!==e)throw new Error(`Expected ${e} bytes`);return t}function nd(r,e,t=!0){if(!e)throw new TypeError("Specify max value");if(typeof r=="number"&&Number.isSafeInteger(r)&&(r=BigInt(r)),typeof r=="bigint"&&r<e){if(t){if(Jt<r)return r}else if(Jt<=r)return r}throw new TypeError("Expected valid scalar: 0 < scalar < max")}function cE(r){return r[0]&=248,r[31]&=127,r[31]|=64,r}async function mb(r){if(r=typeof r=="bigint"||typeof r=="number"?B3(nd(r,T3)):Fo(r),r.length!==32)throw new Error("Expected 32 bytes");let e=await yb.sha512(r),t=cE(e.slice(0,32)),n=e.slice(32,64),i=Ie(zs(t),Ir.l),f=Bt.BASE.multiply(i),h=f.toRawBytes();return{head:t,prefix:n,scalar:i,point:f,pointBytes:h}}async function C3(r,e){r=Fo(r);let{prefix:t,scalar:n,pointBytes:i}=await mb(e),f=await vb(t,r),h=Bt.BASE.multiply(f),p=await vb(h.toRawBytes(),i,r),y=Ie(f+p*n,Ir.l);return new _c(h,y).toRawBytes()}async function Do(r,e,t){e=Fo(e),t instanceof Bt||(t=Bt.fromHex(t,!1));let{r:n,s:i}=r instanceof _c?r.assertValidity():_c.fromHex(r),f=qt.BASE.multiplyUnsafe(i),h=await vb(n.toRawBytes(),t.toRawBytes(),e),p=qt.fromAffine(t).multiplyUnsafe(h);return qt.fromAffine(n).add(p).subtract(f).multiplyUnsafe(Ir.h).equals(qt.ZERO)}Bt.BASE._setWindowSize(8);var Ro={node:$_,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},yb={TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],bytesToHex:Tc,getExtendedPublicKey:mb,mod:Ie,invert:ad,hashToPrivateScalar:r=>{if(r=Fo(r),r.length<40||r.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");let e=Ie(zs(r),Ir.l);if(e===Jt||e===je)throw new Error("Invalid private key");return e},randomBytes:(r=32)=>{if(Ro.web)return Ro.web.getRandomValues(new Uint8Array(r));if(Ro.node){let{randomBytes:e}=Ro.node;return new Uint8Array(e(r).buffer)}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>yb.randomBytes(32),sha512:async r=>{if(Ro.web){let e=await Ro.web.subtle.digest("SHA-512",r.buffer);return new Uint8Array(e)}else{if(Ro.node)return Uint8Array.from(Ro.node.createHash("sha512").update(r).digest());throw new Error("The environment doesn't have sha512 function")}},precompute(r=8,e=Bt.BASE){let t=e.equals(Bt.BASE)?e:new Bt(e.x,e.y);return t._setWindowSize(r),t.multiply(zi),t}};var $i=class{_key;pk;ownerLength=ze[2].pubLength;signatureLength=ze[2].sigLength;_publicKey;get publicKey(){return this._publicKey}signatureType=2;constructor(e,t){this._key=e,this.pk=t}get key(){throw new Error("You must implement `key`")}sign(e){return C3(Buffer.from(e),Buffer.from(this.key))}static async verify(e,t,n){let i=e;return typeof e=="string"&&(i=L3.default.toBuffer(e)),Do(Buffer.from(n),Buffer.from(t),Buffer.from(i))}};var Pee=A(_(),1);var WG=A(_(),1);var cG=A(_(),1);var iG=A(_(),1),gr=A(Gn(),1);var mH=A(_(),1);import{createHash as xE}from"crypto";async function Oo(r){if(typeof r[Symbol.asyncIterator]=="function"){let i=r,f=xE("sha384"),h=0;for await(let x of i)h+=x.byteLength,f.update(x);let p=(0,gr.concatBuffers)([(0,gr.stringToBuffer)("blob"),(0,gr.stringToBuffer)(h.toString())]),y=(0,gr.concatBuffers)([await Mt().hash(p,"SHA-384"),f.digest()]);return await Mt().hash(y,"SHA-384")}else if(Array.isArray(r)){let i=(0,gr.concatBuffers)([(0,gr.stringToBuffer)("list"),(0,gr.stringToBuffer)(r.length.toString())]);return await H3(r,await Mt().hash(i,"SHA-384"))}let e=r,t=(0,gr.concatBuffers)([(0,gr.stringToBuffer)("blob"),(0,gr.stringToBuffer)(e.byteLength.toString())]),n=(0,gr.concatBuffers)([await Mt().hash(t,"SHA-384"),await Mt().hash(e,"SHA-384")]);return await Mt().hash(n,"SHA-384")}async function H3(r,e){if(r.length<1)return e;let t=(0,gr.concatBuffers)([e,await Oo(r[0])]),n=await Mt().hash(t,"SHA-384");return await H3(r.slice(1),n)}var vd=A(Mb(),1),ym=A(Ic(),1),xm=A(mm(),1),QE=vd.default.default?vd.default.default:vd.default,gd=class extends QE{getPublicKey(e){throw new Error("Unimplemented")}},YE;function Mt(){return YE??=new gd}var wm=A(hn(),1);import{constants as WE,createSign as $E}from"crypto";var Ef=class{_key;pk;signatureType=1;ownerLength=ze[1].pubLength;signatureLength=ze[1].sigLength;_publicKey;get publicKey(){return this._publicKey}constructor(e,t){this._key=e,this.pk=t,t||(this.pk=Mt().getPublicKey(JSON.parse(e)))}sign(e){return $E("sha256").update(e).sign({key:this._key,padding:WE.RSA_PKCS1_PSS_PADDING})}static async verify(e,t,n){return await Mt().verify(Buffer.isBuffer(e)?wm.default.encode(e):e,t,n)}};var d6=A(u6(),1),l6=A(hn(),1);var Pf=class extends Ef{jwk;constructor(e){super((0,d6.jwkTopem)(e),e.n),this.jwk=e}get publicKey(){if(!this.pk)throw new Error("ArweaveSigner - pk is undefined");return l6.default.toBuffer(this.pk)}sign(e){return Mt().sign(this.jwk,e)}static async verify(e,t,n){return await Mt().verify(e,t,n)}};var tX=A(_(),1),h6=A(hn(),1);var Bf=class{_publicKey;ownerLength=ze[2].pubLength;signatureLength=ze[2].sigLength;signatureType=2;pem;provider;constructor(e){if(this.provider=e,!this.provider.publicKey)throw new Error("InjectedSolanaSigner - provider.publicKey is undefined");this._publicKey=this.provider.publicKey.toBuffer()}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");return await this.provider.signMessage(e)}static async verify(e,t,n){let i=e;return typeof e=="string"&&(i=h6.default.toBuffer(e)),Do(Buffer.from(n),Buffer.from(t),Buffer.from(i))}};var oW=A(_(),1),ZA=A(xl(),1),KA=A(Nl(),1);var ig=A(vo(),1),VA=A(Pv(),1),jA=A(Eu(),1),ng=class{signer;publicKey;ownerLength=ze[ke.ETHEREUM].pubLength;signatureLength=ze[ke.ETHEREUM].sigLength;signatureType=ke.ETHEREUM;constructor(e){this.signer=e.getSigner()}async setPublicKey(){let e="sign this message to connect to Bundlr.Network",t=await this.signer.signMessage(e),n=await(0,ZA.hashMessage)(e),i=(0,KA.recoverPublicKey)((0,ig.arrayify)(n),t);this.publicKey=Buffer.from((0,ig.arrayify)(i))}async sign(e){this.publicKey||await this.setPublicKey();let t=await this.signer.signMessage(e);return Buffer.from(t.slice(2),"hex")}static verify(e,t,n){let i=(0,VA.computeAddress)(e);return(0,jA.verifyMessage)(t,n)===i}};var bW=A(_(),1);var lc=A(tM(),1),To=class extends $i{get publicKey(){return lc.default.decode(this.pk)}get key(){return lc.default.decode(this._key)}constructor(e){let t=lc.default.decode(e);super(lc.default.encode(t.subarray(0,32)),lc.default.encode(t.subarray(32,64)))}};var q$=A(_(),1);var k$=A(_(),1);var F$=A(_(),1),$S=A(hn(),1),Vg=A(vg(),1);var C$=A(_(),1),ZS=A(XS(),1);import{Buffer as Cs}from"buffer";function Kg(r){return r=KS(r),(0,ZS.default)("keccak256").update(r).digest()}function KS(r){if(!Cs.isBuffer(r))if(Array.isArray(r))r=Cs.from(r);else if(typeof r=="string")VS(r)?r=Cs.from(q1(jS(r)),"hex"):r=Cs.from(r);else if(typeof r=="number")r=YS(r);else if(typeof r=="bigint")r=iz(r);else if(r==null)r=Cs.allocUnsafe(0);else throw new Error("invalid type");return r}function VS(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function q1(r){if(typeof r!="string")throw new Error(`while padding to even, value must be string, is currently ${typeof r}, while padToEven.`);return r.length%2&&(r=`0${r}`),r}function jS(r){return typeof r!="string"?r:QS(r)?r.slice(2):r}function QS(r){if(typeof r!="string")throw new Error("value must be type 'string', is currently type "+typeof r+", while checking isHexPrefixed.");return r.startsWith("0x")}function YS(r){let e=WS(r);return Cs.from(q1(e.slice(2)),"hex")}function WS(r){return`0x${r.toString(16)}`}function iz(r){let e=r.toString(16);return Cs.from(q1(e),"hex")}typeof window<"u"&&(window.keccak256=Kg);var Ou=Kg,nz={intToBuffer:YS,intToHex:WS,isHexPrefixed:QS,stripHexPrefix:jS,padToEven:q1,isHexString:VS,toBuffer:KS};var Ls=class{_key;ownerLength=ze[ke.ETHEREUM].pubLength;signatureLength=ze[ke.ETHEREUM].sigLength;signatureType=ke.ETHEREUM;pk;constructor(e,t){this._key=e,this.pk=t.toString("hex")}get publicKey(){throw new Error("You must implement `publicKey`")}get key(){return Buffer.from(this._key,"hex")}static async verify(e,t,n){let i=e;typeof e=="string"&&(i=$S.default.toBuffer(e));let f=!1;try{f=Vg.default.ecdsaVerify(n,Ou(Buffer.from(t)),i)}catch{}return f}async sign(e){return Vg.default.ecdsaSign(Ou(Buffer.from(e)),Buffer.from(this.key)).signature}};var jg=A(vg(),1),e_=A(hn(),1),r_=A(vo(),1),t_=A(Eu(),1),i_=A(xl(),1),un=class extends Ls{get publicKey(){return Buffer.from(this.pk,"hex")}constructor(e){e.startsWith("0x")&&(e=e.slice(2));let t=Buffer.from(e,"hex"),n=jg.default.publicKeyCreate(t,!1);super(e,Buffer.from(n))}async sign(e){return new t_.Wallet(this._key).signMessage(e).then(n=>Buffer.from(n.slice(2),"hex"))}static async verify(e,t,n){return jg.default.ecdsaVerify(n.length===65?n.slice(0,-1):n,(0,r_.arrayify)((0,i_.hashMessage)(t)),typeof e=="string"?e_.default.toBuffer(e):e)}};var ku=class extends un{};var H$=A(_(),1);var Nu=class extends To{constructor(e){super(e.replace("ed25519:",""))}};var Z$=A(_(),1);var Ju=class extends $i{get publicKey(){return Buffer.from(this.pk)}get key(){return Buffer.from(this._key)}constructor(e,t){super(e.subarray(0,32),t)}};var j$=A(_(),1);var Rs=class extends Bf{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,t,n){return super.verify(e,Buffer.from(Buffer.from(t).toString("hex")),n)}};var W$=A(_(),1);var qu=class extends To{signatureType=4;constructor(e){super(e)}async sign(e){return super.sign(Buffer.from(Buffer.from(e).toString("hex")))}static async verify(e,t,n){return super.verify(e,Buffer.from(Buffer.from(t).toString("hex")),n)}};var ree=A(_(),1);var Uu=class extends $i{constructor(e,t){super(e,t)}get publicKey(){return Buffer.from(this.pk.slice(2),"hex")}get key(){return Buffer.from(this._key.slice(2),"hex")}};var aee=A(_(),1);var Is=class{_publicKey;ownerLength=ze[ke.INJECTEDAPTOS].pubLength;signatureLength=ze[ke.INJECTEDAPTOS].sigLength;signatureType=ke.INJECTEDAPTOS;pem;provider;constructor(e,t){this.provider=e,this._publicKey=t}get publicKey(){return this._publicKey}async sign(e){if(!this.provider.signMessage)throw new Error("Selected Wallet does not support message signing");let n=(await this.provider.signMessage({message:Buffer.from(e).toString("hex"),nonce:"bundlr"})).signature;return typeof n=="string"?Buffer.from(n,"hex"):n.data.toUint8Array()}static async verify(e,t,n){let i=e;return Do(Buffer.from(n),Buffer.from(`APTOS
16
16
  message: ${Buffer.from(t).toString("hex")}
17
17
  nonce: bundlr`),Buffer.from(i))}};var cee=A(_(),1);var Fs=class{_publicKey;ownerLength=ze[ke.MULTIAPTOS].pubLength;signatureLength=ze[ke.MULTIAPTOS].sigLength;signatureType=ke.MULTIAPTOS;collectSignatures;provider;constructor(e,t){this._publicKey=e,this.collectSignatures=t}get publicKey(){return this._publicKey}async sign(e){let{signatures:t,bitmap:n}=await this.collectSignatures(e),i=128,f=new Uint8Array([0,0,0,0]),h=new Set;n.forEach(x=>{if(x>=32)throw new Error(`Invalid bit value ${x}.`);if(h.has(x))throw new Error("Duplicated bits detected.");h.add(x);let S=Math.floor(x/8),T=f[S];T|=i>>x%8,f[S]=T});let p=Buffer.alloc(this.signatureLength),y=0;for(let x=0;x<32;x++)n.includes(x)&&p.set(t[y++],x*64);return p.set(f,this.signatureLength-4),p}static async verify(e,t,n){let f=ze[ke.MULTIAPTOS].sigLength-4,h=n.slice(0,f),p=n.slice(f),y=!1;for(let x=0;x<32;x++){let S=Math.floor(x/8),T=x-S*8;if((p[S]&128>>T)!==0){let R=h.slice(x*64,(x+1)*64),B=e.slice(x*32,(x+1)*32);await Do(Buffer.from(R),Buffer.from(t),Buffer.from(B))||(y=!0)}}return!y}};var bee=A(_(),1),U1=A(Eu(),1);var Ds=class extends un{ownerLength=ze[ke.TYPEDETHEREUM].pubLength;signatureLength=ze[ke.TYPEDETHEREUM].sigLength;signatureType=ke.TYPEDETHEREUM;address;signer;constructor(e){super(e),this.address="0x"+Ou(super.publicKey.slice(1)).slice(-20).toString("hex"),this.signer=new U1.Wallet(e)}get publicKey(){return Buffer.from(this.address)}async sign(e){let t=await this.signer._signTypedData(zu,Hu,{address:this.address,"Transaction hash":e});return Buffer.from(t.slice(2),"hex")}static async verify(e,t,n){let i=e.toString(),f=(0,U1.verifyTypedData)(zu,Hu,{address:i,"Transaction hash":t},n);return i.toLowerCase()===f.toLowerCase()}},zu={name:"Bundlr",version:"1"},Hu={Bundlr:[{name:"Transaction hash",type:"bytes"},{name:"address",type:"address"}]};var mee=A(_(),1);var n_=A(Eu(),1);var Qg=class{ownerLength=ze[ke.TYPEDETHEREUM].pubLength;signatureLength=ze[ke.TYPEDETHEREUM].sigLength;signatureType=ke.TYPEDETHEREUM;address;signer;publicKey;constructor(e){this.signer=e.getSigner()}async ready(){this.address=(await this.signer.getAddress()).toString().toLowerCase(),this.publicKey=Buffer.from(this.address)}async sign(e){let t=await this.signer._signTypedData(zu,Hu,{address:this.address,"Transaction hash":e});return Buffer.from(t.slice(2),"hex")}static verify(e,t,n){let i=e.toString(),f=(0,n_.verifyTypedData)(zu,Hu,{address:i,"Transaction hash":t},n);return i.toLowerCase()===f.toLowerCase()}};var Aee=A(_(),1);var a_=A(hn(),1);var Os=class{signer;publicKey;ownerLength=ze[ke.ARWEAVE].pubLength;signatureLength=ze[ke.ARWEAVE].sigLength;signatureType=ke.ARWEAVE;constructor(e){this.signer=e}async setPublicKey(){let e=await this.signer.getActivePublicKey();this.publicKey=a_.default.toBuffer(e)}async sign(e){this.publicKey||await this.setPublicKey();let t={name:"RSA-PSS",saltLength:32},n=await this.signer.signature(e,t);return new Uint8Array(Object.values(n).map(f=>+f))}static async verify(e,t,n){return await Mt().verify(e,t,n)}};var Eee=A(_(),1);var Gu=class extends un{signatureType=ke.KYVE};var Xu={1:Pf,2:$i,3:un,4:Rs,5:Is,6:Fs,7:Ds};var Yee=A(_(),1);var ure=A(_(),1);async function az(r){return Oo([(0,gr.stringToBuffer)("dataitem"),(0,gr.stringToBuffer)("1"),(0,gr.stringToBuffer)(r.signatureType.toString()),r.rawOwner,r.rawTarget,r.rawAnchor,r.rawTags,r.rawData])}var Zu=az;var kre=A(_(),1);var lre=A(_(),1);function Ku(r,e){let t=new Uint8Array(r);if(e<0)throw new Error("Array is unsigned, cannot represent -ve numbers");if(e>2**(r*8)-1)throw new Error(`Number ${e} is too large for an array of ${r} bytes`);for(let n=0;n<t.length;n++){let i=e&255;t[n]=i,e=(e-i)/256}return t}function z1(r){return Ku(8,r)}function Yg(r){return Ku(2,r)}function oz(r){return Ku(16,r)}function H1(r){return Ku(32,r)}function wt(r){let e=0;for(let t=r.length-1;t>=0;t--)e=e*256+r[t];return e}var Lre=A(_(),1),Qu=A(hn(),1);var Ere=A(_(),1);var Hn=A(hn(),1);import{Buffer as ju}from"buffer";var pre=A(_(),1);var Vu=class{buf;pos;constructor(e=Buffer.alloc(G1),t=0){this.buf=e,this.pos=t}writeTags(e){if(!Array.isArray(e))throw new Error("input must be array");let t=e.length,n;if(t)for(this.writeLong(t),n=0;n<t;n++){let i=e[n];if(typeof i?.name!="string"||typeof i?.value!="string")throw new Error(`Invalid tag format for ${i}, expected {name:string, value: string}`);this.writeString(i.name),this.writeString(i.value)}this.writeLong(0)}toBuffer(){let e=Buffer.alloc(this.pos);if(this.pos>this.buf.length)throw new Error(`Too many tag bytes (${this.pos} > ${this.buf.length})`);return this.buf.copy(e,0,0,this.pos),e}writeLong(e){let t=this.buf,n,i;if(e>=-1073741824&&e<1073741824){i=e>=0?e<<1:~e<<1|1;do t[this.pos]=i&127,i>>=7;while(i&&(t[this.pos++]|=128))}else{n=e>=0?e*2:-e*2-1;do t[this.pos]=n&127,n/=128;while(n>=1&&(t[this.pos++]|=128))}this.pos++,this.buf=t}writeString(e){let t=Buffer.byteLength(e),n=this.buf;this.writeLong(t);let i=this.pos;if(this.pos+=t,!(this.pos>n.length)){if(t>64)this.buf.write(e,this.pos-t,t,"utf8");else{let f,h,p,y;for(f=0,h=t;f<h;f++)p=e.charCodeAt(f),p<128?n[i++]=p:p<2048?(n[i++]=p>>6|192,n[i++]=p&63|128):(p&64512)===55296&&((y=e.charCodeAt(f+1))&64512)===56320?(p=65536+((p&1023)<<10)+(y&1023),f++,n[i++]=p>>18|240,n[i++]=p>>12&63|128,n[i++]=p>>6&63|128,n[i++]=p&63|128):(n[i++]=p>>12|224,n[i++]=p>>6&63|128,n[i++]=p&63|128)}this.buf=n}}readLong(){let e=0,t=0,n=this.buf,i,f,h,p;do i=n[this.pos++],f=i&128,e|=(i&127)<<t,t+=7;while(f&&t<28);if(f){h=e,p=268435456;do i=n[this.pos++],h+=(i&127)*p,p*=128;while(i&128);return(h%2?-(h+1):h)/2}return e>>1^-(e&1)}skipLong(){let e=this.buf;for(;e[this.pos++]&128;);}readTags(){let e=[],t;for(;t=this.readLong();)for(t<0&&(t=-t,this.skipLong());t--;){let n=this.readString(),i=this.readString();e.push({name:n,value:i})}return e}readString(){let e=this.readLong(),t=this.pos,n=this.buf;if(this.pos+=e,this.pos>n.length)throw new Error("TAP Position out of range");return this.buf.slice(t,t+e).toString()}};function Wg(r){if(r?.length===0)return Buffer.allocUnsafe(0);let e=new Vu;return e.writeTags(r),e.toBuffer()}function xc(r){return new Vu(r).readTags()}import{createHash as fz}from"crypto";var Z1=80,G1=4096,X1=class r{binary;_id;constructor(e){this.binary=e}static isDataItem(e){return e.binary!==void 0}get signatureType(){let e=wt(this.binary.subarray(0,2));if(ke?.[e]!==void 0)return e;throw new Error("Unknown signature type: "+e)}async isValid(){return r.verify(this.binary)}get id(){return Hn.default.encode(this.rawId)}set id(e){this._id=Hn.default.toBuffer(e)}get rawId(){return fz("sha256").update(this.rawSignature).digest()}set rawId(e){this._id=e}get rawSignature(){return this.binary.subarray(2,2+this.signatureLength)}get signature(){return Hn.default.encode(this.rawSignature)}set rawOwner(e){if(e.byteLength!=this.ownerLength)throw new Error(`Expected raw owner (pubkey) to be ${this.ownerLength} bytes, got ${e.byteLength} bytes.`);this.binary.set(e,2+this.signatureLength)}get rawOwner(){return this.binary.subarray(2+this.signatureLength,2+this.signatureLength+this.ownerLength)}get signatureLength(){return ze[this.signatureType].sigLength}get owner(){return Hn.default.encode(this.rawOwner)}get ownerLength(){return ze[this.signatureType].pubLength}get rawTarget(){let e=this.getTargetStart();return this.binary[e]==1?this.binary.subarray(e+1,e+33):ju.alloc(0)}get target(){return Hn.default.encode(this.rawTarget)}get rawAnchor(){let e=this.getAnchorStart();return this.binary[e]==1?this.binary.subarray(e+1,e+33):ju.alloc(0)}get anchor(){return Hn.default.encode(this.rawAnchor)}get rawTags(){let e=this.getTagsStart(),t=wt(this.binary.subarray(e+8,e+16));return this.binary.subarray(e+16,e+16+t)}get tags(){let e=this.getTagsStart();if(wt(this.binary.subarray(e,e+8))==0)return[];let n=wt(this.binary.subarray(e+8,e+16));return xc(ju.from(this.binary.subarray(e+16,e+16+n)))}get tagsB64Url(){return this.tags.map(t=>({name:Hn.default.encode(t.name),value:Hn.default.encode(t.value)}))}getStartOfData(){let e=this.getTagsStart(),t=this.binary.subarray(e+8,e+16),n=wt(t);return e+16+n}get rawData(){let e=this.getTagsStart(),t=this.binary.subarray(e+8,e+16),n=wt(t),i=e+16+n;return this.binary.subarray(i,this.binary.length)}get data(){return Hn.default.encode(this.rawData)}getRaw(){return this.binary}async sign(e){return this._id=await K1(this,e),this.rawId}async setSignature(e){this.binary.set(e,2),this._id=ju.from(await Mt().hash(e))}isSigned(){return(this._id?.length??0)>0}toJSON(){return{signature:this.signature,owner:this.owner,target:this.target,tags:this.tags.map(e=>({name:Hn.default.encode(e.name),value:Hn.default.encode(e.value)})),data:this.data}}static async verify(e){if(e.byteLength<Z1)return!1;let t=new r(e),n=t.signatureType,i=t.getTagsStart(),f=wt(e.subarray(i,i+8)),h=e.subarray(i+8,i+16),p=wt(h);if(p>G1)return!1;if(f>0)try{if(xc(ju.from(e.subarray(i+16,i+16+p))).length!==f)return!1}catch{return!1}let y=Xu[n],x=await Zu(t);return await y.verify(t.rawOwner,x,t.rawSignature)}async getSignatureData(){return Zu(this)}getTagsStart(){let e=this.getTargetStart(),t=this.binary[e]==1,n=e+(t?33:1),i=this.binary[n]==1;return n+=i?33:1,n}getTargetStart(){return 2+this.signatureLength+this.ownerLength}getAnchorStart(){let e=this.getTargetStart()+1,t=this.binary[this.getTargetStart()]==1;return e+=t?32:0,e}},wc=X1;import{createHash as sz}from"crypto";var ao=32,V1=class{length;items;binary;constructor(e){this.binary=e,this.length=this.getDataItemCount(),this.items=this.getItems()}getRaw(){return this.binary}get(e){if(typeof e=="number"){if(e>=this.length)throw new RangeError("Index out of range");return this.getByIndex(e)}else return this.getById(e)}getSizes(){let e=[];for(let t=ao;t<ao+64*this.length;t+=64)e.push(wt(this.binary.subarray(t,t+32)));return e}getIds(){let e=[];for(let t=ao;t<ao+64*this.length;t+=64){let n=this.binary.subarray(t+32,t+64);if(n.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");e.push(Qu.default.encode(n))}return e}getIdBy(e){if(e>this.length-1)throw new RangeError("Index of bundle out of range");let t=64+64*e;return Qu.default.encode(this.binary.subarray(t,t+32))}async toTransaction(e,t,n){let i=await t.createTransaction({data:this.binary,...e},n);return i.addTag("Bundle-Format","binary"),i.addTag("Bundle-Version","2.0.0"),i}async verify(){for(let e of this.items){let t=await e.isValid(),n=(0,Qu.default)(sz("sha256").update(e.rawSignature).digest());if(!(t&&e.id===n))return!1}return!0}getOffset(e){let t=0;for(let n=ao;n<ao+64*this.length;n+=64){let i=wt(this.binary.subarray(n,n+32));t+=i;let f=this.binary.subarray(n+32,n+64);if(Buffer.compare(f,e)===0)return{startOffset:t,size:i}}return{startOffset:-1,size:-1}}getByIndex(e){let t=0,n=this.getBundleStart(),i=0,f,h;for(let S=ao;S<ao+64*this.length;S+=64){if(f=wt(this.binary.subarray(S,S+32)),i++===e){h=this.binary.subarray(S+32,S+64);break}t+=f}let p=n+t,y=this.binary.subarray(p,p+f),x=new wc(y);return x.rawId=h,x}getById(e){let t=Qu.default.toBuffer(e),n=this.getOffset(t);if(n.startOffset===-1)throw new Error("Transaction not found");let f=this.getBundleStart()+n.startOffset;return new wc(this.binary.subarray(f,f+n.size))}getDataItemCount(){return wt(this.binary.subarray(0,32))}getBundleStart(){return 32+64*this.length}getItems(){let e=new Array(this.length),t=0,n=this.getBundleStart(),i=0;for(let f=ao;f<ao+64*this.length;f+=64){let h=wt(this.binary.subarray(f,f+32)),p=this.binary.subarray(f+32,f+64);if(p.length===0)throw new Error("Invalid bundle, id specified in headers doesn't exist");let y=n+t,x=this.binary.subarray(y,y+h);t+=h;let S=new wc(x);S.rawId=p,e[i]=S,i++}return e}},$g=V1;function cz(r){return new $g(r)}async function uz(r,e){let t=new Uint8Array(64*r.length),n=await Promise.all(r.map(async(f,h)=>{let p=f.isSigned()?f.rawId:await K1(f,e),y=new Uint8Array(64);return y.set(H1(f.getRaw().byteLength),0),y.set(p,32),t.set(y,64*h),f.getRaw()})).then(f=>Buffer.concat(f)),i=Buffer.concat([Buffer.from(H1(r.length)),Buffer.from(t),n]);return new $g(i)}async function o_(r,e){let t=await Zu(r),n=await e.sign(t),i=await Mt().hash(n);return{signature:Buffer.from(n),id:Buffer.from(i)}}async function K1(r,e){let{signature:t,id:n}=await o_(r,e);return r.getRaw().set(t,2),n}var zre=A(_(),1),f_=A(hn(),1);function Yu(r,e,t){let n=e.publicKey,i=t?.target?f_.default.toBuffer(t.target):null,f=1+(i?.byteLength??0),h=t?.anchor?Buffer.from(t.anchor):null,p=1+(h?.byteLength??0),y=(t?.tags?.length??0)>0?Wg(t?.tags):null,x=16+(y?y.byteLength:0),S=Buffer.from(r),T=S.byteLength,L=2+e.signatureLength+e.ownerLength+f+p+x+T,R=Buffer.alloc(L);if(R.set(Yg(e.signatureType),0),R.set(new Uint8Array(e.signatureLength).fill(0),2),n.byteLength!==e.ownerLength)throw new Error(`Owner must be ${e.ownerLength} bytes, but was incorrectly ${n.byteLength}`);R.set(n,2+e.signatureLength);let B=2+e.signatureLength+e.ownerLength;if(R[B]=i?1:0,i){if(i.byteLength!==32)throw new Error(`Target must be 32 bytes but was incorrectly ${i.byteLength}`);R.set(i,B+1)}let D=B+f,j=D+1;if(R[D]=h?1:0,h){if(j+=h.byteLength,h.byteLength!==32)throw new Error("Anchor must be 32 bytes");R.set(h,D+1)}R.set(z1(t?.tags?.length??0),j);let q=z1(y?.byteLength??0);R.set(q,j+8),y&&R.set(y,j+16);let ie=j+x;return R.set(S,ie),new wc(R)}var Hre=A(_(),1);var Xre=A(_(),1),e3=class{signatureType;rawSignature;signature;signatureLength;rawOwner;owner;ownerLength;rawTarget;target;rawAnchor;anchor;rawTags;tags;rawData;data;static async verify(...e){throw new Error("You must implement `verify`")}};var Kre=A(_(),1);var Vre=A(_(),1);var t3={};f3(t3,{default:()=>pz,processStream:()=>s_,streamExportForTesting:()=>vz,streamSigner:()=>bz});var yte=A(_(),1);import{PassThrough as dz,Transform as lz}from"stream";var ks=A(hn(),1);import{createHash as hz}from"crypto";async function s_(r){let e=c_(r),t=(await e.next()).value;t=await Xi(e,t,32);let n=wt(t.subarray(0,32));t=t.subarray(32);let i=64*n;t=await Xi(e,t,i);let f=new Array(n);for(let y=0;y<i;y+=64)f[y/64]=[wt(t.subarray(y,y+32)),(0,ks.default)(Buffer.from(t.subarray(y+32,y+64)))];t=t.subarray(i);let h=32+i,p=[];for(let[y,x]of f){t=await Xi(e,t,Z1),t=await Xi(e,t,2);let S=wt(t.subarray(0,2));t=t.subarray(2);let{sigLength:T,pubLength:L,sigName:R}=ze[S];t=await Xi(e,t,T);let B=t.subarray(0,T);t=t.subarray(T),t=await Xi(e,t,L);let D=t.subarray(0,L);t=t.subarray(L),t=await Xi(e,t,1);let j=t[0]===1;j&&(t=await Xi(e,t,33));let q=j?t.subarray(1,33):Buffer.allocUnsafe(0);t=t.subarray(j?33:1),t=await Xi(e,t,1);let ie=t[0]===1;ie&&(t=await Xi(e,t,33));let Y=ie?t.subarray(1,33):Buffer.allocUnsafe(0);t=t.subarray(ie?33:1),t=await Xi(e,t,8);let de=wt(t.subarray(0,8));t=t.subarray(8),t=await Xi(e,t,8);let ne=wt(t.subarray(0,8));t=t.subarray(8),t=await Xi(e,t,ne);let te=t.subarray(0,ne),ve=de!==0&&ne!==0?xc(Buffer.from(te)):[];if(ve.length!==de)throw new Error("Tags lengths don't match");t=t.subarray(ne);let $=new lz;$._transform=function(u,s,d){this.push(u),d()};let W=Oo([(0,gr.stringToBuffer)("dataitem"),(0,gr.stringToBuffer)("1"),(0,gr.stringToBuffer)(S.toString()),D,q,Y,te,$]),m=2+T+L+(j?33:1)+(ie?33:1)+16+ne,a=y-m;if(t.byteLength>a)$.write(t.subarray(0,a)),t=t.subarray(a);else{let u=t.byteLength;for($.write(t);a>u;){if(t=(await e.next()).value,!t)throw new Error(`Not enough data bytes expected: ${a} received: ${u}`);u+=t.byteLength,u>a?$.write(t.subarray(0,t.byteLength-(u-a))):$.write(t)}t=t.subarray(t.byteLength-(u-a))}if($.end(),x!==(0,ks.default)(hz("sha256").update(B).digest()))throw new Error("ID doesn't match signature");if(!await Xu[S].verify(D,await W,B))throw new Error("Invalid signature");p.push({id:x,sigName:R,signature:(0,ks.default)(Buffer.from(B)),target:(0,ks.default)(Buffer.from(q)),anchor:(0,ks.default)(Buffer.from(Y)),owner:(0,ks.default)(Buffer.from(D)),tags:ve,dataOffset:h+m,dataSize:a}),h+=m+a}return p}async function bz(r,e,t,n){let i=Yu("",t,n),f=new dz,h=[(0,gr.stringToBuffer)("dataitem"),(0,gr.stringToBuffer)("1"),(0,gr.stringToBuffer)(i.signatureType.toString()),i.rawOwner,i.rawTarget,i.rawAnchor,i.rawTags,r],p=await Oo(h),y=Buffer.from(await t.sign(p));return i.setSignature(y),f.write(i.getRaw()),e.pipe(f)}async function Xi(r,e,t){if(e.byteLength>=t)return e;let{done:n,value:i}=await r.next();if(n&&!i)throw new Error("Invalid buffer");return Xi(r,Buffer.concat([Buffer.from(e),Buffer.from(i)]),t)}async function*c_(r){for await(let e of r)yield e}var pz=s_,vz={readBytes:Xi,getReader:c_};var gz={...r3,stream:t3};globalThis.arbundles??=gz;function Ns(r){return async e=>{if(dn(e))return e;if(!r.arweave)throw new Error("Must initialize with Arweave in order to create transactions");try{return await mz(r,{data:e})}catch(t){throw new Error(t.message??"Error resolving transaction")}}}async function mz(r,e){let t=null,n=null,i=null;if(typeof e.data=="string"&&(t=Buffer.from(p3(e.data),"base64"),n=b3(e.data),i=v3(t)),e.data instanceof File&&(t=new Uint8Array(await e.data.arrayBuffer()),n=e.data.type,i=e.data.size),t&&n&&i)if(i<Number(ab.dispatchUploadSize))try{let f=await r.arweave.createTransaction({data:t},"use_wallet");return f.addTag(pr.keys.contentType,n),e.tags&&e.tags.length>0&&e.tags.forEach(p=>f.addTag(p.name,p.value)),(await global.window.arweaveWallet.dispatch(f)).id}catch(f){throw new Error(f.message??"Error dispatching transaction")}else try{let f=await yz(e.data,{tags:[{name:"Content-Type",value:n},{name:"App-Name",value:"@permaweb/libs"}]},{apiUrl:ab.node1,token:"arweave",chunkSize:5242880,batchSize:3});return console.log(f),console.log("Uploaded dataItem ID:",f.id),f.id}catch(f){throw new Error(f.message??"Error uploading transaction")}else throw new Error("Error preparing transaction data")}async function yz(r,e,t){let{apiUrl:n,token:i,chunkSize:f,batchSize:h=3}=t,p=new Os(window.arweaveWallet),y=await p.signer.getActivePublicKey();p.publicKey=Buffer.from(y,"base64");let x=new Uint8Array(await r.arrayBuffer()),S=Yu(x,p,{...e,anchor:e.anchor||(()=>{let m=new Uint8Array(32);return crypto.getRandomValues(m),btoa(String.fromCharCode(...m)).replace(/\+/g,"-").replace(/\//g,"_").slice(0,32)})()});await S.sign(p);let T=S.getRaw(),L=new Blob([new Uint8Array(T)],{type:"application/octet-stream"}),R={"x-chunking-version":"2"},B=await fetch(`${n}/chunks/${i}/-1/-1`,{headers:R});if(!B.ok)throw new Error(`Failed to get upload ID: ${B.status} ${await B.text()}`);let D=await B.json(),j=D.id;if(f<D.min||f>D.max)throw new Error(`Configured chunkSize ${f} is out of allowed range ${D.min}-${D.max}`);let q=L.size,ie=[];for(let m=0;m<q;m+=f)ie.push(m);let Y=new Set;(D.chunks??[]).forEach(([m])=>Y.add(Number(m)));let de=ie.filter(m=>m>0&&!Y.has(m)),ne=Y.has(0)?[]:[0],te=de.concat(ne),ve=m=>new Promise(a=>setTimeout(a,m));for(let m=0;m<te.length;m+=h){let a=te.slice(m,m+h);await Promise.all(a.map(async c=>{let s=await L.slice(c,c+f).arrayBuffer(),d=null;for(let v=1;v<=3;v++)try{let g=await fetch(`${n}/chunks/${i}/${j}/${c}`,{method:"POST",headers:{"Content-Type":"application/octet-stream",...R},body:s});if(!g.ok){let l=await g.text();throw g.status===402?new Error(`402 payment required: ${l}`):new Error(`Chunk upload error ${g.status}: ${l}`)}return}catch(g){if(d=g,v<3){await ve(1e3*v);continue}}throw d}))}let $={"Content-Type":"application/octet-stream",...R},W=await fetch(`${n}/chunks/${i}/${j}/-1`,{method:"POST",headers:$});if(!W.ok){let m=await W.text();throw new Error(`Finalizing upload failed ${W.status}: ${m}`)}return W.json()}var Lte=A(_(),1);var i3={p1:"P1",end:"END"},n3={default:100};async function Lo(r){let e=r.paginator?r.paginator:n3.default,t=[],n=0,i=null;if(r.ids&&!r.ids.length)return{data:t,count:n,nextCursor:i,previousCursor:null};try{let f=wz(r),h=await Az({gateway:r.gateway??Aa.ao,query:xz(f)});return h?.data?.transactions?.edges?.length?(t=[...h.data.transactions.edges],n=h.data.transactions.count??0,t.length<e||!h.data.transactions.pageInfo.hasNextPage?i=i3.end:i=t[t.length-1].cursor,{data:t,count:n,nextCursor:i,previousCursor:null}):{data:t,count:n,nextCursor:i,previousCursor:null}}catch(f){return console.error(f),{data:t,count:n,nextCursor:i,previousCursor:null}}}async function u_(r,e){let t=1,n=await Lo(r);if(n&&n.data.length){let i=n.data;for(e&&e(`Count: ${n.count}`),e&&e(`Pages to fetch: ${Math.ceil(n.count/(r.paginator??n3.default))}`),e&&e(`Page ${t} fetched`);n.nextCursor&&n.nextCursor!==i3.end;)t+=1,e&&e(`Fetching page ${t}...`),n=await Lo({...r,cursor:n.nextCursor}),n&&n.data.length&&(i=i.concat(n.data));return e&&e("All pages fetched!"),i}else e&&e("No data found");return null}function xz(r){let e={query:`query { ${r} }`};return JSON.stringify(e)}function wz(r){let e=r.paginator?r.paginator:n3.default,t=r.ids?JSON.stringify(r.ids):null,n=null;r.minBlock!==void 0&&r.minBlock!==null&&(n={},n.min=r.minBlock);let i=n?JSON.stringify(n).replace(/"([^"]+)":/g,"$1:"):null,f=r.tags?JSON.stringify(r.tags).replace(/"(name)":/g,"$1:").replace(/"(values)":/g,"$1:").replace(/"match"/g,"match").replace(/"FUZZY_OR"/g,"FUZZY_OR").replace(/"WILDCARD"/g,"WILDCARD"):null,h=r.owners?JSON.stringify(r.owners):null,p=r.recipients?JSON.stringify(r.recipients):null,y=r.cursor&&r.cursor!==i3.end?`"${r.cursor}"`:null,x="";if(r.sort)switch(x+="sort: ",r.sort){case"ascending":x+="HEIGHT_ASC";break;case"descending":x+="HEIGHT_DESC";break}let S=`first: ${e}`,T="",L="data { size type } owner { address } block { height timestamp }",R="";switch(r.gateway??Aa.ao){case Aa.arweave:break;case Aa.ao:y||(T="count"),p&&(R=`recipients: ${p}`),L+=" recipient";break}let D=`
18
18
  transactions(
@@ -47,6 +47,7 @@ nonce: bundlr`),Buffer.from(i))}};var cee=A(_(),1);var Fs=class{_publicKey;owner
47
47
  local patchData = Zone.Functions.getPatchData('overview')
48
48
  Send({ device = 'patch@1.0', overview = require('json').encode(patchData) })
49
49
  else
50
+ local json = require('json')
50
51
  SyncState(nil)
51
52
  end
52
53
  `})}catch(t){throw new Error(t)}}}function L_(r){return async e=>{try{return Zi(`Adding authority ${e.authorityId} to process ${e.zoneId}`),await Mc(r,{processId:e.zoneId,evalSrc:`table.insert(ao.authorities, '${e.authorityId}'); SyncState(nil)`})}catch(t){throw new Error(t)}}}function W1(r){return async e=>{try{let t=await so(r,{processId:e,path:"zone",fallbackAction:"Info"});return ln(t)}catch(t){throw new Error(t.message??"Error getting zone")}}}function R_(r){let e=j1(r),t=Ns(r);return async(n,i)=>{let f=null,h=[{name:pr.keys.zoneType,value:pr.values.user}],p=async y=>{let x=y.toLowerCase(),S=n[x];if(S&&ed(S))try{let T=await t(n[x]);h.push(hi(y,T))}catch(T){i?i(`Failed to resolve ${y}: ${T.message}`):console.error(T)}};n.username&&h.push(hi("Username",n.username)),n.displayName&&h.push(hi("DisplayName",n.displayName)),n.description&&h.push(hi("Description",n.description)),await Promise.all([p("Thumbnail"),p("Banner")]);try{f=await e({tags:h},i)}catch(y){throw new Error(y.message??"Error creating profile")}return f}}function I_(r){let e=Q1(r),t=Ns(r);return async(n,i,f)=>{if(i){let h={Username:n.username,DisplayName:n.displayName,Description:n.description};if(n.thumbnail&&ed(n.thumbnail))try{h.Thumbnail=await t(n.thumbnail)}catch(p){f&&f(`Failed to resolve thumbnail: ${p.message}`)}else h.Thumbnail="None";if(n.banner&&ed(n.banner))try{h.Banner=await t(n.banner)}catch(p){f&&f(`Failed to resolve banner: ${p.message}`)}else h.Banner="None";try{return await e(h,i)}catch(p){throw new Error(p.message??"Error creating profile")}}else throw new Error("No profile provided")}}function F_(r){let e=Y1(r);return async t=>{try{return await e({zoneId:t.profileId})}catch(n){throw new Error(n)}}}function o3(r){let e=W1(r);return async t=>{try{let n=await e(t);if(!n)throw new Error("Error fetching profile - Not found");return{id:t,owner:n.owner,assets:n.assets,roles:n.roles,invites:n.invites,version:n.version,authorities:n.authorities,...n.store}}catch(n){throw new Error(n.message??"Error fetching profile")}}}function D_(r){let e=o3(r);return async t=>{try{let n=await Lo({gateway:Aa.ao,tags:[{name:pr.keys.dataProtocol,values:[pr.values.dataProtocol]},{name:pr.keys.zoneType,values:[pr.values.user]}],owners:[t]});return n?.data?.length>0?(n.data.sort((i,f)=>{let h=i.node.block?.timestamp??0;return(f.node.block?.timestamp??0)-h}),await e(n.data[0].node.id)):{id:null}}catch(n){throw new Error(n.message??"Error fetching profile")}}}var Sie=Pt.src.zone.version;function Lz(r){return{createZone:j1(r),updateZone:Q1(r),addToZone:T_(r),getZone:W1(r),setZoneRoles:B_(r),joinZone:C_(r),updateZonePatchMap:P_(r),updateZoneVersion:Y1(r),updateZoneAuthorities:L_(r),createProfile:R_(r),updateProfile:I_(r),updateProfileVersion:F_(r),getProfileById:o3(r),getProfileByWalletAddress:D_(r),createAtomicAsset:d_(r),getAtomicAsset:l_(r),getAtomicAssets:h_,createComment:y_(r),getComments:x_(r),updateCommentStatus:w_(r),removeComment:M_(r),updateCommentContent:A_(r),userRemoveComment:S_(r),pinComment:__(r),unpinComment:E_(r),createCollection:p_(r),updateCollectionAssets:v_(r),getCollection:g_(r),getCollections:m_(r),resolveTransaction:Ns(r),getGQLData:Lo,getAggregatedGQLData:u_,createProcess:co(r),readProcess:y3(r),readState:m3(r),sendMessage:g3(r),mapFromProcessCase:ln,mapToProcessCase:qs}}var _ie={init:Lz};export{Sie as CurrentZoneVersion,Sz as Types,_ie as default};