1885-aabc945fb4cf7aa8.js.下载 1.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677
  1. (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1885],{18862:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(53756);function n(e,t,i){return void 0===t&&(t=new Uint8Array(2)),void 0===i&&(i=0),t[i+0]=e>>>8,t[i+1]=e>>>0,t}function a(e,t,i){return void 0===t&&(t=new Uint8Array(2)),void 0===i&&(i=0),t[i+0]=e>>>0,t[i+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,i){return void 0===t&&(t=new Uint8Array(4)),void 0===i&&(i=0),t[i+0]=e>>>24,t[i+1]=e>>>16,t[i+2]=e>>>8,t[i+3]=e>>>0,t}function d(e,t,i){return void 0===t&&(t=new Uint8Array(4)),void 0===i&&(i=0),t[i+0]=e>>>0,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24,t}function h(e,t,i){return void 0===t&&(t=new Uint8Array(8)),void 0===i&&(i=0),u(e/0x100000000>>>0,t,i),u(e>>>0,t,i+4),t}function p(e,t,i){return void 0===t&&(t=new Uint8Array(8)),void 0===i&&(i=0),d(e>>>0,t,i),d(e/0x100000000>>>0,t,i+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=n,t.writeInt16BE=n,t.writeUint16LE=a,t.writeInt16LE=a,t.readInt32BE=o,t.readUint32BE=s,t.readInt32LE=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var i=o(e,t),r=o(e,t+4);return 0x100000000*i+r-(r>>31)*0x100000000},t.readUint64BE=function(e,t){return void 0===t&&(t=0),0x100000000*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var i=c(e,t);return 0x100000000*c(e,t+4)+i-(i>>31)*0x100000000},t.readUint64LE=function(e,t){void 0===t&&(t=0);var i=l(e,t);return 0x100000000*l(e,t+4)+i},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=p,t.writeInt64LE=p,t.readUintBE=function(e,t,i){if(void 0===i&&(i=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-i)throw Error("readUintBE: array is too short for the given bitLength");for(var r=0,n=1,a=e/8+i-1;a>=i;a--)r+=t[a]*n,n*=256;return r},t.readUintLE=function(e,t,i){if(void 0===i&&(i=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-i)throw Error("readUintLE: array is too short for the given bitLength");for(var r=0,n=1,a=i;a<i+e/8;a++)r+=t[a]*n,n*=256;return r},t.writeUintBE=function(e,t,i,n){if(void 0===i&&(i=new Uint8Array(e/8)),void 0===n&&(n=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var a=1,o=e/8+n-1;o>=n;o--)i[o]=t/a&255,a*=256;return i},t.writeUintLE=function(e,t,i,n){if(void 0===i&&(i=new Uint8Array(e/8)),void 0===n&&(n=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var a=1,o=n;o<n+e/8;o++)i[o]=t/a&255,a*=256;return i},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,i){return void 0===t&&(t=new Uint8Array(4)),void 0===i&&(i=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(i,e),t},t.writeFloat32LE=function(e,t,i){return void 0===t&&(t=new Uint8Array(4)),void 0===i&&(i=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(i,e,!0),t},t.writeFloat64BE=function(e,t,i){return void 0===t&&(t=new Uint8Array(8)),void 0===i&&(i=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(i,e),t},t.writeFloat64LE=function(e,t,i){return void 0===t&&(t=new Uint8Array(8)),void 0===i&&(i=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(i,e,!0),t}},45452:(e,t,i)=>{"use strict";var r=i(37625),n=i(29410),a=i(612),o=i(18862),s=i(4763);t.J4=32,t.PX=12,t.iW=16;var c=new Uint8Array(16),l=function(){function e(e){if(this.nonceLength=t.PX,this.tagLength=t.iW,e.length!==t.J4)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,i,n){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var o,s=new Uint8Array(16);s.set(e,s.length-e.length);var c=new Uint8Array(32);r.stream(this._key,s,c,4);var l=t.length+this.tagLength;if(n){if(n.length!==l)throw Error("ChaCha20Poly1305: incorrect destination length");o=n}else o=new Uint8Array(l);return r.streamXOR(this._key,s,t,o,4),this._authenticate(o.subarray(o.length-this.tagLength,o.length),c,o.subarray(0,o.length-this.tagLength),i),a.wipe(s),o},e.prototype.open=function(e,t,i,n){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var o,c=new Uint8Array(16);c.set(e,c.length-e.length);var l=new Uint8Array(32);r.stream(this._key,c,l,4);var u=new Uint8Array(this.tagLength);if(this._authenticate(u,l,t.subarray(0,t.length-this.tagLength),i),!s.equal(u,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(n){if(n.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");o=n}else o=new Uint8Array(d);return r.streamXOR(this._key,c,t.subarray(0,t.length-this.tagLength),o,4),a.wipe(c),o},e.prototype.clean=function(){return a.wipe(this._key),this},e.prototype._authenticate=function(e,t,i,r){var s=new n.Poly1305(t);r&&(s.update(r),r.length%16>0&&s.update(c.subarray(r.length%16))),s.update(i),i.length%16>0&&s.update(c.subarray(i.length%16));var l=new Uint8Array(8);r&&o.writeUint64LE(r.length,l),s.update(l),o.writeUint64LE(i.length,l),s.update(l);for(var u=s.digest(),d=0;d<u.length;d++)e[d]=u[d];s.clean(),a.wipe(u),a.wipe(l)},e}();t.g6=l},37625:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(18862),n=i(612);function a(e,t,i,a,o){if(void 0===o&&(o=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(a.length<i.length)throw Error("ChaCha: destination is shorter than source");if(0===o){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");c=(s=new Uint8Array(16)).length-t.length,s.set(t,c)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");s=t,c=o}for(var s,c,l=new Uint8Array(64),u=0;u<i.length;u+=64){!function(e,t,i){for(var n=i[3]<<24|i[2]<<16|i[1]<<8|i[0],a=i[7]<<24|i[6]<<16|i[5]<<8|i[4],o=i[11]<<24|i[10]<<16|i[9]<<8|i[8],s=i[15]<<24|i[14]<<16|i[13]<<8|i[12],c=i[19]<<24|i[18]<<16|i[17]<<8|i[16],l=i[23]<<24|i[22]<<16|i[21]<<8|i[20],u=i[27]<<24|i[26]<<16|i[25]<<8|i[24],d=i[31]<<24|i[30]<<16|i[29]<<8|i[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],p=t[7]<<24|t[6]<<16|t[5]<<8|t[4],f=t[11]<<24|t[10]<<16|t[9]<<8|t[8],g=t[15]<<24|t[14]<<16|t[13]<<8|t[12],w=0x61707865,m=0x3320646e,b=0x79622d32,v=0x6b206574,y=n,x=a,C=o,A=s,E=c,_=l,k=u,I=d,S=h,T=p,N=f,P=g,R=0;R<20;R+=2)S^=w=w+y|0,y^=E=E+(S=S>>>16|S<<16)|0,y=y>>>20|y<<12,T^=m=m+x|0,x^=_=_+(T=T>>>16|T<<16)|0,x=x>>>20|x<<12,N^=b=b+C|0,C^=k=k+(N=N>>>16|N<<16)|0,C=C>>>20|C<<12,P^=v=v+A|0,A^=I=I+(P=P>>>16|P<<16)|0,A=A>>>20|A<<12,N^=b=b+C|0,C^=k=k+(N=N>>>24|N<<8)|0,C=C>>>25|C<<7,P^=v=v+A|0,A^=I=I+(P=P>>>24|P<<8)|0,A=A>>>25|A<<7,T^=m=m+x|0,x^=_=_+(T=T>>>24|T<<8)|0,x=x>>>25|x<<7,S^=w=w+y|0,y^=E=E+(S=S>>>24|S<<8)|0,y=y>>>25|y<<7,P^=w=w+x|0,x^=k=k+(P=P>>>16|P<<16)|0,x=x>>>20|x<<12,S^=m=m+C|0,C^=I=I+(S=S>>>16|S<<16)|0,C=C>>>20|C<<12,T^=b=b+A|0,A^=E=E+(T=T>>>16|T<<16)|0,A=A>>>20|A<<12,N^=v=v+y|0,y^=_=_+(N=N>>>16|N<<16)|0,y=y>>>20|y<<12,T^=b=b+A|0,A^=E=E+(T=T>>>24|T<<8)|0,A=A>>>25|A<<7,N^=v=v+y|0,y^=_=_+(N=N>>>24|N<<8)|0,y=y>>>25|y<<7,S^=m=m+C|0,C^=I=I+(S=S>>>24|S<<8)|0,C=C>>>25|C<<7,P^=w=w+x|0,x^=k=k+(P=P>>>24|P<<8)|0,x=x>>>25|x<<7;r.writeUint32LE(w+0x61707865|0,e,0),r.writeUint32LE(m+0x3320646e|0,e,4),r.writeUint32LE(b+0x79622d32|0,e,8),r.writeUint32LE(v+0x6b206574|0,e,12),r.writeUint32LE(y+n|0,e,16),r.writeUint32LE(x+a|0,e,20),r.writeUint32LE(C+o|0,e,24),r.writeUint32LE(A+s|0,e,28),r.writeUint32LE(E+c|0,e,32),r.writeUint32LE(_+l|0,e,36),r.writeUint32LE(k+u|0,e,40),r.writeUint32LE(I+d|0,e,44),r.writeUint32LE(S+h|0,e,48),r.writeUint32LE(T+p|0,e,52),r.writeUint32LE(N+f|0,e,56),r.writeUint32LE(P+g|0,e,60)}(l,s,e);for(var d=u;d<u+64&&d<i.length;d++)a[d]=i[d]^l[d-u];!function(e,t,i){for(var r=1;i--;)r=r+(255&e[t])|0,e[t]=255&r,r>>>=8,t++;if(r>0)throw Error("ChaCha: counter overflow")}(s,0,c)}return n.wipe(l),0===o&&n.wipe(s),a}t.streamXOR=a,t.stream=function(e,t,i,r){return void 0===r&&(r=0),n.wipe(i),a(e,t,i,i,r)}},4763:(e,t)=>{"use strict";function i(e,t){if(e.length!==t.length)return 0;for(var i=0,r=0;r<e.length;r++)i|=e[r]^t[r];return 1&i-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,i){return~(e-1)&t|e-1&i},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=i,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==i(e,t)}},19854:(e,t,i)=>{"use strict";t._S=t.K=t.TP=t.wE=t.Ee=void 0,i(78133);let r=i(93899);function n(e){let t=new Float64Array(16);if(e)for(let i=0;i<e.length;i++)t[i]=e[i];return t}i(612),t.Ee=64,t.wE=64,t.TP=32,new Uint8Array(32)[0]=9;let a=n(),o=n([1]),s=(n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),c=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),l=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function u(e,t){for(let i=0;i<16;i++)e[i]=0|t[i]}function d(e){let t=1;for(let i=0;i<16;i++){let r=e[i]+t+65535;t=Math.floor(r/65536),e[i]=r-65536*t}e[0]+=t-1+37*(t-1)}function h(e,t,i){let r=~(i-1);for(let i=0;i<16;i++){let n=r&(e[i]^t[i]);e[i]^=n,t[i]^=n}}function p(e,t){let i=n(),r=n();for(let e=0;e<16;e++)r[e]=t[e];d(r),d(r),d(r);for(let e=0;e<2;e++){i[0]=r[0]-65517;for(let e=1;e<15;e++)i[e]=r[e]-65535-(i[e-1]>>16&1),i[e-1]&=65535;i[15]=r[15]-32767-(i[14]>>16&1);let e=i[15]>>16&1;i[14]&=65535,h(r,i,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function f(e,t,i){for(let r=0;r<16;r++)e[r]=t[r]+i[r]}function g(e,t,i){for(let r=0;r<16;r++)e[r]=t[r]-i[r]}function w(e,t,i){let r,n,a=0,o=0,s=0,c=0,l=0,u=0,d=0,h=0,p=0,f=0,g=0,w=0,m=0,b=0,v=0,y=0,x=0,C=0,A=0,E=0,_=0,k=0,I=0,S=0,T=0,N=0,P=0,R=0,O=0,M=0,D=0,U=i[0],$=i[1],L=i[2],j=i[3],B=i[4],W=i[5],q=i[6],H=i[7],z=i[8],F=i[9],Z=i[10],V=i[11],K=i[12],G=i[13],J=i[14],Y=i[15];a+=(r=t[0])*U,o+=r*$,s+=r*L,c+=r*j,l+=r*B,u+=r*W,d+=r*q,h+=r*H,p+=r*z,f+=r*F,g+=r*Z,w+=r*V,m+=r*K,b+=r*G,v+=r*J,y+=r*Y,o+=(r=t[1])*U,s+=r*$,c+=r*L,l+=r*j,u+=r*B,d+=r*W,h+=r*q,p+=r*H,f+=r*z,g+=r*F,w+=r*Z,m+=r*V,b+=r*K,v+=r*G,y+=r*J,x+=r*Y,s+=(r=t[2])*U,c+=r*$,l+=r*L,u+=r*j,d+=r*B,h+=r*W,p+=r*q,f+=r*H,g+=r*z,w+=r*F,m+=r*Z,b+=r*V,v+=r*K,y+=r*G,x+=r*J,C+=r*Y,c+=(r=t[3])*U,l+=r*$,u+=r*L,d+=r*j,h+=r*B,p+=r*W,f+=r*q,g+=r*H,w+=r*z,m+=r*F,b+=r*Z,v+=r*V,y+=r*K,x+=r*G,C+=r*J,A+=r*Y,l+=(r=t[4])*U,u+=r*$,d+=r*L,h+=r*j,p+=r*B,f+=r*W,g+=r*q,w+=r*H,m+=r*z,b+=r*F,v+=r*Z,y+=r*V,x+=r*K,C+=r*G,A+=r*J,E+=r*Y,u+=(r=t[5])*U,d+=r*$,h+=r*L,p+=r*j,f+=r*B,g+=r*W,w+=r*q,m+=r*H,b+=r*z,v+=r*F,y+=r*Z,x+=r*V,C+=r*K,A+=r*G,E+=r*J,_+=r*Y,d+=(r=t[6])*U,h+=r*$,p+=r*L,f+=r*j,g+=r*B,w+=r*W,m+=r*q,b+=r*H,v+=r*z,y+=r*F,x+=r*Z,C+=r*V,A+=r*K,E+=r*G,_+=r*J,k+=r*Y,h+=(r=t[7])*U,p+=r*$,f+=r*L,g+=r*j,w+=r*B,m+=r*W,b+=r*q,v+=r*H,y+=r*z,x+=r*F,C+=r*Z,A+=r*V,E+=r*K,_+=r*G,k+=r*J,I+=r*Y,p+=(r=t[8])*U,f+=r*$,g+=r*L,w+=r*j,m+=r*B,b+=r*W,v+=r*q,y+=r*H,x+=r*z,C+=r*F,A+=r*Z,E+=r*V,_+=r*K,k+=r*G,I+=r*J,S+=r*Y,f+=(r=t[9])*U,g+=r*$,w+=r*L,m+=r*j,b+=r*B,v+=r*W,y+=r*q,x+=r*H,C+=r*z,A+=r*F,E+=r*Z,_+=r*V,k+=r*K,I+=r*G,S+=r*J,T+=r*Y,g+=(r=t[10])*U,w+=r*$,m+=r*L,b+=r*j,v+=r*B,y+=r*W,x+=r*q,C+=r*H,A+=r*z,E+=r*F,_+=r*Z,k+=r*V,I+=r*K,S+=r*G,T+=r*J,N+=r*Y,w+=(r=t[11])*U,m+=r*$,b+=r*L,v+=r*j,y+=r*B,x+=r*W,C+=r*q,A+=r*H,E+=r*z,_+=r*F,k+=r*Z,I+=r*V,S+=r*K,T+=r*G,N+=r*J,P+=r*Y,m+=(r=t[12])*U,b+=r*$,v+=r*L,y+=r*j,x+=r*B,C+=r*W,A+=r*q,E+=r*H,_+=r*z,k+=r*F,I+=r*Z,S+=r*V,T+=r*K,N+=r*G,P+=r*J,R+=r*Y,b+=(r=t[13])*U,v+=r*$,y+=r*L,x+=r*j,C+=r*B,A+=r*W,E+=r*q,_+=r*H,k+=r*z,I+=r*F,S+=r*Z,T+=r*V,N+=r*K,P+=r*G,R+=r*J,O+=r*Y,v+=(r=t[14])*U,y+=r*$,x+=r*L,C+=r*j,A+=r*B,E+=r*W,_+=r*q,k+=r*H,I+=r*z,S+=r*F,T+=r*Z,N+=r*V,P+=r*K,R+=r*G,O+=r*J,M+=r*Y,y+=(r=t[15])*U,x+=r*$,C+=r*L,A+=r*j,E+=r*B,_+=r*W,k+=r*q,I+=r*H,S+=r*z,T+=r*F,N+=r*Z,P+=r*V,R+=r*K,O+=r*G,M+=r*J,D+=r*Y,a+=38*x,o+=38*C,s+=38*A,c+=38*E,l+=38*_,u+=38*k,d+=38*I,h+=38*S,p+=38*T,f+=38*N,g+=38*P,w+=38*R,m+=38*O,b+=38*M,v+=38*D,n=Math.floor((r=a+(n=1)+65535)/65536),a=r-65536*n,n=Math.floor((r=o+n+65535)/65536),o=r-65536*n,n=Math.floor((r=s+n+65535)/65536),s=r-65536*n,n=Math.floor((r=c+n+65535)/65536),c=r-65536*n,n=Math.floor((r=l+n+65535)/65536),l=r-65536*n,n=Math.floor((r=u+n+65535)/65536),u=r-65536*n,n=Math.floor((r=d+n+65535)/65536),d=r-65536*n,n=Math.floor((r=h+n+65535)/65536),h=r-65536*n,n=Math.floor((r=p+n+65535)/65536),p=r-65536*n,n=Math.floor((r=f+n+65535)/65536),f=r-65536*n,n=Math.floor((r=g+n+65535)/65536),g=r-65536*n,n=Math.floor((r=w+n+65535)/65536),w=r-65536*n,n=Math.floor((r=m+n+65535)/65536),m=r-65536*n,n=Math.floor((r=b+n+65535)/65536),b=r-65536*n,n=Math.floor((r=v+n+65535)/65536),v=r-65536*n,n=Math.floor((r=y+n+65535)/65536),y=r-65536*n,a+=n-1+37*(n-1),n=Math.floor((r=a+(n=1)+65535)/65536),a=r-65536*n,n=Math.floor((r=o+n+65535)/65536),o=r-65536*n,n=Math.floor((r=s+n+65535)/65536),s=r-65536*n,n=Math.floor((r=c+n+65535)/65536),c=r-65536*n,n=Math.floor((r=l+n+65535)/65536),l=r-65536*n,n=Math.floor((r=u+n+65535)/65536),u=r-65536*n,n=Math.floor((r=d+n+65535)/65536),d=r-65536*n,n=Math.floor((r=h+n+65535)/65536),h=r-65536*n,n=Math.floor((r=p+n+65535)/65536),p=r-65536*n,n=Math.floor((r=f+n+65535)/65536),f=r-65536*n,n=Math.floor((r=g+n+65535)/65536),g=r-65536*n,n=Math.floor((r=w+n+65535)/65536),w=r-65536*n,n=Math.floor((r=m+n+65535)/65536),m=r-65536*n,n=Math.floor((r=b+n+65535)/65536),b=r-65536*n,n=Math.floor((r=v+n+65535)/65536),v=r-65536*n,n=Math.floor((r=y+n+65535)/65536),y=r-65536*n,a+=n-1+37*(n-1),e[0]=a,e[1]=o,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=p,e[9]=f,e[10]=g,e[11]=w,e[12]=m,e[13]=b,e[14]=v,e[15]=y}function m(e,t){let i=n(),r=n(),a=n(),o=n(),c=n(),l=n(),u=n(),d=n(),h=n();g(i,e[1],e[0]),g(h,t[1],t[0]),w(i,i,h),f(r,e[0],e[1]),f(h,t[0],t[1]),w(r,r,h),w(a,e[3],t[3]),w(a,a,s),w(o,e[2],t[2]),f(o,o,o),g(c,r,i),g(l,o,a),f(u,o,a),f(d,r,i),w(e[0],c,l),w(e[1],d,u),w(e[2],u,l),w(e[3],c,d)}function b(e,t,i){for(let r=0;r<4;r++)h(e[r],t[r],i)}function v(e,t){let i=n(),r=n(),a=n();(function(e,t){let i;let r=n();for(i=0;i<16;i++)r[i]=t[i];for(i=253;i>=0;i--)w(r,r,r),2!==i&&4!==i&&w(r,r,t);for(i=0;i<16;i++)e[i]=r[i]})(a,t[2]),w(i,t[0],a),w(r,t[1],a),p(e,r),e[31]^=function(e){let t=new Uint8Array(32);return p(t,e),1&t[0]}(i)<<7}function y(e,t){let i=[n(),n(),n(),n()];u(i[0],c),u(i[1],l),u(i[2],o),w(i[3],c,l),function(e,t,i){u(e[0],a),u(e[1],o),u(e[2],o),u(e[3],a);for(let r=255;r>=0;--r){let n=i[r/8|0]>>(7&r)&1;b(e,t,n),m(t,e),m(e,e),b(e,t,n)}}(e,i,t)}t.K=function(e){if(e.length!==t.TP)throw Error(`ed25519: seed must be ${t.TP} bytes`);let i=(0,r.hash)(e);i[0]&=248,i[31]&=127,i[31]|=64;let a=new Uint8Array(32),o=[n(),n(),n(),n()];y(o,i),v(a,o);let s=new Uint8Array(64);return s.set(e),s.set(a,32),{publicKey:a,secretKey:s}};let x=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function C(e,t){let i,r,n,a;for(r=63;r>=32;--r){for(i=0,n=r-32,a=r-12;n<a;++n)t[n]+=i-16*t[r]*x[n-(r-32)],i=Math.floor((t[n]+128)/256),t[n]-=256*i;t[n]+=i,t[r]=0}for(n=0,i=0;n<32;n++)t[n]+=i-(t[31]>>4)*x[n],i=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=i*x[n];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function A(e){let t=new Float64Array(64);for(let i=0;i<64;i++)t[i]=e[i];for(let t=0;t<64;t++)e[t]=0;C(e,t)}t._S=function(e,t){let i=new Float64Array(64),a=[n(),n(),n(),n()],o=(0,r.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;let s=new Uint8Array(64);s.set(o.subarray(32),32);let c=new r.SHA512;c.update(s.subarray(32)),c.update(t);let l=c.digest();c.clean(),A(l),y(a,l),v(s,a),c.reset(),c.update(s.subarray(0,32)),c.update(e.subarray(32)),c.update(t);let u=c.digest();A(u);for(let e=0;e<32;e++)i[e]=l[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)i[e+t]+=u[e]*o[t];return C(s.subarray(32),i),s}},22985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},39464:(e,t,i)=>{"use strict";var r=i(14368),n=i(612),a=function(){function e(e,t,i,n){void 0===i&&(i=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=n;var a=r.hmac(this._hash,i,t);this._hmac=new r.HMAC(e,a),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),i=0;i<t.length;i++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[i]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),n.wipe(this._buffer),n.wipe(this._counter),this._bufpos=0},e}();t.i=a},14368:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(22985),n=i(4763),a=i(612),o=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var i=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(i).clean():i.set(t);for(var n=0;n<i.length;n++)i[n]^=54;this._inner.update(i);for(var n=0;n<i.length;n++)i[n]^=106;this._outer.update(i),r.isSerializableHash(this._inner)&&r.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),a.wipe(i)}return e.prototype.reset=function(){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){r.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),r.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!r.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!r.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=o,t.hmac=function(e,t,i){var r=new o(e,t);r.update(i);var n=r.digest();return r.clean(),n},t.equal=n.equal},53756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var i=65535&e,r=65535&t;return i*r+((e>>>16&65535)*r+i*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=0x1fffffffffffff,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},29410:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(4763),n=i(612);t.DIGEST_LENGTH=16;var a=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var i=e[0]|e[1]<<8;this._r[0]=8191&i;var r=e[2]|e[3]<<8;this._r[1]=(i>>>13|r<<3)&8191;var n=e[4]|e[5]<<8;this._r[2]=(r>>>10|n<<6)&7939;var a=e[6]|e[7]<<8;this._r[3]=(n>>>7|a<<9)&8191;var o=e[8]|e[9]<<8;this._r[4]=(a>>>4|o<<12)&255,this._r[5]=o>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(o>>>14|s<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(s>>>11|c<<5)&8065;var l=e[14]|e[15]<<8;this._r[8]=(c>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,i){for(var r=this._fin?0:2048,n=this._h[0],a=this._h[1],o=this._h[2],s=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],p=this._h[9],f=this._r[0],g=this._r[1],w=this._r[2],m=this._r[3],b=this._r[4],v=this._r[5],y=this._r[6],x=this._r[7],C=this._r[8],A=this._r[9];i>=16;){var E,_=e[t+0]|e[t+1]<<8;n+=8191&_;var k=e[t+2]|e[t+3]<<8;a+=(_>>>13|k<<3)&8191;var I=e[t+4]|e[t+5]<<8;o+=(k>>>10|I<<6)&8191;var S=e[t+6]|e[t+7]<<8;s+=(I>>>7|S<<9)&8191;var T=e[t+8]|e[t+9]<<8;c+=(S>>>4|T<<12)&8191,l+=T>>>1&8191;var N=e[t+10]|e[t+11]<<8;u+=(T>>>14|N<<2)&8191;var P=e[t+12]|e[t+13]<<8;d+=(N>>>11|P<<5)&8191;var R=e[t+14]|e[t+15]<<8;h+=(P>>>8|R<<8)&8191,p+=R>>>5|r;var O=0;O=(E=0+n*f+5*A*a+5*C*o+5*x*s+5*y*c)>>>13,E&=8191,E+=5*v*l+5*b*u+5*m*d+5*w*h+5*g*p,O+=E>>>13,E&=8191;var M=O;M+=n*g,M+=a*f,M+=5*A*o,M+=5*C*s,M+=5*x*c,O=M>>>13,M&=8191,M+=5*y*l,M+=5*v*u,M+=5*b*d,M+=5*m*h,M+=5*w*p,O+=M>>>13,M&=8191;var D=O;D+=n*w,D+=a*g,D+=o*f,D+=5*A*s,D+=5*C*c,O=D>>>13,D&=8191,D+=5*x*l,D+=5*y*u,D+=5*v*d,D+=5*b*h,D+=5*m*p,O+=D>>>13,D&=8191;var U=O;U+=n*m,U+=a*w,U+=o*g,U+=s*f,U+=5*A*c,O=U>>>13,U&=8191,U+=5*C*l,U+=5*x*u,U+=5*y*d,U+=5*v*h,U+=5*b*p,O+=U>>>13,U&=8191;var $=O;$+=n*b,$+=a*m,$+=o*w,$+=s*g,$+=c*f,O=$>>>13,$&=8191,$+=5*A*l,$+=5*C*u,$+=5*x*d,$+=5*y*h,$+=5*v*p,O+=$>>>13,$&=8191;var L=O;L+=n*v,L+=a*b,L+=o*m,L+=s*w,L+=c*g,O=L>>>13,L&=8191,L+=l*f,L+=5*A*u,L+=5*C*d,L+=5*x*h,L+=5*y*p,O+=L>>>13,L&=8191;var j=O;j+=n*y,j+=a*v,j+=o*b,j+=s*m,j+=c*w,O=j>>>13,j&=8191,j+=l*g,j+=u*f,j+=5*A*d,j+=5*C*h,j+=5*x*p,O+=j>>>13,j&=8191;var B=O;B+=n*x,B+=a*y,B+=o*v,B+=s*b,B+=c*m,O=B>>>13,B&=8191,B+=l*w,B+=u*g,B+=d*f,B+=5*A*h,B+=5*C*p,O+=B>>>13,B&=8191;var W=O;W+=n*C,W+=a*x,W+=o*y,W+=s*v,W+=c*b,O=W>>>13,W&=8191,W+=l*m,W+=u*w,W+=d*g,W+=h*f,W+=5*A*p,O+=W>>>13,W&=8191;var q=O;q+=n*A,q+=a*C,q+=o*x,q+=s*y,q+=c*v,O=q>>>13,q&=8191,q+=l*b,q+=u*m,q+=d*w,q+=h*g,q+=p*f,O+=q>>>13,q&=8191,E=8191&(O=(O=(O<<2)+O|0)+E|0),O>>>=13,M+=O,n=E,a=M,o=D,s=U,c=$,l=L,u=j,d=B,h=W,p=q,t+=16,i-=16}this._h[0]=n,this._h[1]=a,this._h[2]=o,this._h[3]=s,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=p},e.prototype.finish=function(e,t){void 0===t&&(t=0);var i,r,n,a,o=new Uint16Array(10);if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=5*i,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,o[0]=this._h[0]+5,i=o[0]>>>13,o[0]&=8191,a=1;a<10;a++)o[a]=this._h[a]+i,i=o[a]>>>13,o[a]&=8191;for(o[9]-=8192,r=(1^i)-1,a=0;a<10;a++)o[a]&=r;for(a=0,r=~r;a<10;a++)this._h[a]=this._h[a]&r|o[a];for(a=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,n=this._h[0]+this._pad[0],this._h[0]=65535&n;a<8;a++)n=(this._h[a]+this._pad[a]|0)+(n>>>16)|0,this._h[a]=65535&n;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,i=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var n=0;n<t;n++)this._buffer[this._leftover+n]=e[i+n];if(r-=t,i+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(r>=16&&(t=r-r%16,this._blocks(e,i,t),i+=t,r-=t),r){for(var n=0;n<r;n++)this._buffer[this._leftover+n]=e[i+n];this._leftover+=r}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return n.wipe(this._buffer),n.wipe(this._r),n.wipe(this._h),n.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=a,t.oneTimeAuth=function(e,t){var i=new a(e);i.update(t);var r=i.digest();return i.clean(),r},t.equal=function(e,i){return e.length===t.DIGEST_LENGTH&&i.length===t.DIGEST_LENGTH&&r.equal(e,i)}},78133:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let r=i(93677),n=i(18862),a=i(612);function o(e,i=t.defaultRandomSource){return i.randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){let i=o(4,e),r=(0,n.readUint32LE)(i);return(0,a.wipe)(i),r};let s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,i=s,r=t.defaultRandomSource){if(i.length<2)throw Error("randomString charset is too short");if(i.length>256)throw Error("randomString charset is too long");let n="",l=i.length,u=256-256%l;for(;e>0;){let t=o(Math.ceil(256*e/u),r);for(let r=0;r<t.length&&e>0;r++){let a=t[r];a<u&&(n+=i.charAt(a%l),e--)}(0,a.wipe)(t)}return n}t.randomString=c,t.randomStringForEntropy=function(e,i=s,r=t.defaultRandomSource){return c(Math.ceil(e/(Math.log(i.length)/Math.LN2)),i,r)}},5476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;class i{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}t.BrowserRandomSource=i},66236:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let r=i(612);class n{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=i(69147);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let i=new Uint8Array(e);for(let e=0;e<i.length;e++)i[e]=t[e];return(0,r.wipe)(t),i}}t.NodeRandomSource=n},93677:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let r=i(5476),n=i(66236);class a{constructor(){if(this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new n.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}t.SystemRandomSource=a},65904:(e,t,i)=>{"use strict";var r=i(18862),n=i(612);t.On=32,t.cS=64;var a=function(){function e(){this.digestLength=t.On,this.blockSize=t.cS,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=0x6a09e667,this._state[1]=0xbb67ae85,this._state[2]=0x3c6ef372,this._state[3]=0xa54ff53a,this._state[4]=0x510e527f,this._state[5]=0x9b05688c,this._state[6]=0x1f83d9ab,this._state[7]=0x5be0cd19},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var i=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[i++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(i=s(this._temp,this._state,e,i,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[i++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,i=this._bufferLength,n=t%64<56?64:128;this._buffer[i]=128;for(var a=i+1;a<n-8;a++)this._buffer[a]=0;r.writeUint32BE(t/0x20000000|0,this._buffer,n-8),r.writeUint32BE(t<<3,this._buffer,n-4),s(this._temp,this._state,this._buffer,0,n),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)r.writeUint32BE(this._state[a],e,4*a);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){n.wipe(e.state),e.buffer&&n.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.aD=a;var o=new Int32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]);function s(e,t,i,n,a){for(;a>=64;){for(var s=t[0],c=t[1],l=t[2],u=t[3],d=t[4],h=t[5],p=t[6],f=t[7],g=0;g<16;g++){var w=n+4*g;e[g]=r.readUint32BE(i,w)}for(var g=16;g<64;g++){var m=e[g-2],b=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,v=((m=e[g-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;e[g]=(b+e[g-7]|0)+(v+e[g-16]|0)}for(var g=0;g<64;g++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&p)|0)+(f+(o[g]+e[g]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&c^s&l^c&l)|0;f=p,p=h,h=d,d=u+b|0,u=l,l=c,c=s,s=b+v|0}t[0]+=s,t[1]+=c,t[2]+=l,t[3]+=u,t[4]+=d,t[5]+=h,t[6]+=p,t[7]+=f,n+=64,a-=64}return n}t.tW=function(e){var t=new a;t.update(e);var i=t.digest();return t.clean(),i}},93899:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(18862),n=i(612);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var a=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=0x6a09e667,this._stateHi[1]=0xbb67ae85,this._stateHi[2]=0x3c6ef372,this._stateHi[3]=0xa54ff53a,this._stateHi[4]=0x510e527f,this._stateHi[5]=0x9b05688c,this._stateHi[6]=0x1f83d9ab,this._stateHi[7]=0x5be0cd19,this._stateLo[0]=0xf3bcc908,this._stateLo[1]=0x84caa73b,this._stateLo[2]=0xfe94f82b,this._stateLo[3]=0x5f1d36f1,this._stateLo[4]=0xade682d1,this._stateLo[5]=0x2b3e6c1f,this._stateLo[6]=0xfb41bd6b,this._stateLo[7]=0x137e2179},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._tempHi),n.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,i){if(void 0===i&&(i=e.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var r=0;if(this._bytesHashed+=i,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&i>0;)this._buffer[this._bufferLength++]=e[r++],i--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(i>=this.blockSize&&(r=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,r,i),i%=this.blockSize);i>0;)this._buffer[this._bufferLength++]=e[r++],i--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,i=this._bufferLength,n=t%128<112?128:256;this._buffer[i]=128;for(var a=i+1;a<n-8;a++)this._buffer[a]=0;r.writeUint32BE(t/0x20000000|0,this._buffer,n-8),r.writeUint32BE(t<<3,this._buffer,n-4),s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,n),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)r.writeUint32BE(this._stateHi[a],e,8*a),r.writeUint32BE(this._stateLo[a],e,8*a+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){n.wipe(e.stateHi),n.wipe(e.stateLo),e.buffer&&n.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=a;var o=new Int32Array([0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817]);function s(e,t,i,n,a,s,c){for(var l,u,d,h,p,f,g,w,m=i[0],b=i[1],v=i[2],y=i[3],x=i[4],C=i[5],A=i[6],E=i[7],_=n[0],k=n[1],I=n[2],S=n[3],T=n[4],N=n[5],P=n[6],R=n[7];c>=128;){for(var O=0;O<16;O++){var M=8*O+s;e[O]=r.readUint32BE(a,M),t[O]=r.readUint32BE(a,M+4)}for(var O=0;O<80;O++){var D=m,U=b,$=v,L=y,j=x,B=C,W=A,q=E,H=_,z=k,F=I,Z=S,V=T,K=N,G=P,J=R;if(l=E,p=65535&(u=R),f=u>>>16,g=65535&l,w=l>>>16,l=(x>>>14|T<<18)^(x>>>18|T<<14)^(T>>>9|x<<23),p+=65535&(u=(T>>>14|x<<18)^(T>>>18|x<<14)^(x>>>9|T<<23)),f+=u>>>16,g+=65535&l,w+=l>>>16,l=x&C^~x&A,p+=65535&(u=T&N^~T&P),f+=u>>>16,g+=65535&l,w+=l>>>16,l=o[2*O],p+=65535&(u=o[2*O+1]),f+=u>>>16,g+=65535&l,w+=l>>>16,l=e[O%16],p+=65535&(u=t[O%16]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,d=65535&g|w<<16,h=65535&p|f<<16,l=d,p=65535&(u=h),f=u>>>16,g=65535&l,w=l>>>16,l=(m>>>28|_<<4)^(_>>>2|m<<30)^(_>>>7|m<<25),p+=65535&(u=(_>>>28|m<<4)^(m>>>2|_<<30)^(m>>>7|_<<25)),f+=u>>>16,g+=65535&l,w+=l>>>16,l=m&b^m&v^b&v,p+=65535&(u=_&k^_&I^k&I),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,q=65535&g|w<<16,J=65535&p|f<<16,l=L,p=65535&(u=Z),f=u>>>16,g=65535&l,w=l>>>16,l=d,p+=65535&(u=h),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,L=65535&g|w<<16,Z=65535&p|f<<16,b=D,v=U,y=$,x=L,C=j,A=B,E=W,m=q,k=H,I=z,S=F,T=Z,N=V,P=K,R=G,_=J,O%16==15)for(var M=0;M<16;M++)l=e[M],p=65535&(u=t[M]),f=u>>>16,g=65535&l,w=l>>>16,l=e[(M+9)%16],p+=65535&(u=t[(M+9)%16]),f+=u>>>16,g+=65535&l,w+=l>>>16,l=((d=e[(M+1)%16])>>>1|(h=t[(M+1)%16])<<31)^(d>>>8|h<<24)^d>>>7,p+=65535&(u=(h>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),f+=u>>>16,g+=65535&l,w+=l>>>16,l=((d=e[(M+14)%16])>>>19|(h=t[(M+14)%16])<<13)^(h>>>29|d<<3)^d>>>6,p+=65535&(u=(h>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26)),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,e[M]=65535&g|w<<16,t[M]=65535&p|f<<16}l=m,p=65535&(u=_),f=u>>>16,g=65535&l,w=l>>>16,l=i[0],p+=65535&(u=n[0]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[0]=m=65535&g|w<<16,n[0]=_=65535&p|f<<16,l=b,p=65535&(u=k),f=u>>>16,g=65535&l,w=l>>>16,l=i[1],p+=65535&(u=n[1]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[1]=b=65535&g|w<<16,n[1]=k=65535&p|f<<16,l=v,p=65535&(u=I),f=u>>>16,g=65535&l,w=l>>>16,l=i[2],p+=65535&(u=n[2]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[2]=v=65535&g|w<<16,n[2]=I=65535&p|f<<16,l=y,p=65535&(u=S),f=u>>>16,g=65535&l,w=l>>>16,l=i[3],p+=65535&(u=n[3]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[3]=y=65535&g|w<<16,n[3]=S=65535&p|f<<16,l=x,p=65535&(u=T),f=u>>>16,g=65535&l,w=l>>>16,l=i[4],p+=65535&(u=n[4]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[4]=x=65535&g|w<<16,n[4]=T=65535&p|f<<16,l=C,p=65535&(u=N),f=u>>>16,g=65535&l,w=l>>>16,l=i[5],p+=65535&(u=n[5]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[5]=C=65535&g|w<<16,n[5]=N=65535&p|f<<16,l=A,p=65535&(u=P),f=u>>>16,g=65535&l,w=l>>>16,l=i[6],p+=65535&(u=n[6]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[6]=A=65535&g|w<<16,n[6]=P=65535&p|f<<16,l=E,p=65535&(u=R),f=u>>>16,g=65535&l,w=l>>>16,l=i[7],p+=65535&(u=n[7]),f+=u>>>16,g+=65535&l,w+=l>>>16,f+=p>>>16,g+=f>>>16,w+=g>>>16,i[7]=E=65535&g|w<<16,n[7]=R=65535&p|f<<16,s+=128,c-=128}return s}t.hash=function(e){var t=new a;t.update(e);var i=t.digest();return t.clean(),i}},612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},32221:(e,t,i)=>{"use strict";t.Tc=t.TZ=t.wE=t.Xx=void 0;let r=i(78133),n=i(612);function a(e){let t=new Float64Array(16);if(e)for(let i=0;i<e.length;i++)t[i]=e[i];return t}t.Xx=32,t.wE=32;let o=new Uint8Array(32);o[0]=9;let s=a([56129,1]);function c(e){let t=1;for(let i=0;i<16;i++){let r=e[i]+t+65535;t=Math.floor(r/65536),e[i]=r-65536*t}e[0]+=t-1+37*(t-1)}function l(e,t,i){let r=~(i-1);for(let i=0;i<16;i++){let n=r&(e[i]^t[i]);e[i]^=n,t[i]^=n}}function u(e,t,i){for(let r=0;r<16;r++)e[r]=t[r]+i[r]}function d(e,t,i){for(let r=0;r<16;r++)e[r]=t[r]-i[r]}function h(e,t,i){let r,n,a=0,o=0,s=0,c=0,l=0,u=0,d=0,h=0,p=0,f=0,g=0,w=0,m=0,b=0,v=0,y=0,x=0,C=0,A=0,E=0,_=0,k=0,I=0,S=0,T=0,N=0,P=0,R=0,O=0,M=0,D=0,U=i[0],$=i[1],L=i[2],j=i[3],B=i[4],W=i[5],q=i[6],H=i[7],z=i[8],F=i[9],Z=i[10],V=i[11],K=i[12],G=i[13],J=i[14],Y=i[15];a+=(r=t[0])*U,o+=r*$,s+=r*L,c+=r*j,l+=r*B,u+=r*W,d+=r*q,h+=r*H,p+=r*z,f+=r*F,g+=r*Z,w+=r*V,m+=r*K,b+=r*G,v+=r*J,y+=r*Y,o+=(r=t[1])*U,s+=r*$,c+=r*L,l+=r*j,u+=r*B,d+=r*W,h+=r*q,p+=r*H,f+=r*z,g+=r*F,w+=r*Z,m+=r*V,b+=r*K,v+=r*G,y+=r*J,x+=r*Y,s+=(r=t[2])*U,c+=r*$,l+=r*L,u+=r*j,d+=r*B,h+=r*W,p+=r*q,f+=r*H,g+=r*z,w+=r*F,m+=r*Z,b+=r*V,v+=r*K,y+=r*G,x+=r*J,C+=r*Y,c+=(r=t[3])*U,l+=r*$,u+=r*L,d+=r*j,h+=r*B,p+=r*W,f+=r*q,g+=r*H,w+=r*z,m+=r*F,b+=r*Z,v+=r*V,y+=r*K,x+=r*G,C+=r*J,A+=r*Y,l+=(r=t[4])*U,u+=r*$,d+=r*L,h+=r*j,p+=r*B,f+=r*W,g+=r*q,w+=r*H,m+=r*z,b+=r*F,v+=r*Z,y+=r*V,x+=r*K,C+=r*G,A+=r*J,E+=r*Y,u+=(r=t[5])*U,d+=r*$,h+=r*L,p+=r*j,f+=r*B,g+=r*W,w+=r*q,m+=r*H,b+=r*z,v+=r*F,y+=r*Z,x+=r*V,C+=r*K,A+=r*G,E+=r*J,_+=r*Y,d+=(r=t[6])*U,h+=r*$,p+=r*L,f+=r*j,g+=r*B,w+=r*W,m+=r*q,b+=r*H,v+=r*z,y+=r*F,x+=r*Z,C+=r*V,A+=r*K,E+=r*G,_+=r*J,k+=r*Y,h+=(r=t[7])*U,p+=r*$,f+=r*L,g+=r*j,w+=r*B,m+=r*W,b+=r*q,v+=r*H,y+=r*z,x+=r*F,C+=r*Z,A+=r*V,E+=r*K,_+=r*G,k+=r*J,I+=r*Y,p+=(r=t[8])*U,f+=r*$,g+=r*L,w+=r*j,m+=r*B,b+=r*W,v+=r*q,y+=r*H,x+=r*z,C+=r*F,A+=r*Z,E+=r*V,_+=r*K,k+=r*G,I+=r*J,S+=r*Y,f+=(r=t[9])*U,g+=r*$,w+=r*L,m+=r*j,b+=r*B,v+=r*W,y+=r*q,x+=r*H,C+=r*z,A+=r*F,E+=r*Z,_+=r*V,k+=r*K,I+=r*G,S+=r*J,T+=r*Y,g+=(r=t[10])*U,w+=r*$,m+=r*L,b+=r*j,v+=r*B,y+=r*W,x+=r*q,C+=r*H,A+=r*z,E+=r*F,_+=r*Z,k+=r*V,I+=r*K,S+=r*G,T+=r*J,N+=r*Y,w+=(r=t[11])*U,m+=r*$,b+=r*L,v+=r*j,y+=r*B,x+=r*W,C+=r*q,A+=r*H,E+=r*z,_+=r*F,k+=r*Z,I+=r*V,S+=r*K,T+=r*G,N+=r*J,P+=r*Y,m+=(r=t[12])*U,b+=r*$,v+=r*L,y+=r*j,x+=r*B,C+=r*W,A+=r*q,E+=r*H,_+=r*z,k+=r*F,I+=r*Z,S+=r*V,T+=r*K,N+=r*G,P+=r*J,R+=r*Y,b+=(r=t[13])*U,v+=r*$,y+=r*L,x+=r*j,C+=r*B,A+=r*W,E+=r*q,_+=r*H,k+=r*z,I+=r*F,S+=r*Z,T+=r*V,N+=r*K,P+=r*G,R+=r*J,O+=r*Y,v+=(r=t[14])*U,y+=r*$,x+=r*L,C+=r*j,A+=r*B,E+=r*W,_+=r*q,k+=r*H,I+=r*z,S+=r*F,T+=r*Z,N+=r*V,P+=r*K,R+=r*G,O+=r*J,M+=r*Y,y+=(r=t[15])*U,x+=r*$,C+=r*L,A+=r*j,E+=r*B,_+=r*W,k+=r*q,I+=r*H,S+=r*z,T+=r*F,N+=r*Z,P+=r*V,R+=r*K,O+=r*G,M+=r*J,D+=r*Y,a+=38*x,o+=38*C,s+=38*A,c+=38*E,l+=38*_,u+=38*k,d+=38*I,h+=38*S,p+=38*T,f+=38*N,g+=38*P,w+=38*R,m+=38*O,b+=38*M,v+=38*D,n=Math.floor((r=a+(n=1)+65535)/65536),a=r-65536*n,n=Math.floor((r=o+n+65535)/65536),o=r-65536*n,n=Math.floor((r=s+n+65535)/65536),s=r-65536*n,n=Math.floor((r=c+n+65535)/65536),c=r-65536*n,n=Math.floor((r=l+n+65535)/65536),l=r-65536*n,n=Math.floor((r=u+n+65535)/65536),u=r-65536*n,n=Math.floor((r=d+n+65535)/65536),d=r-65536*n,n=Math.floor((r=h+n+65535)/65536),h=r-65536*n,n=Math.floor((r=p+n+65535)/65536),p=r-65536*n,n=Math.floor((r=f+n+65535)/65536),f=r-65536*n,n=Math.floor((r=g+n+65535)/65536),g=r-65536*n,n=Math.floor((r=w+n+65535)/65536),w=r-65536*n,n=Math.floor((r=m+n+65535)/65536),m=r-65536*n,n=Math.floor((r=b+n+65535)/65536),b=r-65536*n,n=Math.floor((r=v+n+65535)/65536),v=r-65536*n,n=Math.floor((r=y+n+65535)/65536),y=r-65536*n,a+=n-1+37*(n-1),n=Math.floor((r=a+(n=1)+65535)/65536),a=r-65536*n,n=Math.floor((r=o+n+65535)/65536),o=r-65536*n,n=Math.floor((r=s+n+65535)/65536),s=r-65536*n,n=Math.floor((r=c+n+65535)/65536),c=r-65536*n,n=Math.floor((r=l+n+65535)/65536),l=r-65536*n,n=Math.floor((r=u+n+65535)/65536),u=r-65536*n,n=Math.floor((r=d+n+65535)/65536),d=r-65536*n,n=Math.floor((r=h+n+65535)/65536),h=r-65536*n,n=Math.floor((r=p+n+65535)/65536),p=r-65536*n,n=Math.floor((r=f+n+65535)/65536),f=r-65536*n,n=Math.floor((r=g+n+65535)/65536),g=r-65536*n,n=Math.floor((r=w+n+65535)/65536),w=r-65536*n,n=Math.floor((r=m+n+65535)/65536),m=r-65536*n,n=Math.floor((r=b+n+65535)/65536),b=r-65536*n,n=Math.floor((r=v+n+65535)/65536),v=r-65536*n,n=Math.floor((r=y+n+65535)/65536),y=r-65536*n,a+=n-1+37*(n-1),e[0]=a,e[1]=o,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=p,e[9]=f,e[10]=g,e[11]=w,e[12]=m,e[13]=b,e[14]=v,e[15]=y}function p(e,t){let i=new Uint8Array(32),r=new Float64Array(80),n=a(),o=a(),p=a(),f=a(),g=a(),w=a();for(let t=0;t<31;t++)i[t]=e[t];i[31]=127&e[31]|64,i[0]&=248,function(e,t){for(let i=0;i<16;i++)e[i]=t[2*i]+(t[2*i+1]<<8);e[15]&=32767}(r,t);for(let e=0;e<16;e++)o[e]=r[e];n[0]=f[0]=1;for(let e=254;e>=0;--e){let t=i[e>>>3]>>>(7&e)&1;l(n,o,t),l(p,f,t),u(g,n,p),d(n,n,p),u(p,o,f),d(o,o,f),h(f,g,g),h(w,n,n),h(n,p,n),h(p,o,g),u(g,n,p),d(n,n,p),h(o,n,n),d(p,f,w),h(n,p,s),u(n,n,f),h(p,p,n),h(n,f,w),h(f,o,r),h(o,g,g),l(n,o,t),l(p,f,t)}for(let e=0;e<16;e++)r[e+16]=n[e],r[e+32]=p[e],r[e+48]=o[e],r[e+64]=f[e];let m=r.subarray(32),b=r.subarray(16);!function(e,t){let i=a();for(let e=0;e<16;e++)i[e]=t[e];for(let e=253;e>=0;e--)h(i,i,i),2!==e&&4!==e&&h(i,i,t);for(let t=0;t<16;t++)e[t]=i[t]}(m,m),h(b,b,m);let v=new Uint8Array(32);return!function(e,t){let i=a(),r=a();for(let e=0;e<16;e++)r[e]=t[e];c(r),c(r),c(r);for(let e=0;e<2;e++){i[0]=r[0]-65517;for(let e=1;e<15;e++)i[e]=r[e]-65535-(i[e-1]>>16&1),i[e-1]&=65535;i[15]=r[15]-32767-(i[14]>>16&1);let e=i[15]>>16&1;i[14]&=65535,l(r,i,1-e)}for(let t=0;t<16;t++)e[2*t]=255&r[t],e[2*t+1]=r[t]>>8}(v,b),v}t.TZ=function(e){let i=(0,r.randomBytes)(32,e),a=function(e){if(e.length!==t.wE)throw Error(`x25519: seed must be ${t.wE} bytes`);let i=new Uint8Array(e);return{publicKey:p(i,o),secretKey:i}}(i);return(0,n.wipe)(i),a},t.Tc=function(e,i,r=!1){if(e.length!==t.Xx)throw Error("X25519: incorrect secret key length");if(i.length!==t.Xx)throw Error("X25519: incorrect public key length");let n=p(e,i);if(r){let e=0;for(let t=0;t<n.length;t++)e|=n[t];if(0===e)throw Error("X25519: invalid shared key")}return n}},57414:(e,t,i)=>{"use strict";function r(){return(null===i.g||void 0===i.g?void 0:i.g.crypto)||(null===i.g||void 0===i.g?void 0:i.g.msCrypto)||{}}function n(){let e=r();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=r,t.getSubtleCrypto=n,t.isBrowserCryptoAvailable=function(){return!!r()&&!!n()}},13170:(e,t,i)=>{"use strict";var r=i(18596);function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function a(){return void 0!==r&&void 0!==r.versions&&void 0!==r.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=a,t.isBrowser=function(){return!n()&&!a()}},32105:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(50752);r.__exportStar(i(57414),t),r.__exportStar(i(13170),t)},52027:(e,t,i)=>{"use strict";i.d(t,{D5:()=>_,U5:()=>E,h6:()=>n.a,iP:()=>C,oI:()=>A});var r=i(87960),n=i.n(r),a=i(3619);let o={level:"info"},s="custom_context";class c{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class l{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new c(e);if(t.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=t):this.head=t,this.tail=t,this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let t=e.value;return e=e.next,{done:!1,value:t}}}}}class u{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=r.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new l(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===r.levels.values.error?console.error(e):t===r.levels.values.warn?console.warn(e):t===r.levels.values.debug?console.debug(e):t===r.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append((0,a.h)({timestamp:new Date().toISOString(),log:e}));let t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new l(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push((0,a.h)({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class d{constructor(e,t=1024e3){this.baseChunkLogger=new u(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let t=URL.createObjectURL(this.logsToBlob(e)),i=document.createElement("a");i.href=t,i.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(t)}}class h{constructor(e,t=1024e3){this.baseChunkLogger=new u(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var p=Object.defineProperty,f=Object.defineProperties,g=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,v=(e,t,i)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,y=(e,t)=>{for(var i in t||(t={}))m.call(t,i)&&v(e,i,t[i]);if(w)for(var i of w(t))b.call(t,i)&&v(e,i,t[i]);return e},x=(e,t)=>f(e,g(t));function C(e){return x(y({},e),{level:e?.level||o.level})}function A(e,t=s){return typeof e.bindings>"u"?function(e,t=s){return e[t]||""}(e,t):e.bindings().context||""}function E(e,t,i=s){let r=function(e,t,i=s){let r=A(e,i);return r.trim()?`${r}/${t}`:t}(e,t,i);return function(e,t,i=s){return e[i]=t,e}(e.child({context:r}),r,i)}function _(e){return"u">typeof e.loggerOverride&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:"u">typeof window?function(e){var t,i;let r=new d(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:n()(x(y({},e.opts),{level:"trace",browser:x(y({},null==(i=e.opts)?void 0:i.browser),{write:e=>r.write(e)})})),chunkLoggerController:r}}(e):function(e){var t;let i=new h(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:n()(x(y({},e.opts),{level:"trace"}),i),chunkLoggerController:i}}(e)}},84673:(e,t,i)=>{"use strict";i.d(t,{CG:()=>r});let r={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},68678:(e,t,i)=>{"use strict";i.d(t,{decodeJWT:()=>A,encodeIss:()=>C,generateKeyPair:()=>E,signJWT:()=>_});var r=i(19854),n=i(78133),a=i(71606);let o="base64url",s="utf8",c="utf8",l="base58btc";function u(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function d(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?u(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}var h=i(27095);function p(e,t,i,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:i},decoder:{decode:r}}}let f=p("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),g=p("ascii","a",e=>{let t="a";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},e=>{let t=d((e=e.substring(1)).length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}),w={utf8:f,"utf-8":f,hex:h.Fo.base16,latin1:g,ascii:g,binary:g,...h.Fo};function m(e,t="utf8"){let i=w[t];if(!i)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):i.encoder.encode(e).substring(1)}function b(e,t="utf8"){let i=w[t];if(!i)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?u(globalThis.Buffer.from(e,"utf-8")):i.decoder.decode(`${i.prefix}${e}`)}var v=i(3619);function y(e){return(0,v.j)(m(b(e,o),s))}function x(e){return m(b((0,v.h)(e),s),o)}function C(e){return["did","key","z"+m(function(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let i=d(t),r=0;for(let t of e)i.set(t,r),r+=t.length;return u(i)}([b("K36",l),e]),l)].join(":")}function A(e){let t=e.split("."),i=y(t[0]);return{header:i,payload:y(t[1]),signature:b(t[2],o),data:b(t.slice(0,2).join("."),c)}}function E(e=(0,n.randomBytes)(32)){return r.K(e)}async function _(e,t,i,n,s=(0,a.fromMiliseconds)(Date.now())){var l,u;let d={alg:"EdDSA",typ:"JWT"},h={iss:C(n.publicKey),sub:e,aud:t,iat:s,exp:s+i},p=b([x((l={header:d,payload:h}).header),x(l.payload)].join("."),c);return[x((u={header:d,payload:h,signature:r._S(n.secretKey,p)}).header),x(u.payload),m(u.signature,o)].join(".")}i(70790)},70790:()=>{},3619:(e,t,i)=>{"use strict";i.d(t,{h:()=>o,j:()=>a});let r=e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t),n=e=>JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t);function a(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return n(e)}catch(t){return e}}function o(e){return"string"==typeof e?e:r(e)||""}},91464:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(50752);r.__exportStar(i(78116),t),r.__exportStar(i(29089),t)},78116:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},29089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},71606:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(50752);r.__exportStar(i(99200),t),r.__exportStar(i(68349),t),r.__exportStar(i(73140),t),r.__exportStar(i(91464),t)},73140:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i(50752).__exportStar(i(39183),t)},39183:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class i{}t.IWatch=i},93771:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let r=i(91464);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},46167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},99200:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=i(50752);r.__exportStar(i(46167),t),r.__exportStar(i(93771),t)},68349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class i{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let i=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:i})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=i,t.default=i},27258:(e,t,i)=>{"use strict";let r;i.d(t,{l:()=>no,A:()=>na});var n=i(31670),a=i.n(n),o=i(71606);class s{}class c extends s{constructor(e){super()}}let l=o.FIVE_SECONDS,u={pulse:"heartbeat_pulse"};class d extends c{constructor(e){super(e),this.events=new n.EventEmitter,this.interval=l,this.interval=e?.interval||l}static async init(e){let t=new d(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,o.toMiliseconds)(this.interval))}pulse(){this.events.emit(u.pulse)}}var h=i(99102),p=i(41562).Buffer;function f(e,...t){try{var i;return(i=e(...t))&&"function"==typeof i.then?i:Promise.resolve(i)}catch(e){return Promise.reject(e)}}function g(e){if(function(e){let t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return g(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}function w(){if(void 0===p)throw TypeError("[unstorage] Buffer is not supported!")}let m="base64:";function b(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function v(e){return(e=b(e))?e+":":""}let y=()=>{let e=new Map;return{name:"memory",getInstance:()=>e,hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,i){e.set(t,i)},setItemRaw(t,i){e.set(t,i)},removeItem(t){e.delete(t)},getKeys:()=>[...e.keys()],clear(){e.clear()},dispose(){e.clear()}}};function x(e,t,i){return e.watch?e.watch((e,r)=>t(e,i+r)):()=>{}}async function C(e){"function"==typeof e.dispose&&await f(e.dispose)}function A(e){return new Promise((t,i)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>i(e.error)})}function E(e,t){let i=indexedDB.open(e);i.onupgradeneeded=()=>i.result.createObjectStore(t);let r=A(i);return(e,i)=>r.then(r=>i(r.transaction(t,e).objectStore(t)))}function _(){return r||(r=E("keyval-store","keyval")),r}function k(e,t=_()){return t("readonly",t=>A(t.get(e)))}var I=i(3619),S=(e={})=>{let t;let i=e.base&&e.base.length>0?`${e.base}:`:"",r=e=>i+e;return e.dbName&&e.storeName&&(t=E(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await k(r(e),t)>"u"),getItem:async e=>await k(r(e),t)??null,setItem:(e,i)=>(function(e,t,i=_()){return i("readwrite",i=>(i.put(t,e),A(i.transaction)))})(r(e),i,t),removeItem:e=>(function(e,t=_()){return t("readwrite",t=>(t.delete(e),A(t.transaction)))})(r(e),t),getKeys:()=>(function(e=_()){return e("readonly",e=>{var t;if(e.getAllKeys)return A(e.getAllKeys());let i=[];return(t=e=>i.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},A(e.transaction)).then(()=>i)})})(t),clear:()=>(function(e=_()){return e("readwrite",e=>(e.clear(),A(e.transaction)))})(t)}};class T{constructor(){this.indexedDb=function(e={}){let t={mounts:{"":e.driver||y()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},i=e=>{for(let i of t.mountpoints)if(e.startsWith(i))return{base:i,relativeKey:e.slice(i.length),driver:t.mounts[i]};return{base:"",relativeKey:e,driver:t.mounts[""]}},r=(e,i)=>t.mountpoints.filter(t=>t.startsWith(e)||i&&e.startsWith(t)).map(i=>({relativeBase:e.length>i.length?e.slice(i.length):void 0,mountpoint:i,driver:t.mounts[i]})),n=(e,i)=>{if(t.watching)for(let r of(i=b(i),t.watchListeners))r(e,i)},a=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await x(t.mounts[e],n,e)},o=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},s=(e,t,r)=>{let n=new Map,a=e=>{let t=n.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},n.set(e.base,t)),t};for(let r of e){let e="string"==typeof r,n=b(e?r:r.key),o=e?void 0:r.value,s=e||!r.options?t:{...t,...r.options},c=i(n);a(c).items.push({key:n,value:o,relativeKey:c.relativeKey,options:s})}return Promise.all([...n.values()].map(e=>r(e))).then(e=>e.flat())},c={hasItem(e,t={}){let{relativeKey:r,driver:n}=i(e=b(e));return f(n.hasItem,r,t)},getItem(e,t={}){let{relativeKey:r,driver:n}=i(e=b(e));return f(n.getItem,r,t).then(e=>(0,h.Ay)(e))},getItems:(e,t)=>s(e,t,e=>e.driver.getItems?f(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return b(e.join(":"))}(e.base,t.key),value:(0,h.Ay)(t.value)}))):Promise.all(e.items.map(t=>f(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:(0,h.Ay)(e)}))))),getItemRaw(e,t={}){let{relativeKey:r,driver:n}=i(e=b(e));return n.getItemRaw?f(n.getItemRaw,r,t):f(n.getItem,r,t).then(e=>"string"==typeof e&&e.startsWith(m)?(w(),p.from(e.slice(m.length),"base64")):e)},async setItem(e,t,r={}){if(void 0===t)return c.removeItem(e);let{relativeKey:a,driver:o}=i(e=b(e));o.setItem&&(await f(o.setItem,a,g(t),r),o.watch||n("update",e))},async setItems(e,t){await s(e,t,async e=>{if(e.driver.setItems)return f(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:g(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>f(e.driver.setItem,t.relativeKey,g(t.value),t.options)))})},async setItemRaw(e,t,r={}){if(void 0===t)return c.removeItem(e,r);let{relativeKey:a,driver:o}=i(e=b(e));if(o.setItemRaw)await f(o.setItemRaw,a,t,r);else{if(!o.setItem)return;await f(o.setItem,a,"string"==typeof t?t:(w(),m+p.from(t).toString("base64")),r)}o.watch||n("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:r,driver:a}=i(e=b(e));a.removeItem&&(await f(a.removeItem,r,t),(t.removeMeta||t.removeMata)&&await f(a.removeItem,r+"$",t),a.watch||n("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:r,driver:n}=i(e=b(e)),a=Object.create(null);if(n.getMeta&&Object.assign(a,await f(n.getMeta,r,t)),!t.nativeOnly){let e=await f(n.getItem,r+"$",t).then(e=>(0,h.Ay)(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(a,e))}return a},setMeta(e,t,i={}){return this.setItem(e+"$",t,i)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){let i=r(e=v(e),!0),n=[],a=[];for(let e of i){for(let i of(await f(e.driver.getKeys,e.relativeBase,t))){let t=e.mountpoint+b(i);n.some(e=>t.startsWith(e))||a.push(t)}n=[e.mountpoint,...n.filter(t=>!t.startsWith(e.mountpoint))]}return e?a.filter(t=>t.startsWith(e)&&"$"!==t[t.length-1]):a.filter(e=>"$"!==e[e.length-1])},async clear(e,t={}){e=v(e),await Promise.all(r(e,!1).map(async e=>e.driver.clear?f(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(i=>e.driver.removeItem(i,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>C(e)))},watch:async e=>(await a(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await o()}),async unwatch(){t.watchListeners=[],await o()},mount(e,i){if((e=v(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=i,t.watching&&Promise.resolve(x(i,n,e)).then(i=>{t.unwatch[e]=i}).catch(console.error),c},async unmount(e,i=!0){(e=v(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),i&&await C(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=""){let t=i(e=b(e)+":");return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>r(e=b(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint})),keys:(e,t={})=>c.getKeys(e,t),get:(e,t={})=>c.getItem(e,t),set:(e,t,i={})=>c.setItem(e,t,i),has:(e,t={})=>c.hasItem(e,t),del:(e,t={})=>c.removeItem(e,t),remove:(e,t={})=>c.removeItem(e,t)};return c}({driver:S({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,(0,I.h)(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var N="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof i.g?i.g:"u">typeof self?self:{},P={exports:{}};function R(e){var t;return[e[0],(0,I.j)(null!=(t=e[1])?t:"")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof N&&N.localStorage?P.exports=N.localStorage:"u">typeof window&&window.localStorage?P.exports=window.localStorage:P.exports=new e}();class O{constructor(){this.localStorage=P.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(R)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return(0,I.j)(t)}async setItem(e,t){this.localStorage.setItem(e,(0,I.h)(t))}async removeItem(e){this.localStorage.removeItem(e)}}let M=async(e,t,i)=>{let r="wc_storage_version",n=await t.getItem(r);if(n&&n>=1){i(t);return}let a=await e.getKeys();if(!a.length){i(t);return}let o=[];for(;a.length;){let i=a.shift();if(!i)continue;let r=i.toLowerCase();if(r.includes("wc@")||r.includes("walletconnect")||r.includes("wc_")||r.includes("wallet_connect")){let r=await e.getItem(i);await t.setItem(i,r),o.push(i)}}await t.setItem(r,1),i(t),D(e,o)},D=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class U{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new O;this.storage=e;try{let t=new T;M(e,t,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}}var $=i(52027);class L extends s{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class j extends s{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class B{constructor(e,t){this.logger=e,this.core=t}}class W extends s{constructor(e,t){super(),this.relayer=e,this.logger=t}}class q extends s{constructor(e){super()}}class H{constructor(e,t,i,r){this.core=e,this.logger=t,this.name=i}}class z extends s{constructor(e,t){super(),this.relayer=e,this.logger=t}}class F extends s{constructor(e,t){super(),this.core=e,this.logger=t}}class Z{constructor(e,t,i){this.core=e,this.logger=t,this.store=i}}class V{constructor(e,t){this.projectId=e,this.logger=t}}class K{constructor(e,t,i){this.core=e,this.logger=t,this.telemetryEnabled=i}}class G{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class J{constructor(e){this.client=e}}var Y=i(68678),Q=i(96374),X=i(63565);let ee="INTERNAL_ERROR",et="SERVER_ERROR",ei=[-32700,-32600,-32601,-32602,-32603],er={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[ee]:{code:-32603,message:"Internal error"},[et]:{code:-32e3,message:"Server error"}};function en(e){return Object.keys(er).includes(e)?er[e]:er[et]}function ea(e,t,i){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${i} RPC url at ${t}`):e}var eo=i(32105);function es(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function ec(e=6){return BigInt(es(e))}function el(e,t,i){return{id:i||es(),jsonrpc:"2.0",method:e,params:t}}function eu(e,t){return{id:e,jsonrpc:"2.0",result:t}}function ed(e,t,i){var r,n,a;return{id:e,jsonrpc:"2.0",error:void 0===(r=t)?en(ee):("string"==typeof r&&(r=Object.assign(Object.assign({},en(et)),{message:r})),void 0!==i&&(r.data=i),n=r.code,ei.includes(n)&&(a=r.code,r=Object.values(er).find(e=>e.code===a)||er[et]),r)}}class eh{}class ep extends eh{constructor(){super()}}class ef extends ep{constructor(e){super()}}function eg(e,t){let i=function(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==i&&new RegExp(t).test(i)}function ew(e){return eg(e,"^https?:")}function em(e){return eg(e,"^wss?:")}function eb(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function ev(e){return eb(e)&&"method"in e}function ey(e){return eb(e)&&(ex(e)||eC(e))}function ex(e){return"result"in e}function eC(e){return"error"in e}class eA extends ef{constructor(e){super(e),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(el(e.method,e.params||[],e.id||ec().toString()),t)}async requestStrict(e,t){return new Promise(async(i,r)=>{if(!this.connection.connected)try{await this.open()}catch(e){r(e)}this.events.on(`${e.id}`,e=>{eC(e)?r(e.error):i(e.result)});try{await this.connection.send(e,t)}catch(e){r(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),ey(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}let eE=()=>"u">typeof WebSocket||"u">typeof i.g&&"u">typeof i.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket,e_=e=>e.split("?")[0],ek="u">typeof WebSocket?WebSocket:"u">typeof i.g&&"u">typeof i.g.WebSocket?i.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:i(13361);class eI{constructor(e){if(this.url=e,this.events=new n.EventEmitter,this.registering=!1,!em(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(Error("Connection already closed"));return}this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,I.h)(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!em(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,i)=>{let r=new URLSearchParams(e).get("origin"),n=(0,eo.isReactNative)()?{headers:{origin:r}}:{rejectUnauthorized:!RegExp("wss?://localhost(:d{2,5})?").test(e)},a=new ek(e,[],n);eE()?a.onerror=e=>{i(this.emitError(e.error))}:a.on("error",e=>{i(this.emitError(e))}),a.onopen=()=>{this.onOpen(a),t(a)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,I.j)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let i=this.parseError(t),r=ed(e,i.message||i.toString());this.events.emit("payload",r)}parseError(e,t=this.url){return ea(e,e_(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${e_(this.url)}`));return this.events.emit("register_error",t),t}}var eS=i(1606),eT=i.n(eS);let eN="core",eP=`wc@2:${eN}:`,eR={logger:"error"},eO={database:":memory:"},eM="client_ed25519_seed",eD=o.ONE_DAY,eU=o.SIX_HOURS,e$="wss://relay.walletconnect.org",eL={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",publish:"relayer_publish"},ej={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},eB="2.17.0",eW={link_mode:"link_mode",relay:"relay"},eq="WALLETCONNECT_LINK_MODE_APPS",eH={created:"subscription_created",deleted:"subscription_deleted",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},ez=1e3*o.FIVE_SECONDS,eF={wc_pairingDelete:{req:{ttl:o.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:o.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:o.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:o.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:o.ONE_DAY,prompt:!1,tag:0},res:{ttl:o.ONE_DAY,prompt:!1,tag:0}}},eZ={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},eV={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},eK={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},eG="https://verify.walletconnect.org",eJ=`${eG}/v3`,eY=["https://verify.walletconnect.com",eG],eQ={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal"},eX={no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_listener_not_found:"proposal_listener_not_found"},e0={session_approve_started:"session_approve_started",session_namespaces_validation_success:"session_namespaces_validation_success",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},e1={no_internet_connection:"no_internet_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},e2={authenticated_session_approve_started:"authenticated_session_approve_started",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve"},e3={no_internet_connection:"no_internet_connection",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"};var e5=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var i=new Uint8Array(256),r=0;r<i.length;r++)i[r]=255;for(var n=0;n<e.length;n++){var a=e.charAt(n),o=a.charCodeAt(0);if(255!==i[o])throw TypeError(a+" is ambiguous");i[o]=n}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var r=0,n=0;e[t]===c;)r++,t++;for(var a=(e.length-t)*l+1>>>0,o=new Uint8Array(a);e[t];){var u=i[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=a-1;(0!==u||d<n)&&-1!==h;h--,d++)u+=s*o[h]>>>0,o[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");n=d,t++}if(" "!==e[t]){for(var p=a-n;p!==a&&0===o[p];)p++;for(var f=new Uint8Array(r+(a-p)),g=r;p!==a;)f[g++]=o[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var i=0,r=0,n=0,a=t.length;n!==a&&0===t[n];)n++,i++;for(var o=(a-n)*u+1>>>0,l=new Uint8Array(o);n!==a;){for(var d=t[n],h=0,p=o-1;(0!==d||h<r)&&-1!==p;p--,h++)d+=256*l[p]>>>0,l[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");r=h,n++}for(var f=o-r;f!==o&&0===l[f];)f++;for(var g=c.repeat(i);f<o;++f)g+=e.charAt(l[f]);return g},decodeUnsafe:d,decode:function(e){var i=d(e);if(i)return i;throw Error(`Non-${t} character`)}}};let e4=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},e6=e=>new TextEncoder().encode(e),e8=e=>new TextDecoder().decode(e);class e9{constructor(e,t,i){this.name=e,this.prefix=t,this.baseEncode=i}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class e7{constructor(e,t,i){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=i}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return tt(this,e)}}class te{constructor(e){this.decoders=e}or(e){return tt(this,e)}decode(e){let t=e[0],i=this.decoders[t];if(i)return i.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let tt=(e,t)=>new te({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class ti{constructor(e,t,i,r){this.name=e,this.prefix=t,this.baseEncode=i,this.baseDecode=r,this.encoder=new e9(e,t,i),this.decoder=new e7(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let tr=({name:e,prefix:t,encode:i,decode:r})=>new ti(e,t,i,r),tn=({prefix:e,name:t,alphabet:i})=>{let{encode:r,decode:n}=e5(i,t);return tr({prefix:e,name:t,encode:r,decode:e=>e4(n(e))})},ta=(e,t,i,r)=>{let n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let a=e.length;for(;"="===e[a-1];)--a;let o=new Uint8Array(a*i/8|0),s=0,c=0,l=0;for(let t=0;t<a;++t){let a=n[e[t]];if(void 0===a)throw SyntaxError(`Non-${r} character`);c=c<<i|a,(s+=i)>=8&&(s-=8,o[l++]=255&c>>s)}if(s>=i||255&c<<8-s)throw SyntaxError("Unexpected end of data");return o},to=(e,t,i)=>{let r="="===t[t.length-1],n=(1<<i)-1,a="",o=0,s=0;for(let r=0;r<e.length;++r)for(s=s<<8|e[r],o+=8;o>i;)o-=i,a+=t[n&s>>o];if(o&&(a+=t[n&s<<i-o]),r)for(;a.length*i&7;)a+="=";return a},ts=({name:e,prefix:t,bitsPerChar:i,alphabet:r})=>tr({prefix:t,name:e,encode:e=>to(e,r,i),decode:t=>ta(t,r,i,e)});var tc=Object.freeze({__proto__:null,identity:tr({prefix:"\0",name:"identity",encode:e=>e8(e),decode:e=>e6(e)})}),tl=Object.freeze({__proto__:null,base2:ts({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),tu=Object.freeze({__proto__:null,base8:ts({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),td=Object.freeze({__proto__:null,base10:tn({prefix:"9",name:"base10",alphabet:"0123456789"})}),th=Object.freeze({__proto__:null,base16:ts({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:ts({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let tp=ts({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),tf=ts({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),tg=ts({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),tw=ts({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),tm=ts({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),tb=ts({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5});var tv=Object.freeze({__proto__:null,base32:tp,base32upper:tf,base32pad:tg,base32padupper:tw,base32hex:tm,base32hexupper:tb,base32hexpad:ts({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper:ts({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:ts({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),ty=Object.freeze({__proto__:null,base36:tn({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:tn({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),tx=Object.freeze({__proto__:null,base58btc:tn({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:tn({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let tC=ts({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6});var tA=Object.freeze({__proto__:null,base64:tC,base64pad:ts({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url:ts({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:ts({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let tE=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),t_=tE.reduce((e,t,i)=>(e[i]=t,e),[]),tk=tE.reduce((e,t,i)=>(e[t.codePointAt(0)]=i,e),[]);var tI=Object.freeze({__proto__:null,base256emoji:tr({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=t_[t],"")},decode:function(e){let t=[];for(let i of e){let e=tk[i.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${i}`);t.push(e)}return new Uint8Array(t)}})});function tS(e,t){var i,r=0,t=t||0,n=0,a=t,o=e.length;do{if(a>=o)throw tS.bytes=0,RangeError("Could not decode varint");i=e[a++],r+=n<28?(127&i)<<n:(127&i)*Math.pow(2,n),n+=7}while(i>=128);return tS.bytes=a-t,r}var tT={encode:function e(t,i,r){i=i||[],r=r||0;for(var n=r;t>=0x80000000;)i[r++]=255&t|128,t/=128;for(;-128&t;)i[r++]=255&t|128,t>>>=7;return i[r]=0|t,e.bytes=r-n+1,i},encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}};let tN=(e,t,i=0)=>(tT.encode(e,t,i),t),tP=e=>tT.encodingLength(e),tR=(e,t)=>{let i=t.byteLength,r=tP(e),n=r+tP(i),a=new Uint8Array(n+i);return tN(e,a,0),tN(i,a,r),a.set(t,n),new tO(e,i,t,a)};class tO{constructor(e,t,i,r){this.code=e,this.size=t,this.digest=i,this.bytes=r}}let tM=({name:e,code:t,encode:i})=>new tD(e,t,i);class tD{constructor(e,t,i){this.name=e,this.code=t,this.encode=i}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tR(this.code,t):t.then(e=>tR(this.code,e))}throw Error("Unknown type, must be binary type")}}let tU=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var t$=Object.freeze({__proto__:null,sha256:tM({name:"sha2-256",code:18,encode:tU("SHA-256")}),sha512:tM({name:"sha2-512",code:19,encode:tU("SHA-512")})}),tL=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:e4,digest:e=>tR(0,e4(e))}});new TextEncoder,new TextDecoder;let tj={...tc,...tl,...tu,...td,...th,...tv,...ty,...tx,...tA,...tI};function tB(e,t,i,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:i},decoder:{decode:r}}}({...t$,...tL});let tW=tB("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),tq=tB("ascii","a",e=>{let t="a";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},e=>{let t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}),tH={utf8:tW,"utf-8":tW,hex:tj.base16,latin1:tq,ascii:tq,binary:tq,...tj};class tz{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=eP,this.init=async()=>{if(!this.initialized){let e=await this.getKeyChain();"u">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();let t=this.keychain.get(e);if(typeof t>"u"){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=(0,$.U5)(t,this.name)}get context(){return(0,$.oI)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,Q.h0Y)(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,Q.PUk)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}}class tF{constructor(e,t,i){this.core=e,this.logger=t,this.name="crypto",this.randomSessionIdentifier=(0,Q.two)(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();let e=await this.getClientSeed(),t=Y.generateKeyPair(e);return Y.encodeIss(t.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let e=(0,Q.TZl)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let t=await this.getClientSeed(),i=Y.generateKeyPair(t),r=this.randomSessionIdentifier;return await Y.signJWT(r,e,eD,i)},this.generateSharedKey=(e,t,i)=>{this.isInitialized();let r=this.getPrivateKey(e),n=(0,Q.ovp)(r,t);return this.setSymKey(n,i)},this.setSymKey=async(e,t)=>{this.isInitialized();let i=t||(0,Q.EN$)(e);return await this.keychain.set(i,e),i},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,i)=>{this.isInitialized();let r=(0,Q.AwN)(i),n=(0,I.h)(t);if((0,Q.ps1)(r))return(0,Q.Tw2)(n,i?.encoding);if((0,Q.V7m)(r)){let t=r.senderPublicKey,i=r.receiverPublicKey;e=await this.generateSharedKey(t,i)}let a=this.getSymKey(e),{type:o,senderPublicKey:s}=r;return(0,Q.wa2)({type:o,symKey:a,message:n,senderPublicKey:s,encoding:i?.encoding})},this.decode=async(e,t,i)=>{this.isInitialized();let r=(0,Q.C5G)(t,i);if((0,Q.ps1)(r)){let e=(0,Q.F$L)(t,i?.encoding);return(0,I.j)(e)}if((0,Q.V7m)(r)){let t=r.receiverPublicKey,i=r.senderPublicKey;e=await this.generateSharedKey(t,i)}try{let r=this.getSymKey(e),n=(0,Q.YcA)({symKey:r,encoded:t,encoding:i?.encoding});return(0,I.j)(n)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=(e,t=Q.EWt)=>{let i=(0,Q.iui)({encoded:e,encoding:t});return(0,Q.x0t)(i.type)},this.getPayloadSenderPublicKey=(e,t=Q.EWt)=>{let i=(0,Q.iui)({encoded:e,encoding:t});return i.senderPublicKey?(0,X.dI)(i.senderPublicKey,Q.bEt):void 0},this.core=e,this.logger=(0,$.U5)(t,this.name),this.keychain=i||new tz(this.core,this.logger)}get context(){return(0,$.oI)(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(eM)}catch{e=(0,Q.two)(),await this.keychain.set(eM,e)}return function(e,t="utf8"){let i=tH[t];if(!i)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):i.decoder.decode(`${i.prefix}${e}`)}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}}class tZ extends B{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=eP,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let e=await this.getRelayerMessages();"u">typeof e&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();let i=(0,Q.ALl)(t),r=this.messages.get(e);return typeof r>"u"&&(r={}),"u">typeof r[i]||(r[i]=t,this.messages.set(e,r),await this.persist()),i},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),"u">typeof this.get(e)[(0,Q.ALl)(t)]),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=(0,$.U5)(e,this.name),this.core=t}get context(){return(0,$.oI)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,Q.h0Y)(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,Q.PUk)(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}}class tV extends W{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new n.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,o.toMiliseconds)(o.ONE_MINUTE),this.failedPublishTimeout=(0,o.toMiliseconds)(o.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,i)=>{var r;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:i}});let n=i?.ttl||eU,a=(0,Q.n6V)(i),o=i?.prompt||!1,s=i?.tag||0,c=i?.id||ec().toString(),l={topic:e,message:t,opts:{ttl:n,relay:a,prompt:o,tag:s,id:c,attestation:i?.attestation}},u=`Failed to publish payload, please try again. id:${c} tag:${s}`,d=Date.now(),h,p=1;try{for(;void 0===h;){if(Date.now()-d>this.publishTimeout)throw Error(u);this.logger.trace({id:c,attempts:p},`publisher.publish - attempt ${p}`),h=await await (0,Q.K3g)(this.rpcPublish(e,t,n,a,o,s,c,i?.attestation).catch(e=>this.logger.warn(e)),this.publishTimeout,u),p++,h||await new Promise(e=>setTimeout(e,this.failedPublishTimeout))}this.relayer.events.emit(eL.publish,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:e,message:t,opts:i}})}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),null!=(r=i?.internal)&&r.throwOnFailedPublish)throw e;this.queue.set(c,l)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=(0,$.U5)(t,this.name),this.registerEventListeners()}get context(){return(0,$.oI)(this.logger)}rpcPublish(e,t,i,r,n,a,o,s){var c,l,u,d;let h={method:(0,Q.aa1)(r.protocol).publish,params:{topic:e,message:t,ttl:i,prompt:n,tag:a,attestation:s},id:o};return(0,Q.b07)(null==(c=h.params)?void 0:c.prompt)&&(null==(l=h.params)||delete l.prompt),(0,Q.b07)(null==(u=h.params)?void 0:u.tag)&&(null==(d=h.params)||delete d.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.request(h)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:i,opts:r}=e;await this.publish(t,i,r)})}registerEventListeners(){this.relayer.core.heartbeat.on(u.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(eL.connection_stalled);return}this.checkQueue()}),this.relayer.on(eL.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class tK{constructor(){this.map=new Map,this.set=(e,t)=>{let i=this.get(e);this.exists(e,t)||this.map.set(e,[...i,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let i=this.get(e);if(!this.exists(e,t))return;let r=i.filter(e=>e!==t);if(!r.length){this.map.delete(e);return}this.map.set(e,r)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var tG=Object.defineProperty,tJ=Object.defineProperties,tY=Object.getOwnPropertyDescriptors,tQ=Object.getOwnPropertySymbols,tX=Object.prototype.hasOwnProperty,t0=Object.prototype.propertyIsEnumerable,t1=(e,t,i)=>t in e?tG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,t2=(e,t)=>{for(var i in t||(t={}))tX.call(t,i)&&t1(e,i,t[i]);if(tQ)for(var i of tQ(t))t0.call(t,i)&&t1(e,i,t[i]);return e},t3=(e,t)=>tJ(e,tY(t));class t5 extends z{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new tK,this.events=new n.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=eP,this.subscribeTimeout=(0,o.toMiliseconds)(o.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId(),await this.restore()),this.initialized=!0},this.subscribe=async(e,t)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{let i=(0,Q.n6V)(t),r={topic:e,relay:i,transportType:t?.transportType};this.pending.set(e,r);let n=await this.rpcSubscribe(e,i,t?.transportType);return"string"==typeof n&&(this.onSubscribe(n,r),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),n}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof t?.id?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;let t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise((i,r)=>{let n=new o.Watch;n.start(t);let a=setInterval(()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(a),n.stop(t),i(!0)),n.elapsed(t)>=ez&&(clearInterval(a),n.stop(t),r(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=(0,$.U5)(t,this.name),this.clientId=""}get context(){return(0,$.oI)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let i=!1;try{i=this.getSubscription(e).topic===t}catch{}return i}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let i=this.topicMap.get(e);await Promise.all(i.map(async i=>await this.unsubscribeById(e,i,t)))}async unsubscribeById(e,t,i){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:i}});try{let r=(0,Q.n6V)(i);await this.rpcUnsubscribe(e,t,r);let n=(0,Q.Hjj)("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:i}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}async rpcSubscribe(e,t,i=eW.relay){i===eW.relay&&await this.restartToComplete();let r={method:(0,Q.aa1)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{let t=(0,Q.ALl)(e+this.clientId);return i===eW.link_mode?(setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(r).catch(e=>this.logger.warn(e))},(0,o.toMiliseconds)(o.ONE_SECOND)),t):await await (0,Q.K3g)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)?t:null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(eL.connection_stalled)}return null}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,i={method:(0,Q.aa1)(t.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i});try{return await await (0,Q.K3g)(this.relayer.request(i).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(eL.connection_stalled)}}async rpcBatchFetchMessages(e){let t;if(!e.length)return;let i=e[0].relay,r={method:(0,Q.aa1)(i.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{t=await await (0,Q.K3g)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(eL.connection_stalled)}return t}rpcUnsubscribe(e,t,i){let r={method:(0,Q.aa1)(i.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),this.relayer.request(r)}onSubscribe(e,t){this.setSubscription(e,t3(t2({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,t2({},e)),this.pending.delete(e.topic)})}async onUnsubscribe(e,t,i){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,i),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,t2({},t)),this.topicMap.set(t.topic,e),this.events.emit(eH.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let i=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(i.topic,e),this.events.emit(eH.deleted,t3(t2({},i),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(eH.sync)}async reset(){if(this.cached.length){let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t<e;t++){let e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(eH.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){let{message:e}=(0,Q.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);(0,Q.OP1)(t)&&this.onBatchSubscribe(t.map((t,i)=>t3(t2({},e[i]),{id:t})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(u.pulse,async()=>{await this.checkPending()}),this.events.on(eH.created,async e=>{let t=eH.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(eH.deleted,async e=>{let t=eH.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}async restartToComplete(){this.relayer.connected||this.relayer.connecting||await this.relayer.transportOpen(),this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}}var t4=Object.defineProperty,t6=Object.getOwnPropertySymbols,t8=Object.prototype.hasOwnProperty,t9=Object.prototype.propertyIsEnumerable,t7=(e,t,i)=>t in e?t4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ie=(e,t)=>{for(var i in t||(t={}))t8.call(t,i)&&t7(e,i,t[i]);if(t6)for(var i of t6(t))t9.call(t,i)&&t7(e,i,t[i]);return e};class it extends q{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new n.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,o.toMiliseconds)(o.THIRTY_SECONDS+o.ONE_SECOND),this.request=async e=>{var t,i;this.logger.debug("Publishing Request Payload");let r=e.id||ec().toString();await this.toEstablishConnection();try{let n=this.provider.request(e);this.requestsInFlight.set(r,{promise:n,request:e}),this.logger.trace({id:r,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - attempt to publish...");let a=await new Promise(async(e,t)=>{let i=()=>{t(Error(`relayer.request - publish interrupted, id: ${r}`))};this.provider.on(ej.disconnect,i);let a=await n;this.provider.off(ej.disconnect,i),e(a)});return this.logger.trace({id:r,method:e.method,topic:null==(i=e.params)?void 0:i.topic},"relayer.request - published"),a}catch(e){throw this.logger.debug(`Failed to Publish Request: ${r}`),e}finally{this.requestsInFlight.delete(r)}},this.resetPingTimeout=()=>{if((0,Q.Lln)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var e,t,i;null==(i=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||i.terminate()},this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace("relayer connected"),this.startPingTimeout(),this.events.emit(eL.connect)},this.onDisconnectHandler=()=>{this.logger.trace("relayer disconnected"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(eL.error,e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ej.payload,this.onPayloadHandler),this.provider.on(ej.connect,this.onConnectHandler),this.provider.on(ej.disconnect,this.onDisconnectHandler),this.provider.on(ej.error,this.onProviderErrorHandler)},this.core=e.core,this.logger="u">typeof e.logger&&"string"!=typeof e.logger?(0,$.U5)(e.logger,this.name):(0,$.h6)((0,$.iP)({level:e.logger||"error"})),this.messages=new tZ(this.logger,e.core),this.subscriber=new t5(this,this.logger),this.publisher=new tV(this,this.logger),this.relayUrl=e?.relayUrl||e$,this.projectId=e.projectId,this.bundleId=(0,Q.w47)(),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.cached.length>0)try{await this.transportOpen()}catch(e){this.logger.warn(e)}}get context(){return(0,$.oI)(this.logger)}get connected(){var e,t,i;return(null==(i=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:i.readyState)===1}get connecting(){var e,t,i;return(null==(i=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:i.readyState)===0}async publish(e,t,i){this.isInitialized(),await this.publisher.publish(e,t,i),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:eW.relay})}async subscribe(e,t){var i;this.isInitialized(),t?.transportType==="relay"&&await this.toEstablishConnection();let r=(null==(i=this.subscriber.topicMap.get(e))?void 0:i[0])||"",n,a=t=>{t.topic===e&&(this.subscriber.off(eH.created,a),n())};return await Promise.all([new Promise(e=>{n=e,this.subscriber.on(eH.created,a)}),new Promise(async i=>{r=await this.subscriber.subscribe(e,t)||r,i()})]),r}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await (0,Q.K3g)(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(e,t)=>{let i=()=>{this.provider.off(ej.disconnect,i),t(Error("Connection interrupted while trying to subscribe"))};this.provider.on(ej.disconnect,i),await (0,Q.K3g)(this.provider.connect(),(0,o.toMiliseconds)(o.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(e=>{t(e)}).finally(()=>{clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0}),this.subscriber.start().catch(e=>{this.logger.error(e),this.onDisconnectHandler()}),this.hasExperiencedNetworkDisruption=!1,e()})}catch(e){if(this.logger.error(e),this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw e}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,Q.sc7)())throw Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}let t=e.sort((e,t)=>e.publishedAt-t.publishedAt);for(let e of(this.logger.trace(`Batch of ${t.length} message events sorted`),t))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){let{topic:i}=e;if(!t.sessionExists){let e=(0,Q.Xw0)(o.FIVE_MINUTES);await this.core.pairing.pairings.set(i,{topic:i,expiry:e,relay:{protocol:"irn"},active:!1})}this.events.emit(eL.message,e),await this.recordMessageEvent(e)}startPingTimeout(){var e,t,i,r,n;if((0,Q.Lln)())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(n=null==(r=null==(i=this.provider)?void 0:i.connection)?void 0:r.socket)||n.once("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some(t=>e.includes(t))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new eA(new eI((0,Q.jUZ)({sdkVersion:eB,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){let{topic:t,message:i}=e;await this.messages.set(t,i)}async shouldIgnoreMessageEvent(e){let{topic:t,message:i}=e;if(!i||0===i.length)return this.logger.debug(`Ignoring invalid/empty message: ${i}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;let r=this.messages.has(t,i);return r&&this.logger.debug(`Ignoring duplicate message: ${i}`),r}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),ev(e)){if(!e.method.endsWith("_subscription"))return;let t=e.params,{topic:i,message:r,publishedAt:n,attestation:a}=t.data,o={topic:i,message:r,publishedAt:n,transportType:eW.relay,attestation:a};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(ie({type:"event",event:t.id},o)),this.events.emit(t.id,o),await this.acknowledgePayload(e),await this.onMessageEvent(o)}else ey(e)&&this.events.emit(eL.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(eL.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=eu(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(ej.payload,this.onPayloadHandler),this.provider.off(ej.connect,this.onConnectHandler),this.provider.off(ej.disconnect,this.onDisconnectHandler),this.provider.off(ej.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await (0,Q.sc7)();(0,Q.uym)(async t=>{e!==t&&(e=t,t?await this.restartTransport().catch(e=>this.logger.error(e)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(eL.disconnect),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&(this.reconnectTimeout||(this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,o.toMiliseconds)(.1))))}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.connected&&(clearInterval(t),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var ii=Object.defineProperty,ir=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,is=(e,t,i)=>t in e?ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ic=(e,t)=>{for(var i in t||(t={}))ia.call(t,i)&&is(e,i,t[i]);if(ir)for(var i of ir(t))io.call(t,i)&&is(e,i,t[i]);return e};class il extends H{constructor(e,t,i,r=eP,n){super(e,t,i,r),this.core=e,this.logger=t,this.name=i,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=eP,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>{this.getKey&&null!==e&&!(0,Q.b07)(e)?this.map.set(this.getKey(e),e):(0,Q.CTo)(e)?this.map.set(e.id,e):(0,Q.mr0)(e)&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(t=>Object.keys(e).every(i=>eT()(t[i],e[i]))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});let i=ic(ic({},this.getData(e)),t);this.map.set(e,i),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=(0,$.U5)(t,this.name),this.storagePrefix=r,this.getKey=n}get context(){return(0,$.oI)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),Error(t)}let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:e}=(0,Q.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}}class iu{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(a()),this.initialized=!1,this.storagePrefix=eP,this.ignoredPayloadTypes=[Q.Lp_],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();let t=(0,Q.two)(),i=await this.core.crypto.setSymKey(t),r=(0,Q.Xw0)(o.FIVE_MINUTES),n={protocol:"irn"},a={topic:i,expiry:r,relay:n,active:!1,methods:e?.methods},s=(0,Q.QJh)({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:t,relay:n,expiryTimestamp:r,methods:e?.methods});return this.events.emit(eZ.create,a),this.core.expirer.set(i,r),await this.pairings.set(i,a),await this.core.relayer.subscribe(i,{transportType:e?.transportType}),{topic:i,uri:s}},this.pair=async e=>{let t;this.isInitialized();let i=this.core.eventClient.createEvent({properties:{topic:e?.uri,trace:[eQ.pairing_started]}});this.isValidPair(e,i);let{topic:r,symKey:n,relay:a,expiryTimestamp:s,methods:c}=(0,Q.wYp)(e.uri);if(i.props.properties.topic=r,i.addTrace(eQ.pairing_uri_validation_success),i.addTrace(eQ.pairing_uri_not_expired),this.pairings.keys.includes(r)){if(t=this.pairings.get(r),i.addTrace(eQ.existing_pairing),t.active)throw i.setError(eX.active_pairing_already_exists),Error(`Pairing already exists: ${r}. Please try again with a new connection URI.`);i.addTrace(eQ.pairing_not_expired)}let l=s||(0,Q.Xw0)(o.FIVE_MINUTES),u={topic:r,relay:a,expiry:l,active:!1,methods:c};this.core.expirer.set(r,l),await this.pairings.set(r,u),i.addTrace(eQ.store_new_pairing),e.activatePairing&&await this.activate({topic:r}),this.events.emit(eZ.create,u),i.addTrace(eQ.emit_inactive_pairing),this.core.crypto.keychain.has(r)||await this.core.crypto.setSymKey(n,r),i.addTrace(eQ.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{i.setError(eX.no_internet_connection)}try{await this.core.relayer.subscribe(r,{relay:a})}catch(e){throw i.setError(eX.subscribe_pairing_topic_failure),e}return i.addTrace(eQ.subscribe_pairing_topic_success),u},this.activate=async({topic:e})=>{this.isInitialized();let t=(0,Q.Xw0)(o.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);let{topic:t}=e;if(this.pairings.keys.includes(t)){let e=await this.sendRequest(t,"wc_pairingPing",{}),{done:i,resolve:r,reject:n}=(0,Q.Wx8)();this.events.once((0,Q.hEn)("pairing_ping",e),({error:e})=>{e?n(e):r()}),await i()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",(0,Q.Hjj)("USER_DISCONNECTED")),await this.deletePairing(t))},this.formatUriFromPairing=e=>{this.isInitialized();let{topic:t,relay:i,expiry:r,methods:n}=e,a=this.core.crypto.keychain.get(t);return(0,Q.QJh)({protocol:this.core.protocol,version:this.core.version,topic:t,symKey:a,relay:i,expiryTimestamp:r,methods:n})},this.sendRequest=async(e,t,i)=>{let r=el(t,i),n=await this.core.crypto.encode(e,r),a=eF[t].req;return this.core.history.set(e,r),this.core.relayer.publish(e,n,a),r.id},this.sendResult=async(e,t,i)=>{let r=eu(e,i),n=await this.core.crypto.encode(t,r),a=eF[(await this.core.history.get(t,e)).request.method].res;await this.core.relayer.publish(t,n,a),await this.core.history.resolve(r)},this.sendError=async(e,t,i)=>{let r=ed(e,i),n=await this.core.crypto.encode(t,r),a=await this.core.history.get(t,e),o=eF[a.request.method]?eF[a.request.method].res:eF.unregistered_method.res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(r)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,Q.Hjj)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>(0,Q._dF)(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=e=>{let{topic:t,payload:i}=e;switch(i.method){case"wc_pairingPing":return this.onPairingPingRequest(t,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,i);default:return this.onUnknownRpcMethodRequest(t,i)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:i}=e,r=(await this.core.history.get(t,i.id)).request.method;return"wc_pairingPing"===r?this.onPairingPingResponse(t,i):this.onUnknownRpcMethodResponse(r)},this.onPairingPingRequest=async(e,t)=>{let{id:i}=t;try{this.isValidPing({topic:e}),await this.sendResult(i,e,!0),this.events.emit(eZ.ping,{id:i,topic:e})}catch(t){await this.sendError(i,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{let{id:i}=t;setTimeout(()=>{ex(t)?this.events.emit((0,Q.hEn)("pairing_ping",i),{}):eC(t)&&this.events.emit((0,Q.hEn)("pairing_ping",i),{error:t.error})},500)},this.onPairingDeleteRequest=async(e,t)=>{let{id:i}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(eZ.delete,{id:i,topic:e})}catch(t){await this.sendError(i,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{let{id:i,method:r}=t;try{if(this.registeredMethods.includes(r))return;let t=(0,Q.Hjj)("WC_METHOD_UNSUPPORTED",r);await this.sendError(i,e,t),this.logger.error(t)}catch(t){await this.sendError(i,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,Q.Hjj)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=(e,t)=>{var i;if(!(0,Q.TeY)(e)){let{message:i}=(0,Q.GuA)("MISSING_OR_INVALID",`pair() params: ${e}`);throw t.setError(eX.malformed_pairing_uri),Error(i)}if(!(0,Q.AYU)(e.uri)){let{message:i}=(0,Q.GuA)("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw t.setError(eX.malformed_pairing_uri),Error(i)}let r=(0,Q.wYp)(e?.uri);if(!(null!=(i=r?.relay)&&i.protocol)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw t.setError(eX.malformed_pairing_uri),Error(e)}if(!(null!=r&&r.symKey)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID","pair() uri#symKey");throw t.setError(eX.malformed_pairing_uri),Error(e)}if(null!=r&&r.expiryTimestamp&&(0,o.toMiliseconds)(r?.expiryTimestamp)<Date.now()){t.setError(eX.pairing_expired);let{message:e}=(0,Q.GuA)("EXPIRED","pair() URI has expired. Please try again with a new connection URI.");throw Error(e)}},this.isValidPing=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,Q.Qhg)(e,!1)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.pairings.keys.includes(e)){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,Q._dF)(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:t}=(0,Q.GuA)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}},this.core=e,this.logger=(0,$.U5)(t,this.name),this.pairings=new il(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,$.oI)(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(eL.message,async e=>{let{topic:t,message:i,transportType:r}=e;if(!this.pairings.keys.includes(t)||r===eW.link_mode||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(i)))return;let n=await this.core.crypto.decode(t,i);try{ev(n)?(this.core.history.set(t,n),this.onRelayEventRequest({topic:t,payload:n})):ey(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:t,payload:n}),this.core.history.delete(t,n.id))}catch(e){this.logger.error(e)}})}registerExpirerEvents(){this.core.expirer.on(eK.expired,async e=>{let{topic:t}=(0,Q.c82)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(eZ.expire,{topic:t}))})}}class id extends j{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new n.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=eP,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:i}),this.records.has(t.id))return;let r={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:i,expiry:(0,Q.Xw0)(o.THIRTY_DAYS)};this.records.set(r.id,r),this.persist(),this.events.emit(eV.created,r)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;let t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=eC(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(eV.updated,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach(i=>{i.topic!==e||"u">typeof t&&i.id!==t||(this.records.delete(i.id),this.events.emit(eV.deleted,i))}),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,$.U5)(t,this.name)}get context(){return(0,$.oI)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if("u">typeof t.response)return;let i={topic:t.topic,request:el(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(i)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(eV.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:e}=(0,Q.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(eV.created,e=>{let t=eV.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(eV.updated,e=>{let t=eV.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(eV.deleted,e=>{let t=eV.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.core.heartbeat.on(u.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,o.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(eV.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}}class ih extends F{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new n.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=eP,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let t=this.formatTarget(e);return"u">typeof this.getExpiration(t)}catch{return!1}},this.set=(e,t)=>{this.isInitialized();let i=this.formatTarget(e),r={target:i,expiry:t};this.expirations.set(i,r),this.checkExpiry(i,r),this.events.emit(eK.created,{target:i,expiration:r})},this.get=e=>{this.isInitialized();let t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){let t=this.formatTarget(e),i=this.getExpiration(t);this.expirations.delete(t),this.events.emit(eK.deleted,{target:t,expiration:i})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,$.U5)(t,this.name)}get context(){return(0,$.oI)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return(0,Q.ADD)(e);if("number"==typeof e)return(0,Q.gOF)(e);let{message:t}=(0,Q.GuA)("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(eK.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:e}=(0,Q.GuA)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),Error(t)}return t}checkExpiry(e,t){let{expiry:i}=t;(0,o.toMiliseconds)(i)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(eK.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(u.pulse,()=>this.checkExpirations()),this.events.on(eK.created,e=>{let t=eK.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(eK.expired,e=>{let t=eK.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(eK.deleted,e=>{let t=eK.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}}var ip={};function ig(e){let t;return"u">typeof window&&"u">typeof window[e]&&(t=window[e]),t}function iw(e){let t=ig(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(ip,"__esModule",{value:!0}),ip.getLocalStorage=ip.getLocalStorageOrThrow=ip.getCrypto=ip.getCryptoOrThrow=ip.getLocation=ip.getLocationOrThrow=ip.getNavigator=ip.getNavigatorOrThrow=im=ip.getDocument=ip.getDocumentOrThrow=ip.getFromWindowOrThrow=ip.getFromWindow=void 0,ip.getFromWindow=ig,ip.getFromWindowOrThrow=iw,ip.getDocumentOrThrow=function(){return iw("document")};var im=ip.getDocument=function(){return ig("document")};ip.getNavigatorOrThrow=function(){return iw("navigator")},ip.getNavigator=function(){return ig("navigator")},ip.getLocationOrThrow=function(){return iw("location")},ip.getLocation=function(){return ig("location")},ip.getCryptoOrThrow=function(){return iw("crypto")},ip.getCrypto=function(){return ig("crypto")},ip.getLocalStorageOrThrow=function(){return iw("localStorage")},ip.getLocalStorage=function(){return ig("localStorage")};class ib extends Z{constructor(e,t,i){super(e,t,i),this.core=e,this.logger=t,this.store=i,this.name="verify-api",this.verifyUrlV3=eJ,this.storagePrefix=eP,this.version=2,this.init=async()=>{var e;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,o.toMiliseconds)(null==(e=this.publicKey)?void 0:e.expiresAt)<Date.now()&&(this.logger.debug("verify v2 public key expired"),await this.removePublicKey()))},this.register=async e=>{if(!(0,Q.BdH)()||this.isDevEnv)return;let t=window.location.origin,{id:i,decryptedId:r}=e,n=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${t}&id=${i}&decryptedId=${r}`;try{let e=im(),t=this.startAbortTimer(5*o.ONE_SECOND),r=await new Promise((r,a)=>{let o=()=>{window.removeEventListener("message",c),e.body.removeChild(s),a("attestation aborted")};this.abortController.signal.addEventListener("abort",o);let s=e.createElement("iframe");s.src=n,s.style.display="none",s.addEventListener("error",o,{signal:this.abortController.signal});let c=n=>{if(n.data&&"string"==typeof n.data)try{let a=JSON.parse(n.data);if("verify_attestation"===a.type){if((0,Y.decodeJWT)(a.attestation).payload.id!==i)return;clearInterval(t),e.body.removeChild(s),this.abortController.signal.removeEventListener("abort",o),window.removeEventListener("message",c),r(null===a.attestation?"":a.attestation)}}catch(e){this.logger.warn(e)}};e.body.appendChild(s),window.addEventListener("message",c,{signal:this.abortController.signal})});return this.logger.debug("jwt attestation",r),r}catch(e){this.logger.warn(e)}return""},this.resolve=async e=>{if(this.isDevEnv)return"";let{attestationId:t,hash:i,encryptedId:r}=e;if(""===t){this.logger.debug("resolve: attestationId is empty, skipping");return}if(t){if((0,Y.decodeJWT)(t).payload.id!==r)return;let e=await this.isValidJwtAttestation(t);if(e){if(!e.isVerified){this.logger.warn("resolve: jwt attestation: origin url not verified");return}return e}}if(!i)return;let n=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(i,n)},this.fetchAttestation=async(e,t)=>{this.logger.debug(`resolving attestation: ${e} from url: ${t}`);let i=this.startAbortTimer(5*o.ONE_SECOND),r=await fetch(`${t}/attestation/${e}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(i),200===r.status?await r.json():void 0},this.getVerifyUrl=e=>{let t=e||eG;return eY.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${eG}`),t=eG),t},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);let e=this.startAbortTimer(o.FIVE_SECONDS),t=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(e),await t.json()}catch(e){this.logger.warn(e)}},this.persistPublicKey=async e=>{this.logger.debug("persisting public key to local storage",e),await this.store.setItem(this.storeKey,e),this.publicKey=e},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async e=>{let t=await this.getPublicKey();try{if(t)return this.validateAttestation(e,t)}catch(e){this.logger.error(e),this.logger.warn("error validating attestation")}let i=await this.fetchAndPersistPublicKey();try{if(i)return this.validateAttestation(e,i)}catch(e){this.logger.error(e),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async e=>{let t=await this.fetchPublicKey();t&&(await this.persistPublicKey(t),e(t))});let e=await this.fetchPromise;return this.fetchPromise=void 0,e},this.validateAttestation=(e,t)=>{let i=(0,Q.U0i)(e,t.publicKey),r={hasExpired:(0,o.toMiliseconds)(i.exp)<Date.now(),payload:i};if(r.hasExpired)throw this.logger.warn("resolve: jwt attestation expired"),Error("JWT attestation expired");return{origin:r.payload.origin,isScam:r.payload.isScam,isVerified:r.payload.isVerified}},this.logger=(0,$.U5)(t,this.name),this.abortController=new AbortController,this.isDevEnv=(0,Q.w8K)(),this.init()}get storeKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//verify:public:key"}get context(){return(0,$.oI)(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,o.toMiliseconds)(e))}}class iv extends V{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{let{clientId:t,token:i,notificationType:r,enableEncrypted:n=!1}=e,a=`https://echo.walletconnect.com/${this.projectId}/clients`;await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:r,token:i,always_raw:n})})},this.logger=(0,$.U5)(t,this.context)}}var iy=Object.defineProperty,ix=Object.getOwnPropertySymbols,iC=Object.prototype.hasOwnProperty,iA=Object.prototype.propertyIsEnumerable,iE=(e,t,i)=>t in e?iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,i_=(e,t)=>{for(var i in t||(t={}))iC.call(t,i)&&iE(e,i,t[i]);if(ix)for(var i of ix(t))iA.call(t,i)&&iE(e,i,t[i]);return e};class ik extends K{constructor(e,t,i=!0){super(e,t,i),this.core=e,this.logger=t,this.context="event-client",this.storagePrefix=eP,this.storageVersion=.1,this.events=new Map,this.shouldPersist=!1,this.init=async()=>{if(!(0,Q.w8K)())try{let e={eventId:(0,Q.gZm)(),timestamp:Date.now(),domain:this.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:await this.core.crypto.getClientId(),user_agent:(0,Q.ojD)(this.core.relayer.protocol,this.core.relayer.version,eB)}}};await this.sendEvent([e])}catch(e){this.logger.warn(e)}},this.createEvent=e=>{let{event:t="ERROR",type:i="",properties:{topic:r,trace:n}}=e,a=(0,Q.gZm)(),o=this.core.projectId||"",s=i_({eventId:a,timestamp:Date.now(),props:{event:t,type:i,properties:{topic:r,trace:n}},bundleId:o,domain:this.getAppDomain()},this.setMethods(a));return this.telemetryEnabled&&(this.events.set(a,s),this.shouldPersist=!0),s},this.getEvent=e=>{let{eventId:t,topic:i}=e;if(t)return this.events.get(t);let r=Array.from(this.events.values()).find(e=>e.props.properties.topic===i);if(r)return i_(i_({},r),this.setMethods(r.eventId))},this.deleteEvent=e=>{let{eventId:t}=e;this.events.delete(t),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(u.pulse,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(e=>{(0,o.fromMiliseconds)(Date.now())-(0,o.fromMiliseconds)(e.timestamp)>86400&&(this.events.delete(e.eventId),this.shouldPersist=!0)})})},this.setMethods=e=>({addTrace:t=>this.addTrace(e,t),setError:t=>this.setError(e,t)}),this.addTrace=(e,t)=>{let i=this.events.get(e);i&&(i.props.properties.trace.push(t),this.events.set(e,i),this.shouldPersist=!0)},this.setError=(e,t)=>{let i=this.events.get(e);i&&(i.props.type=t,i.timestamp=Date.now(),this.events.set(e,i),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{let e=await this.core.storage.getItem(this.storageKey)||[];if(!e.length)return;e.forEach(e=>{this.events.set(e.eventId,i_(i_({},e),this.setMethods(e.eventId)))})}catch(e){this.logger.warn(e)}},this.submit=async()=>{if(!this.telemetryEnabled||0===this.events.size)return;let e=[];for(let[t,i]of this.events)i.props.type&&e.push(i);if(0!==e.length)try{if((await this.sendEvent(e)).ok)for(let t of e)this.events.delete(t.eventId),this.shouldPersist=!0}catch(e){this.logger.warn(e)}},this.sendEvent=async e=>{let t=this.getAppDomain()?"":"&sp=desktop";return await fetch(`https://pulse.walletconnect.org/batch?projectId=${this.core.projectId}&st=events_sdk&sv=js-${eB}${t}`,{method:"POST",body:JSON.stringify(e)})},this.getAppDomain=()=>(0,Q.lFF)().url,this.logger=(0,$.U5)(t,this.context),this.telemetryEnabled=i,i?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var iI=Object.defineProperty,iS=Object.getOwnPropertySymbols,iT=Object.prototype.hasOwnProperty,iN=Object.prototype.propertyIsEnumerable,iP=(e,t,i)=>t in e?iI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,iR=(e,t)=>{for(var i in t||(t={}))iT.call(t,i)&&iP(e,i,t[i]);if(iS)for(var i of iS(t))iN.call(t,i)&&iP(e,i,t[i]);return e};class iO extends L{constructor(e){var t;super(e),this.protocol="wc",this.version=2,this.name=eN,this.events=new n.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.dispatchEnvelope=({topic:e,message:t,sessionExists:i})=>{if(!e||!t)return;let r={topic:e,message:t,publishedAt:Date.now(),transportType:eW.link_mode};this.relayer.onLinkMessageEvent(r,{sessionExists:i})},this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||e$,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";let i=(0,$.iP)({level:"string"==typeof e?.logger&&e.logger?e.logger:eR.logger}),{logger:r,chunkLoggerController:a}=(0,$.D5)({opts:i,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=a,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=(0,$.U5)(r,this.name),this.heartbeat=new d,this.crypto=new tF(this,this.logger,e?.keychain),this.history=new id(this,this.logger),this.expirer=new ih(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new U(iR(iR({},eO),e?.storageOptions)),this.relayer=new it({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new iu(this,this.logger),this.verify=new ib(this,this.logger,this.storage),this.echoClient=new iv(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new ik(this,this.logger,e?.telemetryEnabled)}static async init(e){let t=new iO(e);await t.initialize();let i=await t.crypto.getClientId();return await t.storage.setItem("WALLETCONNECT_CLIENT_ID",i),t}get context(){return(0,$.oI)(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(eq,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.eventClient.init(),this.linkModeSupportedApps=await this.storage.getItem(eq)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}let iM="client",iD=`wc@2:${iM}:`,iU={name:iM,logger:"error"},i$="WALLETCONNECT_DEEPLINK_CHOICE",iL="Proposal expired",ij=o.SEVEN_DAYS,iB={wc_sessionPropose:{req:{ttl:o.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:o.ONE_DAY,prompt:!1,tag:1104},res:{ttl:o.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:o.ONE_DAY,prompt:!1,tag:1106},res:{ttl:o.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:o.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:o.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:o.ONE_DAY,prompt:!1,tag:1112},res:{ttl:o.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:o.ONE_DAY,prompt:!1,tag:1114},res:{ttl:o.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:o.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:o.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:o.FIVE_MINUTES,prompt:!1,tag:1119}}},iW={min:o.FIVE_MINUTES,max:o.SEVEN_DAYS},iq={idle:"IDLE",active:"ACTIVE"},iH=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],iz="[email protected]:auth:",iF=`${iz}:PUB_KEY`;var iZ=Object.defineProperty,iV=Object.defineProperties,iK=Object.getOwnPropertyDescriptors,iG=Object.getOwnPropertySymbols,iJ=Object.prototype.hasOwnProperty,iY=Object.prototype.propertyIsEnumerable,iQ=(e,t,i)=>t in e?iZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,iX=(e,t)=>{for(var i in t||(t={}))iJ.call(t,i)&&iQ(e,i,t[i]);if(iG)for(var i of iG(t))iY.call(t,i)&&iQ(e,i,t[i]);return e},i0=(e,t)=>iV(e,iK(t));class i1 extends J{constructor(e){super(e),this.name="engine",this.events=new(a()),this.initialized=!1,this.requestQueue={state:iq.idle,queue:[]},this.sessionRequestQueue={state:iq.idle,queue:[]},this.requestQueueDelay=o.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(iB)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,o.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();let t=i0(iX({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);let{pairingTopic:i,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:a,relays:s}=t,c=i,l,u=!1;try{c&&(u=this.client.core.pairing.pairings.get(c).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),e}if(!c||!u){let{topic:e,uri:t}=await this.client.core.pairing.create();c=e,l=t}if(!c){let{message:e}=(0,Q.GuA)("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw Error(e)}let d=await this.client.core.crypto.generateKeyPair(),h=iB.wc_sessionPropose.req.ttl||o.FIVE_MINUTES,p=(0,Q.Xw0)(h),f=iX({requiredNamespaces:r,optionalNamespaces:n,relays:s??[{protocol:"irn"}],proposer:{publicKey:d,metadata:this.client.metadata},expiryTimestamp:p,pairingTopic:c},a&&{sessionProperties:a}),{reject:g,resolve:w,done:m}=(0,Q.Wx8)(h,iL);this.events.once((0,Q.hEn)("session_connect"),async({error:e,session:t})=>{if(e)g(e);else if(t){t.self.publicKey=d;let e=i0(iX({},t),{pairingTopic:f.pairingTopic,requiredNamespaces:f.requiredNamespaces,optionalNamespaces:f.optionalNamespaces,transportType:eW.relay});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),w(e)}});let b=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:f,throwOnFailedPublish:!0});return await this.setProposal(b,iX({id:b},f)),{uri:l,approval:m}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error("pair() failed"),e}},this.approve=async e=>{var t,i,r;let n=this.client.core.eventClient.createEvent({properties:{topic:null==(t=e?.id)?void 0:t.toString(),trace:[e0.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(e){throw n.setError(e1.no_internet_connection),e}try{await this.isValidProposalId(e?.id)}catch(t){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),n.setError(e1.proposal_not_found),t}try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error("approve() -> isValidApprove() failed"),n.setError(e1.session_approve_namespace_validation_failure),e}let{id:a,relayProtocol:o,namespaces:s,sessionProperties:c,sessionConfig:l}=e,u=this.client.proposal.get(a);this.client.core.eventClient.deleteEvent({eventId:n.eventId});let{pairingTopic:d,proposer:h,requiredNamespaces:p,optionalNamespaces:f}=u,g=null==(i=this.client.core.eventClient)?void 0:i.getEvent({topic:d});g||(g=null==(r=this.client.core.eventClient)?void 0:r.createEvent({type:e0.session_approve_started,properties:{topic:d,trace:[e0.session_approve_started,e0.session_namespaces_validation_success]}}));let w=await this.client.core.crypto.generateKeyPair(),m=h.publicKey,b=await this.client.core.crypto.generateSharedKey(w,m),v=iX(iX({relay:{protocol:o??"irn"},namespaces:s,controller:{publicKey:w,metadata:this.client.metadata},expiry:(0,Q.Xw0)(ij)},c&&{sessionProperties:c}),l&&{sessionConfig:l}),y=eW.relay;g.addTrace(e0.subscribing_session_topic);try{await this.client.core.relayer.subscribe(b,{transportType:y})}catch(e){throw g.setError(e1.subscribe_session_topic_failure),e}g.addTrace(e0.subscribe_session_topic_success);let x=i0(iX({},v),{topic:b,requiredNamespaces:p,optionalNamespaces:f,pairingTopic:d,acknowledged:!1,self:v.controller,peer:{publicKey:h.publicKey,metadata:h.metadata},controller:w,transportType:eW.relay});await this.client.session.set(b,x),g.addTrace(e0.store_session);try{g.addTrace(e0.publishing_session_settle),await this.sendRequest({topic:b,method:"wc_sessionSettle",params:v,throwOnFailedPublish:!0}).catch(e=>{throw g?.setError(e1.session_settle_publish_failure),e}),g.addTrace(e0.session_settle_publish_success),g.addTrace(e0.publishing_session_approve),await this.sendResult({id:a,topic:d,result:{relay:{protocol:o??"irn"},responderPublicKey:w},throwOnFailedPublish:!0}).catch(e=>{throw g?.setError(e1.session_approve_publish_failure),e}),g.addTrace(e0.session_approve_publish_success)}catch(e){throw this.client.logger.error(e),this.client.session.delete(b,(0,Q.Hjj)("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(b),e}return this.client.core.eventClient.deleteEvent({eventId:g.eventId}),await this.client.core.pairing.updateMetadata({topic:d,metadata:h.metadata}),await this.client.proposal.delete(a,(0,Q.Hjj)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:d}),await this.setExpiry(b,(0,Q.Xw0)(ij)),{topic:b,acknowledged:()=>Promise.resolve(this.client.session.get(b))}},this.reject=async e=>{let t;this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error("reject() -> isValidReject() failed"),e}let{id:i,reason:r}=e;try{t=this.client.proposal.get(i).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${i}) failed`),e}t&&(await this.sendError({id:i,topic:t,error:r,rpcOpts:iB.wc_sessionPropose.reject}),await this.client.proposal.delete(i,(0,Q.Hjj)("USER_DISCONNECTED")))},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error("update() -> isValidUpdate() failed"),e}let{topic:t,namespaces:i}=e,{done:r,resolve:n,reject:a}=(0,Q.Wx8)(),o=es(),s=ec().toString(),c=this.client.session.get(t).namespaces;return this.events.once((0,Q.hEn)("session_update",o),({error:e})=>{e?a(e):n()}),await this.client.session.update(t,{namespaces:i}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:i},throwOnFailedPublish:!0,clientRpcId:o,relayRpcId:s}).catch(e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:c}),a(e)}),{acknowledged:r}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error("extend() -> isValidExtend() failed"),e}let{topic:t}=e,i=es(),{done:r,resolve:n,reject:a}=(0,Q.Wx8)();return this.events.once((0,Q.hEn)("session_extend",i),({error:e})=>{e?a(e):n()}),await this.setExpiry(t,(0,Q.Xw0)(ij)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:i,throwOnFailedPublish:!0}).catch(e=>{a(e)}),{acknowledged:r}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error("request() -> isValidRequest() failed"),e}let{chainId:t,request:i,topic:r,expiry:n=iB.wc_sessionRequest.req.ttl}=e,a=this.client.session.get(r);a?.transportType===eW.relay&&await this.confirmOnlineStateOrThrow();let o=es(),s=ec().toString(),{done:c,resolve:l,reject:u}=(0,Q.Wx8)(n,"Request expired. Please try again.");this.events.once((0,Q.hEn)("session_request",o),({error:e,result:t})=>{e?u(e):l(t)});let d=this.getAppLinkIfEnabled(a.peer.metadata,a.transportType);return d?(await this.sendRequest({clientRpcId:o,relayRpcId:s,topic:r,method:"wc_sessionRequest",params:{request:i0(iX({},i),{expiryTimestamp:(0,Q.Xw0)(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0,appLink:d}).catch(e=>u(e)),this.client.events.emit("session_request_sent",{topic:r,request:i,chainId:t,id:o}),await c()):await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:o,relayRpcId:s,topic:r,method:"wc_sessionRequest",params:{request:i0(iX({},i),{expiryTimestamp:(0,Q.Xw0)(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0}).catch(e=>u(e)),this.client.events.emit("session_request_sent",{topic:r,request:i,chainId:t,id:o}),e()}),new Promise(async e=>{var t;if(!(null!=(t=a.sessionConfig)&&t.disableDeepLink)){let e=await (0,Q.jTh)(this.client.core.storage,i$);await (0,Q.n3s)({id:o,topic:r,wcDeepLink:e})}e()}),c()]).then(e=>e[2])},this.respond=async e=>{this.isInitialized(),await this.isValidRespond(e);let{topic:t,response:i}=e,{id:r}=i,n=this.client.session.get(t);n.transportType===eW.relay&&await this.confirmOnlineStateOrThrow();let a=this.getAppLinkIfEnabled(n.peer.metadata,n.transportType);ex(i)?await this.sendResult({id:r,topic:t,result:i.result,throwOnFailedPublish:!0,appLink:a}):eC(i)&&await this.sendError({id:r,topic:t,error:i.error,appLink:a}),this.cleanupAfterResponse(e)},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error("ping() -> isValidPing() failed"),e}let{topic:t}=e;if(this.client.session.keys.includes(t)){let e=es(),i=ec().toString(),{done:r,resolve:n,reject:a}=(0,Q.Wx8)();this.events.once((0,Q.hEn)("session_ping",e),({error:e})=>{e?a(e):n()}),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:i}),r()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);let{topic:t,event:i,chainId:r}=e,n=ec().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:i,chainId:r},throwOnFailedPublish:!0,relayRpcId:n})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);let{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:(0,Q.Hjj)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{let{message:e}=(0,Q.GuA)("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>(0,Q.HNf)(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{var i;let r;this.isInitialized(),this.isValidAuthenticate(e);let n=t&&this.client.core.linkModeSupportedApps.includes(t)&&(null==(i=this.client.metadata.redirect)?void 0:i.linkMode),a=n?eW.link_mode:eW.relay;a===eW.relay&&await this.confirmOnlineStateOrThrow();let{chains:o,statement:s="",uri:c,domain:l,nonce:u,type:d,exp:h,nbf:p,methods:f=[],expiry:g}=e,w=[...e.resources||[]],{topic:m,uri:b}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:a});this.client.logger.info({message:"Generated new pairing",pairing:{topic:m,uri:b}});let v=await this.client.core.crypto.generateKeyPair(),y=(0,Q.EN$)(v);if(await Promise.all([this.client.auth.authKeys.set(iF,{responseTopic:y,publicKey:v}),this.client.auth.pairingTopics.set(y,{topic:y,pairingTopic:m})]),await this.client.core.relayer.subscribe(y,{transportType:a}),this.client.logger.info(`sending request to new pairing topic: ${m}`),f.length>0){let{namespace:e}=(0,Q._Yb)(o[0]),t=(0,Q.e8_)(e,"request",f);(0,Q.VBM)(w)&&(t=(0,Q.hVC)(t,w.pop())),w.push(t)}let x=g&&g>iB.wc_sessionAuthenticate.req.ttl?g:iB.wc_sessionAuthenticate.req.ttl,C={authPayload:{type:d??"caip122",chains:o,statement:s,aud:c,domain:l,version:"1",nonce:u,iat:new Date().toISOString(),exp:h,nbf:p,resources:w},requester:{publicKey:v,metadata:this.client.metadata},expiryTimestamp:(0,Q.Xw0)(x)},A={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:o,methods:[...new Set(["personal_sign",...f])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:m,proposer:{publicKey:v,metadata:this.client.metadata},expiryTimestamp:(0,Q.Xw0)(iB.wc_sessionPropose.req.ttl)},{done:E,resolve:_,reject:k}=(0,Q.Wx8)(x,"Request expired"),I=async({error:e,session:t})=>{if(this.events.off((0,Q.hEn)("session_request",T),S),e)k(e);else if(t){t.self.publicKey=v,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),m&&await this.client.core.pairing.updateMetadata({topic:m,metadata:t.peer.metadata});let e=this.client.session.get(t.topic);await this.deleteProposal(N),_({session:e})}},S=async e=>{var i,r,n;let o;if(await this.deletePendingAuthRequest(T,{message:"fulfilled",code:0}),e.error){let t=(0,Q.Hjj)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off((0,Q.hEn)("session_connect"),I),k(e.error.message))}await this.deleteProposal(N),this.events.off((0,Q.hEn)("session_connect"),I);let{cacaos:s,responder:c}=e.result,l=[],u=[];for(let e of s){await (0,Q.IjX)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,"Signature verification failed"),k((0,Q.Hjj)("SESSION_SETTLEMENT_FAILED","Signature verification failed")));let{p:t}=e,i=(0,Q.VBM)(t.resources),r=[(0,Q.xkc)(t.iss)],n=(0,Q.q_h)(t.iss);if(i){let e=(0,Q.sc_)(i),t=(0,Q.WWN)(i);l.push(...e),r.push(...t)}for(let e of r)u.push(`${e}:${n}`)}let d=await this.client.core.crypto.generateSharedKey(v,c.publicKey);l.length>0&&(o={topic:d,acknowledged:!0,self:{publicKey:v,metadata:this.client.metadata},peer:c,controller:c.publicKey,expiry:(0,Q.Xw0)(ij),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:m,namespaces:(0,Q.Van)([...new Set(l)],[...new Set(u)]),transportType:a},await this.client.core.relayer.subscribe(d,{transportType:a}),await this.client.session.set(d,o),m&&await this.client.core.pairing.updateMetadata({topic:m,metadata:c.metadata}),o=this.client.session.get(d)),null!=(i=this.client.metadata.redirect)&&i.linkMode&&null!=(r=c.metadata.redirect)&&r.linkMode&&null!=(n=c.metadata.redirect)&&n.universal&&t&&(this.client.core.addLinkModeSupportedApp(c.metadata.redirect.universal),this.client.session.update(d,{transportType:eW.link_mode})),_({auths:s,session:o})},T=es(),N=es();this.events.once((0,Q.hEn)("session_connect"),I),this.events.once((0,Q.hEn)("session_request",T),S);try{if(n){let e=el("wc_sessionAuthenticate",C,T);this.client.core.history.set(m,e);let i=await this.client.core.crypto.encode("",e,{type:Q.EHS,encoding:Q.Pa8});r=(0,Q.$Bq)(t,m,i)}else await Promise.all([this.sendRequest({topic:m,method:"wc_sessionAuthenticate",params:C,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:T}),this.sendRequest({topic:m,method:"wc_sessionPropose",params:A,expiry:iB.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:N})])}catch(e){throw this.events.off((0,Q.hEn)("session_connect"),I),this.events.off((0,Q.hEn)("session_request",T),S),e}return await this.setProposal(N,iX({id:N},A)),await this.setAuthRequest(T,{request:i0(iX({},C),{verifyContext:{}}),pairingTopic:m,transportType:a}),{uri:r??b,response:E}},this.approveSessionAuthenticate=async e=>{let t;let{id:i,auths:r}=e,n=this.client.core.eventClient.createEvent({properties:{topic:i.toString(),trace:[e2.authenticated_session_approve_started]}});try{this.isInitialized()}catch(e){throw n.setError(e3.no_internet_connection),e}let a=this.getPendingAuthRequest(i);if(!a)throw n.setError(e3.authenticated_session_pending_request_not_found),Error(`Could not find pending auth request with id ${i}`);let o=a.transportType||eW.relay;o===eW.relay&&await this.confirmOnlineStateOrThrow();let s=a.requester.publicKey,c=await this.client.core.crypto.generateKeyPair(),l=(0,Q.EN$)(s),u={type:Q.Lp_,receiverPublicKey:s,senderPublicKey:c},d=[],h=[];for(let e of r){if(!await (0,Q.IjX)({cacao:e,projectId:this.client.core.projectId})){n.setError(e3.invalid_cacao);let e=(0,Q.Hjj)("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:i,topic:l,error:e,encodeOpts:u}),Error(e.message)}n.addTrace(e2.cacaos_verified);let{p:t}=e,r=(0,Q.VBM)(t.resources),a=[(0,Q.xkc)(t.iss)],o=(0,Q.q_h)(t.iss);if(r){let e=(0,Q.sc_)(r),t=(0,Q.WWN)(r);d.push(...e),a.push(...t)}for(let e of a)h.push(`${e}:${o}`)}let p=await this.client.core.crypto.generateSharedKey(c,s);if(n.addTrace(e2.create_authenticated_session_topic),d?.length>0){t={topic:p,acknowledged:!0,self:{publicKey:c,metadata:this.client.metadata},peer:{publicKey:s,metadata:a.requester.metadata},controller:s,expiry:(0,Q.Xw0)(ij),authentication:r,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:a.pairingTopic,namespaces:(0,Q.Van)([...new Set(d)],[...new Set(h)]),transportType:o},n.addTrace(e2.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(p,{transportType:o})}catch(e){throw n.setError(e3.subscribe_authenticated_session_topic_failure),e}n.addTrace(e2.subscribe_authenticated_session_topic_success),await this.client.session.set(p,t),n.addTrace(e2.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:a.pairingTopic,metadata:a.requester.metadata})}n.addTrace(e2.publishing_authenticated_session_approve);try{await this.sendResult({topic:l,id:i,result:{cacaos:r,responder:{publicKey:c,metadata:this.client.metadata}},encodeOpts:u,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(a.requester.metadata,o)})}catch(e){throw n.setError(e3.authenticated_session_approve_publish_failure),e}return await this.client.auth.requests.delete(i,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:a.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:n.eventId}),{session:t}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();let{id:t,reason:i}=e,r=this.getPendingAuthRequest(t);if(!r)throw Error(`Could not find pending auth request with id ${t}`);r.transportType===eW.relay&&await this.confirmOnlineStateOrThrow();let n=r.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),o=(0,Q.EN$)(n),s={type:Q.Lp_,receiverPublicKey:n,senderPublicKey:a};await this.sendError({id:t,topic:o,error:i,encodeOpts:s,rpcOpts:iB.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(r.requester.metadata,r.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,(0,Q.Hjj)("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();let{request:t,iss:i}=e;return(0,Q.hwK)(t,i)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{let e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let t=this.client.core.pairing.pairings.get(e.pairingTopic),i=this.client.core.pairing.pairings.getAll().filter(i=>{var r,n;return(null==(r=i.peerMetadata)?void 0:r.url)&&(null==(n=i.peerMetadata)?void 0:n.url)===e.peer.metadata.url&&i.topic&&i.topic!==t.topic});if(0===i.length)return;this.client.logger.info(`Cleaning up ${i.length} duplicate pairing(s)`),await Promise.all(i.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{var t;let{topic:i,expirerHasDeleted:r=!1,emitEvent:n=!0,id:a=0}=e,{self:o}=this.client.session.get(i);await this.client.core.relayer.unsubscribe(i),await this.client.session.delete(i,(0,Q.Hjj)("USER_DISCONNECTED")),this.addToRecentlyDeleted(i,"session"),this.client.core.crypto.keychain.has(o.publicKey)&&await this.client.core.crypto.deleteKeyPair(o.publicKey),this.client.core.crypto.keychain.has(i)&&await this.client.core.crypto.deleteSymKey(i),r||this.client.core.expirer.del(i),this.client.core.storage.removeItem(i$).catch(e=>this.client.logger.warn(e)),this.getPendingSessionRequests().forEach(e=>{e.topic===i&&this.deletePendingSessionRequest(e.id,(0,Q.Hjj)("USER_DISCONNECTED"))}),i===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=iq.idle),n&&this.client.events.emit("session_delete",{id:a,topic:i})},this.deleteProposal=async(e,t)=>{if(t)try{let t=this.client.proposal.get(e),i=this.client.core.eventClient.getEvent({topic:t.pairingTopic});i?.setError(e1.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(e,(0,Q.Hjj)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),i?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(t=>t.id!==e),i&&(this.sessionRequestQueue.state=iq.idle,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,i=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),i?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,Q.Xw0)(iB.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{let{request:i,pairingTopic:r,transportType:n=eW.relay}=t;this.client.core.expirer.set(e,i.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:i.authPayload,requester:i.requester,expiryTimestamp:i.expiryTimestamp,id:e,pairingTopic:r,verifyContext:i.verifyContext,transportType:n})},this.setPendingSessionRequest=async e=>{let{id:t,topic:i,params:r,verifyContext:n}=e,a=r.request.expiryTimestamp||(0,Q.Xw0)(iB.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,a),await this.client.pendingRequest.set(t,{id:t,topic:i,params:r,verifyContext:n})},this.sendRequest=async e=>{let t,r;let{topic:n,method:a,params:o,expiry:s,relayRpcId:c,clientRpcId:l,throwOnFailedPublish:u,appLink:d}=e,h=el(a,o,l),p=!!d;try{let e=p?Q.Pa8:Q.EWt;t=await this.client.core.crypto.encode(n,h,{encoding:e})}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`),e}if(iH.includes(a)){let e=(0,Q.ALl)(JSON.stringify(h)),i=(0,Q.ALl)(t);r=await this.client.core.verify.register({id:i,decryptedId:e})}let f=iB[a].req;if(f.attestation=r,s&&(f.ttl=s),c&&(f.id=c),this.client.core.history.set(n,h),p){let e=(0,Q.$Bq)(d,n,t);await i.g.Linking.openURL(e,this.client.name)}else{let e=iB[a].req;s&&(e.ttl=s),c&&(e.id=c),u?(e.internal=i0(iX({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,t,e)):this.client.core.relayer.publish(n,t,e).catch(e=>this.client.logger.error(e))}return h.id},this.sendResult=async e=>{let t,r;let{id:n,topic:a,result:o,throwOnFailedPublish:s,encodeOpts:c,appLink:l}=e,u=eu(n,o),d=l&&"u">typeof(null==i.g?void 0:i.g.Linking);try{let e=d?Q.Pa8:Q.EWt;t=await this.client.core.crypto.encode(a,u,i0(iX({},c||{}),{encoding:e}))}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${a} failed`),e}try{r=await this.client.core.history.get(a,n)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${a}, ${n}) failed`),e}if(d){let e=(0,Q.$Bq)(l,a,t);await i.g.Linking.openURL(e,this.client.name)}else{let e=iB[r.request.method].res;s?(e.internal=i0(iX({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,t,e)):this.client.core.relayer.publish(a,t,e).catch(e=>this.client.logger.error(e))}await this.client.core.history.resolve(u)},this.sendError=async e=>{let t,r;let{id:n,topic:a,error:o,encodeOpts:s,rpcOpts:c,appLink:l}=e,u=ed(n,o),d=l&&"u">typeof(null==i.g?void 0:i.g.Linking);try{let e=d?Q.Pa8:Q.EWt;t=await this.client.core.crypto.encode(a,u,i0(iX({},s||{}),{encoding:e}))}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${a} failed`),e}try{r=await this.client.core.history.get(a,n)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${a}, ${n}) failed`),e}if(d){let e=(0,Q.$Bq)(l,a,t);await i.g.Linking.openURL(e,this.client.name)}else{let e=c||iB[r.request.method].res;this.client.core.relayer.publish(a,t,e)}await this.client.core.history.resolve(u)},this.cleanup=async()=>{let e=[],t=[];this.client.session.getAll().forEach(t=>{let i=!1;(0,Q._dF)(t.expiry)&&(i=!0),this.client.core.crypto.keychain.has(t.topic)||(i=!0),i&&e.push(t.topic)}),this.client.proposal.getAll().forEach(e=>{(0,Q._dF)(e.expiryTimestamp)&&t.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...t.map(e=>this.deleteProposal(e))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===iq.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=iq.active;let e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=iq.idle},this.processRequest=async e=>{let{topic:t,payload:i,attestation:r,transportType:n,encryptedId:a}=e,o=i.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:o}))switch(o){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:t,payload:i,attestation:r,encryptedId:a});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,i);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,i);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,i);case"wc_sessionPing":return await this.onSessionPingRequest(t,i);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,i);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:i,attestation:r,encryptedId:a,transportType:n});case"wc_sessionEvent":return await this.onSessionEventRequest(t,i);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:i,attestation:r,encryptedId:a,transportType:n});default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:i,transportType:r}=e,n=(await this.client.core.history.get(t,i.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(t,i,r);case"wc_sessionSettle":return this.onSessionSettleResponse(t,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,i);case"wc_sessionExtend":return this.onSessionExtendResponse(t,i);case"wc_sessionPing":return this.onSessionPingResponse(t,i);case"wc_sessionRequest":return this.onSessionRequestResponse(t,i);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,i);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:t}=e,{message:i}=(0,Q.GuA)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw Error(i)},this.shouldIgnorePairingRequest=e=>{let{topic:t,requestMethod:i}=e,r=this.expectedPairingMethodMap.get(t);return!(!r||r.includes(i))&&!!(r.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{let{topic:t,payload:i,attestation:r,encryptedId:n}=e,{params:a,id:o}=i;try{let e=this.client.core.eventClient.getEvent({topic:t});this.isValidConnect(iX({},i.params));let s=a.expiryTimestamp||(0,Q.Xw0)(iB.wc_sessionPropose.req.ttl),c=iX({id:o,pairingTopic:t,expiryTimestamp:s},a);await this.setProposal(o,c);let l=await this.getVerifyContext({attestationId:r,hash:(0,Q.ALl)(JSON.stringify(i)),encryptedId:n,metadata:c.proposer.metadata});0===this.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),e?.setError(eX.proposal_listener_not_found)),e?.addTrace(eQ.emit_session_proposal),this.client.events.emit("session_proposal",{id:o,params:c,verifyContext:l})}catch(e){await this.sendError({id:o,topic:t,error:e,rpcOpts:iB.wc_sessionPropose.autoReject}),this.client.logger.error(e)}},this.onSessionProposeResponse=async(e,t,i)=>{let{id:r}=t;if(ex(t)){let{result:n}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});let a=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:a});let o=a.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let s=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:s});let c=await this.client.core.crypto.generateSharedKey(o,s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:c});let l=await this.client.core.relayer.subscribe(c,{transportType:i});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:e})}else if(eC(t)){await this.client.proposal.delete(r,(0,Q.Hjj)("USER_DISCONNECTED"));let e=(0,Q.hEn)("session_connect");if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit((0,Q.hEn)("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{let{id:i,params:r}=t;try{this.isValidSessionSettleRequest(r);let{relay:i,controller:n,expiry:a,namespaces:o,sessionProperties:s,sessionConfig:c}=t.params,l=i0(iX(iX({topic:e,relay:i,expiry:a,namespaces:o,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:n.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata}},s&&{sessionProperties:s}),c&&{sessionConfig:c}),{transportType:eW.relay}),u=(0,Q.hEn)("session_connect");if(0===this.events.listenerCount(u))throw Error(`emitting ${u} without any listeners 997`);this.events.emit((0,Q.hEn)("session_connect"),{session:l}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{let{id:i}=t;ex(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,Q.hEn)("session_approve",i),{})):eC(t)&&(await this.client.session.delete(e,(0,Q.Hjj)("USER_DISCONNECTED")),this.events.emit((0,Q.hEn)("session_approve",i),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{let{params:i,id:r}=t;try{let t=`${e}_session_update`,n=Q.nyL.get(t);if(n&&this.isRequestOutOfSync(n,r)){this.client.logger.info(`Discarding out of sync request - ${r}`),this.sendError({id:r,topic:e,error:(0,Q.Hjj)("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(iX({topic:e},i));try{Q.nyL.set(t,r),await this.client.session.update(e,{namespaces:i.namespaces}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw Q.nyL.delete(t),e}this.client.events.emit("session_update",{id:r,topic:e,params:i})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{let{id:i}=t,r=(0,Q.hEn)("session_update",i);if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners`);ex(t)?this.events.emit((0,Q.hEn)("session_update",i),{}):eC(t)&&this.events.emit((0,Q.hEn)("session_update",i),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{let{id:i}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,(0,Q.Xw0)(ij)),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:i,topic:e})}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{let{id:i}=t,r=(0,Q.hEn)("session_extend",i);if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners`);ex(t)?this.events.emit((0,Q.hEn)("session_extend",i),{}):eC(t)&&this.events.emit((0,Q.hEn)("session_extend",i),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{let{id:i}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:i,topic:e})}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{let{id:i}=t,r=(0,Q.hEn)("session_ping",i);if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners`);setTimeout(()=>{ex(t)?this.events.emit((0,Q.hEn)("session_ping",i),{}):eC(t)&&this.events.emit((0,Q.hEn)("session_ping",i),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{let{id:i}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),Promise.all([new Promise(t=>{this.client.core.relayer.once(eL.publish,async()=>{t(await this.deleteSession({topic:e,id:i}))})}),this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,Q.Hjj)("USER_DISCONNECTED")})]).catch(e=>this.client.logger.error(e))}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async e=>{var t,i,r;let{topic:n,payload:a,attestation:o,encryptedId:s,transportType:c}=e,{id:l,params:u}=a;try{await this.isValidRequest(iX({topic:n},u));let e=this.client.session.get(n),a=await this.getVerifyContext({attestationId:o,hash:(0,Q.ALl)(JSON.stringify(el("wc_sessionRequest",u,l))),encryptedId:s,metadata:e.peer.metadata,transportType:c}),d={id:l,topic:n,params:u,verifyContext:a};await this.setPendingSessionRequest(d),c===eW.link_mode&&null!=(t=e.peer.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(null==(i=e.peer.metadata.redirect)?void 0:i.universal),null!=(r=this.client.signConfig)&&r.disableRequestQueue?this.emitSessionRequest(d):(this.addSessionRequestToSessionRequestQueue(d),this.processSessionRequestQueue())}catch(e){await this.sendError({id:l,topic:n,error:e}),this.client.logger.error(e)}},this.onSessionRequestResponse=(e,t)=>{let{id:i}=t,r=(0,Q.hEn)("session_request",i);if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners`);ex(t)?this.events.emit((0,Q.hEn)("session_request",i),{result:t.result}):eC(t)&&this.events.emit((0,Q.hEn)("session_request",i),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{let{id:i,params:r}=t;try{let t=`${e}_session_event_${r.event.name}`,n=Q.nyL.get(t);if(n&&this.isRequestOutOfSync(n,i)){this.client.logger.info(`Discarding out of sync request - ${i}`);return}this.isValidEmit(iX({topic:e},r)),this.client.events.emit("session_event",{id:i,topic:e,params:r}),Q.nyL.set(t,i)}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{let{id:i}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),ex(t)?this.events.emit((0,Q.hEn)("session_request",i),{result:t.result}):eC(t)&&this.events.emit((0,Q.hEn)("session_request",i),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{var t;let{topic:i,payload:r,attestation:n,encryptedId:a,transportType:o}=e;try{let{requester:e,authPayload:s,expiryTimestamp:c}=r.params,l=await this.getVerifyContext({attestationId:n,hash:(0,Q.ALl)(JSON.stringify(r)),encryptedId:a,metadata:e.metadata,transportType:o}),u={requester:e,pairingTopic:i,id:r.id,authPayload:s,verifyContext:l,expiryTimestamp:c};await this.setAuthRequest(r.id,{request:u,pairingTopic:i,transportType:o}),o===eW.link_mode&&null!=(t=e.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(e.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:i,params:r.params,id:r.id,verifyContext:l})}catch(s){this.client.logger.error(s);let e=r.params.requester.publicKey,t=await this.client.core.crypto.generateKeyPair(),n=this.getAppLinkIfEnabled(r.params.requester.metadata,o),a={type:Q.Lp_,receiverPublicKey:e,senderPublicKey:t};await this.sendError({id:r.id,topic:i,error:s,encodeOpts:a,rpcOpts:iB.wc_sessionAuthenticate.autoReject,appLink:n})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=iq.idle,this.processSessionRequestQueue()},(0,o.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{let i=this.client.core.history.pending;i.length>0&&i.filter(t=>t.topic===e&&"wc_sessionRequest"===t.request.method).forEach(e=>{let i=e.request.id,r=(0,Q.hEn)("session_request",i);if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners`);this.events.emit((0,Q.hEn)("session_request",e.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===iq.active){this.client.logger.info("session request queue is already active.");return}let e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=iq.active,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let t=this.client.proposal.getAll().find(t=>t.pairingTopic===e.topic);t&&this.onSessionProposeRequest({topic:e.topic,payload:el("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id)})},this.isValidConnect=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw Error(t)}let{pairingTopic:t,requiredNamespaces:i,optionalNamespaces:r,sessionProperties:n,relays:a}=e;if((0,Q.b07)(t)||await this.isValidPairingTopic(t),!(0,Q.V9G)(a,!0)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`connect() relays: ${a}`);throw Error(e)}(0,Q.b07)(i)||0===(0,Q.aF0)(i)||this.validateNamespaces(i,"requiredNamespaces"),(0,Q.b07)(r)||0===(0,Q.aF0)(r)||this.validateNamespaces(r,"optionalNamespaces"),(0,Q.b07)(n)||this.validateSessionProps(n,"sessionProperties")},this.validateNamespaces=(e,t)=>{let i=(0,Q.esh)(e,"connect()",t);if(i)throw Error(i.message)},this.isValidApprove=async e=>{if(!(0,Q.TeY)(e))throw Error((0,Q.GuA)("MISSING_OR_INVALID",`approve() params: ${e}`).message);let{id:t,namespaces:i,relayProtocol:r,sessionProperties:n}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);let a=this.client.proposal.get(t),o=(0,Q.FiO)(i,"approve()");if(o)throw Error(o.message);let s=(0,Q.XqR)(a.requiredNamespaces,i,"approve()");if(s)throw Error(s.message);if(!(0,Q.Qhg)(r,!0)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`approve() relayProtocol: ${r}`);throw Error(e)}(0,Q.b07)(n)||this.validateSessionProps(n,"sessionProperties")},this.isValidReject=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`reject() params: ${e}`);throw Error(t)}let{id:t,reason:i}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,Q.X3c)(i)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw Error(t)}let{relay:t,controller:i,namespaces:r,expiry:n}=e;if(!(0,Q.kuU)(t)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(e)}let a=(0,Q.tk0)(i,"onSessionSettleRequest()");if(a)throw Error(a.message);let o=(0,Q.FiO)(r,"onSessionSettleRequest()");if(o)throw Error(o.message);if((0,Q._dF)(n)){let{message:e}=(0,Q.GuA)("EXPIRED","onSessionSettleRequest()");throw Error(e)}},this.isValidUpdate=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`update() params: ${e}`);throw Error(t)}let{topic:t,namespaces:i}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let r=this.client.session.get(t),n=(0,Q.FiO)(i,"update()");if(n)throw Error(n.message);let a=(0,Q.XqR)(r.requiredNamespaces,i,"update()");if(a)throw Error(a.message)},this.isValidExtend=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`extend() params: ${e}`);throw Error(t)}let{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`request() params: ${e}`);throw Error(t)}let{topic:t,request:i,chainId:r,expiry:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let{namespaces:a}=this.client.session.get(t);if(!(0,Q.tLy)(a,r)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`request() chainId: ${r}`);throw Error(e)}if(!(0,Q.iV1)(i)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw Error(e)}if(!(0,Q.oKp)(a,r,i.method)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`request() method: ${i.method}`);throw Error(e)}if(n&&!(0,Q.Hbs)(n,iW)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`request() expiry: ${n}. Expiry must be a number (in seconds) between ${iW.min} and ${iW.max}`);throw Error(e)}},this.isValidRespond=async e=>{var t;if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`respond() params: ${e}`);throw Error(t)}let{topic:i,response:r}=e;try{await this.isValidSessionTopic(i)}catch(i){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),i}if(!(0,Q.M8n)(r)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidPing=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`emit() params: ${e}`);throw Error(t)}let{topic:t,event:i,chainId:r}=e;await this.isValidSessionTopic(t);let{namespaces:n}=this.client.session.get(t);if(!(0,Q.tLy)(n,r)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`emit() chainId: ${r}`);throw Error(e)}if(!(0,Q.FR8)(i)||!(0,Q.z2N)(n,r,i.name)){let{message:e}=(0,Q.GuA)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!(0,Q.TeY)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{let{chains:t,uri:i,domain:r,nonce:n}=e;if(!Array.isArray(t)||0===t.length)throw Error("chains is required and must be a non-empty array");if(!(0,Q.Qhg)(i,!1))throw Error("uri is required parameter");if(!(0,Q.Qhg)(r,!1))throw Error("domain is required parameter");if(!(0,Q.Qhg)(n,!1))throw Error("nonce is required parameter");if([...new Set(t.map(e=>(0,Q._Yb)(e).namespace))].length>1)throw Error("Multi-namespace requests are not supported. Please request single namespace only.");let{namespace:a}=(0,Q._Yb)(t[0]);if("eip155"!==a)throw Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{let{attestationId:t,hash:i,encryptedId:r,metadata:n,transportType:a}=e,o={verified:{verifyUrl:n.verifyUrl||eG,validation:"UNKNOWN",origin:n.url||""}};try{if(a===eW.link_mode){let e=this.getAppLinkIfEnabled(n,a);return o.verified.validation=e&&new URL(e).origin===new URL(n.url).origin?"VALID":"INVALID",o}let e=await this.client.core.verify.resolve({attestationId:t,hash:i,encryptedId:r,verifyUrl:n.verifyUrl});e&&(o.verified.origin=e.origin,o.verified.isScam=e.isScam,o.verified.validation=e.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.warn(e)}return this.client.logger.debug(`Verify context: ${JSON.stringify(o)}`),o},this.validateSessionProps=(e,t)=>{Object.values(e).forEach(e=>{if(!(0,Q.Qhg)(e,!1)){let{message:i}=(0,Q.GuA)("MISSING_OR_INVALID",`${t} must be in Record<string, string> format. Received: ${JSON.stringify(e)}`);throw Error(i)}})},this.getPendingAuthRequest=e=>{let t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,t=this.recentlyDeletedLimit/2;for(let i of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(i)}}},this.checkRecentlyDeleted=e=>{let t=this.recentlyDeletedMap.get(e);if(t){let{message:i}=(0,Q.GuA)("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw Error(i)}},this.isLinkModeEnabled=(e,t)=>{var r,n,a,o,s,c,l,u,d;return!!e&&t===eW.link_mode&&(null==(n=null==(r=this.client.metadata)?void 0:r.redirect)?void 0:n.linkMode)===!0&&(null==(o=null==(a=this.client.metadata)?void 0:a.redirect)?void 0:o.universal)!==void 0&&(null==(c=null==(s=this.client.metadata)?void 0:s.redirect)?void 0:c.universal)!==""&&(null==(l=e?.redirect)?void 0:l.universal)!==void 0&&(null==(u=e?.redirect)?void 0:u.universal)!==""&&(null==(d=e?.redirect)?void 0:d.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&"u">typeof(null==i.g?void 0:i.g.Linking)},this.getAppLinkIfEnabled=(e,t)=>{var i;return this.isLinkModeEnabled(e,t)?null==(i=e?.redirect)?void 0:i.universal:void 0},this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;let t=(0,Q.$hI)(e,"topic")||"",i=decodeURIComponent((0,Q.$hI)(e,"wc_ev")||""),r=this.client.session.keys.includes(t);r&&this.client.session.update(t,{transportType:eW.link_mode}),this.client.core.dispatchEnvelope({topic:t,message:i,sessionExists:r})},this.registerLinkModeListeners=async()=>{var e;if((0,Q.w8K)()||(0,Q.lVv)()&&null!=(e=this.client.metadata.redirect)&&e.linkMode){let e=null==i.g?void 0:i.g.Linking;if("u">typeof e){e.addEventListener("url",this.handleLinkModeMessage,this.client.name);let t=await e.getInitialURL();t&&setTimeout(()=>{this.handleLinkModeMessage({url:t})},50)}}}}isInitialized(){if(!this.initialized){let{message:e}=(0,Q.GuA)("NOT_INITIALIZED",this.name);throw Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(eL.message,e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)})}async onRelayMessage(e){let{topic:t,message:i,attestation:r,transportType:n}=e,{publicKey:a}=this.client.auth.authKeys.keys.includes(iF)?this.client.auth.authKeys.get(iF):{responseTopic:void 0,publicKey:void 0},o=await this.client.core.crypto.decode(t,i,{receiverPublicKey:a,encoding:n===eW.link_mode?Q.Pa8:Q.EWt});try{ev(o)?(this.client.core.history.set(t,o),this.onRelayEventRequest({topic:t,payload:o,attestation:r,transportType:n,encryptedId:(0,Q.ALl)(i)})):ey(o)?(await this.client.core.history.resolve(o),await this.onRelayEventResponse({topic:t,payload:o,transportType:n}),this.client.core.history.delete(t,o.id)):this.onRelayEventUnknownPayload({topic:t,payload:o,transportType:n})}catch(e){this.client.logger.error(e)}}registerExpirerEvents(){this.client.core.expirer.on(eK.expired,async e=>{let{topic:t,id:i}=(0,Q.c82)(e.target);return i&&this.client.pendingRequest.keys.includes(i)?await this.deletePendingSessionRequest(i,(0,Q.GuA)("EXPIRED"),!0):i&&this.client.auth.requests.keys.includes(i)?await this.deletePendingAuthRequest(i,(0,Q.GuA)("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):i&&(await this.deleteProposal(i,!0),this.client.events.emit("proposal_expire",{id:i})))})}registerPairingEvents(){this.client.core.pairing.events.on(eZ.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(eZ.delete,e=>{this.addToRecentlyDeleted(e.topic,"pairing")})}isValidPairingTopic(e){if(!(0,Q.Qhg)(e,!1)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,Q._dF)(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=(0,Q.GuA)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}}async isValidSessionTopic(e){if(!(0,Q.Qhg)(e,!1)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw Error(t)}if((0,Q._dF)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:t}=(0,Q.GuA)("EXPIRED",`session topic: ${e}`);throw Error(t)}if(!this.client.core.crypto.keychain.has(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if((0,Q.Qhg)(e,!1)){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw Error(t)}else{let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw Error(t)}}async isValidProposalId(e){if(!(0,Q.Alu)(e)){let{message:t}=(0,Q.GuA)("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=(0,Q.GuA)("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw Error(t)}if((0,Q._dF)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:t}=(0,Q.GuA)("EXPIRED",`proposal id: ${e}`);throw Error(t)}}}class i2 extends il{constructor(e,t){super(e,t,"proposal",iD),this.core=e,this.logger=t}}class i3 extends il{constructor(e,t){super(e,t,"session",iD),this.core=e,this.logger=t}}class i5 extends il{constructor(e,t){super(e,t,"request",iD,e=>e.id),this.core=e,this.logger=t}}class i4 extends il{constructor(e,t){super(e,t,"authKeys",iz,()=>iF),this.core=e,this.logger=t}}class i6 extends il{constructor(e,t){super(e,t,"pairingTopics",iz),this.core=e,this.logger=t}}class i8 extends il{constructor(e,t){super(e,t,"requests",iz,e=>e.id),this.core=e,this.logger=t}}class i9{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new i4(this.core,this.logger),this.pairingTopics=new i6(this.core,this.logger),this.requests=new i8(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class i7 extends G{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=iU.name,this.events=new n.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async(e,t)=>{try{return await this.engine.authenticate(e,t)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||iU.name,this.metadata=e?.metadata||(0,Q.lFF)(),this.signConfig=e?.signConfig;let t="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,$.h6)((0,$.iP)({level:e?.logger||iU.logger}));this.core=e?.core||new iO(e),this.logger=(0,$.U5)(t,this.name),this.session=new i3(this.core,this.logger),this.proposal=new i2(this.core,this.logger),this.pendingRequest=new i5(this.core,this.logger),this.engine=new i1(this),this.auth=new i9(this.core,this.logger)}static async init(e){let t=new i7(e);return await t.initialize(),t}get context(){return(0,$.oI)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}var re=i(77186),rt=i.n(re),ri=Object.defineProperty,rr=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,ra=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,rc=(e,t,i)=>t in e?ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,rl=(e,t)=>{for(var i in t||(t={}))ro.call(t,i)&&rc(e,i,t[i]);if(ra)for(var i of ra(t))rs.call(t,i)&&rc(e,i,t[i]);return e},ru=(e,t)=>rr(e,rn(t));let rd={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class rh{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new n.EventEmitter,this.isAvailable=!1,this.registering=!1,!ew(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=(0,I.h)(e),i=await (await rt()(this.url,ru(rl({},rd),{body:t}))).json();this.onPayload({data:i})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!ew(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=(0,I.h)({id:1,jsonrpc:"2.0",method:"test",params:[]});await rt()(e,ru(rl({},rd),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,I.j)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let i=this.parseError(t),r=ed(e,i.message||i.toString());this.events.emit("payload",r)}parseError(e,t=this.url){return ea(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}let rp="error",rf="wc@2:universal_provider:",rg="https://rpc.walletconnect.org/v1/",rw="generic",rm=`${rg}bundler`,rb={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var rv="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof i.g?i.g:"u">typeof self?self:{},ry={exports:{}};!function(e,t){(function(){var i,r="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",o=1/0,s=0/0,c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Function]",g="[object GeneratorFunction]",w="[object Map]",m="[object Number]",b="[object Object]",v="[object Promise]",y="[object RegExp]",x="[object Set]",C="[object String]",A="[object Symbol]",E="[object WeakMap]",_="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",N="[object Int16Array]",P="[object Int32Array]",R="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]",U=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,W=RegExp(j.source),q=RegExp(B.source),H=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,J=RegExp(G.source),Y=/^\s+/,Q=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ee=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,ei=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,er=/[()=,{}\[\]\/\s]/,en=/\\(\\)?/g,ea=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eo=/\w*$/,es=/^[-+]0x[0-9a-f]+$/i,ec=/^0b[01]+$/i,el=/^\[object .+?Constructor\]$/,eu=/^0o[0-7]+$/i,ed=/^(?:0|[1-9]\d*)$/,eh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ep=/($^)/,ef=/['\n\r\u2028\u2029\\]/g,eg="\ud800-\udfff",ew="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",em="\\u2700-\\u27bf",eb="a-z\\xdf-\\xf6\\xf8-\\xff",ev="A-Z\\xc0-\\xd6\\xd8-\\xde",ey="\\ufe0e\\ufe0f",ex="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eC="['’]",eA="["+ex+"]",eE="["+ew+"]",e_="["+eb+"]",ek="[^"+eg+ex+"\\d+"+em+eb+ev+"]",eI="\ud83c[\udffb-\udfff]",eS="[^"+eg+"]",eT="(?:\ud83c[\udde6-\uddff]){2}",eN="[\ud800-\udbff][\udc00-\udfff]",eP="["+ev+"]",eR="\\u200d",eO="(?:"+e_+"|"+ek+")",eM="(?:"+eP+"|"+ek+")",eD="(?:"+eC+"(?:d|ll|m|re|s|t|ve))?",eU="(?:"+eC+"(?:D|LL|M|RE|S|T|VE))?",e$="(?:"+eE+"|"+eI+")?",eL="["+ey+"]?",ej="(?:"+eR+"(?:"+[eS,eT,eN].join("|")+")"+eL+e$+")*",eB=eL+e$+ej,eW="(?:"+["["+em+"]",eT,eN].join("|")+")"+eB,eq="(?:"+[eS+eE+"?",eE,eT,eN,"["+eg+"]"].join("|")+")",eH=RegExp(eC,"g"),ez=RegExp(eE,"g"),eF=RegExp(eI+"(?="+eI+")|"+eq+eB,"g"),eZ=RegExp([eP+"?"+e_+"+"+eD+"(?="+[eA,eP,"$"].join("|")+")",eM+"+"+eU+"(?="+[eA,eP+eO,"$"].join("|")+")",eP+"?"+eO+"+"+eD,eP+"+"+eU,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eW].join("|"),"g"),eV=RegExp("["+eR+eg+ew+ey+"]"),eK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eG=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eJ=-1,eY={};eY[I]=eY[S]=eY[T]=eY[N]=eY[P]=eY[R]=eY[O]=eY[M]=eY[D]=!0,eY[l]=eY[u]=eY[_]=eY[d]=eY[k]=eY[h]=eY[p]=eY[f]=eY[w]=eY[m]=eY[b]=eY[y]=eY[x]=eY[C]=eY[E]=!1;var eQ={};eQ[l]=eQ[u]=eQ[_]=eQ[k]=eQ[d]=eQ[h]=eQ[I]=eQ[S]=eQ[T]=eQ[N]=eQ[P]=eQ[w]=eQ[m]=eQ[b]=eQ[y]=eQ[x]=eQ[C]=eQ[A]=eQ[R]=eQ[O]=eQ[M]=eQ[D]=!0,eQ[p]=eQ[f]=eQ[E]=!1;var eX={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e0=parseFloat,e1=parseInt,e2="object"==typeof rv&&rv&&rv.Object===Object&&rv,e3="object"==typeof self&&self&&self.Object===Object&&self,e5=e2||e3||Function("return this")(),e4=t&&!t.nodeType&&t,e6=e4&&e&&!e.nodeType&&e,e8=e6&&e6.exports===e4,e9=e8&&e2.process,e7=function(){try{return e6&&e6.require&&e6.require("util").types||e9&&e9.binding&&e9.binding("util")}catch{}}(),te=e7&&e7.isArrayBuffer,tt=e7&&e7.isDate,ti=e7&&e7.isMap,tr=e7&&e7.isRegExp,tn=e7&&e7.isSet,ta=e7&&e7.isTypedArray;function to(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function ts(e,t,i,r){for(var n=-1,a=null==e?0:e.length;++n<a;){var o=e[n];t(r,o,i(o),e)}return r}function tc(e,t){for(var i=-1,r=null==e?0:e.length;++i<r&&!1!==t(e[i],i,e););return e}function tl(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(!t(e[i],i,e))return!1;return!0}function tu(e,t){for(var i=-1,r=null==e?0:e.length,n=0,a=[];++i<r;){var o=e[i];t(o,i,e)&&(a[n++]=o)}return a}function td(e,t){return!!(null==e?0:e.length)&&tx(e,t,0)>-1}function th(e,t,i){for(var r=-1,n=null==e?0:e.length;++r<n;)if(i(t,e[r]))return!0;return!1}function tp(e,t){for(var i=-1,r=null==e?0:e.length,n=Array(r);++i<r;)n[i]=t(e[i],i,e);return n}function tf(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}function tg(e,t,i,r){var n=-1,a=null==e?0:e.length;for(r&&a&&(i=e[++n]);++n<a;)i=t(i,e[n],n,e);return i}function tw(e,t,i,r){var n=null==e?0:e.length;for(r&&n&&(i=e[--n]);n--;)i=t(i,e[n],n,e);return i}function tm(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1}var tb=t_("length");function tv(e,t,i){var r;return i(e,function(e,i,n){if(t(e,i,n))return r=i,!1}),r}function ty(e,t,i,r){for(var n=e.length,a=i+(r?1:-1);r?a--:++a<n;)if(t(e[a],a,e))return a;return -1}function tx(e,t,i){return t==t?function(e,t,i){for(var r=i-1,n=e.length;++r<n;)if(e[r]===t)return r;return -1}(e,t,i):ty(e,tA,i)}function tC(e,t,i,r){for(var n=i-1,a=e.length;++n<a;)if(r(e[n],t))return n;return -1}function tA(e){return e!=e}function tE(e,t){var i=null==e?0:e.length;return i?tS(e,t)/i:s}function t_(e){return function(t){return null==t?i:t[e]}}function tk(e){return function(t){return null==e?i:e[t]}}function tI(e,t,i,r,n){return n(e,function(e,n,a){i=r?(r=!1,e):t(i,e,n,a)}),i}function tS(e,t){for(var r,n=-1,a=e.length;++n<a;){var o=t(e[n]);o!==i&&(r=r===i?o:r+o)}return r}function tT(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}function tN(e){return e&&e.slice(0,tZ(e)+1).replace(Y,"")}function tP(e){return function(t){return e(t)}}function tR(e,t){return tp(t,function(t){return e[t]})}function tO(e,t){return e.has(t)}function tM(e,t){for(var i=-1,r=e.length;++i<r&&tx(t,e[i],0)>-1;);return i}function tD(e,t){for(var i=e.length;i--&&tx(t,e[i],0)>-1;);return i}var tU=tk({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),t$=tk({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tL(e){return"\\"+eX[e]}function tj(e){return eV.test(e)}function tB(e){var t=-1,i=Array(e.size);return e.forEach(function(e,r){i[++t]=[r,e]}),i}function tW(e,t){return function(i){return e(t(i))}}function tq(e,t){for(var i=-1,r=e.length,n=0,o=[];++i<r;){var s=e[i];(s===t||s===a)&&(e[i]=a,o[n++]=i)}return o}function tH(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}function tz(e){return tj(e)?function(e){for(var t=eF.lastIndex=0;eF.test(e);)++t;return t}(e):tb(e)}function tF(e){return tj(e)?e.match(eF)||[]:e.split("")}function tZ(e){for(var t=e.length;t--&&Q.test(e.charAt(t)););return t}var tV=tk({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tK=function e(t){var Q,eg,ew,em,eb=(t=null==t?e5:tK.defaults(e5.Object(),t,tK.pick(e5,eG))).Array,ev=t.Date,ey=t.Error,ex=t.Function,eC=t.Math,eA=t.Object,eE=t.RegExp,e_=t.String,ek=t.TypeError,eI=eb.prototype,eS=ex.prototype,eT=eA.prototype,eN=t["__core-js_shared__"],eP=eS.toString,eR=eT.hasOwnProperty,eO=0,eM=(Q=/[^.]+$/.exec(eN&&eN.keys&&eN.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",eD=eT.toString,eU=eP.call(eA),e$=e5._,eL=eE("^"+eP.call(eR).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ej=e8?t.Buffer:i,eB=t.Symbol,eW=t.Uint8Array,eq=ej?ej.allocUnsafe:i,eF=tW(eA.getPrototypeOf,eA),eV=eA.create,eX=eT.propertyIsEnumerable,e2=eI.splice,e3=eB?eB.isConcatSpreadable:i,e4=eB?eB.iterator:i,e6=eB?eB.toStringTag:i,e9=function(){try{var e=nf(eA,"defineProperty");return e({},"",{}),e}catch{}}(),e7=t.clearTimeout!==e5.clearTimeout&&t.clearTimeout,tb=ev&&ev.now!==e5.Date.now&&ev.now,tk=t.setTimeout!==e5.setTimeout&&t.setTimeout,tG=eC.ceil,tJ=eC.floor,tY=eA.getOwnPropertySymbols,tQ=ej?ej.isBuffer:i,tX=t.isFinite,t0=eI.join,t1=tW(eA.keys,eA),t2=eC.max,t3=eC.min,t5=ev.now,t4=t.parseInt,t6=eC.random,t8=eI.reverse,t9=nf(t,"DataView"),t7=nf(t,"Map"),ie=nf(t,"Promise"),it=nf(t,"Set"),ii=nf(t,"WeakMap"),ir=nf(eA,"create"),ia=ii&&new ii,io={},is=nj(t9),ic=nj(t7),il=nj(ie),iu=nj(it),id=nj(ii),ih=eB?eB.prototype:i,ip=ih?ih.valueOf:i,ig=ih?ih.toString:i;function iw(e){if(aZ(e)&&!aD(e)&&!(e instanceof iy)){if(e instanceof iv)return e;if(eR.call(e,"__wrapped__"))return nB(e)}return new iv(e)}var im=function(){function e(){}return function(t){if(!aF(t))return{};if(eV)return eV(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function ib(){}function iv(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function iy(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function ix(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function iC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function iA(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function iE(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new iA;++t<i;)this.add(e[t])}function i_(e){var t=this.__data__=new iC(e);this.size=t.size}function ik(e,t){var i=aD(e),r=!i&&aM(e),n=!i&&!r&&aj(e),a=!i&&!r&&!n&&a0(e),o=i||r||n||a,s=o?tT(e.length,e_):[],c=s.length;for(var l in e)(t||eR.call(e,l))&&!(o&&("length"==l||n&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||nx(l,c)))&&s.push(l);return s}function iI(e){var t=e.length;return t?e[rd(0,t-1)]:i}function iS(e,t,r){(r===i||aP(e[t],r))&&(r!==i||t in e)||iO(e,t,r)}function iT(e,t,r){var n=e[t];eR.call(e,t)&&aP(n,r)&&(r!==i||t in e)||iO(e,t,r)}function iN(e,t){for(var i=e.length;i--;)if(aP(e[i][0],t))return i;return -1}function iP(e,t,i,r){return iB(e,function(e,n,a){t(r,e,i(e),a)}),r}function iR(e,t){return e&&rH(t,oh(t),e)}function iO(e,t,i){"__proto__"==t&&e9?e9(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function iM(e,t){for(var r=-1,n=t.length,a=eb(n),o=null==e;++r<n;)a[r]=o?i:os(e,t[r]);return a}function iD(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function iU(e,t,r,n,a,o){var s,c=1&t,u=2&t,p=4&t;if(r&&(s=a?r(e,n,a,o):r(e)),s!==i)return s;if(!aF(e))return e;var v=aD(e);if(v){if(E=e.length,U=new e.constructor(E),E&&"string"==typeof e[0]&&eR.call(e,"index")&&(U.index=e.index,U.input=e.input),s=U,!c)return rq(e,s)}else{var E,U,$,L,j,B=nm(e),W=B==f||B==g;if(aj(e))return rU(e,c);if(B==b||B==l||W&&!a){if(s=u||W?{}:nv(e),!c)return u?($=(j=s)&&rH(e,op(e),j),rH(e,nw(e),$)):(L=iR(s,e),rH(e,ng(e),L))}else{if(!eQ[B])return a?e:{};s=function(e,t,i){var r,n,a=e.constructor;switch(t){case _:return r$(e);case d:case h:return new a(+e);case k:return r=i?r$(e.buffer):e.buffer,new e.constructor(r,e.byteOffset,e.byteLength);case I:case S:case T:case N:case P:case R:case O:case M:case D:return rL(e,i);case w:return new a;case m:case C:return new a(e);case y:return(n=new e.constructor(e.source,eo.exec(e))).lastIndex=e.lastIndex,n;case x:return new a;case A:return ip?eA(ip.call(e)):{}}}(e,B,c)}}o||(o=new i_);var q=o.get(e);if(q)return q;o.set(e,s),aY(e)?e.forEach(function(i){s.add(iU(i,t,r,i,e,o))}):aV(e)&&e.forEach(function(i,n){s.set(n,iU(i,t,r,n,e,o))});var H=p?u?ns:no:u?op:oh,z=v?i:H(e);return tc(z||e,function(i,n){z&&(i=e[n=i]),iT(s,n,iU(i,t,r,n,e,o))}),s}function i$(e,t,r){var n=r.length;if(null==e)return!n;for(e=eA(e);n--;){var a=r[n],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function iL(e,t,n){if("function"!=typeof e)throw new ek(r);return nR(function(){e.apply(i,n)},t)}function ij(e,t,i,r){var n=-1,a=td,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;i&&(t=tp(t,tP(i))),r?(a=th,o=!1):t.length>=200&&(a=tO,o=!1,t=new iE(t));e:for(;++n<s;){var u=e[n],d=null==i?u:i(u);if(u=r||0!==u?u:0,o&&d==d){for(var h=l;h--;)if(t[h]===d)continue e;c.push(u)}else a(t,d,r)||c.push(u)}return c}iw.templateSettings={escape:H,evaluate:z,interpolate:F,variable:"",imports:{_:iw}},iw.prototype=ib.prototype,iw.prototype.constructor=iw,iv.prototype=im(ib.prototype),iv.prototype.constructor=iv,iy.prototype=im(ib.prototype),iy.prototype.constructor=iy,ix.prototype.clear=function(){this.__data__=ir?ir(null):{},this.size=0},ix.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ix.prototype.get=function(e){var t=this.__data__;if(ir){var r=t[e];return r===n?i:r}return eR.call(t,e)?t[e]:i},ix.prototype.has=function(e){var t=this.__data__;return ir?t[e]!==i:eR.call(t,e)},ix.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ir&&t===i?n:t,this},iC.prototype.clear=function(){this.__data__=[],this.size=0},iC.prototype.delete=function(e){var t=this.__data__,i=iN(t,e);return!(i<0)&&(i==t.length-1?t.pop():e2.call(t,i,1),--this.size,!0)},iC.prototype.get=function(e){var t=this.__data__,r=iN(t,e);return r<0?i:t[r][1]},iC.prototype.has=function(e){return iN(this.__data__,e)>-1},iC.prototype.set=function(e,t){var i=this.__data__,r=iN(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},iA.prototype.clear=function(){this.size=0,this.__data__={hash:new ix,map:new(t7||iC),string:new ix}},iA.prototype.delete=function(e){var t=nh(this,e).delete(e);return this.size-=t?1:0,t},iA.prototype.get=function(e){return nh(this,e).get(e)},iA.prototype.has=function(e){return nh(this,e).has(e)},iA.prototype.set=function(e,t){var i=nh(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},iE.prototype.add=iE.prototype.push=function(e){return this.__data__.set(e,n),this},iE.prototype.has=function(e){return this.__data__.has(e)},i_.prototype.clear=function(){this.__data__=new iC,this.size=0},i_.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},i_.prototype.get=function(e){return this.__data__.get(e)},i_.prototype.has=function(e){return this.__data__.has(e)},i_.prototype.set=function(e,t){var i=this.__data__;if(i instanceof iC){var r=i.__data__;if(!t7||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new iA(r)}return i.set(e,t),this.size=i.size,this};var iB=rZ(iK),iW=rZ(iG,!0);function iq(e,t){var i=!0;return iB(e,function(e,r,n){return i=!!t(e,r,n)}),i}function iH(e,t,r){for(var n=-1,a=e.length;++n<a;){var o=e[n],s=t(o);if(null!=s&&(c===i?s==s&&!aX(s):r(s,c)))var c=s,l=o}return l}function iz(e,t){var i=[];return iB(e,function(e,r,n){t(e,r,n)&&i.push(e)}),i}function iF(e,t,i,r,n){var a=-1,o=e.length;for(i||(i=ny),n||(n=[]);++a<o;){var s=e[a];t>0&&i(s)?t>1?iF(s,t-1,i,r,n):tf(n,s):r||(n[n.length]=s)}return n}var iZ=rV(),iV=rV(!0);function iK(e,t){return e&&iZ(e,t,oh)}function iG(e,t){return e&&iV(e,t,oh)}function iJ(e,t){return tu(t,function(t){return aq(e[t])})}function iY(e,t){t=rO(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[nL(t[r++])];return r&&r==n?e:i}function iQ(e,t,i){var r=t(e);return aD(e)?r:tf(r,i(e))}function iX(e){return null==e?e===i?"[object Undefined]":"[object Null]":e6&&e6 in eA(e)?function(e){var t=eR.call(e,e6),r=e[e6];try{e[e6]=i;var n=!0}catch{}var a=eD.call(e);return n&&(t?e[e6]=r:delete e[e6]),a}(e):eD.call(e)}function i0(e,t){return e>t}function i1(e,t){return null!=e&&eR.call(e,t)}function i2(e,t){return null!=e&&t in eA(e)}function i3(e,t,r){for(var n=r?th:td,a=e[0].length,o=e.length,s=o,c=eb(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=tp(d,tP(t))),l=t3(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new iE(s&&d):i}d=e[0];var h=-1,p=c[0];e:for(;++h<a&&u.length<l;){var f=d[h],g=t?t(f):f;if(f=r||0!==f?f:0,!(p?tO(p,g):n(u,g,r))){for(s=o;--s;){var w=c[s];if(!(w?tO(w,g):n(e[s],g,r)))continue e}p&&p.push(g),u.push(f)}}return u}function i5(e,t,r){t=rO(t,e);var n=null==(e=nT(e,t))?e:e[nL(nY(t))];return null==n?i:to(n,e,r)}function i4(e){return aZ(e)&&iX(e)==l}function i6(e,t,r,n,a){return e===t||(null!=e&&null!=t&&(aZ(e)||aZ(t))?function(e,t,r,n,a,o){var s=aD(e),c=aD(t),f=s?u:nm(e),g=c?u:nm(t);f=f==l?b:f,g=g==l?b:g;var v=f==b,E=g==b,I=f==g;if(I&&aj(e)){if(!aj(t))return!1;s=!0,v=!1}if(I&&!v)return o||(o=new i_),s||a0(e)?nn(e,t,r,n,a,o):function(e,t,i,r,n,a,o){switch(i){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!a(new eW(e),new eW(t)));case d:case h:case m:return aP(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case C:return e==t+"";case w:var s=tB;case x:var c=1&r;if(s||(s=tH),e.size!=t.size&&!c)break;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=nn(s(e),s(t),r,n,a,o);return o.delete(e),u;case A:if(ip)return ip.call(e)==ip.call(t)}return!1}(e,t,f,r,n,a,o);if(!(1&r)){var S=v&&eR.call(e,"__wrapped__"),T=E&&eR.call(t,"__wrapped__");if(S||T){var N=S?e.value():e,P=T?t.value():t;return o||(o=new i_),a(N,P,r,n,o)}}return!!I&&(o||(o=new i_),function(e,t,r,n,a,o){var s=1&r,c=no(e),l=c.length;if(l!=no(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:eR.call(t,d)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var f=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){var w=e[d=c[u]],m=t[d];if(n)var b=s?n(m,w,d,t,e,o):n(w,m,d,e,t,o);if(!(b===i?w===m||a(w,m,r,n,o):b)){f=!1;break}g||(g="constructor"==d)}if(f&&!g){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,n,a,o))}(e,t,r,n,i6,a):e!=e&&t!=t)}function i8(e,t,r,n){var a=r.length,o=a,s=!n;if(null==e)return!o;for(e=eA(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){var l=(c=r[a])[0],u=e[l],d=c[1];if(s&&c[2]){if(u===i&&!(l in e))return!1}else{var h=new i_;if(n)var p=n(u,d,l,e,t,h);if(!(p===i?i6(d,u,3,n,h):p))return!1}}return!0}function i9(e){return!(!aF(e)||eM&&eM in e)&&(aq(e)?eL:el).test(nj(e))}function i7(e){return"function"==typeof e?e:null==e?oL:"object"==typeof e?aD(e)?rn(e[0],e[1]):rr(e):oV(e)}function re(e){if(!nk(e))return t1(e);var t=[];for(var i in eA(e))eR.call(e,i)&&"constructor"!=i&&t.push(i);return t}function rt(e,t){return e<t}function ri(e,t){var i=-1,r=a$(e)?eb(e.length):[];return iB(e,function(e,n,a){r[++i]=t(e,n,a)}),r}function rr(e){var t=np(e);return 1==t.length&&t[0][2]?nI(t[0][0],t[0][1]):function(i){return i===e||i8(i,e,t)}}function rn(e,t){var r;return nA(e)&&(r=t)==r&&!aF(r)?nI(nL(e),t):function(r){var n=os(r,e);return n===i&&n===t?oc(r,e):i6(t,n,3)}}function ra(e,t,r,n,a){e!==t&&iZ(t,function(o,s){if(a||(a=new i_),aF(o))!function(e,t,r,n,a,o,s){var c=nN(e,r),l=nN(t,r),u=s.get(l);if(u){iS(e,r,u);return}var d=o?o(c,l,r+"",e,t,s):i,h=d===i;if(h){var p=aD(l),f=!p&&aj(l),g=!p&&!f&&a0(l);d=l,p||f||g?aD(c)?d=c:aL(c)?d=rq(c):f?(h=!1,d=rU(l,!0)):g?(h=!1,d=rL(l,!0)):d=[]:aG(l)||aM(l)?(d=c,aM(c)?d=a9(c):(!aF(c)||aq(c))&&(d=nv(l))):h=!1}h&&(s.set(l,d),a(d,l,n,o,s),s.delete(l)),iS(e,r,d)}(e,t,s,r,ra,n,a);else{var c=n?n(nN(e,s),o,s+"",e,t,a):i;c===i&&(c=o),iS(e,s,c)}},op)}function ro(e,t){var r=e.length;if(r)return nx(t+=t<0?r:0,r)?e[t]:i}function rs(e,t,i){t=t.length?tp(t,function(e){return aD(e)?function(t){return iY(t,1===e.length?e[0]:e)}:e}):[oL];var r=-1;return t=tp(t,tP(nd())),function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(ri(e,function(e,i,n){return{criteria:tp(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,i){for(var r=-1,n=e.criteria,a=t.criteria,o=n.length,s=i.length;++r<o;){var c=rj(n[r],a[r]);if(c){if(r>=s)return c;return c*("desc"==i[r]?-1:1)}}return e.index-t.index}(e,t,i)})}function rc(e,t,i){for(var r=-1,n=t.length,a={};++r<n;){var o=t[r],s=iY(e,o);i(s,o)&&rf(a,rO(o,e),s)}return a}function rl(e,t,i,r){var n=r?tC:tx,a=-1,o=t.length,s=e;for(e===t&&(t=rq(t)),i&&(s=tp(e,tP(i)));++a<o;)for(var c=0,l=t[a],u=i?i(l):l;(c=n(s,u,c,r))>-1;)s!==e&&e2.call(s,c,1),e2.call(e,c,1);return e}function ru(e,t){for(var i=e?t.length:0,r=i-1;i--;){var n=t[i];if(i==r||n!==a){var a=n;nx(n)?e2.call(e,n,1):r_(e,n)}}return e}function rd(e,t){return e+tJ(t6()*(t-e+1))}function rh(e,t){var i="";if(!e||t<1||t>0x1fffffffffffff)return i;do t%2&&(i+=e),(t=tJ(t/2))&&(e+=e);while(t);return i}function rp(e,t){return nO(nS(e,t,oL),e+"")}function rf(e,t,r,n){if(!aF(e))return e;t=rO(t,e);for(var a=-1,o=t.length,s=o-1,c=e;null!=c&&++a<o;){var l=nL(t[a]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(a!=s){var d=c[l];(u=n?n(d,l,c):i)===i&&(u=aF(d)?d:nx(t[a+1])?[]:{})}iT(c,l,u),c=c[l]}return e}var rg=ia?function(e,t){return ia.set(e,t),e}:oL,rw=e9?function(e,t){return e9(e,"toString",{configurable:!0,enumerable:!1,value:oD(t),writable:!0})}:oL;function rm(e,t,i){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(i=i>n?n:i)<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var a=eb(n);++r<n;)a[r]=e[r+t];return a}function rb(e,t){var i;return iB(e,function(e,r,n){return!(i=t(e,r,n))}),!!i}function rv(e,t,i){var r=0,n=null==e?r:e.length;if("number"==typeof t&&t==t&&n<=0x7fffffff){for(;r<n;){var a=r+n>>>1,o=e[a];null!==o&&!aX(o)&&(i?o<=t:o<t)?r=a+1:n=a}return n}return ry(e,t,oL,i)}function ry(e,t,r,n){var a=0,o=null==e?0:e.length;if(0===o)return 0;t=r(t);for(var s=t!=t,c=null===t,l=aX(t),u=t===i;a<o;){var d=tJ((a+o)/2),h=r(e[d]),p=h!==i,f=null===h,g=h==h,w=aX(h);if(s)var m=n||g;else m=u?g&&(n||p):c?g&&p&&(n||!f):l?g&&p&&!f&&(n||!w):!f&&!w&&(n?h<=t:h<t);m?a=d+1:o=d}return t3(o,0xfffffffe)}function rx(e,t){for(var i=-1,r=e.length,n=0,a=[];++i<r;){var o=e[i],s=t?t(o):o;if(!i||!aP(s,c)){var c=s;a[n++]=0===o?0:o}}return a}function rC(e){return"number"==typeof e?e:aX(e)?s:+e}function rA(e){if("string"==typeof e)return e;if(aD(e))return tp(e,rA)+"";if(aX(e))return ig?ig.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}function rE(e,t,i){var r=-1,n=td,a=e.length,o=!0,s=[],c=s;if(i)o=!1,n=th;else if(a>=200){var l=t?null:r9(e);if(l)return tH(l);o=!1,n=tO,c=new iE}else c=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=i||0!==u?u:0,o&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),s.push(u)}else n(c,d,i)||(c!==s&&c.push(d),s.push(u))}return s}function r_(e,t){return t=rO(t,e),null==(e=nT(e,t))||delete e[nL(nY(t))]}function rk(e,t,i,r){return rf(e,t,i(iY(e,t)),r)}function rI(e,t,i,r){for(var n=e.length,a=r?n:-1;(r?a--:++a<n)&&t(e[a],a,e););return i?rm(e,r?0:a,r?a+1:n):rm(e,r?a+1:0,r?n:a)}function rS(e,t){var i=e;return i instanceof iy&&(i=i.value()),tg(t,function(e,t){return t.func.apply(t.thisArg,tf([e],t.args))},i)}function rT(e,t,i){var r=e.length;if(r<2)return r?rE(e[0]):[];for(var n=-1,a=eb(r);++n<r;)for(var o=e[n],s=-1;++s<r;)s!=n&&(a[n]=ij(a[n]||o,e[s],t,i));return rE(iF(a,1),t,i)}function rN(e,t,r){for(var n=-1,a=e.length,o=t.length,s={};++n<a;){var c=n<o?t[n]:i;r(s,e[n],c)}return s}function rP(e){return aL(e)?e:[]}function rR(e){return"function"==typeof e?e:oL}function rO(e,t){return aD(e)?e:nA(e,t)?[e]:n$(a7(e))}function rM(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:rm(e,t,r)}var rD=e7||function(e){return e5.clearTimeout(e)};function rU(e,t){if(t)return e.slice();var i=e.length,r=eq?eq(i):new e.constructor(i);return e.copy(r),r}function r$(e){var t=new e.constructor(e.byteLength);return new eW(t).set(new eW(e)),t}function rL(e,t){var i=t?r$(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function rj(e,t){if(e!==t){var r=e!==i,n=null===e,a=e==e,o=aX(e),s=t!==i,c=null===t,l=t==t,u=aX(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||n&&s&&l||!r&&l||!a)return 1;if(!n&&!o&&!u&&e<t||u&&r&&a&&!n&&!o||c&&r&&a||!s&&a||!l)return -1}return 0}function rB(e,t,i,r){for(var n=-1,a=e.length,o=i.length,s=-1,c=t.length,l=t2(a-o,0),u=eb(c+l),d=!r;++s<c;)u[s]=t[s];for(;++n<o;)(d||n<a)&&(u[i[n]]=e[n]);for(;l--;)u[s++]=e[n++];return u}function rW(e,t,i,r){for(var n=-1,a=e.length,o=-1,s=i.length,c=-1,l=t.length,u=t2(a-s,0),d=eb(u+l),h=!r;++n<u;)d[n]=e[n];for(var p=n;++c<l;)d[p+c]=t[c];for(;++o<s;)(h||n<a)&&(d[p+i[o]]=e[n++]);return d}function rq(e,t){var i=-1,r=e.length;for(t||(t=eb(r));++i<r;)t[i]=e[i];return t}function rH(e,t,r,n){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var c=t[o],l=n?n(r[c],e[c],c,r,e):i;l===i&&(l=e[c]),a?iO(r,c,l):iT(r,c,l)}return r}function rz(e,t){return function(i,r){var n=aD(i)?ts:iP,a=t?t():{};return n(i,e,nd(r,2),a)}}function rF(e){return rp(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:i,s=a>2?r[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&nC(r[0],r[1],s)&&(o=a<3?i:o,a=1),t=eA(t);++n<a;){var c=r[n];c&&e(t,c,n,o)}return t})}function rZ(e,t){return function(i,r){if(null==i)return i;if(!a$(i))return e(i,r);for(var n=i.length,a=t?n:-1,o=eA(i);(t?a--:++a<n)&&!1!==r(o[a],a,o););return i}}function rV(e){return function(t,i,r){for(var n=-1,a=eA(t),o=r(t),s=o.length;s--;){var c=o[e?s:++n];if(!1===i(a[c],c,a))break}return t}}function rK(e){return function(t){var r=tj(t=a7(t))?tF(t):i,n=r?r[0]:t.charAt(0),a=r?rM(r,1).join(""):t.slice(1);return n[e]()+a}}function rG(e){return function(t){return tg(oR(oE(t).replace(eH,"")),e,"")}}function rJ(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=im(e.prototype),r=e.apply(i,t);return aF(r)?r:i}}function rY(e){return function(t,r,n){var a=eA(t);if(!a$(t)){var o=nd(r,3);t=oh(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,n);return s>-1?a[o?t[s]:s]:i}}function rQ(e){return na(function(t){var n=t.length,a=n,o=iv.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new ek(r);if(o&&!c&&"wrapper"==nl(s))var c=new iv([],!0)}for(a=c?a:n;++a<n;){var l=nl(s=t[a]),u="wrapper"==l?nc(s):i;c=u&&nE(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[nl(u[0])].apply(c,u[3]):1==s.length&&nE(s)?c[l]():c.thru(s)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&aD(i))return c.plant(i).value();for(var r=0,a=n?t[r].apply(this,e):i;++r<n;)a=t[r].call(this,a);return a}})}function rX(e,t,r,n,a,o,s,c,l,u){var d=128&t,h=1&t,p=2&t,f=24&t,g=512&t,w=p?i:rJ(e);return function m(){for(var b=arguments.length,v=eb(b),y=b;y--;)v[y]=arguments[y];if(f)var x=nu(m),C=function(e,t){for(var i=e.length,r=0;i--;)e[i]===t&&++r;return r}(v,x);if(n&&(v=rB(v,n,a,f)),o&&(v=rW(v,o,s,f)),b-=C,f&&b<u){var A=tq(v,x);return r6(e,t,rX,m.placeholder,r,v,A,c,l,u-b)}var E=h?r:this,_=p?E[e]:e;return b=v.length,c?v=function(e,t){for(var r=e.length,n=t3(t.length,r),a=rq(e);n--;){var o=t[n];e[n]=nx(o,r)?a[o]:i}return e}(v,c):g&&b>1&&v.reverse(),d&&l<b&&(v.length=l),this&&this!==e5&&this instanceof m&&(_=w||rJ(_)),_.apply(E,v)}}function r0(e,t){return function(i,r){var n,a;return n=t(r),a={},iK(i,function(t,i,r){e(a,n(t),i,r)}),a}}function r1(e,t){return function(r,n){var a;if(r===i&&n===i)return t;if(r!==i&&(a=r),n!==i){if(a===i)return n;"string"==typeof r||"string"==typeof n?(r=rA(r),n=rA(n)):(r=rC(r),n=rC(n)),a=e(r,n)}return a}}function r2(e){return na(function(t){return t=tp(t,tP(nd())),rp(function(i){var r=this;return e(t,function(e){return to(e,r,i)})})})}function r3(e,t){var r=(t=t===i?" ":rA(t)).length;if(r<2)return r?rh(t,e):t;var n=rh(t,tG(e/tz(t)));return tj(t)?rM(tF(n),0,e).join(""):n.slice(0,e)}function r5(e){return function(t,r,n){return n&&"number"!=typeof n&&nC(t,r,n)&&(r=n=i),t=a5(t),r===i?(r=t,t=0):r=a5(r),n=n===i?t<r?1:-1:a5(n),function(e,t,i,r){for(var n=-1,a=t2(tG((t-e)/(i||1)),0),o=eb(a);a--;)o[r?a:++n]=e,e+=i;return o}(t,r,n,e)}}function r4(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=a8(t),i=a8(i)),e(t,i)}}function r6(e,t,r,n,a,o,s,c,l,u){var d=8&t,h=d?s:i,p=d?i:s,f=d?o:i,g=d?i:o;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var w=[e,t,a,f,h,g,p,c,l,u],m=r.apply(i,w);return nE(e)&&nP(m,w),m.placeholder=n,nM(m,e,t)}function r8(e){var t=eC[e];return function(e,i){if(e=a8(e),(i=null==i?0:t3(a4(i),292))&&tX(e)){var r=(a7(e)+"e").split("e");return+((r=(a7(t(r[0]+"e"+(+r[1]+i)))+"e").split("e"))[0]+"e"+(+r[1]-i))}return t(e)}}var r9=it&&1/tH(new it([,-0]))[1]==o?function(e){return new it(e)}:oH;function r7(e){return function(t){var i,r,n=nm(t);return n==w?tB(t):n==x?(i=-1,r=Array(t.size),t.forEach(function(e){r[++i]=[e,e]}),r):tp(e(t),function(e){return[e,t[e]]})}}function ne(e,t,n,o,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ek(r);var h=o?o.length:0;if(h||(t&=-97,o=s=i),l=l===i?l:t2(a4(l),0),u=u===i?u:a4(u),h-=s?s.length:0,64&t){var p=o,f=s;o=s=i}var g=d?i:nc(e),w=[e,t,n,o,s,p,f,c,l,u];if(g&&function(e,t){var i=e[1],r=t[1],n=i|r,o=n<131,s=128==r&&8==i||128==r&&256==i&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==i;if(o||s){1&r&&(e[2]=t[2],n|=1&i?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?rB(l,c,t[4]):c,e[4]=l?tq(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?rW(l,c,t[6]):c,e[6]=l?tq(e[5],a):t[6]),(c=t[7])&&(e[7]=c),128&r&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=n}}(w,g),e=w[0],t=w[1],n=w[2],o=w[3],s=w[4],(u=w[9]=w[9]===i?d?0:e.length:t2(w[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(m=e,b=t,v=u,y=rJ(m),R=function e(){for(var t=arguments.length,r=eb(t),n=t,a=nu(e);n--;)r[n]=arguments[n];var o=t<3&&r[0]!==a&&r[t-1]!==a?[]:tq(r,a);return(t-=o.length)<v?r6(m,b,rX,e.placeholder,i,r,o,i,i,v-t):to(this&&this!==e5&&this instanceof e?y:m,this,r)}):32!=t&&33!=t||s.length?R=rX.apply(i,w):(x=e,C=t,A=n,E=o,_=1&C,k=rJ(x),R=function e(){for(var t=-1,i=arguments.length,r=-1,n=E.length,a=eb(n+i),o=this&&this!==e5&&this instanceof e?k:x;++r<n;)a[r]=E[r];for(;i--;)a[r++]=arguments[++t];return to(o,_?A:this,a)});else var m,b,v,y,x,C,A,E,_,k,I,S,T,N,P,R=(I=e,S=t,T=n,N=1&S,P=rJ(I),function e(){return(this&&this!==e5&&this instanceof e?P:I).apply(N?T:this,arguments)});return nM((g?rg:nP)(R,w),e,t)}function nt(e,t,r,n){return e===i||aP(e,eT[r])&&!eR.call(n,r)?t:e}function ni(e,t,r,n,a,o){return aF(e)&&aF(t)&&(o.set(t,e),ra(e,t,i,ni,o),o.delete(t)),e}function nr(e){return aG(e)?i:e}function nn(e,t,r,n,a,o){var s=1&r,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=2&r?new iE:i;for(o.set(e,t),o.set(t,e);++h<c;){var g=e[h],w=t[h];if(n)var m=s?n(w,g,h,t,e,o):n(g,w,h,e,t,o);if(m!==i){if(m)continue;p=!1;break}if(f){if(!tm(t,function(e,t){if(!tO(f,t)&&(g===e||a(g,e,r,n,o)))return f.push(t)})){p=!1;break}}else if(!(g===w||a(g,w,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function na(e){return nO(nS(e,i,nZ),e+"")}function no(e){return iQ(e,oh,ng)}function ns(e){return iQ(e,op,nw)}var nc=ia?function(e){return ia.get(e)}:oH;function nl(e){for(var t=e.name+"",i=io[t],r=eR.call(io,t)?i.length:0;r--;){var n=i[r],a=n.func;if(null==a||a==e)return n.name}return t}function nu(e){return(eR.call(iw,"placeholder")?iw:e).placeholder}function nd(){var e=iw.iteratee||oj;return e=e===oj?i7:e,arguments.length?e(arguments[0],arguments[1]):e}function nh(e,t){var i,r=e.__data__;return("string"==(i=typeof t)||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function np(e){for(var t=oh(e),i=t.length;i--;){var r=t[i],n=e[r];t[i]=[r,n,n==n&&!aF(n)]}return t}function nf(e,t){var r=null==e?i:e[t];return i9(r)?r:i}var ng=tY?function(e){return null==e?[]:tu(tY(e=eA(e)),function(t){return eX.call(e,t)})}:oJ,nw=tY?function(e){for(var t=[];e;)tf(t,ng(e)),e=eF(e);return t}:oJ,nm=iX;function nb(e,t,i){t=rO(t,e);for(var r=-1,n=t.length,a=!1;++r<n;){var o=nL(t[r]);if(!(a=null!=e&&i(e,o)))break;e=e[o]}return a||++r!=n?a:!!(n=null==e?0:e.length)&&az(n)&&nx(o,n)&&(aD(e)||aM(e))}function nv(e){return"function"!=typeof e.constructor||nk(e)?{}:im(eF(e))}function ny(e){return aD(e)||aM(e)||!!(e3&&e&&e[e3])}function nx(e,t){var i=typeof e;return!!(t=t??0x1fffffffffffff)&&("number"==i||"symbol"!=i&&ed.test(e))&&e>-1&&e%1==0&&e<t}function nC(e,t,i){if(!aF(i))return!1;var r=typeof t;return("number"==r?!!(a$(i)&&nx(t,i.length)):"string"==r&&t in i)&&aP(i[t],e)}function nA(e,t){if(aD(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||aX(e))||V.test(e)||!Z.test(e)||null!=t&&e in eA(t)}function nE(e){var t=nl(e),i=iw[t];if("function"!=typeof i||!(t in iy.prototype))return!1;if(e===i)return!0;var r=nc(i);return!!r&&e===r[0]}(t9&&nm(new t9(new ArrayBuffer(1)))!=k||t7&&nm(new t7)!=w||ie&&nm(ie.resolve())!=v||it&&nm(new it)!=x||ii&&nm(new ii)!=E)&&(nm=function(e){var t=iX(e),r=t==b?e.constructor:i,n=r?nj(r):"";if(n)switch(n){case is:return k;case ic:return w;case il:return v;case iu:return x;case id:return E}return t});var n_=eN?aq:oY;function nk(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eT)}function nI(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in eA(r))}}function nS(e,t,r){return t=t2(t===i?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=t2(i.length-t,0),o=eb(a);++n<a;)o[n]=i[t+n];n=-1;for(var s=eb(t+1);++n<t;)s[n]=i[n];return s[t]=r(o),to(e,this,s)}}function nT(e,t){return t.length<2?e:iY(e,rm(t,0,-1))}function nN(e,t){if(!("constructor"===t&&"function"==typeof e[t])&&"__proto__"!=t)return e[t]}var nP=nD(rg),nR=tk||function(e,t){return e5.setTimeout(e,t)},nO=nD(rw);function nM(e,t,i){var r,n,a=t+"";return nO(e,function(e,t){var i=t.length;if(!i)return e;var r=i-1;return t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),e.replace(X,`{
  2. /* [wrapped with `+t+`] */
  3. `)}(a,(r=(n=a.match(ee))?n[1].split(et):[],tc(c,function(e){var t="_."+e[0];i&e[1]&&!td(r,t)&&r.push(t)}),r.sort())))}function nD(e){var t=0,r=0;return function(){var n=t5(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function nU(e,t){var r=-1,n=e.length,a=n-1;for(t=t===i?n:t;++r<t;){var o=rd(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var n$=(ew=(eg=a_(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K,function(e,i,r,n){t.push(r?n.replace(en,"$1"):i||e)}),t},function(e){return 500===ew.size&&ew.clear(),e})).cache,eg);function nL(e){if("string"==typeof e||aX(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function nj(e){if(null!=e){try{return eP.call(e)}catch{}try{return e+""}catch{}}return""}function nB(e){if(e instanceof iy)return e.clone();var t=new iv(e.__wrapped__,e.__chain__);return t.__actions__=rq(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var nW=rp(function(e,t){return aL(e)?ij(e,iF(t,1,aL,!0)):[]}),nq=rp(function(e,t){var r=nY(t);return aL(r)&&(r=i),aL(e)?ij(e,iF(t,1,aL,!0),nd(r,2)):[]}),nH=rp(function(e,t){var r=nY(t);return aL(r)&&(r=i),aL(e)?ij(e,iF(t,1,aL,!0),i,r):[]});function nz(e,t,i){var r=null==e?0:e.length;if(!r)return -1;var n=null==i?0:a4(i);return n<0&&(n=t2(r+n,0)),ty(e,nd(t,3),n)}function nF(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var a=n-1;return r!==i&&(a=a4(r),a=r<0?t2(n+a,0):t3(a,n-1)),ty(e,nd(t,3),a,!0)}function nZ(e){return(null==e?0:e.length)?iF(e,1):[]}function nV(e){return e&&e.length?e[0]:i}var nK=rp(function(e){var t=tp(e,rP);return t.length&&t[0]===e[0]?i3(t):[]}),nG=rp(function(e){var t=nY(e),r=tp(e,rP);return t===nY(r)?t=i:r.pop(),r.length&&r[0]===e[0]?i3(r,nd(t,2)):[]}),nJ=rp(function(e){var t=nY(e),r=tp(e,rP);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?i3(r,i,t):[]});function nY(e){var t=null==e?0:e.length;return t?e[t-1]:i}var nQ=rp(nX);function nX(e,t){return e&&e.length&&t&&t.length?rl(e,t):e}var n0=na(function(e,t){var i=null==e?0:e.length,r=iM(e,t);return ru(e,tp(t,function(e){return nx(e,i)?+e:e}).sort(rj)),r});function n1(e){return null==e?e:t8.call(e)}var n2=rp(function(e){return rE(iF(e,1,aL,!0))}),n3=rp(function(e){var t=nY(e);return aL(t)&&(t=i),rE(iF(e,1,aL,!0),nd(t,2))}),n5=rp(function(e){var t=nY(e);return t="function"==typeof t?t:i,rE(iF(e,1,aL,!0),i,t)});function n4(e){if(!(e&&e.length))return[];var t=0;return e=tu(e,function(e){if(aL(e))return t=t2(e.length,t),!0}),tT(t,function(t){return tp(e,t_(t))})}function n6(e,t){if(!(e&&e.length))return[];var r=n4(e);return null==t?r:tp(r,function(e){return to(t,i,e)})}var n8=rp(function(e,t){return aL(e)?ij(e,t):[]}),n9=rp(function(e){return rT(tu(e,aL))}),n7=rp(function(e){var t=nY(e);return aL(t)&&(t=i),rT(tu(e,aL),nd(t,2))}),ae=rp(function(e){var t=nY(e);return t="function"==typeof t?t:i,rT(tu(e,aL),i,t)}),at=rp(n4),ai=rp(function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,n6(e,r)});function ar(e){var t=iw(e);return t.__chain__=!0,t}function an(e,t){return t(e)}var aa=na(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,a=function(t){return iM(t,e)};return!(t>1)&&!this.__actions__.length&&n instanceof iy&&nx(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:an,args:[a],thisArg:i}),new iv(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)}),ao=rz(function(e,t,i){eR.call(e,i)?++e[i]:iO(e,i,1)}),as=rY(nz),ac=rY(nF);function al(e,t){return(aD(e)?tc:iB)(e,nd(t,3))}function au(e,t){return(aD(e)?function(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}:iW)(e,nd(t,3))}var ad=rz(function(e,t,i){eR.call(e,i)?e[i].push(t):iO(e,i,[t])}),ah=rp(function(e,t,i){var r=-1,n="function"==typeof t,a=a$(e)?eb(e.length):[];return iB(e,function(e){a[++r]=n?to(t,e,i):i5(e,t,i)}),a}),ap=rz(function(e,t,i){iO(e,i,t)});function af(e,t){return(aD(e)?tp:ri)(e,nd(t,3))}var ag=rz(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),aw=rp(function(e,t){if(null==e)return[];var i=t.length;return i>1&&nC(e,t[0],t[1])?t=[]:i>2&&nC(t[0],t[1],t[2])&&(t=[t[0]]),rs(e,iF(t,1),[])}),am=tb||function(){return e5.Date.now()};function ab(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,ne(e,128,i,i,i,i,t)}function av(e,t){var n;if("function"!=typeof t)throw new ek(r);return e=a4(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ay=rp(function(e,t,i){var r=1;if(i.length){var n=tq(i,nu(ay));r|=32}return ne(e,r,t,i,n)}),ax=rp(function(e,t,i){var r=3;if(i.length){var n=tq(i,nu(ax));r|=32}return ne(t,r,e,i,n)});function aC(e,t,n){var a,o,s,c,l,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new ek(r);function g(t){var r=a,n=o;return a=o=i,d=t,c=e.apply(n,r)}function w(e){var r=e-u,n=e-d;return u===i||r>=t||r<0||p&&n>=s}function m(){var e,i,r,n=am();if(w(n))return b(n);l=nR(m,(e=n-u,i=n-d,r=t-e,p?t3(r,s-i):r))}function b(e){return l=i,f&&a?g(e):(a=o=i,c)}function v(){var e,r=am(),n=w(r);if(a=arguments,o=this,u=r,n){if(l===i)return d=e=u,l=nR(m,t),h?g(e):c;if(p)return rD(l),l=nR(m,t),g(u)}return l===i&&(l=nR(m,t)),c}return t=a8(t)||0,aF(n)&&(h=!!n.leading,s=(p="maxWait"in n)?t2(a8(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),v.cancel=function(){l!==i&&rD(l),d=0,a=u=o=l=i},v.flush=function(){return l===i?c:b(am())},v}var aA=rp(function(e,t){return iL(e,1,t)}),aE=rp(function(e,t,i){return iL(e,a8(t)||0,i)});function a_(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ek(r);var i=function(){var r=arguments,n=t?t.apply(this,r):r[0],a=i.cache;if(a.has(n))return a.get(n);var o=e.apply(this,r);return i.cache=a.set(n,o)||a,o};return i.cache=new(a_.Cache||iA),i}function ak(e){if("function"!=typeof e)throw new ek(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}a_.Cache=iA;var aI=rp(function(e,t){var i=(t=1==t.length&&aD(t[0])?tp(t[0],tP(nd())):tp(iF(t,1),tP(nd()))).length;return rp(function(r){for(var n=-1,a=t3(r.length,i);++n<a;)r[n]=t[n].call(this,r[n]);return to(e,this,r)})}),aS=rp(function(e,t){var r=tq(t,nu(aS));return ne(e,32,i,t,r)}),aT=rp(function(e,t){var r=tq(t,nu(aT));return ne(e,64,i,t,r)}),aN=na(function(e,t){return ne(e,256,i,i,i,t)});function aP(e,t){return e===t||e!=e&&t!=t}var aR=r4(i0),aO=r4(function(e,t){return e>=t}),aM=i4(function(){return arguments}())?i4:function(e){return aZ(e)&&eR.call(e,"callee")&&!eX.call(e,"callee")},aD=eb.isArray,aU=te?tP(te):function(e){return aZ(e)&&iX(e)==_};function a$(e){return null!=e&&az(e.length)&&!aq(e)}function aL(e){return aZ(e)&&a$(e)}var aj=tQ||oY,aB=tt?tP(tt):function(e){return aZ(e)&&iX(e)==h};function aW(e){if(!aZ(e))return!1;var t=iX(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aG(e)}function aq(e){if(!aF(e))return!1;var t=iX(e);return t==f||t==g||"[object AsyncFunction]"==t||"[object Proxy]"==t}function aH(e){return"number"==typeof e&&e==a4(e)}function az(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function aF(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function aZ(e){return null!=e&&"object"==typeof e}var aV=ti?tP(ti):function(e){return aZ(e)&&nm(e)==w};function aK(e){return"number"==typeof e||aZ(e)&&iX(e)==m}function aG(e){if(!aZ(e)||iX(e)!=b)return!1;var t=eF(e);if(null===t)return!0;var i=eR.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&eP.call(i)==eU}var aJ=tr?tP(tr):function(e){return aZ(e)&&iX(e)==y},aY=tn?tP(tn):function(e){return aZ(e)&&nm(e)==x};function aQ(e){return"string"==typeof e||!aD(e)&&aZ(e)&&iX(e)==C}function aX(e){return"symbol"==typeof e||aZ(e)&&iX(e)==A}var a0=ta?tP(ta):function(e){return aZ(e)&&az(e.length)&&!!eY[iX(e)]},a1=r4(rt),a2=r4(function(e,t){return e<=t});function a3(e){if(!e)return[];if(a$(e))return aQ(e)?tF(e):rq(e);if(e4&&e[e4])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[e4]());var t=nm(e);return(t==w?tB:t==x?tH:ox)(e)}function a5(e){return e?(e=a8(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function a4(e){var t=a5(e),i=t%1;return t==t?i?t-i:t:0}function a6(e){return e?iD(a4(e),0,0xffffffff):0}function a8(e){if("number"==typeof e)return e;if(aX(e))return s;if(aF(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=aF(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tN(e);var i=ec.test(e);return i||eu.test(e)?e1(e.slice(2),i?2:8):es.test(e)?s:+e}function a9(e){return rH(e,op(e))}function a7(e){return null==e?"":rA(e)}var oe=rF(function(e,t){if(nk(t)||a$(t)){rH(t,oh(t),e);return}for(var i in t)eR.call(t,i)&&iT(e,i,t[i])}),ot=rF(function(e,t){rH(t,op(t),e)}),oi=rF(function(e,t,i,r){rH(t,op(t),e,r)}),or=rF(function(e,t,i,r){rH(t,oh(t),e,r)}),on=na(iM),oa=rp(function(e,t){e=eA(e);var r=-1,n=t.length,a=n>2?t[2]:i;for(a&&nC(t[0],t[1],a)&&(n=1);++r<n;)for(var o=t[r],s=op(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===i||aP(d,eT[u])&&!eR.call(e,u))&&(e[u]=o[u])}return e}),oo=rp(function(e){return e.push(i,ni),to(og,i,e)});function os(e,t,r){var n=null==e?i:iY(e,t);return n===i?r:n}function oc(e,t){return null!=e&&nb(e,t,i2)}var ol=r0(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=eD.call(t)),e[t]=i},oD(oL)),ou=r0(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=eD.call(t)),eR.call(e,t)?e[t].push(i):e[t]=[i]},nd),od=rp(i5);function oh(e){return a$(e)?ik(e):re(e)}function op(e){return a$(e)?ik(e,!0):function(e){if(!aF(e))return function(e){var t=[];if(null!=e)for(var i in eA(e))t.push(i);return t}(e);var t=nk(e),i=[];for(var r in e)"constructor"==r&&(t||!eR.call(e,r))||i.push(r);return i}(e)}var of=rF(function(e,t,i){ra(e,t,i)}),og=rF(function(e,t,i,r){ra(e,t,i,r)}),ow=na(function(e,t){var i={};if(null==e)return i;var r=!1;t=tp(t,function(t){return t=rO(t,e),r||(r=t.length>1),t}),rH(e,ns(e),i),r&&(i=iU(i,7,nr));for(var n=t.length;n--;)r_(i,t[n]);return i}),om=na(function(e,t){return null==e?{}:rc(e,t,function(t,i){return oc(e,i)})});function ob(e,t){if(null==e)return{};var i=tp(ns(e),function(e){return[e]});return t=nd(t),rc(e,i,function(e,i){return t(e,i[0])})}var ov=r7(oh),oy=r7(op);function ox(e){return null==e?[]:tR(e,oh(e))}var oC=rG(function(e,t,i){return t=t.toLowerCase(),e+(i?oA(t):t)});function oA(e){return oP(a7(e).toLowerCase())}function oE(e){return(e=a7(e))&&e.replace(eh,tU).replace(ez,"")}var o_=rG(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),ok=rG(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),oI=rK("toLowerCase"),oS=rG(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),oT=rG(function(e,t,i){return e+(i?" ":"")+oP(t)}),oN=rG(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),oP=rK("toUpperCase");function oR(e,t,r){var n;return e=a7(e),(t=r?i:t)===i?(n=e,eK.test(n))?e.match(eZ)||[]:e.match(ei)||[]:e.match(t)||[]}var oO=rp(function(e,t){try{return to(e,i,t)}catch(e){return aW(e)?e:new ey(e)}}),oM=na(function(e,t){return tc(t,function(t){iO(e,t=nL(t),ay(e[t],e))}),e});function oD(e){return function(){return e}}var oU=rQ(),o$=rQ(!0);function oL(e){return e}function oj(e){return i7("function"==typeof e?e:iU(e,1))}var oB=rp(function(e,t){return function(i){return i5(i,e,t)}}),oW=rp(function(e,t){return function(i){return i5(e,i,t)}});function oq(e,t,i){var r=oh(t),n=iJ(t,r);null!=i||aF(t)&&(n.length||!r.length)||(i=t,t=e,e=this,n=iJ(t,oh(t)));var a=!(aF(i)&&"chain"in i)||!!i.chain,o=aq(e);return tc(n,function(i){var r=t[i];e[i]=r,o&&(e.prototype[i]=function(){var t=this.__chain__;if(a||t){var i=e(this.__wrapped__);return(i.__actions__=rq(this.__actions__)).push({func:r,args:arguments,thisArg:e}),i.__chain__=t,i}return r.apply(e,tf([this.value()],arguments))})}),e}function oH(){}var oz=r2(tp),oF=r2(tl),oZ=r2(tm);function oV(e){return nA(e)?t_(nL(e)):function(t){return iY(t,e)}}var oK=r5(),oG=r5(!0);function oJ(){return[]}function oY(){return!1}var oQ=r1(function(e,t){return e+t},0),oX=r8("ceil"),o0=r1(function(e,t){return e/t},1),o1=r8("floor"),o2=r1(function(e,t){return e*t},1),o3=r8("round"),o5=r1(function(e,t){return e-t},0);return iw.after=function(e,t){if("function"!=typeof t)throw new ek(r);return e=a4(e),function(){if(--e<1)return t.apply(this,arguments)}},iw.ary=ab,iw.assign=oe,iw.assignIn=ot,iw.assignInWith=oi,iw.assignWith=or,iw.at=on,iw.before=av,iw.bind=ay,iw.bindAll=oM,iw.bindKey=ax,iw.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return aD(e)?e:[e]},iw.chain=ar,iw.chunk=function(e,t,r){t=(r?nC(e,t,r):t===i)?1:t2(a4(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,o=0,s=eb(tG(n/t));a<n;)s[o++]=rm(e,a,a+=t);return s},iw.compact=function(e){for(var t=-1,i=null==e?0:e.length,r=0,n=[];++t<i;){var a=e[t];a&&(n[r++]=a)}return n},iw.concat=function(){var e=arguments.length;if(!e)return[];for(var t=eb(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return tf(aD(i)?rq(i):[i],iF(t,1))},iw.cond=function(e){var t=null==e?0:e.length,i=nd();return e=t?tp(e,function(e){if("function"!=typeof e[1])throw new ek(r);return[i(e[0]),e[1]]}):[],rp(function(i){for(var r=-1;++r<t;){var n=e[r];if(to(n[0],this,i))return to(n[1],this,i)}})},iw.conforms=function(e){var t,i;return i=oh(t=iU(e,1)),function(e){return i$(e,t,i)}},iw.constant=oD,iw.countBy=ao,iw.create=function(e,t){var i=im(e);return null==t?i:iR(i,t)},iw.curry=function e(t,r,n){r=n?i:r;var a=ne(t,8,i,i,i,i,i,r);return a.placeholder=e.placeholder,a},iw.curryRight=function e(t,r,n){r=n?i:r;var a=ne(t,16,i,i,i,i,i,r);return a.placeholder=e.placeholder,a},iw.debounce=aC,iw.defaults=oa,iw.defaultsDeep=oo,iw.defer=aA,iw.delay=aE,iw.difference=nW,iw.differenceBy=nq,iw.differenceWith=nH,iw.drop=function(e,t,r){var n=null==e?0:e.length;return n?rm(e,(t=r||t===i?1:a4(t))<0?0:t,n):[]},iw.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?rm(e,0,(t=n-(t=r||t===i?1:a4(t)))<0?0:t):[]},iw.dropRightWhile=function(e,t){return e&&e.length?rI(e,nd(t,3),!0,!0):[]},iw.dropWhile=function(e,t){return e&&e.length?rI(e,nd(t,3),!0):[]},iw.fill=function(e,t,r,n){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&nC(e,t,r)&&(r=0,n=a),function(e,t,r,n){var a=e.length;for((r=a4(r))<0&&(r=-r>a?0:a+r),(n=n===i||n>a?a:a4(n))<0&&(n+=a),n=r>n?0:a6(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},iw.filter=function(e,t){return(aD(e)?tu:iz)(e,nd(t,3))},iw.flatMap=function(e,t){return iF(af(e,t),1)},iw.flatMapDeep=function(e,t){return iF(af(e,t),o)},iw.flatMapDepth=function(e,t,r){return r=r===i?1:a4(r),iF(af(e,t),r)},iw.flatten=nZ,iw.flattenDeep=function(e){return(null==e?0:e.length)?iF(e,o):[]},iw.flattenDepth=function(e,t){return(null==e?0:e.length)?iF(e,t=t===i?1:a4(t)):[]},iw.flip=function(e){return ne(e,512)},iw.flow=oU,iw.flowRight=o$,iw.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,r={};++t<i;){var n=e[t];r[n[0]]=n[1]}return r},iw.functions=function(e){return null==e?[]:iJ(e,oh(e))},iw.functionsIn=function(e){return null==e?[]:iJ(e,op(e))},iw.groupBy=ad,iw.initial=function(e){return(null==e?0:e.length)?rm(e,0,-1):[]},iw.intersection=nK,iw.intersectionBy=nG,iw.intersectionWith=nJ,iw.invert=ol,iw.invertBy=ou,iw.invokeMap=ah,iw.iteratee=oj,iw.keyBy=ap,iw.keys=oh,iw.keysIn=op,iw.map=af,iw.mapKeys=function(e,t){var i={};return t=nd(t,3),iK(e,function(e,r,n){iO(i,t(e,r,n),e)}),i},iw.mapValues=function(e,t){var i={};return t=nd(t,3),iK(e,function(e,r,n){iO(i,r,t(e,r,n))}),i},iw.matches=function(e){return rr(iU(e,1))},iw.matchesProperty=function(e,t){return rn(e,iU(t,1))},iw.memoize=a_,iw.merge=of,iw.mergeWith=og,iw.method=oB,iw.methodOf=oW,iw.mixin=oq,iw.negate=ak,iw.nthArg=function(e){return e=a4(e),rp(function(t){return ro(t,e)})},iw.omit=ow,iw.omitBy=function(e,t){return ob(e,ak(nd(t)))},iw.once=function(e){return av(2,e)},iw.orderBy=function(e,t,r,n){return null==e?[]:(aD(t)||(t=null==t?[]:[t]),aD(r=n?i:r)||(r=null==r?[]:[r]),rs(e,t,r))},iw.over=oz,iw.overArgs=aI,iw.overEvery=oF,iw.overSome=oZ,iw.partial=aS,iw.partialRight=aT,iw.partition=ag,iw.pick=om,iw.pickBy=ob,iw.property=oV,iw.propertyOf=function(e){return function(t){return null==e?i:iY(e,t)}},iw.pull=nQ,iw.pullAll=nX,iw.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?rl(e,t,nd(i,2)):e},iw.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?rl(e,t,i,r):e},iw.pullAt=n0,iw.range=oK,iw.rangeRight=oG,iw.rearg=aN,iw.reject=function(e,t){return(aD(e)?tu:iz)(e,ak(nd(t,3)))},iw.remove=function(e,t){var i=[];if(!(e&&e.length))return i;var r=-1,n=[],a=e.length;for(t=nd(t,3);++r<a;){var o=e[r];t(o,r,e)&&(i.push(o),n.push(r))}return ru(e,n),i},iw.rest=function(e,t){if("function"!=typeof e)throw new ek(r);return rp(e,t=t===i?t:a4(t))},iw.reverse=n1,iw.sampleSize=function(e,t,r){return t=(r?nC(e,t,r):t===i)?1:a4(t),(aD(e)?function(e,t){return nU(rq(e),iD(t,0,e.length))}:function(e,t){var i=ox(e);return nU(i,iD(t,0,i.length))})(e,t)},iw.set=function(e,t,i){return null==e?e:rf(e,t,i)},iw.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:rf(e,t,r,n)},iw.shuffle=function(e){return(aD(e)?function(e){return nU(rq(e))}:function(e){return nU(ox(e))})(e)},iw.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&nC(e,t,r)?(t=0,r=n):(t=null==t?0:a4(t),r=r===i?n:a4(r)),rm(e,t,r)):[]},iw.sortBy=aw,iw.sortedUniq=function(e){return e&&e.length?rx(e):[]},iw.sortedUniqBy=function(e,t){return e&&e.length?rx(e,nd(t,2)):[]},iw.split=function(e,t,r){return r&&"number"!=typeof r&&nC(e,t,r)&&(t=r=i),(r=r===i?0xffffffff:r>>>0)?(e=a7(e))&&("string"==typeof t||null!=t&&!aJ(t))&&!(t=rA(t))&&tj(e)?rM(tF(e),0,r):e.split(t,r):[]},iw.spread=function(e,t){if("function"!=typeof e)throw new ek(r);return t=null==t?0:t2(a4(t),0),rp(function(i){var r=i[t],n=rM(i,0,t);return r&&tf(n,r),to(e,this,n)})},iw.tail=function(e){var t=null==e?0:e.length;return t?rm(e,1,t):[]},iw.take=function(e,t,r){return e&&e.length?rm(e,0,(t=r||t===i?1:a4(t))<0?0:t):[]},iw.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?rm(e,(t=n-(t=r||t===i?1:a4(t)))<0?0:t,n):[]},iw.takeRightWhile=function(e,t){return e&&e.length?rI(e,nd(t,3),!1,!0):[]},iw.takeWhile=function(e,t){return e&&e.length?rI(e,nd(t,3)):[]},iw.tap=function(e,t){return t(e),e},iw.throttle=function(e,t,i){var n=!0,a=!0;if("function"!=typeof e)throw new ek(r);return aF(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),aC(e,t,{leading:n,maxWait:t,trailing:a})},iw.thru=an,iw.toArray=a3,iw.toPairs=ov,iw.toPairsIn=oy,iw.toPath=function(e){return aD(e)?tp(e,nL):aX(e)?[e]:rq(n$(a7(e)))},iw.toPlainObject=a9,iw.transform=function(e,t,i){var r=aD(e),n=r||aj(e)||a0(e);if(t=nd(t,4),null==i){var a=e&&e.constructor;i=n?r?new a:[]:aF(e)&&aq(a)?im(eF(e)):{}}return(n?tc:iK)(e,function(e,r,n){return t(i,e,r,n)}),i},iw.unary=function(e){return ab(e,1)},iw.union=n2,iw.unionBy=n3,iw.unionWith=n5,iw.uniq=function(e){return e&&e.length?rE(e):[]},iw.uniqBy=function(e,t){return e&&e.length?rE(e,nd(t,2)):[]},iw.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?rE(e,i,t):[]},iw.unset=function(e,t){return null==e||r_(e,t)},iw.unzip=n4,iw.unzipWith=n6,iw.update=function(e,t,i){return null==e?e:rk(e,t,rR(i))},iw.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:rk(e,t,rR(r),n)},iw.values=ox,iw.valuesIn=function(e){return null==e?[]:tR(e,op(e))},iw.without=n8,iw.words=oR,iw.wrap=function(e,t){return aS(rR(t),e)},iw.xor=n9,iw.xorBy=n7,iw.xorWith=ae,iw.zip=at,iw.zipObject=function(e,t){return rN(e||[],t||[],iT)},iw.zipObjectDeep=function(e,t){return rN(e||[],t||[],rf)},iw.zipWith=ai,iw.entries=ov,iw.entriesIn=oy,iw.extend=ot,iw.extendWith=oi,oq(iw,iw),iw.add=oQ,iw.attempt=oO,iw.camelCase=oC,iw.capitalize=oA,iw.ceil=oX,iw.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=a8(r))==r?r:0),t!==i&&(t=(t=a8(t))==t?t:0),iD(a8(e),t,r)},iw.clone=function(e){return iU(e,4)},iw.cloneDeep=function(e){return iU(e,5)},iw.cloneDeepWith=function(e,t){return iU(e,5,t="function"==typeof t?t:i)},iw.cloneWith=function(e,t){return iU(e,4,t="function"==typeof t?t:i)},iw.conformsTo=function(e,t){return null==t||i$(e,t,oh(t))},iw.deburr=oE,iw.defaultTo=function(e,t){return null==e||e!=e?t:e},iw.divide=o0,iw.endsWith=function(e,t,r){e=a7(e),t=rA(t);var n=e.length,a=r=r===i?n:iD(a4(r),0,n);return(r-=t.length)>=0&&e.slice(r,a)==t},iw.eq=aP,iw.escape=function(e){return(e=a7(e))&&q.test(e)?e.replace(B,t$):e},iw.escapeRegExp=function(e){return(e=a7(e))&&J.test(e)?e.replace(G,"\\$&"):e},iw.every=function(e,t,r){var n=aD(e)?tl:iq;return r&&nC(e,t,r)&&(t=i),n(e,nd(t,3))},iw.find=as,iw.findIndex=nz,iw.findKey=function(e,t){return tv(e,nd(t,3),iK)},iw.findLast=ac,iw.findLastIndex=nF,iw.findLastKey=function(e,t){return tv(e,nd(t,3),iG)},iw.floor=o1,iw.forEach=al,iw.forEachRight=au,iw.forIn=function(e,t){return null==e?e:iZ(e,nd(t,3),op)},iw.forInRight=function(e,t){return null==e?e:iV(e,nd(t,3),op)},iw.forOwn=function(e,t){return e&&iK(e,nd(t,3))},iw.forOwnRight=function(e,t){return e&&iG(e,nd(t,3))},iw.get=os,iw.gt=aR,iw.gte=aO,iw.has=function(e,t){return null!=e&&nb(e,t,i1)},iw.hasIn=oc,iw.head=nV,iw.identity=oL,iw.includes=function(e,t,i,r){e=a$(e)?e:ox(e),i=i&&!r?a4(i):0;var n=e.length;return i<0&&(i=t2(n+i,0)),aQ(e)?i<=n&&e.indexOf(t,i)>-1:!!n&&tx(e,t,i)>-1},iw.indexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return -1;var n=null==i?0:a4(i);return n<0&&(n=t2(r+n,0)),tx(e,t,n)},iw.inRange=function(e,t,r){var n,a,o;return t=a5(t),r===i?(r=t,t=0):r=a5(r),(n=e=a8(e))>=t3(a=t,o=r)&&n<t2(a,o)},iw.invoke=od,iw.isArguments=aM,iw.isArray=aD,iw.isArrayBuffer=aU,iw.isArrayLike=a$,iw.isArrayLikeObject=aL,iw.isBoolean=function(e){return!0===e||!1===e||aZ(e)&&iX(e)==d},iw.isBuffer=aj,iw.isDate=aB,iw.isElement=function(e){return aZ(e)&&1===e.nodeType&&!aG(e)},iw.isEmpty=function(e){if(null==e)return!0;if(a$(e)&&(aD(e)||"string"==typeof e||"function"==typeof e.splice||aj(e)||a0(e)||aM(e)))return!e.length;var t=nm(e);if(t==w||t==x)return!e.size;if(nk(e))return!re(e).length;for(var i in e)if(eR.call(e,i))return!1;return!0},iw.isEqual=function(e,t){return i6(e,t)},iw.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?i6(e,t,i,r):!!n},iw.isError=aW,iw.isFinite=function(e){return"number"==typeof e&&tX(e)},iw.isFunction=aq,iw.isInteger=aH,iw.isLength=az,iw.isMap=aV,iw.isMatch=function(e,t){return e===t||i8(e,t,np(t))},iw.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,i8(e,t,np(t),r)},iw.isNaN=function(e){return aK(e)&&e!=+e},iw.isNative=function(e){if(n_(e))throw new ey("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return i9(e)},iw.isNil=function(e){return null==e},iw.isNull=function(e){return null===e},iw.isNumber=aK,iw.isObject=aF,iw.isObjectLike=aZ,iw.isPlainObject=aG,iw.isRegExp=aJ,iw.isSafeInteger=function(e){return aH(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff},iw.isSet=aY,iw.isString=aQ,iw.isSymbol=aX,iw.isTypedArray=a0,iw.isUndefined=function(e){return e===i},iw.isWeakMap=function(e){return aZ(e)&&nm(e)==E},iw.isWeakSet=function(e){return aZ(e)&&"[object WeakSet]"==iX(e)},iw.join=function(e,t){return null==e?"":t0.call(e,t)},iw.kebabCase=o_,iw.last=nY,iw.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var a=n;return r!==i&&(a=(a=a4(r))<0?t2(n+a,0):t3(a,n-1)),t==t?function(e,t,i){for(var r=i+1;r--&&e[r]!==t;);return r}(e,t,a):ty(e,tA,a,!0)},iw.lowerCase=ok,iw.lowerFirst=oI,iw.lt=a1,iw.lte=a2,iw.max=function(e){return e&&e.length?iH(e,oL,i0):i},iw.maxBy=function(e,t){return e&&e.length?iH(e,nd(t,2),i0):i},iw.mean=function(e){return tE(e,oL)},iw.meanBy=function(e,t){return tE(e,nd(t,2))},iw.min=function(e){return e&&e.length?iH(e,oL,rt):i},iw.minBy=function(e,t){return e&&e.length?iH(e,nd(t,2),rt):i},iw.stubArray=oJ,iw.stubFalse=oY,iw.stubObject=function(){return{}},iw.stubString=function(){return""},iw.stubTrue=function(){return!0},iw.multiply=o2,iw.nth=function(e,t){return e&&e.length?ro(e,a4(t)):i},iw.noConflict=function(){return e5._===this&&(e5._=e$),this},iw.noop=oH,iw.now=am,iw.pad=function(e,t,i){e=a7(e);var r=(t=a4(t))?tz(e):0;if(!t||r>=t)return e;var n=(t-r)/2;return r3(tJ(n),i)+e+r3(tG(n),i)},iw.padEnd=function(e,t,i){e=a7(e);var r=(t=a4(t))?tz(e):0;return t&&r<t?e+r3(t-r,i):e},iw.padStart=function(e,t,i){e=a7(e);var r=(t=a4(t))?tz(e):0;return t&&r<t?r3(t-r,i)+e:e},iw.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),t4(a7(e).replace(Y,""),t||0)},iw.random=function(e,t,r){if(r&&"boolean"!=typeof r&&nC(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=a5(e),t===i?(t=e,e=0):t=a5(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var a=t6();return t3(e+a*(t-e+e0("1e-"+((a+"").length-1))),t)}return rd(e,t)},iw.reduce=function(e,t,i){var r=aD(e)?tg:tI,n=arguments.length<3;return r(e,nd(t,4),i,n,iB)},iw.reduceRight=function(e,t,i){var r=aD(e)?tw:tI,n=arguments.length<3;return r(e,nd(t,4),i,n,iW)},iw.repeat=function(e,t,r){return t=(r?nC(e,t,r):t===i)?1:a4(t),rh(a7(e),t)},iw.replace=function(){var e=arguments,t=a7(e[0]);return e.length<3?t:t.replace(e[1],e[2])},iw.result=function(e,t,r){t=rO(t,e);var n=-1,a=t.length;for(a||(a=1,e=i);++n<a;){var o=null==e?i:e[nL(t[n])];o===i&&(n=a,o=r),e=aq(o)?o.call(e):o}return e},iw.round=o3,iw.runInContext=e,iw.sample=function(e){return(aD(e)?iI:function(e){return iI(ox(e))})(e)},iw.size=function(e){if(null==e)return 0;if(a$(e))return aQ(e)?tz(e):e.length;var t=nm(e);return t==w||t==x?e.size:re(e).length},iw.snakeCase=oS,iw.some=function(e,t,r){var n=aD(e)?tm:rb;return r&&nC(e,t,r)&&(t=i),n(e,nd(t,3))},iw.sortedIndex=function(e,t){return rv(e,t)},iw.sortedIndexBy=function(e,t,i){return ry(e,t,nd(i,2))},iw.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var r=rv(e,t);if(r<i&&aP(e[r],t))return r}return -1},iw.sortedLastIndex=function(e,t){return rv(e,t,!0)},iw.sortedLastIndexBy=function(e,t,i){return ry(e,t,nd(i,2),!0)},iw.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var i=rv(e,t,!0)-1;if(aP(e[i],t))return i}return -1},iw.startCase=oT,iw.startsWith=function(e,t,i){return e=a7(e),i=null==i?0:iD(a4(i),0,e.length),t=rA(t),e.slice(i,i+t.length)==t},iw.subtract=o5,iw.sum=function(e){return e&&e.length?tS(e,oL):0},iw.sumBy=function(e,t){return e&&e.length?tS(e,nd(t,2)):0},iw.template=function(e,t,r){var n=iw.templateSettings;r&&nC(e,t,r)&&(t=i),e=a7(e),t=oi({},t,n,nt);var a,o,s=oi({},t.imports,n.imports,nt),c=oh(s),l=tR(s,c),u=0,d=t.interpolate||ep,h="__p += '",p=eE((t.escape||ep).source+"|"+d.source+"|"+(d===F?ea:ep).source+"|"+(t.evaluate||ep).source+"|$","g"),f="//# sourceURL="+(eR.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eJ+"]")+`
  4. `;e.replace(p,function(t,i,r,n,s,c){return r||(r=n),h+=e.slice(u,c).replace(ef,tL),i&&(a=!0,h+=`' +
  5. __e(`+i+`) +
  6. '`),s&&(o=!0,h+=`';
  7. `+s+`;
  8. __p += '`),r&&(h+=`' +
  9. ((__t = (`+r+`)) == null ? '' : __t) +
  10. '`),u=c+t.length,t}),h+=`';
  11. `;var g=eR.call(t,"variable")&&t.variable;if(g){if(er.test(g))throw new ey("Invalid `variable` option passed into `_.template`")}else h=`with (obj) {
  12. `+h+`
  13. }
  14. `;h=(o?h.replace(U,""):h).replace($,"$1").replace(L,"$1;"),h="function("+(g||"obj")+`) {
  15. `+(g?"":`obj || (obj = {});
  16. `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?`, __j = Array.prototype.join;
  17. function print() { __p += __j.call(arguments, '') }
  18. `:`;
  19. `)+h+`return __p
  20. }`;var w=oO(function(){return ex(c,f+"return "+h).apply(i,l)});if(w.source=h,aW(w))throw w;return w},iw.times=function(e,t){if((e=a4(e))<1||e>0x1fffffffffffff)return[];var i=0xffffffff,r=t3(e,0xffffffff);t=nd(t),e-=0xffffffff;for(var n=tT(r,t);++i<e;)t(i);return n},iw.toFinite=a5,iw.toInteger=a4,iw.toLength=a6,iw.toLower=function(e){return a7(e).toLowerCase()},iw.toNumber=a8,iw.toSafeInteger=function(e){return e?iD(a4(e),-0x1fffffffffffff,0x1fffffffffffff):0===e?e:0},iw.toString=a7,iw.toUpper=function(e){return a7(e).toUpperCase()},iw.trim=function(e,t,r){if((e=a7(e))&&(r||t===i))return tN(e);if(!e||!(t=rA(t)))return e;var n=tF(e),a=tF(t),o=tM(n,a),s=tD(n,a)+1;return rM(n,o,s).join("")},iw.trimEnd=function(e,t,r){if((e=a7(e))&&(r||t===i))return e.slice(0,tZ(e)+1);if(!e||!(t=rA(t)))return e;var n=tF(e),a=tD(n,tF(t))+1;return rM(n,0,a).join("")},iw.trimStart=function(e,t,r){if((e=a7(e))&&(r||t===i))return e.replace(Y,"");if(!e||!(t=rA(t)))return e;var n=tF(e),a=tM(n,tF(t));return rM(n,a).join("")},iw.truncate=function(e,t){var r=30,n="...";if(aF(t)){var a="separator"in t?t.separator:a;r="length"in t?a4(t.length):r,n="omission"in t?rA(t.omission):n}var o=(e=a7(e)).length;if(tj(e)){var s=tF(e);o=s.length}if(r>=o)return e;var c=r-tz(n);if(c<1)return n;var l=s?rM(s,0,c).join(""):e.slice(0,c);if(a===i)return l+n;if(s&&(c+=l.length-c),aJ(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=eE(a.source,a7(eo.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;l=l.slice(0,h===i?c:h)}}else if(e.indexOf(rA(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+n},iw.unescape=function(e){return(e=a7(e))&&W.test(e)?e.replace(j,tV):e},iw.uniqueId=function(e){var t=++eO;return a7(e)+t},iw.upperCase=oN,iw.upperFirst=oP,iw.each=al,iw.eachRight=au,iw.first=nV,oq(iw,(em={},iK(iw,function(e,t){eR.call(iw.prototype,t)||(em[t]=e)}),em),{chain:!1}),iw.VERSION="4.17.21",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){iw[e].placeholder=iw}),tc(["drop","take"],function(e,t){iy.prototype[e]=function(r){r=r===i?1:t2(a4(r),0);var n=this.__filtered__&&!t?new iy(this):this.clone();return n.__filtered__?n.__takeCount__=t3(r,n.__takeCount__):n.__views__.push({size:t3(r,0xffffffff),type:e+(n.__dir__<0?"Right":"")}),n},iy.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tc(["filter","map","takeWhile"],function(e,t){var i=t+1,r=1==i||3==i;iy.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:nd(e,3),type:i}),t.__filtered__=t.__filtered__||r,t}}),tc(["head","last"],function(e,t){var i="take"+(t?"Right":"");iy.prototype[e]=function(){return this[i](1).value()[0]}}),tc(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");iy.prototype[e]=function(){return this.__filtered__?new iy(this):this[i](1)}}),iy.prototype.compact=function(){return this.filter(oL)},iy.prototype.find=function(e){return this.filter(e).head()},iy.prototype.findLast=function(e){return this.reverse().find(e)},iy.prototype.invokeMap=rp(function(e,t){return"function"==typeof e?new iy(this):this.map(function(i){return i5(i,e,t)})}),iy.prototype.reject=function(e){return this.filter(ak(nd(e)))},iy.prototype.slice=function(e,t){e=a4(e);var r=this;return r.__filtered__&&(e>0||t<0)?new iy(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=a4(t))<0?r.dropRight(-t):r.take(t-e)),r)},iy.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},iy.prototype.toArray=function(){return this.take(0xffffffff)},iK(iy.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=iw[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);a&&(iw.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof iy,l=s[0],u=c||aD(t),d=function(e){var t=a.apply(iw,tf([e],s));return n&&h?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=o&&!h,g=c&&!p;if(!o&&u){t=g?t:new iy(this);var w=e.apply(t,s);return w.__actions__.push({func:an,args:[d],thisArg:i}),new iv(w,h)}return f&&g?e.apply(this,s):(w=this.thru(d),f?n?w.value()[0]:w.value():w)})}),tc(["pop","push","shift","sort","splice","unshift"],function(e){var t=eI[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);iw.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(aD(n)?n:[],e)}return this[i](function(i){return t.apply(aD(i)?i:[],e)})}}),iK(iy.prototype,function(e,t){var i=iw[t];if(i){var r=i.name+"";eR.call(io,r)||(io[r]=[]),io[r].push({name:t,func:i})}}),io[rX(i,2).name]=[{name:"wrapper",func:i}],iy.prototype.clone=function(){var e=new iy(this.__wrapped__);return e.__actions__=rq(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rq(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rq(this.__views__),e},iy.prototype.reverse=function(){if(this.__filtered__){var e=new iy(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},iy.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=aD(e),r=t<0,n=i?e.length:0,a=function(e,t,i){for(var r=-1,n=i.length;++r<n;){var a=i[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=t3(t,e+o);break;case"takeRight":e=t2(e,t-o)}}return{start:e,end:t}}(0,n,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,p=t3(c,this.__takeCount__);if(!i||!r&&n==c&&p==c)return rS(e,this.__actions__);var f=[];e:for(;c--&&h<p;){l+=t;for(var g=-1,w=e[l];++g<d;){var m=u[g],b=m.iteratee,v=m.type,y=b(w);if(2==v)w=y;else if(!y){if(1==v)continue e;break e}}f[h++]=w}return f},iw.prototype.at=aa,iw.prototype.chain=function(){return ar(this)},iw.prototype.commit=function(){return new iv(this.value(),this.__chain__)},iw.prototype.next=function(){this.__values__===i&&(this.__values__=a3(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}},iw.prototype.plant=function(e){for(var t,r=this;r instanceof ib;){var n=nB(r);n.__index__=0,n.__values__=i,t?a.__wrapped__=n:t=n;var a=n;r=r.__wrapped__}return a.__wrapped__=e,t},iw.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof iy){var t=e;return this.__actions__.length&&(t=new iy(this)),(t=t.reverse()).__actions__.push({func:an,args:[n1],thisArg:i}),new iv(t,this.__chain__)}return this.thru(n1)},iw.prototype.toJSON=iw.prototype.valueOf=iw.prototype.value=function(){return rS(this.__wrapped__,this.__actions__)},iw.prototype.first=iw.prototype.head,e4&&(iw.prototype[e4]=function(){return this}),iw}();e6?((e6.exports=tK)._=tK,e4._=tK):e5._=tK}).call(rv)}(ry,ry.exports);var rx=Object.defineProperty,rC=Object.defineProperties,rA=Object.getOwnPropertyDescriptors,rE=Object.getOwnPropertySymbols,r_=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,rI=(e,t,i)=>t in e?rx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,rS=(e,t)=>{for(var i in t||(t={}))r_.call(t,i)&&rI(e,i,t[i]);if(rE)for(var i of rE(t))rk.call(t,i)&&rI(e,i,t[i]);return e},rT=(e,t)=>rC(e,rA(t));function rN(e,t,i){var r;let n=(0,Q._Yb)(e);return(null==(r=t.rpcMap)?void 0:r[n.reference])||`${rg}?chainId=${n.namespace}:${n.reference}&projectId=${i}`}function rP(e){return e.includes(":")?e.split(":")[1]:e}function rR(e){return e.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}function rO(e={},t={}){let i=rM(e),r=rM(t);return ry.exports.merge(i,r)}function rM(e){var t,i,r,n;let a={};if(!(0,Q.aF0)(e))return a;for(let[o,s]of Object.entries(e)){let e=(0,Q.nWe)(o)?[o]:s.chains,c=s.methods||[],l=s.events||[],u=s.rpcMap||{},d=(0,Q.kob)(o);a[d]=rT(rS(rS({},a[d]),s),{chains:(0,Q.TRk)(e,null==(t=a[d])?void 0:t.chains),methods:(0,Q.TRk)(c,null==(i=a[d])?void 0:i.methods),events:(0,Q.TRk)(l,null==(r=a[d])?void 0:r.events),rpcMap:rS(rS({},u),null==(n=a[d])?void 0:n.rpcMap)})}return a}function rD(e){return e.includes(":")?e.split(":")[2]:e}function rU(e){let t={};for(let[i,r]of Object.entries(e)){let e=r.methods||[],n=r.events||[],a=r.accounts||[],o=(0,Q.nWe)(i)?[i]:r.chains?r.chains:rR(r.accounts);t[i]={chains:o,methods:e,events:n,accounts:a}}return t}function r$(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):isNaN(Number(e=e.includes(":")?e.split(":")[1]:e))?e:Number(e)}let rL={},rj=e=>rL[e],rB=(e,t)=>{rL[e]=t};class rW{constructor(e){this.name="polkadot",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;let r=rP(t);e[r]=this.createHttpProvider(r,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}var rq=Object.defineProperty,rH=Object.defineProperties,rz=Object.getOwnPropertyDescriptors,rF=Object.getOwnPropertySymbols,rZ=Object.prototype.hasOwnProperty,rV=Object.prototype.propertyIsEnumerable,rK=(e,t,i)=>t in e?rq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,rG=(e,t)=>{for(var i in t||(t={}))rZ.call(t,i)&&rK(e,i,t[i]);if(rF)for(var i of rF(t))rV.call(t,i)&&rK(e,i,t[i]);return e},rJ=(e,t)=>rH(e,rz(t));class rY{constructor(e){this.name="eip155",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(e);case"wallet_getCallsStatus":return await this.getCallStatus(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let i=t||rN(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;let r=parseInt(rP(t));e[r]=this.createHttpProvider(r,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,i;let r=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0",n=parseInt(r=r.startsWith("0x")?r:`0x${r}`,16);if(this.isChainApproved(n))this.setDefaultChain(`${n}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:r}]},chainId:null==(i=this.namespace.chains)?void 0:i[0]}),this.setDefaultChain(`${n}`);else throw Error(`Failed to switch to chain 'eip155:${n}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var t,i,r;let n=null==(i=null==(t=e.request)?void 0:t.params)?void 0:i[0];if(!n)throw Error("Missing address parameter in `wallet_getCapabilities` request");let a=this.client.session.get(e.topic),o=(null==(r=a?.sessionProperties)?void 0:r.capabilities)||{};if(null!=o&&o[n])return o?.[n];let s=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:rJ(rG({},a.sessionProperties||{}),{capabilities:rJ(rG({},o||{}),{[n]:s})})})}catch(e){console.warn("Failed to update session with capabilities",e)}return s}async getCallStatus(e){var t,i;let r=this.client.session.get(e.topic),n=null==(t=r.sessionProperties)?void 0:t.bundler_name;if(n){let t=this.getBundlerUrl(e.chainId,n);try{return await this.getUserOperationReceipt(t,e)}catch(e){console.warn("Failed to fetch call status from bundler",e,t)}}let a=null==(i=r.sessionProperties)?void 0:i.bundler_url;if(a)try{return await this.getUserOperationReceipt(a,e)}catch(e){console.warn("Failed to fetch call status from custom bundler",e,a)}if(this.namespace.methods.includes(e.request.method))return await this.client.request(e);throw Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(e,t){var i;let r=new URL(e),n=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(el("eth_getUserOperationReceipt",[null==(i=t.request.params)?void 0:i[0]]))});if(!n.ok)throw Error(`Failed to fetch user operation receipt - ${n.status}`);return await n.json()}getBundlerUrl(e,t){return`${rm}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${t}`}}class rQ{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;let r=rP(t);e[r]=this.createHttpProvider(r,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}class rX{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;let r=rP(t);e[r]=this.createHttpProvider(r,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}class r0{constructor(e){this.name="algorand",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let i=t||rN(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,i)}this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;e[t]=this.createHttpProvider(t,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);return typeof i>"u"?void 0:new eA(new rh(i,rj("disableProviderPing")))}}class r1{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let i=this.getCardanoRPCUrl(t),r=rP(t);e[r]=this.createHttpProvider(r,i)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||this.getCardanoRPCUrl(e);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}class r2{constructor(e){this.name="elrond",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;let r=rP(t);e[r]=this.createHttpProvider(r,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}class r3{constructor(e){this.name="multiversx",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;let r=rP(t);e[r]=this.createHttpProvider(r,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}class r5{constructor(e){this.name="near",this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let i=t||rN(`${this.name}:${e}`,this.namespace);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,i)}this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var i;e[t]=this.createHttpProvider(t,null==(i=this.namespace.rpcMap)?void 0:i[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace);return typeof i>"u"?void 0:new eA(new rh(i,rj("disableProviderPing")))}}class r4{constructor(e){this.name=rw,this.namespace=e.namespace,this.events=rj("events"),this.client=rj("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(rb.DEFAULT_CHAIN_CHANGED,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var e,t;let i={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach(e=>{let t=(0,Q._Yb)(e);i[`${t.namespace}:${t.reference}`]=this.createHttpProvider(e)}),i}getHttpProvider(e){let t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}createHttpProvider(e,t){let i=t||rN(e,this.namespace,this.client.core.projectId);if(!i)throw Error(`No RPC url provided for chainId: ${e}`);return new eA(new rh(i,rj("disableProviderPing")))}}var r6=Object.defineProperty,r8=Object.defineProperties,r9=Object.getOwnPropertyDescriptors,r7=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ni=(e,t,i)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,nr=(e,t)=>{for(var i in t||(t={}))ne.call(t,i)&&ni(e,i,t[i]);if(r7)for(var i of r7(t))nt.call(t,i)&&ni(e,i,t[i]);return e},nn=(e,t)=>r8(e,r9(t));class na{constructor(e){this.events=new(a()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,$.h6)((0,$.iP)({level:e?.logger||rp})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let t=new na(e);return await t.initialize(),t}async request(e,t,i){let[r,n]=this.validateChain(t);if(!this.session)throw Error("Please call connect() before request()");return await this.getProvider(r).request({request:nr({},e),chainId:`${r}:${n}`,topic:this.session.topic,expiry:i})}sendAsync(e,t,i,r){let n=new Date().getTime();this.request(e,i,r).then(e=>t(null,eu(n,e))).catch(e=>t(e,void 0))}async enable(){if(!this.client)throw Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:(0,Q.Hjj)("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,t){if(!this.client)throw Error("Sign Client not initialized");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:i,response:r}=await this.client.authenticate(e,t);i&&(this.uri=i,this.events.emit("display_uri",i));let n=await r();if(this.session=n.session,this.session){let e=rU(this.session.namespaces);this.namespaces=rO(this.namespaces,e),this.persist("namespaces",this.namespaces),this.onConnect()}return n}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw Error("Max auto pairing attempts reached");let{uri:i,approval:r}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});i&&(this.uri=i,this.events.emit("display_uri",i)),await r().then(e=>{this.session=e;let t=rU(e.namespaces);this.namespaces=rO(this.namespaces,t),this.persist("namespaces",this.namespaces)}).catch(e=>{if(e.message!==iL)throw e;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;let[i,r]=this.validateChain(e),n=this.getProvider(i);n.name===rw?n.setDefaultChain(`${i}:${r}`,t):n.setDefaultChain(r,t)}catch(e){if(!/Please call connect/.test(e.message))throw e}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if((0,Q.OP1)(t)){for(let i of t)e.deletePairings?this.client.core.expirer.set(i.topic,0):await this.client.core.relayer.subscriber.unsubscribe(i.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await i7.init({core:this.providerOpts.core,logger:this.providerOpts.logger||rp,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.org",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw Error("Sign Client not initialized");if(!this.session)throw Error("Session not initialized. Please call connect() before enable()");let e=[...new Set(Object.keys(this.session.namespaces).map(e=>(0,Q.kob)(e)))];rB("client",this.client),rB("events",this.events),rB("disableProviderPing",this.disableProviderPing),e.forEach(e=>{if(!this.session)return;let t=function(e,t){let i=Object.keys(t.namespaces).filter(t=>t.includes(e));if(!i.length)return[];let r=[];return i.forEach(e=>{let i=t.namespaces[e].accounts;r.push(...i)}),r}(e,this.session),i=rR(t),r=nn(nr({},rO(this.namespaces,this.optionalNamespaces)[e]),{accounts:t,chains:i});switch(e){case"eip155":this.rpcProviders[e]=new rY({namespace:r});break;case"algorand":this.rpcProviders[e]=new r0({namespace:r});break;case"solana":this.rpcProviders[e]=new rQ({namespace:r});break;case"cosmos":this.rpcProviders[e]=new rX({namespace:r});break;case"polkadot":this.rpcProviders[e]=new rW({namespace:r});break;case"cip34":this.rpcProviders[e]=new r1({namespace:r});break;case"elrond":this.rpcProviders[e]=new r2({namespace:r});break;case"multiversx":this.rpcProviders[e]=new r3({namespace:r});break;case"near":this.rpcProviders[e]=new r5({namespace:r});break;default:this.rpcProviders[rw]?this.rpcProviders[rw].updateNamespace(r):this.rpcProviders[rw]=new r4({namespace:r})}})}registerEventListeners(){if(typeof this.client>"u")throw Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:i}=t;if("accountsChanged"===i.name){let e=i.data;e&&(0,Q.OP1)(e)&&this.events.emit("accountsChanged",e.map(rD))}else if("chainChanged"===i.name){let e=t.chainId,i=t.event.data,r=(0,Q.kob)(e),n=r$(e)!==r$(i)?`${r}:${r$(i)}`:e;this.onChainChanged(n)}else this.events.emit(i.name,i.data);this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var i;let{namespaces:r}=t,n=null==(i=this.client)?void 0:i.session.get(e);this.session=nn(nr({},n),{namespaces:r}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",nn(nr({},(0,Q.Hjj)("USER_DISCONNECTED")),{data:e.topic}))}),this.on(rb.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[rw]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:i,sessionProperties:r}=e;t&&Object.keys(t).length&&(this.namespaces=t),i&&Object.keys(i).length&&(this.optionalNamespaces=i),this.sessionProperties=r,this.persist("namespaces",t),this.persist("optionalNamespaces",i)}validateChain(e){let[t,i]=e?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,i];if(t&&!Object.keys(this.namespaces||{}).map(e=>(0,Q.kob)(e)).includes(t))throw Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&i)return[t,i];let r=(0,Q.kob)(Object.keys(this.namespaces)[0]),n=this.rpcProviders[r].getDefaultChain();return[r,n]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;let[i,r]=this.validateChain(e);r&&(t||this.getProvider(i).setDefaultChain(r),this.namespaces[i]?this.namespaces[i].defaultChain=r:this.namespaces[`${i}:${r}`]?this.namespaces[`${i}:${r}`].defaultChain=r:this.namespaces[`${i}:${r}`]={defaultChain:r},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",r))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${rf}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${rf}/${e}`)}}let no=na},16227:(e,t)=>{"use strict";function i(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function r(e){let t=i(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=i,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return i("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return i("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return i("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return i("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return i("localStorage")}},70502:(e,t,i)=>{"use strict";t.g=void 0;let r=i(16227);t.g=function(){let e,t,i;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(e){return null}function n(...t){let i=e.getElementsByTagName("meta");for(let e=0;e<i.length;e++){let r=i[e],n=["itemprop","property","name"].map(e=>r.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(n.length&&n){let e=r.getAttribute("content");if(e)return e}}return""}let a=((i=n("name","og:site_name","og:title","twitter:title"))||(i=e.title),i),o=n("description","og:description","twitter:description","keywords");return{description:o,url:t.origin,icons:function(){let i=e.getElementsByTagName("link"),r=[];for(let e=0;e<i.length;e++){let n=i[e],a=n.getAttribute("rel");if(a&&a.toLowerCase().indexOf("icon")>-1){let e=n.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let i=t.protocol+"//"+t.host;if(0===e.indexOf("/"))i+=e;else{let r=t.pathname.split("/");r.pop(),i+=r.join("/")+"/"+e}r.push(i)}else if(0===e.indexOf("//")){let i=t.protocol+e;r.push(i)}else r.push(e)}}}return r}(),name:a}}},40707:function(e,t,i){!function(e,t){"use strict";function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,t,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(i=t,t=10),this._init(e||0,t||10,i||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(20399).Buffer}catch(e){}function o(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var r=o(e,i);return i-1>=t&&(r|=o(e,i-1)<<4),r}function c(e,t,i,r){for(var n=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n*=r,s>=49?n+=s-49+10:s>=17?n+=s-17+10:n+=s}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===t?this._parseHex(e,n,i):(this._parseBase(e,t,n),"le"===i&&this._initArray(this.toArray(),t,i)))},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(r(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,a,o=0;o<this.length;o++)this.words[o]=0;var s=0;if("be"===i)for(o=e.length-1,n=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);else if("le"===i)for(o=0,n=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n=0;n<this.length;n++)this.words[n]=0;var a=0,o=0;if("be"===i)for(n=e.length-1;n>=t;n-=2)r=s(e,t,n)<<a,this.words[o]|=0x3ffffff&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)r=s(e,t,n)<<a,this.words[o]|=0x3ffffff&r,a>=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=0x3ffffff;n*=t)r++;r--,n=n/t|0;for(var a=e.length-i,o=a%r,s=Math.min(a,a-o)+i,l=0,u=i;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(n),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l);if(0!==o){var d=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l)}this.strip()},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function p(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=0x3ffffff&o,c=o/0x4000000|0;i.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,d=0x3ffffff&c,h=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=h;p++){var f=l-p|0;u+=(o=(n=0|e.words[f])*(a=0|t.words[p])+d)/0x4000000|0,d=0x3ffffff&o}i.words[l]=0|d,c=0|u}return 0!==c?i.words[l]=0|c:i.length--,i.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var i,n=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=((s<<n|a)&0xffffff).toString(16);a=s>>>24-n&0xffffff,(n+=2)>=26&&(n-=26,o--),i=0!==a||o!==this.length-1?u[6-c.length]+c+i:c+i}for(0!==a&&(i=a.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],p=h[e];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var g=f.modn(p).toString(e);i=(f=f.idivn(p)).isZero()?g+i:u[l-g.length]+g+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==l),this.toArrayLike(l,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n,a,o=this.byteLength(),s=i||Math.max(1,o);r(o<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var c=new e(s),l=this.clone();if("le"===t){for(a=0;!l.isZero();a++)n=l.andln(255),l.iushrn(8),c[a]=n;for(;a<s;a++)c[a]=0}else{for(a=0;a<s-o;a++)c[a]=0;for(a=0;!l.isZero();a++)n=l.andln(255),l.iushrn(8),c[s-a-1]=n}return c},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return(8191&t)==0&&(i+=13,t>>>=13),(127&t)==0&&(i+=7,t>>>=7),(15&t)==0&&(i+=4,t>>>=4),(3&t)==0&&(i+=2,t>>>=2),(1&t)==0&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,i=e):(t=e,i=this);for(var t,i,r=0;r<i.length;r++)this.words[r]=t.words[r]^i.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=0x3ffffff&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&0x3ffffff>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),t?this.words[i]=this.words[i]|1<<n:this.words[i]=this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,r=e):(i=e,r=this);for(var t,i,r,n=0,a=0;a<r.length;a++)t=(0|i.words[a])+(0|r.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;for(;0!==n&&a<i.length;a++)t=(0|i.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,i,r=this.iadd(e);return e.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,i=e):(t=e,i=this);for(var a=0,o=0;o<i.length;o++)a=(r=(0|t.words[o])-(0|i.words[o])+a)>>26,this.words[o]=0x3ffffff&r;for(;0!==a&&o<t.length;o++)a=(r=(0|t.words[o])+a)>>26,this.words[o]=0x3ffffff&r;if(0===a&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,i){var r,n,a,o=e.words,s=t.words,c=i.words,l=0,u=0|o[0],d=8191&u,h=u>>>13,p=0|o[1],f=8191&p,g=p>>>13,w=0|o[2],m=8191&w,b=w>>>13,v=0|o[3],y=8191&v,x=v>>>13,C=0|o[4],A=8191&C,E=C>>>13,_=0|o[5],k=8191&_,I=_>>>13,S=0|o[6],T=8191&S,N=S>>>13,P=0|o[7],R=8191&P,O=P>>>13,M=0|o[8],D=8191&M,U=M>>>13,$=0|o[9],L=8191&$,j=$>>>13,B=0|s[0],W=8191&B,q=B>>>13,H=0|s[1],z=8191&H,F=H>>>13,Z=0|s[2],V=8191&Z,K=Z>>>13,G=0|s[3],J=8191&G,Y=G>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,et=0|s[5],ei=8191&et,er=et>>>13,en=0|s[6],ea=8191&en,eo=en>>>13,es=0|s[7],ec=8191&es,el=es>>>13,eu=0|s[8],ed=8191&eu,eh=eu>>>13,ep=0|s[9],ef=8191&ep,eg=ep>>>13;i.negative=e.negative^t.negative,i.length=19;var ew=(l+(r=Math.imul(d,W))|0)+((8191&(n=(n=Math.imul(d,q))+Math.imul(h,W)|0))<<13)|0;l=((a=Math.imul(h,q))+(n>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,r=Math.imul(f,W),n=(n=Math.imul(f,q))+Math.imul(g,W)|0,a=Math.imul(g,q);var em=(l+(r=r+Math.imul(d,z)|0)|0)+((8191&(n=(n=n+Math.imul(d,F)|0)+Math.imul(h,z)|0))<<13)|0;l=((a=a+Math.imul(h,F)|0)+(n>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,r=Math.imul(m,W),n=(n=Math.imul(m,q))+Math.imul(b,W)|0,a=Math.imul(b,q),r=r+Math.imul(f,z)|0,n=(n=n+Math.imul(f,F)|0)+Math.imul(g,z)|0,a=a+Math.imul(g,F)|0;var eb=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(n=(n=n+Math.imul(d,K)|0)+Math.imul(h,V)|0))<<13)|0;l=((a=a+Math.imul(h,K)|0)+(n>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,r=Math.imul(y,W),n=(n=Math.imul(y,q))+Math.imul(x,W)|0,a=Math.imul(x,q),r=r+Math.imul(m,z)|0,n=(n=n+Math.imul(m,F)|0)+Math.imul(b,z)|0,a=a+Math.imul(b,F)|0,r=r+Math.imul(f,V)|0,n=(n=n+Math.imul(f,K)|0)+Math.imul(g,V)|0,a=a+Math.imul(g,K)|0;var ev=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(n=(n=n+Math.imul(d,Y)|0)+Math.imul(h,J)|0))<<13)|0;l=((a=a+Math.imul(h,Y)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,r=Math.imul(A,W),n=(n=Math.imul(A,q))+Math.imul(E,W)|0,a=Math.imul(E,q),r=r+Math.imul(y,z)|0,n=(n=n+Math.imul(y,F)|0)+Math.imul(x,z)|0,a=a+Math.imul(x,F)|0,r=r+Math.imul(m,V)|0,n=(n=n+Math.imul(m,K)|0)+Math.imul(b,V)|0,a=a+Math.imul(b,K)|0,r=r+Math.imul(f,J)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,Y)|0;var ey=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;l=((a=a+Math.imul(h,ee)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,r=Math.imul(k,W),n=(n=Math.imul(k,q))+Math.imul(I,W)|0,a=Math.imul(I,q),r=r+Math.imul(A,z)|0,n=(n=n+Math.imul(A,F)|0)+Math.imul(E,z)|0,a=a+Math.imul(E,F)|0,r=r+Math.imul(y,V)|0,n=(n=n+Math.imul(y,K)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,K)|0,r=r+Math.imul(m,J)|0,n=(n=n+Math.imul(m,Y)|0)+Math.imul(b,J)|0,a=a+Math.imul(b,Y)|0,r=r+Math.imul(f,X)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(g,X)|0,a=a+Math.imul(g,ee)|0;var ex=(l+(r=r+Math.imul(d,ei)|0)|0)+((8191&(n=(n=n+Math.imul(d,er)|0)+Math.imul(h,ei)|0))<<13)|0;l=((a=a+Math.imul(h,er)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,r=Math.imul(T,W),n=(n=Math.imul(T,q))+Math.imul(N,W)|0,a=Math.imul(N,q),r=r+Math.imul(k,z)|0,n=(n=n+Math.imul(k,F)|0)+Math.imul(I,z)|0,a=a+Math.imul(I,F)|0,r=r+Math.imul(A,V)|0,n=(n=n+Math.imul(A,K)|0)+Math.imul(E,V)|0,a=a+Math.imul(E,K)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,Y)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(m,X)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,ee)|0,r=r+Math.imul(f,ei)|0,n=(n=n+Math.imul(f,er)|0)+Math.imul(g,ei)|0,a=a+Math.imul(g,er)|0;var eC=(l+(r=r+Math.imul(d,ea)|0)|0)+((8191&(n=(n=n+Math.imul(d,eo)|0)+Math.imul(h,ea)|0))<<13)|0;l=((a=a+Math.imul(h,eo)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,r=Math.imul(R,W),n=(n=Math.imul(R,q))+Math.imul(O,W)|0,a=Math.imul(O,q),r=r+Math.imul(T,z)|0,n=(n=n+Math.imul(T,F)|0)+Math.imul(N,z)|0,a=a+Math.imul(N,F)|0,r=r+Math.imul(k,V)|0,n=(n=n+Math.imul(k,K)|0)+Math.imul(I,V)|0,a=a+Math.imul(I,K)|0,r=r+Math.imul(A,J)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(E,J)|0,a=a+Math.imul(E,Y)|0,r=r+Math.imul(y,X)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(x,X)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(m,ei)|0,n=(n=n+Math.imul(m,er)|0)+Math.imul(b,ei)|0,a=a+Math.imul(b,er)|0,r=r+Math.imul(f,ea)|0,n=(n=n+Math.imul(f,eo)|0)+Math.imul(g,ea)|0,a=a+Math.imul(g,eo)|0;var eA=(l+(r=r+Math.imul(d,ec)|0)|0)+((8191&(n=(n=n+Math.imul(d,el)|0)+Math.imul(h,ec)|0))<<13)|0;l=((a=a+Math.imul(h,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,r=Math.imul(D,W),n=(n=Math.imul(D,q))+Math.imul(U,W)|0,a=Math.imul(U,q),r=r+Math.imul(R,z)|0,n=(n=n+Math.imul(R,F)|0)+Math.imul(O,z)|0,a=a+Math.imul(O,F)|0,r=r+Math.imul(T,V)|0,n=(n=n+Math.imul(T,K)|0)+Math.imul(N,V)|0,a=a+Math.imul(N,K)|0,r=r+Math.imul(k,J)|0,n=(n=n+Math.imul(k,Y)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,Y)|0,r=r+Math.imul(A,X)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(E,X)|0,a=a+Math.imul(E,ee)|0,r=r+Math.imul(y,ei)|0,n=(n=n+Math.imul(y,er)|0)+Math.imul(x,ei)|0,a=a+Math.imul(x,er)|0,r=r+Math.imul(m,ea)|0,n=(n=n+Math.imul(m,eo)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,eo)|0,r=r+Math.imul(f,ec)|0,n=(n=n+Math.imul(f,el)|0)+Math.imul(g,ec)|0,a=a+Math.imul(g,el)|0;var eE=(l+(r=r+Math.imul(d,ed)|0)|0)+((8191&(n=(n=n+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;l=((a=a+Math.imul(h,eh)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,r=Math.imul(L,W),n=(n=Math.imul(L,q))+Math.imul(j,W)|0,a=Math.imul(j,q),r=r+Math.imul(D,z)|0,n=(n=n+Math.imul(D,F)|0)+Math.imul(U,z)|0,a=a+Math.imul(U,F)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,K)|0)+Math.imul(O,V)|0,a=a+Math.imul(O,K)|0,r=r+Math.imul(T,J)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(N,J)|0,a=a+Math.imul(N,Y)|0,r=r+Math.imul(k,X)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(A,ei)|0,n=(n=n+Math.imul(A,er)|0)+Math.imul(E,ei)|0,a=a+Math.imul(E,er)|0,r=r+Math.imul(y,ea)|0,n=(n=n+Math.imul(y,eo)|0)+Math.imul(x,ea)|0,a=a+Math.imul(x,eo)|0,r=r+Math.imul(m,ec)|0,n=(n=n+Math.imul(m,el)|0)+Math.imul(b,ec)|0,a=a+Math.imul(b,el)|0,r=r+Math.imul(f,ed)|0,n=(n=n+Math.imul(f,eh)|0)+Math.imul(g,ed)|0,a=a+Math.imul(g,eh)|0;var e_=(l+(r=r+Math.imul(d,ef)|0)|0)+((8191&(n=(n=n+Math.imul(d,eg)|0)+Math.imul(h,ef)|0))<<13)|0;l=((a=a+Math.imul(h,eg)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,r=Math.imul(L,z),n=(n=Math.imul(L,F))+Math.imul(j,z)|0,a=Math.imul(j,F),r=r+Math.imul(D,V)|0,n=(n=n+Math.imul(D,K)|0)+Math.imul(U,V)|0,a=a+Math.imul(U,K)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,Y)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,Y)|0,r=r+Math.imul(T,X)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(N,X)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(k,ei)|0,n=(n=n+Math.imul(k,er)|0)+Math.imul(I,ei)|0,a=a+Math.imul(I,er)|0,r=r+Math.imul(A,ea)|0,n=(n=n+Math.imul(A,eo)|0)+Math.imul(E,ea)|0,a=a+Math.imul(E,eo)|0,r=r+Math.imul(y,ec)|0,n=(n=n+Math.imul(y,el)|0)+Math.imul(x,ec)|0,a=a+Math.imul(x,el)|0,r=r+Math.imul(m,ed)|0,n=(n=n+Math.imul(m,eh)|0)+Math.imul(b,ed)|0,a=a+Math.imul(b,eh)|0;var ek=(l+(r=r+Math.imul(f,ef)|0)|0)+((8191&(n=(n=n+Math.imul(f,eg)|0)+Math.imul(g,ef)|0))<<13)|0;l=((a=a+Math.imul(g,eg)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,r=Math.imul(L,V),n=(n=Math.imul(L,K))+Math.imul(j,V)|0,a=Math.imul(j,K),r=r+Math.imul(D,J)|0,n=(n=n+Math.imul(D,Y)|0)+Math.imul(U,J)|0,a=a+Math.imul(U,Y)|0,r=r+Math.imul(R,X)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(T,ei)|0,n=(n=n+Math.imul(T,er)|0)+Math.imul(N,ei)|0,a=a+Math.imul(N,er)|0,r=r+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,eo)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,eo)|0,r=r+Math.imul(A,ec)|0,n=(n=n+Math.imul(A,el)|0)+Math.imul(E,ec)|0,a=a+Math.imul(E,el)|0,r=r+Math.imul(y,ed)|0,n=(n=n+Math.imul(y,eh)|0)+Math.imul(x,ed)|0,a=a+Math.imul(x,eh)|0;var eI=(l+(r=r+Math.imul(m,ef)|0)|0)+((8191&(n=(n=n+Math.imul(m,eg)|0)+Math.imul(b,ef)|0))<<13)|0;l=((a=a+Math.imul(b,eg)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,r=Math.imul(L,J),n=(n=Math.imul(L,Y))+Math.imul(j,J)|0,a=Math.imul(j,Y),r=r+Math.imul(D,X)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(U,X)|0,a=a+Math.imul(U,ee)|0,r=r+Math.imul(R,ei)|0,n=(n=n+Math.imul(R,er)|0)+Math.imul(O,ei)|0,a=a+Math.imul(O,er)|0,r=r+Math.imul(T,ea)|0,n=(n=n+Math.imul(T,eo)|0)+Math.imul(N,ea)|0,a=a+Math.imul(N,eo)|0,r=r+Math.imul(k,ec)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(I,ec)|0,a=a+Math.imul(I,el)|0,r=r+Math.imul(A,ed)|0,n=(n=n+Math.imul(A,eh)|0)+Math.imul(E,ed)|0,a=a+Math.imul(E,eh)|0;var eS=(l+(r=r+Math.imul(y,ef)|0)|0)+((8191&(n=(n=n+Math.imul(y,eg)|0)+Math.imul(x,ef)|0))<<13)|0;l=((a=a+Math.imul(x,eg)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,r=Math.imul(L,X),n=(n=Math.imul(L,ee))+Math.imul(j,X)|0,a=Math.imul(j,ee),r=r+Math.imul(D,ei)|0,n=(n=n+Math.imul(D,er)|0)+Math.imul(U,ei)|0,a=a+Math.imul(U,er)|0,r=r+Math.imul(R,ea)|0,n=(n=n+Math.imul(R,eo)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,eo)|0,r=r+Math.imul(T,ec)|0,n=(n=n+Math.imul(T,el)|0)+Math.imul(N,ec)|0,a=a+Math.imul(N,el)|0,r=r+Math.imul(k,ed)|0,n=(n=n+Math.imul(k,eh)|0)+Math.imul(I,ed)|0,a=a+Math.imul(I,eh)|0;var eT=(l+(r=r+Math.imul(A,ef)|0)|0)+((8191&(n=(n=n+Math.imul(A,eg)|0)+Math.imul(E,ef)|0))<<13)|0;l=((a=a+Math.imul(E,eg)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,r=Math.imul(L,ei),n=(n=Math.imul(L,er))+Math.imul(j,ei)|0,a=Math.imul(j,er),r=r+Math.imul(D,ea)|0,n=(n=n+Math.imul(D,eo)|0)+Math.imul(U,ea)|0,a=a+Math.imul(U,eo)|0,r=r+Math.imul(R,ec)|0,n=(n=n+Math.imul(R,el)|0)+Math.imul(O,ec)|0,a=a+Math.imul(O,el)|0,r=r+Math.imul(T,ed)|0,n=(n=n+Math.imul(T,eh)|0)+Math.imul(N,ed)|0,a=a+Math.imul(N,eh)|0;var eN=(l+(r=r+Math.imul(k,ef)|0)|0)+((8191&(n=(n=n+Math.imul(k,eg)|0)+Math.imul(I,ef)|0))<<13)|0;l=((a=a+Math.imul(I,eg)|0)+(n>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,r=Math.imul(L,ea),n=(n=Math.imul(L,eo))+Math.imul(j,ea)|0,a=Math.imul(j,eo),r=r+Math.imul(D,ec)|0,n=(n=n+Math.imul(D,el)|0)+Math.imul(U,ec)|0,a=a+Math.imul(U,el)|0,r=r+Math.imul(R,ed)|0,n=(n=n+Math.imul(R,eh)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,eh)|0;var eP=(l+(r=r+Math.imul(T,ef)|0)|0)+((8191&(n=(n=n+Math.imul(T,eg)|0)+Math.imul(N,ef)|0))<<13)|0;l=((a=a+Math.imul(N,eg)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,r=Math.imul(L,ec),n=(n=Math.imul(L,el))+Math.imul(j,ec)|0,a=Math.imul(j,el),r=r+Math.imul(D,ed)|0,n=(n=n+Math.imul(D,eh)|0)+Math.imul(U,ed)|0,a=a+Math.imul(U,eh)|0;var eR=(l+(r=r+Math.imul(R,ef)|0)|0)+((8191&(n=(n=n+Math.imul(R,eg)|0)+Math.imul(O,ef)|0))<<13)|0;l=((a=a+Math.imul(O,eg)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,r=Math.imul(L,ed),n=(n=Math.imul(L,eh))+Math.imul(j,ed)|0,a=Math.imul(j,eh);var eO=(l+(r=r+Math.imul(D,ef)|0)|0)+((8191&(n=(n=n+Math.imul(D,eg)|0)+Math.imul(U,ef)|0))<<13)|0;l=((a=a+Math.imul(U,eg)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff;var eM=(l+(r=Math.imul(L,ef))|0)+((8191&(n=(n=Math.imul(L,eg))+Math.imul(j,ef)|0))<<13)|0;return l=((a=Math.imul(j,eg))+(n>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,c[0]=ew,c[1]=em,c[2]=eb,c[3]=ev,c[4]=ey,c[5]=ex,c[6]=eC,c[7]=eA,c[8]=eE,c[9]=e_,c[10]=ek,c[11]=eI,c[12]=eS,c[13]=eT,c[14]=eN,c[15]=eP,c[16]=eR,c[17]=eO,c[18]=eM,0!==l&&(c[19]=l,i.length++),i};function g(e,t,i){return new w().mulp(e,t,i)}function w(e,t){this.x=e,this.y=t}Math.imul||(f=p),a.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):i<63?p(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,a=0;a<i.length-1;a++){var o=n;n=0;for(var s=0x3ffffff&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,d=(0|e.words[u])*(0|t.words[l]),h=0x3ffffff&d;o=o+(d/0x4000000|0)|0,s=0x3ffffff&(h=h+s|0),n+=(o=o+(h>>>26)|0)>>>26,o&=0x3ffffff}i.words[a]=s,r=o,o=n}return 0!==r?i.words[a]=r:i.length--,i.strip()}(this,e,t):g(this,e,t)},w.prototype.makeRBT=function(e){for(var t=Array(e),i=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,i,e);return t},w.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var r=0,n=0;n<t;n++)r|=(1&e)<<t-n-1,e>>=1;return r},w.prototype.permute=function(e,t,i,r,n,a){for(var o=0;o<a;o++)r[o]=t[e[o]],n[o]=i[e[o]]},w.prototype.transform=function(e,t,i,r,n,a){this.permute(a,e,t,i,r,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<n;u+=s)for(var d=c,h=l,p=0;p<o;p++){var f=i[u+p],g=r[u+p],w=i[u+p+o],m=r[u+p+o],b=d*w-h*m;m=d*m+h*w,w=b,i[u+p]=f+w,r[u+p]=g+m,i[u+p+o]=f-w,r[u+p+o]=g-m,p!==s&&(b=c*d-l*h,h=c*h+l*d,d=b)}},w.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),r=1&i,n=0;for(i=i/2|0;i;i>>>=1)n++;return 1<<n+1+r},w.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=e[r];e[r]=e[i-r-1],e[i-r-1]=n,n=t[r],t[r]=-t[i-r-1],t[i-r-1]=-n}},w.prototype.normalize13b=function(e,t){for(var i=0,r=0;r<t/2;r++){var n=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+i;e[r]=0x3ffffff&n,i=n<0x4000000?0:n/0x4000000|0}return e},w.prototype.convert13b=function(e,t,i,n){for(var a=0,o=0;o<t;o++)a+=0|e[o],i[2*o]=8191&a,a>>>=13,i[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<n;++o)i[o]=0;r(0===a),r((-8192&a)==0)},w.prototype.stub=function(e){for(var t=Array(e),i=0;i<e;i++)t[i]=0;return t},w.prototype.mulp=function(e,t,i){var r=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(r),a=this.stub(r),o=Array(r),s=Array(r),c=Array(r),l=Array(r),u=Array(r),d=Array(r),h=i.words;h.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,n),this.transform(l,a,u,d,r,n);for(var p=0;p<r;p++){var f=s[p]*u[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*u[p],s[p]=f}return this.conjugate(s,c,r),this.transform(s,c,h,a,r,n),this.conjugate(h,a,r),this.normalize13b(h,r),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),g(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r("number"==typeof e),r(e<0x4000000);for(var t=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,a=(0x3ffffff&n)+(0x3ffffff&t);t>>=26,t+=(n/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==t&&(this.words[i]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),i=0;i<t.length;i++){var r=i/26|0,n=i%26;t[i]=(e.words[r]&1<<n)>>>n}return t}(e);if(0===t.length)return new a(1);for(var i=this,r=0;r<t.length&&0===t[r];r++,i=i.sqr());if(++r<t.length)for(var n=i.sqr();r<t.length;r++,n=n.sqr())0!==t[r]&&(i=i.mul(n));return i},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,i=e%26,n=(e-i)/26,a=0x3ffffff>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<i;this.words[t]=c|o,o=s>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,i){r("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var n,a=e%26,o=Math.min((e-a)/26,this.length),s=0x3ffffff^0x3ffffff>>>a<<a;if(n-=o,n=Math.max(0,n),i){for(var c=0;c<o;c++)i.words[c]=this.words[c];i.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=n);c--){var u=0|this.words[c];this.words[c]=l<<26-a|u>>>a,l=u&s}return i&&0!==l&&(i.words[i.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;return!(this.length<=i)&&!!(this.words[i]&1<<t)},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;return(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==t&&i++,this.length=Math.min(i,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<<t),this.strip())},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return(r("number"==typeof e),r(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,i){var n,a,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){a=(0|this.words[n+i])+s;var c=(0|e.words[n])*t;a-=0x3ffffff&c,s=(a>>26)-(c/0x4000000|0),this.words[n+i]=0x3ffffff&a}for(;n<this.length-i;n++)s=(a=(0|this.words[n+i])+s)>>26,this.words[n+i]=0x3ffffff&a;if(0===s)return this.strip();for(r(-1===s),s=0,n=0;n<this.length;n++)s=(a=-(0|this.words[n])+s)>>26,this.words[n]=0x3ffffff&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i,r=this.length-e.length,n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var c=n.length-o.length;if("mod"!==t){(i=new a(null)).length=c+1,i.words=Array(i.length);for(var l=0;l<i.length;l++)i.words[l]=0}var u=n.clone()._ishlnsubmul(o,1,c);0===u.negative&&(n=u,i&&(i.words[c]=1));for(var d=c-1;d>=0;d--){var h=(0|n.words[o.length+d])*0x4000000+(0|n.words[o.length+d-1]);for(h=Math.min(h/s|0,0x3ffffff),n._ishlnsubmul(o,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);i&&(i.words[d]=h)}return i&&i.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:i||null,mod:n}},a.prototype.divmod=function(e,t,i){var n,o,s;return(r(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),a=i.cmp(r);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=0x3ffffff);for(var t=0x4000000%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){r(e<=0x3ffffff);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+0x4000000*t;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++l;for(var u=i.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;(t.words[0]&p)==0&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(u),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var f=0,g=1;(i.words[0]&g)==0&&f<26;++f,g<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(s),o.isub(c)):(i.isub(t),s.isub(n),c.isub(o))}return{a:s,b:c,gcd:i.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,i=this,n=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var o=new a(1),s=new a(0),c=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;(i.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(i.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,h=1;(n.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(s)):(n.isub(i),s.isub(o))}return 0>(t=0===i.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var a=t;t=i,i=a}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var a=n,o=i;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=0x3ffffff,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=0x3ffffff,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,i=this.length-1;i>=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){r<n?t=-1:r>n&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:i.ucmp(this.p);return 0===r?(i.words[0]=0,i.length=1):r>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},n(v,b),v.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r<i;r++)t.words[r]=e.words[r];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var n=e.words[9];for(r=10,t.words[t.length++]=4194303&n;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|n>>>22,n=a}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var r=0|e.words[i];t+=977*r,e.words[i]=0x3ffffff&t,t=64*r+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(y,b),n(x,b),n(C,b),C.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var r=(0|e.words[i])*19+t,n=0x3ffffff&r;r>>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new x;else if("p25519"===e)t=new C;else throw Error("Unknown prime "+e);return m[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},A.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return 0>i.cmpn(0)&&i.iadd(this.m),i},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),p=this.pow(e,n),f=o;0!==p.cmp(s);){for(var g=p,w=0;0!==g.cmp(s);w++)g=g.redSqr();r(w<f);var m=this.pow(d,new a(1).iushln(f-w-1));h=h.redMul(m),d=m.redSqr(),p=p.redMul(d),f=w}return h},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],e);var n=i[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;if(n!==i[0]&&(n=this.sqr(n)),0===d&&0===o){s=0;continue}o<<=1,o|=d,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),s=0,o=0)}c=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},n(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},2009:(e,t,i)=>{var r;function n(e){this.rand=e}if(e.exports=function(e){return r||(r=new n(null)),r.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw Error("Not implemented yet")});else try{var a=i(89780);if("function"!=typeof a.randomBytes)throw Error("Not supported");n.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},77186:function(e,t){var i="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var i={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(i[Symbol.iterator]=function(){return i}),i}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function d(e){var t=new FileReader,i=u(t);return t.readAsArrayBuffer(e),i}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var i;t.arrayBuffer&&t.blob&&(i=e)&&DataView.prototype.isPrototypeOf(i)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||n(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,i,r=l(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,i=u(t=new FileReader),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=o(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=o(t)},c.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),s(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),s(e)},t.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var i,r,n=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(r=(i=t.method||this.method||"GET").toUpperCase(),f.indexOf(r)>-1?r:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},p.call(g.prototype),p.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];m.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(i,r){return new Promise(function(n,a){var o=new g(i,r);if(o.signal&&o.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,i={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();t.append(r,n)}}),t)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL"),n(new m("response"in s?s.response:s.responseText,i))},s.onerror=function(){a(TypeError("Network request failed"))},s.ontimeout=function(){a(TypeError("Network request failed"))},s.onabort=function(){a(new e.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",l)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}v.polyfill=!0,r.fetch||(r.fetch=v,r.Headers=c,r.Request=g,r.Response=m),e.Headers=c,e.Request=g,e.Response=m,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})})({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},21420:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",i="minute",r="hour",n="week",a="month",o="quarter",s="year",c="date",l="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,i){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(i)+e},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||"th")+"]"}};var g="$isDayjsObject",w=function(e){return e instanceof y||!(!e||!e[g])},m=function e(t,i,r){var n;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();f[a]&&(n=a),i&&(f[a]=i,n=a);var o=t.split("-");if(!n&&o.length>1)return e(o[0])}else{var s=t.name;f[s]=t,n=s}return!r&&n&&(p=n),n||!r&&p},b=function(e,t){if(w(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new y(i)},v={s:h,z:function(e){var t=-e.utcOffset(),i=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(i/60),2,"0")+":"+h(i%60,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var r=12*(i.year()-t.year())+(i.month()-t.month()),n=t.clone().add(r,a),o=i-n<0,s=t.clone().add(r+(o?-1:1),a);return+(-(r+(i-n)/(o?n-s:s-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:a,y:s,w:n,d:"day",D:c,h:r,m:i,s:t,ms:e,Q:o})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=m,v.i=w,v.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var y=function(){function h(e){this.$L=m(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var p=h.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var n=r[2]-1||0,a=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return v},p.isValid=function(){return this.$d.toString()!==l},p.isSame=function(e,t){var i=b(e);return this.startOf(t)<=i&&i<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,i){return v.u(e)?this[t]:this.set(i,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,o){var l=this,u=!!v.u(o)||o,d=v.p(e),h=function(e,t){var i=v.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return u?i:i.endOf("day")},p=function(e,t){return v.w(l.toDate()[e].apply(l.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},f=this.$W,g=this.$M,w=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case s:return u?h(1,0):h(31,11);case a:return u?h(1,g):h(0,g+1);case n:var b=this.$locale().weekStart||0,y=(f<b?f+7:f)-b;return h(u?w-y:w+(6-y),g);case"day":case c:return p(m+"Hours",0);case r:return p(m+"Minutes",1);case i:return p(m+"Seconds",2);case t:return p(m+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(n,o){var l,u=v.p(n),d="set"+(this.$u?"UTC":""),h=((l={}).day=d+"Date",l[c]=d+"Date",l[a]=d+"Month",l[s]=d+"FullYear",l[r]=d+"Hours",l[i]=d+"Minutes",l[t]=d+"Seconds",l[e]=d+"Milliseconds",l)[u],p="day"===u?this.$D+(o-this.$W):o;if(u===a||u===s){var f=this.clone().set(c,1);f.$d[h](p),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[v.p(e)]()},p.add=function(e,o){var c,l=this;e=Number(e);var u=v.p(o),d=function(t){var i=b(l);return v.w(i.date(i.date()+Math.round(t*e)),l)};if(u===a)return this.set(a,this.$M+e);if(u===s)return this.set(s,this.$y+e);if("day"===u)return d(1);if(u===n)return d(7);var h=((c={})[i]=6e4,c[r]=36e5,c[t]=1e3,c)[u]||1,p=this.$d.getTime()+e*h;return v.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||l;var r=e||"YYYY-MM-DDTHH:mm:ssZ",n=v.z(this),a=this.$H,o=this.$m,s=this.$M,c=i.weekdays,u=i.months,h=i.meridiem,p=function(e,i,n,a){return e&&(e[i]||e(t,r))||n[i].slice(0,a)},f=function(e){return v.s(a%12||12,e,"0")},g=h||function(e,t,i){var r=e<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return s+1;case"MM":return v.s(s+1,2,"0");case"MMM":return p(i.monthsShort,s,u,3);case"MMMM":return p(u,s);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(i.weekdaysMin,t.$W,c,2);case"ddd":return p(i.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return v.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return v.s(o,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,c,l){var u,d=this,h=v.p(c),p=b(e),f=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,w=function(){return v.m(d,p)};switch(h){case s:u=w()/12;break;case a:u=w();break;case o:u=w()/3;break;case n:u=(g-f)/6048e5;break;case"day":u=(g-f)/864e5;break;case r:u=g/36e5;break;case i:u=g/6e4;break;case t:u=g/1e3;break;default:u=g}return l?u:v.a(u)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),r=m(e,t,!0);return r&&(i.$L=r),i},p.clone=function(){return v.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},h}(),x=y.prototype;return b.prototype=x,[["$ms",e],["$s",t],["$m",i],["$H",r],["$W","day"],["$M",a],["$y",s],["$D",c]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,y,b),e.$i=!0),b},b.locale=m,b.isDayjs=w,b.unix=function(e){return b(1e3*e)},b.en=f[p],b.Ls=f,b.p={},b},e.exports=t()},37583:function(e){var t;t=function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||"th")+"]"}}},e.exports=t()},39346:function(e){var t;t=function(){return function(e,t,i){e=e||{};var r=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(e,t,i,n){return r.fromToBase(e,t,i,n)}i.en.relativeTime=n,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||n,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f<p;f+=1){var g=h[f];g.d&&(c=o?i(t).diff(a,g.d,!0):a.diff(t,g.d,!0));var w=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,w<=g.r||!g.r){w<=1&&f>0&&(g=h[f-1]);var m=d[g.l];s&&(w=s(""+w)),l="string"==typeof m?m.replace("%d",w):m(w,r,g.l,u);break}}if(r)return l;var b=u?d.future:d.past;return"function"==typeof b?b(l):b.replace("%s",l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?i.utc():i()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}},e.exports=t()},14488:function(e){var t;t=function(){return function(e,t,i){i.updateLocale=function(e,t){var r=i.Ls[e];if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}},e.exports=t()},34961:e=>{"use strict";var t="%[a-f0-9]{2}",i=RegExp("("+t+")|([^%]+?)","gi"),r=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var a=function(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(i)||[],r=1;r<t.length;r++)t=(e=(function e(t,i){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;i=i||1;var r=t.slice(0,i),n=t.slice(i);return Array.prototype.concat.call([],e(r),e(n))})(t,r).join("")).match(i)||[];return e}}(n[0]);a!==n[0]&&(t[n[0]]=a)}n=r.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var c=o[s];e=e.replace(RegExp(c,"g"),t[c])}return e}(e)}}},54874:(e,t,i)=>{"use strict";i.d(t,{o0:()=>p});var r=i(18596),n=function(e,t,i){if(i||2==arguments.length)for(var r,n=0,a=t.length;n<a;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))},a=function(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=r.platform},s=function(e,t,i,r){this.name=e,this.version=t,this.os=i,this.bot=r,this.type="bot-device"},c=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function p(e){return e?f(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?f(navigator.userAgent):void 0!==r&&r.version?new o(r.version.slice(1)):null}function f(e){var t=""!==e&&d.reduce(function(t,i){var r=i[0],n=i[1];if(t)return t;var a=n.exec(e);return!!a&&[r,a]},!1);if(!t)return null;var i=t[0],r=t[1];if("searchbot"===i)return new c;var o=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);o?o.length<3&&(o=n(n([],o,!0),function(e){for(var t=[],i=0;i<e;i++)t.push("0");return t}(3-o.length),!0)):o=[];var l=o.join("."),p=function(e){for(var t=0,i=h.length;t<i;t++){var r=h[t],n=r[0];if(r[1].exec(e))return n}return null}(e),f=u.exec(e);return f&&f[1]?new s(i,l,p,f[1]):new a(i,l,p)}},35363:e=>{"use strict";var t={single_source_shortest_paths:function(e,i,r){var n,a,o,s,c,l,u,d={},h={};h[i]=0;var p=t.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(o in a=(n=p.pop()).value,s=n.cost,c=e[a]||{})c.hasOwnProperty(o)&&(l=s+c[o],u=h[o],(void 0===h[o]||u>l)&&(h[o]=l,p.push(o,l),d[o]=a));if(void 0!==r&&void 0===h[r])throw Error(["Could not find a path from ",i," to ",r,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var i=[],r=t;r;)i.push(r),e[r],r=e[r];return i.reverse(),i},find_path:function(e,i,r){var n=t.single_source_shortest_paths(e,i,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var i,r=t.PriorityQueue,n={};for(i in e=e||{},r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n.queue=[],n.sorter=e.sorter||r.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},81256:(e,t,i)=>{"use strict";t.version=i(64112).rE,t.utils=i(46514),t.rand=i(2009),t.curve=i(87919),t.curves=i(17513),t.ec=i(10510),t.eddsa=i(64843)},36204:(e,t,i)=>{"use strict";var r=i(40707),n=i(46514),a=n.getNAF,o=n.getJSF,s=n.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var i,r,n=e._getDoubles(),o=a(t,1,this._bitLength),c=(1<<n.step+1)-(n.step%2==0?2:1);c/=3;var l=[];for(i=0;i<o.length;i+=n.step){r=0;for(var u=i+n.step-1;u>=i;u--)r=(r<<1)+o[u];l.push(r)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),p=c;p>0;p--){for(i=0;i<l.length;i++)(r=l[i])===p?h=h.mixedAdd(n.points[i]):r===-p&&(h=h.mixedAdd(n.points[i].neg()));d=d.add(h)}return d.toP()},c.prototype._wnafMul=function(e,t){var i=4,r=e._getNAFPoints(i);i=r.wnd;for(var n=r.points,o=a(t,i,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var u=0;l>=0&&0===o[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var d=o[l];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(n[d-1>>1]):c.mixedAdd(n[-d-1>>1].neg()):d>0?c.add(n[d-1>>1]):c.add(n[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,i,r,n){var s,c,l,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,p=0;for(s=0;s<r;s++){var f=(l=t[s])._getNAFPoints(e);u[s]=f.wnd,d[s]=f.points}for(s=r-1;s>=1;s-=2){var g=s-1,w=s;if(1!==u[g]||1!==u[w]){h[g]=a(i[g],u[g],this._bitLength),h[w]=a(i[w],u[w],this._bitLength),p=Math.max(h[g].length,p),p=Math.max(h[w].length,p);continue}var m=[t[g],null,null,t[w]];0===t[g].y.cmp(t[w].y)?(m[1]=t[g].add(t[w]),m[2]=t[g].toJ().mixedAdd(t[w].neg())):0===t[g].y.cmp(t[w].y.redNeg())?(m[1]=t[g].toJ().mixedAdd(t[w]),m[2]=t[g].add(t[w].neg())):(m[1]=t[g].toJ().mixedAdd(t[w]),m[2]=t[g].toJ().mixedAdd(t[w].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=o(i[g],i[w]);for(c=0,p=Math.max(v[0].length,p),h[g]=Array(p),h[w]=Array(p);c<p;c++){var y=0|v[0][c],x=0|v[1][c];h[g][c]=b[(y+1)*3+(x+1)],h[w][c]=0,d[g]=m}}var C=this.jpoint(null,null,null),A=this._wnafT4;for(s=p;s>=0;s--){for(var E=0;s>=0;){var _=!0;for(c=0;c<r;c++)A[c]=0|h[c][s],0!==A[c]&&(_=!1);if(!_)break;E++,s--}if(s>=0&&E++,C=C.dblp(E),s<0)break;for(c=0;c<r;c++){var k=A[c];0!==k&&(k>0?l=d[c][k-1>>1]:k<0&&(l=d[c][-k-1>>1].neg()),C="affine"===l.type?C.mixedAdd(l):C.add(l))}}for(s=0;s<r;s++)d[s]=null;return n?C:C.toP()},c.BasePoint=l,l.prototype.eq=function(){throw Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=n.toArray(e,t);var i=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*i)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));if((2===e[0]||3===e[0])&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),3===e[0]);throw Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),i=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},l.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},l.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)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n<t;n+=e){for(var a=0;a<e;a++)r=r.dbl();i.push(r)}return{step:e,points:i}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],i=(1<<e)-1,r=1===i?null:this.dbl(),n=1;n<i;n++)t[n]=t[n-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},5275:(e,t,i)=>{"use strict";var r=i(46514),n=i(40707),a=i(4242),o=i(36204),s=r.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function l(e,t,i,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===i&&null===r?(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 n(t,16),this.y=new n(i,16),this.z=r?new n(r,16):this.curve.one,this.t=a&&new n(a,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()))))}a(c,o),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,i,r){return this.point(e,t,i,r)},c.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),r=this.c2.redSub(this.a.redMul(i)),a=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),r=i.redSub(this.c2),a=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),i=e.y.redSqr(),r=t.redMul(this.a).redAdd(i),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(i)));return 0===r.cmp(n)},a(l,o.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,i,r){return new l(this,e,t,i,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var r=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(i),s=r.redSub(t),c=n.redMul(o),l=a.redMul(s),u=n.redMul(s),d=o.redMul(a);return this.curve.point(c,l,d,u)},l.prototype._projDbl=function(){var e,t,i,r,n,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(c)),i=l.redSqr().redSub(l).redSub(l)):(n=this.z.redSqr(),a=l.redSub(n).redISub(n),e=o.redSub(s).redISub(c).redMul(a),t=l.redMul(r.redSub(c)),i=l.redMul(a))}else r=s.redAdd(c),n=this.curve._mulC(this.z).redSqr(),a=r.redSub(n).redSub(n),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(c)),i=r.redMul(a);return this.curve.point(e,t,i)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=i.redSub(t),o=n.redSub(r),s=n.redAdd(r),c=i.redAdd(t),l=a.redMul(o),u=s.redMul(c),d=a.redMul(c),h=o.redMul(s);return this.curve.point(l,u,h,d)},l.prototype._projAdd=function(e){var t,i,r=this.z.redMul(e.z),n=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=n.redSub(s),l=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),i=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),i=this.curve._mulC(c).redMul(l)),this.curve.point(d,t,i)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},l.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},l.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},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},87919:(e,t,i)=>{"use strict";t.base=i(36204),t.short=i(61453),t.mont=i(60147),t.edwards=i(5275)},60147:(e,t,i)=>{"use strict";var r=i(40707),n=i(4242),a=i(36204),o=i(46514);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,i){a.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),r=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},n(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),r=e.redMul(t),n=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(r,n)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(i),o=n.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),i=this,r=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},61453:(e,t,i)=>{"use strict";var r=i(46514),n=i(40707),a=i(4242),o=i(36204),s=r.assert;function c(e){o.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function l(e,t,i,r){o.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(i,16),r&&(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)}function u(e,t,i,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(i,16),this.z=new n(r,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}a(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var t,i,r,a=this._getEndoRoots(this.p);t=(t=0>a[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)i=new n(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?i=o[0]:(i=o[1],s(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return r=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(i),{beta:t,lambda:i,basis:r}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),i=new n(2).toRed(t).redInvm(),r=i.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(i);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,i,r,a,o,s,c,l,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,p=this.n.clone(),f=new n(1),g=new n(0),w=new n(0),m=new n(1),b=0;0!==h.cmpn(0);){var v=p.div(h);l=p.sub(v.mul(h)),u=w.sub(v.mul(f));var y=m.sub(v.mul(g));if(!r&&0>l.cmp(d))t=c.neg(),i=f,r=l.neg(),a=u;else if(r&&2==++b)break;c=l,p=h,h=l,w=f,f=u,m=g,g=y}o=l.neg(),s=u;var x=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=i),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],r=t[1],n=r.b.mul(e).divRound(this.n),a=i.b.neg().mul(e).divRound(this.n),o=n.mul(i.a),s=a.mul(r.a),c=n.mul(i.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,r=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===i.redSqr().redISub(n).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,i){for(var r=this._endoWnafT1,n=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,n[2*a]=o.k1,n[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,r,n,2*a,i),u=0;u<2*a;u++)r[u]=null,n[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(e,t,i){return new l(this,e,t,i)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.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 i=this.curve,r=function(e){return i.point(e.x.redMul(i.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.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]},l.fromJSON=function(e,t,i){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],i);if(!t[2])return r;function n(t){return e.point(t[0],t[1],i)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(n))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(n))}},r},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.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)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),r=e.redInvm(),n=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(r),a=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return(e=new n(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)},l.prototype.mulAdd=function(e,t,i){var r=[this,t],n=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},l.prototype.jmulAdd=function(e,t,i){var r=[this,t],n=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(r)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(e,t,i){return new u(this,e,t,i)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(i,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),r=this.x.redMul(t),n=e.x.redMul(i),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),s=r.redSub(n),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=r.redMul(l),h=c.redSqr().redIAdd(u).redISub(d).redISub(d),p=c.redMul(d.redISub(h)).redISub(a.redMul(u)),f=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,p,f)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,r=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),o=i.redSub(r),s=n.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=i.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(n.redMul(l)),p=this.z.redMul(o);return this.curve.jpoint(d,h,p)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,i=this;for(t=0;t<e;t++)i=i.dbl();return i}var r=this.curve.a,n=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),d=l.redSqr(),h=d.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),f=a.redMul(d),g=p.redSqr().redISub(f.redAdd(f)),w=f.redISub(g),m=p.redMul(w);m=m.redIAdd(m).redISub(h);var b=l.redMul(s);t+1<e&&(c=c.redMul(h)),a=g,s=b,l=m}return this.curve.jpoint(a,l.redMul(n),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){if(this.zOne){var e,t,i,r=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(o.redISub(c)).redISub(l),i=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(u).redISub(h);p=p.redIAdd(p);var f=u.redAdd(u).redIAdd(u),g=f.redSqr(),w=h.redIAdd(h);w=(w=w.redIAdd(w)).redIAdd(w),e=g.redISub(p).redISub(p),t=f.redMul(p.redISub(e)).redISub(w),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(e,t,i)},u.prototype._threeDbl=function(){if(this.zOne){var e,t,i,r=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(c)).redISub(l),i=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var f=h.redIAdd(h),g=(f=f.redIAdd(f)).redAdd(f);e=p.redSqr().redISub(g),i=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var w=d.redSqr();w=(w=(w=w.redIAdd(w)).redIAdd(w)).redIAdd(w),t=p.redMul(f.redISub(e)).redISub(w)}return this.curve.jpoint(e,t,i)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,i=this.y,r=this.z,n=r.redSqr().redSqr(),a=t.redSqr(),o=i.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(n)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),d=l.redISub(u),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=s.redMul(d).redISub(h),f=i.redAdd(i).redMul(r);return this.curve.jpoint(u,p,f)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr(),r=t.redSqr(),n=e.redAdd(e).redIAdd(e),a=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=n.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=this.z.redAdd(o).redSqr().redISub(i).redISub(s);return this.curve.jpoint(d,h,p)},u.prototype.mul=function(e,t){return e=new n(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),i=e.z.redSqr();if(0!==this.x.redMul(i).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),n=i.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(i))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(n),0===this.x.cmp(i))return!0}},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},17513:(e,t,i)=>{"use strict";var r,n=i(13108),a=i(87919),o=i(46514).assert;function s(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,i){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=new s(i);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:r}),r}})}t.PresetCurve=s,c("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:n.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"]}),c("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:n.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),c("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(89962)}catch(e){r=void 0}c("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},10510:(e,t,i)=>{"use strict";var r=i(40707),n=i(76304),a=i(46514),o=i(17513),s=i(2009),c=a.assert,l=i(74169),u=i(13160);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new l(this,e)},d.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(i));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t,i){if(r.isBN(e)||"number"==typeof e)n=(e=new r(e,16)).byteLength();else if("object"==typeof e)n=e.length,e=new r(e,16);else{var n,a=e.toString();n=a.length+1>>>1,e=new r(a,16)}"number"!=typeof i&&(i=8*n);var o=i-this.n.bitLength();return(o>0&&(e=e.ushrn(o)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,i,a){if("object"==typeof i&&(a=i,i=null),a||(a={}),"string"!=typeof e&&"number"!=typeof e&&!r.isBN(e)){c("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),c(e.length>>>0===e.length);for(var o=0;o<e.length;o++)c((255&e[o])===e[o])}t=this.keyFromPrivate(t,i),c(!(e=this._truncateToN(e,!1,a.msgBitLength)).isNeg(),"Can not sign a negative message");var s=this.n.byteLength(),l=t.getPrivate().toArray("be",s),d=e.toArray("be",s);c(new r(d).eq(e),"Can not sign message");for(var h=new n({hash:this.hash,entropy:l,nonce:d,pers:a.pers,persEnc:a.persEnc||"utf8"}),p=this.n.sub(new r(1)),f=0;;f++){var g=a.k?a.k(f):new r(h.generate(this.n.byteLength()));if(!(0>=(g=this._truncateToN(g,!0)).cmpn(1)||g.cmp(p)>=0)){var w=this.g.mul(g);if(!w.isInfinity()){var m=w.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var v=g.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(w.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return a.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:b,s:v,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,i,r,n){n||(n={}),e=this._truncateToN(e,!1,n.msgBitLength),i=this.keyFromPublic(i,r);var a,o=(t=new u(t,"hex")).r,s=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var c=s.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,i.getPublic(),d)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(l,i.getPublic(),d)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,i,n){c((3&i)===i,"The recovery param is more than two bits"),t=new u(t,n);var a=this.n,o=new r(e),s=t.r,l=t.s,d=1&i,h=i>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var p=t.r.invm(a),f=a.sub(o).mul(p).umod(a),g=l.mul(p).umod(a);return this.g.mulAdd(f,s,g)},d.prototype.getKeyRecoveryParam=function(e,t,i,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(i))return a}throw Error("Unable to find valid recovery factor")}},74169:(e,t,i)=>{"use strict";var r=i(40707),n=i(46514).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,i){return t instanceof a?t:new a(e,{pub:t,pubEnc:i})},a.fromPrivate=function(e,t,i){return t instanceof a?t:new a(e,{priv:t,privEnc:i})},a.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"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(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)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},a.prototype.verify=function(e,t,i){return this.ec.verify(e,t,this,void 0,i)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},13160:(e,t,i)=>{"use strict";var r=i(40707),n=i(46514),a=n.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var i=e[t.place++];if(!(128&i))return i;var r=15&i;if(0===r||r>4||0===e[t.place])return!1;for(var n=0,a=0,o=t.place;a<r;a++,o++)n<<=8,n|=e[o],n>>>=0;return!(n<=127)&&(t.place=o,n)}function l(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t<i;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128){e.push(t);return}var i=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}e.exports=o,o.prototype._importDER=function(e,t){e=n.toArray(e,t);var i=new s;if(48!==e[i.place++])return!1;var a=c(e,i);if(!1===a||a+i.place!==e.length||2!==e[i.place++])return!1;var o=c(e,i);if(!1===o||(128&e[i.place])!=0)return!1;var l=e.slice(i.place,o+i.place);if(i.place+=o,2!==e[i.place++])return!1;var u=c(e,i);if(!1===u||e.length!==u+i.place||(128&e[i.place])!=0)return!1;var d=e.slice(i.place,u+i.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(l),this.s=new r(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=l(t),i=l(i);!i[0]&&!(128&i[1]);)i=i.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,i.length);var a=r.concat(i),o=[48];return u(o,a.length),o=o.concat(a),n.encode(o,e)}},64843:(e,t,i)=>{"use strict";var r=i(13108),n=i(17513),a=i(46514),o=a.assert,s=a.parseBytes,c=i(77220),l=i(94797);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var i=this.keyFromSecret(t),r=this.hashInt(i.messagePrefix(),e),n=this.g.mul(r),a=this.encodePoint(n),o=this.hashInt(a,i.pubBytes(),e).mul(i.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:c,Rencoded:a})},u.prototype.verify=function(e,t,i){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var r=this.keyFromPublic(i),n=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(n)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,i=e.slice(0,t).concat(-129&e[t]),r=(128&e[t])!=0,n=a.intFromLE(i);return this.curve.pointFromY(n,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},77220:(e,t,i)=>{"use strict";var r=i(46514),n=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),i=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[i]&=127,r[i]|=64,r}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},94797:(e,t,i)=>{"use strict";var r=i(40707),n=i(46514),a=n.assert,o=n.cachedProperty,s=n.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(a(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},89962:e=>{e.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"]]}}},46514:(e,t,i)=>{"use strict";var r=i(40707),n=i(28113),a=i(89150);t.assert=n,t.toArray=a.toArray,t.zero2=a.zero2,t.toHex=a.toHex,t.encode=a.encode,t.getNAF=function(e,t,i){var r=Array(Math.max(e.bitLength(),i)+1);for(o=0;o<r.length;o+=1)r[o]=0;var n=1<<t+1,a=e.clone();for(o=0;o<r.length;o++){var o,s,c=a.andln(n-1);a.isOdd()?(s=c>(n>>1)-1?(n>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},t.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var r=0,n=0;e.cmpn(-r)>0||t.cmpn(-n)>0;){var a,o,s,c=e.andln(3)+r&3,l=t.andln(3)+n&3;3===c&&(c=-1),3===l&&(l=-1),o=(1&c)==0?0:(3==(a=e.andln(7)+r&7)||5===a)&&2===l?-c:c,i[0].push(o),s=(1&l)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===c?-l:l,i[1].push(s),2*r===o+1&&(r=1-r),2*n===s+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return i},t.cachedProperty=function(e,t,i){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new r(e,"hex","le")}},31159:e=>{"use strict";e.exports=function(e){for(var t=[],i=e.length,r=0;r<i;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319&&i>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(n=(n-55296)*1024+a-56320+65536,r+=1)}if(n<128){t.push(n);continue}if(n<2048){t.push(n>>6|192),t.push(63&n|128);continue}if(n<55296||n>=57344&&n<65536){t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128);continue}if(n>=65536&&n<=1114111){t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},30855:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function r(){}function n(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new n(r,a||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(i=!1)),s.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,o=Array(a);n<a;n++)o[n]=r[n].fn;return o},s.prototype.listenerCount=function(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,n,a,o){var s=i?i+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,n),!0;case 5:return u.fn.call(u.context,t,r,n,a),!0;case 6:return u.fn.call(u.context,t,r,n,a,o),!0}for(l=1,c=Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,n);break;default:if(!c)for(h=1,c=Array(d-1);h<d;h++)c[h-1]=arguments[h];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,i){return a(this,e,t,i,!1)},s.prototype.once=function(e,t,i){return a(this,e,t,i,!0)},s.prototype.removeListener=function(e,t,r,n){var a=i?i+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||n&&!s.once||r&&s.context!==r||o(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||n&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,e.exports=s},49509:e=>{"use strict";e.exports=function(e,t){for(var i={},r=Object.keys(e),n=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],s=e[o];(n?-1!==t.indexOf(o):t(o,s,e))&&(i[o]=s)}return i}},13108:(e,t,i)=>{t.utils=i(1982),t.common=i(35944),t.sha=i(44805),t.ripemd=i(42102),t.hmac=i(14094),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},35944:(e,t,i)=>{"use strict";var r=i(1982),n=i(28113);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var i=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-i,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-i,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,i=t-(e+this.padLength)%t,r=Array(i+this.padLength);r[0]=128;for(var n=1;n<i;n++)r[n]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=e>>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(a=8,r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0;a<this.padLength;a++)r[n++]=0;return r}},14094:(e,t,i)=>{"use strict";var r=i(1982),n=i(28113);function a(e,t,i){if(!(this instanceof a))return new a(e,t,i);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,i))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},42102:(e,t,i)=>{"use strict";var r=i(1982),n=i(35944),a=r.rotl32,o=r.sum32,s=r.sum32_3,c=r.sum32_4,l=n.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function d(e,t,i,r){return e<=15?t^i^r:e<=31?t&i|~t&r:e<=47?(t|~i)^r:e<=63?t&r|i&~r:t^(i|~r)}r.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var i=this.h[0],r=this.h[1],n=this.h[2],l=this.h[3],u=this.h[4],w=i,m=r,b=n,v=l,y=u,x=0;x<80;x++){var C,A,E=o(a(c(i,d(x,r,n,l),e[h[x]+t],(C=x)<=15?0:C<=31?0x5a827999:C<=47?0x6ed9eba1:C<=63?0x8f1bbcdc:0xa953fd4e),f[x]),u);i=u,u=l,l=a(n,10),n=r,r=E,E=o(a(c(w,d(79-x,m,b,v),e[p[x]+t],(A=x)<=15?0x50a28be6:A<=31?0x5c4dd124:A<=47?0x6d703ef3:A<=63?0x7a6d76e9:0),g[x]),y),w=y,y=v,v=a(b,10),b=m,m=E}E=s(this.h[1],n,v),this.h[1]=s(this.h[2],l,y),this.h[2]=s(this.h[3],u,w),this.h[3]=s(this.h[4],i,m),this.h[4]=s(this.h[0],r,b),this.h[0]=E},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},44805:(e,t,i)=>{"use strict";t.sha1=i(36641),t.sha224=i(29758),t.sha256=i(85031),t.sha384=i(48751),t.sha512=i(51150)},36641:(e,t,i)=>{"use strict";var r=i(1982),n=i(35944),a=i(51707),o=r.rotl32,s=r.sum32,c=r.sum32_5,l=a.ft_1,u=n.BlockHash,d=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}r.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var i=this.W,r=0;r<16;r++)i[r]=e[t+r];for(;r<i.length;r++)i[r]=o(i[r-3]^i[r-8]^i[r-14]^i[r-16],1);var n=this.h[0],a=this.h[1],u=this.h[2],h=this.h[3],p=this.h[4];for(r=0;r<i.length;r++){var f=~~(r/20),g=c(o(n,5),l(f,a,u,h),p,i[r],d[f]);p=h,h=u,u=o(a,30),a=n,n=g}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],p)},h.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},29758:(e,t,i)=>{"use strict";var r=i(1982),n=i(85031);function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}r.inherits(a,n),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},85031:(e,t,i)=>{"use strict";var r=i(1982),n=i(35944),a=i(51707),o=i(28113),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=a.ch32,d=a.maj32,h=a.s0_256,p=a.s1_256,f=a.g0_256,g=a.g1_256,w=n.BlockHash,m=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function b(){if(!(this instanceof b))return new b;w.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=m,this.W=Array(64)}r.inherits(b,w),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var i=this.W,r=0;r<16;r++)i[r]=e[t+r];for(;r<i.length;r++)i[r]=c(g(i[r-2]),i[r-7],f(i[r-15]),i[r-16]);var n=this.h[0],a=this.h[1],w=this.h[2],m=this.h[3],b=this.h[4],v=this.h[5],y=this.h[6],x=this.h[7];for(o(this.k.length===i.length),r=0;r<i.length;r++){var C=l(x,p(b),u(b,v,y),this.k[r],i[r]),A=s(h(n),d(n,a,w));x=y,y=v,v=b,b=s(m,C),m=w,w=a,a=n,n=s(C,A)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],w),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],y),this.h[7]=s(this.h[7],x)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},48751:(e,t,i)=>{"use strict";var r=i(1982),n=i(51150);function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}r.inherits(a,n),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},51150:(e,t,i)=>{"use strict";var r=i(1982),n=i(35944),a=i(28113),o=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,d=r.sum64_hi,h=r.sum64_lo,p=r.sum64_4_hi,f=r.sum64_4_lo,g=r.sum64_5_hi,w=r.sum64_5_lo,m=n.BlockHash,b=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=b,this.W=Array(160)}r.inherits(v,m),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var i=this.W,r=0;r<32;r++)i[r]=e[t+r];for(;r<i.length;r+=2){var n=function(e,t){var i=o(e,t,19)^o(t,e,29)^c(e,t,6);return i<0&&(i+=0x100000000),i}(i[r-4],i[r-3]),a=function(e,t){var i=s(e,t,19)^s(t,e,29)^l(e,t,6);return i<0&&(i+=0x100000000),i}(i[r-4],i[r-3]),u=i[r-14],d=i[r-13],h=function(e,t){var i=o(e,t,1)^o(e,t,8)^c(e,t,7);return i<0&&(i+=0x100000000),i}(i[r-30],i[r-29]),g=function(e,t){var i=s(e,t,1)^s(e,t,8)^l(e,t,7);return i<0&&(i+=0x100000000),i}(i[r-30],i[r-29]),w=i[r-32],m=i[r-31];i[r]=p(n,a,u,d,h,g,w,m),i[r+1]=f(n,a,u,d,h,g,w,m)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var i=this.W,r=this.h[0],n=this.h[1],c=this.h[2],l=this.h[3],p=this.h[4],f=this.h[5],m=this.h[6],b=this.h[7],v=this.h[8],y=this.h[9],x=this.h[10],C=this.h[11],A=this.h[12],E=this.h[13],_=this.h[14],k=this.h[15];a(this.k.length===i.length);for(var I=0;I<i.length;I+=2){var S=_,T=k,N=function(e,t){var i=o(e,t,14)^o(e,t,18)^o(t,e,9);return i<0&&(i+=0x100000000),i}(v,y),P=function(e,t){var i=s(e,t,14)^s(e,t,18)^s(t,e,9);return i<0&&(i+=0x100000000),i}(v,y),R=function(e,t,i,r,n){var a=e&i^~e&n;return a<0&&(a+=0x100000000),a}(v,0,x,0,A,E),O=function(e,t,i,r,n,a){var o=t&r^~t&a;return o<0&&(o+=0x100000000),o}(0,y,0,C,0,E),M=this.k[I],D=this.k[I+1],U=i[I],$=i[I+1],L=g(S,T,N,P,R,O,M,D,U,$),j=w(S,T,N,P,R,O,M,D,U,$);S=function(e,t){var i=o(e,t,28)^o(t,e,2)^o(t,e,7);return i<0&&(i+=0x100000000),i}(r,n);var B=d(S,T=function(e,t){var i=s(e,t,28)^s(t,e,2)^s(t,e,7);return i<0&&(i+=0x100000000),i}(r,n),N=function(e,t,i,r,n){var a=e&i^e&n^i&n;return a<0&&(a+=0x100000000),a}(r,0,c,0,p,f),P=function(e,t,i,r,n,a){var o=t&r^t&a^r&a;return o<0&&(o+=0x100000000),o}(0,n,0,l,0,f)),W=h(S,T,N,P);_=A,k=E,A=x,E=C,x=v,C=y,v=d(m,b,L,j),y=h(b,b,L,j),m=p,b=f,p=c,f=l,c=r,l=n,r=d(L,j,B,W),n=h(L,j,B,W)}u(this.h,0,r,n),u(this.h,2,c,l),u(this.h,4,p,f),u(this.h,6,m,b),u(this.h,8,v,y),u(this.h,10,x,C),u(this.h,12,A,E),u(this.h,14,_,k)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},51707:(e,t,i)=>{"use strict";var r=i(1982).rotr32;function n(e,t,i){return e&t^e&i^t&i}t.ft_1=function(e,t,i,r){return 0===e?t&i^~t&r:1===e||3===e?t^i^r:2===e?n(t,i,r):void 0},t.ch32=function(e,t,i){return e&t^~e&i},t.maj32=n,t.p32=function(e,t,i){return e^t^i},t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},1982:(e,t,i)=>{"use strict";var r=i(28113),n=i(4242);function a(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}t.inherits=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)i.push(parseInt(e[n]+e[n+1],16))}else for(var r=0,n=0;n<e.length;n++){var a,o,s=e.charCodeAt(n);s<128?i[r++]=s:(s<2048?i[r++]=s>>6|192:((a=e,o=n,(64512&a.charCodeAt(o))!=55296||o<0||o+1>=a.length?1:(64512&a.charCodeAt(o+1))!=56320)?i[r++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++n)),i[r++]=s>>18|240,i[r++]=s>>12&63|128),i[r++]=s>>6&63|128),i[r++]=63&s|128)}}else for(n=0;n<e.length;n++)i[n]=0|e[n];return i},t.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=o(e[i].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=a(n)),i+=s(n.toString(16))}return i},t.zero2=o,t.zero8=s,t.join32=function(e,t,i,n){var a,o=i-t;r(o%4==0);for(var s=Array(o/4),c=0,l=t;c<s.length;c++,l+=4)a="big"===n?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[c]=a>>>0;return s},t.split32=function(e,t){for(var i=Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var a=e[r];"big"===t?(i[n]=a>>>24,i[n+1]=a>>>16&255,i[n+2]=a>>>8&255,i[n+3]=255&a):(i[n+3]=a>>>24,i[n+2]=a>>>16&255,i[n+1]=a>>>8&255,i[n]=255&a)}return i},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,i){return e+t+i>>>0},t.sum32_4=function(e,t,i,r){return e+t+i+r>>>0},t.sum32_5=function(e,t,i,r,n){return e+t+i+r+n>>>0},t.sum64=function(e,t,i,r){var n=e[t],a=r+e[t+1]>>>0;e[t]=(a<r?1:0)+i+n>>>0,e[t+1]=a},t.sum64_hi=function(e,t,i,r){return(t+r>>>0<t?1:0)+e+i>>>0},t.sum64_lo=function(e,t,i,r){return t+r>>>0},t.sum64_4_hi=function(e,t,i,r,n,a,o,s){var c,l=t;return e+i+n+o+(0+((l=l+r>>>0)<t?1:0)+((l=l+a>>>0)<a?1:0)+((l=l+s>>>0)<s?1:0))>>>0},t.sum64_4_lo=function(e,t,i,r,n,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,i,r,n,a,o,s,c,l){var u,d=t;return e+i+n+o+c+(0+((d=d+r>>>0)<t?1:0)+((d=d+a>>>0)<a?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+l>>>0)<l?1:0))>>>0},t.sum64_5_lo=function(e,t,i,r,n,a,o,s,c,l){return t+r+a+s+l>>>0},t.rotr64_hi=function(e,t,i){return(t<<32-i|e>>>i)>>>0},t.rotr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0},t.shr64_hi=function(e,t,i){return e>>>i},t.shr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0}},76304:(e,t,i)=>{"use strict";var r=i(13108),n=i(89150),a=i(28113);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),i=n.toArray(e.nonce,e.nonceEnc||"hex"),r=n.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,i,r)}e.exports=o,o.prototype._init=function(e,t,i){var r=e.concat(t).concat(i);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(r),this._reseed=1,this.reseedInterval=0x1000000000000},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,i,r){"string"!=typeof t&&(r=i,i=t,t=null),e=n.toArray(e,t),i=n.toArray(i,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},o.prototype.generate=function(e,t,i,r){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(r=i,i=t,t=null),i&&(i=n.toArray(i,r||"hex"),this._update(i));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(i),this._reseed++,n.encode(o,t)}},1606:(e,t,i)=>{e=i.nmd(e);var r,n,a="__lodash_hash_undefined__",o="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",g="[object Promise]",w="[object RegExp]",m="[object Set]",b="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",C=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[s]=E[y]=E[c]=E[x]=E[l]=E[u]=E[d]=E[h]=E[p]=E[f]=E[w]=E[m]=E[b]=E[v]=!1;var _="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,k="object"==typeof self&&self&&self.Object===Object&&self,I=_||k||Function("return this")(),S=t&&!t.nodeType&&t,T=S&&e&&!e.nodeType&&e,N=T&&T.exports===S,P=N&&_.process,R=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),O=R&&R.isTypedArray;function M(e){var t=-1,i=Array(e.size);return e.forEach(function(e,r){i[++t]=[r,e]}),i}function D(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var U=Array.prototype,$=Function.prototype,L=Object.prototype,j=I["__core-js_shared__"],B=$.toString,W=L.hasOwnProperty,q=function(){var e=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=L.toString,z=RegExp("^"+B.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=N?I.Buffer:void 0,Z=I.Symbol,V=I.Uint8Array,K=L.propertyIsEnumerable,G=U.splice,J=Z?Z.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Q=F?F.isBuffer:void 0,X=(r=Object.keys,n=Object,function(e){return r(n(e))}),ee=eE(I,"DataView"),et=eE(I,"Map"),ei=eE(I,"Promise"),er=eE(I,"Set"),en=eE(I,"WeakMap"),ea=eE(Object,"create"),eo=eI(ee),es=eI(et),ec=eI(ei),el=eI(er),eu=eI(en),ed=Z?Z.prototype:void 0,eh=ed?ed.valueOf:void 0;function ep(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function ef(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function ew(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new eg;++t<i;)this.add(e[t])}function em(e){var t=this.__data__=new ef(e);this.size=t.size}function eb(e,t){for(var i=e.length;i--;)if(eS(e[i][0],t))return i;return -1}function ev(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=W.call(e,J),i=e[J];try{e[J]=void 0;var r=!0}catch(e){}var n=H.call(e);return r&&(t?e[J]=i:delete e[J]),n}(e):H.call(e)}function ey(e){return eD(e)&&ev(e)==o}function ex(e,t,i,r,n,a){var o=1&i,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,h=2&i?new ew:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],f=t[u];if(r)var g=o?r(f,p,u,t,e,a):r(p,f,u,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!function(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(p===e||n(p,e,i,r,a)))return h.push(t)})){d=!1;break}}else if(!(p===f||n(p,f,i,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function eC(e){var t;return t=function(e){return null!=e&&eO(e.length)&&!eR(e)?function(e,t){var i,r=eN(e),n=!r&&eT(e),a=!r&&!n&&eP(e),o=!r&&!n&&!a&&eU(e),s=r||n||a||o,c=s?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],l=c.length;for(var u in e)W.call(e,u)&&!(s&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(i=null==(i=l)?0x1fffffffffffff:i)&&("number"==typeof u||A.test(u))&&u>-1&&u%1==0&&u<i))&&c.push(u);return c}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||L))return X(e);var t,i=[];for(var r in Object(e))W.call(e,r)&&"constructor"!=r&&i.push(r);return i}(e)}(e),eN(e)?t:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(t,e_(e))}function eA(e,t){var i,r=e.__data__;return("string"==(i=typeof t)||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eE(e,t){var i=null==e?void 0:e[t];return!(!eM(i)||q&&q in i)&&(eR(i)?z:C).test(eI(i))?i:void 0}ep.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ep.prototype.get=function(e){var t=this.__data__;if(ea){var i=t[e];return i===a?void 0:i}return W.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:W.call(t,e)},ep.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ea&&void 0===t?a:t,this},ef.prototype.clear=function(){this.__data__=[],this.size=0},ef.prototype.delete=function(e){var t=this.__data__,i=eb(t,e);return!(i<0)&&(i==t.length-1?t.pop():G.call(t,i,1),--this.size,!0)},ef.prototype.get=function(e){var t=this.__data__,i=eb(t,e);return i<0?void 0:t[i][1]},ef.prototype.has=function(e){return eb(this.__data__,e)>-1},ef.prototype.set=function(e,t){var i=this.__data__,r=eb(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(et||ef),string:new ep}},eg.prototype.delete=function(e){var t=eA(this,e).delete(e);return this.size-=t?1:0,t},eg.prototype.get=function(e){return eA(this,e).get(e)},eg.prototype.has=function(e){return eA(this,e).has(e)},eg.prototype.set=function(e,t){var i=eA(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},ew.prototype.add=ew.prototype.push=function(e){return this.__data__.set(e,a),this},ew.prototype.has=function(e){return this.__data__.has(e)},em.prototype.clear=function(){this.__data__=new ef,this.size=0},em.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},em.prototype.get=function(e){return this.__data__.get(e)},em.prototype.has=function(e){return this.__data__.has(e)},em.prototype.set=function(e,t){var i=this.__data__;if(i instanceof ef){var r=i.__data__;if(!et||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new eg(r)}return i.set(e,t),this.size=i.size,this};var e_=Y?function(e){return null==e?[]:function(e,t){for(var i=-1,r=null==e?0:e.length,n=0,a=[];++i<r;){var o=e[i];t(o,i,e)&&(a[n++]=o)}return a}(Y(e=Object(e)),function(t){return K.call(e,t)})}:function(){return[]},ek=ev;function eI(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eS(e,t){return e===t||e!=e&&t!=t}(ee&&ek(new ee(new ArrayBuffer(1)))!=x||et&&ek(new et)!=h||ei&&ek(ei.resolve())!=g||er&&ek(new er)!=m||en&&ek(new en)!=v)&&(ek=function(e){var t=ev(e),i=t==f?e.constructor:void 0,r=i?eI(i):"";if(r)switch(r){case eo:return x;case es:return h;case ec:return g;case el:return m;case eu:return v}return t});var eT=ey(function(){return arguments}())?ey:function(e){return eD(e)&&W.call(e,"callee")&&!K.call(e,"callee")},eN=Array.isArray,eP=Q||function(){return!1};function eR(e){if(!eM(e))return!1;var t=ev(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eO(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eD(e){return null!=e&&"object"==typeof e}var eU=O?function(e){return O(e)}:function(e){return eD(e)&&eO(e.length)&&!!E[ev(e)]};e.exports=function(e,t){return function e(t,i,r,n,a){return t===i||(null!=t&&null!=i&&(eD(t)||eD(i))?function(e,t,i,r,n,a){var d=eN(e),g=eN(t),v=d?s:ek(e),C=g?s:ek(t);v=v==o?f:v,C=C==o?f:C;var A=v==f,E=C==f,_=v==C;if(_&&eP(e)){if(!eP(t))return!1;d=!0,A=!1}if(_&&!A)return a||(a=new em),d||eU(e)?ex(e,t,i,r,n,a):function(e,t,i,r,n,a,o){switch(i){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case y:if(e.byteLength!=t.byteLength||!a(new V(e),new V(t)))break;return!0;case c:case l:case p:return eS(+e,+t);case u:return e.name==t.name&&e.message==t.message;case w:case b:return e==t+"";case h:var s=M;case m:var d=1&r;if(s||(s=D),e.size!=t.size&&!d)break;var f=o.get(e);if(f)return f==t;r|=2,o.set(e,t);var g=ex(s(e),s(t),r,n,a,o);return o.delete(e),g;case"[object Symbol]":if(eh)return eh.call(e)==eh.call(t)}return!1}(e,t,v,i,r,n,a);if(!(1&i)){var k=A&&W.call(e,"__wrapped__"),I=E&&W.call(t,"__wrapped__");if(k||I){var S=k?e.value():e,T=I?t.value():t;return a||(a=new em),n(S,T,i,r,a)}}return!!_&&(a||(a=new em),function(e,t,i,r,n,a){var o=1&i,s=eC(e),c=s.length;if(c!=eC(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:W.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var f=e[u=s[l]],g=t[u];if(r)var w=o?r(g,f,u,t,e,a):r(f,g,u,e,t,a);if(!(void 0===w?f===g||n(f,g,i,r,a):w)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,i,r,n,a))}(t,i,r,n,e,a):t!=t&&i!=i)}(e,t)}},28113:e=>{function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,i){if(e!=t)throw Error(i||"Assertion failed: "+e+" != "+t)}},89150:(e,t)=>{"use strict";function i(e){return 1===e.length?"0"+e:e}function r(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)i[r]=0|e[r];return i}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var r=0;r<e.length;r+=2)i.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),a=n>>8,o=255&n;a?i.push(a,o):i.push(o)}return i},t.zero2=i,t.toHex=r,t.encode=function(e,t){return"hex"===t?r(e):e}},28480:(e,t,i)=>{let r=i(63426),n=i(87442),a=i(14283),o=i(57487);function s(e,t,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!r())throw Error("Callback required as last argument");if(l){if(c<2)throw Error("Too few arguments provided");2===c?(o=i,i=t,t=a=void 0):3===c&&(t.getContext&&void 0===o?(o=a,a=void 0):(o=a,a=i,i=t,t=void 0))}else{if(c<1)throw Error("Too few arguments provided");return 1===c?(i=t,t=a=void 0):2!==c||t.getContext||(a=i,i=t,t=void 0),new Promise(function(r,o){try{let o=n.create(i,a);r(e(o,t,a))}catch(e){o(e)}})}try{let r=n.create(i,a);o(null,e(r,t,a))}catch(e){o(e)}}t.create=n.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,function(e,t,i){return o.render(e,i)})},63426:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},17406:(e,t,i)=>{let r=i(61553).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,i=r(e),n=145===i?26:2*Math.ceil((i-13)/(2*t-2)),a=[i-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-n;return a.push(6),a.reverse()},t.getPositions=function(e){let i=[],r=t.getRowColCoords(e),n=r.length;for(let e=0;e<n;e++)for(let t=0;t<n;t++)(0!==e||0!==t)&&(0!==e||t!==n-1)&&(e!==n-1||0!==t)&&i.push([r[e],r[t]]);return i}},96426:(e,t,i)=>{let r=i(60999),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let i=45*n.indexOf(this.data[t]);i+=n.indexOf(this.data[t+1]),e.put(i,11)}this.data.length%2&&e.put(n.indexOf(this.data[t]),6)},e.exports=a},93104:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let i=0;i<t;i++)this.putBit((e>>>t-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},50999:e=>{function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,i,r){let n=e*this.size+t;this.data[n]=i,r&&(this.reservedBit[n]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},63577:(e,t,i)=>{let r=i(31159),n=i(60999);function a(e){this.mode=n.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)},e.exports=a},45313:(e,t,i)=>{let r=i(70938),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return n[(e-1)*4+0];case r.M:return n[(e-1)*4+1];case r.Q:return n[(e-1)*4+2];case r.H:return n[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[(e-1)*4+0];case r.M:return a[(e-1)*4+1];case r.Q:return a[(e-1)*4+2];case r.H:return a[(e-1)*4+3];default:return}}},70938:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,i){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return i}}},24203:(e,t,i)=>{let r=i(61553).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},38962:(e,t,i)=>{let r=i(61553),n=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let i=e.bit<<3|t,a=i<<10;for(;r.getBCHDigit(a)-n>=0;)a^=1335<<r.getBCHDigit(a)-n;return(i<<10|a)^21522}},15236:(e,t)=>{let i=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)i[t]=e,r[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)i[e]=i[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return r[e]},t.exp=function(e){return i[e]},t.mul=function(e,t){return 0===e||0===t?0:i[r[e]+r[t]]}},93090:(e,t,i)=>{let r=i(60999),n=i(61553);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=n.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");i=(i>>>8&255)*192+(255&i),e.put(i,13)}},e.exports=a},42695:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let i={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,n=0,a=0,o=null,s=null;for(let c=0;c<t;c++){n=a=0,o=s=null;for(let l=0;l<t;l++){let t=e.get(c,l);t===o?n++:(n>=5&&(r+=i.N1+(n-5)),o=t,n=1),(t=e.get(l,c))===s?a++:(a>=5&&(r+=i.N1+(a-5)),s=t,a=1)}n>=5&&(r+=i.N1+(n-5)),a>=5&&(r+=i.N1+(a-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let i=0;i<t-1;i++)for(let n=0;n<t-1;n++){let t=e.get(i,n)+e.get(i,n+1)+e.get(i+1,n)+e.get(i+1,n+1);(4===t||0===t)&&r++}return r*i.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,n=0,a=0;for(let i=0;i<t;i++){n=a=0;for(let o=0;o<t;o++)n=n<<1&2047|e.get(i,o),o>=10&&(1488===n||93===n)&&r++,a=a<<1&2047|e.get(o,i),o>=10&&(1488===a||93===a)&&r++}return r*i.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return Math.abs(Math.ceil(100*t/r/5)-10)*i.N4},t.applyMask=function(e,i){let r=i.size;for(let n=0;n<r;n++)for(let a=0;a<r;a++)i.isReserved(a,n)||i.xor(a,n,function(e,i,r){switch(e){case t.Patterns.PATTERN000:return(i+r)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(i+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return i*r%2+i*r%3==0;case t.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case t.Patterns.PATTERN111:return(i*r%3+(i+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,a,n))},t.getBestMask=function(e,i){let r=Object.keys(t.Patterns).length,n=0,a=1/0;for(let o=0;o<r;o++){i(o),t.applyMask(o,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),r<a&&(a=r,n=o)}return n}},60999:(e,t,i)=>{let r=i(14925),n=i(95347);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,i){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return i}}},91234:(e,t,i)=>{let r=i(60999);function n(e){this.mode=r.NUMERIC,this.data=e.toString()}n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t,i;for(t=0;t+3<=this.data.length;t+=3)i=parseInt(this.data.substr(t,3),10),e.put(i,10);let r=this.data.length-t;r>0&&(i=parseInt(this.data.substr(t),10),e.put(i,3*r+1))},e.exports=n},23094:(e,t,i)=>{let r=i(15236);t.mul=function(e,t){let i=new Uint8Array(e.length+t.length-1);for(let n=0;n<e.length;n++)for(let a=0;a<t.length;a++)i[n+a]^=r.mul(e[n],t[a]);return i},t.mod=function(e,t){let i=new Uint8Array(e);for(;i.length-t.length>=0;){let e=i[0];for(let n=0;n<t.length;n++)i[n]^=r.mul(t[n],e);let n=0;for(;n<i.length&&0===i[n];)n++;i=i.slice(n)}return i},t.generateECPolynomial=function(e){let i=new Uint8Array([1]);for(let n=0;n<e;n++)i=t.mul(i,new Uint8Array([1,r.exp(n)]));return i}},87442:(e,t,i)=>{let r=i(61553),n=i(70938),a=i(93104),o=i(50999),s=i(17406),c=i(24203),l=i(42695),u=i(45313),d=i(15783),h=i(39012),p=i(38962),f=i(60999),g=i(46706);function w(e,t,i){let r,n;let a=e.size,o=p.getEncodedBits(t,i);for(r=0;r<15;r++)n=(o>>r&1)==1,r<6?e.set(r,8,n,!0):r<8?e.set(r+1,8,n,!0):e.set(a-15+r,8,n,!0),r<8?e.set(8,a-r-1,n,!0):r<9?e.set(8,15-r-1+1,n,!0):e.set(8,15-r-1,n,!0);e.set(a-8,8,1,!0)}t.create=function(e,t){let i,p;if(void 0===e||""===e)throw Error("No input text");let m=n.M;return void 0!==t&&(m=n.from(t.errorCorrectionLevel,n.M),i=h.from(t.version),p=l.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,i,n){let p;if(Array.isArray(e))p=g.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=g.rawSplit(e);r=h.getBestVersionForData(t,i)}p=g.fromString(e,r||40)}else throw Error("Invalid data");let m=h.getBestVersionForData(p,i);if(!m)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<m)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else t=m;let b=function(e,t,i){let n=new a;i.forEach(function(t){n.put(t.mode.bit,4),n.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(n)});let o=(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t))*8;for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);let s=(o-n.getLengthInBits())/8;for(let e=0;e<s;e++)n.put(e%2?17:236,8);return function(e,t,i){let n,a;let o=r.getSymbolTotalCodewords(t),s=o-u.getTotalCodewordsCount(t,i),c=u.getBlocksCount(t,i),l=o%c,h=c-l,p=Math.floor(o/c),f=Math.floor(s/c),g=f+1,w=p-f,m=new d(w),b=0,v=Array(c),y=Array(c),x=0,C=new Uint8Array(e.buffer);for(let e=0;e<c;e++){let t=e<h?f:g;v[e]=C.slice(b,b+t),y[e]=m.encode(v[e]),b+=t,x=Math.max(x,t)}let A=new Uint8Array(o),E=0;for(n=0;n<x;n++)for(a=0;a<c;a++)n<v[a].length&&(A[E++]=v[a][n]);for(n=0;n<w;n++)for(a=0;a<c;a++)A[E++]=y[a][n];return A}(n,e,t)}(t,i,p),v=new o(r.getSymbolSize(t));return function(e,t){let i=e.size,r=c.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(n+t<=-1)&&!(i<=n+t))for(let r=-1;r<=7;r++)a+r<=-1||i<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(n+t,a+r,!0,!0):e.set(n+t,a+r,!1,!0))}}(v,t),function(e){let t=e.size;for(let i=8;i<t-8;i++){let t=i%2==0;e.set(i,6,t,!0),e.set(6,i,t,!0)}}(v),function(e,t){let i=s.getPositions(t);for(let t=0;t<i.length;t++){let r=i[t][0],n=i[t][1];for(let t=-2;t<=2;t++)for(let i=-2;i<=2;i++)-2===t||2===t||-2===i||2===i||0===t&&0===i?e.set(r+t,n+i,!0,!0):e.set(r+t,n+i,!1,!0)}}(v,t),w(v,i,0),t>=7&&function(e,t){let i,r,n;let a=e.size,o=h.getEncodedBits(t);for(let t=0;t<18;t++)i=Math.floor(t/3),r=t%3+a-8-3,n=(o>>t&1)==1,e.set(i,r,n,!0),e.set(r,i,n,!0)}(v,t),function(e,t){let i=e.size,r=-1,n=i-1,a=7,o=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!e.isReserved(n,s-i)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(n,s-i,r),-1==--a&&(o++,a=7)}if((n+=r)<0||i<=n){n-=r,r=-r;break}}}(v,b),isNaN(n)&&(n=l.getBestMask(v,w.bind(null,v,i))),l.applyMask(n,v),w(v,i,n),{modules:v,version:t,errorCorrectionLevel:i,maskPattern:n,segments:p}}(e,i,m,p)}},15783:(e,t,i)=>{let r=i(23094);function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let i=r.mod(t,this.genPoly),n=this.degree-i.length;if(n>0){let e=new Uint8Array(this.degree);return e.set(i,n),e}return i},e.exports=n},95347:(e,t)=>{let i="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(n,"g"),t.NUMERIC=RegExp(i,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let a=RegExp("^"+r+"$"),o=RegExp("^"+i+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},46706:(e,t,i)=>{let r=i(60999),n=i(91234),a=i(96426),o=i(63577),s=i(93090),c=i(95347),l=i(61553),u=i(35363);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,i){let r;let n=[];for(;null!==(r=e.exec(i));)n.push({data:r[0],index:r.index,mode:t,length:r[0].length});return n}function p(e){let t,i;let n=h(c.NUMERIC,r.NUMERIC,e),a=h(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return l.isKanjiModeEnabled()?(t=h(c.BYTE,r.BYTE,e),i=h(c.KANJI,r.KANJI,e)):(t=h(c.BYTE_KANJI,r.BYTE,e),i=[]),n.concat(a,t,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return n.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function g(e,t){let i;let c=r.getBestModeForData(e);if((i=r.from(t,c))!==r.BYTE&&i.bit<c.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(i)+".\n Suggested mode is: "+r.toString(c));switch(i!==r.KANJI||l.isKanjiModeEnabled()||(i=r.BYTE),i){case r.NUMERIC:return new n(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,i){let n=function(e,t){let i={},n={start:{}},a=["start"];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=""+o+e;c.push(u),i[u]={node:l,lastCount:0},n[u]={};for(let e=0;e<a.length;e++){let o=a[e];i[o]&&i[o].node.mode===l.mode?(n[o][u]=f(i[o].lastCount+l.length,l.mode)-f(i[o].lastCount,l.mode),i[o].lastCount+=l.length):(i[o]&&(i[o].lastCount=l.length),n[o][u]=f(l.length,l.mode)+4+r.getCharCountIndicator(l.mode,t))}}a=c}for(let e=0;e<a.length;e++)n[a[e]].end=0;return{map:n,table:i}}(function(e){let t=[];for(let i=0;i<e.length;i++){let n=e[i];switch(n.mode){case r.NUMERIC:t.push([n,{data:n.data,mode:r.ALPHANUMERIC,length:n.length},{data:n.data,mode:r.BYTE,length:n.length}]);break;case r.ALPHANUMERIC:t.push([n,{data:n.data,mode:r.BYTE,length:n.length}]);break;case r.KANJI:t.push([n,{data:n.data,mode:r.BYTE,length:d(n.data)}]);break;case r.BYTE:t.push([{data:n.data,mode:r.BYTE,length:d(n.data)}])}}return t}(p(e,l.isKanjiModeEnabled())),i),a=u.find_path(n.map,"start","end"),o=[];for(let e=1;e<a.length-1;e++)o.push(n.table[a[e]].node);return t.fromArray(o.reduce(function(e,t){let i=e.length-1>=0?e[e.length-1]:null;return i&&i.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},61553:(e,t)=>{let i;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');i=e},t.isKanjiModeEnabled=function(){return void 0!==i},t.toSJIS=function(e){return i(e)}},14925:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},39012:(e,t,i)=>{let r=i(61553),n=i(45313),a=i(70938),o=i(60999),s=i(14925),c=r.getBCHDigit(7973);function l(e,t){return o.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,i){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===i&&(i=o.BYTE);let a=(r.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,t))*8;if(i===o.MIXED)return a;let c=a-l(i,e);switch(i){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,i){let r;let n=a.from(i,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,i){for(let r=1;r<=40;r++)if(function(e,t){let i=0;return e.forEach(function(e){let r=l(e.mode,t);i+=r+e.getBitsLength()}),i}(e,r)<=t.getCapacity(r,i,o.MIXED))return r}(e,n);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,i,r){for(let n=1;n<=40;n++)if(i<=t.getCapacity(n,r,e))return n}(r.mode,r.getLength(),n)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-c>=0;)t^=7973<<r.getBCHDigit(t)-c;return e<<12|t}},14283:(e,t,i)=>{let r=i(8901);t.render=function(e,t,i){var n;let a=i,o=t;void 0!==a||t&&t.getContext||(a=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),a=r.getOptions(a);let s=r.getImageWidth(e.modules.size,a),c=o.getContext("2d"),l=c.createImageData(s,s);return r.qrToImageData(l.data,e,a),n=o,c.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px",c.putImageData(l,0,0),o},t.renderToDataURL=function(e,i,r){let n=r;void 0!==n||i&&i.getContext||(n=i,i=void 0),n||(n={});let a=t.render(e,i,n),o=n.type||"image/png",s=n.rendererOpts||{};return a.toDataURL(o,s.quality)}},57487:(e,t,i)=>{let r=i(8901);function n(e,t){let i=e.a/255,r=t+'="'+e.hex+'"';return i<1?r+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function a(e,t,i){let r=e+t;return void 0!==i&&(r+=" "+i),r}t.render=function(e,t,i){let o=r.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*o.margin,u=o.color.light.a?"<path "+n(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+n(o.color.dark,"stroke")+' d="'+function(e,t,i){let r="",n=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);l||o||(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(r+=o?a("M",l+i,.5+u+i):a("m",n,0),n=0,o=!1),l+1<t&&e[c+1]||(r+=a("h",s),s=0)):n++}return r}(c,s,o.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+('viewBox="0 0 '+l)+" "+l+'" shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof i&&i(null,h),h}},8901:(e,t)=>{function i(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let i=parseInt(t.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:r,scale:r?4:n,margin:t,color:{dark:i(e.color.dark||"#000000ff"),light:i(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,i){let r=t.getScale(e,i);return Math.floor((e+2*i.margin)*r)},t.qrToImageData=function(e,i,r){let n=i.modules.size,a=i.modules.data,o=t.getScale(n,r),s=Math.floor((n+2*r.margin)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let i=0;i<s;i++){let u=(t*s+i)*4,d=r.color.light;t>=c&&i>=c&&t<s-c&&i<s-c&&(d=l[a[Math.floor((t-c)/o)*n+Math.floor((i-c)/o)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},32762:(e,t,i)=>{"use strict";let r=i(87414),n=i(34961),a=i(10257),o=i(49509),s=e=>null==e,c=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function d(e,t){return t.decode?n(e):e}function h(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function p(e){let t=(e=h(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let i=function(e){let t;switch(e.arrayFormat){case"index":return(e,i,r)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){r[e]=i;return}void 0===r[e]&&(r[e]={}),r[e][t[1]]=i};case"bracket":return(e,i,r)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){r[e]=i;return}if(void 0===r[e]){r[e]=[i];return}r[e]=[].concat(r[e],i)};case"colon-list-separator":return(e,i,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){r[e]=i;return}if(void 0===r[e]){r[e]=[i];return}r[e]=[].concat(r[e],i)};case"comma":case"separator":return(t,i,r)=>{let n="string"==typeof i&&i.includes(e.arrayFormatSeparator),a="string"==typeof i&&!n&&d(i,e).includes(e.arrayFormatSeparator);i=a?d(i,e):i;let o=n||a?i.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===i?i:d(i,e);r[t]=o};case"bracket-separator":return(t,i,r)=>{let n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n){r[t]=i?d(i,e):i;return}let a=null===i?[]:i.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===r[t]){r[t]=a;return}r[t]=[].concat(r[t],a)};default:return(e,t,i)=>{if(void 0===i[e]){i[e]=t;return}i[e]=[].concat(i[e],t)}}}(t),r=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return r;for(let n of e.split("&")){if(""===n)continue;let[e,o]=a(t.decode?n.replace(/\+/g," "):n,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:d(o,t),i(d(e,t),o,r)}for(let e of Object.keys(r)){let i=r[e];if("object"==typeof i&&null!==i)for(let e of Object.keys(i))i[e]=f(i[e],t);else r[e]=f(i,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let i=r[t];return i&&"object"==typeof i&&!Array.isArray(i)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(i):e[t]=i,e},Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let i=i=>t.skipNull&&s(e[i])||t.skipEmptyString&&""===e[i],r=function(e){switch(e.arrayFormat){case"index":return t=>(i,r)=>{let n=i.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?i:null===r?[...i,[u(t,e),"[",n,"]"].join("")]:[...i,[u(t,e),"[",u(n,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(i,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?i:null===r?[...i,[u(t,e),"[]"].join("")]:[...i,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(i,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?i:null===r?[...i,[u(t,e),":list="].join("")]:[...i,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return i=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:(n=null===n?"":n,0===r.length)?[[u(i,e),t,u(n,e)].join("")]:[[r,u(n,e)].join(e.arrayFormatSeparator)]}default:return t=>(i,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?i:null===r?[...i,u(t,e)]:[...i,[u(t,e),"=",u(r,e)].join("")]}}(t),n={};for(let t of Object.keys(e))i(t)||(n[t]=e[t]);let a=Object.keys(n);return!1!==t.sort&&a.sort(t.sort),a.map(i=>{let n=e[i];return void 0===n?"":null===n?u(i,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?u(i,t)+"[]":n.reduce(r(i),[]).join("&"):u(i,t)+"="+u(n,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[i,r]=a(e,"#");return Object.assign({url:i.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:d(r,t)}:{})},t.stringifyUrl=(e,i)=>{i=Object.assign({encode:!0,strict:!0,[c]:!0},i);let r=h(e.url).split("?")[0]||"",n=t.extract(e.url),a=Object.assign(t.parse(n,{sort:!1}),e.query),o=t.stringify(a,i);o&&(o=`?${o}`);let s=function(e){let t="",i=e.indexOf("#");return -1!==i&&(t=e.slice(i)),t}(e.url);return e.fragmentIdentifier&&(s=`#${i[c]?u(e.fragmentIdentifier,i):e.fragmentIdentifier}`),`${r}${o}${s}`},t.pick=(e,i,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[c]:!1},r);let{url:n,query:a,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:n,query:o(a,i),fragmentIdentifier:s},r)},t.exclude=(e,i,r)=>{let n=Array.isArray(i)?e=>!i.includes(e):(e,t)=>!i(e,t);return t.pick(e,n,r)}},54213:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,i,r){var n=r&&r.stringify||t;if("object"==typeof e&&null!==e){var a=i.length+1;if(1===a)return e;var o=Array(a);o[0]=n(e);for(var s=1;s<a;s++)o[s]=n(i[s]);return o.join(" ")}if("string"!=typeof e)return e;var c=i.length;if(0===c)return e;for(var l="",u=0,d=-1,h=e&&e.length||0,p=0;p<h;){if(37===e.charCodeAt(p)&&p+1<h){switch(d=d>-1?d:0,e.charCodeAt(p+1)){case 100:case 102:if(u>=c||null==i[u])break;d<p&&(l+=e.slice(d,p)),l+=Number(i[u]),d=p+2,p++;break;case 105:if(u>=c||null==i[u])break;d<p&&(l+=e.slice(d,p)),l+=Math.floor(Number(i[u])),d=p+2,p++;break;case 79:case 111:case 106:if(u>=c||void 0===i[u])break;d<p&&(l+=e.slice(d,p));var f=typeof i[u];if("string"===f){l+="'"+i[u]+"'",d=p+2,p++;break}if("function"===f){l+=i[u].name||"<anonymous>",d=p+2,p++;break}l+=n(i[u]),d=p+2,p++;break;case 115:if(u>=c)break;d<p&&(l+=e.slice(d,p)),l+=String(i[u]),d=p+2,p++;break;case 37:d<p&&(l+=e.slice(d,p)),l+="%",d=p+2,p++,u--}++u}++p}return -1===d?e:(d<h&&(l+=e.slice(d)),l)}},10257:e=>{"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let i=e.indexOf(t);return -1===i?[e]:[e.slice(0,i),e.slice(i+t.length)]}},87414:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},50752:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__assign:()=>a,__asyncDelegator:()=>y,__asyncGenerator:()=>v,__asyncValues:()=>x,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>_,__classPrivateFieldSet:()=>k,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>p,__extends:()=>n,__generator:()=>d,__importDefault:()=>E,__importStar:()=>A,__makeTemplateObject:()=>C,__metadata:()=>l,__param:()=>c,__read:()=>g,__rest:()=>o,__spread:()=>w,__spreadArrays:()=>m,__values:()=>f});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function n(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var a=function(){return(a=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function o(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i}function s(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}function c(e,t){return function(i,r){t(i,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,r){return new(i||(i=Promise))(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,s)}c((r=r.apply(e,t||[])).next())})}function d(e,t){var i,r,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{i=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}function p(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||(t[i]=e[i])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,a=i.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function m(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var r=Array(e),n=0,t=0;t<i;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,n++)r[n]=a[o];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,n=i.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){n[e]&&(r[e]=function(t){return new Promise(function(i,r){a.push([e,t,i,r])>1||s(e,t)})})}function s(e,t){try{var i;(i=n[e](t)).value instanceof b?Promise.resolve(i.value.v).then(c,l):u(a[0][2],i)}catch(e){u(a[0][3],e)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function y(e){var t,i;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,n){t[r]=e[r]?function(t){return(i=!i)?{value:b(e[r](t)),done:"return"===r}:n?n(t):t}:n}}function x(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(t){return new Promise(function(r,n){!function(e,t,i,r){Promise.resolve(r).then(function(t){e({value:t,done:i})},t)}(r,n,(t=e[i](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,i){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,i),i}},13361:e=>{"use strict";e.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},87960:(e,t,i)=>{"use strict";let r=i(54213);e.exports=a;let n=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function a(e){var t,i;(e=e||{}).browser=e.browser||{};let r=e.browser.transmit;if(r&&"function"!=typeof r.send)throw Error("pino: transmit option must have a send function");let u=e.browser.write||n;e.browser.write&&(e.browser.asObject=!0);let d=e.serializers||{},g=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(d),w=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(w=!1),"function"==typeof u&&(u.error=u.fatal=u.warn=u.info=u.debug=u.trace=u),!1===e.enabled&&(e.level="silent");let m=e.level||"info",b=Object.create(u);b.log||(b.log=h),Object.defineProperty(b,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(b,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,o(v,b,"error","log"),o(v,b,"fatal","error"),o(v,b,"warn","error"),o(v,b,"info","log"),o(v,b,"debug","log"),o(v,b,"trace","log")}});let v={transmit:r,serialize:g,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:"function"==typeof(i=e).timestamp?i.timestamp:!1===i.timestamp?p:f};return b.levels=a.levels,b.level=m,b.setMaxListeners=b.getMaxListeners=b.emit=b.addListener=b.on=b.prependListener=b.once=b.prependOnceListener=b.removeListener=b.removeAllListeners=b.listeners=b.listenerCount=b.eventNames=b.write=b.flush=h,b.serializers=d,b._serialize=g,b._stdErrSerialize=w,b.child=function(t,i){if(!t)throw Error("missing bindings for child Pino");i=i||{},g&&t.serializers&&(i.serializers=t.serializers);let n=i.serializers;if(g&&n){var a=Object.assign({},d,n),o=!0===e.browser.serialize?Object.keys(a):g;delete t.serializers,s([t],o,a,this._stdErrSerialize)}function u(e){this._childLevel=(0|e._childLevel)+1,this.error=c(e,t,"error"),this.fatal=c(e,t,"fatal"),this.warn=c(e,t,"warn"),this.info=c(e,t,"info"),this.debug=c(e,t,"debug"),this.trace=c(e,t,"trace"),a&&(this.serializers=a,this._serialize=o),r&&(this._logEvent=l([].concat(e._logEvent.bindings,t)))}return u.prototype=this,new u(this)},r&&(b._logEvent=l()),b}function o(e,t,i,o){let c=Object.getPrototypeOf(t);t[i]=t.levelVal>t.levels.values[i]?h:c[i]?c[i]:n[i]||n[o]||h,function(e,t,i){if(e.transmit||t[i]!==h){var o;t[i]=(o=t[i],function(){let c=e.timestamp(),u=Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===n?n:this;for(var h=0;h<u.length;h++)u[h]=arguments[h];if(e.serialize&&!e.asObject&&s(u,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?o.call(d,function(e,t,i,n){e._serialize&&s(i,e._serialize,e.serializers,e._stdErrSerialize);let o=i.slice(),c=o[0],l={};n&&(l.time=n),l.level=a.levels.values[t];let u=(0|e._childLevel)+1;if(u<1&&(u=1),null!==c&&"object"==typeof c){for(;u--&&"object"==typeof o[0];)Object.assign(l,o.shift());c=o.length?r(o.shift(),o):void 0}else"string"==typeof c&&(c=r(o.shift(),o));return void 0!==c&&(l.msg=c),l}(this,i,u,c)):o.apply(d,u),e.transmit){let r=e.transmit.level||t.level,n=a.levels.values[r],o=a.levels.values[i];if(o<n)return;(function(e,t,i){let r=t.send,n=t.ts,a=t.methodLevel,o=t.methodValue,c=t.val,u=e._logEvent.bindings;s(i,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=n,e._logEvent.messages=i.filter(function(e){return -1===u.indexOf(e)}),e._logEvent.level.label=a,e._logEvent.level.value=o,r(a,e._logEvent,c),e._logEvent=l(u)})(this,{ts:c,methodLevel:i,methodValue:o,transmitLevel:r,transmitValue:a.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},u)}})}}(e,t,i)}function s(e,t,i,r){for(let n in e)if(r&&e[n]instanceof Error)e[n]=a.stdSerializers.err(e[n]);else if("object"==typeof e[n]&&!Array.isArray(e[n]))for(let r in e[n])t&&t.indexOf(r)>-1&&r in i&&(e[n][r]=i[r](e[n][r]))}function c(e,t,i){return function(){let r=Array(1+arguments.length);r[0]=t;for(var n=1;n<r.length;n++)r[n]=arguments[n-1];return e[i].apply(this,r)}}function l(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function u(){return{}}function d(e){return e}function h(){}function p(){return!1}function f(){return Date.now()}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers={mapHttpRequest:u,mapHttpResponse:u,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:u,res:u,err:function(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let i in e)void 0===t[i]&&(t[i]=e[i]);return t}},a.stdTimeFunctions=Object.assign({},{nullTime:p,epochTime:f,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},1273:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var r=i(21127);let n={attribute:!0,type:String,converter:r.W3,reflect:!1,hasChanged:r.Ec},a=(e=n,t,i)=>{let{kind:r,metadata:a}=i,o=globalThis.litPropertyMetadata.get(a);if(void 0===o&&globalThis.litPropertyMetadata.set(a,o=new Map),o.set(i.name,e),"accessor"===r){let{name:r}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(r,n,e)},init(t){return void 0!==t&&this.C(r,void 0,e),t}}}if("setter"===r){let{name:r}=i;return function(i){let n=this[r];t.call(this,i),this.requestUpdate(r,n,e)}}throw Error("Unsupported decorator location: "+r)};function o(e){return(t,i)=>"object"==typeof i?a(e,t,i):((e,t,i)=>{let r=t.hasOwnProperty(i);return t.constructor.createProperty(i,r?{...e,wrapped:!0}:e),r?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}},37857:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});var r=i(1273);function n(e){return(0,r.M)({...e,state:!0,attribute:!1})}},21127:(e,t,i)=>{"use strict";i.d(t,{mN:()=>k,AH:()=>l,W3:()=>A,Ec:()=>E,iz:()=>c});let r=globalThis,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),o=new WeakMap;class s{constructor(e,t,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(n&&void 0===e){let i=void 0!==t&&1===t.length;i&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&o.set(t,e))}return e}toString(){return this.cssText}}let c=e=>new s("string"==typeof e?e:e+"",void 0,a),l=(e,...t)=>new s(1===e.length?e[0]:t.reduce((t,i,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[r+1],e[0]),e,a),u=(e,t)=>{if(n)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let i of t){let t=document.createElement("style"),n=r.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=i.cssText,e.appendChild(t)}},d=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return c(t)})(e):e,{is:h,defineProperty:p,getOwnPropertyDescriptor:f,getOwnPropertyNames:g,getOwnPropertySymbols:w,getPrototypeOf:m}=Object,b=globalThis,v=b.trustedTypes,y=v?v.emptyScript:"",x=b.reactiveElementPolyfillSupport,C=(e,t)=>e,A={toAttribute(e,t){switch(t){case Boolean:e=e?y:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},E=(e,t)=>!h(e,t),_={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class k extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=_){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),r=this.getPropertyDescriptor(e,i,t);void 0!==r&&p(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){let{get:r,set:n}=f(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return r?.call(this)},set(t){let a=r?.call(this);n.call(this,t),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_}static _$Ei(){if(this.hasOwnProperty(C("elementProperties")))return;let e=m(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(C("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(C("properties"))){let e=this.properties;for(let t of[...g(e),...w(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,i]of t)this.elementProperties.set(e,i)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let i of new Set(e.flat(1/0).reverse()))t.unshift(d(i));else void 0!==e&&t.push(d(e));return t}static _$Eu(e,t){let i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t){let i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(void 0!==r&&!0===i.reflect){let n=(void 0!==i.converter?.toAttribute?i.converter:A).toAttribute(t,i.type);this._$Em=e,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){let i=this.constructor,r=i._$Eh.get(e);if(void 0!==r&&this._$Em!==r){let e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:A;this._$Em=r,this[r]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i,r=!1,n){if(void 0!==e){if(!((i??=this.constructor.getPropertyOptions(e)).hasChanged??E)(r?n:this[e],t))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,i]of e)!0!==i.wrapped||this._$AL.has(t)||void 0===this[t]||this.C(t,this[t],i)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$E_?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$ET()}catch(t){throw e=!1,this._$ET(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(e){}firstUpdated(e){}}k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[C("elementProperties")]=new Map,k[C("finalized")]=new Map,x?.({ReactiveElement:k}),(b.reactiveElementVersions??=[]).push("2.0.2")},93709:(e,t,i)=>{"use strict";i.d(t,{DO:()=>s,Id:()=>x,My:()=>u,OG:()=>I,Ph:()=>w,Q5:()=>R,aK:()=>_,aT:()=>g,aY:()=>o,dJ:()=>k,e8:()=>c,ex:()=>C,fg:()=>N,lX:()=>m,lq:()=>b,qj:()=>y,r4:()=>E,x:()=>O,z:()=>v,zW:()=>d});let r=BigInt(0),n=BigInt(1),a=BigInt(2);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!o(e))throw Error("Uint8Array expected")}function c(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){s(e);let t="";for(let i=0;i<e.length;i++)t+=l[e[i]];return t}function d(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function h(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?r:BigInt("0x"+e)}let p={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=p._0&&e<=p._9?e-p._0:e>=p.A&&e<=p.F?e-(p.A-10):e>=p.a&&e<=p.f?e-(p.a-10):void 0}function g(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,i=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(i);for(let t=0,n=0;t<i;t++,n+=2){let i=f(e.charCodeAt(n)),a=f(e.charCodeAt(n+1));if(void 0===i||void 0===a)throw Error('hex string expected, got non-hex character "'+(e[n]+e[n+1])+'" at index '+n);r[t]=16*i+a}return r}function w(e){return h(u(e))}function m(e){return s(e),h(u(Uint8Array.from(e).reverse()))}function b(e,t){return g(e.toString(16).padStart(2*t,"0"))}function v(e,t){return b(e,t).reverse()}function y(e,t,i){let r;if("string"==typeof t)try{r=g(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(o(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let n=r.length;if("number"==typeof i&&n!==i)throw Error(e+" of length "+i+" expected, got "+n);return r}function x(...e){let t=0;for(let i=0;i<e.length;i++){let r=e[i];s(r),t+=r.length}let i=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let n=e[t];i.set(n,r),r+=n.length}return i}function C(e,t){if(e.length!==t.length)return!1;let i=0;for(let r=0;r<e.length;r++)i|=e[r]^t[r];return 0===i}let A=e=>"bigint"==typeof e&&r<=e;function E(e,t,i){return A(e)&&A(t)&&A(i)&&t<=e&&e<i}function _(e,t,i,r){if(!E(t,i,r))throw Error("expected valid "+e+": "+i+" <= n < "+r+", got "+t)}function k(e){let t;for(t=0;e>r;e>>=n,t+=1);return t}let I=e=>(a<<BigInt(e-1))-n,S=e=>new Uint8Array(e),T=e=>Uint8Array.from(e);function N(e,t,i){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof i)throw Error("hmacFn must be a function");let r=S(e),n=S(e),a=0,o=()=>{r.fill(1),n.fill(0),a=0},s=(...e)=>i(n,r,...e),c=(e=S())=>{n=s(T([0]),e),r=s(),0!==e.length&&(n=s(T([1]),e),r=s())},l=()=>{if(a++>=1e3)throw Error("drbg: tried 1000 values");let e=0,i=[];for(;e<t;){let t=(r=s()).slice();i.push(t),e+=r.length}return x(...i)};return(e,t)=>{let i;for(o(),c(e);!(i=t(l()));)c();return o(),i}}let P={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function R(e,t,i={}){let r=(t,i,r)=>{let n=P[i];if("function"!=typeof n)throw Error("invalid validator function");let a=e[t];if((!r||void 0!==a)&&!n(a,e))throw Error("param "+String(t)+" is invalid. Expected "+i+", got "+a)};for(let[e,i]of Object.entries(t))r(e,i,!1);for(let[e,t]of Object.entries(i))r(e,t,!0);return e}function O(e){let t=new WeakMap;return(i,...r)=>{let n=t.get(i);if(void 0!==n)return n;let a=e(i,...r);return t.set(i,a),a}}},9631:(e,t,i)=>{"use strict";let r,n,a,o,s,c,l,u,d,h,p,f,g,w,m,b,v;i.d(t,{D:()=>ih}),i(15899);var y=i(21552),x=i(14191);let C=e=>(t,i,r)=>{let n=r.subscribe;return r.subscribe=(e,t,i)=>{let a=e;if(t){let n=(null==i?void 0:i.equalityFn)||Object.is,o=e(r.getState());a=i=>{let r=e(i);if(!n(o,r)){let e=o;t(o=r,e)}},(null==i?void 0:i.fireImmediately)&&t(o,o)}return n(a)},e(t,i,r)},A=e=>t=>{try{let i=e(t);if(i instanceof Promise)return i;return{then:e=>A(e)(i),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>A(t)(e)}}},E=(e,t)=>(i,r,n)=>{let a,o={storage:function(e,t){let i;try{i=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),n=null!=(t=i.getItem(e))?t:null;return n instanceof Promise?n.then(r):r(n)},setItem:(e,t)=>i.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>i.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,c=new Set,l=new Set,u=o.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),i(...e)},r,n);let d=()=>{let e=o.partialize({...r()});return u.setItem(o.name,{state:e,version:o.version})},h=n.setState;n.setState=(e,t)=>{h(e,t),d()};let p=e((...e)=>{i(...e),d()},r,n);n.getInitialState=()=>p;let f=()=>{var e,t;if(!u)return;s=!1,c.forEach(e=>{var t;return e(null!=(t=r())?t:p)});let n=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:p))||void 0;return A(u.getItem.bind(u))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate)return[!0,o.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[n,s]=e;if(i(a=o.merge(s,null!=(t=r())?t:p),!0),n)return d()}).then(()=>{null==n||n(a,void 0),a=r(),s=!0,l.forEach(e=>e(a))}).catch(e=>{null==n||n(void 0,e)})};return n.persist={setOptions:e=>{o={...o,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>f(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||f(),a||p},_=e=>{let t;let i=new Set,r=(e,r)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=r?r:"object"!=typeof n||null===n)?n:Object.assign({},t,n),i.forEach(i=>i(t,e))}},n=()=>t,a={setState:r,getState:n,getInitialState:()=>o,subscribe:e=>(i.add(e),()=>i.delete(e))},o=t=e(r,n,a);return a},k=e=>e?_(e):_;var I=i(72565),S=i(76170);class T{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new S.b})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let i=t[0];this._emitter.emit(e,{uid:this.uid,...i})}listenerCount(e){return this._emitter.listenerCount(e)}}var N=i(32130),P=i(61282);let R=256;var O=i(68748),M=i(12178),D=i(31336);let U=[];function $(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,D.b)(U,t)?U:(U=t,t)}var L=i(16603),j=i(49647),B=i(40539),W=i(66604);async function q(e,t){let{account:i,chainId:r,...n}=t,a=i??(0,j.s)(e).address,o=e.getClient({chainId:r});return(0,W.T)(o,B.f,"prepareTransactionRequest")({...n,...a?{account:a}:{}})}var H=i(83295),z=i(36352);async function F(e,t){let i;let{account:r,chainId:n,connector:a,...o}=t;i="object"==typeof r&&r?.type==="local"?e.getClient({chainId:n}):await (0,z.r)(e,{account:r??void 0,chainId:n,connector:a});let s=(0,W.T)(i,H.v,"sendTransaction");return await s({...o,...r?{account:r}:{},chain:n?{id:n}:null,gas:o.gas??void 0})}var Z=i(67900),V=i(15176),K=i(14005),G=i(45735);let J=new Map,Y=new Map,Q=0;function X(e,t,i){let r=++Q,n=()=>J.get(e)||[],a=()=>{let t=n();J.set(e,t.filter(e=>e.id!==r))},o=()=>{let t=n();if(!t.some(e=>e.id===r))return;let i=Y.get(e);1===t.length&&i&&i(),a()},s=n();if(J.set(e,[...s,{id:r,fns:t}]),s&&s.length>0)return o;let c={};for(let e in t)c[e]=(...t)=>{let i=n();if(0!==i.length)for(let r of i)r.fns[e]?.(...t)};let l=i(c);return"function"==typeof l&&Y.set(e,l),o}var ee=i(54584),et=i(41525),ei=i(6044),er=i(27792),en=i(81867),ea=i(62443);async function eo(e,{blockHash:t,blockNumber:i,blockTag:r,hash:n,index:a}){let o=r||"latest",s=void 0!==i?(0,en.cK)(i):void 0,c=null;if(n?c=await e.request({method:"eth_getTransactionByHash",params:[n]},{dedupe:!0}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,en.cK)(a)]},{dedupe:!0}):(s||o)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||o,(0,en.cK)(a)]},{dedupe:!!s})),!c)throw new K.Kz({blockHash:t,blockNumber:i,blockTag:o,hash:n,index:a});return(e.chain?.formatters?.transaction?.format||ea.uP)(c)}let es={"0x0":"reverted","0x1":"success"};async function ec(e,{hash:t}){let i=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!i)throw new K.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(function(e,{args:t,eventName:i}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...i?{args:t,eventName:i}:{}}})(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,Z.ME)(e.transactionIndex):null,status:e.status?es[e.status]:null,type:e.type?ea.b4[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(i)}var el=i(38102);let eu=new Map,ed=new Map;async function eh(e,{cacheKey:t,cacheTime:i=Number.POSITIVE_INFINITY}){let r=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:i=>t.set(e,i)}),i=t(e,eu),r=t(e,ed);return{clear:()=>{i.clear(),r.clear()},promise:i,response:r}}(t),n=r.response.get();if(n&&i>0&&new Date().getTime()-n.created.getTime()<i)return n.data;let a=r.promise.get();a||(a=e(),r.promise.set(a));try{let e=await a;return r.response.set({created:new Date,data:e}),e}finally{r.promise.clear()}}let ep=e=>`blockNumber.${e}`;async function ef(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await eh(()=>e.request({method:"eth_blockNumber"}),{cacheKey:ep(e.uid),cacheTime:t}))}function eg(e,{emitOnBegin:t=!1,emitMissed:i=!1,onBlockNumber:r,onError:n,poll:a,pollingInterval:o=e.pollingInterval}){let s;return(void 0!==a?a:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?X((0,ei.A)(["watchBlockNumber",e.uid,t,i,o]),{onBlockNumber:r,onError:n},r=>(function(e,{emitOnBegin:t,initialWaitTime:i,interval:r}){let n=!0,a=()=>n=!1;return(async()=>{let o;t&&(o=await e({unpoll:a}));let s=await i?.(o)??r;await (0,el.u)(s);let c=async()=>{n&&(await e({unpoll:a}),await (0,el.u)(r),c())};c()})(),a})(async()=>{try{let t=await (0,G.T)(e,ef,"getBlockNumber")({cacheTime:0});if(s){if(t===s)return;if(t-s>1&&i)for(let e=s+1n;e<t;e++)r.onBlockNumber(e,s),s=e}(!s||t>s)&&(r.onBlockNumber(t,s),s=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:o})):X((0,ei.A)(["watchBlockNumber",e.uid,t,i]),{onBlockNumber:r,onError:n},t=>{let i=!0,r=()=>i=!1;return(async()=>{try{let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await n.subscribe({params:["newHeads"],onData(e){if(!i)return;let r=(0,Z.uU)(e.result?.number);t.onBlockNumber(r,s),s=r},onError(e){t.onError?.(e)}});r=a,i||r()}catch(e){n?.(e)}})(),()=>r()})}async function ew(e,{confirmations:t=1,hash:i,onReplaced:r,pollingInterval:n=e.pollingInterval,retryCount:a=6,retryDelay:o=({count:e})=>200*~~(1<<e),timeout:s=18e4}){let c,l,u;let d=(0,ei.A)(["waitForTransactionReceipt",e.uid,i]),h=!1,{promise:p,resolve:f,reject:g}=(0,ee.Y)(),w=s?setTimeout(()=>g(new K.WA({hash:i})),s):void 0,m=X(d,{onReplaced:r,resolve:f,reject:g},r=>{let s=(0,G.T)(e,eg,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:n,async onBlockNumber(n){let d=e=>{clearTimeout(w),s(),e(),m()},p=n;if(!h)try{if(u){if(t>1&&(!u.blockNumber||p-u.blockNumber+1n<t))return;d(()=>r.resolve(u));return}if(c||(h=!0,await (0,et.b)(async()=>{(c=await (0,G.T)(e,eo,"getTransaction")({hash:i})).blockNumber&&(p=c.blockNumber)},{delay:o,retryCount:a}),h=!1),u=await (0,G.T)(e,ec,"getTransactionReceipt")({hash:i}),t>1&&(!u.blockNumber||p-u.blockNumber+1n<t))return;d(()=>r.resolve(u))}catch(i){if(i instanceof K.Kz||i instanceof K.Kc){if(!c){h=!1;return}try{l=c,h=!0;let i=await (0,et.b)(()=>(0,G.T)(e,er.g,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:o,retryCount:a,shouldRetry:({error:e})=>e instanceof V.l});h=!1;let n=i.transactions.find(({from:e,nonce:t})=>e===l.from&&t===l.nonce);if(!n||(u=await (0,G.T)(e,ec,"getTransactionReceipt")({hash:n.hash}),t>1&&(!u.blockNumber||p-u.blockNumber+1n<t)))return;let s="replaced";n.to===l.to&&n.value===l.value?s="repriced":n.from===n.to&&0n===n.value&&(s="cancelled"),d(()=>{r.onReplaced?.({reason:s,replacedTransaction:l,transaction:n,transactionReceipt:u}),r.resolve(u)})}catch(e){d(()=>r.reject(e))}}else d(()=>r.reject(i))}}})});return p}var em=i(74736);async function eb(e,t){let{chainId:i,timeout:r=0,...n}=t,a=e.getClient({chainId:i}),o=(0,W.T)(a,ew,"waitForTransactionReceipt"),s=await o({...n,timeout:r});if("reverted"===s.status){let e=(0,W.T)(a,eo,"getTransaction"),t=await e({hash:s.transactionHash}),i=(0,W.T)(a,em.T,"call"),r=await i({...t,data:t.input,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(r?.data?(0,Z.IQ)(`0x${r.data.substring(138)}`):"unknown reason")}return{...s,chainId:a.chain.id}}var ev=i(29378),ey=i(41136),ex=i(6319),eC=i(90154),eA=i(26418),eE=i(28464),e_=i(43782),ek=i(33671),eI=i(73186);function eS(e,t){if(!(e instanceof ek.C))return!1;let i=e.walk(e=>e instanceof eI.M);return i instanceof eI.M&&(!!(i.data?.errorName==="ResolverNotFound"||i.data?.errorName==="ResolverWildcardNotSupported"||i.data?.errorName==="ResolverNotContract"||i.data?.errorName==="ResolverError"||i.data?.errorName==="HttpError"||i.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&i.reason===e_.fD[50])}var eT=i(65224),eN=i(24453),eP=i(99039),eR=i(14329);function eO(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,eR.q)(t)?t:null}function eM(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,en.My)(t);let i=e.split(".");for(let e=i.length-1;e>=0;e-=1){let r=eO(i[e]),n=r?(0,eN.ZJ)(r):(0,eP.S)((0,eN.Af)(i[e]),"bytes");t=(0,eP.S)((0,eT.xW)([t,n]),"bytes")}return(0,en.My)(t)}function eD(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let i=new Uint8Array((0,eN.Af)(t).byteLength+2),r=0,n=t.split(".");for(let e=0;e<n.length;e++){let t=(0,eN.Af)(n[e]);if(t.byteLength>255){var a;t=(0,eN.Af)((a=function(e){let t=new Uint8Array(32).fill(0);return e?eO(e)||(0,eP.S)((0,eN.Af)(e)):(0,en.My)(t)}(n[e]),`[${a.slice(2)}]`))}i[r]=t.length,i.set(t,r+1),r+=t.length+1}return i.byteLength!==r+1?i.slice(0,r+1):i}var eU=i(97903);async function e$(e,{blockNumber:t,blockTag:i,coinType:r,name:n,gatewayUrls:a,strict:o,universalResolverAddress:s}){let c=s;if(!c){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");c=(0,eA.M)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let o=(0,eC.p)({abi:ey.Rm,functionName:"addr",...null!=r?{args:[eM(n),BigInt(r)]}:{args:[eM(n)]}}),s={address:c,abi:ey.Ag,functionName:"resolve",args:[(0,en.nj)(eD(n)),o],blockNumber:t,blockTag:i},l=(0,G.T)(e,eU.J,"readContract"),u=a?await l({...s,args:[...s.args,a]}):await l(s);if("0x"===u[0])return null;let d=(0,ex.e)({abi:ey.Rm,args:null!=r?[eM(n),BigInt(r)]:void 0,functionName:"addr",data:u[0]});if("0x"===d||"0x00"===(0,eE.B)(d))return null;return d}catch(e){if(o)throw e;if(eS(e,"resolve"))return null;throw e}}var eL=i(95036);async function ej(e,t){let i;let{chainId:r,connector:n,...a}=t;i=t.account?t.account:(await (0,z.r)(e,{account:t.account,chainId:r,connector:n})).account;let o=e.getClient({chainId:r});return(0,W.T)(o,eL.Q,"estimateGas")({...a,account:i})}var eB=i(73546),eW=i(54157),eq=i(13412);async function eH(e,{address:t,blockNumber:i,blockTag:r,gatewayUrls:n,strict:a,universalResolverAddress:o}){let s=o;if(!s){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");s=(0,eA.M)({blockNumber:i,chain:e.chain,contract:"ensUniversalResolver"})}let c=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let a={address:s,abi:ey.oX,functionName:"reverse",args:[(0,en.nj)(eD(c))],blockNumber:i,blockTag:r},o=(0,G.T)(e,eU.J,"readContract"),[l,u]=n?await o({...a,args:[...a.args,n]}):await o(a);if(t.toLowerCase()!==u.toLowerCase())return null;return l}catch(e){if(a)throw e;if(eS(e,"reverse"))return null;throw e}}class ez extends ek.C{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class eF extends ek.C{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class eZ extends ek.C{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class eV extends ek.C{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let eK=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,eG=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,eJ=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,eY=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function eQ(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let i=new Image;i.onload=()=>{t(!0)},i.onerror=()=>{t(!1)},i.src=e})}}function eX(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function e0({uri:e,gatewayUrls:t}){let i=eJ.test(e);if(i)return{uri:e,isOnChain:!0,isEncoded:i};let r=eX(t?.ipfs,"https://ipfs.io"),n=eX(t?.arweave,"https://arweave.net"),a=e.match(eK),{protocol:o,subpath:s,target:c,subtarget:l=""}=a?.groups||{},u="ipns:/"===o||"ipns/"===s,d="ipfs:/"===o||"ipfs/"===s||eG.test(e);if(e.startsWith("http")&&!u&&!d){let i=e;return t?.arweave&&(i=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:i,isOnChain:!1,isEncoded:!1}}if((u||d)&&c)return{uri:`${r}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if("ar:/"===o&&c)return{uri:`${n}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let h=e.replace(eY,"");if(h.startsWith("<svg")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith("data:")||h.startsWith("{"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new eZ({uri:e})}function e1(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new ez({data:e});return e.image||e.image_url||e.image_data}async function e2({gatewayUrls:e,uri:t}){try{let i=await fetch(t).then(e=>e.json());return await e3({gatewayUrls:e,uri:e1(i)})}catch{throw new eZ({uri:t})}}async function e3({gatewayUrls:e,uri:t}){let{uri:i,isOnChain:r}=e0({uri:t,gatewayUrls:e});if(r||await eQ(i))return i;throw new eZ({uri:t})}async function e5(e,{nft:t}){if("erc721"===t.namespace)return(0,eU.J)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,eU.J)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new eV({namespace:t.namespace})}async function e4(e,{gatewayUrls:t,record:i}){return/eip155:/i.test(i)?e6(e,{gatewayUrls:t,record:i}):e3({uri:i,gatewayUrls:t})}async function e6(e,{gatewayUrls:t,record:i}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[i,r,n]=t.split("/"),[a,o]=i.split(":"),[s,c]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new eF({reason:"Only EIP-155 supported"});if(!o)throw new eF({reason:"Chain ID not found"});if(!c)throw new eF({reason:"Contract address not found"});if(!n)throw new eF({reason:"Token ID not found"});if(!s)throw new eF({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o),namespace:s.toLowerCase(),contractAddress:c,tokenID:n}}(i),{uri:n,isOnChain:a,isEncoded:o}=e0({uri:await e5(e,{nft:r}),gatewayUrls:t});if(a&&(n.includes("data:application/json;base64,")||n.startsWith("{")))return e3({uri:e1(JSON.parse(o?atob(n.replace("data:application/json;base64,","")):n)),gatewayUrls:t});let s=r.tokenID;return"erc1155"===r.namespace&&(s=s.replace("0x","").padStart(64,"0")),e2({gatewayUrls:t,uri:n.replace(/(?:0x)?{id}/,s)})}async function e8(e,{blockNumber:t,blockTag:i,name:r,key:n,gatewayUrls:a,strict:o,universalResolverAddress:s}){let c=s;if(!c){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");c=(0,eA.M)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let o={address:c,abi:ey.Ag,functionName:"resolve",args:[(0,en.nj)(eD(r)),(0,eC.p)({abi:ey.SJ,functionName:"text",args:[eM(r),n]})],blockNumber:t,blockTag:i},s=(0,G.T)(e,eU.J,"readContract"),l=a?await s({...o,args:[...o.args,a]}):await s(o);if("0x"===l[0])return null;let u=(0,ex.e)({abi:ey.SJ,functionName:"text",data:l[0]});return""===u?null:u}catch(e){if(o)throw e;if(eS(e,"resolve"))return null;throw e}}async function e9(e,{blockNumber:t,blockTag:i,assetGatewayUrls:r,name:n,gatewayUrls:a,strict:o,universalResolverAddress:s}){let c=await (0,G.T)(e,e8,"getEnsText")({blockNumber:t,blockTag:i,key:"avatar",name:n,universalResolverAddress:s,gatewayUrls:a,strict:o});if(!c)return null;try{return await e4(e,{record:c,gatewayUrls:r})}catch{return null}}async function e7(e,t={}){let i;if(t.connector)i=t.connector;else{let{connections:t,current:r}=e.state,n=t.get(r);i=n?.connector}let r=e.state.connections;i&&(await i.disconnect(),i.emitter.off("change",e._internal.events.change),i.emitter.off("disconnect",e._internal.events.disconnect),i.emitter.on("connect",e._internal.events.connect),r.delete(i.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let i=e.state.connections.get(t)?.connector;if(!i)return;await e.storage?.setItem("recentConnectorId",i.id)}}var te=i(64241),tt=i(50639),ti=i(83320);i(45011);var tr=i(61678),tn=i(7270),ta=i(60402),to=i(71139),ts=i(80196);i(81696),i(64810);var tc=i(58051),tl=i(84671);function tu(e,t,i){let r,n,a,o,s,c,l;let u=e.isNewChainsStale??!0;return(0,ti.U)(e=>({id:"walletConnect",name:"WalletConnect",type:tu.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(o||(o=this.onConnect.bind(this),e.on("connect",o)),c||(c=this.onSessionDelete.bind(this),e.on("session_delete",c)))},async connect({...e}={}){try{let t=await this.getProvider();if(!t)throw new tl.N;s||(s=this.onDisplayUri,t.on("display_uri",s));let r=await this.isChainsStale();if(t.session&&r&&await t.disconnect(),!t.session||r){let r=tc.k.createNamespaces(i);await t.connect({optionalNamespaces:r,..."pairingTopic"in e?{pairingTopic:e.pairingTopic}:{}}),this.setRequestedChainsIds(i.map(e=>Number(e.id)))}let u=(await t.enable()).map(e=>(0,tn.b)(e)),d=await this.getChainId();return s&&(t.removeListener("display_uri",s),s=void 0),o&&(t.removeListener("connect",o),o=void 0),n||(n=this.onAccountsChanged.bind(this),t.on("accountsChanged",n)),a||(a=this.onChainChanged.bind(this),t.on("chainChanged",a)),l||(l=this.onDisconnect.bind(this),t.on("disconnect",l)),c||(c=this.onSessionDelete.bind(this),t.on("session_delete",c)),{accounts:u,chainId:d}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new tr.vx(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{a&&(e?.removeListener("chainChanged",a),a=void 0),l&&(e?.removeListener("disconnect",l),l=void 0),o||(o=this.onConnect.bind(this),e?.on("connect",o)),n&&(e?.removeListener("accountsChanged",n),n=void 0),c&&(e?.removeListener("session_delete",c),c=void 0),this.setRequestedChainsIds([])}},async getAccounts(){let e=await this.getProvider();if(!e?.session?.namespaces)return[];let t=e?.session?.namespaces.eip155?.accounts;return t?.map(e=>e.split(":")[2])??[]},async getProvider({chainId:e}={}){r||(r=await t.getUniversalProvider(),r?.events.setMaxListeners(Number.POSITIVE_INFINITY));let i=t.getCaipNetwork()?.id;if(e&&i!==e){let e=ts.iT.getStoredActiveCaipNetwork();e&&e.chainNamespace===tt.oU.CHAIN.EVM&&await this.switchChain?.({chainId:Number(e.id)})}return r},async getChainId(){let e=t.getCaipNetwork()?.id;if(e)return e;let r=await this.getProvider(),n=r.session?.namespaces.eip155?.chains?.[0],a=i.find(e=>e.id===n);return a?.id},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:t,chainId:r}){let n=await this.getProvider();if(!n)throw new tl.N;let a=i.find(e=>e.id===r);if(!a)throw new tr.ch(new P.nk);try{await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,en.cK)(r)}]}),a?.caipNetworkId&&n.setDefaultChain(a?.caipNetworkId),e.emitter.emit("change",{chainId:Number(r)});let t=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...t,r]),{...a,id:a.id}}catch(e){if(/(?:user rejected)/iu.test(e.message))throw new tr.vx(e);try{let e={blockExplorerUrls:t?.blockExplorerUrls?t.blockExplorerUrls:a.blockExplorers?.default.url?[a.blockExplorers?.default.url]:[],chainId:(0,en.cK)(r),chainName:a.name,iconUrls:t?.iconUrls,nativeCurrency:a.nativeCurrency,rpcUrls:a.rpcUrls.default.http};await n.request({method:"wallet_addEthereumChain",params:[e]});let i=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...i,r]),{...a,id:a.id}}catch(e){throw new tr.vx(e)}}},onAccountsChanged(t){0===t.length?this.onDisconnect():e.emitter.emit("change",{accounts:t.map(e=>(0,tn.b)(e))})},onChainChanged(t){let i=Number(t);e.emitter.emit("change",{chainId:i})},onConnect(e){this.setRequestedChainsIds(i.map(e=>Number(e.id)))},async onDisconnect(t){this.setRequestedChainsIds([]),e.emitter.emit("disconnect");let i=await this.getProvider();n&&(i.removeListener("accountsChanged",n),n=void 0),a&&(i.removeListener("chainChanged",a),a=void 0),l&&(i.removeListener("disconnect",l),l=void 0),c&&(i.removeListener("session_delete",c),c=void 0),o||(o=this.onConnect.bind(this),i.on("connect",o))},onDisplayUri(t){e.emitter.emit("message",{type:"display_uri",data:t})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){if(!r?.session?.namespaces)return[];let e=r?.session?.namespaces.eip155?.accounts;return e?.map(e=>Number.parseInt(e.split(":")[1]??""))??[]},async getRequestedChainsIds(){return[...new Set(await e.storage?.getItem(this.requestedChainsStorageKey)??[])]},async isChainsStale(){if(!u)return!1;let t=e.chains.map(e=>e.id),i=this.getNamespaceChainsIds();if(i.length&&!i.some(e=>t.includes(e)))return!1;let r=await this.getRequestedChainsIds();return!t.every(e=>r.includes(Number(e)))},async setRequestedChainsIds(t){await e.storage?.setItem(this.requestedChainsStorageKey,t)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}function td(e={}){let t,r,n,a,o,s,c,l,u;return"3"===e.version||e.headlessMode?(0,ti.U)(s=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",type:td.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),i=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,tn.b)(e));n||(n=this.onAccountsChanged.bind(this),t.on("accountsChanged",n)),a||(a=this.onChainChanged.bind(this),t.on("chainChanged",a)),o||(o=this.onDisconnect.bind(this),t.on("disconnect",o));let r=await this.getChainId();if(e&&r!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===tr.vx.code)throw e;return{id:r}});r=t?.id??r}return{accounts:i,chainId:r}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new tr.vx(e);throw e}},async disconnect(){let e=await this.getProvider();n&&(e.removeListener("accountsChanged",n),n=void 0),a&&(e.removeListener("chainChanged",a),a=void 0),o&&(e.removeListener("disconnect",o),o=void 0),e.disconnect(),e.close()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,tn.b)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))},async getProvider(){if(!r){t=new(await (async()=>{let{default:e}=await Promise.all([i.e(3061),i.e(2493)]).then(i.t.bind(i,13061,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...e,reloadOnDisconnect:!1});let n=t.walletExtension?.getChainId(),a=s.chains.find(t=>e.chainId?t.id===e.chainId:t.id===n)||s.chains[0],o=e.chainId||a?.id,c=e.jsonRpcUrl||a?.rpcUrls.default.http[0];r=t.makeWeb3Provider(c,o)}return r},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let i=s.chains.find(e=>e.id===t);if(!i)throw new tr.ch(new P.nk);let r=await this.getProvider();try{return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,en.cK)(i.id)}]}),i}catch(n){if(4902===n.code)try{let n,a;n=e?.blockExplorerUrls?e.blockExplorerUrls:i.blockExplorers?.default.url?[i.blockExplorers?.default.url]:[],a=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let o={blockExplorerUrls:n,chainId:(0,en.cK)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:a};return await r.request({method:"wallet_addEthereumChain",params:[o]}),i}catch(e){throw new tr.vx(e)}throw new tr.ch(n)}},onAccountsChanged(e){0===e.length?this.onDisconnect():s.emitter.emit("change",{accounts:e.map(e=>(0,tn.b)(e))})},onChainChanged(e){let t=Number(e);s.emitter.emit("change",{chainId:t})},async onDisconnect(e){s.emitter.emit("disconnect");let t=await this.getProvider();n&&(t.removeListener("accountsChanged",n),n=void 0),a&&(t.removeListener("chainChanged",a),a=void 0),o&&(t.removeListener("disconnect",o),o=void 0)}})):(0,ti.U)(t=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",rdns:"com.coinbase.wallet",type:td.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),i=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,tn.b)(e));c||(c=this.onAccountsChanged.bind(this),t.on("accountsChanged",c)),l||(l=this.onChainChanged.bind(this),t.on("chainChanged",l)),u||(u=this.onDisconnect.bind(this),t.on("disconnect",u));let r=await this.getChainId();if(e&&r!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===tr.vx.code)throw e;return{id:r}});r=t?.id??r}return{accounts:i,chainId:r}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new tr.vx(e);throw e}},async disconnect(){let e=await this.getProvider();c&&(e.removeListener("accountsChanged",c),c=void 0),l&&(e.removeListener("chainChanged",l),l=void 0),u&&(e.removeListener("disconnect",u),u=void 0),e.disconnect(),e.close?.()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,tn.b)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))},async getProvider(){if(!s){let r="string"==typeof e.preference?{options:e.preference}:{...e.preference,options:e.preference?.options??"all"},{createCoinbaseWalletSDK:n}=await i.e(201).then(i.bind(i,90201));s=n({...e,appChainIds:t.chains.map(e=>e.id),preference:r}).getProvider()}return s},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:i}){let r=t.chains.find(e=>e.id===i);if(!r)throw new tr.ch(new P.nk);let n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,en.cK)(r.id)}]}),r}catch(t){if(4902===t.code)try{let t,a;t=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],a=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let o={blockExplorerUrls:t,chainId:(0,en.cK)(i),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:a};return await n.request({method:"wallet_addEthereumChain",params:[o]}),r}catch(e){throw new tr.vx(e)}throw new tr.ch(t)}},onAccountsChanged(e){0===e.length?this.onDisconnect():t.emitter.emit("change",{accounts:e.map(e=>(0,tn.b)(e))})},onChainChanged(e){let i=Number(e);t.emitter.emit("change",{chainId:i})},async onDisconnect(e){t.emitter.emit("disconnect");let i=await this.getProvider();c&&(i.removeListener("accountsChanged",c),c=void 0),l&&(i.removeListener("chainChanged",l),l=void 0),u&&(i.removeListener("disconnect",u),u=void 0)}}))}i(27258),tu.type="walletConnect",td.type="coinbaseWallet";var th=i(73963),tp=i(42328);let tf=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function tg(e){var t;let i;return t=function(e){let t=0;function i(){return e[t++]<<8|e[t++]}let r=i(),n=1,a=[0,1];for(let e=1;e<r;e++)a.push(n+=i());let o=i(),s=t;t+=o;let c=0,l=0;function u(){return 0==c&&(l=l<<8|e[t++],c=8),l>>--c&1}let d=0x80000000-1,h=0;for(let e=0;e<31;e++)h=h<<1|u();let p=[],f=0,g=0x80000000;for(;;){let e=Math.floor(((h-f+1)*n-1)/g),t=0,i=r;for(;i-t>1;){let r=t+i>>>1;e<a[r]?i=r:t=r}if(0==t)break;p.push(t);let o=f+Math.floor(g*a[t]/n),s=f+Math.floor(g*a[t+1]/n)-1;for(;((o^s)&0x40000000)==0;)h=h<<1&d|u(),o=o<<1&d,s=s<<1&d|1;for(;o&~s&0x20000000;)h=0x40000000&h|h<<1&d>>>1|u(),o=o<<1^0x40000000,s=(0x40000000^s)<<1|0x40000001;f=o,g=1+s-o}let w=r-4;return p.map(t=>{switch(t-w){case 3:return w+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return w+256+(e[s++]<<8|e[s++]);case 1:return w+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,i)=>t[e.charCodeAt(0)]=i);let i=e.length,r=new Uint8Array(6*i>>3);for(let n=0,a=0,o=0,s=0;n<i;n++)s=s<<6|t[e.charCodeAt(n)],(o+=6)>=8&&(r[a++]=s>>(o-=8));return r}(e)),i=0,()=>t[i++]}function tw(e,t=0){let i=[];for(;;){let r=e(),n=e();if(!n)break;t+=r;for(let e=0;e<n;e++)i.push(t+e);t+=n+1}return i}function tm(e){return tv(()=>{let t=tw(e);if(t.length)return t})}function tb(e){let t=[];for(;;){let i=e();if(0==i)break;t.push(function(e,t){let i=1+t(),r=t(),n=tv(t);return ty(n.length,1+e,t).flatMap((e,t)=>{let[a,...o]=e;return Array(n[t]).fill().map((e,t)=>{let n=t*r;return[a+t*i,o.map(e=>e+n)]})})}(i,e))}for(;;){let i=e()-1;if(i<0)break;t.push(ty(1+e(),1+i,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function tv(e){let t=[];for(;;){let i=e(t.length);if(!i)break;t.push(i)}return t}function ty(e,t,i){let r=Array(e).fill().map(()=>[]);for(let n=0;n<t;n++)(function(e,t){let i=Array(e);for(let n=0,a=0;n<e;n++){var r;i[n]=a+=1&(r=t())?~r>>1:r>>1}return i})(e,i).forEach((e,t)=>r[t].push(e));return r}function tx(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function tC(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let i=[];for(let r=0;r<t;)i.push(String.fromCodePoint(...e.slice(r,r+=4096)));return i.join("")}function tA(e,t){let i=e.length,r=i-t.length;for(let n=0;0==r&&n<i;n++)r=e[n]-t[n];return r}function tE(e){return e>>24&255}function t_(e){return 0xffffff&e}function tk(e){return e>=44032&&e<55204}function tI(e){n||function(){let e=tg("AEUDVgHLCGMATwDUADIAdAAhADQAFAAtABQAIQAPACcADQASAAoAGAAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAeYDMwCxCl8B8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobWgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vAITAdQZWxDzALN9AhsZVwIcGSkCBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rlr3JG9m8w9lIAXltp/v8kfWaIaaR9OwpAES/I3ZVamDXSgB/UsOgAG6D0tq+5CIqE15FiAhV3yA2VhCQ7tj+m6xXaF53FIfGi/IAZIskMGAi2MU7MDVJNCbMzERyHZi+osdPtnFVbvq653O8rwaCy4IAf9OOok65AqJUtUriUfYsGPPVbe6jm0s9lbKlPCUKjdkHsFsEhvX4kT39ZCtAAbwQdn/h4TpO5hTByWAmr5n+Wuwhdegv6bmvX4LyOes3z2+cuHv2JFYwVMNuq2gzn8YHTjlUQd39osyWei4NKl3LAdfxlO876hh5ENp/cOvpuI9bF55guEthLLPOXjD4dktTH04P5TvZrWTM0e4+BHJxj7MLApXIFOs0sWKhNkG8iwuM5wR83my6V3wW06abhDzTXYfOr/ZpFXgXzmv4d12FFyP00/dPGbIVGV5ao8UufGzUwp/IHx6v/wDWJr9iaoCulhWwlZ7A8q/NMoD12+mBdNRgJYnThRLtMx1Bgwttn8/4Qn2CDfOSup9GVXEvA21ILgp0owHYxNOkpwLWz0G7K+WREIDjIzUzSn8I99CuJSmSpPyH0Ke6/NERYiNx+3dncSebPnOUnnWD61AhJ1n/tSLZmU5wYO5GfgzyAYJm6VL91LxZ8hL1lfximQxIDMRhIecQZBmeE5R0XlrpvwplVrJwpa8BBCdp93GPP9lyBeZ2zkRr920CR3cYbKpKHfogvm0nV7XdDz6EbjzlxADCMjSLXuXpIpyuizy39yY+I+H9rmpoIF3YwEjlH9MgGgWcCNTjHEWMqAbprn2Ox7rOHupaVE3lNyg3nt5XaZID6Y+uml5Ja+aOPu+BI+DZbiJVfaspUadakWUX6TA4dETkIqdJJHYnU4Z4yKpt5y8rVIahoMUf8A8kWtAQNCTbjp71gx3/zVdqNz1Sutkw0gFIMVm2BF4Xdv/0olw+NaDIR9Bb3DPweZA2K/cw+/b+AwyWl9ZOP67A9nexmeTNjfdzPGf9J6E6BMPKa5lJh+qNsdUz3HBUevU71eQFCqOcxiIYhacAhh/8PX0J5DdSViZ6WazDDx7cukJNpMfEkYLJ5Ao4vLoVd3d25Pg4qaVa2p2D2L3WvYPJ5Yf/A/MSxptjlgXL/KJtP2U0cRv2I09ATAiWCJYuRwiapeKFsqmi18yMMulDp3HdcIldq+7jkwsJUOHLHCzzzBw5XFvL0CAmo1ub456z7zb7shk3KPGCLZzr47oT1k/j06XNnJvG3Udv6XrP+wsqTBlZ5MaNPt9FOs/4Bt/ja/vbVhTNpBFl9Gq7MqINvGlWKOAwQzwOZy+EzSdjAqKJVV2YcskTuM94aIK+kc/AZaXiZLPREUDpkXIV947IFfj+85TrqPqLfkGcxgboMQjosf+az+odLNXdyp1mDNGsqSdK/pJ2Ca04mt/4d6s1X+lncOEYaGBBeW4pApGcjf7/XJCFbj3N3mFb+BtlIcw8ZiDKoClFX9Rf0bxCqtLpicObKJzBVVHr/6u4siH2hK75RNv7w9GfTbhJOQBYiFUZAByY4rn37tZBHT//kqKsNi3ryL9AqXJRzqiMIJMhILjoi/i8LVEsbu+Ih9bsyW16sgQqjYLO0qda6KaCPKj3DQcu6CfV5lKtjS3ZCdqLAZkOey9MR+QutJBGiz/r15GVD6rCVwJR4UUKC4GNJkfDf00OMW8aQtLSAGLXV8MIi9mbbl/qQEpxCm2L5hutFX4ekeLH4QgBWUFKs/2VVMKy46WtFE6AbwgmYm/Z0yHk5veDIrcl2HpVqb/rSE0PC9EbDzJEWqeaPhh7vF369Umq2kSiB3s5rBI6c/7N9bkRu4h2n+/h5nSwy+7n+/I+6oXQVANo2Jb5zDwtiBPf1ySCzHdT6yJShMzqSRZfnykX49CaFaxhoVF4PBhEuECJ1PrFYSpmHuyYsl14DTAV9ZxRms1XiR/kBrjhZjidOt0UNe+GSml7XNgpVw8YsUTmZXLTK+6iYnyW/wYR1W4UXwOi14xpFROHb6HcZzksgF5DbL2AFXzKNwHU2adjdAY+KCyM/cwRTBkkq/a227NI0q6DR2MkMCRu620t79bGcYUmACtqN3mk/0uNwd3JSXHqE1kzf6Yyj0W2083JNDRnIXDlgBxJ6uf58NN1f6FQiRCWB4egF8QDx74AixV8oTyw7PluIjr3/rj/WzgwPSq4xPojaF7V0xqG2u5ti2L1h6yYHv73Isrukr0kURDIEjClBsBx7kdcXUxaYMS0syT3ymLzDzslNDWQOT1Tao1YNmJHARUenhCkmV9tqCPGI5GqZaRpkiPxyjoncWjyOHYGqvbvRX+Bn1pn7EhRNXa1lqJPmoeN5VqdqIDPhEVhFsyG0d4iQEIYX0wZUbY2XbZWYlpZ/l66IrDDY0q1C1YzBDpHC4h05YqHQLqS9anyl22JQ6lEvjvdBwMHfE7z0luCXD34/rFeDa2TmSeEAykSpYO5j1G/nsgpR3qn0qaQEmLjnnLfcz+veoYqPnRqmRGwCJ6FJ3Gm/Z1/aVX5PSb03MMnjAf41ww54sD5k8FrkfBP+K0b1MrYpapWjtpZfve2HVf4ickX3LKSOhu7qI1Vd4c1kNrn2ajy1t4y93JhV4fnWCKq7OmFpcr7FjdJCXPTql0Drr14Ho3Z87+GPQ4Z/DcTiGqtvZxlRYi8cNuhXABveZIwNl/BX1huhVLaFax5OqypUrQRyb9OE3SSkPlDdy5uo5XGg2EIGEjLY1MO5cr1ibfiFWV7zspcTgkBKkwo5jPyAin04LqizZXb2tDRgwKJjGx4cVk3ngAQixwcxjYAg2Q7vmUR/hpwInMdw7OhC2qyf41vTPkudQAORS0DdLtOGQxb4fH2VYGsvJCkeWPeUwtf1/tuIhzXEThoCZzzSJqqjUtbaPI3ntHm3T5uf849hGUA0zU8ni5W+EEn3/0Y6oUhQFw9z0aGjkljBbAlFXc0y82G2wkd7VdgWa5KTgJJNjNwZMfmdnUIUn1JU5LiWX5UZEZbVlKSN76mlmjUR2ku+fucTNlO4IAAahnLjBhlvQNR9pe9swGBgq0YR7P3VCyI/seYwQ4QBzy9X+HPePgoF8WfKaJ4MBOhLCGHae6Z8xkNXwni9QAKvTNtVA56x8YJflZ/VvONRSlsSLmiSyNMnTjTaE1ko81zkzGEnVwEhjCzlwIqpxmpDAqwsEmtpdr3xpc7i/ZX3f2TzT3M0FdxIEQvO1jgmmiN+D1YpMduAzEhBtj2OBkMN/rv6p7Th4pSH6f5aH3aTvwFTl7EOSgGASI7ttyMehzpm4AVyK+bFEaFg9gnZsSUPpsbAe/0RFhrH+EXZ12Z7thf4dzN1+Sn+G8QrDA1VKaN4IFxD1rQz9Xq9Coii9S9/hPbTGjyBwFH3H1UdQuz5KsgPDEHua4/kPg2Gp/IIItsaLWBqiT9XH45MiQxSosGJ56H/0F2cjcCFd72l1665RNHURdC3lspI77esfJsl+rXXabkAy7vxDXG/XGGcKpwiKDPFfvMEgjkAHil4Za1F36RnyxxvdIAzvgfH8knukYDck07tc++DP4TdWeI7HXuq5Yl6VVFrUQtf64/dkXewlKZSHQo6YvCSpREB0GDrz+Ys2GfO8nw2SwrYwaf88AifzlPvP17bf1mI3AuccJvAjZIpBmqvharKFAebEjVKfGAwpQjWoXlm9LROsq9bCk1UeQ3CJxJqprzssS/Q04JeS1ReCCubL3J7sx86spkP4eNpp95UF+8K748icIs8vdILFklk9skQqi1So6cx3X906pvy1vz+KipTJ8fiVJxsV5MmT0XwA");for(let[t,i]of(n=new Map(tm(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),a=new Set(tw(e)),o=new Map,s=new Map,tb(e))){if(!a.has(t)&&2==i.length){let[e,r]=i,n=s.get(e);n||(n=new Map,s.set(e,n)),n.set(r,t)}o.set(t,i.reverse())}}();let t=[],i=[],r=!1;function c(e){let i=n.get(e);i&&(r=!0,e|=i),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(tk(r)){let e=r-44032,t=e/588|0,i=e%588/28|0,n=e%28;c(4352+t),c(4449+i),n>0&&c(4519+n)}else{let e=o.get(r);e?i.push(...e):c(r)}if(!i.length)break;r=i.pop()}if(r&&t.length>1){let e=tE(t[0]);for(let i=1;i<t.length;i++){let r=tE(t[i]);if(0==r||e<=r){e=r;continue}let n=i-1;for(;;){let i=t[n+1];if(t[n+1]=t[n],t[n]=i,!n||(e=tE(t[--n]))<=r)break}e=tE(t[i])}}return t}function tS(e){return function(e){let t=[],i=[],r=-1,n=0;for(let a of e){let e=tE(a),o=t_(a);if(-1==r)0==e?r=o:t.push(o);else if(n>0&&n>=e)0==e?(t.push(r,...i),i.length=0,r=o):i.push(o),n=e;else{let a=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(tk(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let i=s.get(e);return i&&(i=i.get(t))?i:-1}}(r,o);a>=0?r=a:0==n&&0==e?(t.push(r),r=o):(i.push(o),n=e)}}return r>=0&&t.push(r,...i),t}(tI(e))}let tT=e=>Array.from(e);function tN(e,t){return e.P.has(t)||e.Q.has(t)}class tP extends Array{get is_emoji(){return!0}}function tR(){let e,t;if(c)return;let i=tg("AEkU4AngDVgB0QKRAQYBOwDqATEAnwDbAIUApABsAOAAbwCRAEYAiQBPAHYAPgA+ACsANwAlAGMAHwAvACsAJQAWAC8AGwAiACIALwAUACsAEQAiAAsAGwARABcAGAA6ACkALAAsADUAFgAsABEAHQAhAA8AGwAdABUAFgAZAA0ADQAXABAAGQAUABIEqgYJAR4UFjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqfu75wzbIM8IuykDsRQ7APcta6MAoX0YABcEJdcWAR0AuRnNBPoJIEw3CZcJiB4bVllM44NCABMADAAVAA5rVAAhAA4AR+4V2D3zOVjKleYuChAdX01YPewAEwAMABUADmsgXECXAMPrABsAOQzFABsVW6n7Adq4HB0FWwXiAtCfAsSwCkwcpGUUcxptTPUAuw1nAuEACy00iRfJkQKBewETGwC9DWcC4QALLQFIUCWRTAoDLfsFMgnXaRetAddDAEkrEncCMRYhAusnuTdrADnhAfUlAMcOy7UBG2OBALEFAAUAitNJBRvDHwcXAKgn0QGhKy0DmwBnAQoZPu03dAQYFwCqAccCIQDTKxJzOvNQsAWQOncnNUgF+icFWQVYr7gFaTtdQhI6WEGXe5NmX6H4CxMDxQcl8XcjBKNLAlNTAnUbqycBj6OlNVsDRRcEg2EJANEGqz8vIwcpAjldAGsBYR9xAIMdGQCVAUm3ACdpFwGvxQM3LSFDUwFvWQZlAmUA8UkXAykBBQBJQQCrAF0AcwArtQYH8+8ZjX8ACSEAKQCzG0cB0QHbBwsxl3iB6AAKABEANAA9ADgzd3nTwBBfEFwBTQlMbDoVCwKsD6YL5REVDNEqy9PYADSpB+sDUwfrA1MDUwfrB+sDUwfrA1MDUwNTA1McCvAa08AQXw9IBG0FjgWLBNYIgyZJEYEHKAjSVA10HhxHA0UA/CMlSRw7kzMLJUJMDE0DB/w2QmynfTgDRzGrVPWQogPLMk85bAEecRKgACoPcxw1tU5+ekdxoApLT661f0liTmcCvjqoP/gKIQmTb7t3TgY9EBcnoRDzDC8BsQE3DelL1ATtBjcExR95GRUPyZWYCKEt2QzpJt8unYBWI/EqfwXpS/A82QtJUWQPVQthCd86X4FKAx0BCSKHCtkNNQhpEO8KxWcN4RFBBzUD0UmWAKEG/QsNHTEVsSYMYqgLBTlzBvca8guLJqsTJXr4Bc8aHQZJASUa+wDLLuOFrFotXBhPWwX/CyEjwxSkUBwNIUCzeEQaFwcRJaUCjUNsSoNRMh6PIfI8OQ1iLg9ReAfxPAEZSwt9PJpGp0UKEc4+iT1EIkVMKAQxeywrJ4cJyw+BDLV8bgFVCR0JrQxtEy0REzfBCDUHFSmXICcRCB1GkWCWBPObA+8TzQMHBTsJPQcPA7EcKRMqFSUFCYEg0wLvNtEurwKLVnwBEwXHDyEf2xBMR9wO5QiXAmEDfyXnACkVHQATIpcIP18AW4/UUwEuxwjDamgjcANjFONdEW8HjQ5TB6McLxW7HN1wxF4HhgQon6sJVwFxCZUBWwTfCAU1V4ycID1nT4tUGJcgXUE7XfgCLQxhFZtEuYd0AocPZxIXATEBbwc1DP0CcxHpEWcQkQjnhgA1sTP0OiEESyF/IA0KIwNLbMoLIyb1DPRlAZ8SXgMINDl36menYLIgF/kHFTLBQVwh7QuOT8kMmBq9GD5UKhngB7sD7xrvJ+ZBUwX7A58POkkz6gS5C2UIhwk7AEUOnxMH0xhmCm2MzAEthwGzlQNTjX8Ca4sGMwcHAGMHgwV14QAZAqMInwABAMsDUwA1AqkHmQAVAIE9ATkDIysBHeECiwOPCC3HAZErAe8lBBe/DBEA8zNuRgLDrQKAZmaeBdlUAooCRTEBSSEEAUpDTQOrbd0A1wBHBg/bQwERp0bHFt8/AdtrJwDDAPcAATEHAT0ByQHvaQCzAVsLLQmer7EBSeUlAH8AEWcB0wKFANkAMQB77QFPAEkFVfUFzwJLRQENLRQnU10BtwMbAS8BCQB1BseJocUDGwRpB88CEBcV3QLvKgexAyLbE8lCwQK92lEAMhIKNAq1CrQfX/NcLwItbj1MAAofpD7DP0oFTTtPO1Q7TztUO087VDtPO1Q7TztUA5O73rveCmhfQWHnDKIN0ETEOkUT12BNYC4TxC2zFL0VyiVSGTkauCcBJeBVBQ8ALc9mLAgoNHEXuAA7KWSDPWOCHiwKRxzjU41U9C0XAK1LnjOrDagbEUQ8BUN16WImFgoKHgJkfQJiPldJq1c3HAKh8wJolAJmBQKfgDgXBwJmNwJmIgRqBHsDfw8Dfo45AjlzEzl+Oh8fAmwZAjIyOAYCbcMCbarrhi9jQScBYwDaAN0ARgEHlAyJAPoHvgAJsQJ3KwJ2njsCeUc/Ani2GVjXRapG0wJ8OwJ6xAJ9BQJ87AVVBRxH/Eh5XyAAJxFJVEpXERNKyALQ/QLQyEsjA4hLA4fiRMGRLgLynVz/AwOqS8pMKSHLTUhNqwKLOwKK1L0XAxk/YwGzAo4zAo5YPJN9Ao7VAo5YdFGwUzEGUtBUgQKT9wKTCADlABhVGlWrVcwCLBcpkYIy3XhiRTc1ApebAu+uWB2kAFUhApaLApZ4mAClWahaBX1JADcClrEClkpcQFzNApnHAplgXMZdAxUCnJc5vjqZApwSAp+XAp60hgAZCy0mCwKd7QKejgCxOWEwYesCns8CoGoBpQKemxsCnkqhY8RkIyEnAierAiZ6AqD3AqBIAqLZAqHAAqYrAqXKAqf7AHkCp+5oeGit/0VqGGrNAqzfAqyqAq1jAqz+AlcZAlXYArHd0wMfSmyTArK5CQKy5BNs3G1fbURbAyXJArZYNztujAMpQQK4WgK5QxECuSZzcDJw3QK9FQK71nCSAzINAr6Ecf4DM20CvhZzHnNLAsPHAsMAc350RzFBdNwDPKMDPJYDPbsCxXgCxkMCxgyFAshlTQLIQALJSwLJKgJkmQLdznh1XXiqeSFLzAMYn2b+AmHwGe+VIHsHXo5etw0Cz2cCz2grR0/O7w+bAMKpAs9vASXmA04OfkcBAtwjAtuGAtJLA1JYA1NbAP0DVYiAhTvHEulcQYIYgs+CyoOJAtrDAtnahAyERac4A4ahACsDZAqGbVX1AFEC32EC3rRvcwLiK+0QAfMsIwH0lwHyzoMC6+8C6Wx1Aur1AurgAPVDAbUC7oUC65iWppb/Au47A4XcmHVw3HGdAvL/AGUDjhKZjwL3DwORagOSgwL3lAL51QL4YpoYmqe3M5saA51/Av72ARcANZ8Yn68DBYkDpmYDptUAzcEDBmahhKIBBQMMRQELARsHaQZdtWMBALcEZ7sNhx6vCQATcTUAHwMvEkkDhXsBXyMdAIzrAB0A5p8Dm40IswYbn8EApwURu+kdPT4WeAVoNz5AK0IhQrRfcRFfvACWxQUyAJBMGZu5OyZgMhG6zw4vGMYYicn2BVcFWAVXBVgFYwVYBVcFWAVXBVgFVwVYBVcFWEYVCNeFZwICAgpkXukrBMkDsQYvu7sAuwSnuwDnQCkWsgVGPmk+cEI/QrZfdTdf6ABYETOrAIz+zGvL/KbnRno9JiMEKxYnNjV+bd9qwfEZwixpAWvXbjAXBV8FasnBybgIz0lbAAAACnxefYu+ADM/gQADFtEG5a0jBQCMwwsDAQ0A5WUdPSQfSkKxQrxBOCNfJ2A2JzgjCcE9CkQ/Qz54PoE+cD5xAolCvElCO1/LTk9qTQosa1QvagtuH1/gMzobCWebCmIjKzwdJkKrQrwrzAHL/F/JDh8uCQgJIn6d32o6LUoXyavJrAllwcvMCmBBXw/lEKMRAJONHUVCJRupbTnOOAozP0M+cEI/HAcKHUxHbFssLVrhvBIKfe0dK0I/HF0ISgkOM1RDQjcEO0OcLAqBGy1CPxv1CFMiIxgwMQAFj2HwXgpxZMlgC2AtI25DYBk5AhseYLMGAmsQZU5gTREBZOdgFWCVYH1gs2BLYJFoFhcGtQ7cVam8WgtDFqsBuyvNwQIfFQAcAx4BeQJsLzCVUoABigq4RxoA5CN0jgrKDaZN6gGbAoecTwVAXwD39wkANBZXDAulDCQfuq9HAE8MNAAVE58rggh6AtILS2URGwDYTgZ1BAoeWgAxALa4AZonCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cKAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4AZonLTsOzgKQGHtQu1jIdHKO16WbDvWZFT0b7AEpEFwSBg8bAccJOhCTBRArDDYLABEAs84BAgCkAOEAmIIABWtXLwAUAFsbxi5sdioNwRACOyQz0+EcHgsbfQJ7Ls6hHATBCqrxbAA3OS0Opge7CQAQOi7OERkAfavaHA+7GkcczaF3HgE9Kl8cAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvC7OoSoJPA67BZgBG2sKD4sa4QHDARELuxY7AKALOxC7BBige9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewAHuwG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOwAuuwLrDlaouwAeuwJVICp/AAG7AALjAAg7FTwVuwAbuwG9KOClWw6/xAD0AGj7L7ZtvgNIo7vIqDsDAbuVJ0sAAlsACrsEAOfdGbsIGnsIoQUK/3AA37unuxjbGruji3lyBvupm4MAErsGGwsBvAAAhgBtuwYAC7unOwEaO7oIoZzKAbsL7QfAqTsA4XsBvwAA5QAVuwAG+wAJuwBpiwAauwAOuwIYu45pFfsAAVsADmsALkseAAa7ABe7CCEADUoBwgC3ryYBwAAAtAAOmwG+J+QAsloAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAAFDsAEWsAD4sADesADbsAGQsGFhsAFTsAbpsWswG7ALoAEzsDAGkrCgDhSwACOwAEUgAXewUbAAbQABi7AAv7AF+7AGv7AOSLAbsAF3YBvAABcguhAAVKHgF7KFIAOUUA/gcNDHIAKCpwAaQFCF4BvF4jDAkHb0tsXyqJHzwUYi02A6EKtAHYABYC0QNuAXZyR1IUIQNPAhU+ASwGA3NGvHtSekAAKQAxAfsAUwrbAHuQLAErAHblDREyRgFKAFcFAAFQAQeKzAB4OwQgpQBaANYVAJVoNx+LAM1rsQDP1BYIwnVzGxhWHQnRAYiQqyJTU01IEjzCifkAfxw3QCkr4BGXTwByASksMClCGQ8DMFUE98XuAEtl3ABqAnECPxF6Osd4LjXVBgUAEBsdCggMKgQfHSlOU04IuboAChLNACYAARoAhgCJAI41AO4AtADgAJ08ALsAqwCmAKEA8gCfANMAnADrAQwBBwDAAHkAWgDLAM0BBwDXAOsAiACiATUA4wDYANUDAQcqM9TU1NS2wNzN0M5DMhcBTQFXL0cBVQFkAWMBVgFHS0NFaA0BThUHCAMyNgwHACINJCYpLDg6Oj09PT4/DkAeUVFRUVNTUlMpVFVXVlYcXWFhYGJhI2ZocG9ycnJycnJ0dHR0dHR0dHR0dHZ2d3Z1WwBA7ABFAJYAdAAuAGLyAIoAUwBTADMCc+kAh//y8gBgAI/sAJsASwBeAGD5+aoAgQCBAGUAUgCtAB4AsgB/AjwCPwD4AOMA+gD6AOQA+wDlAOUA5ADiACkCdwFNATwBOgFQAToBOgE6ATUBNAE0ATQBGAFUDwArCAAATRcKFgMVFg4AigCSAKIASwBkGAItAHAAaQCRAxIDJCoDHkE+RykAiwJLAMMCUwKgALoCkgKSApICkgKSApIChwKSApICkgKSApICkgKRApEClAKcApMCkgKSApACkAKQApACjgKRAnEB0AKTApsCkgKSApEWeQsA+gUDpwJdAjYXAVAQNQLeEQorEwFKNxNNkQF3pDwBZVkA/wM9RwEAAJMpHhiPagApYABpAC4AiQOUzIvwroRaBborDsIRAZ3VdCoLBCMxbAEzWmwBsgDdfoB/foB+gYKCfoOGhH6FiIaAh4KIgol+in6LfoyKjX6Ofo+CkH6RfpJ+k36Ug5WIloKXftoC2WzhAtdsAIJsJGygAINsbARCBD8EQQREBEIESARFBEAERgRIBEcEQwRFBEgAlmZsAKMDh2wAtGYBBWwAyVFsbADPbAIMbAD2WmwA9gEZAPYA9AD0APUA9AN8XmzUhCNlvwD2APQA9AD1APQcbGwAiVpsAPYAiQEZAPYAiQLsAPYAiQN8XmzUhCNlvxxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN8XmzUhCNlvxxsbACJWmwBGQD2AIkA9gCJAuwA9gCJA3xebNSEI2W/HGwCQwE2bAJKATlsAkvBbGwCV2xsA54C7AOeA54DnwOfA58DnwN8XmzUhCNlvxxsbACJWmwBGQOeAIkDngCJAuwDngCJA3xebNSEI2W/HGwEN2wAiQQ4AIkGjTFtIC9s1m4DJmwA/QDGWgJsbABVWv4UMgJsbACJAmwAVAEAuV5sAmxebGwAiV5sAmxebD3YAEls1gJsbEZFNiJ9FGVAe8xvEZKvxVfKZszAVTBzYBH2d1iyUXEHH7twNw7eZF5JJRHI5EgaRr5D20/3dfONrFLSq5qSrrgd2CEUq722WBQ/LzpA+bx1oREI5xy4BDSZNun0ZWORUJqInZSyMaioyvfSI0l5uFDzbWaQ28/zdB0hwR4OQZ0/jn9ALSLNikjFYGfqR389qtFlhD3a6KdIh97rhZYpywuLc7o8ql5/X8KCbPU3L/QlmCowhRXhsGDvg6wUNprA9bM/49uxlAj7ZVy3ouEY/BgFXBNyK0TLrSjZWeJm/T4nz6QGLT3cJNtWRZVZTvIdtaxMMJRHgig9+S11LjBh7Inr06ykoch1U097Rw0hvgmOrydQyaWcEQDg0RavuMuT0zYabUZl1e33HNSK1oNUCS03eh+9C2EvF3fq9h+XBaAMFuoWeZf+mfZgL4HzyiKDIUtfNU4oFu0aE9qt3VA3U4D3fOSrAcYVnjG3cSkp1vhXZnp3JQm4JknKdBitO2NVnGCYQwU3YMWHWB87NEd+4AHuOKI8BSIH92reW0pfs+kWCTJxDCbRjFv8Cfc4/DSBYJScJYTeAEgg9wTEvcwd/QuHRHqGzAQ4fXf5FUI1lPrO+fvEcPl4JInM1z9AtBT2bL4QYEREe7KiSnnxTwtmAFjn8lqT3mND8qTktX2F16Ae9cakqJ6/pEQsHURqyqWlRMCzKXRKfCHT7sYHWx9/T/ugYTFY6iVN3Btm58ATJR5alYZybKMWojwOw3HbFn23NFyeLl7+Er82RchyYuBoGQ3j7SAWNxiYvp5U+Fq/DEzB9cG5DlJWsqkosRze92OVlCtQEYo1S1lF72Z8xWc4ld/+fFcfTEDTFb9d8tJGQ75dpJEvcWyGmGBiTbiWDdGOcw93Dmxq5ISUrmasygONfHLvhgo83HQZenbdBtSzBkvYrCEQ/xEDMhMZsN6gqplx5jGG9mSQLhM81UEdEeJ59sdNJDAFy/gPyJoKlwPZgB/MkC/kICLiCB8va+nCdO2ry4aDfkmPFpF/H/SGQ3LJ6aAv9dtJ8DniHtLOckZix0BVb0iR5V3LAp521LBSIi6AtV7r2ZB/hQEvAw54EFNOQcFnl1xGUIc67tqK1INNwD2n/RbwgzO9h45LM6VMuN8V1ZNIQ6t+Xy3lTqyVCD5kqLy/t3/b8MLbgDg8JIWDkSZ+LrGhhr+gYpH+pr1TnCUnZPjpUdw6bSL6MWVXoDDciQDWECwU2e6VEpfrcOBbrSOijqGkEIoJPbpmeJLkcwbvA0yWIixQVjo0HnYh7fji+Dfdq1mtV1lG2Zz9R7eFMHS+FK7nybutu2fwzDpFldO2pZBshsHJWaltn3PWOoGJpCT2jE8EHOuC6FkejNWcfsWCqNqMLP9xTwcWArj2EiiI7D+EaDi7/2cqHL1gPiF6C/J7aUo7RQqogPZ11WqbyP97nsoMxPOC78wZMF7B1Y0g7JNXJV/nN1m4xx8hbqWz07KSaqr5hE4icB326DMR/vUKX9LoNjle/ZWtbUhrTAcsdgrLlG5Ne8aiR0bS/2ZhpNOVVxavWIZsEM/rd68EB4vjbbD13NkMK1qvMk74vGbSkL7ULO0sZ9R6APSCo6KH+Xn98wEdw1bCPAnDTaBsD6sidAGN58uiH4a3ovG1KyZAu2XtyGgF/vgWKGxw9R1lfAVcfuYE71DHuxtTzfGZnHaDpDGWmfEq0N4GawE7yIkaoz8jcmVmzJe1ydM8q0p08YIxFcY1YcqQc1djWBEoNETDFcgk5waRftEJasPREkrV++N/TOKkERF1fCLrXS8DFGYGRBeECMQRNEs0ES3FzUtXCcNxpYEM3Uei6XodZruXUIRnn+UXf2b/r7n1vQutoi6WoIbW7svDNWBbUWcDUc7F9SJK3bvSy9KIqhgyJHoW2Kpvv0J4ob14HFXGWWVsYXJzjwxS+SADShTgCRjhoDgjAYRGxwJ1Vonw+cpnCKhz8NQPrb0SFxHIRbmG95Q2hlC4mDxvPBRbkFa60cvWakd7f0kVBxxktzZ9agPJEWyA63RSHYVqt8cPrs2uFJ3rS3k9ETGKn5+A6F9IOrdZHfT1biEyUJKEvwzuscwshGCBJvd16TrefW03xVnJf4xvs72PdxrMidjJO8EiWyN/VWyB3fv9kc34YIuZTFtXGo9DuG3H1Uka5FgBMwDPEvRcSabi3WakNQkXFecJlFk6buLVk5YHpuKWTw6oF632FPPSVIVl5hgUAeHhj0t/sw/PEEvThLQDDFE34eCg/rLOyXT3r+L98oRKrlTO0MdALYQ3rRQqC7d822dJPGxF1K4J2TtfPSMFaCAg0n0NGk9yiaKKOJD1v2aBX9HUOIawjjfvwCmjHZJTR62R9c9x33JnBjWrN4QYEOmehy0oZMP9XM9Zyi6TYoe07PaLceRXcCWZiY/imRUWW6+mci7+wMxSdwMdbXckXtvhJH8sc4iQcTwm7yp+3f7CaesTTQB2qkgeXh+wFiSMXfMlH7Yil0OoZ2QTtRLTip2O0cLZ4SstqWHZ6H+8A2kZXhpm0kPbL9dUanTOvziqIUh6Ambwa3WrCb2eWbuCN3L1hgWUmjRC3JoL3dBhR3imSQI8xuCMfsszlji7cSShNSYdqCXPxEVwbqO9i5B6hf93YI7aeyI8jxgcVXK0I/klbvhSXjkjOIwZgPdVwmsFW7HGPLUAvDRuKm+itybRg7c8+Yqqjg824Qf+/NxsBSUNAK9KCoJpauFqK0XQULrWYj4FnxeKDuvr54iokpi+D57e6Y1zxRJJdsHnDR3JyraCUufHBRTKODWBVzthjm4k3/Hv+Q990XDVR+KW+TcJX045LW86EKhz/97aqj89A8ZvTk1//tczosU90loIPVaHuWegJU3wP//7XHcO7c0yQM2jM/IhQKrf8hiObHWiWDZManF8Uf/HzbmDfC2wT//aiZ4hGTv/xzgKwdb1sD6cGEkceow0s3b89/zg+3plyRm0HlZi886j5wUwFhdHiDTaBidZRo5cx/tMeLyguOATbzq17ydhzbrpxunuHx6lbFGiO97gsd4dk//7iCIo+Ew+hG2so5kvv+ITG4c1fzHPtu1Xn5QfUnqY3/uByVmB7gmnE/E+5zdm+6nDmoews5fr+NzThdSHzK4bBQOL9c4O8OI0xLSqjJ4lbniLJg1aFpQRLwaSMZmpkC9e/j6FOVrTQ6a/a4alGgfrl2ZL1sbHUQ3DOI7ntq9diHFfm3t1mul3rdJEJCHnlW/hlQntipMrpeMs7fUr6wK370D7VbXH0DUHzdYfRg/6Z11Ult1sffJS+heHbco15Sxy3+rDnPesqH1lajk0yu02hPUvEUqvcUXWXL7Ad0wNGMx5gOle4XJxq/r/YY0xdco2wRSEGwcT7YADlBrHc9ZbvzOL0QwyWCWWChB9Obg800v7tyBWaNvdwz+fL7Ph9i2irEeJkRgOzeEDw+JiD/V93vH9FgMEoFIJMoIuogmicZohf94SBuPn6hXaV9jP4VVVA/bu+Wg8S88GLtmEPSNRLdtlXx2XL/nuM8nKkhnlnjaropiKKLIH94pLIASci0pDBfj9Hi5BfaTSXQg5+PMjQX91Ktk4MOqK1K99l4BRPv5+vNovGZ3IxQv8ICvjV4/diThpoaM8uvd3D9d/DE477w3yAbW3IDm2i73pZ9aEj38JqS6h/s8/xgmUIVcuq2JTgefAyuoafzQxAuRASeg3NtG3ach/JEkyuX+JDt2PnDZTShUhyHHG3ttBg/6lhAchGjLJBtopj4e01MlCp2yqQRTr4sBBXru+lKaoanwYX8y2aWCJiR3KnhCOkYVFSvsO0oDRujUFOEptiNDTYrJoUbvOyvl4AhC9h3wORiTXK1MrpMfnvdnndnR/HRVSusMBgIxwrLdn3vq1VcncPiD0SquTx/kNmxeFyCT4uXVUd9AL+rSGmuq7OOCzDKeVPjiNWVaoP5KOFqYq5Xcuf/xW9S+u9eIq9GAtZWtQlgkRecjRtvG1NR4WXXpn+pwsTBTIy079Ikg8rSef1aVapIFcXCd6C2wHVjLXR+N0tw4Taw6x6H90BFRgNrtlq2up6hHKuV3inM5RJaQWZHd84e6RsKkk9po3dk9by54tpPw7cBkFas/G+GbHwuG+AwP55BZyXILTHCIVrPpXHEaUPYfL6nphJP1Rc10xG4UaCeY4IHCwuur8xmSQDgY4aVwhzWhjbtSHG8JO6P2i2nC9/0Bfx0zk6dYQq3aw7k5vIObD7SEKrxhz0fQ0+YTOfHW23CBNeZci1qNsUDhoeqmfyP6PvjoEjHk8QbrFyQVZPHVWijnb8YCM65iYNoEbvnchStZ/9cKg5Vd45j8KnB6UjzXl/bkyZx7VoD47ocUUi117WwgySSb4rXgLJ52Mv5XJbp3I+uBP81BUvOjy4Cacgi+GWWlC/8dwgqwiojjUBDnEOxyRyowwLQfytFra1OZS4XvRYr4uoamAfG3I/p2bA7G90yqKThH8Ke00Tqd+3l3dmJpaCZelBMYjGqNLVa3SM4+LQeL56gY6Bymy2LQPVOxjWfj5tq4o74swcxhyGJPynkS5xAjOXZP1/FAYcBT3u6qLoIkEfErwo4gozmyI1YCvM0oyI3ghjGPQSsof2sKUhq91WsKy9cYWN+4A2v4pG/Mxpdc6w6kI/HX7Xb0TuihmsiOy2wQIsrZbUmr3OBSUo6oDJNgQp+YqYkgTgYcWZDgawJw3DFfdzT//PhVUidgB2qa8uw/j9ToHBAS33iT8YLhhAfyXG0bQUFp7QmH7oQ3i6Flf4OTZLvJdh8pfuflmWu2ohm5pTiSg1pl3vq9uluTJwqXfh1hqy8e2iHoD+Y35gCIViTo6VOtK5dD8HYClucJucXASzwe2kPj4S4eYQtmkYHagXhAzp/F541xE8YFYqSPszDuz3soWzHy0p3E2jwZNQaIcGU9FNQwQxeDw0ZlK9dxXrj9IUHGUPTOyib8CqXmbZ7Ex54bn1rLx3qqAavu/gh6XjV0GmN1p+yyMK9HN5uYEvxgbAk43tsheREhyI+Q5WLIneKTGPmYiM/lxOp8fvqHy8YgXK0TlMiX0tliLI2JtfmWZP8eVV732sdYm+pcWzDzEmKLJZyeelyaZKkjPnnUO9keDwtgiLnmd5+t+Sr5y8brRnlvxcWEWfCqIALQYHvaXx6jTg4dAlye469uGwwOZVZCILLfGjaMg4LUCNMTtMSp1aC2y/3wR2t1v3w/iNBRQ+bNbtDqL2NAr7K4rUcyqbSpNrXZgAWXvjxBBtfYLK1uRYt3q2pfXJOAL0HtWcEwJLddOSJKV1SwvcvEuzg/4MPnA8MIUJOLqm3qI6wFyN99Ck6zYaV/zGSAzF/PGsaNa4vPLe5QnyuqVUnVQ6xELA6gbe53aGgeke+R/ycb2LJVyc7BhuzI90zA+c6wUDTb7NH//gdDSl2u/aW7lRJm8m1fLtPxcNuEM5JbkOCZKPM88HUsLRoC1pmKKlvWyeAXuxILbu0snpSxf8N+RgtLUSe5n2gdjOjoSTaN7mMZ7bF+cWk/MS8mFD4pcyl5UN7CbpFZH2a+Pm1VAnUTVfbw8qrmz1G9m5aKmRzY1SMhhPrlCn2t4uNUXNA3IFe6NOjSC1DEaAFZAfDlEkQCsbNhsZPj6NQPDSB3tLiTo0ZYoEbIeEIaKtU3Wk60rEszawTFuyHVd365LA/c/uarABN5M5rGq/dqTG3Ilye/5EKiYisisuzqNaZjmWv0z9TORc0CKbaTea214oNM9u2sXUZub/eqM3Pi/PjRSyQiOSwPWif2asTgu6hS6fb5UGosCWxdedMqdViIUUSSdIJx+qQ4KShfTT39VAWZbi+mB+iKICNwpt6cflY57Rcbs6d1kA26Iru73cuxYVlSvuJdcR5VfDYZRk8X0AXePROyw3Le6LaUdmTLzYsoNhhgQpd67xVNiHgk3pakmndeIAtTC4DCXy9oS6eU4CWxDdVmY53pKNbdAKmQsP37lrJZC6iDXMELGKcHjNuuZgcDyY8W/yv6ha3DX7OWm/35fpvhw55oitf4V+GULlcPWYyGGuVBdro19c8u0RDddDun40W7G5cSIzHLh/qZxb59R+EPY+wZ2XerkUim92hhXpKyW6WtAh6zQS97DrPyjCvKi3pCw96LeKynOpyjtsMQc2RmI/20zFOZcSa2AK++PoRcT6zeJyxlBZ7kk5mhqXGkLlM2hFKc+/T544xXP0Ua38Q6xdPTLTeG1PHnLMaOvksUQMrEFTB/lizCirmFQL8zYVU+OTeYQEFaITsBSMMYexS9HkajO2gGIf2micvntCZJsZQEwIH3/4JGJQGflBuH5rNXmnRRYXDQs3ZoEQoMtYDr1kFKUS/siiQSUxcTH9XYeBZiKDDFQoExREO9dddKQLO3BwMHvymCSTFyY+vxn3D27NDx6OlU092D5EDUwilttqVHpjJQDUceJYCLsK2swfXeNUVrBJT/w/sk+7si8rPtiMFis+oxvGdGQxirMBID700T39mULuNHzOyN+xBfcFACZcyngF1aSpv0JPkNUrAZTqfplv509cGXFUiEEm5dZb+OsP/blizqdK45/dSsIrufYTrCPY2lgJD6k6QljTfXVlHfYKSq+MsagyUcaMintyr95bD8kdTAeYNLNsMmo/Wdd8a2nStBP49ARIjqqpUHWY4q4mvO5Cq/CgCP+4/B+5zutGwX5pssgVLr1+fIM7WWLfiUQDk4c6ZdHZOWv5hG3g2dgQ5NXnpIY+BWwJpaouf25bXnjDzbHnQNofH/c6m+dEAS9Gs2h7pFRPKOBDnqswZ8KZjhId1ytHUTs533KwBoSiImoxKQUgZ7z6pA9QB3sZ8Cq0vwutJTTkfbX8AzCpm2cFXx/P22niUMHauU8IGc+78R6TsutoonoqFuoNA3l80t387YHMoL5KGAT1JO4zmx+vJ0LbLHlicHraSVYvJjnO9p++qnWgKw9OwFVVUagvZuf9qfiuum+hIicxP1q4zDnzkHsCNriLxBpxY9N+UOmqzdY1MunLMDgkMyi3uvnN3UBXJeZ8YLs5xr8QrOhimYoKuGBebZHAiBIkViv3DG8k2oNpp5OIgX6ulqaRN8V62QUPjn5tl1kPXhT9bcd8qIm8gi4or/FGbvQ6pgGSHmnayrugmf5E0upGxPRf/3xOtitGMaHLKJVm5zhglmVfI91o0yxhJZVS/5wQ8zfxK8Ylw0WmHXoGfRkoBRx9Hsnl/6sgTjAVwpmNuSeZtBwlX4qB8Bh8lxjqBDIuFGJ4I1wxN0XRlAAslzqMKwQfyA7OkuivCXfv+i+3XmhcBFM2n4jdT+NyUmBnQJPV3F2sZfKvJhUlXzSosFR4VevVVcOkFnnjdiRWc0TeSYxj41sJGYMbZTeLI3GvyZ8/gAAudQ1+4oFX+enX5V49MczGCYVBuoC4kHjp7ZVxj+clBwPr9k+v05SsezQK3enxLs1Nt/N7c7AImVUysjGou4iOohHo83Zs9/MI/OWB+OyXzOBD93NbApGHXrv8CVRHp2bwH+xB55cfNrdqFD35HSMx4iVmtzYAmSCIV8kXsHoq3DIb93riTWbubnjxbBW5zConVtbxLRStXHkIyAByaozME952Gc9aAdAbBpZSVCH88Uwb/4bPTVOVl+WoMYD7JIvK8VcMrJ8zHV4bbG0Dg7Kx17A4ej/ZcZ2Z5pVuVLUH1E/AccUTKm81SE+LQ6STTUDscUk0x2OWIbEORhg69tdoTGNkA1RfkGIRZHr5mCXOpLC55WWzCZoGPFUVtZRHwh0nq039CDdjEPo+JyaxSQAvDgR6Iqvxy0frrtEG1A385N81l05SSzN+IDm9bypF9m92EUqblnauZ5sjc37wRykOdl7w4o8WMgQsjii3EE/aJYDfHs1cH6DNBEujjcCc8qAefYFyIAURDcDnzun5UmkbBQsU4eu/W8I9nBE0qJKTdg2hwjq0+XV7a3TJ7R+alvJZCRia9lJ+grNB9dbrOmWEvUotMjvDhq4wV/kq4fvIBkzUGpDeYH74rne8uU3dgoNZdR9pUL6q9YDNRfOiF6Dyk+SYXQIghTjm9qR4tBHh0gnmF/9q3Qv22EzaLhSvDlDOxMrrCNRmLCl1jApzLrBCPn2mjn5zqK7OYK7VxOfQ5GfBfoPdyQwqFEgCVHkJ9oTnagRM3R0+rsuN5jQv9icCav/p1WqiEXSzCdLd/WEA6z6dDP7tPqPbeDYKAkVcz1lLGbFOC9b7cBd3MV0Ve8dZ89oR7OnxGS7uVpSry8banVZwpJg+nkH1jRBYa2BvBMY2xITH9ERXCjHzdZxs+ipdXP2DY7X+eWiBhtT2L0RRGTLPeazn5tpl4tu8iE2rWig731iuJDRbCHHy+g/Mb9+miAyVqfIpXT/iZeOxOxODO0hEpLM78I1+G2Z45yi3lS1K3m4WMQ559Lp4UML5vZUjYGJuxl+OPpUH5klpyBujkjprhei0TmUik10gjvNUp8mDkWlNKikmYspaVTqewbnOzJrmz8FLIpsT67EJLHIIfeDcWEfiP+DJrZ1jfxpoAb2abeMqLx+9RuZGzQoYtYVGgAWwEM9Kek2vPIeBNAKD6ao7nw6sgvfeLZPoXkbYO/tStHJdKzk+WFSFEU2NcALJAEP6S8pcnqqBBt57dwTrzQNCIdk2SocK4dLRbD/pu/VryKnm65ZYXiJCfHJk3mx9MRSl+nSK6OqEBSoGjz0/LADddwF/HqcfK3K3O+6YUGQcmj8pZL4PhZ6KrGkb8B38FmDvvLd3XQXbvS/FQmrXFTvJNkaN/FGo83KuS43BK1UfVnIqigGkCoP5fBda2MwAGTGNKX9K9t4Bx83pMFc5KSORmWKv+8VoVggWxoaBz3/9IBh6RwLd1tebwy89xvE5z6EEpXpDfrXWfRsMs6+ekUHH6idVosno55+xQ8Zqzelh0bxtJTgCcH3Z3/Cxlx9eNIS4JIFKOAVrDqbrXRszmY55a5+niJGHtkO3b6mnIDxLa1WXc7BAe33mt2KyM4Fbc3R6/WVTQN8QhlqAtave2WsQTqzWeSlKuGUVIJRqtObpv294rS0kDN1RKzdstZTXJebR2HlzsQ4P3NbMHUqFZMZw+/IKXnh4t+lY8qocp/B1oMszR03EFs3bPeND8QkItMvllObeCz3SZAjqZrobmLcrpFyQV7mwBjg3C3C8/bc5goQhv8j/IXMLGnt4mF7tybRDG5G0polxoUScQkPvmnga2/K+aapKeqSL0BTmo1Cm5g+booNOtdyKva2KoefRURaBk7113QKo3y+WTuFKtgETIK8HRluYS9DvlcciCDvnG8UaJRfZE2siZsiTHvRmN80xkUIInHeRZl5Re/+ATL6VhKFi8CZ/n/jbFV6T5pZ+Uoppvsi3qjacVFOJgWWfdlwVHKPW/TJO3na9hRM9bS2yo2rEsC6IBzRReVO6IesJU7PItzOamr+ROFfwGZmZ7ue8HNxAgLJKb7P3p8dMqk6Be5PJaT/5Rdc1deYVihWH9cjVKc9uz5EnfHqxLUkOO8iJUENBNVf5LyNy8zjLu/78k5WNTywiPfYeX3CPk7yc6CI3lum/CEZwfUaNpcI3KsPqfn2lmz3kd/acQjKA1ebkJaiuLD+epQ/Fc1llHXXMzofWzz/Kd29SNmOhcjMWw1jq1g3YfrXZ9rzXDYW4ZttfgfMi6oCUtBs0PkMVuxmq5lxEoCaSXPSqCJJ7MlKdRDidVt0AFlxk5cTdX++sBF2+E35mjwfm8ERVxH0FvuAQtsfA4V2G0TKTUxeyRGVjd/u6F1SvuAiU2/WaQjcNCU4Ep7VunXCYSbZj3U3wzu/LWM5MPlYuyQ3FOOCD/zt7K295hY2JhwF+ODDIZ676vGQFKveEQYkWj7lkK7rVmD7MhU0Y/tF8EcTTpo4/yqOufbd/zWIpMajnbDuWK2vn6OPPtz2rc9MIBNlPd8tt+yf+7SC4wqEPbozKMCwY5Bygx4JmoIEDsixWRDcdHd6S3/dZMHXOJAAv7+NIstl00crgSqHZKAEe4g3G4dzIV51EeZB01r7p8GNlfUnG/GjZgNGsqXZdYMBVtAtFNv3hJWPve4GvqZ2XxuiNkHTz5kxWgr0PjQdJlVywJ9Zf2ZvqeeTbolKtvK54re2Lq5BoyzfsRtvDfyao3kmyFzDQ88nM+qx83w74RDlkngtYiArI05Epre3GgBeSlMig0pE6RGQaFznKkGeb0SozLCyiOtxh7hgwZlbKbClzUUfC8ntMiHUOZE375RhTy9c4DA+oMLkUDkztSybZbdmP1xpaIbjUpPAHBq3cIq+CBFzbMlMMCCkUQ6d9LGV6GYCsYiEWZIy3nBnuxOYXeU4YTGDSin9e4/pCjPtQSHlg5LMEvIlF0ElthqrF129iK2RPBEWd3XWOl3SWV5uz5VUyZYp5kEFmz7QfP/B1W1BBzQ2iTGbSVT79lUHzcGXz3PJceSgz4uknETUwo0xffpr2KUvZF0i/r2sL3IFIClYx8CbIZE6Qt7MDJbOPB3xMScwaOcWG66IJfCnDkb0D2Mb+PHzX+oiCbxeTIogtyN+s2NJirNACk/OACSOTtV6vscwbzW4M168xqaI+RzR47S1nlV/rOoZnid87n/Ima2XYa3un3BuGAisNjb8eLMT9OnMtazQROFCuO1HiZXaOc0oUDbNC4eKLToOx8DzVhMgGA8XIAQ2x3b6I0uEyLssQjJX3QphcUMx4KsMgJ+72km4N2aqkBF2coKmUEt1eqIMGn+5txMT4kYVGd3ALO+y9Z4PP3d3l48JQK8s9ZZ/Qx/+NBKgBEJFlQ32psoJiihGO7FSYM5L81q72kaAYcilEFMG+ZK1BcMqELkflyCV7v8JEXLO4Rf/oZYNZHZVjJhfL6fnpP9Tio3Euue5uS7FMkfGOeRCTrBZ06Caev7tgufeTrX34Ur/Vvc+b8ksiIShNJtuF9WmYxOZ4xg8y6zTdy3KAB2y5kYkcRnXsptWwAFyKZ2I/QGySNeoQLkINUMloC+5L3WuMMx297Q1xUYLKqZ9XHavaobo6QQv4auMm+i84IhxRpPt9nUmcav9NcjCcP+TcMmxsQZ/F3mgeoA0fQgwvTsyXuuTaM3Sqtv2jaaajmaFQpK9W6uIbeqwvSDo34ZrY6elDUHwSCjHRRmlwmyy+eOra64Ssq0XSXYljMHtKY+FShcMkHsEUY/4Bw63dJ6KpwDaxmthlDdbdE+TvYF3v33cGSKqO+1H1pKYhJMvZD5ckQcHyNF8zrtiR5b0ko6NPGoRexUZTYP6VbUdn3zzxGBOi8Z0OqHjGqYxRXwN3mYi0GYEEZYq+Q3QvdKcEHILLLj8S+VFepSfErtmfZCdvxbfIifFSpEzKi+7VJsLMT+zEFeyp1OdwRC1VZrfTLIyR7xTPUcZFYPD9qI7D70uTb4hdpqPXsJIRNYbZtNwch1OI3trh3u2ScoQyM9POnInsUa+OovcwkUP1UfIzPb95n4BaF2ev57NHAej0+BVMF9/Cj9663HN2/JN3SQgslL914bKfiTTDFAz9PlQEL/dSv1H8xl3mtWxh1McFO9EJXlRDaKQDsyKO4vOJW90NFE6yw2tjbc2GeF95sbs0I9enAa6QwQVf/kJQhAD2BzUDKggOyjy1TEhED6sfk+418lQy3c/uj8aw8UEzZ6hIMCd8RohAkumMtIj9m73l2yPWoGHVTPaywkC7Yj9tBM1NxMgcrDwRtk4RO2WHT7Ql5kQCKdJj6kNuOTeyEBYBjLMhGz+O5/YGa84HEiTYEpZ6fFzy26GG2hWtTyteuYrhSyG56BjsT/wQeLRytpTY3D7sIMqZnJ9z1FDrfyjFlGl2TNw9BQysbaxOuwYYZs/7I6BANgkqCknWZC7/BBXvaeKwAmC959I+G39BUE9bExkNlbRoFRyEtNzv+NJ91FuisG3JCS6uYBeRnfv8AkAfKTeg9EYamqnsGfAV7d0f9DghHEQ5IsPGDIUhgoSj7obM4Bu5uhQ3/CYEDTHc92AsFvDK4XGrwUeGBWBHPlS+f4x+CxmmHz2sAGmSFNt65kwZC64mnaoWlu2310laYn8r62AqsR5dfjyK18MEdurdagldzfJtjFXlZs7St4QhdPiye6TPh2/ZAQLU/Fip5s7TDEM16KtRWrK9hmxnQ7bmfa/+7pa10Z8WDPK3NuJ+NN/RAbQ5vHx2uX0Lm7/w7cAEH/hvZA+mt7J7zGw7YtQYwnNN6dpgwkGjjrS3yQoeoYt1EnczmtmJfQZWzUlP3Hlg9Wzlr9IH23q3thGth+QNEANFettxKfskkGOlLk8AqoKJwDqOxAa6UzAx07plSSyNBJSGco9zjnC5gGbDoKvsMDuBR6bGRlGzJ+hFsGa/Izt78aI+WZ6dJlZKp4pGISuv9rV0sAS0MWEwCmfauO7oQZMiakHU35LBxiyJoOMddhUWgcZuC8r4Ksvn75TTcQXLJ7kWtYhGuGqPd9dZuFjBWQHNwosXY5snbHFQq72CvHXhIg+shQxycuLOuWYErwCLZeF24b7F78pO7xw4X6lIAR02hUOf5087Rl0nOaeb6CK4i/KA/EZv76ftOWZtjwxslNr0E/u8rWUmnf3amfg6UZmBAluuoj3Dd7UV+9IAJ6iYcDfSJlgmIImohjfIUMJ27z+opj50Ak9af2LCNrWrBJvMovA1OeNO+MF/MwZvnaCxTgG7Cw4QfSPF6AYCGFt21M8PySZFeV3t2Rqqs5JMzMYzGRgq4o+UaKRgBf9GHi/9X9HXA3wxkCsd/UhnHSh2zUVDiraio/6nP4y3XJqs8ABfALAtCYU7DHPMPRjgcM6Ad/HiSXDAbOdSMkvGZPAkHs8wuQTy6X2Ov/JFvcPuKfV3/r9Q28"),r=()=>tw(i),n=()=>new Set(r()),a=(e,t)=>t.forEach(t=>e.add(t));c=new Map(tb(i)),l=n(),u=r(),d=new Set(r().map(e=>u[e])),u=new Set(u),h=n(),n();let o=tm(i),s=i(),p=()=>{let e=new Set;return r().forEach(t=>a(e,o[t])),a(e,r()),e};f=tv(e=>{let t=tv(i).map(e=>e+96);if(t.length){let r=e>=s;return t[0]-=32,t=tC(t),r&&(t=`Restricted[${t}]`),{N:t,P:p(),Q:p(),M:!i(),R:r}}}),g=n(),w=new Map;let y=r().concat(tT(g)).sort((e,t)=>e-t);for(let{V:e,M:t}of(y.forEach((e,t)=>{let r=i(),n=y[t]=r?y[t-r]:{V:[],M:new Map};n.V.push(e),g.has(e)||w.set(e,n)}),new Set(w.values()))){let i=[];for(let t of e){let e=f.filter(e=>tN(e,t)),r=i.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},i.push(r)),r.V.push(t),a(r.G,e)}let r=i.flatMap(e=>tT(e.G));for(let{G:e,V:n}of i){let i=new Set(r.filter(t=>!e.has(t)));for(let e of n)t.set(e,i)}}m=new Set;let x=new Set,C=e=>m.has(e)?x.add(e):m.add(e);for(let e of f){for(let t of e.P)C(t);for(let t of e.Q)C(t)}for(let e of m)w.has(e)||x.has(e)||w.set(e,1);for(let r of(a(m,tI(m).map(t_)),b=(e=[],t=tw(i),function t({S:i,B:r},n,a){if(!(4&i)||a!==n[n.length-1])for(let o of(2&i&&(a=n[n.length-1]),1&i&&e.push(n),r))for(let e of o.Q)t(o,[...n,e],a)}(function e(r){return{S:i(),B:tv(()=>{let r=tw(i).map(e=>t[e]);if(r.length)return e(r)}),Q:r}}([]),[]),e).map(e=>tP.from(e)).sort(tA),v=new Map,b)){let e=[v];for(let t of r){let i=e.map(e=>{let i=e.get(t);return i||(i=new Map,e.set(t,i)),i});65039===t?e.push(...i):e=i}for(let t of e)t.V=r}}function tO(e){return(tU(e)?"":`${tM(tD([e]))} `)+tx(e)}function tM(e){return`"${e}"\u200E`}function tD(e,t=1/0,i=tx){var r;let n=[];r=e[0],tR(),u.has(r)&&n.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,o=e.length;for(let t=0;t<o;t++){let r=e[t];tU(r)&&(n.push(tC(e.slice(a,t))),n.push(i(r)),a=t+1)}return n.push(tC(e.slice(a,o))),n.join("")}function tU(e){return tR(),h.has(e)}function t$(e){return Error(`disallowed character: ${tO(e)}`)}function tL(e,t){let i=tO(t),r=f.find(e=>e.P.has(t));return r&&(i=`${r.N} ${i}`),Error(`illegal mixture: ${e.N} + ${i}`)}function tj(e){return Error(`illegal placement: ${e}`)}function tB(e){return e.filter(e=>65039!=e)}i(93709);class tW extends Error{constructor(e,t={}){let i=(()=>{if(t.cause instanceof tW){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause?.message?t.cause.message:t.details})(),r=t.cause instanceof tW&&t.cause.docsPath||t.docsPath,n=`https://oxlib.sh${r??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...i||r?["",i?`Details: ${i}`:void 0,r?`See: ${n}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=i,this.docs=n,this.docsPath=r,this.shortMessage=e}walk(e){return function e(t,i){return i?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,i):i?null:t}(this,e)}}function tq(e,t,i){return JSON.stringify(e,(e,i)=>"function"==typeof t?t(e,i):"bigint"==typeof i?i.toString()+"#__bigint":i,i)}tq.parseError=e=>e;let tH={zero:48,nine:57,A:65,F:70,a:97,f:102};function tz(e){return e>=tH.zero&&e<=tH.nine?e-tH.zero:e>=tH.A&&e<=tH.F?e-(tH.A-10):e>=tH.a&&e<=tH.f?e-(tH.a-10):void 0}function tF(e,t){if(tJ(e)>t)throw new t0({givenSize:tJ(e),maxSize:t})}function tZ(e,t={}){let{dir:i,size:r=32}=t;if(0===r)return e;let n=e.replace("0x","");if(n.length>2*r)throw new t1({size:Math.ceil(n.length/2),targetSize:r,type:"Hex"});return`0x${n["right"===i?"padEnd":"padStart"](2*r,"0")}`}let tV=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function tK(e,t={}){let{strict:i=!1}=t;if(!e||"string"!=typeof e)throw new tY(e);if(i&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new tQ(e)}tK.parseError=e=>e;function tG(e,t){return tZ(e,{dir:"right",size:t})}function tJ(e){return Math.ceil((e.length-2)/2)}e=>e,tG.parseError=e=>e;tJ.parseError=e=>e,e=>e;class tY extends tW{constructor(e){super(`Value \`${"object"==typeof e?tq(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class tQ extends tW{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class tX extends tW{constructor(e){super(`Hex value \`"${e}"\` is an odd length (${e.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class t0 extends tW{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class t1 extends tW{constructor({size:e,targetSize:t,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function t2(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function t3(e,t={}){let{size:i}=t;if(e.length%2)throw new tX(e);let r=e;i&&(tF(e,i),r=tG(e,i));let n=r.slice(2),a=n.length/2,o=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let i=tz(n.charCodeAt(t++)),r=tz(n.charCodeAt(t++));if(void 0===i||void 0===r)throw new tW(`Invalid byte sequence ("${n[t-2]}${n[t-1]}" in "${n}").`);o[e]=16*i+r}return o}t2.parseError=e=>e,t3.parseError=e=>e;class t5 extends tW{constructor({size:e,targetSize:t,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}var t4=i(44727),t6=i(94554);let t8=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),t9=new Uint8Array(Array(16).fill(0).map((e,t)=>t)),t7=t9.map(e=>(9*e+5)%16),ie=[t9],it=[t7];for(let e=0;e<4;e++)for(let t of[ie,it])t.push(t[e].map(e=>t8[e]));let ii=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),ir=ie.map((e,t)=>e.map(e=>ii[t][e])),ia=it.map((e,t)=>e.map(e=>ii[t][e])),io=new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),is=new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);function ic(e,t,i,r){return 0===e?t^i^r:1===e?t&i|~t&r:2===e?(t|~i)^r:3===e?t&r|i&~r:t^(i|~r)}let il=new Uint32Array(16);class iu extends t4.ol{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:i,h3:r,h4:n}=this;return[e,t,i,r,n]}set(e,t,i,r,n){this.h0=0|e,this.h1=0|t,this.h2=0|i,this.h3=0|r,this.h4=0|n}process(e,t){for(let i=0;i<16;i++,t+=4)il[i]=e.getUint32(t,!0);let i=0|this.h0,r=i,n=0|this.h1,a=n,o=0|this.h2,s=o,c=0|this.h3,l=c,u=0|this.h4,d=u;for(let e=0;e<5;e++){let t=4-e,h=io[e],p=is[e],f=ie[e],g=it[e],w=ir[e],m=ia[e];for(let t=0;t<16;t++){let r=(0,t6.aZ)(i+ic(e,n,o,c)+il[f[t]]+h,w[t])+u|0;i=u,u=c,c=0|(0,t6.aZ)(o,10),o=n,n=r}for(let e=0;e<16;e++){let i=(0,t6.aZ)(r+ic(t,a,s,l)+il[g[e]]+p,m[e])+d|0;r=d,d=l,l=0|(0,t6.aZ)(s,10),s=a,a=i}}this.set(this.h1+o+l|0,this.h2+c+d|0,this.h3+u+r|0,this.h4+i+a|0,this.h0+n+s|0)}roundClean(){il.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}function id(e){var t;return(t=function(e,t,i){if(!e)return[];tR();let r=0;return e.split(".").map(e=>{let n=function(e){let t=[];for(let i=0,r=e.length;i<r;){let r=e.codePointAt(i);i+=r<65536?1:2,t.push(r)}return t}(e),a={input:n,offset:r};r+=n.length+1;try{let e,r=a.tokens=function(e,t,i){let r=[],n=[];for(e=e.slice().reverse();e.length;){let a=function(e,t){let i,r=v,n=e.length;for(;n&&(r=r.get(e[--n]));){let{V:t}=r;t&&(i=t,e.length=n)}return i}(e);if(a)n.length&&(r.push(t(n)),n=[]),r.push(i(a));else{let t=e.pop();if(m.has(t))n.push(t);else{let e=c.get(t);if(e)n.push(...e);else if(!l.has(t))throw t$(t)}}}return n.length&&r.push(t(n)),r}(n,t,i),o=r.length;if(!o)throw Error("empty label");let s=a.output=r.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(s),!(a.emoji=o>1||r[0].is_emoji)&&s.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${tC(e.slice(0,4))}"`)}(s),e="ASCII";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(u.has(s[0]))throw tj("leading combining mark");for(let e=1;e<o;e++){let t=r[e];if(!t.is_emoji&&u.has(t[0]))throw tj(`emoji + combining mark: "${tC(r[e-1])} + ${tD([t[0]])}"`)}!function(e){let t=e[0],i=tf.get(t);if(i)throw tj(`leading ${i}`);let r=e.length,n=-1;for(let a=1;a<r;a++){t=e[a];let r=tf.get(t);if(r){if(n==a)throw tj(`${i} + ${r}`);n=a+1,i=r}}if(n==r)throw tj(`trailing ${i}`)}(s);let i=tT(new Set(t)),[n]=function(e){let t=f;for(let i of e){let e=t.filter(e=>tN(e,i));if(!e.length){if(f.some(e=>tN(e,i)))throw tL(t[0],i);throw t$(i)}if(t=e,1==e.length)break}return t}(i);(function(e,t){for(let i of t)if(!tN(e,i))throw tL(e,i);if(e.M){let e=tI(t).map(t_);for(let t=1,i=e.length;t<i;t++)if(d.has(e[t])){let r=t+1;for(let n;r<i&&d.has(n=e[r]);r++)for(let i=t;i<r;i++)if(e[i]==n)throw Error(`duplicate non-spacing marks: ${tO(n)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${tM(tD(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(n,t),function(e,t){let i;let r=[];for(let e of t){let t=w.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(i=i?i.filter(e=>r.has(e)):tT(r)).length)return}else r.push(e)}if(i){for(let t of i)if(r.every(e=>tN(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(n,i),e=n.N}else e="Emoji"}a.type=e}catch(e){a.error=e}return a})}(e,tS,tB)).map(({input:e,error:i,output:r})=>{if(i){let r=i.message;throw Error(1==t.length?r:`Invalid label ${tM(tD(e,63))}: ${r}`)}return tC(r)}).join(".")}i(6942),i(31890),id.parseError=e=>e;class ih extends y.X{constructor(e){super({projectId:e.projectId,networks:ta.R5.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{}})}),this.adapterType="wagmi",this.namespace=tt.oU.CHAIN.EVM,this.createConfig({...e,networks:ta.R5.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{}}),projectId:e.projectId}),this.setupWatchers()}createConfig(e){this.caipNetworks=ta.R5.extendCaipNetworks(e.networks,{projectId:e.projectId,customNetworkImageUrls:{}}),this.wagmiChains=this.caipNetworks.filter(e=>e.chainNamespace===tt.oU.CHAIN.EVM);let t=this.wagmiChains.map(e=>[e.id,ta.R5.getViemTransport(e)]);Object.entries(e.transports??{}).forEach(([e,i])=>{let r=t.findIndex(([t])=>t===Number(e));-1===r?t.push([Number(e),i]):t[r]=[Number(e),i]});let i=Object.fromEntries(t),n=[...e.connectors??[]];this.wagmiConfig=function(e){let t;let{multiInjectedProviderDiscovery:i=!0,storage:n=(0,N.w)({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:N.Q}),syncConnectedChain:a=!0,ssr:o=!1,...s}=e,c="undefined"!=typeof window&&i?function(){let e=new Set,t=[],i=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(i=>{t.some(({info:e})=>e.uuid===i.info.uuid)||(t=[...t,i],e.forEach(e=>e(t,{added:[i]})))}),r=i();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=i()},subscribe:(i,{emitImmediately:r}={})=>(e.add(i),r&&i(t,{added:t}),()=>e.delete(i))}}():void 0,l=k(()=>s.chains),u=k(()=>{let e=[],t=new Set;for(let i of s.connectors??[]){let r=d(i);if(e.push(r),!o&&r.rdns)for(let e of"string"==typeof r.rdns?[r.rdns]:r.rdns)t.add(e)}if(!o&&c)for(let i of c.getProviders())t.has(i.info.rdns)||e.push(d(h(i)));return e});function d(e){let t=new T(function(e=11){if(!r||R+e>512){r="",R=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(R,R+++e)}()),i={...e({emitter:t,chains:l.getState(),storage:n,transports:s.transports}),emitter:t,uid:t.uid};return t.on("connect",v),i.setup?.(),i}function h(e){let{info:t}=e,i=e.provider;return(0,I.b)({target:{...t,id:t.rdns,provider:i}})}let p=new Map;function f(){return{chainId:l.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let g="0.0.0-canary-";t=O.r.startsWith(g)?Number.parseInt(O.r.replace(g,"")):Number.parseInt(O.r.split(".")[0]??"0");let w=k(C(n?E(f,{migrate(e,i){if(i===t)return e;let r=f(),n=m(e,r.chainId);return{...r,chainId:n}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:i,name:r,type:n,uid:a}=t.connector;return[e,{...t,connector:{id:i,name:r,type:n,uid:a}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let i=m(e,t.chainId);return{...t,...e,chainId:i}},skipHydration:o,storage:n,version:t}):f));function m(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&l.getState().some(t=>t.id===e.chainId)?e.chainId:t}function b(e){w.setState(t=>{let i=t.connections.get(e.uid);return i?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??i.accounts,chainId:e.chainId??i.chainId,connector:i.connector})}:t})}function v(e){"connecting"!==w.getState().status&&"reconnecting"!==w.getState().status&&w.setState(t=>{let i=u.getState().find(t=>t.uid===e.uid);return i?(i.emitter.listenerCount("connect")&&i.emitter.off("connect",b),i.emitter.listenerCount("change")||i.emitter.on("change",b),i.emitter.listenerCount("disconnect")||i.emitter.on("disconnect",y),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:i}),current:e.uid,status:"connected"}):t})}function y(e){w.setState(t=>{let i=t.connections.get(e.uid);if(i){let e=i.connector;e.emitter.listenerCount("change")&&i.connector.emitter.off("change",b),e.emitter.listenerCount("disconnect")&&i.connector.emitter.off("disconnect",y),e.emitter.listenerCount("connect")||i.connector.emitter.on("connect",v)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return w.setState(f()),a&&w.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(l.getState().some(t=>t.id===e))return w.setState(t=>({...t,chainId:e??t.chainId}))}),c?.subscribe(e=>{let t=new Set,i=new Set;for(let e of u.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)i.add(t);let r=[];for(let n of e){if(i.has(n.info.rdns))continue;let e=d(h(n));t.has(e.id)||r.push(e)}(!n||w.persist.hasHydrated())&&u.setState(e=>[...e,...r],!0)}),{get chains(){return l.getState()},get connectors(){return u.getState()},storage:n,getClient:function(e={}){let t;let i=e.chainId??w.getState().chainId,r=l.getState().find(e=>e.id===i);if(e.chainId&&!r)throw new P.nk;{let e=p.get(w.getState().chainId);if(e&&!r)return e;if(!r)throw new P.nk}{let e=p.get(i);if(e)return e}if(s.client)t=s.client({chain:r});else{let e=r.id,i=l.getState().map(e=>e.id),n={};for(let[t,r]of Object.entries(s))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)n[t]=r[e];else{if(i.some(e=>e in r))continue;n[t]=r}}else n[t]=r}t=(0,x.U)({...n,chain:r,batch:n.batch??{multicall:!0},transport:t=>s.transports[e]({...t,connectors:u})})}return p.set(i,t),t},get state(){return w.getState()},setState(e){let t;t="function"==typeof e?e(w.getState()):e;let i=f();"object"!=typeof t&&(t=i),Object.keys(i).some(e=>!(e in t))&&(t=i),w.setState(t,!0)},subscribe:(e,t,i)=>w.subscribe(e,t,i?{...i,fireImmediately:i.emitImmediately}:void 0),_internal:{mipd:c,store:w,ssr:!!o,syncConnectedChain:a,transports:s.transports,chains:{setState(e){let t="function"==typeof e?e(l.getState()):e;if(0!==t.length)return l.setState(t,!0)},subscribe:e=>l.subscribe(e)},connectors:{providerDetailToConnector:h,setup:d,setState:e=>u.setState("function"==typeof e?e(u.getState()):e,!0),subscribe:e=>u.subscribe(e)},events:{change:b,connect:v,disconnect:y}}}}({...e,chains:this.wagmiChains,transports:i,connectors:n})}setupWatchers(){(0,M.F)(this.wagmiConfig,{onChange:e=>{e.address&&this.emit("accountChanged",{address:e.address,chainId:e.chainId}),e.chainId&&this.emit("switchNetwork",{address:e.address,chainId:e.chainId})}}),function(e,t){let{onChange:i}=t;e.subscribe(()=>$(e),i,{equalityFn:D.b})}(this.wagmiConfig,{onChange:e=>{0===e.length&&this.emit("disconnect")}})}addWagmiConnectors(e,t){let i=[];!1!==e.enableCoinbase&&i.push(td({version:"4",appName:e.metadata?.name??"Unknown",appLogoUrl:e.metadata?.icons[0]??"Unknown",preference:e.coinbasePreference??"all"})),!1!==e.enableWalletConnect&&i.push(tu(e,t,this.caipNetworks)),!1!==e.enableInjected&&i.push((0,I.b)({shimDisconnect:!0}));let r=e.features?.email===void 0?ts.oU.DEFAULT_FEATURES.email:e.features?.email,n=e.features?.socials?e.features?.socials?.length>0:ts.oU.DEFAULT_FEATURES.socials;(r||n)&&i.push(function(e){let t=[];function i(e){return tt.LX.parseEvmChainId(e)||1}return(0,ti.U)(r=>({id:ta.oU.AUTH_CONNECTOR_ID,name:"AppKit Auth",type:"ID_AUTH",chain:tt.oU.CHAIN.EVM,async connect(e={}){let r=await this.getProvider(),n=e.chainId;if(e.isReconnecting&&!(n=r.getLastUsedChainId()))throw Error("ChainId not found in provider");let{address:a,chainId:o,accounts:s}=await r.connect({chainId:n});t=s?.map(e=>e.address)||[a],await r.getSmartAccountEnabledNetworks();let c=i(o);return{accounts:t,account:a,chainId:c,chain:{id:c,unsuported:!1}}},async disconnect(){let e=await this.getProvider();await e.disconnect()},getAccounts:()=>t?.length?(r.emitter.emit("change",{accounts:t}),Promise.resolve(t)):Promise.resolve([]),async getProvider(){return this.provider||(this.provider=to.v.getInstance({projectId:e.options.projectId,onTimeout:()=>{ts.hG.open(ta.RQ.ALERT_ERRORS.SOCIALS_TIMEOUT,"error")}})),Promise.resolve(this.provider)},async getChainId(){let e=await this.getProvider(),{chainId:t}=await e.getChainId();return i(t)},async isAuthorized(){return Promise.resolve((await this.getProvider()).getLoginEmailUsed())},async switchChain({chainId:e}){try{let i=r.chains.find(t=>t.id===e);if(!i)throw new tr.ch(Error("chain not found on connector."));let n=await this.getProvider(),a=await n.connect({chainId:e});return t=a?.accounts?.map(e=>e.address)||[a.address],r.emitter.emit("change",{chainId:Number(e),accounts:t}),i}catch(e){if(e instanceof Error)throw new tr.ch(e);throw e}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(tn.b)})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onDisconnect(e){let t=await this.getProvider();await t.disconnect()}}))}({chains:this.wagmiChains,options:{projectId:e.projectId},provider:this.availableConnectors.find(e=>e.id===ta.oU.AUTH_CONNECTOR_ID)?.provider})),i.forEach(e=>{let t=this.wagmiConfig._internal.connectors.setup(e);this.wagmiConfig._internal.connectors.setState(e=>[...e,t])})}async signMessage(e){try{return{signature:await (0,L.l)(this.wagmiConfig,{message:e.message,account:e.address})}}catch(e){throw Error("WagmiAdapter:signMessage - Sign message failed")}}async sendTransaction(e){let{chainId:t}=(0,j.s)(this.wagmiConfig),i={account:e.address,to:e.to,value:e.value,gas:e.gas,gasPrice:e.gasPrice,data:e.data,chainId:t,type:"legacy"};await q(this.wagmiConfig,i);let r=await F(this.wagmiConfig,i);return await eb(this.wagmiConfig,{hash:r,timeout:25e3}),{hash:r}}async writeContract(e){let{caipNetwork:t,...i}=e,r=Number(tt.LX.caipNetworkIdToNumber(t.caipNetworkId));return{hash:await (0,ev.E)(this.wagmiConfig,{chain:this.wagmiChains?.[r],chainId:r,address:i.tokenAddress,account:i.fromAddress,abi:i.abi,functionName:i.method,args:[i.receiverAddress,i.tokenAmount]})}}async getEnsAddress(e){let{name:t,caipNetwork:i}=e;try{if(!this.wagmiConfig)throw Error("networkControllerClient:getApprovedCaipNetworksData - wagmiConfig is undefined");let e=!1,r=!1;return(0,tt.TY)(t)&&(r=await tc.k.resolveReownName(t)||!1),1===i.id&&(e=await function(e,t){let{chainId:i,...r}=t,n=e.getClient({chainId:i});return(0,W.T)(n,e$,"getEnsAddress")(r)}(this.wagmiConfig,{name:id(t),chainId:i.id})),{address:e||r||!1}}catch{return{address:!1}}}async estimateGas(e){try{return{gas:await ej(this.wagmiConfig,{account:e.address,to:e.to,data:e.data,type:"legacy"})}}catch(e){throw Error("WagmiAdapter:estimateGas - error estimating gas")}}parseUnits(e){return(0,th.X)(e.value,e.decimals)}formatUnits(e){return(0,tp.J)(e.value,e.decimals)}syncConnectors(e,t){this.addWagmiConnectors(e,t);let i=this.wagmiConfig.connectors.map(e=>({...e,chain:this.namespace})),r=new Set;i.filter(e=>{let t=r.has(e.id);return r.add(e.id),!t}).forEach(t=>{let i=ta.oU.AUTH_CONNECTOR_ID===t.id,r=t.id===ta.oU.INJECTED_CONNECTOR_ID;!i&&this.namespace&&this.addConnector({id:t.id,explorerId:ta.L_.ConnectorExplorerIds[t.id],imageUrl:e?.connectorImages?.[t.id]??t.icon,name:ta.L_.ConnectorNamesMap[t.id]??t.name,imageId:ta.L_.ConnectorImageIds[t.id],type:ta.L_.ConnectorTypesMap[t.type]??"EXTERNAL",info:r?void 0:{rdns:t.id},chain:this.namespace,chains:[]})})}async syncConnection(e){let{id:t}=e,i=$(this.wagmiConfig).find(e=>e.connector.id===t),r=this.wagmiConfig.connectors.find(e=>e.id===t),n=await r?.getProvider();return{chainId:Number(i?.chainId),address:i?.accounts[0],provider:n,type:i?.connector.type,id:i?.connector.id}}async connectWalletConnect(e,t){let i=this.wagmiConfig.connectors.find(e=>"walletConnect"===e.type),r=await i.getProvider();if(!this.caipNetworks||!r)throw Error("UniversalAdapter:connectWalletConnect - caipNetworks or provider is undefined");r.on("display_uri",t=>{e(t)}),await (0,eB.N)(this.wagmiConfig,{connector:i,chainId:t?Number(t):void 0})}async connect(e){let{id:t,provider:i,type:r,info:n,chainId:a}=e,o=this.wagmiConfig.connectors.find(e=>e.id===t);if(!o)throw Error("connectionControllerClient:connectExternal - connector is undefined");i&&n&&o.id===ta.oU.EIP6963_CONNECTOR_ID&&o.setEip6963Wallet?.({provider:i,info:n});let s=await (0,eB.N)(this.wagmiConfig,{connector:o,chainId:a?Number(a):void 0});return{address:s.accounts[0],chainId:s.chainId,provider:i,type:r,id:t}}async reconnect(e){let{id:t}=e,i=this.wagmiConfig.connectors.find(e=>e.id===t);if(!i)throw Error("connectionControllerClient:connectExternal - connector is undefined");await (0,eW.M)(this.wagmiConfig,{connectors:[i]})}async getBalance(e){let t=this.caipNetworks?.find(t=>t.id===e.chainId);if(t&&this.wagmiConfig){let i=Number(e.chainId),r=await (0,eq.r)(this.wagmiConfig,{address:e.address,chainId:i,token:e.tokens?.[t.caipNetworkId]?.address});return{balance:r.formatted,symbol:r.symbol}}return{balance:"",symbol:""}}async getProfile(e){let t=e.chainId,i=await function(e,t){let{chainId:i,...r}=t,n=e.getClient({chainId:i});return(0,W.T)(n,eH,"getEnsName")(r)}(this.wagmiConfig,{address:e.address,chainId:t});if(i){let e=await function(e,t){let{chainId:i,...r}=t,n=e.getClient({chainId:i});return(0,W.T)(n,e9,"getEnsAvatar")(r)}(this.wagmiConfig,{name:i,chainId:t});return{profileName:i,profileImage:e??void 0}}return{profileName:void 0,profileImage:void 0}}getWalletConnectProvider(){return this.wagmiConfig.connectors.find(e=>"walletConnect"===e.type)?.provider}async disconnect(){let e=$(this.wagmiConfig);await Promise.all(e.map(async e=>{let t=e?.connector;t&&await e7(this.wagmiConfig,{connector:t})}))}async switchNetwork(e){await (0,te.S)(this.wagmiConfig,{chainId:e.caipNetwork.id})}async getCapabilities(e){if(!this.wagmiConfig)throw Error("connectionControllerClient:getCapabilities - wagmiConfig is undefined");let t=$(this.wagmiConfig)[0];if(!t?.connector)throw Error("connectionControllerClient:getCapabilities - connector is undefined");let i=await t.connector.getProvider();if(!i)throw Error("connectionControllerClient:getCapabilities - provider is undefined");let r=i.session?.sessionProperties?.capabilities;if(r){let t=function(e){try{return JSON.parse(e)}catch(e){throw Error("Error parsing wallet capabilities")}}(r)[e];if(t)return t}return await i.request({method:"wallet_getCapabilities",params:[e]})}async grantPermissions(e){if(!this.wagmiConfig)throw Error("connectionControllerClient:grantPermissions - wagmiConfig is undefined");let t=$(this.wagmiConfig)[0];if(!t?.connector)throw Error("connectionControllerClient:grantPermissions - connector is undefined");let i=await t.connector.getProvider();if(!i)throw Error("connectionControllerClient:grantPermissions - provider is undefined");return i.request({method:"wallet_grantPermissions",params:e})}async revokePermissions(e){if(!this.wagmiConfig)throw Error("connectionControllerClient:revokePermissions - wagmiConfig is undefined");let t=$(this.wagmiConfig)[0];if(!t?.connector)throw Error("connectionControllerClient:revokePermissions - connector is undefined");let i=await t.connector.getProvider();if(!i)throw Error("connectionControllerClient:revokePermissions - provider is undefined");return i.request({method:"wallet_revokePermissions",params:e})}}},50639:(e,t,i)=>{"use strict";i.d(t,{oU:()=>g,vW:()=>w,rL:()=>c,t$:()=>h,TC:()=>m,LX:()=>l,Se:()=>d,Ud:()=>v,Ws:()=>b,o_:()=>x,TY:()=>C});var r=i(21420),n=i(37583),a=i(39346),o=i(14488);r.extend(a),r.extend(o);let s={...n,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}};r.locale("en-web3-modal",s);let c={getYear:(e=new Date().toISOString())=>r(e).year(),getRelativeDateFromNow:e=>r(e).locale("en-web3-modal").fromNow(!0),formatDate:(e,t="DD MMM")=>r(e).format(t)},l={caipNetworkIdToNumber:e=>e?Number(e.split(":")[1]):void 0,parseEvmChainId(e){return"string"==typeof e?this.caipNetworkIdToNumber(e):e}};var u=i(66499);let d={bigNumber:e=>new u.g(e),multiply(e,t){if(void 0===e||void 0===t)return u.g(0);let i=new u.g(e),r=new u.g(t);return i.multipliedBy(r)},formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})},h={numericInputKeyDown(e,t,i){let r=e.metaKey||e.ctrlKey,n=e.key,a=n.toLocaleLowerCase(),o=","===n,s="."===n,c=n>="0"&&n<="9";r||"a"!==a&&"c"!==a&&"v"!==a&&"x"!==a||e.preventDefault(),"0"!==t||o||s||"0"!==n||e.preventDefault(),"0"===t&&c&&(i(n),e.preventDefault()),(o||s)&&(t||(i("0."),e.preventDefault()),(t?.includes(".")||t?.includes(","))&&e.preventDefault()),c||["Backspace","Meta","Ctrl","a","A","c","C","x","X","v","V","ArrowLeft","ArrowRight","Tab"].includes(n)||s||o||e.preventDefault()}},p=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],f=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],g={WC_NAME_SUFFIX:".reown.id",WC_NAME_SUFFIX_LEGACY:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CHAIN:{EVM:"eip155",SOLANA:"solana",POLKADOT:"polkadot"},CHAIN_NAME_MAP:{eip155:"Ethereum",solana:"Solana",polkadot:"Polkadot",bip122:"Bitcoin"},USDT_CONTRACT_ADDRESSES:["0xdac17f958d2ee523a2206206994597c13d831ec7","0xc2132d05d31c914a87c6611c10748aeb04b58e8f","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7","0x919C1c267BC06a7039e03fcc2eF738525769109c","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e","0x55d398326f99059fF775485246999027B3197955","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"]},w={getERC20Abi:e=>g.USDT_CONTRACT_ADDRESSES.includes(e)?f:p},m={URLS:{FAQ:"https://walletconnect.com/faq"}},b={WALLET_ID:"@appkit/wallet_id",WALLET_NAME:"@appkit/wallet_name",SOLANA_WALLET:"@appkit/solana_wallet",SOLANA_CAIP_CHAIN:"@appkit/solana_caip_chain",ACTIVE_CAIP_NETWORK_ID:"@appkit/active_caip_network_id",CONNECTED_CONNECTOR:"@appkit/connected_connector",CONNECTED_SOCIAL:"@appkit/connected_social",CONNECTED_SOCIAL_USERNAME:"@appkit/connected_social_username",RECENT_WALLETS:"@appkit/recent_wallets",DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",CONNECTED_NAMESPACE:"@appkit/connected_namespace",CONNECTION_STATUS:"@appkit/connection_status"},v={setItem(e,t){y()&&localStorage.setItem(e,t)},getItem(e){if(y())return localStorage.getItem(e)||void 0},removeItem(e){y()&&localStorage.removeItem(e)},clear(){y()&&localStorage.clear()}};function y(){return"undefined"!=typeof window&&"undefined"!=typeof localStorage}function x(e,t){return"light"===t?{"--w3m-accent":e?.["--w3m-accent"]||"hsla(231, 100%, 70%, 1)","--w3m-background":"#fff"}:{"--w3m-accent":e?.["--w3m-accent"]||"hsla(230, 100%, 67%, 1)","--w3m-background":"#121313"}}function C(e){return e?.endsWith(g.WC_NAME_SUFFIX_LEGACY)||e?.endsWith(g.WC_NAME_SUFFIX)}},80196:(e,t,i)=>{"use strict";i.d(t,{Uj:()=>a.U,hG:()=>L,Np:()=>d.N,jQ:()=>x.j,$m:()=>B,TP:()=>u.T,WB:()=>o.W,x4:()=>b.x,aK:()=>v.a,oU:()=>l.oU,wE:()=>S.w,f:()=>U,En:()=>_.E,W3:()=>r.W,aG:()=>m,Hd:()=>A.H,z3:()=>E.z,IN:()=>n.I,UG:()=>q,Rv:()=>P,Pt:()=>y.P,iT:()=>W.i,GN:()=>I.GN,Wn:()=>C.W,Ib:()=>O,WC:()=>k.W});var r=i(29811),n=i(2850),a=i(73322),o=i(94984),s=i(5061),c=i(2614),l=i(36192),u=i(65411),d=i(57417),h=i(50639);let p={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},f={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},g={providers:l.tM,selectedProvider:null,error:null,purchaseCurrency:p,paymentCurrency:f,purchaseCurrencies:[p],paymentCurrencies:[],quotesLoading:!1},w=(0,c.BX)(g),m={state:w,subscribe:e=>(0,c.B1)(w,()=>e(w)),subscribeKey:(e,t)=>(0,s.u$)(w,e,t),setSelectedProvider(e){if(e&&"meld"===e.name){let t=l.pv,i=o.W.state.activeChain===h.oU.CHAIN.SOLANA?"SOL":"USDC",r=a.U.state.address??"",n=new URL(e.url);n.searchParams.append("publicKey",t),n.searchParams.append("destinationCurrencyCode",i),n.searchParams.append("walletAddress",r),e.url=n.toString()}w.selectedProvider=e},setPurchaseCurrency(e){w.purchaseCurrency=e},setPaymentCurrency(e){w.paymentCurrency=e},setPurchaseAmount(e){this.state.purchaseAmount=e},setPaymentAmount(e){this.state.paymentAmount=e},async getAvailableCurrencies(){let e=await u.T.getOnrampOptions();w.purchaseCurrencies=e.purchaseCurrencies,w.paymentCurrencies=e.paymentCurrencies,w.paymentCurrency=e.paymentCurrencies[0]||f,w.purchaseCurrency=e.purchaseCurrencies[0]||p,await d.N.fetchCurrencyImages(e.paymentCurrencies.map(e=>e.id)),await d.N.fetchTokenImages(e.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){w.quotesLoading=!0;try{let e=await u.T.getOnrampQuote({purchaseCurrency:w.purchaseCurrency,paymentCurrency:w.paymentCurrency,amount:w.paymentAmount?.toString()||"0",network:w.purchaseCurrency?.symbol});return w.quotesLoading=!1,w.purchaseAmount=Number(e.purchaseAmount.amount),e}catch(e){return w.error=e.message,w.quotesLoading=!1,null}finally{w.quotesLoading=!1}},resetState(){w.providers=l.tM,w.selectedProvider=null,w.error=null,w.purchaseCurrency=p,w.paymentCurrency=f,w.purchaseCurrencies=[p],w.paymentCurrencies=[],w.paymentAmount=void 0,w.purchaseAmount=void 0,w.quotesLoading=!1}};var b=i(35335),v=i(79950),y=i(55035),x=i(15741),C=i(51668),A=i(48131),E=i(36371),_=i(38946),k=i(76990),I=i(83637),S=i(12344),T=i(45011);let N=(0,c.BX)({loading:!1}),P={state:N,subscribe:e=>(0,c.B1)(N,()=>e(N)),subscribeKey:(e,t)=>(0,s.u$)(N,e,t),setToken(e){e&&(N.token=(0,c.KR)(e))},setTokenAmount(e){N.sendTokenAmount=e},setReceiverAddress(e){N.receiverAddress=e},setReceiverProfileImageUrl(e){N.receiverProfileImageUrl=e},setReceiverProfileName(e){N.receiverProfileName=e},setGasPrice(e){N.gasPrice=e},setGasPriceInUsd(e){N.gasPriceInUSD=e},setLoading(e){N.loading=e},sendToken(){switch(o.W.state.activeCaipNetwork?.chainNamespace){case"eip155":this.sendEvmToken();return;case"solana":this.sendSolanaToken();return;default:throw Error("Unsupported chain")}},sendEvmToken(){this.state.token?.address&&this.state.sendTokenAmount&&this.state.receiverAddress?(_.E.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:a.U.state.preferredAccountType===T.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token.address,amount:this.state.sendTokenAmount,network:o.W.state.activeCaipNetwork?.caipNetworkId||""}}),this.sendERC20Token({receiverAddress:this.state.receiverAddress,tokenAddress:this.state.token.address,sendTokenAmount:this.state.sendTokenAmount,decimals:this.state.token.quantity.decimals})):this.state.receiverAddress&&this.state.sendTokenAmount&&this.state.gasPrice&&this.state.token?.quantity.decimals&&(_.E.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:a.U.state.preferredAccountType===T.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol,amount:this.state.sendTokenAmount,network:o.W.state.activeCaipNetwork?.caipNetworkId||""}}),this.sendNativeToken({receiverAddress:this.state.receiverAddress,sendTokenAmount:this.state.sendTokenAmount,gasPrice:this.state.gasPrice,decimals:this.state.token.quantity.decimals}))},async sendNativeToken(e){n.I.pushTransactionStack({view:"Account",goBack:!1});let t=e.receiverAddress,i=a.U.state.address,r=b.x.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{await b.x.sendTransaction({chainNamespace:"eip155",to:t,address:i,data:"0x",value:r??BigInt(0),gasPrice:e.gasPrice}),y.P.showSuccess("Transaction started"),_.E.sendEvent({type:"track",event:"SEND_SUCCESS",properties:{isSmartAccount:a.U.state.preferredAccountType===T.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:o.W.state.activeCaipNetwork?.caipNetworkId||""}}),this.resetSend()}catch(t){_.E.sendEvent({type:"track",event:"SEND_ERROR",properties:{isSmartAccount:a.U.state.preferredAccountType===T.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:o.W.state.activeCaipNetwork?.caipNetworkId||""}}),y.P.showError("Something went wrong")}},async sendERC20Token(e){n.I.pushTransactionStack({view:"Account",goBack:!1});let t=b.x.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{if(a.U.state.address&&e.sendTokenAmount&&e.receiverAddress&&e.tokenAddress){let i=S.w.getPlainAddress(e.tokenAddress);await b.x.writeContract({fromAddress:a.U.state.address,tokenAddress:i,receiverAddress:e.receiverAddress,tokenAmount:t??BigInt(0),method:"transfer",abi:h.vW.getERC20Abi(i)}),y.P.showSuccess("Transaction started"),this.resetSend()}}catch(e){y.P.showError("Something went wrong")}},sendSolanaToken(){if(!this.state.sendTokenAmount||!this.state.receiverAddress){y.P.showError("Please enter a valid amount and receiver address");return}n.I.pushTransactionStack({view:"Account",goBack:!1}),b.x.sendTransaction({chainNamespace:"solana",to:this.state.receiverAddress,value:this.state.sendTokenAmount}).then(()=>{this.resetSend(),a.U.fetchTokenBalance()}).catch(e=>{y.P.showError("Failed to send transaction. Please try again."),console.error("SendController:sendToken - failed to send solana transaction",e)})},resetSend(){N.token=void 0,N.sendTokenAmount=void 0,N.receiverAddress=void 0,N.receiverProfileImageUrl=void 0,N.receiverProfileName=void 0,N.loading=!1}},R=(0,c.BX)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),O={state:R,subscribe:e=>(0,c.B1)(R,()=>e(R)),subscribeKey:(e,t)=>(0,s.u$)(R,e,t),showTooltip({message:e,triggerRect:t,variant:i}){R.open=!0,R.message=e,R.triggerRect=t,R.variant=i},hide(){R.open=!1,R.message="",R.triggerRect={width:0,height:0,top:0,left:0}}},M={convertEVMChainIdToCoinType(e){if(e>=0x80000000)throw Error("Invalid chainId");return(0x80000000|e)>>>0}},D=(0,c.BX)({suggestions:[],loading:!1}),U={state:D,subscribe:e=>(0,c.B1)(D,()=>e(D)),subscribeKey:(e,t)=>(0,s.u$)(D,e,t),async resolveName(e){try{return await u.T.lookupEnsName(e)}catch(e){throw Error(e?.reasons?.[0]?.description||"Error resolving name")}},async isNameRegistered(e){try{return await u.T.lookupEnsName(e),!0}catch{return!1}},async getSuggestions(e){try{D.loading=!0,D.suggestions=[];let t=await u.T.getEnsNameSuggestions(e);return D.suggestions=t.suggestions.map(e=>({...e,name:e.name}))||[],D.suggestions}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching name suggestions"))}finally{D.loading=!1}},async getNamesForAddress(e){try{if(!o.W.state.activeCaipNetwork)return[];return await u.T.reverseLookupEnsName({address:e})}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching names for address"))}},async registerName(e){let t=o.W.state.activeCaipNetwork;if(!t)throw Error("Network not found");let i=a.U.state.address,r=v.a.getAuthConnector();if(!i||!r)throw Error("Address or auth connector not found");D.loading=!0;try{let r=JSON.stringify({name:e,attributes:{},timestamp:Math.floor(Date.now()/1e3)});n.I.pushTransactionStack({view:"RegisterAccountNameSuccess",goBack:!1,replace:!0,onCancel(){D.loading=!1}});let o=await b.x.signMessage(r),s=t.id;if(!s)throw Error("Network not found");let c=M.convertEVMChainIdToCoinType(Number(s));await u.T.registerEnsName({coinType:c,address:i,signature:o,message:r}),a.U.setProfileName(e,t.chainNamespace),n.I.replace("RegisterAccountNameSuccess")}catch(i){let t=this.parseEnsApiError(i,`Error registering name ${e}`);throw n.I.replace("RegisterAccountName"),Error(t)}finally{D.loading=!1}},validateName:e=>/^[a-zA-Z0-9-]{4,}$/u.test(e),parseEnsApiError:(e,t)=>e?.reasons?.[0]?.description||t},$=(0,c.BX)({message:"",variant:"info",open:!1}),L={state:$,subscribeKey:(e,t)=>(0,s.u$)($,e,t),open(e,t){let{debug:i}=A.H.state,{shortMessage:r,longMessage:n}=e;i&&($.message=r,$.variant=t,$.open=!0),n&&console.error("function"==typeof n?n():n)},close(){$.open=!1,$.message="",$.variant="info"}},j={eip155:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"a1b58899-f671-4276-6a5e-56ca5bd59700",polkadot:"",bip122:""},B={async fetchWalletImage(e){if(e)return await d.N._fetchWalletImage(e),this.getWalletImageById(e)},getWalletImageById(e){if(e)return x.j.state.walletImages[e]},getWalletImage:e=>e?.image_url?e?.image_url:e?.image_id?x.j.state.walletImages[e.image_id]:void 0,getNetworkImage:e=>e?.assets?.imageUrl?e?.assets?.imageUrl:e?.assets?.imageId?x.j.state.networkImages[e.assets.imageId]:void 0,getNetworkImageById(e){if(e)return x.j.state.networkImages[e]},getConnectorImage:e=>e?.imageUrl?e.imageUrl:e?.imageId?x.j.state.connectorImages[e.imageId]:void 0,getChainImage:e=>x.j.state.networkImages[j[e]]};var W=i(75268);i(27258);let q={getSIWX:()=>A.H.state.siwx,async initializeIfEnabled(){let e=A.H.state.siwx,t=o.W.getActiveCaipAddress();if(!(e&&t))return;let[i,a,s]=t.split(":");if(o.W.checkIfSupportedNetwork(i))try{if((await e.getSessions(`${i}:${a}`,s)).length)return;await r.W.open({view:"SIWXSignMessage"})}catch(e){console.error("SIWXUtil:initializeIfEnabled",e),_.E.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:this.getSIWXEventProperties()}),await b.x._getClient()?.disconnect().catch(console.error),n.I.reset("Connect"),y.P.showError("A problem occurred while trying initialize authentication")}},async requestSignMessage(){let e=A.H.state.siwx,t=S.w.getPlainAddress(o.W.getActiveCaipAddress()),i=o.W.getActiveCaipNetwork(),a=b.x._getClient();if(!e)throw Error("SIWX is not enabled");if(!t)throw Error("No ActiveCaipAddress found");if(!i)throw Error("No ActiveCaipNetwork or client found");if(!a)throw Error("No ConnectionController client found");try{let o=await e.createMessage({chainId:i.caipNetworkId,accountAddress:t}),s=o.toString();"ID_AUTH"===W.i.getConnectedConnector()&&n.I.pushTransactionStack({view:null,goBack:!1,replace:!0});let c=await a.signMessage(s);await e.addSession({data:o,message:s,signature:c}),r.W.close(),_.E.sendEvent({type:"track",event:"SIWX_AUTH_SUCCESS",properties:this.getSIWXEventProperties()})}catch(t){let e=this.getSIWXEventProperties();r.W.state.open&&"ApproveTransaction"!==n.I.state.view||await r.W.open({view:"SIWXSignMessage"}),e.isSmartAccount?y.P.showError("This application might not support Smart Accounts"):y.P.showError("Signature declined"),_.E.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:e}),console.error("SWIXUtil:requestSignMessage",t)}},async cancelSignMessage(){try{await b.x.disconnect(),n.I.reset("Connect"),_.E.sendEvent({event:"CLICK_CANCEL_SIWX",type:"track",properties:this.getSIWXEventProperties()})}catch(e){console.error("SIWXUtil:cancelSignMessage",e)}},async getSessions(){let e=A.H.state.siwx,t=S.w.getPlainAddress(o.W.getActiveCaipAddress()),i=o.W.getActiveCaipNetwork();return e&&t&&i?e.getSessions(i.caipNetworkId,t):[]},async isSIWXCloseDisabled(){if(this.getSIWX()){let e="ApproveTransaction"===n.I.state.view,t="SIWXSignMessage"===n.I.state.view;if(e||t)return 0===(await this.getSessions()).length}return!1},async universalProviderAuthenticate({universalProvider:e,chains:t,methods:i}){let r=q.getSIWX(),n=new Set(t.map(e=>e.split(":")[0]));if(!r||1!==n.size)return!1;let a=await r.createMessage({chainId:o.W.getActiveCaipNetwork()?.caipNetworkId||"",accountAddress:""}),s=await e.authenticate({nonce:a.nonce,domain:a.domain,uri:a.uri,exp:a.expirationTime,iat:a.issuedAt,nbf:a.notBefore,requestId:a.requestId,version:a.version,resources:a.resources,statement:a.statement,chainId:a.chainId,methods:i,chains:t});if(s?.auths?.length){let t=s.auths.map(t=>{let i=e.client.formatAuthMessage({request:t.p,iss:t.p.iss});return{data:{...t.p,accountAddress:t.p.iss.split(":").slice(-1).join(""),chainId:t.p.iss.split(":").slice(2,4).join(":"),uri:t.p.aud,version:t.p.version||a.version,expirationTime:t.p.exp,issuedAt:t.p.iat,notBefore:t.p.nbf},message:i,signature:t.s.s,cacao:t}});try{await r.setSessions(t),_.E.sendEvent({type:"track",event:"SIWX_AUTH_SUCCESS",properties:q.getSIWXEventProperties()})}catch(t){throw console.error("SIWX:universalProviderAuth - failed to set sessions",t),_.E.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:q.getSIWXEventProperties()}),await e.disconnect().catch(console.error),t}}return!0},getSIWXEventProperties:()=>({network:o.W.state.activeCaipNetwork?.caipNetworkId||"",isSmartAccount:a.U.state.preferredAccountType===T.Vl.ACCOUNT_TYPES.SMART_ACCOUNT})}},73322:(e,t,i)=>{"use strict";i.d(t,{U:()=>h});var r=i(12344),n=i(65411),a=i(55035),o=i(83637),s=i(9592),c=i(94984),l=i(2614),u=i(36192);let d=(0,l.BX)({currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]}),h={state:d,replaceState(e){e&&Object.assign(d,(0,l.KR)(e))},subscribe:e=>c.W.subscribeChainProp("accountState",t=>{if(t)return e(t)}),subscribeKey(e,t,i){let r;return c.W.subscribeChainProp("accountState",i=>{if(i){let n=i[e];r!==n&&(r=n,t(n))}},i)},setStatus(e,t){c.W.setAccountProp("status",e,t)},getCaipAddress:e=>c.W.getAccountProp("caipAddress",e),setProvider(e,t){e&&c.W.setAccountProp("provider",e,t)},setCaipAddress(e,t){let i=e?r.w.getPlainAddress(e):void 0;t===c.W.state.activeChain&&(c.W.state.activeCaipAddress=e),c.W.setAccountProp("caipAddress",e,t),c.W.setAccountProp("address",i,t)},setBalance(e,t,i){c.W.setAccountProp("balance",e,i),c.W.setAccountProp("balanceSymbol",t,i)},setProfileName(e,t){c.W.setAccountProp("profileName",e,t)},setProfileImage(e,t){c.W.setAccountProp("profileImage",e,t)},setAddressExplorerUrl(e,t){c.W.setAccountProp("addressExplorerUrl",e,t)},setSmartAccountDeployed(e,t){c.W.setAccountProp("smartAccountDeployed",e,t)},setCurrentTab(e){c.W.setAccountProp("currentTab",e,c.W.state.activeChain)},setTokenBalance(e,t){e&&c.W.setAccountProp("tokenBalance",e,t)},setShouldUpdateToAddress(e,t){c.W.setAccountProp("shouldUpdateToAddress",e,t)},setAllAccounts(e,t){c.W.setAccountProp("allAccounts",e,t)},addAddressLabel(e,t,i){let r=c.W.getAccountProp("addressLabels",i)||new Map;r.set(e,t),c.W.setAccountProp("addressLabels",r,i)},removeAddressLabel(e,t){let i=c.W.getAccountProp("addressLabels",t)||new Map;i.delete(e),c.W.setAccountProp("addressLabels",i,t)},setConnectedWalletInfo(e,t){c.W.setAccountProp("connectedWalletInfo",e,t,!1)},setPreferredAccountType(e,t){c.W.setAccountProp("preferredAccountType",e,t)},setSocialProvider(e,t){e&&c.W.setAccountProp("socialProvider",e,t)},setSocialWindow(e,t){e&&c.W.setAccountProp("socialWindow",(0,l.KR)(e),t)},setFarcasterUrl(e,t){e&&c.W.setAccountProp("farcasterUrl",e,t)},async fetchTokenBalance(){let e=c.W.state.activeCaipNetwork?.caipNetworkId,t=c.W.state.activeCaipNetwork?.chainNamespace,i=c.W.state.activeCaipAddress,l=i?r.w.getPlainAddress(i):void 0;if(!d.lastRetry||r.w.isAllowedRetry(d.lastRetry,30*u.oU.ONE_SEC_MS))try{if(l&&e&&t){let i=await n.T.getBalance(l,e),r=i.balances.filter(e=>"0"!==e.quantity.decimals);this.setTokenBalance(r,t),o.GN.setBalances(s.s.mapBalancesToSwapTokens(i.balances)),d.lastRetry=void 0}}catch(e){d.lastRetry=Date.now(),a.P.showError("Token Balance Unavailable")}},resetAccount(e){c.W.resetAccount(e)}}},57417:(e,t,i)=>{"use strict";i.d(t,{N:()=>w});var r=i(5061),n=i(2614),a=i(12344),o=i(85493),s=i(75268),c=i(15741),l=i(79950),u=i(48131),d=i(94984),h=i(38946);let p=a.w.getApiUrl(),f=new o.Z({baseUrl:p,clientId:null}),g=(0,n.BX)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[],isAnalyticsEnabled:!1,excludedRDNS:[]}),w={state:g,subscribeKey:(e,t)=>(0,r.u$)(g,e,t),_getSdkProperties(){let{projectId:e,sdkType:t,sdkVersion:i}=u.H.state;return{projectId:e,st:t||"appkit",sv:i||"html-wagmi-4.2.2"}},_filterOutExtensions:e=>u.H.state.isUniversalProvider?e.filter(e=>!!(e.mobile_link||e.desktop_link||e.webapp_link)):e,async _fetchWalletImage(e){let t=`${f.baseUrl}/getWalletImage/${e}`,i=await f.getBlob({path:t,params:w._getSdkProperties()});c.j.setWalletImage(e,URL.createObjectURL(i))},async _fetchNetworkImage(e){let t=`${f.baseUrl}/public/getAssetImage/${e}`,i=await f.getBlob({path:t,params:w._getSdkProperties()});c.j.setNetworkImage(e,URL.createObjectURL(i))},async _fetchConnectorImage(e){let t=`${f.baseUrl}/public/getAssetImage/${e}`,i=await f.getBlob({path:t,params:w._getSdkProperties()});c.j.setConnectorImage(e,URL.createObjectURL(i))},async _fetchCurrencyImage(e){let t=`${f.baseUrl}/public/getCurrencyImage/${e}`,i=await f.getBlob({path:t,params:w._getSdkProperties()});c.j.setCurrencyImage(e,URL.createObjectURL(i))},async _fetchTokenImage(e){let t=`${f.baseUrl}/public/getTokenImage/${e}`,i=await f.getBlob({path:t,params:w._getSdkProperties()});c.j.setTokenImage(e,URL.createObjectURL(i))},async fetchNetworkImages(){let e=d.W.getAllRequestedCaipNetworks(),t=e?.map(({assets:e})=>e?.imageId).filter(Boolean);t&&await Promise.allSettled(t.map(e=>w._fetchNetworkImage(e)))},async fetchConnectorImages(){let{connectors:e}=l.a.state,t=e.map(({imageId:e})=>e).filter(Boolean);await Promise.allSettled(t.map(e=>w._fetchConnectorImage(e)))},async fetchCurrencyImages(e=[]){await Promise.allSettled(e.map(e=>w._fetchCurrencyImage(e)))},async fetchTokenImages(e=[]){await Promise.allSettled(e.map(e=>w._fetchTokenImage(e)))},async fetchFeaturedWallets(){let{featuredWalletIds:e}=u.H.state;if(e?.length){let{data:t}=await f.get({path:"/getWallets",params:{...w._getSdkProperties(),page:"1",entries:e?.length?String(e.length):"4",include:e?.join(",")}});t.sort((t,i)=>e.indexOf(t.id)-e.indexOf(i.id));let i=t.map(e=>e.image_id).filter(Boolean);await Promise.allSettled(i.map(e=>w._fetchWalletImage(e))),g.featured=t}},async fetchRecommendedWallets(){try{let{includeWalletIds:e,excludeWalletIds:t,featuredWalletIds:i}=u.H.state,r=[...t??[],...i??[]].filter(Boolean),{data:n,count:a}=await f.get({path:"/getWallets",params:{...w._getSdkProperties(),page:"1",chains:d.W.state.activeCaipNetwork?.caipNetworkId,entries:"4",include:e?.join(","),exclude:r?.join(",")}}),o=s.i.getRecentWallets(),c=n.map(e=>e.image_id).filter(Boolean),l=o.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...c,...l].map(e=>w._fetchWalletImage(e))),g.recommended=n,g.count=a??0}catch{}},async fetchWallets({page:e}){let{includeWalletIds:t,excludeWalletIds:i,featuredWalletIds:r}=u.H.state,n=[...g.recommended.map(({id:e})=>e),...i??[],...r??[]].filter(Boolean),{data:o,count:s}=await f.get({path:"/getWallets",params:{...w._getSdkProperties(),page:String(e),entries:"40",chains:d.W.state.activeCaipNetwork?.caipNetworkId,include:t?.join(","),exclude:n.join(",")}}),c=o.slice(0,20).map(e=>e.image_id).filter(Boolean);await Promise.allSettled(c.map(e=>w._fetchWalletImage(e))),g.wallets=a.w.uniqueBy([...g.wallets,...w._filterOutExtensions(o)],"id"),g.count=s>g.count?s:g.count,g.page=e},async searchWalletByIds({ids:e}){let{data:t}=await f.get({path:"/getWallets",params:{...w._getSdkProperties(),page:"1",entries:String(e.length),chains:d.W.state.activeCaipNetwork?.caipNetworkId,include:e?.join(",")}});t&&t.forEach(e=>{e?.rdns&&g.excludedRDNS.push(e.rdns)})},async searchWallet({search:e,badge:t}){let{includeWalletIds:i,excludeWalletIds:r}=u.H.state;g.search=[];let{data:n}=await f.get({path:"/getWallets",params:{...w._getSdkProperties(),page:"1",entries:"100",search:e?.trim(),badge_type:t,chains:d.W.state.activeCaipNetwork?.caipNetworkId,include:i?.join(","),exclude:r?.join(",")}});h.E.sendEvent({type:"track",event:"SEARCH_WALLET",properties:{badge:t??"",search:e??""}});let o=n.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...o.map(e=>w._fetchWalletImage(e)),a.w.wait(300)]),g.search=w._filterOutExtensions(n)},async reFetchWallets(){g.page=1,g.wallets=[],await w.fetchFeaturedWallets(),await w.fetchRecommendedWallets()},prefetch(){let e=[w.fetchFeaturedWallets(),w.fetchRecommendedWallets(),w.fetchNetworkImages(),w.fetchConnectorImages()];u.H.state.features?.analytics&&e.push(w.fetchAnalyticsConfig()),g.prefetchPromise=Promise.race([Promise.allSettled(e)])},async fetchAnalyticsConfig(){let{isAnalyticsEnabled:e}=await f.get({path:"/getAnalyticsConfig",params:w._getSdkProperties()});u.H.setFeatures({analytics:e})}}},15741:(e,t,i)=>{"use strict";i.d(t,{j:()=>o});var r=i(5061),n=i(2614);let a=(0,n.BX)({walletImages:{},networkImages:{},chainImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),o={state:a,subscribeNetworkImages:e=>(0,n.B1)(a.networkImages,()=>e(a.networkImages)),subscribeKey:(e,t)=>(0,r.u$)(a,e,t),subscribe:e=>(0,n.B1)(a,()=>e(a)),setWalletImage(e,t){a.walletImages[e]=t},setNetworkImage(e,t){a.networkImages[e]=t},setChainImage(e,t){a.chainImages[e]=t},setConnectorImage(e,t){a.connectorImages[e]=t},setTokenImage(e,t){a.tokenImages[e]=t},setCurrencyImage(e,t){a.currencyImages[e]=t}}},65411:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var r=i(36192),n=i(12344),a=i(85493),o=i(48131),s=i(2614),c=i(73322),l=i(94984);let u={purchaseCurrencies:[{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"Ether",symbol:"ETH",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]}],paymentCurrencies:[{id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},{id:"EUR",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]}]},d=n.w.getBlockchainApiUrl(),h=(0,s.BX)({clientId:null,api:new a.Z({baseUrl:d,clientId:null})}),p={state:h,fetchIdentity:({address:e})=>h.api.get({path:`/v1/identity/${e}`,params:{projectId:o.H.state.projectId,sender:l.W.state.activeCaipAddress?n.w.getPlainAddress(l.W.state.activeCaipAddress):void 0}}),fetchTransactions:({account:e,projectId:t,cursor:i,onramp:r,signal:n,cache:a,chainId:o})=>h.api.get({path:`/v1/account/${e}/history`,params:{projectId:t,cursor:i,onramp:r,chainId:o},signal:n,cache:a}),fetchSwapQuote:({projectId:e,amount:t,userAddress:i,from:r,to:n,gasPrice:a})=>h.api.get({path:"/v1/convert/quotes",headers:{"Content-Type":"application/json"},params:{projectId:e,amount:t,userAddress:i,from:r,to:n,gasPrice:a}}),fetchSwapTokens:({projectId:e,chainId:t})=>h.api.get({path:"/v1/convert/tokens",params:{projectId:e,chainId:t}}),fetchTokenPrice:({projectId:e,addresses:t})=>h.api.post({path:"/v1/fungible/price",body:{projectId:e,currency:"usd",addresses:t},headers:{"Content-Type":"application/json"}}),fetchSwapAllowance({projectId:e,tokenAddress:t,userAddress:i}){let{sdkType:r,sdkVersion:n}=o.H.state;return h.api.get({path:"/v1/convert/allowance",params:{projectId:e,tokenAddress:t,userAddress:i},headers:{"Content-Type":"application/json","x-sdk-type":r,"x-sdk-version":n||"html-wagmi-4.2.2"}})},fetchGasPrice({projectId:e,chainId:t}){let{sdkType:i,sdkVersion:r}=o.H.state;return h.api.get({path:"/v1/convert/gas-price",headers:{"Content-Type":"application/json","x-sdk-type":i,"x-sdk-version":r||"html-wagmi-4.2.2"},params:{projectId:e,chainId:t}})},generateSwapCalldata:({amount:e,from:t,projectId:i,to:n,userAddress:a})=>h.api.post({path:"/v1/convert/build-transaction",headers:{"Content-Type":"application/json"},body:{amount:e,eip155:{slippage:r.oU.CONVERT_SLIPPAGE_TOLERANCE},from:t,projectId:i,to:n,userAddress:a}}),generateApproveCalldata({from:e,projectId:t,to:i,userAddress:r}){let{sdkType:n,sdkVersion:a}=o.H.state;return h.api.get({path:"/v1/convert/build-approve",headers:{"Content-Type":"application/json","x-sdk-type":n,"x-sdk-version":a||"html-wagmi-4.2.2"},params:{projectId:t,userAddress:r,from:e,to:i}})},async getBalance(e,t,i){let{sdkType:r,sdkVersion:n}=o.H.state;return h.api.get({path:`/v1/account/${e}/balance`,headers:{"x-sdk-type":r,"x-sdk-version":n||"html-wagmi-4.2.2"},params:{currency:"usd",projectId:o.H.state.projectId,chainId:t,forceUpdate:i}})},lookupEnsName:async e=>h.api.get({path:`/v1/profile/account/${e}`,params:{projectId:o.H.state.projectId,apiVersion:"2"}}),reverseLookupEnsName:async({address:e})=>h.api.get({path:`/v1/profile/reverse/${e}`,params:{sender:c.U.state.address,projectId:o.H.state.projectId,apiVersion:"2"}}),getEnsNameSuggestions:async e=>h.api.get({path:`/v1/profile/suggestions/${e}`,params:{projectId:o.H.state.projectId,zone:"reown.id"}}),registerEnsName:async({coinType:e,address:t,message:i,signature:r})=>h.api.post({path:"/v1/profile/account",body:{coin_type:e,address:t,message:i,signature:r},headers:{"Content-Type":"application/json"}}),generateOnRampURL:async({destinationWallets:e,partnerUserId:t,defaultNetwork:i,purchaseAmount:r,paymentAmount:n})=>(await h.api.post({path:"/v1/generators/onrampurl",params:{projectId:o.H.state.projectId},body:{destinationWallets:e,defaultNetwork:i,partnerUserId:t,defaultExperience:"buy",presetCryptoAmount:r,presetFiatAmount:n}})).url,async getOnrampOptions(){try{return await h.api.get({path:"/v1/onramp/options",params:{projectId:o.H.state.projectId}})}catch(e){return u}},async getOnrampQuote({purchaseCurrency:e,paymentCurrency:t,amount:i,network:r}){try{return await h.api.post({path:"/v1/onramp/quote",params:{projectId:o.H.state.projectId},body:{purchaseCurrency:e,paymentCurrency:t,amount:i,network:r}})}catch(e){return{coinbaseFee:{amount:i,currency:t.id},networkFee:{amount:i,currency:t.id},paymentSubtotal:{amount:i,currency:t.id},paymentTotal:{amount:i,currency:t.id},purchaseAmount:{amount:i,currency:t.id},quoteId:"mocked-quote-id"}}},getSmartSessions:e=>h.api.get({path:`/v1/sessions/${e}`,params:{projectId:o.H.state.projectId}}),revokeSmartSession:(e,t,i)=>h.api.post({path:`/v1/sessions/${e}/revoke`,params:{projectId:o.H.state.projectId},body:{pci:t,signature:i}}),setClientId(e){h.clientId=e,h.api=new a.Z({baseUrl:d,clientId:e})}}},94984:(e,t,i)=>{"use strict";i.d(t,{W:()=>w});var r=i(5061),n=i(2614),a=i(73322),o=i(36371),s=i(50639),c=i(12344),l=i(36192),u=i(29811),d=i(38946),h=i(2850);let p={currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]},f={supportsAllNetworks:!0,smartAccountEnabledNetworks:[]},g=(0,n.BX)({chains:(0,r.zC)(),activeCaipAddress:void 0,activeChain:void 0,activeCaipNetwork:void 0,noAdapters:!1,universalAdapter:{networkControllerClient:void 0,connectionControllerClient:void 0}}),w={state:g,subscribe:e=>(0,n.B1)(g,()=>{e(g)}),subscribeKey:(e,t)=>(0,r.u$)(g,e,t),subscribeChainProp(e,t,i){let r;return(0,n.B1)(g.chains,()=>{let n=i||g.activeChain;if(n){let i=g.chains.get(n)?.[e];r!==i&&(r=i,t(i))}})},initialize(e){let t=e?.[0];e?.length!==0&&t||(g.noAdapters=!0),g.noAdapters||(g.activeChain=t?.namespace,o.z.set({activeChain:t?.namespace}),e.forEach(e=>{g.chains.set(e.namespace,{namespace:e.namespace,connectionControllerClient:e.connectionControllerClient,networkControllerClient:e.networkControllerClient,adapterType:e.adapterType,accountState:p,networkState:f,caipNetworks:e.caipNetworks})}))},setAdapterNetworkState(e,t){let i=g.chains.get(e);i&&(i.networkState=(0,n.KR)({...i.networkState,...t}),g.chains.set(e,(0,n.KR)(i)))},setChainAccountData(e,t,i=!0){if(!e)throw Error("Chain is required to update chain account data");let r=g.chains.get(e);r&&(r.accountState=(0,n.KR)({...r.accountState,...t}),g.chains.set(e,r),(1===g.chains.size||g.activeChain===e)&&(t.caipAddress&&(g.activeCaipAddress=t.caipAddress),a.U.replaceState(r.accountState)))},setAccountProp(e,t,i,r=!0){this.setChainAccountData(i,{[e]:t},r)},setActiveNamespace(e){g.activeChain=e;let t=e?g.chains.get(e):void 0,i=t?.networkState?.caipNetwork;i?.id&&(g.activeCaipAddress=t?.accountState?.caipAddress,g.activeCaipNetwork=i,s.Ud.setItem(s.Ws.ACTIVE_CAIP_NETWORK_ID,i?.caipNetworkId),o.z.set({activeChain:e,selectedNetworkId:i?.caipNetworkId}))},setActiveCaipNetwork(e){if(!e)return;let t=g.chains.get(e.chainNamespace);g.activeChain=e.chainNamespace,g.activeCaipNetwork=e,t?.accountState?.address?g.activeCaipAddress=`${e.chainNamespace}:${e.id}:${t?.accountState?.address}`:g.activeCaipAddress=void 0,t&&a.U.replaceState(t.accountState),o.z.set({activeChain:g.activeChain,selectedNetworkId:g.activeCaipNetwork?.caipNetworkId}),s.Ud.setItem(s.Ws.ACTIVE_CAIP_NETWORK_ID,e.caipNetworkId),this.checkIfSupportedNetwork(e.chainNamespace)||this.showUnsupportedChainUI()},addCaipNetwork(e){if(!e)return;let t=g.chains.get(e.chainNamespace);t&&t?.caipNetworks?.push(e)},async switchActiveNetwork(e){let t=w.state.chains.get(w.state.activeChain),i=!t?.caipNetworks?.some(e=>e.id===g.activeCaipNetwork?.id),r=this.getNetworkControllerClient(e.chainNamespace);r&&await r.switchCaipNetwork(e),i&&h.I.goBack(),this.setActiveCaipNetwork(e),e&&d.E.sendEvent({type:"track",event:"SWITCH_NETWORK",properties:{network:e.caipNetworkId}})},setActiveConnector(e){e&&(g.activeConnector=(0,n.KR)(e))},getNetworkControllerClient(e){let t=e||g.activeChain,i=g.chains.get(t);if(!i)throw Error("Chain adapter not found");if(!i.networkControllerClient)throw Error("NetworkController client not set");return i.networkControllerClient},getConnectionControllerClient(e){let t=e||g.activeChain;if(!t)throw Error("Chain is required to get connection controller client");let i=g.chains.get(t);if(!i?.connectionControllerClient)throw Error("ConnectionController client not set");return i.connectionControllerClient},getAccountProp(e,t){let i=g.activeChain;if(t&&(i=t),!i)return;let r=g.chains.get(i)?.accountState;if(r)return r[e]},getNetworkProp(e,t){let i=g.chains.get(t)?.networkState;if(i)return i[e]},getRequestedCaipNetworks(e){let t=g.chains.get(e),{approvedCaipNetworkIds:i=[],requestedCaipNetworks:r=[]}=t?.networkState||{};return c.w.sortRequestedNetworks(i,r)},getAllRequestedCaipNetworks(){let e=[];return g.chains.forEach(t=>{let i=this.getRequestedCaipNetworks(t.namespace);e.push(...i)}),e},setRequestedCaipNetworks(e,t){this.setAdapterNetworkState(t,{requestedCaipNetworks:e})},getAllApprovedCaipNetworkIds(){let e=[];return g.chains.forEach(t=>{let i=this.getApprovedCaipNetworkIds(t.namespace);e.push(...i)}),e},getActiveCaipNetwork:()=>g.activeCaipNetwork,getActiveCaipAddress:()=>g.activeCaipAddress,getApprovedCaipNetworkIds(e){let t=g.chains.get(e);return t?.networkState?.approvedCaipNetworkIds||[]},async setApprovedCaipNetworksData(e){let t=this.getNetworkControllerClient(),i=await t?.getApprovedCaipNetworksData();this.setAdapterNetworkState(e,{approvedCaipNetworkIds:i?.approvedCaipNetworkIds,supportsAllNetworks:i?.supportsAllNetworks})},checkIfSupportedNetwork(e){let t=this.state.activeCaipNetwork,i=this.getRequestedCaipNetworks(e);return!i.length||i?.some(e=>e.id===t?.id)},checkIfSupportedChainId(e){if(!this.state.activeChain)return!0;let t=this.getRequestedCaipNetworks(this.state.activeChain);return t?.some(t=>t.id===e)},setSmartAccountEnabledNetworks(e,t){this.setAdapterNetworkState(t,{smartAccountEnabledNetworks:e})},checkIfSmartAccountEnabled(){let e=s.LX.caipNetworkIdToNumber(g.activeCaipNetwork?.caipNetworkId),t=this.state.activeChain;if(!t||!e)return!1;let i=this.getNetworkProp("smartAccountEnabledNetworks",t);return!!i?.includes(Number(e))},getActiveNetworkTokenAddress(){let e=this.state.activeCaipNetwork?.chainNamespace||"eip155",t=this.state.activeCaipNetwork?.id||1,i=l.oU.NATIVE_TOKEN_ADDRESS[e];return`${e}:${t}:${i}`},showUnsupportedChainUI(){setTimeout(()=>{u.W.open({view:"UnsupportedChain"})},300)},checkIfNamesSupported(){let e=g.activeCaipNetwork;return!!(e?.chainNamespace&&l.oU.NAMES_SUPPORTED_CHAIN_NAMESPACES.includes(e.chainNamespace))},resetNetwork(e){this.setAdapterNetworkState(e,{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]})},resetAccount(e){if(!e)throw Error("Chain is required to set account prop");this.state.activeCaipAddress=void 0,this.setChainAccountData(e,(0,n.KR)({smartAccountDeployed:!1,currentTab:0,caipAddress:void 0,address:void 0,balance:void 0,balanceSymbol:void 0,profileName:void 0,profileImage:void 0,addressExplorerUrl:void 0,tokenBalance:[],connectedWalletInfo:void 0,preferredAccountType:void 0,socialProvider:void 0,socialWindow:void 0,farcasterUrl:void 0,provider:void 0}))}}},35335:(e,t,i)=>{"use strict";let r;i.d(t,{x:()=>g});var n=i(5061),a=i(2614),o=i(12344),s=i(75268),c=i(76990),l=i(94984);i(45011);var u=i(29811),d=i(79950),h=i(38946),p=i(48131);let f=(0,a.BX)({wcError:!1,buffering:!1,status:"disconnected"}),g={state:f,subscribeKey:(e,t)=>(0,n.u$)(f,e,t),_getClient:()=>f._client,setClient(e){f._client=(0,a.KR)(e)},async connectWalletConnect(){if(s.i.setConnectedConnector("WALLET_CONNECT"),o.w.isTelegram()){if(r){try{await r}catch(e){}r=void 0;return}if(!o.w.isPairingExpired(f?.wcPairingExpiry)){let e=f.wcUri;f.wcUri=e;return}r=new Promise(async(e,t)=>{await this._getClient()?.connectWalletConnect?.(e=>{f.wcUri=e,f.wcPairingExpiry=o.w.getPairingExpiry()}).catch(t),e()}),this.state.status="connecting",await r,r=void 0,f.wcPairingExpiry=void 0,this.state.status="connected"}else await this._getClient()?.connectWalletConnect?.(e=>{f.wcUri=e,f.wcPairingExpiry=o.w.getPairingExpiry()})},async connectExternal(e,t,i=!0){await this._getClient()?.connectExternal?.(e),i&&l.W.setActiveNamespace(t)},async reconnectExternal(e){await this._getClient()?.reconnectExternal?.(e),s.i.setConnectedConnector("AUTH"===e.type?"ID_AUTH":e.type)},async setPreferredAccountType(e){u.W.setLoading(!0);let t=d.a.getAuthConnector();t&&(await t?.provider.setPreferredAccount(e),await this.reconnectExternal(t),u.W.setLoading(!1),h.E.sendEvent({type:"track",event:"SET_PREFERRED_ACCOUNT_TYPE",properties:{accountType:e,network:l.W.state.activeCaipNetwork?.caipNetworkId||""}}))},async signMessage(e){return this._getClient()?.signMessage(e)},parseUnits(e,t){return this._getClient()?.parseUnits(e,t)},formatUnits(e,t){return this._getClient()?.formatUnits(e,t)},async sendTransaction(e){return this._getClient()?.sendTransaction(e)},async getCapabilities(e){return this._getClient()?.getCapabilities(e)},async grantPermissions(e){return this._getClient()?.grantPermissions(e)},async estimateGas(e){return this._getClient()?.estimateGas(e)},async writeContract(e){return this._getClient()?.writeContract(e)},async getEnsAddress(e){return this._getClient()?.getEnsAddress(e)},async getEnsAvatar(e){return this._getClient()?.getEnsAvatar(e)},checkInstalled(e){return this._getClient()?.checkInstalled?.(e)||!1},resetWcConnection(){f.wcUri=void 0,f.wcPairingExpiry=void 0,f.wcLinking=void 0,f.recentWallet=void 0,f.status="disconnected",c.W.resetTransactions(),s.i.deleteWalletConnectDeepLink()},setWcLinking(e){f.wcLinking=e},setWcError(e){f.wcError=e,f.buffering=!1},setRecentWallet(e){f.recentWallet=e},setBuffering(e){f.buffering=e},setStatus(e){f.status=e},async disconnect(){try{let e=this._getClient(),t=p.H.state.siwx;if(t){let e=l.W.getActiveCaipNetwork(),i=o.w.getPlainAddress(l.W.getActiveCaipAddress());e&&i&&await t.revokeSession(e.caipNetworkId,i)}await e?.disconnect(),this.resetWcConnection()}catch(e){throw Error("Failed to disconnect")}}}},79950:(e,t,i)=>{"use strict";i.d(t,{a:()=>u});var r=i(5061),n=i(2614),a=i(50639),o=i(48131),s=i(51668),c=i(94984);let l=(0,n.BX)({allConnectors:[],connectors:[]}),u={state:l,subscribeKey:(e,t)=>(0,r.u$)(l,e,t),setConnectors(e){e.filter(e=>!l.allConnectors.some(t=>t.id===e.id&&this.getConnectorName(t.name)===this.getConnectorName(e.name)&&t.chain===e.chain)).forEach(e=>{l.allConnectors.push((0,n.KR)(e))}),l.connectors=this.mergeMultiChainConnectors(l.allConnectors)},mergeMultiChainConnectors(e){let t=this.generateConnectorMapByName(e),i=[];return t.forEach(e=>{let t=e[0],r=t?.id==="ID_AUTH";e.length>1?i.push({name:t?.name,imageUrl:t?.imageUrl,imageId:t?.imageId,connectors:[...e],type:r?"AUTH":"MULTI_CHAIN",chain:"eip155",id:t?.id||""}):t&&i.push(t)}),i},generateConnectorMapByName(e){let t=new Map;return e.forEach(e=>{let{name:i}=e,r=this.getConnectorName(i);if(!r)return;let n=t.get(r)||[];n.find(t=>t.chain===e.chain)||n.push(e),t.set(r,n)}),t},getConnectorName:e=>e&&({"Trust Wallet":"Trust"})[e]||e,getUniqueConnectorsByName(e){let t=[];return e.forEach(e=>{t.find(t=>t.chain===e.chain)||t.push(e)}),t},addConnector(e){if("ID_AUTH"===e.id){let t=(0,n.P9)(o.H.state),i=s.W.getSnapshot().themeMode,r=s.W.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,projectId:t.projectId,sdkType:t.sdkType}),e.provider.syncTheme({themeMode:i,themeVariables:r,w3mThemeVariables:(0,a.o_)(r,i)}),this.setConnectors([e])}else this.setConnectors([e])},getAuthConnector(){let e=c.W.state.activeChain,t=l.connectors.find(e=>"ID_AUTH"===e.id);return t?t?.connectors?.length?t.connectors.find(t=>t.chain===e):t:void 0},getAnnouncedConnectorRdns:()=>l.connectors.filter(e=>"ANNOUNCED"===e.type).map(e=>e.info?.rdns),getConnectors:()=>l.connectors,getConnector:(e,t)=>l.connectors.find(i=>i.explorerId===e||i.info?.rdns===t),syncIfAuthConnector(e){if("ID_AUTH"!==e.id)return;let t=(0,n.P9)(o.H.state),i=s.W.getSnapshot().themeMode,r=s.W.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,sdkType:t.sdkType,projectId:t.projectId}),e.provider.syncTheme({themeMode:i,themeVariables:r,w3mThemeVariables:(0,a.o_)(r,i)})}}},38946:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var r=i(2614),n=i(12344),a=i(85493),o=i(48131);let s=n.w.getAnalyticsUrl(),c=new a.Z({baseUrl:s,clientId:null}),l=["MODAL_CREATED"],u=(0,r.BX)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),d={state:u,subscribe:e=>(0,r.B1)(u,()=>e(u)),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:i}=o.H.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":i||"html-wagmi-4.2.2"}},async _sendAnalyticsEvent(e){try{if(l.includes(e.data.event)||"undefined"==typeof window)return;await c.post({path:"/e",headers:d._getApiHeaders(),body:{eventId:n.w.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:e.timestamp,props:e.data}})}catch{}},sendEvent(e){u.timestamp=Date.now(),u.data=e,o.H.state.features?.analytics&&d._sendAnalyticsEvent(u)}}},29811:(e,t,i)=>{"use strict";i.d(t,{W:()=>h});var r=i(5061),n=i(2614),a=i(57417),o=i(38946),s=i(36371),c=i(2850),l=i(94984),u=i(12344);let d=(0,n.BX)({loading:!1,open:!1,shake:!1}),h={state:d,subscribe:e=>(0,n.B1)(d,()=>e(d)),subscribeKey:(e,t)=>(0,r.u$)(d,e,t),async open(e){await a.N.state.prefetchPromise;let t=l.W.state.activeCaipAddress,i=l.W.state.noAdapters;e?.view?c.I.reset(e.view):t?c.I.reset("Account"):i&&!u.w.isMobile()?c.I.reset("ConnectingWalletConnect"):c.I.reset("Connect"),d.open=!0,s.z.set({open:!0}),o.E.sendEvent({type:"track",event:"MODAL_OPEN",properties:{connected:!!t}})},close(){let e=!!l.W.state.activeCaipAddress;d.open=!1,s.z.set({open:!1}),o.E.sendEvent({type:"track",event:"MODAL_CLOSE",properties:{connected:e}})},setLoading(e){d.loading=e,s.z.set({loading:e})},shake(){d.shake||(d.shake=!0,setTimeout(()=>{d.shake=!1},500))}}},48131:(e,t,i)=>{"use strict";i.d(t,{H:()=>s});var r=i(5061),n=i(2614),a=i(36192);let o=(0,n.BX)({features:a.oU.DEFAULT_FEATURES,projectId:"",sdkType:"appkit",sdkVersion:"html-wagmi-undefined"}),s={state:o,subscribeKey:(e,t)=>(0,r.u$)(o,e,t),setOptions(e){Object.assign(o,e)},setFeatures(e){e&&Object.entries(e).forEach(([e,t])=>{o.features||(o.features=a.oU.DEFAULT_FEATURES),e in o.features&&(o.features[e]=t)})},setProjectId(e){o.projectId=e},setAllWallets(e){o.allWallets=e},setIncludeWalletIds(e){o.includeWalletIds=e},setExcludeWalletIds(e){o.excludeWalletIds=e},setFeaturedWalletIds(e){o.featuredWalletIds=e},setTokens(e){o.tokens=e},setTermsConditionsUrl(e){o.termsConditionsUrl=e},setPrivacyPolicyUrl(e){o.privacyPolicyUrl=e},setCustomWallets(e){o.customWallets=e},setIsSiweEnabled(e){o.isSiweEnabled=e},setIsUniversalProvider(e){o.isUniversalProvider=e},setSdkVersion(e){o.sdkVersion=e},setMetadata(e){o.metadata=e},setDisableAppend(e){o.disableAppend=e},setEIP6963Enabled(e){o.enableEIP6963=e},setDebug(e){o.debug=e},setEnableWalletConnect(e){o.enableWalletConnect=e},setEnableWallets(e){o.enableWallets=e},setHasMultipleAddresses(e){o.hasMultipleAddresses=e},setSIWX(e){o.siwx=e}}},36371:(e,t,i)=>{"use strict";i.d(t,{z:()=>a});var r=i(2614);let n=(0,r.BX)({loading:!1,open:!1,selectedNetworkId:void 0,activeChain:void 0}),a={state:n,subscribe:e=>(0,r.B1)(n,()=>e(n)),set(e){Object.assign(n,{...n,...e})}}},2850:(e,t,i)=>{"use strict";i.d(t,{I:()=>s});var r=i(5061),n=i(2614),a=i(29811);let o=(0,n.BX)({view:"Connect",history:["Connect"],transactionStack:[]}),s={state:o,subscribeKey:(e,t)=>(0,r.u$)(o,e,t),pushTransactionStack(e){o.transactionStack.push(e)},popTransactionStack(e){let t=o.transactionStack.pop();if(t){if(e)this.goBack(),t?.onCancel?.();else{if(t.goBack)this.goBack();else if(t.replace){let e=o.history.indexOf("ConnectingSiwe");e>0?this.goBackToIndex(e-1):(a.W.close(),o.history=[])}else t.view&&this.reset(t.view);t?.onSuccess?.()}}},push(e,t){e!==o.view&&(o.view=e,o.history.push(e),o.data=t)},reset(e){o.view=e,o.history=[e]},replace(e,t){o.history.at(-1)!==e&&(o.view=e,o.history[o.history.length-1]=e,o.data=t)},goBack(){if(o.history.length>1&&!o.history.includes("UnsupportedChain")){o.history.pop();let[e]=o.history.slice(-1);e&&(o.view=e)}else a.W.close()},goBackToIndex(e){if(o.history.length>1){o.history=o.history.slice(0,e+1);let[t]=o.history.slice(-1);t&&(o.view=t)}}}},55035:(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var r=i(5061),n=i(2614),a=i(12344);let o=(0,n.BX)({message:"",variant:"success",svg:void 0,open:!1}),s={state:o,subscribeKey:(e,t)=>(0,r.u$)(o,e,t),showLoading(e){this._showMessage({message:e,variant:"loading"})},showSuccess(e){this._showMessage({message:e,variant:"success"})},showSvg(e,t){this._showMessage({message:e,svg:t})},showError(e){let t=a.w.parseError(e);this._showMessage({message:t,variant:"error"})},hide(){o.open=!1},_showMessage({message:e,svg:t,variant:i="success"}){o.open?(o.open=!1,setTimeout(()=>{o.message=e,o.variant=i,o.svg=t,o.open=!0},150)):(o.message=e,o.variant=i,o.svg=t,o.open=!0)}}},83637:(e,t,i)=>{"use strict";i.d(t,{GN:()=>C});var r=i(5061),n=i(2614),a=i(73322),o=i(36192),s=i(35335),c=i(9592),l=i(55035),u=i(2850),d=i(50639),h=i(12344),p=i(65411),f=i(48131);let g={getGasPriceInEther:(e,t)=>Number(t*e)/1e18,getGasPriceInUSD(e,t,i){let r=g.getGasPriceInEther(t,i);return d.Se.bigNumber(e).multipliedBy(r).toNumber()},getPriceImpact({sourceTokenAmount:e,sourceTokenPriceInUSD:t,toTokenPriceInUSD:i,toTokenAmount:r}){let n=d.Se.bigNumber(e).multipliedBy(t),a=d.Se.bigNumber(r).multipliedBy(i);return n.minus(a).dividedBy(n).multipliedBy(100).toNumber()},getMaxSlippage(e,t){let i=d.Se.bigNumber(e).dividedBy(100);return d.Se.multiply(t,i).toNumber()},getProviderFee:(e,t=.0085)=>d.Se.bigNumber(e).multipliedBy(t).toString(),isInsufficientNetworkTokenForGas:(e,t)=>!!d.Se.bigNumber(e).isZero()||d.Se.bigNumber(d.Se.bigNumber(t||"0")).isGreaterThan(e),isInsufficientSourceTokenForSwap(e,t,i){let r=i?.find(e=>e.address===t)?.quantity?.numeric;return d.Se.bigNumber(r||"0").isLessThan(e)},getToTokenAmount({sourceToken:e,toToken:t,sourceTokenPrice:i,toTokenPrice:r,sourceTokenAmount:n}){if("0"===n||!e||!t)return"0";let a=e.decimals,o=t.decimals;if(r<=0)return"0";let s=d.Se.bigNumber(n).multipliedBy(.0085),c=d.Se.bigNumber(n).minus(s).multipliedBy(d.Se.bigNumber(10).pow(a)),l=d.Se.bigNumber(i).dividedBy(r),u=a-o;return c.multipliedBy(l).dividedBy(d.Se.bigNumber(10).pow(u)).dividedBy(d.Se.bigNumber(10).pow(o)).toFixed(o).toString()}};var w=i(38946),m=i(45011),b=i(75268),v=i(94984);let y={initializing:!1,initialized:!1,loadingPrices:!1,loadingQuote:!1,loadingApprovalTransaction:!1,loadingBuildTransaction:!1,loadingTransaction:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:o.oU.CONVERT_SLIPPAGE_TOLERANCE,tokens:void 0,popularTokens:void 0,suggestedTokens:void 0,foundTokens:void 0,myTokensWithBalance:void 0,tokensPriceMap:{},gasFee:"0",gasPriceInUSD:0,priceImpact:void 0,maxSlippage:void 0,providerFee:void 0},x=(0,n.BX)(y),C={state:x,subscribe:e=>(0,n.B1)(x,()=>e(x)),subscribeKey:(e,t)=>(0,r.u$)(x,e,t),getParams(){let e=v.W.state.activeCaipAddress,t=h.w.getPlainAddress(e),i=v.W.getActiveNetworkTokenAddress(),r=b.i.getConnectedConnector();if(!t)throw Error("No address found to swap the tokens from.");let n=!x.toToken?.address||!x.toToken?.decimals,a=!x.sourceToken?.address||!x.sourceToken?.decimals||!d.Se.bigNumber(x.sourceTokenAmount).isGreaterThan(0),o=!x.sourceTokenAmount;return{networkAddress:i,fromAddress:t,fromCaipAddress:e,sourceTokenAddress:x.sourceToken?.address,toTokenAddress:x.toToken?.address,toTokenAmount:x.toTokenAmount,toTokenDecimals:x.toToken?.decimals,sourceTokenAmount:x.sourceTokenAmount,sourceTokenDecimals:x.sourceToken?.decimals,invalidToToken:n,invalidSourceToken:a,invalidSourceTokenAmount:o,availableToSwap:e&&!n&&!a&&!o,isAuthConnector:"ID_AUTH"===r}},setSourceToken(e){if(!e){x.sourceToken=e,x.sourceTokenAmount="",x.sourceTokenPriceInUSD=0;return}x.sourceToken=e,this.setTokenPrice(e.address,"sourceToken")},setSourceTokenAmount(e){x.sourceTokenAmount=e},setToToken(e){if(!e){x.toToken=e,x.toTokenAmount="",x.toTokenPriceInUSD=0;return}x.toToken=e,this.setTokenPrice(e.address,"toToken")},setToTokenAmount(e){x.toTokenAmount=e?d.Se.formatNumberToLocalString(e,6):""},async setTokenPrice(e,t){let{availableToSwap:i}=this.getParams(),r=x.tokensPriceMap[e]||0;r||(x.loadingPrices=!0,r=await this.getAddressPrice(e)),"sourceToken"===t?x.sourceTokenPriceInUSD=r:"toToken"===t&&(x.toTokenPriceInUSD=r),x.loadingPrices&&(x.loadingPrices=!1,i&&this.swapTokens())},switchTokens(){if(x.initializing||!x.initialized)return;let e=x.toToken?{...x.toToken}:void 0,t=x.sourceToken?{...x.sourceToken}:void 0,i=e&&""===x.toTokenAmount?"1":x.toTokenAmount;this.setSourceToken(e),this.setToToken(t),this.setSourceTokenAmount(i),this.setToTokenAmount(""),this.swapTokens()},resetState(){x.myTokensWithBalance=y.myTokensWithBalance,x.tokensPriceMap=y.tokensPriceMap,x.initialized=y.initialized,x.sourceToken=y.sourceToken,x.sourceTokenAmount=y.sourceTokenAmount,x.sourceTokenPriceInUSD=y.sourceTokenPriceInUSD,x.toToken=y.toToken,x.toTokenAmount=y.toTokenAmount,x.toTokenPriceInUSD=y.toTokenPriceInUSD,x.networkPrice=y.networkPrice,x.networkTokenSymbol=y.networkTokenSymbol,x.networkBalanceInUSD=y.networkBalanceInUSD,x.inputError=y.inputError},resetValues(){let{networkAddress:e}=this.getParams(),t=x.tokens?.find(t=>t.address===e);this.setSourceToken(t),this.setToToken(void 0)},getApprovalLoadingState:()=>x.loadingApprovalTransaction,clearError(){x.transactionError=void 0},async initializeState(){if(!x.initializing){if(x.initializing=!0,!x.initialized)try{await this.fetchTokens(),x.initialized=!0}catch(e){x.initialized=!1,l.P.showError("Failed to initialize swap"),u.I.goBack()}x.initializing=!1}},async fetchTokens(){let{networkAddress:e}=this.getParams();await this.getTokenList(),await this.getNetworkTokenPrice(),await this.getMyTokensWithBalance();let t=x.tokens?.find(t=>t.address===e);t&&(x.networkTokenSymbol=t.symbol,this.setSourceToken(t),this.setSourceTokenAmount("1"))},async getTokenList(){let e=await c.s.getTokenList();x.tokens=e,x.popularTokens=e.sort((e,t)=>e.symbol<t.symbol?-1:e.symbol>t.symbol?1:0),x.suggestedTokens=e.filter(e=>!!o.oU.SWAP_SUGGESTED_TOKENS.includes(e.symbol),{})},async getAddressPrice(e){let t=x.tokensPriceMap[e];if(t)return t;let i=(await p.T.fetchTokenPrice({projectId:f.H.state.projectId,addresses:[e]})).fungibles||[],r=[...x.tokens||[],...x.myTokensWithBalance||[]],n=r?.find(t=>t.address===e)?.symbol,a=parseFloat((i.find(e=>e.symbol.toLowerCase()===n?.toLowerCase())?.price||0).toString());return x.tokensPriceMap[e]=a,a},async getNetworkTokenPrice(){let{networkAddress:e}=this.getParams(),t=await p.T.fetchTokenPrice({projectId:f.H.state.projectId,addresses:[e]}).catch(()=>(l.P.showError("Failed to fetch network token price"),{fungibles:[]})),i=t.fungibles?.[0],r=i?.price.toString()||"0";x.tokensPriceMap[e]=parseFloat(r),x.networkTokenSymbol=i?.symbol||"",x.networkPrice=r},async getMyTokensWithBalance(e){let t=await c.s.getMyTokensWithBalance(e);t&&(await this.getInitialGasPrice(),this.setBalances(t))},setBalances(e){let{networkAddress:t}=this.getParams(),i=v.W.state.activeCaipNetwork;if(!i)return;let r=e.find(e=>e.address===t);e.forEach(e=>{x.tokensPriceMap[e.address]=e.price||0}),x.myTokensWithBalance=e.filter(e=>e.address.startsWith(i.caipNetworkId)),x.networkBalanceInUSD=r?d.Se.multiply(r.quantity.numeric,r.price).toString():"0"},async getInitialGasPrice(){let e=await c.s.fetchGasPrice();if(!e)return{gasPrice:null,gasPriceInUSD:null};if(v.W.state?.activeCaipNetwork?.chainNamespace==="solana")return x.gasFee=e.standard??"0",x.gasPriceInUSD=d.Se.multiply(e.standard,x.networkPrice).dividedBy(1e9).toNumber(),{gasPrice:BigInt(x.gasFee),gasPriceInUSD:Number(x.gasPriceInUSD)};{let t=e.standard??"0",i=BigInt(t),r=BigInt(15e4),n=g.getGasPriceInUSD(x.networkPrice,r,i);return x.gasFee=t,x.gasPriceInUSD=n,{gasPrice:i,gasPriceInUSD:n}}},async swapTokens(){let e=a.U.state.address,t=x.sourceToken,i=x.toToken,r=d.Se.bigNumber(x.sourceTokenAmount).isGreaterThan(0);if(!i||!t||x.loadingPrices||!r)return;x.loadingQuote=!0;let n=d.Se.bigNumber(x.sourceTokenAmount).multipliedBy(10**t.decimals).integerValue(),o=await p.T.fetchSwapQuote({userAddress:e,projectId:f.H.state.projectId,from:t.address,to:i.address,gasPrice:x.gasFee,amount:n.toString()});x.loadingQuote=!1;let s=o?.quotes?.[0]?.toAmount;if(!s)return;let c=d.Se.bigNumber(s).dividedBy(10**i.decimals).toString();this.setToTokenAmount(c),this.hasInsufficientToken(x.sourceTokenAmount,t.address)?x.inputError="Insufficient balance":(x.inputError=void 0,this.setTransactionDetails())},async getTransaction(){let{fromCaipAddress:e,availableToSwap:t}=this.getParams(),i=x.sourceToken,r=x.toToken;if(e&&t&&i&&r&&!x.loadingQuote)try{let t;return x.loadingBuildTransaction=!0,t=await c.s.fetchSwapAllowance({userAddress:e,tokenAddress:i.address,sourceTokenAmount:x.sourceTokenAmount,sourceTokenDecimals:i.decimals})?await this.createSwapTransaction():await this.createAllowanceTransaction(),x.loadingBuildTransaction=!1,x.fetchError=!1,t}catch(e){u.I.goBack(),l.P.showError("Failed to check allowance"),x.loadingBuildTransaction=!1,x.approvalTransaction=void 0,x.swapTransaction=void 0,x.fetchError=!0;return}},async createAllowanceTransaction(){let{fromCaipAddress:e,fromAddress:t,sourceTokenAddress:i,toTokenAddress:r}=this.getParams();if(e&&r){if(!i)throw Error("createAllowanceTransaction - No source token address found.");try{let n=await p.T.generateApproveCalldata({projectId:f.H.state.projectId,from:i,to:r,userAddress:e}),a=await s.x.estimateGas({address:t,to:h.w.getPlainAddress(n.tx.to),data:n.tx.data}),o={data:n.tx.data,to:h.w.getPlainAddress(n.tx.from),gas:a,gasPrice:BigInt(n.tx.eip155.gasPrice),value:BigInt(n.tx.value),toAmount:x.toTokenAmount};return x.swapTransaction=void 0,x.approvalTransaction={data:o.data,to:o.to,gas:o.gas??BigInt(0),gasPrice:o.gasPrice,value:o.value,toAmount:o.toAmount},{data:o.data,to:o.to,gas:o.gas??BigInt(0),gasPrice:o.gasPrice,value:o.value,toAmount:o.toAmount}}catch(e){u.I.goBack(),l.P.showError("Failed to create approval transaction"),x.approvalTransaction=void 0,x.swapTransaction=void 0,x.fetchError=!0;return}}},async createSwapTransaction(){let{networkAddress:e,fromCaipAddress:t,sourceTokenAmount:i}=this.getParams(),r=x.sourceToken,n=x.toToken;if(!t||!i||!r||!n)return;let a=s.x.parseUnits(i,r.decimals)?.toString();try{let i=await p.T.generateSwapCalldata({projectId:f.H.state.projectId,userAddress:t,from:r.address,to:n.address,amount:a}),o=r.address===e,s=BigInt(i.tx.eip155.gas),c=BigInt(i.tx.eip155.gasPrice),l={data:i.tx.data,to:h.w.getPlainAddress(i.tx.to),gas:s,gasPrice:c,value:o?BigInt(a??"0"):BigInt("0"),toAmount:x.toTokenAmount};return x.gasPriceInUSD=g.getGasPriceInUSD(x.networkPrice,s,c),x.approvalTransaction=void 0,x.swapTransaction=l,l}catch(e){u.I.goBack(),l.P.showError("Failed to create transaction"),x.approvalTransaction=void 0,x.swapTransaction=void 0,x.fetchError=!0;return}},async sendTransactionForApproval(e){let{fromAddress:t,isAuthConnector:i}=this.getParams();x.loadingApprovalTransaction=!0;let r="Approve limit increase in your wallet";i?u.I.pushTransactionStack({view:null,goBack:!0,onSuccess(){l.P.showLoading(r)}}):l.P.showLoading(r);try{await s.x.sendTransaction({address:t,to:e.to,data:e.data,value:BigInt(e.value),gasPrice:BigInt(e.gasPrice),chainNamespace:"eip155"}),await this.swapTokens(),await this.getTransaction(),x.approvalTransaction=void 0,x.loadingApprovalTransaction=!1}catch(e){x.transactionError=e?.shortMessage,x.loadingApprovalTransaction=!1,l.P.showError(e?.shortMessage||"Transaction error")}},async sendTransactionForSwap(e){if(!e)return;let{fromAddress:t,toTokenAmount:i,isAuthConnector:r}=this.getParams();x.loadingTransaction=!0;let n=`Swapping ${x.sourceToken?.symbol} to ${d.Se.formatNumberToLocalString(i,3)} ${x.toToken?.symbol}`,o=`Swapped ${x.sourceToken?.symbol} to ${d.Se.formatNumberToLocalString(i,3)} ${x.toToken?.symbol}`;r?u.I.pushTransactionStack({view:"Account",goBack:!1,onSuccess(){l.P.showLoading(n),C.resetState()}}):l.P.showLoading("Confirm transaction in your wallet");try{let i=[x.sourceToken?.address,x.toToken?.address].join(","),n=await s.x.sendTransaction({address:t,to:e.to,data:e.data,gas:e.gas,gasPrice:BigInt(e.gasPrice),value:e.value,chainNamespace:"eip155"});return x.loadingTransaction=!1,l.P.showSuccess(o),w.E.sendEvent({type:"track",event:"SWAP_SUCCESS",properties:{network:v.W.state.activeCaipNetwork?.caipNetworkId||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:a.U.state.preferredAccountType===m.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),C.resetState(),r||u.I.replace("Account"),C.getMyTokensWithBalance(i),n}catch(e){x.transactionError=e?.shortMessage,x.loadingTransaction=!1,l.P.showError(e?.shortMessage||"Transaction error"),w.E.sendEvent({type:"track",event:"SWAP_ERROR",properties:{message:e?.shortMessage||e?.message||"Unknown",network:v.W.state.activeCaipNetwork?.caipNetworkId||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:a.U.state.preferredAccountType===m.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}});return}},hasInsufficientToken(e,t){let i=g.isInsufficientSourceTokenForSwap(e,t,x.myTokensWithBalance);return a.U.state.preferredAccountType!==m.Vl.ACCOUNT_TYPES.SMART_ACCOUNT&&g.isInsufficientNetworkTokenForGas(x.networkBalanceInUSD,x.gasPriceInUSD)||i},setTransactionDetails(){let{toTokenAddress:e,toTokenDecimals:t}=this.getParams();e&&t&&(x.gasPriceInUSD=g.getGasPriceInUSD(x.networkPrice,BigInt(x.gasFee),BigInt(15e4)),x.priceImpact=g.getPriceImpact({sourceTokenAmount:x.sourceTokenAmount,sourceTokenPriceInUSD:x.sourceTokenPriceInUSD,toTokenPriceInUSD:x.toTokenPriceInUSD,toTokenAmount:x.toTokenAmount}),x.maxSlippage=g.getMaxSlippage(x.slippage,x.toTokenAmount),x.providerFee=g.getProviderFee(x.sourceTokenAmount))}}},51668:(e,t,i)=>{"use strict";i.d(t,{W:()=>s});var r=i(2614),n=i(79950),a=i(50639);let o=(0,r.BX)({themeMode:"dark",themeVariables:{},w3mThemeVariables:void 0}),s={state:o,subscribe:e=>(0,r.B1)(o,()=>e(o)),setThemeMode(e){o.themeMode=e;try{let t=n.a.getAuthConnector();if(t){let i=s.getSnapshot().themeVariables;t.provider.syncTheme({themeMode:e,themeVariables:i,w3mThemeVariables:(0,a.o_)(i,e)})}}catch{console.info("Unable to sync theme to auth connector")}},setThemeVariables(e){o.themeVariables={...o.themeVariables,...e};try{let e=n.a.getAuthConnector();if(e){let t=s.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:t,w3mThemeVariables:(0,a.o_)(o.themeVariables,o.themeMode)})}}catch{console.info("Unable to sync theme to auth connector")}},getSnapshot:()=>(0,r.P9)(o)}},76990:(e,t,i)=>{"use strict";i.d(t,{W:()=>h});var r=i(2614),n=i(48131),a=i(38946),o=i(55035),s=i(65411),c=i(73322),l=i(45011),u=i(94984);let d=(0,r.BX)({transactions:[],coinbaseTransactions:{},transactionsByYear:{},lastNetworkInView:void 0,loading:!1,empty:!1,next:void 0}),h={state:d,subscribe:e=>(0,r.B1)(d,()=>e(d)),setLastNetworkInView(e){d.lastNetworkInView=e},async fetchTransactions(e,t){let{projectId:i}=n.H.state;if(!i||!e)throw Error("Transactions can't be fetched without a projectId and an accountAddress");d.loading=!0;try{let r=await s.T.fetchTransactions({account:e,projectId:i,cursor:d.next,onramp:t,cache:"coinbase"===t?"no-cache":void 0,chainId:u.W.state.activeCaipNetwork?.caipNetworkId}),n=this.filterSpamTransactions(r.data),a=this.filterByConnectedChain(n),o=[...d.transactions,...a];d.loading=!1,"coinbase"===t?d.coinbaseTransactions=this.groupTransactionsByYearAndMonth(d.coinbaseTransactions,r.data):(d.transactions=o,d.transactionsByYear=this.groupTransactionsByYearAndMonth(d.transactionsByYear,a)),d.empty=0===o.length,d.next=r.next?r.next:void 0}catch(t){a.E.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:e,projectId:i,cursor:d.next,isSmartAccount:c.U.state.preferredAccountType===l.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),o.P.showError("Failed to fetch transactions"),d.loading=!1,d.empty=!0,d.next=void 0}},groupTransactionsByYearAndMonth:(e={},t=[])=>(t.forEach(t=>{let i=new Date(t.metadata.minedAt).getFullYear(),r=new Date(t.metadata.minedAt).getMonth(),n=e[i]??{},a=(n[r]??[]).filter(e=>e.id!==t.id);e[i]={...n,[r]:[...a,t].sort((e,t)=>new Date(t.metadata.minedAt).getTime()-new Date(e.metadata.minedAt).getTime())}}),e),filterSpamTransactions:e=>e.filter(e=>!e.transfers.every(e=>e.nft_info?.flags.is_spam===!0)),filterByConnectedChain(e){let t=u.W.state.activeCaipNetwork?.caipNetworkId;return e.filter(e=>e.metadata.chain===t)},clearCursor(){d.next=void 0},resetTransactions(){d.transactions=[],d.transactionsByYear={},d.lastNetworkInView=void 0,d.loading=!1,d.empty=!1,d.next=void 0}}},36192:(e,t,i)=>{"use strict";i.d(t,{oU:()=>o,pv:()=>a,tM:()=>n});let r="https://secure.walletconnect.org",n=[{label:"Coinbase",name:"coinbase",feeRange:"1-2%",url:"",supportedChains:["eip155"]},{label:"Meld.io",name:"meld",feeRange:"1-2%",url:"https://meldcrypto.com",supportedChains:["eip155","solana"]}],a="WXETMuFUQmqqybHuRkSgxv:25B8LJHSfpG6LVjR2ytU5Cwh7Z4Sch2ocoU",o={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,FIVE_SEC_MS:5e3,THREE_SEC_MS:3e3,ONE_SEC_MS:1e3,SECURE_SITE:r,SECURE_SITE_DASHBOARD:`${r}/dashboard`,SECURE_SITE_FAVICON:`${r}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],WC_COINBASE_PAY_SDK_CHAINS:["ethereum","arbitrum","polygon","avalanche-c-chain","optimism","celo","base"],WC_COINBASE_PAY_SDK_FALLBACK_CHAIN:"ethereum",WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP:{Ethereum:"ethereum","Arbitrum One":"arbitrum",Polygon:"polygon",Avalanche:"avalanche-c-chain","OP Mainnet":"optimism",Celo:"celo",Base:"base"},WC_COINBASE_ONRAMP_APP_ID:"bf18c88d-495a-463b-b249-0b9d3656cf5e",SWAP_SUGGESTED_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP"],SWAP_POPULAR_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP","METAL","DAI","CHAMP","WOLF","SALE","BAL","BUSD","MUST","BTCpx","ROUTE","HEX","WELT","amDAI","VSQ","VISION","AURUM","pSP","SNX","VC","LINK","CHP","amUSDT","SPHERE","FOX","GIDDY","GFC","OMEN","OX_OLD","DE","WNT"],SWAP_SUPPORTED_NETWORKS:["eip155:1","eip155:42161","eip155:10","eip155:324","eip155:8453","eip155:56","eip155:137","eip155:100","eip155:43114","eip155:250","eip155:8217","eip155:1313161554"],NAMES_SUPPORTED_CHAIN_NAMESPACES:["eip155"],NATIVE_TOKEN_ADDRESS:{eip155:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",solana:"So11111111111111111111111111111111111111111",polkadot:"0x",bip122:"0x"},CONVERT_SLIPPAGE_TOLERANCE:1,CONNECT_LABELS:{MOBILE:"Open and continue in a new browser tab"},DEFAULT_FEATURES:{swaps:!0,onramp:!0,email:!0,emailShowWallets:!0,socials:["google","x","discord","farcaster","github","apple","facebook"],history:!0,analytics:!0,allWallets:!0,legalCheckbox:!1,smartSessions:!1}}},12344:(e,t,i)=>{"use strict";i.d(t,{w:()=>a});var r=i(50639),n=i(36192);let a={isMobile:()=>"undefined"!=typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),checkCaipNetwork:(e,t="")=>e?.caipNetworkId.toLocaleLowerCase().includes(t.toLowerCase()),isAndroid(){let e=window.navigator.userAgent.toLowerCase();return a.isMobile()&&e.includes("android")},isIos(){let e=window.navigator.userAgent.toLowerCase();return a.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isClient:()=>"undefined"!=typeof window,isPairingExpired:e=>!e||e-Date.now()<=n.oU.TEN_SEC_MS,isAllowedRetry:(e,t=n.oU.ONE_SEC_MS)=>Date.now()-e>=t,copyToClopboard(e){navigator.clipboard.writeText(e)},getPairingExpiry:()=>Date.now()+n.oU.FOUR_MINUTES_MS,getNetworkId:e=>e?.split(":")[1],getPlainAddress:e=>e?.split(":")[2],wait:async e=>new Promise(t=>{setTimeout(t,e)}),debounce(e,t=500){let i;return(...r)=>{i&&clearTimeout(i),i=setTimeout(function(){e(...r)},t)}},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t){if(a.isHttpUrl(e))return this.formatUniversalUrl(e,t);let i=e;i.includes("://")||(i=e.replaceAll("/","").replaceAll(":",""),i=`${i}://`),i.endsWith("/")||(i=`${i}/`),this.isTelegram()&&this.isAndroid()&&(t=encodeURIComponent(t));let r=encodeURIComponent(t);return{redirect:`${i}wc?uri=${r}`,href:i}},formatUniversalUrl(e,t){if(!a.isHttpUrl(e))return this.formatNativeUrl(e,t);let i=e;i.endsWith("/")||(i=`${i}/`);let r=encodeURIComponent(t);return{redirect:`${i}wc?uri=${r}`,href:i}},getOpenTargetForPlatform(e){return this.isTelegram()?"_blank":e},openHref(e,t,i){window.open(e,this.getOpenTargetForPlatform(t),i||"noreferrer noopener")},returnOpenHref(e,t,i){return window.open(e,this.getOpenTargetForPlatform(t),i||"noreferrer noopener")},isTelegram:()=>"undefined"!=typeof window&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto),preloadImage:async e=>Promise.race([new Promise((t,i)=>{let r=new Image;r.onload=t,r.onerror=i,r.crossOrigin="anonymous",r.src=e}),a.wait(2e3)]),formatBalance(e,t){let i="0.000";if("string"==typeof e){let t=Number(e);if(t){let e=Math.floor(1e3*t)/1e3;e&&(i=e.toString())}}return`${i}${t?` ${t}`:""}`},formatBalance2(e,t){let i;if("0"===e)i="0";else if("string"==typeof e){let t=Number(e);t&&(i=t.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}return{value:i??"0",rest:"0"===i?"000":"",symbol:t}},getApiUrl:()=>r.oU.W3M_API_URL,getBlockchainApiUrl:()=>r.oU.BLOCKCHAIN_API_RPC_URL,getAnalyticsUrl:()=>r.oU.PULSE_API_URL,getUUID:()=>crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),parseError:e=>"string"==typeof e?e:"string"==typeof e?.issues?.[0]?.message?e.issues[0].message:e instanceof Error?e.message:"Unknown error",sortRequestedNetworks(e,t=[]){let i={};return t&&e&&(e.forEach((e,t)=>{i[e]=t}),t.sort((e,t)=>{let r=i[e.id],n=i[t.id];return void 0!==r&&void 0!==n?r-n:void 0!==r?-1:void 0!==n?1:0})),t},calculateBalance(e){let t=0;for(let i of e)t+=i.value??0;return t},formatTokenBalance(e){let[t,i]=e.toFixed(2).split(".");return{dollars:t,pennies:i}},isAddress(e,t="eip155"){switch(t){case"eip155":if(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)&&(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)||/^(?:0x)?[0-9A-F]{40}$/iu.test(e)))return!0;return!1;case"solana":return/[1-9A-HJ-NP-Za-km-z]{32,44}$/iu.test(e);default:return!1}},uniqueBy(e,t){let i=new Set;return e.filter(e=>{let r=e[t];return!i.has(r)&&(i.add(r),!0)})},generateSdkVersion(e,t,i){let r=0===e.length?"universal":e.map(e=>e.adapterType).join(",");return`${t}-${r}-${i}`}}},85493:(e,t,i)=>{"use strict";async function r(...e){let t=await fetch(...e);if(!t.ok)throw Error(`HTTP status code: ${t.status}`,{cause:t});return t}i.d(t,{Z:()=>n});class n{constructor({baseUrl:e,clientId:t}){this.baseUrl=e,this.clientId=t}async get({headers:e,signal:t,cache:i,...n}){let a=this.createUrl(n);return(await r(a,{method:"GET",headers:e,signal:t,cache:i})).json()}async getBlob({headers:e,signal:t,...i}){let n=this.createUrl(i);return(await r(n,{method:"GET",headers:e,signal:t})).blob()}async post({body:e,headers:t,signal:i,...n}){let a=this.createUrl(n);return(await r(a,{method:"POST",headers:t,body:e?JSON.stringify(e):void 0,signal:i})).json()}async put({body:e,headers:t,signal:i,...n}){let a=this.createUrl(n);return(await r(a,{method:"PUT",headers:t,body:e?JSON.stringify(e):void 0,signal:i})).json()}async delete({body:e,headers:t,signal:i,...n}){let a=this.createUrl(n);return(await r(a,{method:"DELETE",headers:t,body:e?JSON.stringify(e):void 0,signal:i})).json()}createUrl({path:e,params:t}){let i=new URL(e,this.baseUrl);return t&&Object.entries(t).forEach(([e,t])=>{t&&i.searchParams.append(e,t)}),this.clientId&&i.searchParams.append("clientId",this.clientId),i}}},75268:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var r=i(50639),n=i(94984);let a={setWalletConnectDeepLink({name:e,href:t}){try{r.Ud.setItem(r.Ws.DEEPLINK_CHOICE,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{let e=r.Ud.getItem(r.Ws.DEEPLINK_CHOICE);if(e)return JSON.parse(e)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{r.Ud.removeItem(r.Ws.DEEPLINK_CHOICE)}catch{console.info("Unable to delete WalletConnect deep link")}},setAppKitRecent(e){try{let t=a.getRecentWallets();t.find(t=>t.id===e.id)||(t.unshift(e),t.length>2&&t.pop(),r.Ud.setItem(r.Ws.RECENT_WALLETS,JSON.stringify(t)))}catch{console.info("Unable to set AppKit recent")}},getRecentWallets(){try{let e=r.Ud.getItem(r.Ws.RECENT_WALLETS);return e?JSON.parse(e):[]}catch{console.info("Unable to get AppKit recent")}return[]},setConnectedConnector(e){try{r.Ud.setItem(r.Ws.CONNECTED_CONNECTOR,e)}catch{console.info("Unable to set Connected Connector")}},setConnectedNamespace(e){try{r.Ud.setItem(r.Ws.CONNECTED_NAMESPACE,e)}catch{console.info("Unable to set Connected Namespace")}},getConnectedConnector(){try{return r.Ud.getItem(r.Ws.CONNECTED_CONNECTOR)}catch{console.info("Unable to get Connected Connector")}},setConnectedSocialProvider(e){try{r.Ud.setItem(r.Ws.CONNECTED_SOCIAL,e)}catch{console.info("Unable to set Connected Social Provider")}},getConnectedSocialProvider(){try{return r.Ud.getItem(r.Ws.CONNECTED_SOCIAL)}catch{console.info("Unable to get Connected Social Provider")}},getConnectedSocialUsername(){try{return r.Ud.getItem(r.Ws.CONNECTED_SOCIAL_USERNAME)}catch{console.info("Unable to get Connected Social Username")}},getStoredActiveCaipNetwork(){let e=r.Ud.getItem(r.Ws.ACTIVE_CAIP_NETWORK_ID),t=n.W.getAllRequestedCaipNetworks();return t?.find(t=>t.caipNetworkId===e)},setConnectionStatus(e){try{r.Ud.setItem(r.Ws.CONNECTION_STATUS,e)}catch{console.info("Unable to set Connection Status")}},getConnectionStatus(){try{return r.Ud.getItem(r.Ws.CONNECTION_STATUS)}catch{return}}}},9592:(e,t,i)=>{"use strict";i.d(t,{s:()=>c});var r=i(35335),n=i(65411),a=i(48131),o=i(73322),s=i(94984);let c={async getTokenList(){let e=s.W.state.activeCaipNetwork,t=await n.T.fetchSwapTokens({chainId:e?.caipNetworkId,projectId:a.H.state.projectId});return t?.tokens?.map(e=>({...e,eip2612:!1,quantity:{decimals:"0",numeric:"0"},price:0,value:0}))||[]},async fetchGasPrice(){let e=a.H.state.projectId,t=s.W.state.activeCaipNetwork;if(!t)return null;try{if("solana"===t.chainNamespace){let e=(await r.x?.estimateGas({chainNamespace:"solana"}))?.toString();return{standard:e,fast:e,instant:e}}return await n.T.fetchGasPrice({projectId:e,chainId:t.caipNetworkId})}catch{return null}},async fetchSwapAllowance({tokenAddress:e,userAddress:t,sourceTokenAmount:i,sourceTokenDecimals:o}){let s=a.H.state.projectId,c=await n.T.fetchSwapAllowance({projectId:s,tokenAddress:e,userAddress:t});if(c?.allowance&&i&&o){let e=r.x.parseUnits(i,o)||0;return BigInt(c.allowance)>=e}return!1},async getMyTokensWithBalance(e){let t=o.U.state.address,i=s.W.state.activeCaipNetwork;if(!t||!i)return[];let r=(await n.T.getBalance(t,i.caipNetworkId,e)).balances.filter(e=>"0"!==e.quantity.decimals);return o.U.setTokenBalance(r,s.W.state.activeChain),this.mapBalancesToSwapTokens(r)},mapBalancesToSwapTokens:e=>e?.map(e=>({...e,address:e?.address?e.address:s.W.getActiveNetworkTokenAddress(),decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]}},15899:(e,t,i)=>{"use strict";var r=i(41562);"undefined"==typeof window||(window.Buffer||(window.Buffer=r.Buffer),window.global||(window.global=window),window.process||(window.process={}),window.process?.env||(window.process={env:{}}))},64810:(e,t,i)=>{"use strict";var r=i(57068),n=i(80196),a=i(16896),o=i(5419),s=i(92821),c=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};class l extends a.WF{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.caipAddress=n.WB.state.activeCaipAddress,this.balanceVal=n.Uj.state.balance,this.balanceSymbol=n.Uj.state.balanceSymbol,this.profileName=n.Uj.state.profileName,this.profileImage=n.Uj.state.profileImage,this.network=n.WB.state.activeCaipNetwork,this.networkImage=n.$m.getNetworkImage(this.network),this.isSupported=!0,this.unsubscribe.push(n.jQ.subscribeNetworkImages(()=>{this.networkImage=n.$m.getNetworkImage(this.network)}),n.WB.subscribeKey("activeCaipAddress",e=>{this.caipAddress=e}),n.Uj.subscribeKey("balance",e=>this.balanceVal=e),n.Uj.subscribeKey("balanceSymbol",e=>this.balanceSymbol=e),n.Uj.subscribeKey("profileName",e=>this.profileName=e),n.Uj.subscribeKey("profileImage",e=>this.profileImage=e),n.WB.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=n.$m.getNetworkImage(e),this.isSupported=!e?.chainNamespace||n.WB.checkIfSupportedNetwork(e?.chainNamespace)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!n.WB.state.activeChain)return null;let e="show"===this.balance;return(0,a.qy)`
  21. <wui-account-button
  22. .disabled=${!!this.disabled}
  23. .isUnsupportedChain=${!this.isSupported}
  24. address=${(0,s.J)(n.wE.getPlainAddress(this.caipAddress))}
  25. profileName=${(0,s.J)(this.profileName)}
  26. networkSrc=${(0,s.J)(this.networkImage)}
  27. avatarSrc=${(0,s.J)(this.profileImage)}
  28. balance=${e?n.wE.formatBalance(this.balanceVal,this.balanceSymbol):""}
  29. @click=${this.onClick.bind(this)}
  30. data-testid="account-button"
  31. .charsStart=${this.charsStart}
  32. .charsEnd=${this.charsEnd}
  33. >
  34. </wui-account-button>
  35. `}onClick(){this.isSupported?n.W3.open():n.W3.open({view:"UnsupportedChain"})}}c([(0,o.MZ)({type:Boolean})],l.prototype,"disabled",void 0),c([(0,o.MZ)()],l.prototype,"balance",void 0),c([(0,o.MZ)()],l.prototype,"charsStart",void 0),c([(0,o.MZ)()],l.prototype,"charsEnd",void 0),c([(0,o.wk)()],l.prototype,"caipAddress",void 0),c([(0,o.wk)()],l.prototype,"balanceVal",void 0),c([(0,o.wk)()],l.prototype,"balanceSymbol",void 0),c([(0,o.wk)()],l.prototype,"profileName",void 0),c([(0,o.wk)()],l.prototype,"profileImage",void 0),c([(0,o.wk)()],l.prototype,"network",void 0),c([(0,o.wk)()],l.prototype,"networkImage",void 0),c([(0,o.wk)()],l.prototype,"isSupported",void 0);let u=class extends l{};u=c([(0,r.customElement)("w3m-account-button")],u);let d=class extends l{};d=c([(0,r.customElement)("appkit-account-button")],d);let h=(0,a.AH)`
  36. :host {
  37. display: block;
  38. width: max-content;
  39. }
  40. `;var p=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};class f extends a.WF{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.caipAddress=n.WB.state.activeCaipAddress,this.isLoading=n.W3.state.loading}firstUpdated(){this.unsubscribe.push(n.WB.subscribeKey("activeCaipAddress",e=>this.caipAddress=e),n.W3.subscribeKey("loading",e=>this.isLoading=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.caipAddress&&!this.isLoading?(0,a.qy)`
  41. <appkit-account-button
  42. .disabled=${!!this.disabled}
  43. balance=${(0,s.J)(this.balance)}
  44. .charsStart=${(0,s.J)(this.charsStart)}
  45. .charsEnd=${(0,s.J)(this.charsEnd)}
  46. >
  47. </appkit-account-button>
  48. `:(0,a.qy)`
  49. <appkit-connect-button
  50. size=${(0,s.J)(this.size)}
  51. label=${(0,s.J)(this.label)}
  52. loadingLabel=${(0,s.J)(this.loadingLabel)}
  53. ></appkit-connect-button>
  54. `}}f.styles=h,p([(0,o.MZ)({type:Boolean})],f.prototype,"disabled",void 0),p([(0,o.MZ)()],f.prototype,"balance",void 0),p([(0,o.MZ)()],f.prototype,"size",void 0),p([(0,o.MZ)()],f.prototype,"label",void 0),p([(0,o.MZ)()],f.prototype,"loadingLabel",void 0),p([(0,o.MZ)()],f.prototype,"charsStart",void 0),p([(0,o.MZ)()],f.prototype,"charsEnd",void 0),p([(0,o.wk)()],f.prototype,"caipAddress",void 0),p([(0,o.wk)()],f.prototype,"isLoading",void 0);let g=class extends f{};g=p([(0,r.customElement)("w3m-button")],g);let w=class extends f{};w=p([(0,r.customElement)("appkit-button")],w);var m=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};class b extends a.WF{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=n.W3.state.open,this.loading=n.W3.state.loading,this.unsubscribe.push(n.W3.subscribe(e=>{this.open=e.open,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.loading||this.open;return(0,a.qy)`
  55. <wui-connect-button
  56. size=${(0,s.J)(this.size)}
  57. .loading=${e}
  58. @click=${this.onClick.bind(this)}
  59. data-testid="connect-button"
  60. >
  61. ${e?this.loadingLabel:this.label}
  62. </wui-connect-button>
  63. `}onClick(){this.open?n.W3.close():this.loading||n.W3.open()}}m([(0,o.MZ)()],b.prototype,"size",void 0),m([(0,o.MZ)()],b.prototype,"label",void 0),m([(0,o.MZ)()],b.prototype,"loadingLabel",void 0),m([(0,o.wk)()],b.prototype,"open",void 0),m([(0,o.wk)()],b.prototype,"loading",void 0);let v=class extends b{};v=m([(0,r.customElement)("w3m-connect-button")],v);let y=class extends b{};y=m([(0,r.customElement)("appkit-connect-button")],y);let x=(0,a.AH)`
  64. :host {
  65. display: block;
  66. width: max-content;
  67. }
  68. `;var C=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};class A extends a.WF{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.network=n.WB.state.activeCaipNetwork,this.networkImage=n.$m.getNetworkImage(this.network),this.caipAddress=n.WB.state.activeCaipAddress,this.loading=n.W3.state.loading,this.isSupported=!0,this.unsubscribe.push(n.jQ.subscribeNetworkImages(()=>{this.networkImage=n.$m.getNetworkImage(this.network)}),n.WB.subscribeKey("activeCaipAddress",e=>{this.caipAddress=e}),n.WB.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=n.$m.getNetworkImage(e),this.isSupported=!e?.chainNamespace||n.WB.checkIfSupportedNetwork(e.chainNamespace)}),n.W3.subscribeKey("loading",e=>this.loading=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=!this.network||n.WB.checkIfSupportedNetwork(this.network.chainNamespace);return(0,a.qy)`
  69. <wui-network-button
  70. .disabled=${!!(this.disabled||this.loading)}
  71. .isUnsupportedChain=${!e}
  72. imageSrc=${(0,s.J)(this.networkImage)}
  73. @click=${this.onClick.bind(this)}
  74. >
  75. ${this.getLabel()}
  76. <slot></slot>
  77. </wui-network-button>
  78. `}getLabel(){return this.network?this.isSupported?this.network.name:"Switch Network":this.label?this.label:this.caipAddress?"Unknown Network":"Select Network"}onClick(){this.loading||(n.En.sendEvent({type:"track",event:"CLICK_NETWORKS"}),n.W3.open({view:"Networks"}))}}A.styles=x,C([(0,o.MZ)({type:Boolean})],A.prototype,"disabled",void 0),C([(0,o.MZ)({type:String})],A.prototype,"label",void 0),C([(0,o.wk)()],A.prototype,"network",void 0),C([(0,o.wk)()],A.prototype,"networkImage",void 0),C([(0,o.wk)()],A.prototype,"caipAddress",void 0),C([(0,o.wk)()],A.prototype,"loading",void 0),C([(0,o.wk)()],A.prototype,"isSupported",void 0);let E=class extends A{};E=C([(0,r.customElement)("w3m-network-button")],E);let _=class extends A{};_=C([(0,r.customElement)("appkit-network-button")],_);let k=(0,a.AH)`
  79. :host {
  80. --prev-height: 0px;
  81. --new-height: 0px;
  82. display: block;
  83. }
  84. div.w3m-router-container {
  85. transform: translateY(0);
  86. opacity: 1;
  87. }
  88. div.w3m-router-container[view-direction='prev'] {
  89. animation:
  90. slide-left-out 150ms forwards ease,
  91. slide-left-in 150ms forwards ease;
  92. animation-delay: 0ms, 200ms;
  93. }
  94. div.w3m-router-container[view-direction='next'] {
  95. animation:
  96. slide-right-out 150ms forwards ease,
  97. slide-right-in 150ms forwards ease;
  98. animation-delay: 0ms, 200ms;
  99. }
  100. @keyframes slide-left-out {
  101. from {
  102. transform: translateX(0px);
  103. opacity: 1;
  104. }
  105. to {
  106. transform: translateX(10px);
  107. opacity: 0;
  108. }
  109. }
  110. @keyframes slide-left-in {
  111. from {
  112. transform: translateX(-10px);
  113. opacity: 0;
  114. }
  115. to {
  116. transform: translateX(0);
  117. opacity: 1;
  118. }
  119. }
  120. @keyframes slide-right-out {
  121. from {
  122. transform: translateX(0px);
  123. opacity: 1;
  124. }
  125. to {
  126. transform: translateX(-10px);
  127. opacity: 0;
  128. }
  129. }
  130. @keyframes slide-right-in {
  131. from {
  132. transform: translateX(10px);
  133. opacity: 0;
  134. }
  135. to {
  136. transform: translateX(0);
  137. opacity: 1;
  138. }
  139. }
  140. `,I={ACCOUNT_TABS:[{label:"Tokens"},{label:"NFTs"},{label:"Activity"}],SECURE_SITE_ORIGIN:i(18596).env.NEXT_PUBLIC_SECURE_SITE_ORIGIN||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150}};var S=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let T=class extends a.WF{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=n.IN.state.view,this.viewDirection="",this.unsubscribe.push(n.IN.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",t),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=t,this.style.animation="unset"},I.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`<div class="w3m-router-container" view-direction="${this.viewDirection}">
  141. ${this.viewTemplate()}
  142. </div>`}viewTemplate(){switch(this.view){case"AccountSettings":return(0,a.qy)`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return(0,a.qy)`<w3m-account-view></w3m-account-view>`;case"AllWallets":return(0,a.qy)`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return(0,a.qy)`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return(0,a.qy)`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return(0,a.qy)`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return(0,a.qy)`<w3m-connect-view></w3m-connect-view>`;case"Create":return(0,a.qy)`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;case"ConnectingWalletConnect":return(0,a.qy)`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingExternal":return(0,a.qy)`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return(0,a.qy)`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return(0,a.qy)`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return(0,a.qy)`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return(0,a.qy)`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return(0,a.qy)`<w3m-downloads-view></w3m-downloads-view>`;case"EmailVerifyOtp":return(0,a.qy)`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return(0,a.qy)`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return(0,a.qy)`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return(0,a.qy)`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return(0,a.qy)`<w3m-network-switch-view></w3m-network-switch-view>`;case"Profile":return(0,a.qy)`<w3m-profile-view></w3m-profile-view>`;case"SwitchAddress":return(0,a.qy)`<w3m-switch-address-view></w3m-switch-address-view>`;case"Transactions":return(0,a.qy)`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return(0,a.qy)`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return(0,a.qy)`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return(0,a.qy)`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return(0,a.qy)`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return(0,a.qy)`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpgradeToSmartAccount":return(0,a.qy)`<w3m-upgrade-to-smart-account-view></w3m-upgrade-to-smart-account-view>`;case"UpdateEmailWallet":return(0,a.qy)`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return(0,a.qy)`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return(0,a.qy)`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return(0,a.qy)`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return(0,a.qy)`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return(0,a.qy)`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return(0,a.qy)`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return(0,a.qy)`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return(0,a.qy)`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return(0,a.qy)`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return(0,a.qy)`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return(0,a.qy)`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return(0,a.qy)`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return(0,a.qy)`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"ConnectingMultiChain":return(0,a.qy)`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case"WhatIsANetwork":return(0,a.qy)`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return(0,a.qy)`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"SwitchActiveChain":return(0,a.qy)`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case"RegisterAccountName":return(0,a.qy)`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return(0,a.qy)`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case"SmartSessionCreated":return(0,a.qy)`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;case"SmartSessionList":return(0,a.qy)`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;case"SIWXSignMessage":return(0,a.qy)`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`}}onViewChange(e){n.Ib.hide();let t=I.VIEW_DIRECTION.Next,{history:i}=n.IN.state;i.length<this.prevHistoryLength&&(t=I.VIEW_DIRECTION.Prev),this.prevHistoryLength=i.length,this.viewDirection=t,setTimeout(()=>{this.view=e},I.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector("div")}};T.styles=k,S([(0,o.wk)()],T.prototype,"view",void 0),S([(0,o.wk)()],T.prototype,"viewDirection",void 0),T=S([(0,r.customElement)("w3m-router")],T);let N=(0,a.AH)`
  143. :host > wui-flex {
  144. width: 100%;
  145. max-width: 360px;
  146. }
  147. :host > wui-flex > wui-flex {
  148. border-radius: var(--wui-border-radius-l);
  149. width: 100%;
  150. }
  151. .amounts-container {
  152. width: 100%;
  153. }
  154. `;var P=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let R={USD:"$",EUR:"€",GBP:"\xa3"},O=[100,250,500,1e3],M=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.caipAddress=n.WB.state.activeCaipAddress,this.loading=n.W3.state.loading,this.paymentCurrency=n.aG.state.paymentCurrency,this.paymentAmount=n.aG.state.paymentAmount,this.purchaseAmount=n.aG.state.purchaseAmount,this.quoteLoading=n.aG.state.quotesLoading,this.unsubscribe.push(n.WB.subscribeKey("activeCaipAddress",e=>this.caipAddress=e),n.W3.subscribeKey("loading",e=>{this.loading=e}),n.aG.subscribe(e=>{this.paymentCurrency=e.paymentCurrency,this.paymentAmount=e.paymentAmount,this.purchaseAmount=e.purchaseAmount,this.quoteLoading=e.quotesLoading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`
  155. <wui-flex flexDirection="column" justifyContent="center" alignItems="center">
  156. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  157. <w3m-onramp-input
  158. type="Fiat"
  159. @inputChange=${this.onPaymentAmountChange.bind(this)}
  160. .value=${this.paymentAmount||0}
  161. ></w3m-onramp-input>
  162. <w3m-onramp-input
  163. type="Token"
  164. .value=${this.purchaseAmount||0}
  165. .loading=${this.quoteLoading}
  166. ></w3m-onramp-input>
  167. <wui-flex justifyContent="space-evenly" class="amounts-container" gap="xs">
  168. ${O.map(e=>(0,a.qy)`<wui-button
  169. variant=${this.paymentAmount===e?"accent":"neutral"}
  170. size="md"
  171. textVariant="paragraph-600"
  172. fullWidth
  173. @click=${()=>this.selectPresetAmount(e)}
  174. >${`${R[this.paymentCurrency?.id||"USD"]} ${e}`}</wui-button
  175. >`)}
  176. </wui-flex>
  177. ${this.templateButton()}
  178. </wui-flex>
  179. </wui-flex>
  180. `}templateButton(){return this.caipAddress?(0,a.qy)`<wui-button
  181. @click=${this.getQuotes.bind(this)}
  182. variant="main"
  183. fullWidth
  184. size="lg"
  185. borderRadius="xs"
  186. >
  187. Get quotes
  188. </wui-button>`:(0,a.qy)`<wui-button
  189. @click=${this.openModal.bind(this)}
  190. variant="accent"
  191. fullWidth
  192. size="lg"
  193. borderRadius="xs"
  194. >
  195. Connect wallet
  196. </wui-button>`}getQuotes(){this.loading||n.W3.open({view:"OnRampProviders"})}openModal(){n.W3.open({view:"Connect"})}async onPaymentAmountChange(e){n.aG.setPaymentAmount(Number(e.detail)),await n.aG.getQuote()}async selectPresetAmount(e){n.aG.setPaymentAmount(e),await n.aG.getQuote()}};M.styles=N,P([(0,o.MZ)({type:Boolean})],M.prototype,"disabled",void 0),P([(0,o.wk)()],M.prototype,"caipAddress",void 0),P([(0,o.wk)()],M.prototype,"loading",void 0),P([(0,o.wk)()],M.prototype,"paymentCurrency",void 0),P([(0,o.wk)()],M.prototype,"paymentAmount",void 0),P([(0,o.wk)()],M.prototype,"purchaseAmount",void 0),P([(0,o.wk)()],M.prototype,"quoteLoading",void 0),M=P([(0,r.customElement)("w3m-onramp-widget")],M);var D=i(45011),U=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let $=class extends a.WF{constructor(){super(),this.usubscribe=[],this.networkImages=n.jQ.state.networkImages,this.address=n.Uj.state.address,this.profileImage=n.Uj.state.profileImage,this.profileName=n.Uj.state.profileName,this.network=n.WB.state.activeCaipNetwork,this.preferredAccountType=n.Uj.state.preferredAccountType,this.disconnecting=!1,this.loading=!1,this.switched=!1,this.text="",this.usubscribe.push(n.Uj.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):n.W3.close()}),n.Uj.subscribeKey("preferredAccountType",e=>this.preferredAccountType=e),n.WB.subscribeKey("activeCaipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-settings-view: No account provided");let e=this.networkImages[this.network?.assets?.imageId??""];return(0,a.qy)`
  197. <wui-flex
  198. flexDirection="column"
  199. alignItems="center"
  200. gap="l"
  201. .padding=${["0","xl","m","xl"]}
  202. >
  203. <wui-avatar
  204. alt=${this.address}
  205. address=${this.address}
  206. imageSrc=${(0,s.J)(this.profileImage)}
  207. size="2lg"
  208. ></wui-avatar>
  209. <wui-flex flexDirection="column" alignItems="center">
  210. <wui-flex gap="3xs" alignItems="center" justifyContent="center">
  211. <wui-text variant="title-6-600" color="fg-100" data-testid="account-settings-address">
  212. ${r.UiHelperUtil.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})}
  213. </wui-text>
  214. <wui-icon-link
  215. size="md"
  216. icon="copy"
  217. iconColor="fg-200"
  218. @click=${this.onCopyAddress}
  219. ></wui-icon-link>
  220. </wui-flex>
  221. </wui-flex>
  222. </wui-flex>
  223. <wui-flex flexDirection="column" gap="m">
  224. <wui-flex flexDirection="column" gap="xs" .padding=${["0","l","m","l"]}>
  225. ${this.authCardTemplate()}
  226. <w3m-account-auth-button></w3m-account-auth-button>
  227. <wui-list-item
  228. .variant=${e?"image":"icon"}
  229. iconVariant="overlay"
  230. icon="networkPlaceholder"
  231. imageSrc=${(0,s.J)(e)}
  232. ?chevron=${this.isAllowedNetworkSwitch()}
  233. @click=${this.onNetworks.bind(this)}
  234. data-testid="account-switch-network-button"
  235. >
  236. <wui-text variant="paragraph-500" color="fg-100">
  237. ${this.network?.name??"Unknown"}
  238. </wui-text>
  239. </wui-list-item>
  240. ${this.togglePreferredAccountBtnTemplate()} ${this.chooseNameButtonTemplate()}
  241. <wui-list-item
  242. variant="icon"
  243. iconVariant="overlay"
  244. icon="disconnect"
  245. ?chevron=${!1}
  246. .loading=${this.disconnecting}
  247. @click=${this.onDisconnect.bind(this)}
  248. data-testid="disconnect-button"
  249. >
  250. <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text>
  251. </wui-list-item>
  252. </wui-flex>
  253. </wui-flex>
  254. `}chooseNameButtonTemplate(){let e=n.iT.getConnectedConnector(),t=n.aK.getAuthConnector();return n.WB.checkIfNamesSupported()&&t&&"ID_AUTH"===e&&!this.profileName?(0,a.qy)`
  255. <wui-list-item
  256. variant="icon"
  257. iconVariant="overlay"
  258. icon="id"
  259. iconSize="sm"
  260. ?chevron=${!0}
  261. @click=${this.onChooseName.bind(this)}
  262. data-testid="account-choose-name-button"
  263. >
  264. <wui-text variant="paragraph-500" color="fg-100">Choose account name </wui-text>
  265. </wui-list-item>
  266. `:null}authCardTemplate(){let e=n.iT.getConnectedConnector(),t=n.aK.getAuthConnector(),{origin:i}=location;return!t||"ID_AUTH"!==e||i.includes(n.oU.SECURE_SITE)?null:(0,a.qy)`
  267. <wui-notice-card
  268. @click=${this.onGoToUpgradeView.bind(this)}
  269. label="Upgrade your wallet"
  270. description="Transition to a self-custodial wallet"
  271. icon="wallet"
  272. data-testid="w3m-wallet-upgrade-card"
  273. ></wui-notice-card>
  274. `}isAllowedNetworkSwitch(){let e=n.WB.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,i=e?.find(({id:e})=>e===this.network?.id);return t||!i}onCopyAddress(){try{this.address&&(n.wE.copyToClopboard(this.address),n.Pt.showSuccess("Address copied"))}catch{n.Pt.showError("Failed to copy")}}togglePreferredAccountBtnTemplate(){let e=n.WB.checkIfSmartAccountEnabled(),t=n.iT.getConnectedConnector();return n.aK.getAuthConnector()&&"ID_AUTH"===t&&e?(this.switched||(this.text=this.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account"),(0,a.qy)`
  275. <wui-list-item
  276. variant="icon"
  277. iconVariant="overlay"
  278. icon="swapHorizontalBold"
  279. iconSize="sm"
  280. ?chevron=${!0}
  281. ?loading=${this.loading}
  282. @click=${this.changePreferredAccountType.bind(this)}
  283. data-testid="account-toggle-preferred-account-type"
  284. >
  285. <wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text>
  286. </wui-list-item>
  287. `):null}onChooseName(){n.IN.push("ChooseAccountName")}async changePreferredAccountType(){let e=n.WB.checkIfSmartAccountEnabled(),t=this.preferredAccountType!==D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT&&e?D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT:D.Vl.ACCOUNT_TYPES.EOA;n.aK.getAuthConnector()&&(this.loading=!0,await n.x4.setPreferredAccountType(t),this.text=t===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account",this.switched=!0,n.Rv.resetSend(),this.loading=!1,this.requestUpdate())}onNetworks(){this.isAllowedNetworkSwitch()&&n.IN.push("Networks")}async onDisconnect(){try{this.disconnecting=!0,await n.x4.disconnect(),n.En.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),n.W3.close()}catch{n.En.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),n.Pt.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onGoToUpgradeView(){n.En.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),n.IN.push("UpgradeEmailWallet")}};U([(0,o.wk)()],$.prototype,"address",void 0),U([(0,o.wk)()],$.prototype,"profileImage",void 0),U([(0,o.wk)()],$.prototype,"profileName",void 0),U([(0,o.wk)()],$.prototype,"network",void 0),U([(0,o.wk)()],$.prototype,"preferredAccountType",void 0),U([(0,o.wk)()],$.prototype,"disconnecting",void 0),U([(0,o.wk)()],$.prototype,"loading",void 0),U([(0,o.wk)()],$.prototype,"switched",void 0),U([(0,o.wk)()],$.prototype,"text",void 0),$=U([(0,r.customElement)("w3m-account-settings-view")],$);let L=class extends a.WF{render(){let e=n.iT.getConnectedConnector(),t=n.aK.getAuthConnector();return(0,a.qy)`
  288. ${t&&"ID_AUTH"===e?this.walletFeaturesTemplate():this.defaultTemplate()}
  289. `}walletFeaturesTemplate(){return(0,a.qy)`<w3m-account-wallet-features-widget></w3m-account-wallet-features-widget>`}defaultTemplate(){return(0,a.qy)`<w3m-account-default-widget></w3m-account-default-widget>`}};L=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-account-view")],L);var j=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let B=class extends a.WF{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=n.wE.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return(0,a.qy)`
  290. <wui-flex .padding=${["0","s","s","s"]} gap="xs">
  291. <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
  292. <wui-certified-switch
  293. ?checked=${this.badge}
  294. @click=${this.onClick.bind(this)}
  295. data-testid="wui-certified-switch"
  296. ></wui-certified-switch>
  297. ${this.qrButtonTemplate()}
  298. </wui-flex>
  299. ${e||this.badge?(0,a.qy)`<w3m-all-wallets-search
  300. query=${this.search}
  301. badge=${(0,s.J)(this.badge)}
  302. ></w3m-all-wallets-search>`:(0,a.qy)`<w3m-all-wallets-list badge=${(0,s.J)(this.badge)}></w3m-all-wallets-list>`}
  303. `}onInputChange(e){this.onDebouncedSearch(e.detail)}onClick(){if("certified"===this.badge){this.badge=void 0;return}this.badge="certified",n.Pt.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})}qrButtonTemplate(){return n.wE.isMobile()?(0,a.qy)`
  304. <wui-icon-box
  305. size="lg"
  306. iconSize="xl"
  307. iconColor="accent-100"
  308. backgroundColor="accent-100"
  309. icon="qrCode"
  310. background="transparent"
  311. border
  312. borderColor="wui-accent-glass-010"
  313. @click=${this.onWalletConnectQr.bind(this)}
  314. ></wui-icon-box>
  315. `:null}onWalletConnectQr(){n.IN.push("ConnectingWalletConnect")}};j([(0,o.wk)()],B.prototype,"search",void 0),j([(0,o.wk)()],B.prototype,"badge",void 0),B=j([(0,r.customElement)("w3m-all-wallets-view")],B);let W=(0,a.AH)`
  316. @keyframes shake {
  317. 0% {
  318. transform: translateX(0);
  319. }
  320. 25% {
  321. transform: translateX(3px);
  322. }
  323. 50% {
  324. transform: translateX(-3px);
  325. }
  326. 75% {
  327. transform: translateX(3px);
  328. }
  329. 100% {
  330. transform: translateX(0);
  331. }
  332. }
  333. wui-flex:first-child:not(:only-child) {
  334. position: relative;
  335. }
  336. wui-loading-thumbnail {
  337. position: absolute;
  338. }
  339. wui-visual {
  340. width: var(--wui-wallet-image-size-lg);
  341. height: var(--wui-wallet-image-size-lg);
  342. border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
  343. position: relative;
  344. overflow: hidden;
  345. }
  346. wui-visual::after {
  347. content: '';
  348. display: block;
  349. width: 100%;
  350. height: 100%;
  351. position: absolute;
  352. inset: 0;
  353. border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
  354. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  355. }
  356. wui-icon-box {
  357. position: absolute;
  358. right: calc(var(--wui-spacing-3xs) * -1);
  359. bottom: calc(var(--wui-spacing-3xs) * -1);
  360. opacity: 0;
  361. transform: scale(0.5);
  362. transition:
  363. opacity var(--wui-ease-out-power-2) var(--wui-duration-lg),
  364. transform var(--wui-ease-out-power-2) var(--wui-duration-lg);
  365. will-change: opacity, transform;
  366. }
  367. wui-text[align='center'] {
  368. width: 100%;
  369. padding: 0px var(--wui-spacing-l);
  370. }
  371. [data-error='true'] wui-icon-box {
  372. opacity: 1;
  373. transform: scale(1);
  374. }
  375. [data-error='true'] > wui-flex:first-child {
  376. animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  377. }
  378. [data-retry='false'] wui-link {
  379. display: none;
  380. }
  381. [data-retry='true'] wui-link {
  382. display: block;
  383. opacity: 1;
  384. }
  385. wui-link {
  386. padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
  387. }
  388. `;var q=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let H=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=n.aG.state.selectedProvider,this.uri=n.x4.state.wcUri,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.error=!1,this.startTime=null,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(n.aG.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e})),this.watchTransactions()}disconnectedCallback(){this.intervalId&&clearInterval(this.intervalId)}render(){let e="Continue in external window";this.error?e="Buy failed":this.selectedOnRampProvider&&(e=`Buy in ${this.selectedOnRampProvider?.label}`);let t=this.error?"Buy can be declined from your side or due to and error on the provider app":`We’ll notify you once your Buy is processed`;return(0,a.qy)`
  389. <wui-flex
  390. data-error=${(0,s.J)(this.error)}
  391. data-retry=${this.showRetry}
  392. flexDirection="column"
  393. alignItems="center"
  394. .padding=${["3xl","xl","xl","xl"]}
  395. gap="xl"
  396. >
  397. <wui-flex justifyContent="center" alignItems="center">
  398. <wui-visual
  399. name=${(0,s.J)(this.selectedOnRampProvider?.name)}
  400. size="lg"
  401. class="provider-image"
  402. >
  403. </wui-visual>
  404. ${this.error?null:this.loaderTemplate()}
  405. <wui-icon-box
  406. backgroundColor="error-100"
  407. background="opaque"
  408. iconColor="error-100"
  409. icon="close"
  410. size="sm"
  411. border
  412. borderColor="wui-color-bg-125"
  413. ></wui-icon-box>
  414. </wui-flex>
  415. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  416. <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}>
  417. ${e}
  418. </wui-text>
  419. <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text>
  420. </wui-flex>
  421. ${this.error?this.tryAgainTemplate():null}
  422. </wui-flex>
  423. <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
  424. <wui-link @click=${this.onCopyUri} color="fg-200">
  425. <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
  426. Copy link
  427. </wui-link>
  428. </wui-flex>
  429. `}watchTransactions(){this.selectedOnRampProvider&&"coinbase"===this.selectedOnRampProvider.name&&(this.startTime=Date.now(),this.initializeCoinbaseTransactions())}async initializeCoinbaseTransactions(){await this.watchCoinbaseTransactions(),this.intervalId=setInterval(()=>this.watchCoinbaseTransactions(),4e3)}async watchCoinbaseTransactions(){try{let e=n.Uj.state.address,t=n.Hd.state.projectId;if(!e)throw Error("No address found");(await n.TP.fetchTransactions({account:e,onramp:"coinbase",projectId:t})).data.filter(e=>new Date(e.metadata.minedAt)>new Date(this.startTime)||"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length?(clearInterval(this.intervalId),n.IN.replace("OnRampActivity")):this.startTime&&Date.now()-this.startTime>=18e4&&(clearInterval(this.intervalId),this.error=!0)}catch(e){n.Pt.showError(e)}}onTryAgain(){this.selectedOnRampProvider&&(this.error=!1,n.wE.openHref(this.selectedOnRampProvider.url,"popupWindow","width=600,height=800,scrollbars=yes"))}tryAgainTemplate(){return this.selectedOnRampProvider?.url?(0,a.qy)`<wui-button size="md" variant="accent" @click=${this.onTryAgain.bind(this)}>
  430. <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
  431. Try again
  432. </wui-button>`:null}loaderTemplate(){let e=n.Wn.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.qy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){if(!this.selectedOnRampProvider?.url){n.Pt.showError("No link found"),n.IN.goBack();return}try{n.wE.copyToClopboard(this.selectedOnRampProvider.url),n.Pt.showSuccess("Link copied")}catch{n.Pt.showError("Failed to copy")}}};H.styles=W,q([(0,o.wk)()],H.prototype,"intervalId",void 0),q([(0,o.wk)()],H.prototype,"selectedOnRampProvider",void 0),q([(0,o.wk)()],H.prototype,"uri",void 0),q([(0,o.wk)()],H.prototype,"ready",void 0),q([(0,o.wk)()],H.prototype,"showRetry",void 0),q([(0,o.wk)()],H.prototype,"buffering",void 0),q([(0,o.wk)()],H.prototype,"error",void 0),q([(0,o.wk)()],H.prototype,"startTime",void 0),q([(0,o.MZ)({type:Boolean})],H.prototype,"isMobile",void 0),q([(0,o.MZ)()],H.prototype,"onRetry",void 0),H=q([(0,r.customElement)("w3m-buy-in-progress-view")],H);let z=(0,a.AH)`
  433. :host {
  434. --connect-scroll--top-opacity: 0;
  435. --connect-scroll--bottom-opacity: 0;
  436. }
  437. .connect {
  438. max-height: clamp(360px, 470px, 80vh);
  439. scrollbar-width: none;
  440. overflow-y: scroll;
  441. overflow-x: hidden;
  442. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  443. will-change: opacity;
  444. mask-image: linear-gradient(
  445. to bottom,
  446. rgba(0, 0, 0, calc(1 - var(--connect-scroll--top-opacity))) 0px,
  447. rgba(200, 200, 200, calc(1 - var(--connect-scroll--top-opacity))) 1px,
  448. black 40px,
  449. black calc(100% - 40px),
  450. rgba(155, 155, 155, calc(1 - var(--connect-scroll--bottom-opacity))) calc(100% - 1px),
  451. rgba(0, 0, 0, calc(1 - var(--connect-scroll--bottom-opacity))) 100%
  452. );
  453. }
  454. .guide {
  455. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  456. will-change: opacity;
  457. }
  458. .connect::-webkit-scrollbar {
  459. display: none;
  460. }
  461. .all-wallets {
  462. flex-flow: column;
  463. }
  464. .connect.disabled,
  465. .guide.disabled {
  466. opacity: 0.3;
  467. pointer-events: none;
  468. user-select: none;
  469. }
  470. `;var F=i(37857),Z=i(60037),V=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let K=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.connectors=n.aK.state.connectors,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.features=n.Hd.state.features,this.walletGuide="get-started",this.checked=!1,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(e=>"AUTH"===e.type)}),n.Hd.subscribeKey("features",e=>this.features=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e());let e=this.shadowRoot?.querySelector(".connect");e?.removeEventListener("scroll",this.handleConnectListScroll.bind(this))}firstUpdated(){let e=this.shadowRoot?.querySelector(".connect");requestAnimationFrame(this.handleConnectListScroll.bind(this)),e?.addEventListener("scroll",this.handleConnectListScroll.bind(this))}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox,r=!!(e||t)&&!!i&&"get-started"===this.walletGuide&&!this.checked,o=this.features?.socials,c=n.Hd.state.enableWallets,l=o&&o.length||this.authConnector,u=r?-1:void 0;return(0,a.qy)`
  471. <wui-flex flexDirection="column">
  472. ${this.legalCheckboxTemplate()}
  473. <wui-flex flexDirection="column" class=${(0,Z.H)({connect:!0,disabled:r})}>
  474. <wui-flex
  475. flexDirection="column"
  476. .padding=${l&&c&&"get-started"===this.walletGuide?["3xs","s","0","s"]:["3xs","s","s","s"]}
  477. >
  478. <w3m-email-login-widget
  479. walletGuide=${this.walletGuide}
  480. tabIdx=${(0,s.J)(u)}
  481. ></w3m-email-login-widget>
  482. <w3m-social-login-widget tabIdx=${(0,s.J)(u)}></w3m-social-login-widget>
  483. ${this.walletListTemplate(u)}
  484. </wui-flex>
  485. </wui-flex>
  486. ${this.guideTemplate(r)}
  487. <w3m-legal-footer></w3m-legal-footer>
  488. </wui-flex>
  489. `}walletListTemplate(e){let t=this.features?.socials,i=this.features?.emailShowWallets;return n.Hd.state.enableWallets&&(n.wE.isTelegram()&&n.wE.isIos()&&n.x4.connectWalletConnect().catch(e=>({})),"explore"!==this.walletGuide)?this.authConnector&&t?this.authConnector&&i?(0,a.qy)`
  490. <wui-flex flexDirection="column" gap="xs" .margin=${["xs","0","0","0"]}>
  491. <w3m-connector-list tabIdx=${(0,s.J)(e)}></w3m-connector-list>
  492. <wui-flex class="all-wallets">
  493. <w3m-all-wallets-widget tabIdx=${(0,s.J)(e)}></w3m-all-wallets-widget>
  494. </wui-flex>
  495. </wui-flex>
  496. `:(0,a.qy)`<wui-list-button
  497. tabIdx=${(0,s.J)(e)}
  498. @click=${this.onContinueWalletClick.bind(this)}
  499. text="Continue with a wallet"
  500. ></wui-list-button>`:(0,a.qy)`<w3m-wallet-login-list tabIdx=${(0,s.J)(e)}></w3m-wallet-login-list>`:null}guideTemplate(e=!1){let t=this.features?.socials,i=n.Hd.state.enableWallets,r=t&&t.length,o={guide:!0,disabled:e};return(this.authConnector||r)&&i?"explore"===this.walletGuide?(0,a.qy)`
  501. <wui-flex
  502. flexDirection="column"
  503. .padding=${["0","0","xl","0"]}
  504. class=${(0,Z.H)(o)}
  505. >
  506. <w3m-wallet-guide walletGuide=${this.walletGuide}></w3m-wallet-guide>
  507. </wui-flex>
  508. `:(0,a.qy)`
  509. <wui-flex
  510. flexDirection="column"
  511. .padding=${["xl","0","xl","0"]}
  512. class=${(0,Z.H)(o)}
  513. >
  514. <w3m-wallet-guide
  515. tabIdx=${(0,s.J)(e?-1:void 0)}
  516. walletGuide=${this.walletGuide}
  517. ></w3m-wallet-guide>
  518. </wui-flex>
  519. `:null}legalCheckboxTemplate(){return"explore"===this.walletGuide?null:(0,a.qy)`<w3m-legal-checkbox
  520. @checkboxChange=${this.onCheckboxChange.bind(this)}
  521. data-testid="w3m-legal-checkbox"
  522. ></w3m-legal-checkbox>`}handleConnectListScroll(){let e=this.shadowRoot?.querySelector(".connect");e&&!(e.scrollHeight<=470)&&(e.style.setProperty("--connect-scroll--top-opacity",r.MathUtil.interpolate([0,50],[0,1],e.scrollTop).toString()),e.style.setProperty("--connect-scroll--bottom-opacity",r.MathUtil.interpolate([0,50],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString()))}onContinueWalletClick(){n.IN.push("ConnectWallets")}onCheckboxChange(e){this.checked=!!e.detail}};K.styles=z,V([(0,F.w)()],K.prototype,"connectors",void 0),V([(0,F.w)()],K.prototype,"authConnector",void 0),V([(0,F.w)()],K.prototype,"features",void 0),V([(0,o.MZ)()],K.prototype,"walletGuide",void 0),V([(0,F.w)()],K.prototype,"checked",void 0),K=V([(0,r.customElement)("w3m-connect-view")],K);var G=i(60402);let J=(0,a.AH)`
  523. @keyframes shake {
  524. 0% {
  525. transform: translateX(0);
  526. }
  527. 25% {
  528. transform: translateX(3px);
  529. }
  530. 50% {
  531. transform: translateX(-3px);
  532. }
  533. 75% {
  534. transform: translateX(3px);
  535. }
  536. 100% {
  537. transform: translateX(0);
  538. }
  539. }
  540. wui-flex:first-child:not(:only-child) {
  541. position: relative;
  542. }
  543. wui-loading-thumbnail {
  544. position: absolute;
  545. }
  546. wui-icon-box {
  547. position: absolute;
  548. right: calc(var(--wui-spacing-3xs) * -1);
  549. bottom: calc(var(--wui-spacing-3xs) * -1);
  550. opacity: 0;
  551. transform: scale(0.5);
  552. transition-property: opacity, transform;
  553. transition-duration: var(--wui-duration-lg);
  554. transition-timing-function: var(--wui-ease-out-power-2);
  555. will-change: opacity, transform;
  556. }
  557. wui-text[align='center'] {
  558. width: 100%;
  559. padding: 0px var(--wui-spacing-l);
  560. }
  561. [data-error='true'] wui-icon-box {
  562. opacity: 1;
  563. transform: scale(1);
  564. }
  565. [data-error='true'] > wui-flex:first-child {
  566. animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  567. }
  568. [data-retry='false'] wui-link {
  569. display: none;
  570. }
  571. [data-retry='true'] wui-link {
  572. display: block;
  573. opacity: 1;
  574. }
  575. `;var Y=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};class Q extends a.WF{constructor(){super(),this.wallet=n.IN.state.data?.wallet,this.connector=n.IN.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=n.$m.getWalletImage(this.wallet)??n.$m.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=n.x4.state.wcUri,this.error=n.x4.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(n.x4.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),n.x4.subscribeKey("wcError",e=>this.error=e),n.x4.subscribeKey("buffering",e=>this.buffering=e)),n.wE.isTelegram()&&n.wE.isIos()&&n.x4.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();let e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel,t=`Continue in ${this.name}`;return this.buffering&&(t="Connecting..."),this.error&&(t="Connection declined"),(0,a.qy)`
  576. <wui-flex
  577. data-error=${(0,s.J)(this.error)}
  578. data-retry=${this.showRetry}
  579. flexDirection="column"
  580. alignItems="center"
  581. .padding=${["3xl","xl","xl","xl"]}
  582. gap="xl"
  583. >
  584. <wui-flex justifyContent="center" alignItems="center">
  585. <wui-wallet-image size="lg" imageSrc=${(0,s.J)(this.imageSrc)}></wui-wallet-image>
  586. ${this.error?null:this.loaderTemplate()}
  587. <wui-icon-box
  588. backgroundColor="error-100"
  589. background="opaque"
  590. iconColor="error-100"
  591. icon="close"
  592. size="sm"
  593. border
  594. borderColor="wui-color-bg-125"
  595. ></wui-icon-box>
  596. </wui-flex>
  597. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  598. <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}>
  599. ${t}
  600. </wui-text>
  601. <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text>
  602. </wui-flex>
  603. ${this.secondaryBtnLabel?(0,a.qy)`
  604. <wui-button
  605. variant="accent"
  606. size="md"
  607. ?disabled=${this.isRetrying||!this.error&&this.buffering}
  608. @click=${this.onTryAgain.bind(this)}
  609. data-testid="w3m-connecting-widget-secondary-button"
  610. >
  611. <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon>
  612. ${this.secondaryBtnLabel}
  613. </wui-button>
  614. `:null}
  615. </wui-flex>
  616. ${this.isWalletConnect?(0,a.qy)`
  617. <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
  618. <wui-link @click=${this.onCopyUri} color="fg-200" data-testid="wui-link-copy">
  619. <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
  620. Copy link
  621. </wui-link>
  622. </wui-flex>
  623. `:null}
  624. <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
  625. `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(n.x4.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){let e=n.Wn.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.qy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(n.wE.copyToClopboard(this.uri),n.Pt.showSuccess("Link copied"))}catch{n.Pt.showError("Failed to copy")}}}Q.styles=J,Y([(0,o.wk)()],Q.prototype,"isRetrying",void 0),Y([(0,o.wk)()],Q.prototype,"uri",void 0),Y([(0,o.wk)()],Q.prototype,"error",void 0),Y([(0,o.wk)()],Q.prototype,"ready",void 0),Y([(0,o.wk)()],Q.prototype,"showRetry",void 0),Y([(0,o.wk)()],Q.prototype,"secondaryBtnLabel",void 0),Y([(0,o.wk)()],Q.prototype,"secondaryLabel",void 0),Y([(0,o.wk)()],Q.prototype,"buffering",void 0),Y([(0,o.MZ)({type:Boolean})],Q.prototype,"isMobile",void 0),Y([(0,o.MZ)()],Q.prototype,"onRetry",void 0);let X=class extends Q{constructor(){if(super(),this.externalViewUnsubscribe=[],!this.connector)throw Error("w3m-connecting-view: No connector provided");n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:"browser"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1,this.externalViewUnsubscribe.push(n.WB.subscribeKey("activeCaipAddress",e=>{e&&n.W3.close()}))}disconnectedCallback(){this.externalViewUnsubscribe.forEach(e=>e())}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.id!==G.oU.COINBASE_SDK_CONNECTOR_ID||!this.error)&&(await n.x4.connectExternal(this.connector,this.connector.chain),n.En.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.connector.name||"Unknown"}}))}catch(e){n.En.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};X=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-external-view")],X);let ee=(0,a.AH)`
  626. wui-flex,
  627. wui-list-wallet {
  628. width: 100%;
  629. }
  630. `;var et=i(50639),ei=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let er=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.activeConnector=n.WB.state.activeConnector,this.unsubscribe.push(n.WB.subscribeKey("activeConnector",e=>this.activeConnector=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`
  631. <wui-flex
  632. flexDirection="column"
  633. alignItems="center"
  634. .padding=${["m","xl","xl","xl"]}
  635. gap="xl"
  636. >
  637. <wui-flex justifyContent="center" alignItems="center">
  638. <wui-wallet-image
  639. size="lg"
  640. imageSrc=${(0,s.J)(n.$m.getConnectorImage(this.activeConnector))}
  641. ></wui-wallet-image>
  642. </wui-flex>
  643. <wui-flex
  644. flexDirection="column"
  645. alignItems="center"
  646. gap="xs"
  647. .padding=${["0","s","0","s"]}
  648. >
  649. <wui-text variant="paragraph-500" color="fg-100">
  650. Select Chain for ${this.activeConnector?.name}
  651. </wui-text>
  652. <wui-text align="center" variant="small-500" color="fg-200"
  653. >Select which chain to connect to your multi chain wallet</wui-text
  654. >
  655. </wui-flex>
  656. <wui-flex
  657. flexGrow="1"
  658. flexDirection="column"
  659. alignItems="center"
  660. gap="xs"
  661. .padding=${["xs","0","xs","0"]}
  662. >
  663. ${this.networksTemplate()}
  664. </wui-flex>
  665. </wui-flex>
  666. `}networksTemplate(){return this.activeConnector?.connectors?.map(e=>e.name?a.qy`
  667. <wui-list-wallet
  668. imageSrc=${s.J(n.$m.getChainImage(e.chain))}
  669. name=${et.oU.CHAIN_NAME_MAP[e.chain]}
  670. @click=${()=>this.onConnector(e)}
  671. ></wui-list-wallet>
  672. `:null)}onConnector(e){let t=this.activeConnector?.connectors?.find(t=>t.chain===e.chain);if(!t){n.Pt.showError("Failed to find connector");return}"walletConnect"===t.id?n.wE.isMobile()?n.IN.push("AllWallets"):n.IN.push("ConnectingWalletConnect"):n.IN.push("ConnectingExternal",{connector:t})}};er.styles=ee,ei([(0,o.wk)()],er.prototype,"activeConnector",void 0),er=ei([(0,r.customElement)("w3m-connecting-multi-chain-view")],er);var en=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ea=class extends a.WF{constructor(){super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=n.IN.state.data?.wallet,this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!n.Hd.state.siwx,this.determinePlatforms(),this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),n.oU.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(0,a.qy)`
  673. ${this.headerTemplate()}
  674. <div>${this.platformTemplate()}</div>
  675. `:(0,a.qy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`}async initializeConnection(e=!1){if("browser"!==this.platform)try{let{wcPairingExpiry:t,status:i}=n.x4.state;(e||n.wE.isPairingExpired(t)||"connecting"===i)&&(await n.x4.connectWalletConnect(),this.finalizeConnection(),this.isSiwxEnabled||n.W3.close())}catch(e){n.En.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),n.x4.setWcError(!0),n.wE.isAllowedRetry(this.lastRetry)?(n.Pt.showError(e.message??"Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0)):n.Pt.showError(e.message??"Connection error")}}finalizeConnection(){let{wcLinking:e,recentWallet:t}=n.x4.state;e&&n.iT.setWalletConnectDeepLink(e),t&&n.iT.setAppKitRecent(t),n.En.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode",name:this.wallet?.name||"Unknown"}})}determinePlatforms(){if(!this.wallet){this.platforms.push("qrcode"),this.platform="qrcode";return}if(this.platform)return;let{mobile_link:e,desktop_link:t,webapp_link:i,injected:r,rdns:a,name:o}=this.wallet,s=r?.map(({injected_id:e})=>e).filter(Boolean),c=[...a?[a]:s??[],o],l=!n.Hd.state.isUniversalProvider&&c.length,u=n.x4.checkInstalled(c),d=l&&u,h=t&&!n.wE.isMobile();d&&this.platforms.push("browser"),e&&this.platforms.push(n.wE.isMobile()?"mobile":"qrcode"),i&&this.platforms.push("web"),h&&this.platforms.push("desktop"),!d&&l&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return(0,a.qy)`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return(0,a.qy)`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return(0,a.qy)`
  676. <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
  677. </w3m-connecting-wc-desktop>
  678. `;case"mobile":return(0,a.qy)`
  679. <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
  680. </w3m-connecting-wc-mobile>
  681. `;case"qrcode":return(0,a.qy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return(0,a.qy)`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?(0,a.qy)`
  682. <w3m-connecting-header
  683. .platforms=${this.platforms}
  684. .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
  685. >
  686. </w3m-connecting-header>
  687. `:null}async onSelectPlatform(e){let t=this.shadowRoot?.querySelector("div");t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};en([(0,o.wk)()],ea.prototype,"platform",void 0),en([(0,o.wk)()],ea.prototype,"platforms",void 0),en([(0,o.wk)()],ea.prototype,"isSiwxEnabled",void 0),ea=en([(0,r.customElement)("w3m-connecting-wc-view")],ea);let eo=(0,a.AH)`
  688. .continue-button-container {
  689. width: 100%;
  690. }
  691. `;var es=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ec=class extends a.WF{constructor(){super(...arguments),this.loading=!1}render(){return(0,a.qy)`
  692. <wui-flex
  693. flexDirection="column"
  694. alignItems="center"
  695. gap="xxl"
  696. .padding=${["0","0","l","0"]}
  697. >
  698. ${this.onboardingTemplate()} ${this.buttonsTemplate()}
  699. <wui-link
  700. @click=${()=>{n.wE.openHref(et.TC.URLS.FAQ,"_blank")}}
  701. >
  702. Learn more about names
  703. <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
  704. </wui-link>
  705. </wui-flex>
  706. `}onboardingTemplate(){return(0,a.qy)` <wui-flex
  707. flexDirection="column"
  708. gap="xxl"
  709. alignItems="center"
  710. .padding=${["0","xxl","0","xxl"]}
  711. >
  712. <wui-flex gap="s" alignItems="center" justifyContent="center">
  713. <wui-icon-box
  714. icon="id"
  715. size="xl"
  716. iconSize="xxl"
  717. iconColor="fg-200"
  718. backgroundColor="fg-200"
  719. ></wui-icon-box>
  720. </wui-flex>
  721. <wui-flex flexDirection="column" alignItems="center" gap="s">
  722. <wui-text align="center" variant="medium-600" color="fg-100">
  723. Choose your account name
  724. </wui-text>
  725. <wui-text align="center" variant="paragraph-400" color="fg-100">
  726. Finally say goodbye to 0x addresses, name your account to make it easier to exchange
  727. assets
  728. </wui-text>
  729. </wui-flex>
  730. </wui-flex>`}buttonsTemplate(){return(0,a.qy)`<wui-flex
  731. .padding=${["0","2l","0","2l"]}
  732. gap="s"
  733. class="continue-button-container"
  734. >
  735. <wui-button
  736. fullWidth
  737. .loading=${this.loading}
  738. size="lg"
  739. borderRadius="xs"
  740. @click=${this.handleContinue.bind(this)}
  741. >Choose name
  742. </wui-button>
  743. </wui-flex>`}handleContinue(){n.IN.push("RegisterAccountName"),n.En.sendEvent({type:"track",event:"OPEN_ENS_FLOW",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}})}};ec.styles=eo,es([(0,o.wk)()],ec.prototype,"loading",void 0),ec=es([(0,r.customElement)("w3m-choose-account-name-view")],ec);let el=class extends a.WF{constructor(){super(...arguments),this.wallet=n.IN.state.data?.wallet}render(){if(!this.wallet)throw Error("w3m-downloads-view");return(0,a.qy)`
  744. <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
  745. ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
  746. ${this.homepageTemplate()}
  747. </wui-flex>
  748. `}chromeTemplate(){return this.wallet?.chrome_store?(0,a.qy)`<wui-list-item
  749. variant="icon"
  750. icon="chromeStore"
  751. iconVariant="square"
  752. @click=${this.onChromeStore.bind(this)}
  753. chevron
  754. >
  755. <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
  756. </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?(0,a.qy)`<wui-list-item
  757. variant="icon"
  758. icon="appStore"
  759. iconVariant="square"
  760. @click=${this.onAppStore.bind(this)}
  761. chevron
  762. >
  763. <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
  764. </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?(0,a.qy)`<wui-list-item
  765. variant="icon"
  766. icon="playStore"
  767. iconVariant="square"
  768. @click=${this.onPlayStore.bind(this)}
  769. chevron
  770. >
  771. <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
  772. </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?(0,a.qy)`
  773. <wui-list-item
  774. variant="icon"
  775. icon="browser"
  776. iconVariant="square-blue"
  777. @click=${this.onHomePage.bind(this)}
  778. chevron
  779. >
  780. <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
  781. </wui-list-item>
  782. `:null}onChromeStore(){this.wallet?.chrome_store&&n.wE.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&n.wE.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&n.wE.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&n.wE.openHref(this.wallet.homepage,"_blank")}};el=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-downloads-view")],el);let eu=class extends a.WF{render(){return(0,a.qy)`
  783. <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
  784. ${this.recommendedWalletsTemplate()}
  785. <wui-list-wallet
  786. name="Explore all"
  787. showAllWallets
  788. walletIcon="allWallets"
  789. icon="externalLink"
  790. @click=${()=>{n.wE.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}}
  791. ></wui-list-wallet>
  792. </wui-flex>
  793. `}recommendedWalletsTemplate(){let{recommended:e,featured:t}=n.Np.state,{customWallets:i}=n.Hd.state;return[...t,...i??[],...e].slice(0,4).map(e=>(0,a.qy)`
  794. <wui-list-wallet
  795. name=${e.name??"Unknown"}
  796. tagVariant="main"
  797. imageSrc=${(0,s.J)(n.$m.getWalletImage(e))}
  798. @click=${()=>{n.wE.openHref(e.homepage??"https://walletconnect.com/explorer","_blank")}}
  799. ></wui-list-wallet>
  800. `)}};eu=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-get-wallet-view")],eu);let ed=(0,a.AH)`
  801. wui-flex {
  802. width: 100%;
  803. }
  804. .suggestion {
  805. background: var(--wui-color-gray-glass-002);
  806. border-radius: var(--wui-border-radius-xs);
  807. }
  808. .suggestion:hover {
  809. background-color: var(--wui-color-gray-glass-005);
  810. cursor: pointer;
  811. }
  812. .suggested-name {
  813. max-width: 75%;
  814. overflow: hidden;
  815. text-overflow: ellipsis;
  816. white-space: nowrap;
  817. }
  818. form {
  819. width: 100%;
  820. }
  821. wui-icon-link {
  822. position: absolute;
  823. right: 20px;
  824. transform: translateY(11px);
  825. }
  826. `;var eh=i(87580),ep=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ef=class extends a.WF{constructor(){super(),this.formRef=(0,eh._)(),this.usubscribe=[],this.name="",this.error="",this.loading=n.f.state.loading,this.suggestions=n.f.state.suggestions,this.registered=!1,this.profileName=n.Uj.state.profileName,this.onDebouncedNameInputChange=n.wE.debounce(e=>{n.f.validateName(e)?(this.error="",this.name=e,n.f.getSuggestions(e),n.f.isNameRegistered(e).then(e=>{this.registered=e})):e.length<4?this.error="Name must be at least 4 characters long":this.error="Can only contain letters, numbers and - characters"}),this.usubscribe.push(n.f.subscribe(e=>{this.suggestions=e.suggestions,this.loading=e.loading}),n.Uj.subscribeKey("profileName",e=>{this.profileName=e,e&&(this.error="You already own a name")}))}firstUpdated(){this.formRef.value?.addEventListener("keydown",this.onEnterKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.usubscribe.forEach(e=>e()),this.formRef.value?.removeEventListener("keydown",this.onEnterKey.bind(this))}render(){return(0,a.qy)`
  827. <wui-flex
  828. flexDirection="column"
  829. alignItems="center"
  830. gap="m"
  831. .padding=${["0","s","m","s"]}
  832. >
  833. <form ${(0,eh.K)(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
  834. <wui-ens-input
  835. @inputChange=${this.onNameInputChange.bind(this)}
  836. .errorMessage=${this.error}
  837. .value=${this.name}
  838. >
  839. </wui-ens-input>
  840. ${this.submitButtonTemplate()}
  841. <input type="submit" hidden />
  842. </form>
  843. ${this.templateSuggestions()}
  844. </wui-flex>
  845. `}submitButtonTemplate(){return this.isAllowedToSubmit()?(0,a.qy)`
  846. <wui-icon-link
  847. size="sm"
  848. icon="chevronRight"
  849. iconcolor="accent-100"
  850. @click=${this.onSubmitName.bind(this)}
  851. >
  852. </wui-icon-link>
  853. `:null}onSelectSuggestion(e){return()=>{this.name=e,this.registered=!1,this.requestUpdate()}}onNameInputChange(e){this.onDebouncedNameInputChange(e.detail)}nameSuggestionTagTemplate(){return this.loading?(0,a.qy)`<wui-loading-spinner size="lg" color="fg-100"></wui-loading-spinner>`:this.registered?(0,a.qy)`<wui-tag variant="shade" size="lg">Registered</wui-tag>`:(0,a.qy)`<wui-tag variant="success" size="lg">Available</wui-tag>`}templateSuggestions(){if(!this.name||this.name.length<4||this.error)return null;let e=this.registered?this.suggestions.filter(e=>e.name!==this.name):[];return(0,a.qy)`<wui-flex flexDirection="column" gap="xxs" alignItems="center">
  854. <wui-flex
  855. data-testid="account-name-suggestion"
  856. .padding=${["m","m","m","m"]}
  857. justifyContent="space-between"
  858. class="suggestion"
  859. @click=${this.onSubmitName.bind(this)}
  860. >
  861. <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
  862. ${this.name}</wui-text
  863. >${this.nameSuggestionTagTemplate()}
  864. </wui-flex>
  865. ${e.map(e=>this.availableNameTemplate(e.name))}
  866. </wui-flex>`}availableNameTemplate(e){return(0,a.qy)` <wui-flex
  867. data-testid="account-name-suggestion"
  868. .padding=${["m","m","m","m"]}
  869. justifyContent="space-between"
  870. class="suggestion"
  871. @click=${this.onSelectSuggestion(e)}
  872. >
  873. <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
  874. ${e}
  875. </wui-text>
  876. <wui-tag variant="success" size="lg">Available</wui-tag>
  877. </wui-flex>`}isAllowedToSubmit(){return!this.loading&&!this.registered&&!this.error&&!this.profileName&&n.f.validateName(this.name)}async onSubmitName(){try{if(!this.isAllowedToSubmit())return;let e=`${this.name}${et.oU.WC_NAME_SUFFIX}`;n.En.sendEvent({type:"track",event:"REGISTER_NAME_INITIATED",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:e}}),await n.f.registerName(e),n.En.sendEvent({type:"track",event:"REGISTER_NAME_SUCCESS",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:e}})}catch(e){n.Pt.showError(e.message),n.En.sendEvent({type:"track",event:"REGISTER_NAME_ERROR",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:`${this.name}${et.oU.WC_NAME_SUFFIX}`,error:e?.message||"Unknown error"}})}}onEnterKey(e){"Enter"===e.key&&this.isAllowedToSubmit()&&this.onSubmitName()}};ef.styles=ed,ep([(0,o.MZ)()],ef.prototype,"errorMessage",void 0),ep([(0,o.wk)()],ef.prototype,"name",void 0),ep([(0,o.wk)()],ef.prototype,"error",void 0),ep([(0,o.wk)()],ef.prototype,"loading",void 0),ep([(0,o.wk)()],ef.prototype,"suggestions",void 0),ep([(0,o.wk)()],ef.prototype,"registered",void 0),ep([(0,o.wk)()],ef.prototype,"profileName",void 0),ef=ep([(0,r.customElement)("w3m-register-account-name-view")],ef);let eg=(0,a.AH)`
  878. .continue-button-container {
  879. width: 100%;
  880. }
  881. `,ew=class extends a.WF{render(){return(0,a.qy)`
  882. <wui-flex
  883. flexDirection="column"
  884. alignItems="center"
  885. gap="xxl"
  886. .padding=${["0","0","l","0"]}
  887. >
  888. ${this.onboardingTemplate()} ${this.buttonsTemplate()}
  889. <wui-link
  890. @click=${()=>{n.wE.openHref(et.TC.URLS.FAQ,"_blank")}}
  891. >
  892. Learn more
  893. <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
  894. </wui-link>
  895. </wui-flex>
  896. `}onboardingTemplate(){return(0,a.qy)` <wui-flex
  897. flexDirection="column"
  898. gap="xxl"
  899. alignItems="center"
  900. .padding=${["0","xxl","0","xxl"]}
  901. >
  902. <wui-flex gap="s" alignItems="center" justifyContent="center">
  903. <wui-icon-box
  904. size="xl"
  905. iconcolor="success-100"
  906. backgroundcolor="success-100"
  907. icon="checkmark"
  908. background="opaque"
  909. ></wui-icon-box>
  910. </wui-flex>
  911. <wui-flex flexDirection="column" alignItems="center" gap="s">
  912. <wui-text align="center" variant="medium-600" color="fg-100">
  913. Account name chosen successfully
  914. </wui-text>
  915. <wui-text align="center" variant="paragraph-400" color="fg-100">
  916. You can now fund your account and trade crypto
  917. </wui-text>
  918. </wui-flex>
  919. </wui-flex>`}buttonsTemplate(){return(0,a.qy)`<wui-flex
  920. .padding=${["0","2l","0","2l"]}
  921. gap="s"
  922. class="continue-button-container"
  923. >
  924. <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)}
  925. >Let's Go!
  926. </wui-button>
  927. </wui-flex>`}redirectToAccount(){n.IN.replace("Account")}};ew.styles=eg,ew=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-register-account-name-success-view")],ew);let em=(0,a.AH)`
  928. @keyframes shake {
  929. 0% {
  930. transform: translateX(0);
  931. }
  932. 25% {
  933. transform: translateX(3px);
  934. }
  935. 50% {
  936. transform: translateX(-3px);
  937. }
  938. 75% {
  939. transform: translateX(3px);
  940. }
  941. 100% {
  942. transform: translateX(0);
  943. }
  944. }
  945. wui-flex:first-child:not(:only-child) {
  946. position: relative;
  947. }
  948. wui-loading-hexagon {
  949. position: absolute;
  950. }
  951. wui-icon-box {
  952. position: absolute;
  953. right: 4px;
  954. bottom: 0;
  955. opacity: 0;
  956. transform: scale(0.5);
  957. z-index: 1;
  958. }
  959. wui-button {
  960. display: none;
  961. }
  962. [data-error='true'] wui-icon-box {
  963. opacity: 1;
  964. transform: scale(1);
  965. }
  966. [data-error='true'] > wui-flex:first-child {
  967. animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  968. }
  969. wui-button[data-retry='true'] {
  970. display: block;
  971. opacity: 1;
  972. }
  973. `;var eb=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ev=class extends a.WF{constructor(){super(),this.network=n.IN.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw Error("w3m-network-switch-view: No network provided");this.onShowRetry();let e=this.getLabel(),t=this.getSubLabel();return(0,a.qy)`
  974. <wui-flex
  975. data-error=${this.error}
  976. flexDirection="column"
  977. alignItems="center"
  978. .padding=${["3xl","xl","3xl","xl"]}
  979. gap="xl"
  980. >
  981. <wui-flex justifyContent="center" alignItems="center">
  982. <wui-network-image
  983. size="lg"
  984. imageSrc=${(0,s.J)(n.$m.getNetworkImage(this.network))}
  985. ></wui-network-image>
  986. ${this.error?null:(0,a.qy)`<wui-loading-hexagon></wui-loading-hexagon>`}
  987. <wui-icon-box
  988. backgroundColor="error-100"
  989. background="opaque"
  990. iconColor="error-100"
  991. icon="close"
  992. size="sm"
  993. ?border=${!0}
  994. borderColor="wui-color-bg-125"
  995. ></wui-icon-box>
  996. </wui-flex>
  997. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  998. <wui-text align="center" variant="paragraph-500" color="fg-100">${e}</wui-text>
  999. <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text>
  1000. </wui-flex>
  1001. <wui-button
  1002. data-retry=${this.showRetry}
  1003. variant="accent"
  1004. size="md"
  1005. .disabled=${!this.error}
  1006. @click=${this.onSwitchNetwork.bind(this)}
  1007. >
  1008. <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
  1009. Try again
  1010. </wui-button>
  1011. </wui-flex>
  1012. `}getSubLabel(){let e=n.iT.getConnectedConnector();return n.aK.getAuthConnector()&&"AUTH"===e?"":this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet"}getLabel(){let e=n.iT.getConnectedConnector();return n.aK.getAuthConnector()&&"AUTH"===e?`Switching to ${this.network?.name??"Unknown"} network...`:this.error?"Switch declined":"Approve in wallet"}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&await n.WB.switchActiveNetwork(this.network)}catch(e){this.error=!0}}};ev.styles=em,eb([(0,o.wk)()],ev.prototype,"showRetry",void 0),eb([(0,o.wk)()],ev.prototype,"error",void 0),ev=eb([(0,r.customElement)("w3m-network-switch-view")],ev);let ey=(0,a.AH)`
  1013. .container {
  1014. max-height: 360px;
  1015. overflow: auto;
  1016. }
  1017. .container::-webkit-scrollbar {
  1018. display: none;
  1019. }
  1020. `;var ex=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eC=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.network=n.WB.state.activeCaipNetwork,this.requestedCaipNetworks=n.WB.getAllRequestedCaipNetworks(),this.search="",this.onDebouncedSearch=n.wE.debounce(e=>{this.search=e},100),this.unsubscribe.push(n.WB.subscribeKey("activeCaipNetwork",e=>this.network=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`
  1021. ${this.templateSearchInput()}
  1022. <wui-flex
  1023. class="container"
  1024. .padding=${["0","s","s","s"]}
  1025. flexDirection="column"
  1026. gap="xs"
  1027. >
  1028. ${this.networksTemplate()}
  1029. </wui-flex>
  1030. <wui-separator></wui-separator>
  1031. <wui-flex padding="s" flexDirection="column" gap="m" alignItems="center">
  1032. <wui-text variant="small-400" color="fg-300" align="center">
  1033. Your connected wallet may not support some of the networks available for this dApp
  1034. </wui-text>
  1035. <wui-link @click=${this.onNetworkHelp.bind(this)}>
  1036. <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon>
  1037. What is a network
  1038. </wui-link>
  1039. </wui-flex>
  1040. `}templateSearchInput(){return(0,a.qy)`
  1041. <wui-flex gap="xs" .padding=${["0","s","s","s"]}>
  1042. <wui-input-text
  1043. @inputChange=${this.onInputChange.bind(this)}
  1044. class="network-search-input"
  1045. size="md"
  1046. placeholder="Search network"
  1047. icon="search"
  1048. ></wui-input-text>
  1049. </wui-flex>
  1050. `}onInputChange(e){this.onDebouncedSearch(e.detail)}onNetworkHelp(){n.En.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),n.IN.push("WhatIsANetwork")}networksTemplate(){let e=n.WB.getAllRequestedCaipNetworks(),t=n.WB.getAllApprovedCaipNetworkIds(),i=n.wE.sortRequestedNetworks(t,e);return this.search?this.filteredNetworks=i?.filter(e=>e?.name?.toLowerCase().includes(this.search.toLowerCase())):this.filteredNetworks=i,this.filteredNetworks?.map(e=>a.qy`
  1051. <wui-list-network
  1052. .selected=${this.network?.id===e.id}
  1053. imageSrc=${s.J(n.$m.getNetworkImage(e))}
  1054. type="network"
  1055. name=${e.name??e.id}
  1056. @click=${()=>this.onSwitchNetwork(e)}
  1057. .disabled=${this.getNetworkDisabled(e)}
  1058. data-testid=${`w3m-network-switch-${e.name??e.id}`}
  1059. ></wui-list-network>
  1060. `)}getNetworkDisabled(e){let t=e.chainNamespace,i=n.Uj.getCaipAddress(t),r=n.WB.getAllApprovedCaipNetworkIds(),a=!1!==n.WB.getNetworkProp("supportsAllNetworks",t),o=n.iT.getConnectedConnector(),s=n.aK.getAuthConnector();return!!i&&!a&&("ID_AUTH"!==o||!s)&&!r?.includes(e.caipNetworkId)}onSwitchNetwork(e){let t=n.IN.state.data;if(e.id===this.network?.id)return;let i=e.chainNamespace!==n.WB.state.activeChain,r=n.WB.getAccountProp("caipAddress",e.chainNamespace),a=n.Uj.state.caipAddress,o="ID_AUTH"===n.iT.getConnectedConnector();i&&a&&!r&&!o?n.IN.push("SwitchActiveChain",{switchToChain:e.chainNamespace,navigateTo:"Connect",navigateWithReplace:!0,network:e}):n.IN.push("SwitchNetwork",{...t,network:e})}};eC.styles=ey,ex([(0,o.wk)()],eC.prototype,"network",void 0),ex([(0,o.wk)()],eC.prototype,"requestedCaipNetworks",void 0),ex([(0,o.wk)()],eC.prototype,"filteredNetworks",void 0),ex([(0,o.wk)()],eC.prototype,"search",void 0),eC=ex([(0,r.customElement)("w3m-networks-view")],eC);let eA=(0,a.AH)`
  1061. :host > wui-flex {
  1062. height: 500px;
  1063. overflow-y: auto;
  1064. overflow-x: hidden;
  1065. scrollbar-width: none;
  1066. padding: var(--wui-spacing-m);
  1067. box-sizing: border-box;
  1068. display: flex;
  1069. align-items: center;
  1070. justify-content: flex-start;
  1071. }
  1072. :host > wui-flex::-webkit-scrollbar {
  1073. display: none;
  1074. }
  1075. :host > wui-flex > wui-flex {
  1076. width: 100%;
  1077. }
  1078. wui-transaction-list-item-loader {
  1079. width: 100%;
  1080. }
  1081. `;var eE=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e_=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=n.aG.state.selectedProvider,this.loading=!1,this.coinbaseTransactions=n.WC.state.coinbaseTransactions,this.tokenImages=n.jQ.state.tokenImages,this.unsubscribe.push(n.aG.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e}),n.jQ.subscribeKey("tokenImages",e=>this.tokenImages=e),()=>{clearTimeout(this.refetchTimeout)},n.WC.subscribe(e=>{this.coinbaseTransactions={...e.coinbaseTransactions}})),n.WC.clearCursor(),this.fetchTransactions()}render(){return(0,a.qy)`
  1082. <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
  1083. ${this.loading?this.templateLoading():this.templateTransactionsByYear()}
  1084. </wui-flex>
  1085. `}templateTransactions(e){return e?.map(e=>{let t=et.rL.formatDate(e?.metadata?.minedAt),i=e.transfers[0],r=i?.fungible_info;if(!r)return null;let n=r?.icon?.url||this.tokenImages?.[r.symbol||""];return a.qy`
  1086. <w3m-onramp-activity-item
  1087. label="Bought"
  1088. .completed=${"ONRAMP_TRANSACTION_STATUS_SUCCESS"===e.metadata.status}
  1089. .inProgress=${"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status}
  1090. .failed=${"ONRAMP_TRANSACTION_STATUS_FAILED"===e.metadata.status}
  1091. purchaseCurrency=${s.J(r.symbol)}
  1092. purchaseValue=${i.quantity.numeric}
  1093. date=${t}
  1094. icon=${s.J(n)}
  1095. symbol=${s.J(r.symbol)}
  1096. ></w3m-onramp-activity-item>
  1097. `})}templateTransactionsByYear(){return Object.keys(this.coinbaseTransactions).sort().reverse().map(e=>{let t=parseInt(e,10);return Array(12).fill(null).map((e,t)=>t).reverse().map(e=>{let i=r.TransactionUtil.getTransactionGroupTitle(t,e),n=this.coinbaseTransactions[t]?.[e];return n?(0,a.qy)`
  1098. <wui-flex flexDirection="column">
  1099. <wui-flex
  1100. alignItems="center"
  1101. flexDirection="row"
  1102. .padding=${["xs","s","s","s"]}
  1103. >
  1104. <wui-text variant="paragraph-500" color="fg-200">${i}</wui-text>
  1105. </wui-flex>
  1106. <wui-flex flexDirection="column" gap="xs">
  1107. ${this.templateTransactions(n)}
  1108. </wui-flex>
  1109. </wui-flex>
  1110. `:null})})}async fetchTransactions(){await this.fetchCoinbaseTransactions()}async fetchCoinbaseTransactions(){let e=n.Uj.state.address,t=n.Hd.state.projectId;if(!e)throw Error("No address found");if(!t)throw Error("No projectId found");this.loading=!0,await n.WC.fetchTransactions(e,"coinbase"),this.loading=!1,this.refetchLoadingTransactions()}refetchLoadingTransactions(){let e=new Date;if(0===(this.coinbaseTransactions[e.getFullYear()]?.[e.getMonth()]||[]).filter(e=>"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length){clearTimeout(this.refetchTimeout);return}this.refetchTimeout=setTimeout(async()=>{let e=n.Uj.state.address;await n.WC.fetchTransactions(e,"coinbase"),this.refetchLoadingTransactions()},3e3)}templateLoading(){return Array(7).fill((0,a.qy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e)}};e_.styles=eA,eE([(0,o.wk)()],e_.prototype,"selectedOnRampProvider",void 0),eE([(0,o.wk)()],e_.prototype,"loading",void 0),eE([(0,o.wk)()],e_.prototype,"coinbaseTransactions",void 0),eE([(0,o.wk)()],e_.prototype,"tokenImages",void 0),e_=eE([(0,r.customElement)("w3m-onramp-activity-view")],e_);let ek=(0,a.AH)`
  1111. :host > wui-grid {
  1112. max-height: 360px;
  1113. overflow: auto;
  1114. }
  1115. wui-flex {
  1116. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  1117. will-change: opacity;
  1118. }
  1119. wui-grid::-webkit-scrollbar {
  1120. display: none;
  1121. }
  1122. wui-flex.disabled {
  1123. opacity: 0.3;
  1124. pointer-events: none;
  1125. user-select: none;
  1126. }
  1127. `;var eI=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eS=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=n.aG.state.paymentCurrency,this.currencies=n.aG.state.paymentCurrencies,this.currencyImages=n.jQ.state.currencyImages,this.checked=!1,this.unsubscribe.push(n.aG.subscribe(e=>{this.selectedCurrency=e.paymentCurrency,this.currencies=e.paymentCurrencies}),n.jQ.subscribeKey("currencyImages",e=>this.currencyImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox,r=!!(e||t)&&!!i&&!this.checked;return(0,a.qy)`
  1128. <w3m-legal-checkbox @checkboxChange=${this.onCheckboxChange.bind(this)}></w3m-legal-checkbox>
  1129. <wui-flex
  1130. flexDirection="column"
  1131. .padding=${["0","s","s","s"]}
  1132. gap="xs"
  1133. class=${(0,s.J)(r?"disabled":void 0)}
  1134. >
  1135. ${this.currenciesTemplate(r)}
  1136. </wui-flex>
  1137. <w3m-legal-footer></w3m-legal-footer>
  1138. `}currenciesTemplate(e=!1){return this.currencies.map(t=>(0,a.qy)`
  1139. <wui-list-item
  1140. imageSrc=${(0,s.J)(this.currencyImages?.[t.id])}
  1141. @click=${()=>this.selectCurrency(t)}
  1142. variant="image"
  1143. tabIdx=${(0,s.J)(e?-1:void 0)}
  1144. >
  1145. <wui-text variant="paragraph-500" color="fg-100">${t.id}</wui-text>
  1146. </wui-list-item>
  1147. `)}selectCurrency(e){e&&(n.aG.setPaymentCurrency(e),n.W3.close())}onCheckboxChange(e){this.checked=!!e.detail}};eS.styles=ek,eI([(0,o.wk)()],eS.prototype,"selectedCurrency",void 0),eI([(0,o.wk)()],eS.prototype,"currencies",void 0),eI([(0,o.wk)()],eS.prototype,"currencyImages",void 0),eI([(0,o.wk)()],eS.prototype,"checked",void 0),eS=eI([(0,r.customElement)("w3m-onramp-fiat-select-view")],eS);var eT=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eN=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.providers=n.aG.state.providers,this.unsubscribe.push(n.aG.subscribeKey("providers",e=>{this.providers=e}))}firstUpdated(){Promise.all(this.providers.map(async e=>"coinbase"===e.name?await this.getCoinbaseOnRampURL():Promise.resolve(e?.url))).then(e=>{this.providers=this.providers.map((t,i)=>({...t,url:e[i]||""}))})}render(){return(0,a.qy)`
  1148. <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
  1149. ${this.onRampProvidersTemplate()}
  1150. </wui-flex>
  1151. <w3m-onramp-providers-footer></w3m-onramp-providers-footer>
  1152. `}onRampProvidersTemplate(){return this.providers.filter(e=>e.supportedChains.includes(n.WB.state.activeChain??"eip155")).map(e=>(0,a.qy)`
  1153. <w3m-onramp-provider-item
  1154. label=${e.label}
  1155. name=${e.name}
  1156. feeRange=${e.feeRange}
  1157. @click=${()=>{this.onClickProvider(e)}}
  1158. ?disabled=${!e.url}
  1159. ></w3m-onramp-provider-item>
  1160. `)}onClickProvider(e){n.aG.setSelectedProvider(e),n.IN.push("BuyInProgress"),n.wE.openHref(e.url,"popupWindow","width=600,height=800,scrollbars=yes"),n.En.sendEvent({type:"track",event:"SELECT_BUY_PROVIDER",properties:{provider:e.name,isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}})}async getCoinbaseOnRampURL(){let e=n.Uj.state.address,t=n.WB.state.activeCaipNetwork;if(!e)throw Error("No address found");if(!t?.name)throw Error("No network found");let i=n.oU.WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP[t.name]??n.oU.WC_COINBASE_PAY_SDK_FALLBACK_CHAIN,r=n.aG.state.purchaseCurrency,a=r?[r.symbol]:n.aG.state.purchaseCurrencies.map(e=>e.symbol);return await n.TP.generateOnRampURL({defaultNetwork:i,destinationWallets:[{address:e,blockchains:n.oU.WC_COINBASE_PAY_SDK_CHAINS,assets:a}],partnerUserId:e,purchaseAmount:n.aG.state.purchaseAmount})}};eT([(0,o.wk)()],eN.prototype,"providers",void 0),eN=eT([(0,r.customElement)("w3m-onramp-providers-view")],eN);let eP=(0,a.AH)`
  1161. :host > wui-grid {
  1162. max-height: 360px;
  1163. overflow: auto;
  1164. }
  1165. wui-flex {
  1166. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  1167. will-change: opacity;
  1168. }
  1169. wui-grid::-webkit-scrollbar {
  1170. display: none;
  1171. }
  1172. wui-flex.disabled {
  1173. opacity: 0.3;
  1174. pointer-events: none;
  1175. user-select: none;
  1176. }
  1177. `;var eR=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eO=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=n.aG.state.purchaseCurrencies,this.tokens=n.aG.state.purchaseCurrencies,this.tokenImages=n.jQ.state.tokenImages,this.checked=!1,this.unsubscribe.push(n.aG.subscribe(e=>{this.selectedCurrency=e.purchaseCurrencies,this.tokens=e.purchaseCurrencies}),n.jQ.subscribeKey("tokenImages",e=>this.tokenImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox,r=!!(e||t)&&!!i&&!this.checked;return(0,a.qy)`
  1178. <w3m-legal-checkbox @checkboxChange=${this.onCheckboxChange.bind(this)}></w3m-legal-checkbox>
  1179. <wui-flex
  1180. flexDirection="column"
  1181. .padding=${["0","s","s","s"]}
  1182. gap="xs"
  1183. class=${(0,s.J)(r?"disabled":void 0)}
  1184. >
  1185. ${this.currenciesTemplate(r)}
  1186. </wui-flex>
  1187. <w3m-legal-footer></w3m-legal-footer>
  1188. `}currenciesTemplate(e=!1){return this.tokens.map(t=>(0,a.qy)`
  1189. <wui-list-item
  1190. imageSrc=${(0,s.J)(this.tokenImages?.[t.symbol])}
  1191. @click=${()=>this.selectToken(t)}
  1192. variant="image"
  1193. tabIdx=${(0,s.J)(e?-1:void 0)}
  1194. >
  1195. <wui-flex gap="3xs" alignItems="center">
  1196. <wui-text variant="paragraph-500" color="fg-100">${t.name}</wui-text>
  1197. <wui-text variant="small-400" color="fg-200">${t.symbol}</wui-text>
  1198. </wui-flex>
  1199. </wui-list-item>
  1200. `)}selectToken(e){e&&(n.aG.setPurchaseCurrency(e),n.W3.close())}onCheckboxChange(e){this.checked=!!e.detail}};eO.styles=eP,eR([(0,o.wk)()],eO.prototype,"selectedCurrency",void 0),eR([(0,o.wk)()],eO.prototype,"tokens",void 0),eR([(0,o.wk)()],eO.prototype,"tokenImages",void 0),eR([(0,o.wk)()],eO.prototype,"checked",void 0),eO=eR([(0,r.customElement)("w3m-onramp-token-select-view")],eO);let eM=(0,a.AH)`
  1201. :host > wui-flex:first-child {
  1202. overflow-y: auto;
  1203. overflow-x: hidden;
  1204. scrollbar-width: none;
  1205. }
  1206. :host > wui-flex:first-child::-webkit-scrollbar {
  1207. display: none;
  1208. }
  1209. wui-loading-hexagon {
  1210. position: absolute;
  1211. }
  1212. .action-button {
  1213. width: 100%;
  1214. border-radius: var(--wui-border-radius-xs);
  1215. }
  1216. .action-button:disabled {
  1217. border-color: 1px solid var(--wui-color-gray-glass-005);
  1218. }
  1219. .swap-inputs-container {
  1220. position: relative;
  1221. }
  1222. .replace-tokens-button-container {
  1223. display: flex;
  1224. justify-content: center;
  1225. align-items: center;
  1226. position: absolute;
  1227. top: 50%;
  1228. left: 50%;
  1229. transform: translate(-50%, -50%);
  1230. gap: var(--wui-spacing-1xs);
  1231. border-radius: var(--wui-border-radius-xs);
  1232. background-color: var(--wui-color-modal-bg-base);
  1233. padding: var(--wui-spacing-xxs);
  1234. }
  1235. .replace-tokens-button-container > button {
  1236. display: flex;
  1237. justify-content: center;
  1238. align-items: center;
  1239. height: 40px;
  1240. width: 40px;
  1241. padding: var(--wui-spacing-xs);
  1242. border: none;
  1243. border-radius: var(--wui-border-radius-xxs);
  1244. background: var(--wui-color-gray-glass-002);
  1245. transition: background-color var(--wui-duration-md) var(--wui-ease-out-power-1);
  1246. will-change: background-color;
  1247. z-index: 20;
  1248. }
  1249. .replace-tokens-button-container > button:hover {
  1250. background: var(--wui-color-gray-glass-005);
  1251. }
  1252. .details-container > wui-flex {
  1253. background: var(--wui-color-gray-glass-002);
  1254. border-radius: var(--wui-border-radius-xxs);
  1255. width: 100%;
  1256. }
  1257. .details-container > wui-flex > button {
  1258. border: none;
  1259. background: none;
  1260. padding: var(--wui-spacing-s);
  1261. border-radius: var(--wui-border-radius-xxs);
  1262. transition: background 0.2s linear;
  1263. }
  1264. .details-container > wui-flex > button:hover {
  1265. background: var(--wui-color-gray-glass-002);
  1266. }
  1267. .details-content-container {
  1268. padding: var(--wui-spacing-1xs);
  1269. display: flex;
  1270. align-items: center;
  1271. justify-content: center;
  1272. }
  1273. .details-content-container > wui-flex {
  1274. width: 100%;
  1275. }
  1276. .details-row {
  1277. width: 100%;
  1278. padding: var(--wui-spacing-s) var(--wui-spacing-xl);
  1279. border-radius: var(--wui-border-radius-xxs);
  1280. background: var(--wui-color-gray-glass-002);
  1281. }
  1282. `;var eD=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eU=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!1,this.caipNetworkId=n.WB.state.activeCaipNetwork?.caipNetworkId,this.initialized=n.GN.state.initialized,this.loadingQuote=n.GN.state.loadingQuote,this.loadingPrices=n.GN.state.loadingPrices,this.loadingTransaction=n.GN.state.loadingTransaction,this.sourceToken=n.GN.state.sourceToken,this.sourceTokenAmount=n.GN.state.sourceTokenAmount,this.sourceTokenPriceInUSD=n.GN.state.sourceTokenPriceInUSD,this.toToken=n.GN.state.toToken,this.toTokenAmount=n.GN.state.toTokenAmount,this.toTokenPriceInUSD=n.GN.state.toTokenPriceInUSD,this.inputError=n.GN.state.inputError,this.gasPriceInUSD=n.GN.state.gasPriceInUSD,this.fetchError=n.GN.state.fetchError,this.onDebouncedGetSwapCalldata=n.wE.debounce(async()=>{await n.GN.swapTokens()},200),n.WB.subscribeKey("activeCaipNetwork",e=>{this.caipNetworkId!==e?.caipNetworkId&&(this.caipNetworkId=e?.caipNetworkId,n.GN.resetState(),n.GN.initializeState())}),this.unsubscribe.push(n.W3.subscribeKey("open",e=>{e||n.GN.resetState()}),n.IN.subscribeKey("view",e=>{e.includes("Swap")||n.GN.resetValues()}),n.GN.subscribe(e=>{this.initialized=e.initialized,this.loadingQuote=e.loadingQuote,this.loadingPrices=e.loadingPrices,this.loadingTransaction=e.loadingTransaction,this.sourceToken=e.sourceToken,this.sourceTokenAmount=e.sourceTokenAmount,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError,this.gasPriceInUSD=e.gasPriceInUSD,this.fetchError=e.fetchError}))}firstUpdated(){n.GN.initializeState(),this.watchTokensAndValues()}disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,a.qy)`
  1283. <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s">
  1284. ${this.initialized?this.templateSwap():this.templateLoading()}
  1285. </wui-flex>
  1286. `}watchTokensAndValues(){this.interval=setInterval(()=>{n.GN.getNetworkTokenPrice(),n.GN.getMyTokensWithBalance(),n.GN.swapTokens()},1e4)}templateSwap(){return(0,a.qy)`
  1287. <wui-flex flexDirection="column" gap="s">
  1288. <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container">
  1289. ${this.templateTokenInput("sourceToken",this.sourceToken)}
  1290. ${this.templateTokenInput("toToken",this.toToken)} ${this.templateReplaceTokensButton()}
  1291. </wui-flex>
  1292. ${this.templateDetails()} ${this.templateActionButton()}
  1293. </wui-flex>
  1294. `}actionButtonLabel(){return this.fetchError?"Swap":this.sourceToken&&this.toToken?this.sourceTokenAmount?this.inputError?this.inputError:"Review swap":"Enter amount":"Select token"}templateReplaceTokensButton(){return(0,a.qy)`
  1295. <wui-flex class="replace-tokens-button-container">
  1296. <button @click=${this.onSwitchTokens.bind(this)}>
  1297. <wui-icon name="recycleHorizontal" color="fg-250" size="lg"></wui-icon>
  1298. </button>
  1299. </wui-flex>
  1300. `}templateLoading(){return(0,a.qy)`
  1301. <wui-flex flexDirection="column" gap="l">
  1302. <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container">
  1303. <w3m-swap-input-skeleton target="sourceToken"></w3m-swap-input-skeleton>
  1304. <w3m-swap-input-skeleton target="toToken"></w3m-swap-input-skeleton>
  1305. ${this.templateReplaceTokensButton()}
  1306. </wui-flex>
  1307. ${this.templateActionButton()}
  1308. </wui-flex>
  1309. `}templateTokenInput(e,t){let i=n.GN.state.myTokensWithBalance?.find(e=>e?.address===t?.address),r="toToken"===e?this.toTokenAmount:this.sourceTokenAmount,o="toToken"===e?this.toTokenPriceInUSD:this.sourceTokenPriceInUSD,s=parseFloat(r)*o;return"toToken"===e&&(s-=this.gasPriceInUSD||0),(0,a.qy)`<w3m-swap-input
  1310. .value=${"toToken"===e?this.toTokenAmount:this.sourceTokenAmount}
  1311. ?disabled=${this.loadingQuote&&"toToken"===e}
  1312. .onSetAmount=${this.handleChangeAmount.bind(this)}
  1313. target=${e}
  1314. .token=${t}
  1315. .balance=${i?.quantity?.numeric}
  1316. .price=${i?.price}
  1317. .marketValue=${s}
  1318. .onSetMaxValue=${this.onSetMaxValue.bind(this)}
  1319. ></w3m-swap-input>`}onSetMaxValue(e,t){let i="sourceToken"===e?this.sourceToken:this.toToken,r=i?.address===n.WB.getActiveNetworkTokenAddress(),a="0";if(!t){a="0",this.handleChangeAmount(e,a);return}if(!this.gasPriceInUSD){a=t,this.handleChangeAmount(e,a);return}let o=et.Se.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.sourceTokenPriceInUSD),s=r?et.Se.bigNumber(t).minus(o):et.Se.bigNumber(t);this.handleChangeAmount(e,s.isGreaterThan(0)?s.toFixed(20):"0")}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,a.qy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}handleChangeAmount(e,t){n.GN.clearError(),"sourceToken"===e?n.GN.setSourceTokenAmount(t):n.GN.setToTokenAmount(t),this.onDebouncedGetSwapCalldata()}templateActionButton(){let e=!this.toToken||!this.sourceToken,t=!this.sourceTokenAmount,i=this.loadingQuote||this.loadingPrices||this.loadingTransaction,r=i||e||t||this.inputError;return(0,a.qy)` <wui-flex gap="xs">
  1320. <wui-button
  1321. data-testid="swap-action-button"
  1322. class="action-button"
  1323. fullWidth
  1324. size="lg"
  1325. borderRadius="xs"
  1326. variant=${e?"neutral":"main"}
  1327. .loading=${i}
  1328. .disabled=${r}
  1329. @click=${this.onSwapPreview.bind(this)}
  1330. >
  1331. ${this.actionButtonLabel()}
  1332. </wui-button>
  1333. </wui-flex>`}onSwitchTokens(){n.GN.switchTokens()}onSwapPreview(){if(this.fetchError){n.GN.swapTokens();return}n.En.sendEvent({type:"track",event:"INITIATE_SWAP",properties:{network:this.caipNetworkId||"",swapFromToken:this.sourceToken?.symbol||"",swapToToken:this.toToken?.symbol||"",swapFromAmount:this.sourceTokenAmount||"",swapToAmount:this.toTokenAmount||"",isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),n.IN.push("SwapPreview")}};eU.styles=eM,eD([(0,o.wk)()],eU.prototype,"interval",void 0),eD([(0,o.wk)()],eU.prototype,"detailsOpen",void 0),eD([(0,o.wk)()],eU.prototype,"caipNetworkId",void 0),eD([(0,o.wk)()],eU.prototype,"initialized",void 0),eD([(0,o.wk)()],eU.prototype,"loadingQuote",void 0),eD([(0,o.wk)()],eU.prototype,"loadingPrices",void 0),eD([(0,o.wk)()],eU.prototype,"loadingTransaction",void 0),eD([(0,o.wk)()],eU.prototype,"sourceToken",void 0),eD([(0,o.wk)()],eU.prototype,"sourceTokenAmount",void 0),eD([(0,o.wk)()],eU.prototype,"sourceTokenPriceInUSD",void 0),eD([(0,o.wk)()],eU.prototype,"toToken",void 0),eD([(0,o.wk)()],eU.prototype,"toTokenAmount",void 0),eD([(0,o.wk)()],eU.prototype,"toTokenPriceInUSD",void 0),eD([(0,o.wk)()],eU.prototype,"inputError",void 0),eD([(0,o.wk)()],eU.prototype,"gasPriceInUSD",void 0),eD([(0,o.wk)()],eU.prototype,"fetchError",void 0),eU=eD([(0,r.customElement)("w3m-swap-view")],eU);let e$=(0,a.AH)`
  1334. @keyframes shake {
  1335. 0% {
  1336. transform: translateX(0);
  1337. }
  1338. 25% {
  1339. transform: translateX(3px);
  1340. }
  1341. 50% {
  1342. transform: translateX(-3px);
  1343. }
  1344. 75% {
  1345. transform: translateX(3px);
  1346. }
  1347. 100% {
  1348. transform: translateX(0);
  1349. }
  1350. }
  1351. wui-flex:first-child:not(:only-child) {
  1352. position: relative;
  1353. }
  1354. wui-loading-thumbnail {
  1355. position: absolute;
  1356. }
  1357. wui-visual {
  1358. width: var(--wui-wallet-image-size-lg);
  1359. height: var(--wui-wallet-image-size-lg);
  1360. border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
  1361. position: relative;
  1362. overflow: hidden;
  1363. }
  1364. wui-visual::after {
  1365. content: '';
  1366. display: block;
  1367. width: 100%;
  1368. height: 100%;
  1369. position: absolute;
  1370. inset: 0;
  1371. border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
  1372. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  1373. }
  1374. wui-icon-box {
  1375. position: absolute;
  1376. right: calc(var(--wui-spacing-3xs) * -1);
  1377. bottom: calc(var(--wui-spacing-3xs) * -1);
  1378. opacity: 0;
  1379. transform: scale(0.5);
  1380. transition:
  1381. opacity var(--wui-ease-out-power-2) var(--wui-duration-lg),
  1382. transform var(--wui-ease-out-power-2) var(--wui-duration-lg);
  1383. will-change: opacity, transform;
  1384. }
  1385. wui-text[align='center'] {
  1386. width: 100%;
  1387. padding: 0px var(--wui-spacing-l);
  1388. }
  1389. [data-error='true'] wui-icon-box {
  1390. opacity: 1;
  1391. transform: scale(1);
  1392. }
  1393. [data-error='true'] > wui-flex:first-child {
  1394. animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  1395. }
  1396. [data-retry='false'] wui-link {
  1397. display: none;
  1398. }
  1399. [data-retry='true'] wui-link {
  1400. display: block;
  1401. opacity: 1;
  1402. }
  1403. wui-link {
  1404. padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
  1405. }
  1406. .capitalize {
  1407. text-transform: capitalize;
  1408. }
  1409. `;var eL=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ej=class extends a.WF{constructor(){super(...arguments),this.unsubscribe=[],this.switchToChain=n.IN.state.data?.switchToChain,this.navigateTo=n.IN.state.data?.navigateTo,this.navigateWithReplace=n.IN.state.data?.navigateWithReplace,this.caipNetwork=n.IN.state.data?.network,this.activeChain=n.WB.state.activeChain}firstUpdated(){this.unsubscribe.push(n.WB.subscribeKey("activeChain",e=>this.activeChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.switchToChain?et.oU.CHAIN_NAME_MAP[this.switchToChain]:"supported";if(!this.switchToChain)return null;let t="eip155"===this.switchToChain?"Ethereum":this.switchToChain;return(0,a.qy)`
  1410. <wui-flex
  1411. flexDirection="column"
  1412. alignItems="center"
  1413. .padding=${["3xl","xl","xl","xl"]}
  1414. gap="xl"
  1415. >
  1416. <wui-flex justifyContent="center" flexDirection="column" alignItems="center" gap="xl">
  1417. <wui-visual
  1418. name=${"eip155"===this.switchToChain?"eth":this.switchToChain}
  1419. ></wui-visual>
  1420. <wui-text
  1421. data-testid=${`w3m-switch-active-chain-to-${t}`}
  1422. variant="paragraph-500"
  1423. color="fg-100"
  1424. align="center"
  1425. >Switch to <span class="capitalize">${t}</span></wui-text
  1426. >
  1427. <wui-text variant="small-400" color="fg-200" align="center">
  1428. Connected wallet doesn't support connecting to ${e} chain. You
  1429. need to connect with a different wallet.
  1430. </wui-text>
  1431. <wui-button size="md" @click=${this.switchActiveChain.bind(this)}>Switch</wui-button>
  1432. </wui-flex>
  1433. </wui-flex>
  1434. `}async switchActiveChain(){this.switchToChain&&(this.caipNetwork?await n.WB.switchActiveNetwork(this.caipNetwork):n.WB.setActiveNamespace(this.switchToChain),n.W3.close(),n.W3.open({view:"Connect"}))}};ej.styles=e$,eL([(0,o.MZ)()],ej.prototype,"activeChain",void 0),ej=eL([(0,r.customElement)("w3m-switch-active-chain-view")],ej);let eB=(0,a.AH)`
  1435. :host > wui-flex:first-child {
  1436. overflow-y: auto;
  1437. overflow-x: hidden;
  1438. scrollbar-width: none;
  1439. }
  1440. :host > wui-flex:first-child::-webkit-scrollbar {
  1441. display: none;
  1442. }
  1443. .preview-container,
  1444. .details-container {
  1445. width: 100%;
  1446. }
  1447. .token-image {
  1448. width: 24px;
  1449. height: 24px;
  1450. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  1451. border-radius: 12px;
  1452. }
  1453. wui-loading-hexagon {
  1454. position: absolute;
  1455. }
  1456. .token-item {
  1457. display: flex;
  1458. align-items: center;
  1459. justify-content: center;
  1460. gap: var(--wui-spacing-xxs);
  1461. padding: var(--wui-spacing-xs);
  1462. height: 40px;
  1463. border: none;
  1464. border-radius: 80px;
  1465. background: var(--wui-color-gray-glass-002);
  1466. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  1467. cursor: pointer;
  1468. transition: background 0.2s linear;
  1469. }
  1470. .token-item:hover {
  1471. background: var(--wui-color-gray-glass-005);
  1472. }
  1473. .preview-token-details-container {
  1474. width: 100%;
  1475. }
  1476. .details-row {
  1477. width: 100%;
  1478. padding: var(--wui-spacing-s) var(--wui-spacing-xl);
  1479. border-radius: var(--wui-border-radius-xxs);
  1480. background: var(--wui-color-gray-glass-002);
  1481. }
  1482. .action-buttons-container {
  1483. width: 100%;
  1484. gap: var(--wui-spacing-xs);
  1485. }
  1486. .action-buttons-container > button {
  1487. display: flex;
  1488. align-items: center;
  1489. justify-content: center;
  1490. background: transparent;
  1491. height: 48px;
  1492. border-radius: var(--wui-border-radius-xs);
  1493. border: none;
  1494. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  1495. }
  1496. .action-buttons-container > button:disabled {
  1497. opacity: 0.8;
  1498. cursor: not-allowed;
  1499. }
  1500. .action-button > wui-loading-spinner {
  1501. display: inline-block;
  1502. }
  1503. .cancel-button:hover,
  1504. .action-button:hover {
  1505. cursor: pointer;
  1506. }
  1507. .action-buttons-container > wui-button.cancel-button {
  1508. flex: 2;
  1509. }
  1510. .action-buttons-container > wui-button.action-button {
  1511. flex: 4;
  1512. }
  1513. .action-buttons-container > button.action-button > wui-text {
  1514. color: white;
  1515. }
  1516. .details-container > wui-flex {
  1517. background: var(--wui-color-gray-glass-002);
  1518. border-radius: var(--wui-border-radius-xxs);
  1519. width: 100%;
  1520. }
  1521. .details-container > wui-flex > button {
  1522. border: none;
  1523. background: none;
  1524. padding: var(--wui-spacing-s);
  1525. border-radius: var(--wui-border-radius-xxs);
  1526. transition: background 0.2s linear;
  1527. }
  1528. .details-container > wui-flex > button:hover {
  1529. background: var(--wui-color-gray-glass-002);
  1530. }
  1531. .details-content-container {
  1532. padding: var(--wui-spacing-1xs);
  1533. display: flex;
  1534. align-items: center;
  1535. justify-content: center;
  1536. }
  1537. .details-content-container > wui-flex {
  1538. width: 100%;
  1539. }
  1540. .details-row {
  1541. width: 100%;
  1542. padding: var(--wui-spacing-s) var(--wui-spacing-xl);
  1543. border-radius: var(--wui-border-radius-xxs);
  1544. background: var(--wui-color-gray-glass-002);
  1545. }
  1546. `;var eW=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eq=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!0,this.approvalTransaction=n.GN.state.approvalTransaction,this.swapTransaction=n.GN.state.swapTransaction,this.sourceToken=n.GN.state.sourceToken,this.sourceTokenAmount=n.GN.state.sourceTokenAmount??"",this.sourceTokenPriceInUSD=n.GN.state.sourceTokenPriceInUSD,this.toToken=n.GN.state.toToken,this.toTokenAmount=n.GN.state.toTokenAmount??"",this.toTokenPriceInUSD=n.GN.state.toTokenPriceInUSD,this.caipNetwork=n.WB.state.activeCaipNetwork,this.balanceSymbol=n.Uj.state.balanceSymbol,this.gasPriceInUSD=n.GN.state.gasPriceInUSD,this.inputError=n.GN.state.inputError,this.loadingQuote=n.GN.state.loadingQuote,this.loadingApprovalTransaction=n.GN.state.loadingApprovalTransaction,this.loadingBuildTransaction=n.GN.state.loadingBuildTransaction,this.loadingTransaction=n.GN.state.loadingTransaction,this.unsubscribe.push(n.Uj.subscribeKey("balanceSymbol",e=>{this.balanceSymbol!==e&&n.IN.goBack()}),n.WB.subscribeKey("activeCaipNetwork",e=>{this.caipNetwork!==e&&(this.caipNetwork=e)}),n.GN.subscribe(e=>{this.approvalTransaction=e.approvalTransaction,this.swapTransaction=e.swapTransaction,this.sourceToken=e.sourceToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toToken=e.toToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.sourceTokenAmount=e.sourceTokenAmount??"",this.toTokenAmount=e.toTokenAmount??"",this.inputError=e.inputError,e.inputError&&n.IN.goBack(),this.loadingQuote=e.loadingQuote,this.loadingApprovalTransaction=e.loadingApprovalTransaction,this.loadingBuildTransaction=e.loadingBuildTransaction,this.loadingTransaction=e.loadingTransaction}))}firstUpdated(){n.GN.getTransaction(),this.refreshTransaction()}disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,a.qy)`
  1547. <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s">
  1548. ${this.templateSwap()}
  1549. </wui-flex>
  1550. `}refreshTransaction(){this.interval=setInterval(()=>{n.GN.getApprovalLoadingState()||n.GN.getTransaction()},1e4)}templateSwap(){let e=`${r.UiHelperUtil.formatNumberToLocalString(parseFloat(this.sourceTokenAmount))} ${this.sourceToken?.symbol}`,t=`${r.UiHelperUtil.formatNumberToLocalString(parseFloat(this.toTokenAmount))} ${this.toToken?.symbol}`,i=parseFloat(this.sourceTokenAmount)*this.sourceTokenPriceInUSD,n=parseFloat(this.toTokenAmount)*this.toTokenPriceInUSD-(this.gasPriceInUSD||0),o=r.UiHelperUtil.formatNumberToLocalString(i),s=r.UiHelperUtil.formatNumberToLocalString(n),c=this.loadingQuote||this.loadingBuildTransaction||this.loadingTransaction||this.loadingApprovalTransaction;return(0,a.qy)`
  1551. <wui-flex flexDirection="column" alignItems="center" gap="l">
  1552. <wui-flex class="preview-container" flexDirection="column" alignItems="flex-start" gap="l">
  1553. <wui-flex
  1554. class="preview-token-details-container"
  1555. alignItems="center"
  1556. justifyContent="space-between"
  1557. gap="l"
  1558. >
  1559. <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs">
  1560. <wui-text variant="small-400" color="fg-150">Send</wui-text>
  1561. <wui-text variant="paragraph-400" color="fg-100">$${o}</wui-text>
  1562. </wui-flex>
  1563. <wui-token-button
  1564. flexDirection="row-reverse"
  1565. text=${e}
  1566. imageSrc=${this.sourceToken?.logoUri}
  1567. >
  1568. </wui-token-button>
  1569. </wui-flex>
  1570. <wui-icon name="recycleHorizontal" color="fg-200" size="md"></wui-icon>
  1571. <wui-flex
  1572. class="preview-token-details-container"
  1573. alignItems="center"
  1574. justifyContent="space-between"
  1575. gap="l"
  1576. >
  1577. <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs">
  1578. <wui-text variant="small-400" color="fg-150">Receive</wui-text>
  1579. <wui-text variant="paragraph-400" color="fg-100">$${s}</wui-text>
  1580. </wui-flex>
  1581. <wui-token-button
  1582. flexDirection="row-reverse"
  1583. text=${t}
  1584. imageSrc=${this.toToken?.logoUri}
  1585. >
  1586. </wui-token-button>
  1587. </wui-flex>
  1588. </wui-flex>
  1589. ${this.templateDetails()}
  1590. <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="xs">
  1591. <wui-icon size="sm" color="fg-200" name="infoCircle"></wui-icon>
  1592. <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text>
  1593. </wui-flex>
  1594. <wui-flex
  1595. class="action-buttons-container"
  1596. flexDirection="row"
  1597. alignItems="center"
  1598. justifyContent="space-between"
  1599. gap="xs"
  1600. >
  1601. <wui-button
  1602. class="cancel-button"
  1603. fullWidth
  1604. size="lg"
  1605. borderRadius="xs"
  1606. variant="neutral"
  1607. @click=${this.onCancelTransaction.bind(this)}
  1608. >
  1609. <wui-text variant="paragraph-600" color="fg-200">Cancel</wui-text>
  1610. </wui-button>
  1611. <wui-button
  1612. class="action-button"
  1613. fullWidth
  1614. size="lg"
  1615. borderRadius="xs"
  1616. variant="main"
  1617. ?loading=${c}
  1618. ?disabled=${c}
  1619. @click=${this.onSendTransaction.bind(this)}
  1620. >
  1621. <wui-text variant="paragraph-600" color="inverse-100">
  1622. ${this.actionButtonLabel()}
  1623. </wui-text>
  1624. </wui-button>
  1625. </wui-flex>
  1626. </wui-flex>
  1627. `}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,a.qy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}actionButtonLabel(){return this.loadingApprovalTransaction?"Approving...":this.approvalTransaction?"Approve":"Swap"}onCancelTransaction(){n.IN.goBack()}onSendTransaction(){this.approvalTransaction?n.GN.sendTransactionForApproval(this.approvalTransaction):n.GN.sendTransactionForSwap(this.swapTransaction)}};eq.styles=eB,eW([(0,o.wk)()],eq.prototype,"interval",void 0),eW([(0,o.wk)()],eq.prototype,"detailsOpen",void 0),eW([(0,o.wk)()],eq.prototype,"approvalTransaction",void 0),eW([(0,o.wk)()],eq.prototype,"swapTransaction",void 0),eW([(0,o.wk)()],eq.prototype,"sourceToken",void 0),eW([(0,o.wk)()],eq.prototype,"sourceTokenAmount",void 0),eW([(0,o.wk)()],eq.prototype,"sourceTokenPriceInUSD",void 0),eW([(0,o.wk)()],eq.prototype,"toToken",void 0),eW([(0,o.wk)()],eq.prototype,"toTokenAmount",void 0),eW([(0,o.wk)()],eq.prototype,"toTokenPriceInUSD",void 0),eW([(0,o.wk)()],eq.prototype,"caipNetwork",void 0),eW([(0,o.wk)()],eq.prototype,"balanceSymbol",void 0),eW([(0,o.wk)()],eq.prototype,"gasPriceInUSD",void 0),eW([(0,o.wk)()],eq.prototype,"inputError",void 0),eW([(0,o.wk)()],eq.prototype,"loadingQuote",void 0),eW([(0,o.wk)()],eq.prototype,"loadingApprovalTransaction",void 0),eW([(0,o.wk)()],eq.prototype,"loadingBuildTransaction",void 0),eW([(0,o.wk)()],eq.prototype,"loadingTransaction",void 0),eq=eW([(0,r.customElement)("w3m-swap-preview-view")],eq);let eH=(0,a.AH)`
  1628. :host {
  1629. --tokens-scroll--top-opacity: 0;
  1630. --tokens-scroll--bottom-opacity: 1;
  1631. --suggested-tokens-scroll--left-opacity: 0;
  1632. --suggested-tokens-scroll--right-opacity: 1;
  1633. }
  1634. :host > wui-flex:first-child {
  1635. overflow-y: hidden;
  1636. overflow-x: hidden;
  1637. scrollbar-width: none;
  1638. scrollbar-height: none;
  1639. }
  1640. :host > wui-flex:first-child::-webkit-scrollbar {
  1641. display: none;
  1642. }
  1643. wui-loading-hexagon {
  1644. position: absolute;
  1645. }
  1646. .suggested-tokens-container {
  1647. overflow-x: auto;
  1648. mask-image: linear-gradient(
  1649. to right,
  1650. rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 0px,
  1651. rgba(200, 200, 200, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 1px,
  1652. black 50px,
  1653. black 90px,
  1654. black calc(100% - 90px),
  1655. black calc(100% - 50px),
  1656. rgba(155, 155, 155, calc(1 - var(--suggested-tokens-scroll--right-opacity))) calc(100% - 1px),
  1657. rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--right-opacity))) 100%
  1658. );
  1659. }
  1660. .suggested-tokens-container::-webkit-scrollbar {
  1661. display: none;
  1662. }
  1663. .tokens-container {
  1664. border-top: 1px solid var(--wui-color-gray-glass-005);
  1665. height: 100%;
  1666. max-height: 390px;
  1667. }
  1668. .tokens {
  1669. width: 100%;
  1670. overflow-y: auto;
  1671. mask-image: linear-gradient(
  1672. to bottom,
  1673. rgba(0, 0, 0, calc(1 - var(--tokens-scroll--top-opacity))) 0px,
  1674. rgba(200, 200, 200, calc(1 - var(--tokens-scroll--top-opacity))) 1px,
  1675. black 50px,
  1676. black 90px,
  1677. black calc(100% - 90px),
  1678. black calc(100% - 50px),
  1679. rgba(155, 155, 155, calc(1 - var(--tokens-scroll--bottom-opacity))) calc(100% - 1px),
  1680. rgba(0, 0, 0, calc(1 - var(--tokens-scroll--bottom-opacity))) 100%
  1681. );
  1682. }
  1683. .network-search-input,
  1684. .select-network-button {
  1685. height: 40px;
  1686. }
  1687. .select-network-button {
  1688. border: none;
  1689. display: flex;
  1690. flex-direction: row;
  1691. align-items: center;
  1692. justify-content: center;
  1693. gap: var(--wui-spacing-xs);
  1694. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  1695. background-color: transparent;
  1696. border-radius: var(--wui-border-radius-xxs);
  1697. padding: var(--wui-spacing-xs);
  1698. align-items: center;
  1699. transition: background-color 0.2s linear;
  1700. }
  1701. .select-network-button:hover {
  1702. background-color: var(--wui-color-gray-glass-002);
  1703. }
  1704. .select-network-button > wui-image {
  1705. width: 26px;
  1706. height: 26px;
  1707. border-radius: var(--wui-border-radius-xs);
  1708. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  1709. }
  1710. `;var ez=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eF=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.targetToken=n.IN.state.data?.target,this.sourceToken=n.GN.state.sourceToken,this.sourceTokenAmount=n.GN.state.sourceTokenAmount,this.toToken=n.GN.state.toToken,this.myTokensWithBalance=n.GN.state.myTokensWithBalance,this.popularTokens=n.GN.state.popularTokens,this.searchValue="",this.unsubscribe.push(n.GN.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.myTokensWithBalance=e.myTokensWithBalance}))}updated(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e?.addEventListener("scroll",this.handleSuggestedTokensScroll.bind(this));let t=this.renderRoot?.querySelector(".tokens");t?.addEventListener("scroll",this.handleTokenListScroll.bind(this))}disconnectedCallback(){super.disconnectedCallback();let e=this.renderRoot?.querySelector(".suggested-tokens-container"),t=this.renderRoot?.querySelector(".tokens");e?.removeEventListener("scroll",this.handleSuggestedTokensScroll.bind(this)),t?.removeEventListener("scroll",this.handleTokenListScroll.bind(this)),clearInterval(this.interval)}render(){return(0,a.qy)`
  1711. <wui-flex flexDirection="column" gap="s">
  1712. ${this.templateSearchInput()} ${this.templateSuggestedTokens()} ${this.templateTokens()}
  1713. </wui-flex>
  1714. `}onSelectToken(e){"sourceToken"===this.targetToken?n.GN.setSourceToken(e):(n.GN.setToToken(e),this.sourceToken&&this.sourceTokenAmount&&n.GN.swapTokens()),n.IN.goBack()}templateSearchInput(){return(0,a.qy)`
  1715. <wui-flex .padding=${["3xs","s","0","s"]} gap="xs">
  1716. <wui-input-text
  1717. data-testid="swap-select-token-search-input"
  1718. class="network-search-input"
  1719. size="sm"
  1720. placeholder="Search token"
  1721. icon="search"
  1722. .value=${this.searchValue}
  1723. @inputChange=${this.onSearchInputChange.bind(this)}
  1724. ></wui-input-text>
  1725. </wui-flex>
  1726. `}templateTokens(){let e=this.myTokensWithBalance?Object.values(this.myTokensWithBalance):[],t=this.popularTokens?this.popularTokens:[],i=this.filterTokensWithText(e,this.searchValue),r=this.filterTokensWithText(t,this.searchValue);return(0,a.qy)`
  1727. <wui-flex class="tokens-container">
  1728. <wui-flex class="tokens" .padding=${["0","s","s","s"]} flexDirection="column">
  1729. ${i?.length>0?(0,a.qy)`
  1730. <wui-flex justifyContent="flex-start" padding="s">
  1731. <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text>
  1732. </wui-flex>
  1733. ${i.map(e=>{let t=e.symbol===this.sourceToken?.symbol||e.symbol===this.toToken?.symbol;return(0,a.qy)`
  1734. <wui-token-list-item
  1735. data-testid="swap-select-token-item-${e.symbol}"
  1736. name=${e.name}
  1737. ?disabled=${t}
  1738. symbol=${e.symbol}
  1739. price=${e?.price}
  1740. amount=${e?.quantity?.numeric}
  1741. imageSrc=${e.logoUri}
  1742. @click=${()=>{t||this.onSelectToken(e)}}
  1743. >
  1744. </wui-token-list-item>
  1745. `})}
  1746. `:null}
  1747. <wui-flex justifyContent="flex-start" padding="s">
  1748. <wui-text variant="paragraph-500" color="fg-200">Tokens</wui-text>
  1749. </wui-flex>
  1750. ${r?.length>0?r.map(e=>(0,a.qy)`
  1751. <wui-token-list-item
  1752. data-testid="swap-select-token-item-${e.symbol}"
  1753. name=${e.name}
  1754. symbol=${e.symbol}
  1755. imageSrc=${e.logoUri}
  1756. @click=${()=>this.onSelectToken(e)}
  1757. >
  1758. </wui-token-list-item>
  1759. `):null}
  1760. </wui-flex>
  1761. </wui-flex>
  1762. `}templateSuggestedTokens(){let e=n.GN.state.suggestedTokens?n.GN.state.suggestedTokens.slice(0,8):null;return e?(0,a.qy)`
  1763. <wui-flex class="suggested-tokens-container" .padding=${["0","s","0","s"]} gap="xs">
  1764. ${e.map(e=>(0,a.qy)`
  1765. <wui-token-button
  1766. text=${e.symbol}
  1767. imageSrc=${e.logoUri}
  1768. @click=${()=>this.onSelectToken(e)}
  1769. >
  1770. </wui-token-button>
  1771. `)}
  1772. </wui-flex>
  1773. `:null}onSearchInputChange(e){this.searchValue=e.detail}handleSuggestedTokensScroll(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e&&(e.style.setProperty("--suggested-tokens-scroll--left-opacity",r.MathUtil.interpolate([0,100],[0,1],e.scrollLeft).toString()),e.style.setProperty("--suggested-tokens-scroll--right-opacity",r.MathUtil.interpolate([0,100],[0,1],e.scrollWidth-e.scrollLeft-e.offsetWidth).toString()))}handleTokenListScroll(){let e=this.renderRoot?.querySelector(".tokens");e&&(e.style.setProperty("--tokens-scroll--top-opacity",r.MathUtil.interpolate([0,100],[0,1],e.scrollTop).toString()),e.style.setProperty("--tokens-scroll--bottom-opacity",r.MathUtil.interpolate([0,100],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString()))}filterTokensWithText(e,t){return e.filter(e=>`${e.symbol} ${e.name} ${e.address}`.toLowerCase().includes(t.toLowerCase()))}};eF.styles=eH,ez([(0,o.wk)()],eF.prototype,"interval",void 0),ez([(0,o.wk)()],eF.prototype,"targetToken",void 0),ez([(0,o.wk)()],eF.prototype,"sourceToken",void 0),ez([(0,o.wk)()],eF.prototype,"sourceTokenAmount",void 0),ez([(0,o.wk)()],eF.prototype,"toToken",void 0),ez([(0,o.wk)()],eF.prototype,"myTokensWithBalance",void 0),ez([(0,o.wk)()],eF.prototype,"popularTokens",void 0),ez([(0,o.wk)()],eF.prototype,"searchValue",void 0),eF=ez([(0,r.customElement)("w3m-swap-select-token-view")],eF);let eZ=(0,a.AH)`
  1774. :host > wui-flex:first-child {
  1775. height: 500px;
  1776. overflow-y: auto;
  1777. overflow-x: hidden;
  1778. scrollbar-width: none;
  1779. }
  1780. :host > wui-flex:first-child::-webkit-scrollbar {
  1781. display: none;
  1782. }
  1783. `,eV=class extends a.WF{render(){return(0,a.qy)`
  1784. <wui-flex flexDirection="column" .padding=${["0","m","m","m"]} gap="s">
  1785. <w3m-activity-list page="activity"></w3m-activity-list>
  1786. </wui-flex>
  1787. `}};eV.styles=eZ,eV=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-transactions-view")],eV);let eK=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}],eG=class extends a.WF{render(){return(0,a.qy)`
  1788. <wui-flex
  1789. flexDirection="column"
  1790. .padding=${["xxl","xl","xl","xl"]}
  1791. alignItems="center"
  1792. gap="xl"
  1793. >
  1794. <w3m-help-widget .data=${eK}></w3m-help-widget>
  1795. <wui-button
  1796. variant="main"
  1797. size="md"
  1798. @click=${()=>{n.wE.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}}
  1799. >
  1800. Learn more
  1801. <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
  1802. </wui-button>
  1803. </wui-flex>
  1804. `}};eG=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-what-is-a-network-view")],eG);let eJ=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}],eY=class extends a.WF{render(){return(0,a.qy)`
  1805. <wui-flex
  1806. flexDirection="column"
  1807. .padding=${["xxl","xl","xl","xl"]}
  1808. alignItems="center"
  1809. gap="xl"
  1810. >
  1811. <w3m-help-widget .data=${eJ}></w3m-help-widget>
  1812. <wui-button variant="main" size="md" @click=${this.onGetWallet.bind(this)}>
  1813. <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon>
  1814. Get a wallet
  1815. </wui-button>
  1816. </wui-flex>
  1817. `}onGetWallet(){n.En.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),n.IN.push("GetWallet")}};eY=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-what-is-a-wallet-view")],eY);let eQ=class extends a.WF{render(){return(0,a.qy)`
  1818. <wui-flex
  1819. flexDirection="column"
  1820. .padding=${["xxl","3xl","xl","3xl"]}
  1821. alignItems="center"
  1822. gap="xl"
  1823. >
  1824. <wui-visual name="onrampCard"></wui-visual>
  1825. <wui-flex flexDirection="column" gap="xs" alignItems="center">
  1826. <wui-text align="center" variant="paragraph-500" color="fg-100">
  1827. Quickly and easily buy digital assets!
  1828. </wui-text>
  1829. <wui-text align="center" variant="small-400" color="fg-200">
  1830. Simply select your preferred onramp provider and add digital assets to your account
  1831. using your credit card or bank transfer
  1832. </wui-text>
  1833. </wui-flex>
  1834. <wui-button @click=${n.IN.goBack}>
  1835. <wui-icon size="sm" color="inherit" name="add" slot="iconLeft"></wui-icon>
  1836. Buy
  1837. </wui-button>
  1838. </wui-flex>
  1839. `}};eQ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-what-is-a-buy-view")],eQ);let eX=(0,a.AH)`
  1840. wui-loading-spinner {
  1841. margin: 9px auto;
  1842. }
  1843. .email-display,
  1844. .email-display wui-text {
  1845. max-width: 100%;
  1846. }
  1847. `;var e0=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e1=class extends a.WF{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=D.QH.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=n.IN.state.data?.email,this.authConnector=n.aK.getAuthConnector()}render(){if(!this.email)throw Error("w3m-email-otp-widget: No email provided");let e=!!this.timeoutTimeLeft,t=this.getFooterLabels(e);return(0,a.qy)`
  1848. <wui-flex
  1849. flexDirection="column"
  1850. alignItems="center"
  1851. .padding=${["l","0","l","0"]}
  1852. gap="l"
  1853. >
  1854. <wui-flex
  1855. class="email-display"
  1856. flexDirection="column"
  1857. alignItems="center"
  1858. .padding=${["0","xl","0","xl"]}
  1859. >
  1860. <wui-text variant="paragraph-400" color="fg-100" align="center">
  1861. Enter the code we sent to
  1862. </wui-text>
  1863. <wui-text variant="paragraph-500" color="fg-100" lineClamp="1" align="center">
  1864. ${this.email}
  1865. </wui-text>
  1866. </wui-flex>
  1867. <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text>
  1868. ${this.loading?(0,a.qy)`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:(0,a.qy)` <wui-flex flexDirection="column" alignItems="center" gap="xs">
  1869. <wui-otp
  1870. dissabled
  1871. length="6"
  1872. @inputChange=${this.onOtpInputChange.bind(this)}
  1873. .otp=${this.otp}
  1874. ></wui-otp>
  1875. ${this.error?(0,a.qy)`
  1876. <wui-text variant="small-400" align="center" color="error-100">
  1877. ${this.error}. Try Again
  1878. </wui-text>
  1879. `:null}
  1880. </wui-flex>`}
  1881. <wui-flex alignItems="center" gap="xs">
  1882. <wui-text variant="small-400" color="fg-200">${t.title}</wui-text>
  1883. <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}>
  1884. ${t.action}
  1885. </wui-link>
  1886. </wui-flex>
  1887. </wui-flex>
  1888. `}startOTPTimeout(){this.timeoutTimeLeft=D.QH.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=D.QH.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){try{!this.loading&&(this.otp=e.detail,this.authConnector&&6===this.otp.length&&(this.loading=!0,await this.onOtpSubmit?.(this.otp)))}catch(e){this.error=n.wE.parseError(e),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!n.aK.getAuthConnector()||!this.email)throw Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),n.Pt.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){n.Pt.showError(e)}finally{this.loading=!1}}getFooterLabels(e){return this.onStartOver?{title:"Something wrong?",action:`Try again ${e?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}`}}};e1.styles=eX,e0([(0,o.wk)()],e1.prototype,"loading",void 0),e0([(0,o.wk)()],e1.prototype,"timeoutTimeLeft",void 0),e0([(0,o.wk)()],e1.prototype,"error",void 0),e1=e0([(0,r.customElement)("w3m-email-otp-widget")],e1);let e2=class extends e1{constructor(){super(...arguments),this.onOtpSubmit=async e=>{try{if(this.authConnector){if(await this.authConnector.provider.connectOtp({otp:e}),n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n.WB.state.activeChain)await n.x4.connectExternal(this.authConnector,n.WB.state.activeChain);else throw Error("Active chain is not set on ChainControll");n.En.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),n.Hd.state.siwx||n.W3.close()}}catch(e){throw n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};e2=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-email-verify-otp-view")],e2);let e3=(0,a.AH)`
  1889. wui-icon-box {
  1890. height: var(--wui-icon-box-size-xl);
  1891. width: var(--wui-icon-box-size-xl);
  1892. }
  1893. `;var e5=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e4=class extends a.WF{constructor(){super(),this.email=n.IN.state.data?.email,this.authConnector=n.aK.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw Error("w3m-email-verify-device-view: No email provided");if(!this.authConnector)throw Error("w3m-email-verify-device-view: No auth connector provided");return(0,a.qy)`
  1894. <wui-flex
  1895. flexDirection="column"
  1896. alignItems="center"
  1897. .padding=${["xxl","s","xxl","s"]}
  1898. gap="l"
  1899. >
  1900. <wui-icon-box
  1901. size="xl"
  1902. iconcolor="accent-100"
  1903. backgroundcolor="accent-100"
  1904. icon="verify"
  1905. background="opaque"
  1906. ></wui-icon-box>
  1907. <wui-flex flexDirection="column" alignItems="center" gap="s">
  1908. <wui-flex flexDirection="column" alignItems="center">
  1909. <wui-text variant="paragraph-400" color="fg-100">
  1910. Approve the login link we sent to
  1911. </wui-text>
  1912. <wui-text variant="paragraph-400" color="fg-100"><b>${this.email}</b></wui-text>
  1913. </wui-flex>
  1914. <wui-text variant="small-400" color="fg-200" align="center">
  1915. The code expires in 20 minutes
  1916. </wui-text>
  1917. <wui-flex alignItems="center" id="w3m-resend-section" gap="xs">
  1918. <wui-text variant="small-400" color="fg-100" align="center">
  1919. Didn't receive it?
  1920. </wui-text>
  1921. <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}>
  1922. Resend email
  1923. </wui-link>
  1924. </wui-flex>
  1925. </wui-flex>
  1926. </wui-flex>
  1927. `}async listenForDeviceApproval(){if(this.authConnector)try{await this.authConnector.provider.connectDevice(),n.En.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),n.IN.replace("EmailVerifyOtp",{email:this.email})}catch(e){n.IN.goBack()}}async onResendCode(){try{if(!this.loading){if(!this.authConnector||!this.email)throw Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.authConnector.provider.connectEmail({email:this.email}),this.listenForDeviceApproval(),n.Pt.showSuccess("Code email resent")}}catch(e){n.Pt.showError(e)}finally{this.loading=!1}}};e4.styles=e3,e5([(0,o.wk)()],e4.prototype,"loading",void 0),e4=e5([(0,r.customElement)("w3m-email-verify-device-view")],e4);let e6=(0,a.AH)`
  1928. div {
  1929. width: 100%;
  1930. }
  1931. [data-ready='false'] {
  1932. transform: scale(1.05);
  1933. }
  1934. @media (max-width: 430px) {
  1935. [data-ready='false'] {
  1936. transform: translateY(-50px);
  1937. }
  1938. }
  1939. `;var e8=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e9=class extends a.WF{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(n.W3.subscribeKey("open",e=>{e||(this.onHideIframe(),n.IN.popTransactionStack())}),n.W3.subscribeKey("shake",e=>{e?this.iframe.style.animation="w3m-shake 500ms var(--wui-ease-out-power-2)":this.iframe.style.animation="none"}))}disconnectedCallback(){this.onHideIframe(),this.unsubscribe.forEach(e=>e()),this.bodyObserver?.unobserve(window.document.body)}async firstUpdated(){await this.syncTheme(),this.iframe.style.display="block";let e=this?.renderRoot?.querySelector("div");this.bodyObserver=new ResizeObserver(t=>{let i=t?.[0]?.contentBoxSize,r=i?.[0]?.inlineSize;this.iframe.style.height="600px",e.style.height="600px",r&&r<=430?(this.iframe.style.width="100%",this.iframe.style.left="0px",this.iframe.style.bottom="0px",this.iframe.style.top="unset"):(this.iframe.style.width="360px",this.iframe.style.left="calc(50% - 180px)",this.iframe.style.top="calc(50% - 300px + 32px)",this.iframe.style.bottom="unset"),this.ready=!0,this.onShowIframe()}),this.bodyObserver.observe(window.document.body)}render(){return(0,a.qy)`<div data-ready=${this.ready} id="w3m-frame-container"></div>`}onShowIframe(){let e=window.innerWidth<=430;this.iframe.style.animation=e?"w3m-iframe-zoom-in-mobile 200ms var(--wui-ease-out-power-2)":"w3m-iframe-zoom-in 200ms var(--wui-ease-out-power-2)"}onHideIframe(){this.iframe.style.display="none",this.iframe.style.animation="w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)"}async syncTheme(){let e=n.aK.getAuthConnector();if(e){let t=n.Wn.getSnapshot().themeMode,i=n.Wn.getSnapshot().themeVariables;await e.provider.syncTheme({themeVariables:i,w3mThemeVariables:(0,et.o_)(i,t)})}}};e9.styles=e6,e8([(0,o.wk)()],e9.prototype,"ready",void 0),e9=e8([(0,r.customElement)("w3m-approve-transaction-view")],e9);let e7=class extends a.WF{render(){return(0,a.qy)`
  1940. <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl">
  1941. <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text>
  1942. <wui-chip
  1943. icon="externalLink"
  1944. variant="fill"
  1945. href=${n.oU.SECURE_SITE_DASHBOARD}
  1946. imageSrc=${n.oU.SECURE_SITE_FAVICON}
  1947. data-testid="w3m-secure-website-button"
  1948. >
  1949. </wui-chip>
  1950. <wui-text variant="small-400" color="fg-200">
  1951. You will have to reconnect for security reasons
  1952. </wui-text>
  1953. </wui-flex>
  1954. `}};e7=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-upgrade-wallet-view")],e7);var te=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tt=class extends a.WF{constructor(){super(...arguments),this.authConnector=n.aK.getAuthConnector(),this.loading=!1,this.setPreferSmartAccount=async()=>{if(this.authConnector)try{this.loading=!0,await n.x4.setPreferredAccountType(D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT),this.loading=!1,n.IN.push("Account")}catch(e){n.Pt.showError("Error upgrading to smart account")}}}render(){return(0,a.qy)`
  1955. <wui-flex
  1956. flexDirection="column"
  1957. alignItems="center"
  1958. gap="xxl"
  1959. .padding=${["0","0","l","0"]}
  1960. >
  1961. ${this.onboardingTemplate()} ${this.buttonsTemplate()}
  1962. <wui-link
  1963. @click=${()=>{n.wE.openHref(et.TC.URLS.FAQ,"_blank")}}
  1964. >
  1965. Learn more
  1966. <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
  1967. </wui-link>
  1968. </wui-flex>
  1969. `}onboardingTemplate(){return(0,a.qy)` <wui-flex
  1970. flexDirection="column"
  1971. gap="xxl"
  1972. alignItems="center"
  1973. .padding=${["0","xxl","0","xxl"]}
  1974. >
  1975. <wui-flex gap="s" alignItems="center" justifyContent="center">
  1976. <wui-visual name="google"></wui-visual>
  1977. <wui-visual name="pencil"></wui-visual>
  1978. <wui-visual name="lightbulb"></wui-visual>
  1979. </wui-flex>
  1980. <wui-flex flexDirection="column" alignItems="center" gap="s">
  1981. <wui-text align="center" variant="medium-600" color="fg-100">
  1982. Discover Smart Accounts
  1983. </wui-text>
  1984. <wui-text align="center" variant="paragraph-400" color="fg-100">
  1985. Access advanced features such as username, social login, improved security and a smoother
  1986. user experience!
  1987. </wui-text>
  1988. </wui-flex>
  1989. </wui-flex>`}buttonsTemplate(){return(0,a.qy)`<wui-flex .padding=${["0","2l","0","2l"]} gap="s">
  1990. <wui-button
  1991. variant="accent"
  1992. @click=${this.redirectToAccount.bind(this)}
  1993. size="lg"
  1994. borderRadius="xs"
  1995. >
  1996. Do it later
  1997. </wui-button>
  1998. <wui-button
  1999. .loading=${this.loading}
  2000. size="lg"
  2001. borderRadius="xs"
  2002. @click=${this.setPreferSmartAccount.bind(this)}
  2003. >Continue
  2004. </wui-button>
  2005. </wui-flex>`}redirectToAccount(){n.IN.push("Account")}};te([(0,o.wk)()],tt.prototype,"authConnector",void 0),te([(0,o.wk)()],tt.prototype,"loading",void 0),tt=te([(0,r.customElement)("w3m-upgrade-to-smart-account-view")],tt);let ti=(0,a.AH)`
  2006. wui-email-input {
  2007. width: 100%;
  2008. }
  2009. form {
  2010. width: 100%;
  2011. display: block;
  2012. position: relative;
  2013. }
  2014. `;var tr=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tn=class extends a.WF{constructor(){super(...arguments),this.formRef=(0,eh._)(),this.initialEmail=n.IN.state.data?.email??"",this.email="",this.loading=!1}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return(0,a.qy)`
  2015. <wui-flex flexDirection="column" padding="m" gap="m">
  2016. <form ${(0,eh.K)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}>
  2017. <wui-email-input
  2018. value=${this.initialEmail}
  2019. .disabled=${this.loading}
  2020. @inputChange=${this.onEmailInputChange.bind(this)}
  2021. >
  2022. </wui-email-input>
  2023. <input type="submit" hidden />
  2024. </form>
  2025. <wui-flex gap="s">
  2026. <wui-button size="md" variant="neutral" fullWidth @click=${n.IN.goBack}>
  2027. Cancel
  2028. </wui-button>
  2029. <wui-button
  2030. size="md"
  2031. variant="main"
  2032. fullWidth
  2033. @click=${this.onSubmitEmail.bind(this)}
  2034. .disabled=${!e}
  2035. .loading=${this.loading}
  2036. >
  2037. Save
  2038. </wui-button>
  2039. </wui-flex>
  2040. </wui-flex>
  2041. `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=n.aK.getAuthConnector();if(!t)throw Error("w3m-update-email-wallet: Auth connector not found");let i=await t.provider.updateEmail({email:this.email});n.En.sendEvent({type:"track",event:"EMAIL_EDIT"}),"VERIFY_SECONDARY_OTP"===i.action?n.IN.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email}):n.IN.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email})}catch(e){n.Pt.showError(e),this.loading=!1}}};tn.styles=ti,tr([(0,o.wk)()],tn.prototype,"email",void 0),tr([(0,o.wk)()],tn.prototype,"loading",void 0),tn=tr([(0,r.customElement)("w3m-update-email-wallet-view")],tn);let ta=class extends e1{constructor(){super(),this.email=n.IN.state.data?.email,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:e}),n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n.IN.replace("UpdateEmailSecondaryOtp",n.IN.state.data))}catch(e){throw n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{n.IN.replace("UpdateEmailWallet",n.IN.state.data)}}};ta=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-update-email-primary-otp-view")],ta);let to=class extends e1{constructor(){super(),this.email=n.IN.state.data?.newEmail,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:e}),n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n.IN.reset("Account"))}catch(e){throw n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{n.IN.replace("UpdateEmailWallet",n.IN.state.data)}}};to=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-update-email-secondary-otp-view")],to);let ts=(0,a.AH)`
  2042. :host > wui-flex {
  2043. max-height: clamp(360px, 540px, 80vh);
  2044. overflow: scroll;
  2045. scrollbar-width: none;
  2046. }
  2047. :host > wui-flex::-webkit-scrollbar {
  2048. display: none;
  2049. }
  2050. `;var tc=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tl=class extends a.WF{constructor(){super(...arguments),this.swapUnsupportedChain=n.IN.state.data?.swapUnsupportedChain,this.disconecting=!1}render(){return(0,a.qy)`
  2051. <wui-flex class="container" flexDirection="column" gap="0">
  2052. <wui-flex
  2053. class="container"
  2054. flexDirection="column"
  2055. .padding=${["m","xl","xs","xl"]}
  2056. alignItems="center"
  2057. gap="xl"
  2058. >
  2059. ${this.descriptionTemplate()}
  2060. </wui-flex>
  2061. <wui-flex flexDirection="column" padding="s" gap="xs">
  2062. ${this.networksTemplate()}
  2063. </wui-flex>
  2064. <wui-separator text="or"></wui-separator>
  2065. <wui-flex flexDirection="column" padding="s" gap="xs">
  2066. <wui-list-item
  2067. variant="icon"
  2068. iconVariant="overlay"
  2069. icon="disconnect"
  2070. ?chevron=${!1}
  2071. .loading=${this.disconecting}
  2072. @click=${this.onDisconnect.bind(this)}
  2073. data-testid="disconnect-button"
  2074. >
  2075. <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text>
  2076. </wui-list-item>
  2077. </wui-flex>
  2078. </wui-flex>
  2079. `}descriptionTemplate(){return this.swapUnsupportedChain?(0,a.qy)`
  2080. <wui-text variant="small-400" color="fg-200" align="center">
  2081. The swap feature doesn’t support your current network. Switch to an available option to
  2082. continue.
  2083. </wui-text>
  2084. `:(0,a.qy)`
  2085. <wui-text variant="small-400" color="fg-200" align="center">
  2086. This app doesn’t support your current network. Switch to an available option to continue.
  2087. </wui-text>
  2088. `}networksTemplate(){let e=n.WB.getAllRequestedCaipNetworks(),t=n.WB.getAllApprovedCaipNetworkIds(),i=n.wE.sortRequestedNetworks(t,e);return(this.swapUnsupportedChain?i.filter(e=>n.oU.SWAP_SUPPORTED_NETWORKS.includes(e.caipNetworkId)):i).map(e=>(0,a.qy)`
  2089. <wui-list-network
  2090. imageSrc=${(0,s.J)(n.$m.getNetworkImage(e))}
  2091. name=${e.name??"Unknown"}
  2092. @click=${()=>this.onSwitchNetwork(e)}
  2093. >
  2094. </wui-list-network>
  2095. `)}async onDisconnect(){try{this.disconecting=!0,await n.x4.disconnect(),n.En.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),n.W3.close()}catch{n.En.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),n.Pt.showError("Failed to disconnect")}finally{this.disconecting=!1}}async onSwitchNetwork(e){let t=n.Uj.state.caipAddress,i=n.WB.getAllApprovedCaipNetworkIds(),r=(n.WB.getNetworkProp("supportsAllNetworks",e.chainNamespace),n.IN.state.data);t?i?.includes(e.caipNetworkId)?await n.WB.switchActiveNetwork(e):n.IN.push("SwitchNetwork",{...r,network:e}):t||(n.WB.setActiveCaipNetwork(e),n.IN.push("Connect"))}};tl.styles=ts,tc([(0,o.wk)()],tl.prototype,"disconecting",void 0),tl=tc([(0,r.customElement)("w3m-unsupported-chain-view")],tl);let tu=(0,a.AH)`
  2096. wui-compatible-network {
  2097. margin-top: var(--wui-spacing-l);
  2098. }
  2099. `;var td=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let th=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.address=n.Uj.state.address,this.profileName=n.Uj.state.profileName,this.network=n.WB.state.activeCaipNetwork,this.preferredAccountType=n.Uj.state.preferredAccountType,this.unsubscribe.push(n.Uj.subscribe(e=>{e.address?(this.address=e.address,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):n.Pt.showError("Account not found")}),n.WB.subscribeKey("activeCaipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-wallet-receive-view: No account provided");let e=n.$m.getNetworkImage(this.network);return(0,a.qy)` <wui-flex
  2100. flexDirection="column"
  2101. .padding=${["0","l","l","l"]}
  2102. alignItems="center"
  2103. >
  2104. <wui-chip-button
  2105. data-testid="receive-address-copy-button"
  2106. @click=${this.onCopyClick.bind(this)}
  2107. text=${r.UiHelperUtil.getTruncateString({string:this.profileName||this.address||"",charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
  2108. icon="copy"
  2109. size="sm"
  2110. imageSrc=${e||""}
  2111. variant="gray"
  2112. ></wui-chip-button>
  2113. <wui-flex
  2114. flexDirection="column"
  2115. .padding=${["l","0","0","0"]}
  2116. alignItems="center"
  2117. gap="s"
  2118. >
  2119. <wui-qr-code
  2120. size=${232}
  2121. theme=${n.Wn.state.themeMode}
  2122. uri=${this.address}
  2123. ?arenaClear=${!0}
  2124. data-testid="wui-qr-code"
  2125. ></wui-qr-code>
  2126. <wui-text variant="paragraph-500" color="fg-100" align="center">
  2127. Copy your address or scan this QR code
  2128. </wui-text>
  2129. </wui-flex>
  2130. ${this.networkTemplate()}
  2131. </wui-flex>`}networkTemplate(){let e=n.WB.getAllRequestedCaipNetworks(),t=n.WB.checkIfSmartAccountEnabled(),i=n.WB.state.activeCaipNetwork;if(this.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT&&t)return i?(0,a.qy)`<wui-compatible-network
  2132. @click=${this.onReceiveClick.bind(this)}
  2133. text="Only receive assets on this network"
  2134. .networkImages=${[n.$m.getNetworkImage(i)??""]}
  2135. ></wui-compatible-network>`:null;let r=(e?.filter(e=>e?.assets?.imageId)?.slice(0,5)).map(n.$m.getNetworkImage).filter(Boolean);return(0,a.qy)`<wui-compatible-network
  2136. @click=${this.onReceiveClick.bind(this)}
  2137. text="Only receive assets on these networks"
  2138. .networkImages=${r}
  2139. ></wui-compatible-network>`}onReceiveClick(){n.IN.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(n.wE.copyToClopboard(this.address),n.Pt.showSuccess("Address copied"))}catch{n.Pt.showError("Failed to copy")}}};th.styles=tu,td([(0,o.wk)()],th.prototype,"address",void 0),td([(0,o.wk)()],th.prototype,"profileName",void 0),td([(0,o.wk)()],th.prototype,"network",void 0),td([(0,o.wk)()],th.prototype,"preferredAccountType",void 0),th=td([(0,r.customElement)("w3m-wallet-receive-view")],th);let tp=(0,a.AH)`
  2140. :host > wui-flex {
  2141. max-height: clamp(360px, 540px, 80vh);
  2142. overflow: scroll;
  2143. scrollbar-width: none;
  2144. }
  2145. :host > wui-flex::-webkit-scrollbar {
  2146. display: none;
  2147. }
  2148. `;var tf=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tg=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.preferredAccountType=n.Uj.state.preferredAccountType,this.unsubscribe.push(n.Uj.subscribeKey("preferredAccountType",e=>{this.preferredAccountType=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)` <wui-flex
  2149. flexDirection="column"
  2150. .padding=${["xs","s","m","s"]}
  2151. gap="xs"
  2152. >
  2153. <wui-banner
  2154. icon="warningCircle"
  2155. text="You can only receive assets on these networks"
  2156. ></wui-banner>
  2157. ${this.networkTemplate()}
  2158. </wui-flex>`}networkTemplate(){let e=n.WB.getAllRequestedCaipNetworks(),t=n.WB.getAllApprovedCaipNetworkIds(),i=n.WB.state.activeCaipNetwork,r=n.WB.checkIfSmartAccountEnabled(),o=n.wE.sortRequestedNetworks(t,e);if(r&&this.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT){if(!i)return null;o=[i]}return o.map(e=>(0,a.qy)`
  2159. <wui-list-network
  2160. imageSrc=${(0,s.J)(n.$m.getNetworkImage(e))}
  2161. name=${e.name??"Unknown"}
  2162. ?transparent=${!0}
  2163. >
  2164. </wui-list-network>
  2165. `)}};tg.styles=tp,tf([(0,o.wk)()],tg.prototype,"preferredAccountType",void 0),tg=tf([(0,r.customElement)("w3m-wallet-compatible-networks-view")],tg);let tw=(0,a.AH)`
  2166. :host {
  2167. display: block;
  2168. }
  2169. wui-flex {
  2170. position: relative;
  2171. }
  2172. wui-icon-box {
  2173. width: 40px;
  2174. height: 40px;
  2175. border-radius: var(--wui-border-radius-xs) !important;
  2176. border: 5px solid var(--wui-color-bg-125);
  2177. background: var(--wui-color-bg-175);
  2178. position: absolute;
  2179. top: 50%;
  2180. left: 50%;
  2181. transform: translate(-50%, -50%);
  2182. z-index: 3;
  2183. }
  2184. wui-button {
  2185. --local-border-radius: var(--wui-border-radius-xs) !important;
  2186. }
  2187. .inputContainer {
  2188. height: fit-content;
  2189. }
  2190. `;var tm=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tb=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.token=n.Rv.state.token,this.sendTokenAmount=n.Rv.state.sendTokenAmount,this.receiverAddress=n.Rv.state.receiverAddress,this.receiverProfileName=n.Rv.state.receiverProfileName,this.loading=n.Rv.state.loading,this.gasPriceInUSD=n.Rv.state.gasPriceInUSD,this.gasPrice=n.Rv.state.gasPrice,this.message="Preview Send",this.fetchNetworkPrice(),this.unsubscribe.push(n.Rv.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.getMessage(),(0,a.qy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}>
  2191. <wui-flex class="inputContainer" gap="xs" flexDirection="column">
  2192. <w3m-input-token
  2193. .token=${this.token}
  2194. .sendTokenAmount=${this.sendTokenAmount}
  2195. .gasPriceInUSD=${this.gasPriceInUSD}
  2196. .gasPrice=${this.gasPrice}
  2197. ></w3m-input-token>
  2198. <wui-icon-box
  2199. size="inherit"
  2200. backgroundColor="fg-300"
  2201. iconSize="lg"
  2202. iconColor="fg-250"
  2203. background="opaque"
  2204. icon="arrowBottom"
  2205. ></wui-icon-box>
  2206. <w3m-input-address
  2207. .value=${this.receiverProfileName?this.receiverProfileName:this.receiverAddress}
  2208. ></w3m-input-address>
  2209. </wui-flex>
  2210. <wui-flex .margin=${["l","0","0","0"]}>
  2211. <wui-button
  2212. @click=${this.onButtonClick.bind(this)}
  2213. ?disabled=${!this.message.startsWith("Preview Send")}
  2214. size="lg"
  2215. variant="main"
  2216. ?loading=${this.loading}
  2217. fullWidth
  2218. >
  2219. ${this.message}
  2220. </wui-button>
  2221. </wui-flex>
  2222. </wui-flex>`}async fetchNetworkPrice(){await n.GN.getNetworkTokenPrice();let e=await n.GN.getInitialGasPrice();e?.gasPrice&&e?.gasPriceInUSD&&(n.Rv.setGasPrice(e.gasPrice),n.Rv.setGasPriceInUsd(e.gasPriceInUSD))}onButtonClick(){n.IN.push("WalletSendPreview")}getMessage(){this.message="Preview Send",this.receiverAddress&&!n.wE.isAddress(this.receiverAddress,n.WB.state.activeChain)&&(this.message="Invalid Address"),this.receiverAddress||(this.message="Add Address"),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message="Insufficient Funds"),this.sendTokenAmount||(this.message="Add Amount"),this.sendTokenAmount&&this.token?.price&&!(this.sendTokenAmount*this.token.price)&&(this.message="Incorrect Value"),this.token||(this.message="Select Token")}};tb.styles=tw,tm([(0,o.wk)()],tb.prototype,"token",void 0),tm([(0,o.wk)()],tb.prototype,"sendTokenAmount",void 0),tm([(0,o.wk)()],tb.prototype,"receiverAddress",void 0),tm([(0,o.wk)()],tb.prototype,"receiverProfileName",void 0),tm([(0,o.wk)()],tb.prototype,"loading",void 0),tm([(0,o.wk)()],tb.prototype,"gasPriceInUSD",void 0),tm([(0,o.wk)()],tb.prototype,"gasPrice",void 0),tm([(0,o.wk)()],tb.prototype,"message",void 0),tb=tm([(0,r.customElement)("w3m-wallet-send-view")],tb);let tv=(0,a.AH)`
  2223. .contentContainer {
  2224. height: 440px;
  2225. overflow: scroll;
  2226. scrollbar-width: none;
  2227. }
  2228. .contentContainer::-webkit-scrollbar {
  2229. display: none;
  2230. }
  2231. wui-icon-box {
  2232. width: 40px;
  2233. height: 40px;
  2234. border-radius: var(--wui-border-radius-xxs);
  2235. }
  2236. `;var ty=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tx=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tokenBalance=n.Uj.state.tokenBalance,this.search="",this.onDebouncedSearch=n.wE.debounce(e=>{this.search=e}),this.unsubscribe.push(n.Uj.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`
  2237. <wui-flex flexDirection="column">
  2238. ${this.templateSearchInput()} <wui-separator></wui-separator> ${this.templateTokens()}
  2239. </wui-flex>
  2240. `}templateSearchInput(){return(0,a.qy)`
  2241. <wui-flex gap="xs" padding="s">
  2242. <wui-input-text
  2243. @inputChange=${this.onInputChange.bind(this)}
  2244. class="network-search-input"
  2245. size="sm"
  2246. placeholder="Search token"
  2247. icon="search"
  2248. ></wui-input-text>
  2249. </wui-flex>
  2250. `}templateTokens(){return this.tokens=this.tokenBalance?.filter(e=>e.chainId===n.WB.state.activeCaipNetwork?.caipNetworkId),this.search?this.filteredTokens=this.tokenBalance?.filter(e=>e.name.toLowerCase().includes(this.search.toLowerCase())):this.filteredTokens=this.tokens,(0,a.qy)`
  2251. <wui-flex
  2252. class="contentContainer"
  2253. flexDirection="column"
  2254. .padding=${["0","s","0","s"]}
  2255. >
  2256. <wui-flex justifyContent="flex-start" .padding=${["m","s","s","s"]}>
  2257. <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text>
  2258. </wui-flex>
  2259. <wui-flex flexDirection="column" gap="xs">
  2260. ${this.filteredTokens&&this.filteredTokens.length>0?this.filteredTokens.map(e=>(0,a.qy)`<wui-list-token
  2261. @click=${this.handleTokenClick.bind(this,e)}
  2262. ?clickable=${!0}
  2263. tokenName=${e.name}
  2264. tokenImageUrl=${e.iconUrl}
  2265. tokenAmount=${e.quantity.numeric}
  2266. tokenValue=${e.value}
  2267. tokenCurrency=${e.symbol}
  2268. ></wui-list-token>`):(0,a.qy)`<wui-flex
  2269. .padding=${["4xl","0","0","0"]}
  2270. alignItems="center"
  2271. flexDirection="column"
  2272. gap="l"
  2273. >
  2274. <wui-icon-box
  2275. icon="coinPlaceholder"
  2276. size="inherit"
  2277. iconColor="fg-200"
  2278. backgroundColor="fg-200"
  2279. iconSize="lg"
  2280. ></wui-icon-box>
  2281. <wui-flex
  2282. class="textContent"
  2283. gap="xs"
  2284. flexDirection="column"
  2285. justifyContent="center"
  2286. flexDirection="column"
  2287. >
  2288. <wui-text variant="paragraph-500" align="center" color="fg-100"
  2289. >No tokens found</wui-text
  2290. >
  2291. <wui-text variant="small-400" align="center" color="fg-200"
  2292. >Your tokens will appear here</wui-text
  2293. >
  2294. </wui-flex>
  2295. <wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>
  2296. </wui-flex>`}
  2297. </wui-flex>
  2298. </wui-flex>
  2299. `}onBuyClick(){n.IN.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){n.Rv.setToken(e),n.Rv.setTokenAmount(void 0),n.IN.goBack()}};tx.styles=tv,ty([(0,o.wk)()],tx.prototype,"tokenBalance",void 0),ty([(0,o.wk)()],tx.prototype,"tokens",void 0),ty([(0,o.wk)()],tx.prototype,"filteredTokens",void 0),ty([(0,o.wk)()],tx.prototype,"search",void 0),tx=ty([(0,r.customElement)("w3m-wallet-send-select-token-view")],tx);let tC=(0,a.AH)`
  2300. wui-avatar,
  2301. wui-image {
  2302. display: ruby;
  2303. width: 32px;
  2304. height: 32px;
  2305. border-radius: var(--wui-border-radius-3xl);
  2306. }
  2307. .sendButton {
  2308. width: 70%;
  2309. --local-width: 100% !important;
  2310. --local-border-radius: var(--wui-border-radius-xs) !important;
  2311. }
  2312. .cancelButton {
  2313. width: 30%;
  2314. --local-width: 100% !important;
  2315. --local-border-radius: var(--wui-border-radius-xs) !important;
  2316. }
  2317. `;var tA=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tE=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.token=n.Rv.state.token,this.sendTokenAmount=n.Rv.state.sendTokenAmount,this.receiverAddress=n.Rv.state.receiverAddress,this.receiverProfileName=n.Rv.state.receiverProfileName,this.receiverProfileImageUrl=n.Rv.state.receiverProfileImageUrl,this.gasPriceInUSD=n.Rv.state.gasPriceInUSD,this.caipNetwork=n.WB.state.activeCaipNetwork,this.unsubscribe.push(n.Rv.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.receiverProfileImageUrl=e.receiverProfileImageUrl}),n.WB.subscribeKey("activeCaipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}>
  2318. <wui-flex gap="xs" flexDirection="column" .padding=${["0","xs","0","xs"]}>
  2319. <wui-flex alignItems="center" justifyContent="space-between">
  2320. <wui-flex flexDirection="column" gap="4xs">
  2321. <wui-text variant="small-400" color="fg-150">Send</wui-text>
  2322. ${this.sendValueTemplate()}
  2323. </wui-flex>
  2324. <wui-preview-item
  2325. text="${this.sendTokenAmount?r.UiHelperUtil.roundNumber(this.sendTokenAmount,6,5):"unknown"} ${this.token?.symbol}"
  2326. .imageSrc=${this.token?.iconUrl}
  2327. ></wui-preview-item>
  2328. </wui-flex>
  2329. <wui-flex>
  2330. <wui-icon color="fg-200" size="md" name="arrowBottom"></wui-icon>
  2331. </wui-flex>
  2332. <wui-flex alignItems="center" justifyContent="space-between">
  2333. <wui-text variant="small-400" color="fg-150">To</wui-text>
  2334. <wui-preview-item
  2335. text="${this.receiverProfileName?r.UiHelperUtil.getTruncateString({string:this.receiverProfileName,charsStart:20,charsEnd:0,truncate:"end"}):r.UiHelperUtil.getTruncateString({string:this.receiverAddress?this.receiverAddress:"",charsStart:4,charsEnd:4,truncate:"middle"})}"
  2336. address=${this.receiverAddress??""}
  2337. .imageSrc=${this.receiverProfileImageUrl??void 0}
  2338. .isAddress=${!0}
  2339. ></wui-preview-item>
  2340. </wui-flex>
  2341. </wui-flex>
  2342. <wui-flex flexDirection="column" .padding=${["xxl","0","0","0"]}>
  2343. <w3m-wallet-send-details
  2344. .caipNetwork=${this.caipNetwork}
  2345. .receiverAddress=${this.receiverAddress}
  2346. .networkFee=${this.gasPriceInUSD}
  2347. ></w3m-wallet-send-details>
  2348. <wui-flex justifyContent="center" gap="xxs" .padding=${["s","0","0","0"]}>
  2349. <wui-icon size="sm" color="fg-200" name="warningCircle"></wui-icon>
  2350. <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text>
  2351. </wui-flex>
  2352. <wui-flex justifyContent="center" gap="s" .padding=${["l","0","0","0"]}>
  2353. <wui-button
  2354. class="cancelButton"
  2355. @click=${this.onCancelClick.bind(this)}
  2356. size="lg"
  2357. variant="neutral"
  2358. >
  2359. Cancel
  2360. </wui-button>
  2361. <wui-button
  2362. class="sendButton"
  2363. @click=${this.onSendClick.bind(this)}
  2364. size="lg"
  2365. variant="main"
  2366. >
  2367. Send
  2368. </wui-button>
  2369. </wui-flex>
  2370. </wui-flex></wui-flex
  2371. >`}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,a.qy)`<wui-text variant="paragraph-400" color="fg-100"
  2372. >$${e.toFixed(2)}</wui-text
  2373. >`}return null}onSendClick(){n.Rv.sendToken()}onCancelClick(){n.IN.goBack()}};tE.styles=tC,tA([(0,o.wk)()],tE.prototype,"token",void 0),tA([(0,o.wk)()],tE.prototype,"sendTokenAmount",void 0),tA([(0,o.wk)()],tE.prototype,"receiverAddress",void 0),tA([(0,o.wk)()],tE.prototype,"receiverProfileName",void 0),tA([(0,o.wk)()],tE.prototype,"receiverProfileImageUrl",void 0),tA([(0,o.wk)()],tE.prototype,"gasPriceInUSD",void 0),tA([(0,o.wk)()],tE.prototype,"caipNetwork",void 0),tE=tA([(0,r.customElement)("w3m-wallet-send-preview-view")],tE);let t_=(0,a.AH)`
  2374. wui-flex {
  2375. max-height: clamp(360px, 540px, 80vh);
  2376. overflow: scroll;
  2377. scrollbar-width: none;
  2378. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  2379. will-change: opacity;
  2380. }
  2381. wui-flex::-webkit-scrollbar {
  2382. display: none;
  2383. }
  2384. wui-flex.disabled {
  2385. opacity: 0.3;
  2386. pointer-events: none;
  2387. user-select: none;
  2388. }
  2389. `;var tk=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tI=class extends a.WF{constructor(){super(...arguments),this.checked=!1}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox,r=!!(e||t)&&!!i,o=r&&!this.checked;return(0,a.qy)`
  2390. <w3m-legal-checkbox @checkboxChange=${this.onCheckboxChange.bind(this)}></w3m-legal-checkbox>
  2391. <wui-flex
  2392. flexDirection="column"
  2393. .padding=${r?["0","s","s","s"]:"s"}
  2394. gap="xs"
  2395. class=${(0,s.J)(o?"disabled":void 0)}
  2396. >
  2397. <w3m-wallet-login-list tabIdx=${(0,s.J)(o?-1:void 0)}></w3m-wallet-login-list>
  2398. </wui-flex>
  2399. <w3m-legal-footer></w3m-legal-footer>
  2400. `}onCheckboxChange(e){this.checked=!!e.detail}};tI.styles=t_,tk([(0,o.wk)()],tI.prototype,"checked",void 0),tI=tk([(0,r.customElement)("w3m-connect-wallets-view")],tI);let tS=(0,a.AH)`
  2401. wui-flex {
  2402. max-height: clamp(360px, 540px, 80vh);
  2403. overflow: scroll;
  2404. scrollbar-width: none;
  2405. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  2406. will-change: opacity;
  2407. }
  2408. wui-flex::-webkit-scrollbar {
  2409. display: none;
  2410. }
  2411. wui-flex.disabled {
  2412. opacity: 0.3;
  2413. pointer-events: none;
  2414. user-select: none;
  2415. }
  2416. `;var tT=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tN=class extends a.WF{constructor(){super(...arguments),this.checked=!1}render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox,r=!!(e||t)&&!!i,o=r&&!this.checked;return(0,a.qy)`
  2417. <w3m-legal-checkbox @checkboxChange=${this.onCheckboxChange.bind(this)}></w3m-legal-checkbox>
  2418. <wui-flex
  2419. flexDirection="column"
  2420. .padding=${r?["0","s","s","s"]:"s"}
  2421. gap="xs"
  2422. class=${(0,s.J)(o?"disabled":void 0)}
  2423. >
  2424. <w3m-social-login-list tabIdx=${(0,s.J)(o?-1:void 0)}></w3m-social-login-list>
  2425. </wui-flex>
  2426. <w3m-legal-footer></w3m-legal-footer>
  2427. `}onCheckboxChange(e){this.checked=!!e.detail}};tN.styles=tS,tT([(0,o.wk)()],tN.prototype,"checked",void 0),tN=tT([(0,r.customElement)("w3m-connect-socials-view")],tN);let tP=(0,a.AH)`
  2428. wui-logo {
  2429. width: 80px;
  2430. height: 80px;
  2431. border-radius: var(--wui-border-radius-m);
  2432. }
  2433. @keyframes shake {
  2434. 0% {
  2435. transform: translateX(0);
  2436. }
  2437. 25% {
  2438. transform: translateX(3px);
  2439. }
  2440. 50% {
  2441. transform: translateX(-3px);
  2442. }
  2443. 75% {
  2444. transform: translateX(3px);
  2445. }
  2446. 100% {
  2447. transform: translateX(0);
  2448. }
  2449. }
  2450. wui-flex:first-child:not(:only-child) {
  2451. position: relative;
  2452. }
  2453. wui-loading-thumbnail {
  2454. position: absolute;
  2455. }
  2456. wui-icon-box {
  2457. position: absolute;
  2458. right: calc(var(--wui-spacing-3xs) * -1);
  2459. bottom: calc(var(--wui-spacing-3xs) * -1);
  2460. opacity: 0;
  2461. transform: scale(0.5);
  2462. transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
  2463. }
  2464. wui-text[align='center'] {
  2465. width: 100%;
  2466. padding: 0px var(--wui-spacing-l);
  2467. }
  2468. [data-error='true'] wui-icon-box {
  2469. opacity: 1;
  2470. transform: scale(1);
  2471. }
  2472. [data-error='true'] > wui-flex:first-child {
  2473. animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  2474. }
  2475. .capitalize {
  2476. text-transform: capitalize;
  2477. }
  2478. `;var tR=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tO=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.socialProvider=n.Uj.state.socialProvider,this.socialWindow=n.Uj.state.socialWindow,this.error=!1,this.connecting=!1,this.message="Connect in the provider window",this.authConnector=n.aK.getAuthConnector(),this.handleSocialConnection=async e=>{if(e.data?.resultUri){if(e.origin===I.SECURE_SITE_ORIGIN){window.removeEventListener("message",this.handleSocialConnection,!1);try{if(this.authConnector&&!this.connecting){this.socialWindow&&(this.socialWindow.close(),n.Uj.setSocialWindow(void 0,n.WB.state.activeChain)),this.connecting=!0,this.updateMessage();let t=e.data.resultUri;this.socialProvider&&n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_REQUEST_USER_DATA",properties:{provider:this.socialProvider}}),await this.authConnector.provider.connectSocial(t),this.socialProvider&&(n.iT.setConnectedSocialProvider(this.socialProvider),await n.x4.connectExternal(this.authConnector,this.authConnector.chain),n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:this.socialProvider}}))}}catch(e){this.error=!0,this.updateMessage(),this.socialProvider&&n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}}else n.IN.goBack(),n.Pt.showError("Untrusted Origin"),this.socialProvider&&n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}},this.unsubscribe.push(n.Uj.subscribe(e=>{e.socialProvider&&(this.socialProvider=e.socialProvider),e.socialWindow&&(this.socialWindow=e.socialWindow),e.address&&n.W3.state.open&&n.W3.close()})),this.authConnector&&this.connectSocial()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),window.removeEventListener("message",this.handleSocialConnection,!1)}render(){return(0,a.qy)`
  2479. <wui-flex
  2480. data-error=${(0,s.J)(this.error)}
  2481. flexDirection="column"
  2482. alignItems="center"
  2483. .padding=${["3xl","xl","xl","xl"]}
  2484. gap="xl"
  2485. >
  2486. <wui-flex justifyContent="center" alignItems="center">
  2487. <wui-logo logo=${(0,s.J)(this.socialProvider)}></wui-logo>
  2488. ${this.error?null:this.loaderTemplate()}
  2489. <wui-icon-box
  2490. backgroundColor="error-100"
  2491. background="opaque"
  2492. iconColor="error-100"
  2493. icon="close"
  2494. size="sm"
  2495. border
  2496. borderColor="wui-color-bg-125"
  2497. ></wui-icon-box>
  2498. </wui-flex>
  2499. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  2500. <wui-text align="center" variant="paragraph-500" color="fg-100"
  2501. >Log in with
  2502. <span class="capitalize">${this.socialProvider??"Social"}</span></wui-text
  2503. >
  2504. <wui-text align="center" variant="small-400" color=${this.error?"error-100":"fg-200"}
  2505. >${this.message}</wui-text
  2506. ></wui-flex
  2507. >
  2508. </wui-flex>
  2509. `}loaderTemplate(){let e=n.Wn.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.qy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}connectSocial(){let e=setInterval(()=>{this.socialWindow?.closed&&(this.connecting||"ConnectingSocial"!==n.IN.state.view||(this.socialProvider&&n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_CANCELED",properties:{provider:this.socialProvider}}),n.IN.goBack()),clearInterval(e))},1e3);window.addEventListener("message",this.handleSocialConnection,!1)}updateMessage(){this.error?this.message="Something went wrong":this.connecting?this.message="Retrieving user data":this.message="Connect in the provider window"}};tO.styles=tP,tR([(0,o.wk)()],tO.prototype,"socialProvider",void 0),tR([(0,o.wk)()],tO.prototype,"socialWindow",void 0),tR([(0,o.wk)()],tO.prototype,"error",void 0),tR([(0,o.wk)()],tO.prototype,"connecting",void 0),tR([(0,o.wk)()],tO.prototype,"message",void 0),tO=tR([(0,r.customElement)("w3m-connecting-social-view")],tO);let tM=(0,a.AH)`
  2510. wui-flex {
  2511. width: 100%;
  2512. }
  2513. wui-icon-link {
  2514. margin-right: calc(var(--wui-icon-box-size-md) * -1);
  2515. }
  2516. .account-links {
  2517. display: flex;
  2518. justify-content: space-between;
  2519. align-items: center;
  2520. }
  2521. .account-links wui-flex {
  2522. cursor: pointer;
  2523. display: flex;
  2524. align-items: center;
  2525. justify-content: center;
  2526. flex: 1;
  2527. background: red;
  2528. align-items: center;
  2529. justify-content: center;
  2530. height: 48px;
  2531. padding: 10px;
  2532. flex: 1 0 0;
  2533. border-radius: var(--XS, 16px);
  2534. border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
  2535. background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
  2536. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
  2537. will-change: background-color;
  2538. }
  2539. .account-links wui-flex:hover {
  2540. background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15));
  2541. }
  2542. .account-links wui-flex wui-icon {
  2543. width: var(--S, 20px);
  2544. height: var(--S, 20px);
  2545. }
  2546. .account-links wui-flex wui-icon svg path {
  2547. stroke: #47a1ff;
  2548. }
  2549. .account-settings-button {
  2550. padding: calc(var(--wui-spacing-m) - 1px) var(--wui-spacing-2l);
  2551. height: 40px;
  2552. border-radius: var(--wui-border-radius-xxs);
  2553. border: 1px solid var(--wui-color-gray-glass-002);
  2554. background: var(--wui-color-gray-glass-002);
  2555. cursor: pointer;
  2556. }
  2557. .account-settings-button:hover {
  2558. background: var(--wui-color-gray-glass-005);
  2559. }
  2560. `;var tD=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tU=class extends a.WF{constructor(){super(),this.usubscribe=[],this.address=n.Uj.state.address,this.profileImage=n.Uj.state.profileImage,this.profileName=n.Uj.state.profileName,this.accounts=n.Uj.state.allAccounts,this.loading=!1,this.usubscribe.push(n.Uj.subscribeKey("address",e=>{e?this.address=e:n.W3.close()})),this.usubscribe.push(n.Uj.subscribeKey("profileImage",e=>{this.profileImage=e})),this.usubscribe.push(n.Uj.subscribeKey("profileName",e=>{this.profileName=e}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-profile-view: No account provided");return(0,a.qy)`
  2561. <wui-flex flexDirection="column" gap="l" .padding=${["0","xl","m","xl"]}>
  2562. <wui-flex flexDirection="column" alignItems="center" gap="l">
  2563. <wui-avatar
  2564. alt=${this.address}
  2565. address=${this.address}
  2566. imageSrc=${(0,s.J)(this.profileImage)}
  2567. size="2lg"
  2568. ></wui-avatar>
  2569. <wui-flex flexDirection="column" alignItems="center">
  2570. <wui-flex gap="3xs" alignItems="center" justifyContent="center">
  2571. <wui-text variant="title-6-600" color="fg-100" data-testid="account-settings-address">
  2572. ${this.profileName?r.UiHelperUtil.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):r.UiHelperUtil.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})}
  2573. </wui-text>
  2574. <wui-icon-link
  2575. size="md"
  2576. icon="copy"
  2577. iconColor="fg-200"
  2578. @click=${this.onCopyAddress}
  2579. ></wui-icon-link>
  2580. </wui-flex>
  2581. </wui-flex>
  2582. </wui-flex>
  2583. <wui-flex
  2584. data-testid="account-settings-button"
  2585. justifyContent="center"
  2586. alignItems="center"
  2587. class="account-settings-button"
  2588. @click=${()=>n.IN.push("AccountSettings")}
  2589. >
  2590. <wui-text variant="paragraph-500" color="fg-100">Account Settings</wui-text>
  2591. </wui-flex>
  2592. ${this.accountsTemplate()}
  2593. </wui-flex>
  2594. `}accountsTemplate(){return(0,a.qy)`<wui-flex flexDirection="column">
  2595. <wui-flex .padding=${["3xs","m","s","s"]}>
  2596. <wui-text color="fg-200" variant="paragraph-400">Your accounts</wui-text>
  2597. </wui-flex>
  2598. <wui-flex flexDirection="column" gap="xxs">
  2599. ${this.accounts.map(e=>this.accountTemplate(e))}
  2600. </wui-flex>
  2601. </wui-flex>`}async onSwitchAccount(e){this.loading=!0,n.aK.getAuthConnector()&&await n.x4.setPreferredAccountType(e.type),n.Uj.setShouldUpdateToAddress(e.address,n.WB.state.activeChain),this.loading=!1}accountTemplate(e){return(0,a.qy)`<wui-list-account accountAddress=${e.address} accountType=${e.type}>
  2602. ${e.address===this.address?"":(0,a.qy)`<wui-button
  2603. slot="action"
  2604. textVariant="small-600"
  2605. size="md"
  2606. variant="accent"
  2607. @click=${()=>this.onSwitchAccount(e)}
  2608. .loading=${this.loading}
  2609. >Switch</wui-button
  2610. >`}
  2611. </wui-list-account>`}onCopyAddress(){try{this.profileName?(n.wE.copyToClopboard(this.profileName),n.Pt.showSuccess("Name copied")):this.address&&(n.wE.copyToClopboard(this.address),n.Pt.showSuccess("Address copied"))}catch{n.Pt.showError("Failed to copy")}}};tU.styles=tM,tD([(0,o.wk)()],tU.prototype,"address",void 0),tD([(0,o.wk)()],tU.prototype,"profileImage",void 0),tD([(0,o.wk)()],tU.prototype,"profileName",void 0),tD([(0,o.wk)()],tU.prototype,"accounts",void 0),tD([(0,o.wk)()],tU.prototype,"loading",void 0),tU=tD([(0,r.customElement)("w3m-profile-view")],tU);let t$=(0,a.AH)`
  2612. wui-avatar {
  2613. width: var(--wui-spacing-3xl);
  2614. height: var(--wui-spacing-3xl);
  2615. box-shadow: 0 0 0 0;
  2616. }
  2617. wui-icon-box {
  2618. position: relative;
  2619. right: 15px;
  2620. top: 15px;
  2621. border: 2px solid var(--wui-color-bg-150);
  2622. background-color: var(--wui-color-bg-125);
  2623. }
  2624. `;var tL=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tj=class extends a.WF{constructor(){super(),this.metadata=n.Hd.state.metadata,this.allAccounts=n.Uj.state.allAccounts||[],this.balances={},this.labels=n.Uj.state.addressLabels,this.currentAddress=n.Uj.state.address||"",this.connectedConnector=n.iT.getConnectedConnector(),this.shouldShowIcon="AUTH"===this.connectedConnector,this.caipNetwork=n.WB.state.activeCaipNetwork,n.Uj.subscribeKey("allAccounts",e=>{this.allAccounts=e})}connectedCallback(){super.connectedCallback(),this.allAccounts.forEach(e=>{n.TP.getBalance(e.address,this.caipNetwork?.caipNetworkId).then(t=>{let i=this.balances[e.address]||0;t.balances.length>0&&(i=t.balances.reduce((e,t)=>e+(t?.value||0),0)),this.balances[e.address]=i,this.requestUpdate()})})}getAddressIcon(e){return"smartAccount"===e?"lightbulb":"mail"}render(){return(0,a.qy)`
  2625. <wui-flex justifyContent="center" .padding=${["xl","0","xl","0"]}>
  2626. <wui-banner-img
  2627. imageSrc=${(0,s.J)(this.metadata?.icons[0])}
  2628. text=${(0,s.J)(this.metadata?.url)}
  2629. size="sm"
  2630. ></wui-banner-img>
  2631. </wui-flex>
  2632. <wui-flex flexDirection="column" gap="xxl" .padding=${["l","xl","xl","xl"]}>
  2633. ${this.allAccounts.map((e,t)=>this.getAddressTemplate(e,t))}
  2634. </wui-flex>
  2635. `}getAddressTemplate(e,t){let i=this.labels?.get(e.address);return(0,a.qy)`
  2636. <wui-flex
  2637. flexDirection="row"
  2638. justifyContent="space-between"
  2639. data-testid="switch-address-item"
  2640. >
  2641. <wui-flex alignItems="center">
  2642. <wui-avatar address=${e.address}></wui-avatar>
  2643. ${this.shouldShowIcon?(0,a.qy)`<wui-icon-box
  2644. size="sm"
  2645. iconcolor="fg-200"
  2646. backgroundcolor="glass-002"
  2647. background="gray"
  2648. icon="${this.getAddressIcon(e.type)}"
  2649. ?border=${!0}
  2650. ></wui-icon-box>`:(0,a.qy)`<wui-flex .padding="${["0","0","0","s"]}"></wui-flex>`}
  2651. <wui-flex flexDirection="column">
  2652. <wui-text class="address" variant="paragraph-500" color="fg-100"
  2653. >${i||r.UiHelperUtil.getTruncateString({string:e.address,charsStart:4,charsEnd:6,truncate:"middle"})}</wui-text
  2654. >
  2655. <wui-text class="address-description" variant="small-400">
  2656. ${"number"==typeof this.balances[e.address]?`$${this.balances[e.address]?.toFixed(2)}`:(0,a.qy)`<wui-loading-spinner size="sm" color="accent-100"></wui-loading-spinner>`}
  2657. </wui-text>
  2658. </wui-flex>
  2659. </wui-flex>
  2660. <wui-flex gap="s" alignItems="center">
  2661. ${e.address?.toLowerCase()===this.currentAddress?.toLowerCase()?"":(0,a.qy)`
  2662. <wui-button
  2663. data-testid=${`w3m-switch-address-button-${t}`}
  2664. textVariant="small-600"
  2665. size="md"
  2666. variant="accent"
  2667. @click=${()=>this.onSwitchAddress(e.address)}
  2668. >Switch to</wui-button
  2669. >
  2670. `}
  2671. </wui-flex>
  2672. </wui-flex>
  2673. `}onSwitchAddress(e){let t=n.WB.state.activeCaipNetwork,i=t?.chainNamespace,r=`${i}:${t?.id}:${e}`;n.Uj.setCaipAddress(r,i),n.W3.close()}};tj.styles=t$,tL([(0,o.wk)()],tj.prototype,"allAccounts",void 0),tL([(0,o.wk)()],tj.prototype,"balances",void 0),tj=tL([(0,r.customElement)("w3m-switch-address-view")],tj);let tB=(0,a.AH)`
  2674. @keyframes fadein {
  2675. from {
  2676. opacity: 0;
  2677. }
  2678. to {
  2679. opacity: 1;
  2680. }
  2681. }
  2682. wui-shimmer {
  2683. width: 100%;
  2684. aspect-ratio: 1 / 1;
  2685. border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
  2686. }
  2687. wui-qr-code {
  2688. opacity: 0;
  2689. animation-duration: 200ms;
  2690. animation-timing-function: ease;
  2691. animation-name: fadein;
  2692. animation-fill-mode: forwards;
  2693. }
  2694. wui-logo {
  2695. width: 80px;
  2696. height: 80px;
  2697. border-radius: var(--wui-border-radius-m);
  2698. }
  2699. wui-flex:first-child:not(:only-child) {
  2700. position: relative;
  2701. }
  2702. wui-loading-thumbnail {
  2703. position: absolute;
  2704. }
  2705. wui-icon-box {
  2706. position: absolute;
  2707. right: calc(var(--wui-spacing-3xs) * -1);
  2708. bottom: calc(var(--wui-spacing-3xs) * -1);
  2709. opacity: 0;
  2710. transform: scale(0.5);
  2711. transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
  2712. }
  2713. `;var tW=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tq=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.socialProvider=n.Uj.state.socialProvider,this.uri=n.Uj.state.farcasterUrl,this.ready=!1,this.loading=!1,this.authConnector=n.aK.getAuthConnector(),this.forceUpdate=()=>{this.requestUpdate()},this.unsubscribe.push(n.Uj.subscribeKey("farcasterUrl",e=>{e&&(this.uri=e,this.connectFarcaster())}),n.Uj.subscribeKey("socialProvider",e=>{e&&(this.socialProvider=e)})),window.addEventListener("resize",this.forceUpdate)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.timeout),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,a.qy)`${this.platformTemplate()}`}platformTemplate(){return n.wE.isMobile()?(0,a.qy)`${this.mobileTemplate()}`:(0,a.qy)`${this.desktopTemplate()}`}desktopTemplate(){return this.loading?(0,a.qy)`${this.loadingTemplate()}`:(0,a.qy)`${this.qrTemplate()}`}qrTemplate(){return(0,a.qy)` <wui-flex
  2714. flexDirection="column"
  2715. alignItems="center"
  2716. .padding=${["0","xl","xl","xl"]}
  2717. gap="xl"
  2718. >
  2719. <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
  2720. <wui-text variant="paragraph-500" color="fg-100">
  2721. Scan this QR Code with your phone
  2722. </wui-text>
  2723. ${this.copyTemplate()}
  2724. </wui-flex>`}loadingTemplate(){return(0,a.qy)`
  2725. <wui-flex
  2726. flexDirection="column"
  2727. alignItems="center"
  2728. .padding=${["xl","xl","xl","xl"]}
  2729. gap="xl"
  2730. >
  2731. <wui-flex justifyContent="center" alignItems="center">
  2732. <wui-logo logo="farcaster"></wui-logo>
  2733. ${this.loaderTemplate()}
  2734. <wui-icon-box
  2735. backgroundColor="error-100"
  2736. background="opaque"
  2737. iconColor="error-100"
  2738. icon="close"
  2739. size="sm"
  2740. border
  2741. borderColor="wui-color-bg-125"
  2742. ></wui-icon-box>
  2743. </wui-flex>
  2744. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  2745. <wui-text align="center" variant="paragraph-500" color="fg-100">
  2746. Loading user data
  2747. </wui-text>
  2748. <wui-text align="center" variant="small-400" color="fg-200">
  2749. Please wait a moment while we load your data.
  2750. </wui-text>
  2751. </wui-flex>
  2752. </wui-flex>
  2753. `}mobileTemplate(){return(0,a.qy)` <wui-flex
  2754. flexDirection="column"
  2755. alignItems="center"
  2756. .padding=${["3xl","xl","xl","xl"]}
  2757. gap="xl"
  2758. >
  2759. <wui-flex justifyContent="center" alignItems="center">
  2760. <wui-logo logo="farcaster"></wui-logo>
  2761. ${this.loaderTemplate()}
  2762. <wui-icon-box
  2763. backgroundColor="error-100"
  2764. background="opaque"
  2765. iconColor="error-100"
  2766. icon="close"
  2767. size="sm"
  2768. border
  2769. borderColor="wui-color-bg-125"
  2770. ></wui-icon-box>
  2771. </wui-flex>
  2772. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  2773. <wui-text align="center" variant="paragraph-500" color="fg-100"
  2774. >Continue in Farcaster</span></wui-text
  2775. >
  2776. <wui-text align="center" variant="small-400" color="fg-200"
  2777. >Accept connection request in the app</wui-text
  2778. ></wui-flex
  2779. >
  2780. ${this.mobileLinkTemplate()}
  2781. </wui-flex>`}loaderTemplate(){let e=n.Wn.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,a.qy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}async connectFarcaster(){if(this.authConnector)try{await this.authConnector?.provider.connectFarcaster(),this.socialProvider&&n.iT.setConnectedSocialProvider(this.socialProvider),this.loading=!0,await n.x4.connectExternal(this.authConnector,this.authConnector.chain),this.loading=!1,n.W3.close()}catch(e){n.IN.goBack(),n.Pt.showError(e)}}mobileLinkTemplate(){return(0,a.qy)`<wui-button
  2782. size="md"
  2783. ?loading=${this.loading}
  2784. ?disabled=${!this.uri||this.loading}
  2785. @click=${()=>{this.uri&&n.wE.openHref(this.uri,"_blank")}}
  2786. >
  2787. Open farcaster</wui-button
  2788. >`}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},0))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40;return(0,a.qy)` <wui-qr-code
  2789. size=${e}
  2790. theme=${n.Wn.state.themeMode}
  2791. uri=${this.uri}
  2792. ?farcaster=${!0}
  2793. data-testid="wui-qr-code"
  2794. ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,a.qy)`<wui-link
  2795. .disabled=${e}
  2796. @click=${this.onCopyUri}
  2797. color="fg-200"
  2798. data-testid="copy-wc2-uri"
  2799. >
  2800. <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
  2801. Copy link
  2802. </wui-link>`}onCopyUri(){try{this.uri&&(n.wE.copyToClopboard(this.uri),n.Pt.showSuccess("Link copied"))}catch{n.Pt.showError("Failed to copy")}}};tq.styles=tB,tW([(0,o.wk)()],tq.prototype,"socialProvider",void 0),tW([(0,o.wk)()],tq.prototype,"uri",void 0),tW([(0,o.wk)()],tq.prototype,"ready",void 0),tW([(0,o.wk)()],tq.prototype,"loading",void 0),tq=tW([(0,r.customElement)("w3m-connecting-farcaster-view")],tq);var tH=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tz=class extends a.WF{constructor(){super(...arguments),this.dappName=n.Hd.state.metadata?.name,this.isCancelling=!1,this.isSigning=!1}render(){return(0,a.qy)`
  2803. <wui-flex justifyContent="center" .padding=${["2xl","0","xxl","0"]}>
  2804. <w3m-siwx-sign-message-thumbnails></w3m-siwx-sign-message-thumbnails>
  2805. </wui-flex>
  2806. <wui-flex
  2807. .padding=${["0","4xl","l","4xl"]}
  2808. gap="s"
  2809. justifyContent="space-between"
  2810. >
  2811. <wui-text variant="paragraph-500" align="center" color="fg-100"
  2812. >${this.dappName??"Dapp"} needs to connect to your wallet</wui-text
  2813. >
  2814. </wui-flex>
  2815. <wui-flex
  2816. .padding=${["0","3xl","l","3xl"]}
  2817. gap="s"
  2818. justifyContent="space-between"
  2819. >
  2820. <wui-text variant="small-400" align="center" color="fg-200"
  2821. >Sign this message to prove you own this wallet and proceed. Canceling will disconnect
  2822. you.</wui-text
  2823. >
  2824. </wui-flex>
  2825. <wui-flex .padding=${["l","xl","xl","xl"]} gap="s" justifyContent="space-between">
  2826. <wui-button
  2827. size="lg"
  2828. borderRadius="xs"
  2829. fullWidth
  2830. variant="neutral"
  2831. ?loading=${this.isCancelling}
  2832. @click=${this.onCancel.bind(this)}
  2833. data-testid="w3m-connecting-siwe-cancel"
  2834. >
  2835. ${this.isCancelling?"Cancelling...":"Cancel"}
  2836. </wui-button>
  2837. <wui-button
  2838. size="lg"
  2839. borderRadius="xs"
  2840. fullWidth
  2841. variant="main"
  2842. @click=${this.onSign.bind(this)}
  2843. ?loading=${this.isSigning}
  2844. data-testid="w3m-connecting-siwe-sign"
  2845. >
  2846. ${this.isSigning?"Signing...":"Sign"}
  2847. </wui-button>
  2848. </wui-flex>
  2849. `}async onSign(){this.isSigning=!0,await n.UG.requestSignMessage().finally(()=>this.isSigning=!1)}async onCancel(){this.isCancelling=!0,await n.UG.cancelSignMessage().finally(()=>this.isCancelling=!1)}};tH([(0,o.wk)()],tz.prototype,"isCancelling",void 0),tH([(0,o.wk)()],tz.prototype,"isSigning",void 0),tz=tH([(0,r.customElement)("w3m-siwx-sign-message-view")],tz);let tF=(0,a.AH)`
  2850. wui-grid {
  2851. max-height: clamp(360px, 400px, 80vh);
  2852. overflow: scroll;
  2853. scrollbar-width: none;
  2854. grid-auto-rows: min-content;
  2855. grid-template-columns: repeat(auto-fill, 104px);
  2856. }
  2857. @media (max-width: 350px) {
  2858. wui-grid {
  2859. grid-template-columns: repeat(2, 1fr);
  2860. }
  2861. }
  2862. wui-grid[data-scroll='false'] {
  2863. overflow: hidden;
  2864. }
  2865. wui-grid::-webkit-scrollbar {
  2866. display: none;
  2867. }
  2868. wui-loading-spinner {
  2869. padding-top: var(--wui-spacing-l);
  2870. padding-bottom: var(--wui-spacing-l);
  2871. justify-content: center;
  2872. grid-column: 1 / span 4;
  2873. }
  2874. `,tZ={filterOutDuplicatesByRDNS(e){let t=n.Hd.state.enableEIP6963?n.aK.state.connectors:[],i=n.iT.getRecentWallets(),r=t.map(e=>e.info?.rdns).filter(Boolean),a=i.map(e=>e.rdns).filter(Boolean),o=r.concat(a);if(o.includes("io.metamask.mobile")&&n.wE.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))},filterOutDuplicatesByIds(e){let t=n.aK.state.connectors.filter(e=>"ANNOUNCED"===e.type||"INJECTED"===e.type),i=n.iT.getRecentWallets(),r=t.map(e=>e.explorerId),a=i.map(e=>e.id),o=r.concat(a);return e.filter(e=>!o.includes(e?.id))},filterOutDuplicateWallets(e){let t=this.filterOutDuplicatesByRDNS(e);return this.filterOutDuplicatesByIds(t)},markWalletsAsInstalled(e){let{connectors:t}=n.aK.state,i=t.filter(e=>"ANNOUNCED"===e.type).reduce((e,t)=>(t.info?.rdns&&(e[t.info.rdns]=!0),e),{});return e.map(e=>({...e,installed:!!e.rdns&&!!i[e.rdns??""]})).sort((e,t)=>Number(t.installed)-Number(e.installed))}};var tV=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tK="local-paginator",tG=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.initial=!n.Np.state.wallets.length,this.wallets=n.Np.state.wallets,this.recommended=n.Np.state.recommended,this.featured=n.Np.state.featured,this.unsubscribe.push(n.Np.subscribeKey("wallets",e=>this.wallets=e),n.Np.subscribeKey("recommended",e=>this.recommended=e),n.Np.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return(0,a.qy)`
  2875. <wui-grid
  2876. data-scroll=${!this.initial}
  2877. .padding=${["0","s","s","s"]}
  2878. columnGap="xxs"
  2879. rowGap="l"
  2880. justifyContent="space-between"
  2881. >
  2882. ${this.initial?this.shimmerTemplate(16):this.walletsTemplate()}
  2883. ${this.paginationLoaderTemplate()}
  2884. </wui-grid>
  2885. `}async initialFetch(){let e=this.shadowRoot?.querySelector("wui-grid");this.initial&&e&&(await n.Np.fetchWallets({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.initial=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>(0,a.qy)`
  2886. <wui-card-select-loader type="wallet" id=${(0,s.J)(t)}></wui-card-select-loader>
  2887. `)}walletsTemplate(){let e=[...this.featured,...this.recommended,...this.wallets];return tZ.markWalletsAsInstalled(e).map(e=>(0,a.qy)`
  2888. <w3m-all-wallets-list-item
  2889. @click=${()=>this.onConnectWallet(e)}
  2890. .wallet=${e}
  2891. ></w3m-all-wallets-list-item>
  2892. `)}paginationLoaderTemplate(){let{wallets:e,recommended:t,featured:i,count:r}=n.Np.state,a=window.innerWidth<352?3:4,o=e.length+t.length,s=Math.ceil(o/a)*a-o+a;return(s-=e.length?i.length%a:0,0===r&&i.length>0)?null:0===r||[...i,...e,...t].length<r?this.shimmerTemplate(s,tK):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${tK}`);e&&(this.paginationObserver=new IntersectionObserver(([e])=>{if(e?.isIntersecting&&!this.initial){let{page:e,count:t,wallets:i}=n.Np.state;i.length<t&&n.Np.fetchWallets({page:e+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){let t=n.aK.getConnector(e.id,e.rdns);t?n.IN.push("ConnectingExternal",{connector:t}):n.IN.push("ConnectingWalletConnect",{wallet:e})}};tG.styles=tF,tV([(0,o.wk)()],tG.prototype,"initial",void 0),tV([(0,o.wk)()],tG.prototype,"wallets",void 0),tV([(0,o.wk)()],tG.prototype,"recommended",void 0),tV([(0,o.wk)()],tG.prototype,"featured",void 0),tG=tV([(0,r.customElement)("w3m-all-wallets-list")],tG);let tJ=(0,a.AH)`
  2893. button {
  2894. display: flex;
  2895. flex-direction: column;
  2896. justify-content: center;
  2897. align-items: center;
  2898. cursor: pointer;
  2899. width: 104px;
  2900. row-gap: var(--wui-spacing-xs);
  2901. padding: var(--wui-spacing-s) var(--wui-spacing-0);
  2902. background-color: var(--wui-color-gray-glass-002);
  2903. border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
  2904. will-change: background-color, color;
  2905. outline: none;
  2906. border: none;
  2907. }
  2908. button > wui-flex > wui-text {
  2909. color: var(--wui-color-fg-100);
  2910. max-width: 86px;
  2911. white-space: nowrap;
  2912. overflow: hidden;
  2913. text-overflow: ellipsis;
  2914. justify-content: center;
  2915. }
  2916. button > wui-flex > wui-text.certified {
  2917. max-width: 66px;
  2918. }
  2919. button:hover:enabled {
  2920. background-color: var(--wui-color-gray-glass-005);
  2921. }
  2922. button:disabled > wui-flex > wui-text {
  2923. color: var(--wui-color-gray-glass-015);
  2924. }
  2925. [data-selected='true'] {
  2926. background-color: var(--wui-color-accent-glass-020);
  2927. }
  2928. @media (hover: hover) and (pointer: fine) {
  2929. [data-selected='true']:hover:enabled {
  2930. background-color: var(--wui-color-accent-glass-015);
  2931. }
  2932. }
  2933. [data-selected='true']:active:enabled {
  2934. background-color: var(--wui-color-accent-glass-010);
  2935. }
  2936. @media (max-width: 350px) {
  2937. button {
  2938. width: 100%;
  2939. }
  2940. }
  2941. `;var tY=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tQ=class extends a.WF{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){let e=this.wallet?.badge_type==="certified";return(0,a.qy)`
  2942. <button ontouchstart>
  2943. ${this.imageTemplate()}
  2944. <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">
  2945. <wui-text
  2946. variant="tiny-500"
  2947. color="inherit"
  2948. class=${(0,s.J)(e?"certified":void 0)}
  2949. >${this.wallet?.name}</wui-text
  2950. >
  2951. ${e?(0,a.qy)`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null}
  2952. </wui-flex>
  2953. </button>
  2954. `}imageTemplate(){return(this.visible||this.imageSrc)&&!this.imageLoading?(0,a.qy)`
  2955. <wui-wallet-image
  2956. size="md"
  2957. imageSrc=${(0,s.J)(this.imageSrc)}
  2958. name=${this.wallet?.name}
  2959. .installed=${this.wallet?.installed}
  2960. badgeSize="sm"
  2961. >
  2962. </wui-wallet-image>
  2963. `:this.shimmerTemplate()}shimmerTemplate(){return(0,a.qy)`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=n.$m.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await n.$m.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};tQ.styles=tJ,tY([(0,o.wk)()],tQ.prototype,"visible",void 0),tY([(0,o.wk)()],tQ.prototype,"imageSrc",void 0),tY([(0,o.wk)()],tQ.prototype,"imageLoading",void 0),tY([(0,o.MZ)()],tQ.prototype,"wallet",void 0),tQ=tY([(0,r.customElement)("w3m-all-wallets-list-item")],tQ);let tX=(0,a.AH)`
  2964. wui-grid,
  2965. wui-loading-spinner,
  2966. wui-flex {
  2967. height: 360px;
  2968. }
  2969. wui-grid {
  2970. overflow: scroll;
  2971. scrollbar-width: none;
  2972. grid-auto-rows: min-content;
  2973. grid-template-columns: repeat(auto-fill, 104px);
  2974. }
  2975. wui-grid[data-scroll='false'] {
  2976. overflow: hidden;
  2977. }
  2978. wui-grid::-webkit-scrollbar {
  2979. display: none;
  2980. }
  2981. wui-loading-spinner {
  2982. justify-content: center;
  2983. align-items: center;
  2984. }
  2985. @media (max-width: 350px) {
  2986. wui-grid {
  2987. grid-template-columns: repeat(2, 1fr);
  2988. }
  2989. }
  2990. `;var t0=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let t1=class extends a.WF{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?(0,a.qy)`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){(this.query.trim()!==this.prevQuery.trim()||this.badge!==this.prevBadge)&&(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await n.Np.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){let{search:e}=n.Np.state,t=tZ.markWalletsAsInstalled(e);return e.length?(0,a.qy)`
  2991. <wui-grid
  2992. .padding=${["0","s","s","s"]}
  2993. rowGap="l"
  2994. columnGap="xs"
  2995. justifyContent="space-between"
  2996. >
  2997. ${t.map(e=>(0,a.qy)`
  2998. <w3m-all-wallets-list-item
  2999. @click=${()=>this.onConnectWallet(e)}
  3000. .wallet=${e}
  3001. data-testid="wallet-search-item-${e.id}"
  3002. ></w3m-all-wallets-list-item>
  3003. `)}
  3004. </wui-grid>
  3005. `:(0,a.qy)`
  3006. <wui-flex justifyContent="center" alignItems="center" gap="s" flexDirection="column">
  3007. <wui-icon-box
  3008. size="lg"
  3009. iconColor="fg-200"
  3010. backgroundColor="fg-300"
  3011. icon="wallet"
  3012. background="transparent"
  3013. ></wui-icon-box>
  3014. <wui-text color="fg-200" variant="paragraph-500">No Wallet found</wui-text>
  3015. </wui-flex>
  3016. `}onConnectWallet(e){let t=n.aK.getConnector(e.id,e.rdns);t?n.IN.push("ConnectingExternal",{connector:t}):n.IN.push("ConnectingWalletConnect",{wallet:e})}};t1.styles=tX,t0([(0,o.wk)()],t1.prototype,"loading",void 0),t0([(0,o.MZ)()],t1.prototype,"query",void 0),t0([(0,o.MZ)()],t1.prototype,"badge",void 0),t1=t0([(0,r.customElement)("w3m-all-wallets-search")],t1);var t2=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let t3=class extends a.WF{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(n.x4.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return(0,a.qy)`
  3017. <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
  3018. <wui-tabs
  3019. ?disabled=${this.buffering}
  3020. .tabs=${e}
  3021. .onTabChange=${this.onTabChange.bind(this)}
  3022. ></wui-tabs>
  3023. </wui-flex>
  3024. `}generateTabs(){let e=this.platforms.map(e=>"browser"===e?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===e?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===e?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===e?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===e?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:e})=>e),e}onTabChange(e){let t=this.platformTabs[e];t&&this.onSelectPlatfrom?.(t)}};t2([(0,o.MZ)({type:Array})],t3.prototype,"platforms",void 0),t2([(0,o.MZ)()],t3.prototype,"onSelectPlatfrom",void 0),t2([(0,o.wk)()],t3.prototype,"buffering",void 0),t3=t2([(0,r.customElement)("w3m-connecting-header")],t3);let t5=class extends Q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=n.aK.state,t=e.find(e=>"ANNOUNCED"===e.type&&e.info?.rdns===this.wallet?.rdns||"INJECTED"===e.type||e.name===this.wallet?.name);if(t)await n.x4.connectExternal(t,t.chain);else throw Error("w3m-connecting-wc-browser: No connector found");n.W3.close(),n.En.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(e){n.En.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};t5=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-wc-browser")],t5);let t4=class extends Q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:t}=this.wallet,{redirect:i,href:r}=n.wE.formatNativeUrl(e,this.uri);n.x4.setWcLinking({name:t,href:r}),n.x4.setRecentWallet(this.wallet),n.wE.openHref(i,"_blank")}catch{this.error=!0}}};t4=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-wc-desktop")],t4);let t6=class extends Q{constructor(){if(super(),this.btnLabelTimeout=void 0,this.labelTimeout=void 0,!this.wallet)throw Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel=void 0,this.secondaryLabel=n.oU.CONNECT_LABELS.MOBILE,this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}}),this.btnLabelTimeout=setTimeout(()=>{this.secondaryBtnLabel="Try again",this.secondaryLabel=n.oU.CONNECT_LABELS.MOBILE},n.oU.FIVE_SEC_MS),this.labelTimeout=setTimeout(()=>{this.secondaryLabel="Hold tight... it's taking longer than expected"},n.oU.THREE_SEC_MS)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this)),clearTimeout(this.btnLabelTimeout),clearTimeout(this.labelTimeout)}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;let{mobile_link:e,name:t}=this.wallet,{redirect:i,href:r}=n.wE.formatNativeUrl(e,this.uri);n.x4.setWcLinking({name:t,href:r}),n.x4.setRecentWallet(this.wallet),n.wE.openHref(i,"_self"),clearTimeout(this.labelTimeout),this.secondaryLabel=n.oU.CONNECT_LABELS.MOBILE}catch(e){n.En.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:e instanceof Error?e.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}}onBuffering(){let e=n.wE.isIos();document?.visibilityState==="visible"&&!this.error&&e&&(n.x4.setBuffering(!0),setTimeout(()=>{n.x4.setBuffering(!1)},5e3))}};t6=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-wc-mobile")],t6);let t8=(0,a.AH)`
  3025. @keyframes fadein {
  3026. from {
  3027. opacity: 0;
  3028. }
  3029. to {
  3030. opacity: 1;
  3031. }
  3032. }
  3033. wui-shimmer {
  3034. width: 100%;
  3035. aspect-ratio: 1 / 1;
  3036. border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
  3037. }
  3038. wui-qr-code {
  3039. opacity: 0;
  3040. animation-duration: 200ms;
  3041. animation-timing-function: ease;
  3042. animation-name: fadein;
  3043. animation-fill-mode: forwards;
  3044. }
  3045. `,t9=class extends Q{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,a.qy)`
  3046. <wui-flex
  3047. flexDirection="column"
  3048. alignItems="center"
  3049. .padding=${["0","xl","xl","xl"]}
  3050. gap="xl"
  3051. >
  3052. <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
  3053. <wui-text variant="paragraph-500" color="fg-100">
  3054. Scan this QR Code with your phone
  3055. </wui-text>
  3056. ${this.copyTemplate()}
  3057. </wui-flex>
  3058. <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
  3059. `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40,t=this.wallet?this.wallet.name:void 0;return n.x4.setWcLinking(void 0),n.x4.setRecentWallet(this.wallet),(0,a.qy)` <wui-qr-code
  3060. size=${e}
  3061. theme=${n.Wn.state.themeMode}
  3062. uri=${this.uri}
  3063. imageSrc=${(0,s.J)(n.$m.getWalletImage(this.wallet))}
  3064. alt=${(0,s.J)(t)}
  3065. data-testid="wui-qr-code"
  3066. ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,a.qy)`<wui-link
  3067. .disabled=${e}
  3068. @click=${this.onCopyUri}
  3069. color="fg-200"
  3070. data-testid="copy-wc2-uri"
  3071. >
  3072. <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
  3073. Copy link
  3074. </wui-link>`}};t9.styles=t8,t9=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-wc-qrcode")],t9);let t7=class extends a.WF{constructor(){if(super(),this.wallet=n.IN.state.data?.wallet,!this.wallet)throw Error("w3m-connecting-wc-unsupported: No wallet provided");n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return(0,a.qy)`
  3075. <wui-flex
  3076. flexDirection="column"
  3077. alignItems="center"
  3078. .padding=${["3xl","xl","xl","xl"]}
  3079. gap="xl"
  3080. >
  3081. <wui-wallet-image
  3082. size="lg"
  3083. imageSrc=${(0,s.J)(n.$m.getWalletImage(this.wallet))}
  3084. ></wui-wallet-image>
  3085. <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
  3086. </wui-flex>
  3087. <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
  3088. `}};t7=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-wc-unsupported")],t7);let ie=class extends Q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",n.En.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:t}=this.wallet,{redirect:i,href:r}=n.wE.formatUniversalUrl(e,this.uri);n.x4.setWcLinking({name:t,href:r}),n.x4.setRecentWallet(this.wallet),n.wE.openHref(i,"_blank")}catch{this.error=!0}}};ie=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-connecting-wc-web")],ie);let it=(0,a.AH)`
  3089. :host {
  3090. width: 100%;
  3091. }
  3092. .details-container > wui-flex {
  3093. background: var(--wui-color-gray-glass-002);
  3094. border-radius: var(--wui-border-radius-xxs);
  3095. width: 100%;
  3096. }
  3097. .details-container > wui-flex > button {
  3098. border: none;
  3099. background: none;
  3100. padding: var(--wui-spacing-s);
  3101. border-radius: var(--wui-border-radius-xxs);
  3102. cursor: pointer;
  3103. }
  3104. .details-content-container {
  3105. padding: var(--wui-spacing-1xs);
  3106. padding-top: 0px;
  3107. display: flex;
  3108. align-items: center;
  3109. justify-content: center;
  3110. }
  3111. .details-content-container > wui-flex {
  3112. width: 100%;
  3113. }
  3114. .details-row {
  3115. width: 100%;
  3116. padding: var(--wui-spacing-s);
  3117. padding-left: var(--wui-spacing-s);
  3118. padding-right: var(--wui-spacing-1xs);
  3119. border-radius: calc(var(--wui-border-radius-5xs) + var(--wui-border-radius-4xs));
  3120. background: var(--wui-color-gray-glass-002);
  3121. }
  3122. .details-row-title {
  3123. white-space: nowrap;
  3124. }
  3125. .details-row.provider-free-row {
  3126. padding-right: var(--wui-spacing-xs);
  3127. }
  3128. `;var ii=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ir=n.oU.CONVERT_SLIPPAGE_TOLERANCE,ia=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.networkName=n.WB.state.activeCaipNetwork?.name,this.detailsOpen=!1,this.sourceToken=n.GN.state.sourceToken,this.toToken=n.GN.state.toToken,this.toTokenAmount=n.GN.state.toTokenAmount,this.sourceTokenPriceInUSD=n.GN.state.sourceTokenPriceInUSD,this.toTokenPriceInUSD=n.GN.state.toTokenPriceInUSD,this.gasPriceInUSD=n.GN.state.gasPriceInUSD,this.priceImpact=n.GN.state.priceImpact,this.maxSlippage=n.GN.state.maxSlippage,this.networkTokenSymbol=n.GN.state.networkTokenSymbol,this.inputError=n.GN.state.inputError,this.unsubscribe.push(n.GN.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.gasPriceInUSD=e.gasPriceInUSD,this.priceImpact=e.priceImpact,this.maxSlippage=e.maxSlippage,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError}))}render(){let e=this.toTokenAmount&&this.maxSlippage?et.Se.bigNumber(this.toTokenAmount).minus(this.maxSlippage).toString():null;if(!this.sourceToken||!this.toToken||this.inputError)return null;let t=this.sourceTokenPriceInUSD&&this.toTokenPriceInUSD?1/this.toTokenPriceInUSD*this.sourceTokenPriceInUSD:0;return(0,a.qy)`
  3129. <wui-flex flexDirection="column" alignItems="center" gap="1xs" class="details-container">
  3130. <wui-flex flexDirection="column">
  3131. <button @click=${this.toggleDetails.bind(this)}>
  3132. <wui-flex justifyContent="space-between" .padding=${["0","xs","0","xs"]}>
  3133. <wui-flex justifyContent="flex-start" flexGrow="1" gap="xs">
  3134. <wui-text variant="small-400" color="fg-100">
  3135. 1 ${this.sourceToken.symbol} =
  3136. ${r.UiHelperUtil.formatNumberToLocalString(t,3)}
  3137. ${this.toToken.symbol}
  3138. </wui-text>
  3139. <wui-text variant="small-400" color="fg-200">
  3140. $${r.UiHelperUtil.formatNumberToLocalString(this.sourceTokenPriceInUSD)}
  3141. </wui-text>
  3142. </wui-flex>
  3143. <wui-icon name="chevronBottom"></wui-icon>
  3144. </wui-flex>
  3145. </button>
  3146. ${this.detailsOpen?(0,a.qy)`
  3147. <wui-flex flexDirection="column" gap="xs" class="details-content-container">
  3148. <wui-flex flexDirection="column" gap="xs">
  3149. <wui-flex
  3150. justifyContent="space-between"
  3151. alignItems="center"
  3152. class="details-row"
  3153. >
  3154. <wui-flex alignItems="center" gap="xs">
  3155. <wui-text class="details-row-title" variant="small-400" color="fg-150">
  3156. Network cost
  3157. </wui-text>
  3158. <w3m-tooltip-trigger
  3159. text=${`Network cost is paid in ${this.networkTokenSymbol} on the ${this.networkName} network in order to execute transaction.`}
  3160. >
  3161. <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon>
  3162. </w3m-tooltip-trigger>
  3163. </wui-flex>
  3164. <wui-text variant="small-400" color="fg-100">
  3165. $${r.UiHelperUtil.formatNumberToLocalString(this.gasPriceInUSD,3)}
  3166. </wui-text>
  3167. </wui-flex>
  3168. </wui-flex>
  3169. ${this.priceImpact?(0,a.qy)` <wui-flex flexDirection="column" gap="xs">
  3170. <wui-flex
  3171. justifyContent="space-between"
  3172. alignItems="center"
  3173. class="details-row"
  3174. >
  3175. <wui-flex alignItems="center" gap="xs">
  3176. <wui-text class="details-row-title" variant="small-400" color="fg-150">
  3177. Price impact
  3178. </wui-text>
  3179. <w3m-tooltip-trigger
  3180. text="Price impact reflects the change in market price due to your trade"
  3181. >
  3182. <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon>
  3183. </w3m-tooltip-trigger>
  3184. </wui-flex>
  3185. <wui-flex>
  3186. <wui-text variant="small-400" color="fg-200">
  3187. ${r.UiHelperUtil.formatNumberToLocalString(this.priceImpact,3)}%
  3188. </wui-text>
  3189. </wui-flex>
  3190. </wui-flex>
  3191. </wui-flex>`:null}
  3192. ${this.maxSlippage&&this.sourceToken.symbol?(0,a.qy)`<wui-flex flexDirection="column" gap="xs">
  3193. <wui-flex
  3194. justifyContent="space-between"
  3195. alignItems="center"
  3196. class="details-row"
  3197. >
  3198. <wui-flex alignItems="center" gap="xs">
  3199. <wui-text class="details-row-title" variant="small-400" color="fg-150">
  3200. Max. slippage
  3201. </wui-text>
  3202. <w3m-tooltip-trigger
  3203. text=${`Max slippage sets the minimum amount you must receive for the transaction to proceed. ${e?`Transaction will be reversed if you receive less than ${r.UiHelperUtil.formatNumberToLocalString(e,6)} ${this.toToken.symbol} due to price changes.`:""}`}
  3204. >
  3205. <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon>
  3206. </w3m-tooltip-trigger>
  3207. </wui-flex>
  3208. <wui-flex>
  3209. <wui-text variant="small-400" color="fg-200">
  3210. ${r.UiHelperUtil.formatNumberToLocalString(this.maxSlippage,6)}
  3211. ${this.toToken.symbol} ${ir}%
  3212. </wui-text>
  3213. </wui-flex>
  3214. </wui-flex>
  3215. </wui-flex>`:null}
  3216. <wui-flex flexDirection="column" gap="xs">
  3217. <wui-flex
  3218. justifyContent="space-between"
  3219. alignItems="center"
  3220. class="details-row provider-free-row"
  3221. >
  3222. <wui-flex alignItems="center" gap="xs">
  3223. <wui-text class="details-row-title" variant="small-400" color="fg-150">
  3224. Provider fee
  3225. </wui-text>
  3226. </wui-flex>
  3227. <wui-flex>
  3228. <wui-text variant="small-400" color="fg-200">0.85%</wui-text>
  3229. </wui-flex>
  3230. </wui-flex>
  3231. </wui-flex>
  3232. </wui-flex>
  3233. `:null}
  3234. </wui-flex>
  3235. </wui-flex>
  3236. `}toggleDetails(){this.detailsOpen=!this.detailsOpen}};ia.styles=[it],ii([(0,o.wk)()],ia.prototype,"networkName",void 0),ii([(0,o.MZ)()],ia.prototype,"detailsOpen",void 0),ii([(0,o.wk)()],ia.prototype,"sourceToken",void 0),ii([(0,o.wk)()],ia.prototype,"toToken",void 0),ii([(0,o.wk)()],ia.prototype,"toTokenAmount",void 0),ii([(0,o.wk)()],ia.prototype,"sourceTokenPriceInUSD",void 0),ii([(0,o.wk)()],ia.prototype,"toTokenPriceInUSD",void 0),ii([(0,o.wk)()],ia.prototype,"gasPriceInUSD",void 0),ii([(0,o.wk)()],ia.prototype,"priceImpact",void 0),ii([(0,o.wk)()],ia.prototype,"maxSlippage",void 0),ii([(0,o.wk)()],ia.prototype,"networkTokenSymbol",void 0),ii([(0,o.wk)()],ia.prototype,"inputError",void 0),ia=ii([(0,r.customElement)("w3m-swap-details")],ia);let io=(0,a.AH)`
  3237. :host > wui-flex {
  3238. display: flex;
  3239. flex-direction: row;
  3240. justify-content: space-between;
  3241. align-items: center;
  3242. border-radius: var(--wui-border-radius-s);
  3243. background-color: var(--wui-color-gray-glass-002);
  3244. padding: var(--wui-spacing-xl);
  3245. padding-right: var(--wui-spacing-s);
  3246. width: 100%;
  3247. height: 100px;
  3248. box-sizing: border-box;
  3249. box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002);
  3250. position: relative;
  3251. transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-lg);
  3252. will-change: background-color;
  3253. }
  3254. :host wui-flex.focus {
  3255. box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-005);
  3256. }
  3257. :host > wui-flex .swap-input,
  3258. :host > wui-flex .swap-token-button {
  3259. z-index: 10;
  3260. }
  3261. :host > wui-flex .swap-input {
  3262. -webkit-mask-image: linear-gradient(
  3263. 270deg,
  3264. transparent 0px,
  3265. transparent 8px,
  3266. black 24px,
  3267. black 25px,
  3268. black 32px,
  3269. black 100%
  3270. );
  3271. mask-image: linear-gradient(
  3272. 270deg,
  3273. transparent 0px,
  3274. transparent 8px,
  3275. black 24px,
  3276. black 25px,
  3277. black 32px,
  3278. black 100%
  3279. );
  3280. }
  3281. :host > wui-flex .swap-input input {
  3282. background: none;
  3283. border: none;
  3284. height: 42px;
  3285. width: 100%;
  3286. font-size: 32px;
  3287. font-style: normal;
  3288. font-weight: 400;
  3289. line-height: 130%;
  3290. letter-spacing: -1.28px;
  3291. outline: none;
  3292. caret-color: var(--wui-color-accent-100);
  3293. color: var(--wui-color-fg-100);
  3294. padding: 0px;
  3295. }
  3296. :host > wui-flex .swap-input input:focus-visible {
  3297. outline: none;
  3298. }
  3299. :host > wui-flex .swap-input input::-webkit-outer-spin-button,
  3300. :host > wui-flex .swap-input input::-webkit-inner-spin-button {
  3301. -webkit-appearance: none;
  3302. margin: 0;
  3303. }
  3304. .max-value-button {
  3305. background-color: transparent;
  3306. border: none;
  3307. cursor: pointer;
  3308. color: var(--wui-color-gray-glass-020);
  3309. padding-left: 0px;
  3310. }
  3311. .market-value {
  3312. min-height: 18px;
  3313. }
  3314. `;var is=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ic=class extends a.WF{constructor(){super(...arguments),this.focused=!1,this.price=0,this.target="sourceToken",this.onSetAmount=null,this.onSetMaxValue=null}render(){let e=this.marketValue||"0",t=et.Se.bigNumber(e).isGreaterThan("0");return(0,a.qy)`
  3315. <wui-flex class="${this.focused?"focus":""}" justifyContent="space-between">
  3316. <wui-flex
  3317. flex="1"
  3318. flexDirection="column"
  3319. alignItems="flex-start"
  3320. justifyContent="center"
  3321. class="swap-input"
  3322. >
  3323. <input
  3324. data-testid="swap-input-${this.target}"
  3325. @focusin=${()=>this.onFocusChange(!0)}
  3326. @focusout=${()=>this.onFocusChange(!1)}
  3327. ?disabled=${this.disabled}
  3328. .value=${this.value}
  3329. @input=${this.dispatchInputChangeEvent}
  3330. @keydown=${this.handleKeydown}
  3331. placeholder="0"
  3332. type="text"
  3333. inputmode="decimal"
  3334. />
  3335. <wui-text class="market-value" variant="small-400" color="fg-200">
  3336. ${t?`$${r.UiHelperUtil.formatNumberToLocalString(this.marketValue,3)}`:null}
  3337. </wui-text>
  3338. </wui-flex>
  3339. ${this.templateTokenSelectButton()}
  3340. </wui-flex>
  3341. `}handleKeydown(e){return et.t$.numericInputKeyDown(e,this.value,e=>this.onSetAmount?.(this.target,e))}dispatchInputChangeEvent(e){if(!this.onSetAmount)return;let t=e.target.value.replace(/[^0-9.]/gu,"");","===t||"."===t?this.onSetAmount(this.target,"0."):t.endsWith(",")?this.onSetAmount(this.target,t.replace(",",".")):this.onSetAmount(this.target,t)}setMaxValueToInput(){this.onSetMaxValue?.(this.target,this.balance)}templateTokenSelectButton(){return this.token?(0,a.qy)`
  3342. <wui-flex
  3343. class="swap-token-button"
  3344. flexDirection="column"
  3345. alignItems="flex-end"
  3346. justifyContent="center"
  3347. gap="xxs"
  3348. >
  3349. <wui-token-button
  3350. data-testid="swap-input-token-${this.target}"
  3351. text=${this.token.symbol}
  3352. imageSrc=${this.token.logoUri}
  3353. @click=${this.onSelectToken.bind(this)}
  3354. >
  3355. </wui-token-button>
  3356. <wui-flex alignItems="center" gap="xxs"> ${this.tokenBalanceTemplate()} </wui-flex>
  3357. </wui-flex>
  3358. `:(0,a.qy)` <wui-button
  3359. data-testid="swap-select-token-button-${this.target}"
  3360. class="swap-token-button"
  3361. size="md"
  3362. variant="accent"
  3363. @click=${this.onSelectToken.bind(this)}
  3364. >
  3365. Select token
  3366. </wui-button>`}tokenBalanceTemplate(){let e=et.Se.multiply(this.balance,this.price),t=!!e&&e?.isGreaterThan(5e-5);return(0,a.qy)`
  3367. ${t?(0,a.qy)`<wui-text variant="small-400" color="fg-200">
  3368. ${r.UiHelperUtil.formatNumberToLocalString(this.balance,3)}
  3369. </wui-text>`:null}
  3370. ${"sourceToken"===this.target?this.tokenActionButtonTemplate(t):null}
  3371. `}tokenActionButtonTemplate(e){return e?(0,a.qy)` <button class="max-value-button" @click=${this.setMaxValueToInput.bind(this)}>
  3372. <wui-text color="accent-100" variant="small-600">Max</wui-text>
  3373. </button>`:(0,a.qy)` <button class="max-value-button" @click=${this.onBuyToken.bind(this)}>
  3374. <wui-text color="accent-100" variant="small-600">Buy</wui-text>
  3375. </button>`}onFocusChange(e){this.focused=e}onSelectToken(){n.En.sendEvent({type:"track",event:"CLICK_SELECT_TOKEN_TO_SWAP"}),n.IN.push("SwapSelectToken",{target:this.target})}onBuyToken(){n.IN.push("OnRampProviders")}};ic.styles=[io],is([(0,o.MZ)()],ic.prototype,"focused",void 0),is([(0,o.MZ)()],ic.prototype,"balance",void 0),is([(0,o.MZ)()],ic.prototype,"value",void 0),is([(0,o.MZ)()],ic.prototype,"price",void 0),is([(0,o.MZ)()],ic.prototype,"marketValue",void 0),is([(0,o.MZ)()],ic.prototype,"disabled",void 0),is([(0,o.MZ)()],ic.prototype,"target",void 0),is([(0,o.MZ)()],ic.prototype,"token",void 0),is([(0,o.MZ)()],ic.prototype,"onSetAmount",void 0),is([(0,o.MZ)()],ic.prototype,"onSetMaxValue",void 0),ic=is([(0,r.customElement)("w3m-swap-input")],ic);let il=(0,a.AH)`
  3376. :host {
  3377. width: 100%;
  3378. }
  3379. :host > wui-flex {
  3380. display: flex;
  3381. flex-direction: row;
  3382. justify-content: space-between;
  3383. align-items: center;
  3384. border-radius: var(--wui-border-radius-s);
  3385. padding: var(--wui-spacing-xl);
  3386. padding-right: var(--wui-spacing-s);
  3387. background-color: var(--wui-color-gray-glass-002);
  3388. box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002);
  3389. width: 100%;
  3390. height: 100px;
  3391. box-sizing: border-box;
  3392. position: relative;
  3393. }
  3394. wui-shimmer.market-value {
  3395. opacity: 0;
  3396. }
  3397. :host > wui-flex > svg.input_mask {
  3398. position: absolute;
  3399. inset: 0;
  3400. z-index: 5;
  3401. }
  3402. :host wui-flex .input_mask__border,
  3403. :host wui-flex .input_mask__background {
  3404. transition: fill var(--wui-duration-md) var(--wui-ease-out-power-1);
  3405. will-change: fill;
  3406. }
  3407. :host wui-flex .input_mask__border {
  3408. fill: var(--wui-color-gray-glass-020);
  3409. }
  3410. :host wui-flex .input_mask__background {
  3411. fill: var(--wui-color-gray-glass-002);
  3412. }
  3413. `;var iu=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let id=class extends a.WF{constructor(){super(...arguments),this.target="sourceToken"}render(){return(0,a.qy)`
  3414. <wui-flex class justifyContent="space-between">
  3415. <wui-flex
  3416. flex="1"
  3417. flexDirection="column"
  3418. alignItems="flex-start"
  3419. justifyContent="center"
  3420. class="swap-input"
  3421. gap="xxs"
  3422. >
  3423. <wui-shimmer width="80px" height="40px" borderRadius="xxs" variant="light"></wui-shimmer>
  3424. </wui-flex>
  3425. ${this.templateTokenSelectButton()}
  3426. </wui-flex>
  3427. `}templateTokenSelectButton(){return(0,a.qy)`
  3428. <wui-flex
  3429. class="swap-token-button"
  3430. flexDirection="column"
  3431. alignItems="flex-end"
  3432. justifyContent="center"
  3433. gap="xxs"
  3434. >
  3435. <wui-shimmer width="80px" height="40px" borderRadius="3xl" variant="light"></wui-shimmer>
  3436. </wui-flex>
  3437. `}};id.styles=[il],iu([(0,o.MZ)()],id.prototype,"target",void 0),id=iu([(0,r.customElement)("w3m-swap-input-skeleton")],id);let ih=(0,a.AH)`
  3438. :host {
  3439. height: 64px;
  3440. }
  3441. wui-text {
  3442. text-transform: capitalize;
  3443. }
  3444. wui-flex.w3m-header-title {
  3445. transform: translateY(0);
  3446. opacity: 1;
  3447. }
  3448. wui-flex.w3m-header-title[view-direction='prev'] {
  3449. animation:
  3450. slide-down-out 120ms forwards var(--wui-ease-out-power-2),
  3451. slide-down-in 120ms forwards var(--wui-ease-out-power-2);
  3452. animation-delay: 0ms, 200ms;
  3453. }
  3454. wui-flex.w3m-header-title[view-direction='next'] {
  3455. animation:
  3456. slide-up-out 120ms forwards var(--wui-ease-out-power-2),
  3457. slide-up-in 120ms forwards var(--wui-ease-out-power-2);
  3458. animation-delay: 0ms, 200ms;
  3459. }
  3460. wui-icon-link[data-hidden='true'] {
  3461. opacity: 0 !important;
  3462. pointer-events: none;
  3463. }
  3464. @keyframes slide-up-out {
  3465. from {
  3466. transform: translateY(0px);
  3467. opacity: 1;
  3468. }
  3469. to {
  3470. transform: translateY(3px);
  3471. opacity: 0;
  3472. }
  3473. }
  3474. @keyframes slide-up-in {
  3475. from {
  3476. transform: translateY(-3px);
  3477. opacity: 0;
  3478. }
  3479. to {
  3480. transform: translateY(0);
  3481. opacity: 1;
  3482. }
  3483. }
  3484. @keyframes slide-down-out {
  3485. from {
  3486. transform: translateY(0px);
  3487. opacity: 1;
  3488. }
  3489. to {
  3490. transform: translateY(-3px);
  3491. opacity: 0;
  3492. }
  3493. }
  3494. @keyframes slide-down-in {
  3495. from {
  3496. transform: translateY(3px);
  3497. opacity: 0;
  3498. }
  3499. to {
  3500. transform: translateY(0);
  3501. opacity: 1;
  3502. }
  3503. }
  3504. `;var ip=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ig=["SmartSessionList"];function iw(){let e=n.IN.state.data?.connector?.name,t=n.IN.state.data?.wallet?.name,i=n.IN.state.data?.network?.name,r=t??e,a=n.aK.getConnectors(),o=1===a.length&&a[0]?.id==="w3m-email";return{Connect:`Connect ${o?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExternal:r??"Connect Wallet",ConnectingWalletConnect:r??"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:r?`Get ${r}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Profile:void 0,SwitchNetwork:i??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpgradeToSmartAccount:void 0,UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:n.Uj.state.socialProvider?n.Uj.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In"}}let im=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.heading=iw()[n.IN.state.view],this.network=n.WB.state.activeCaipNetwork,this.buffering=!1,this.showBack=!1,this.prevHistoryLength=1,this.view=n.IN.state.view,this.viewDirection="",this.headerText=iw()[n.IN.state.view],this.unsubscribe.push(n.IN.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=iw()[e]},I.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),n.x4.subscribeKey("buffering",e=>this.buffering=e),n.WB.subscribeKey("activeCaipNetwork",e=>this.network=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`
  3505. <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
  3506. ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
  3507. </wui-flex>
  3508. `}onWalletHelp(){n.En.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),n.IN.push("WhatIsAWallet")}async onClose(){"UnsupportedChain"===n.IN.state.view||await n.UG.isSIWXCloseDisabled()?n.W3.shake():n.W3.close()}rightHeaderTemplate(){let e=n.Hd?.state?.features?.smartSessions;return"Account"===n.IN.state.view&&e?(0,a.qy)`<wui-flex>
  3509. <wui-icon-link
  3510. icon="clock"
  3511. @click=${()=>n.IN.push("SmartSessionList")}
  3512. data-testid="w3m-header-smart-sessions"
  3513. ></wui-icon-link>
  3514. ${this.closeButtonTemplate()}
  3515. </wui-flex> `:this.closeButtonTemplate()}closeButtonTemplate(){return(0,a.qy)`
  3516. <wui-icon-link
  3517. ?disabled=${this.buffering}
  3518. icon="close"
  3519. @click=${this.onClose.bind(this)}
  3520. data-testid="w3m-header-close"
  3521. ></wui-icon-link>
  3522. `}titleTemplate(){let e=ig.includes(this.view);return(0,a.qy)`
  3523. <wui-flex
  3524. view-direction="${this.viewDirection}"
  3525. class="w3m-header-title"
  3526. alignItems="center"
  3527. gap="xs"
  3528. >
  3529. <wui-text variant="paragraph-700" color="fg-100" data-testid="w3m-header-text"
  3530. >${this.headerText}</wui-text
  3531. >
  3532. ${e?(0,a.qy)`<wui-tag variant="main">Beta</wui-tag>`:null}
  3533. </wui-flex>
  3534. `}leftHeaderTemplate(){let{view:e}=n.IN.state;return"Account"===e?(0,a.qy)`<wui-select
  3535. id="dynamic"
  3536. data-testid="w3m-account-select-network"
  3537. active-network=${(0,s.J)(this.network?.name)}
  3538. @click=${this.onNetworks.bind(this)}
  3539. imageSrc=${(0,s.J)(n.$m.getNetworkImage(this.network))}
  3540. ></wui-select>`:this.showBack&&!("ApproveTransaction"===e||"UpgradeToSmartAccount"===e||"ConnectingSiwe"===e)?(0,a.qy)`<wui-icon-link
  3541. id="dynamic"
  3542. icon="chevronLeft"
  3543. ?disabled=${this.buffering}
  3544. @click=${this.onGoBack.bind(this)}
  3545. ></wui-icon-link>`:(0,a.qy)`<wui-icon-link
  3546. data-hidden=${"Connect"!==e}
  3547. id="dynamic"
  3548. icon="helpCircle"
  3549. @click=${this.onWalletHelp.bind(this)}
  3550. ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&(n.En.sendEvent({type:"track",event:"CLICK_NETWORKS"}),n.IN.push("Networks"))}isAllowedNetworkSwitch(){let e=n.WB.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,i=e?.find(({id:e})=>e===this.network?.id);return t||!i}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){let{history:e}=n.IN.state,t=I.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=I.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){let{history:e}=n.IN.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){n.IN.goBack()}};im.styles=ih,ip([(0,o.wk)()],im.prototype,"heading",void 0),ip([(0,o.wk)()],im.prototype,"network",void 0),ip([(0,o.wk)()],im.prototype,"buffering",void 0),ip([(0,o.wk)()],im.prototype,"showBack",void 0),ip([(0,o.wk)()],im.prototype,"prevHistoryLength",void 0),ip([(0,o.wk)()],im.prototype,"view",void 0),ip([(0,o.wk)()],im.prototype,"viewDirection",void 0),ip([(0,o.wk)()],im.prototype,"headerText",void 0),im=ip([(0,r.customElement)("w3m-header")],im);var ib=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iv=class extends a.WF{constructor(){super(...arguments),this.data=[]}render(){return(0,a.qy)`
  3551. <wui-flex flexDirection="column" alignItems="center" gap="l">
  3552. ${this.data.map(e=>(0,a.qy)`
  3553. <wui-flex flexDirection="column" alignItems="center" gap="xl">
  3554. <wui-flex flexDirection="row" justifyContent="center" gap="1xs">
  3555. ${e.images.map(e=>(0,a.qy)`<wui-visual name=${e}></wui-visual>`)}
  3556. </wui-flex>
  3557. </wui-flex>
  3558. <wui-flex flexDirection="column" alignItems="center" gap="xxs">
  3559. <wui-text variant="paragraph-500" color="fg-100" align="center">
  3560. ${e.title}
  3561. </wui-text>
  3562. <wui-text variant="small-500" color="fg-200" align="center">${e.text}</wui-text>
  3563. </wui-flex>
  3564. `)}
  3565. </wui-flex>
  3566. `}};ib([(0,o.MZ)({type:Array})],iv.prototype,"data",void 0),iv=ib([(0,r.customElement)("w3m-help-widget")],iv);let iy=(0,a.AH)`
  3567. :host {
  3568. width: 100%;
  3569. }
  3570. :host > wui-flex {
  3571. width: 100%;
  3572. padding: var(--wui-spacing-s);
  3573. border-radius: var(--wui-border-radius-xs);
  3574. width: 100%;
  3575. display: flex;
  3576. align-items: center;
  3577. justify-content: flex-start;
  3578. gap: var(--wui-spacing-s);
  3579. }
  3580. :host > wui-flex:hover {
  3581. background-color: var(--wui-color-gray-glass-002);
  3582. }
  3583. .purchase-image-container {
  3584. display: flex;
  3585. justify-content: center;
  3586. align-items: center;
  3587. position: relative;
  3588. width: var(--wui-icon-box-size-lg);
  3589. height: var(--wui-icon-box-size-lg);
  3590. }
  3591. .purchase-image-container wui-image {
  3592. width: 100%;
  3593. height: 100%;
  3594. position: relative;
  3595. border-radius: calc(var(--wui-icon-box-size-lg) / 2);
  3596. }
  3597. .purchase-image-container wui-image::after {
  3598. content: '';
  3599. display: block;
  3600. width: 100%;
  3601. height: 100%;
  3602. position: absolute;
  3603. inset: 0;
  3604. border-radius: calc(var(--wui-icon-box-size-lg) / 2);
  3605. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  3606. }
  3607. .purchase-image-container wui-icon-box {
  3608. position: absolute;
  3609. right: 0;
  3610. bottom: 0;
  3611. transform: translate(20%, 20%);
  3612. }
  3613. `;var ix=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iC=class extends a.WF{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="Bought",this.purchaseValue="",this.purchaseCurrency="",this.date="",this.completed=!1,this.inProgress=!1,this.failed=!1,this.onClick=null,this.symbol=""}firstUpdated(){this.icon||this.fetchTokenImage()}render(){return(0,a.qy)`
  3614. <wui-flex>
  3615. ${this.imageTemplate()}
  3616. <wui-flex flexDirection="column" gap="4xs" flexGrow="1">
  3617. <wui-flex gap="xxs" alignItems="center" justifyContent="flex-start">
  3618. ${this.statusIconTemplate()}
  3619. <wui-text variant="paragraph-500" color="fg-100"> ${this.label}</wui-text>
  3620. </wui-flex>
  3621. <wui-text variant="small-400" color="fg-200">
  3622. + ${this.purchaseValue} ${this.purchaseCurrency}
  3623. </wui-text>
  3624. </wui-flex>
  3625. ${this.inProgress?(0,a.qy)`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:(0,a.qy)`<wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text>`}
  3626. </wui-flex>
  3627. `}async fetchTokenImage(){await n.Np._fetchTokenImage(this.purchaseCurrency)}statusIconTemplate(){return this.inProgress?null:this.completed?this.boughtIconTemplate():this.errorIconTemplate()}errorIconTemplate(){return(0,a.qy)`<wui-icon-box
  3628. size="xxs"
  3629. iconColor="error-100"
  3630. backgroundColor="error-100"
  3631. background="opaque"
  3632. icon="close"
  3633. borderColor="wui-color-bg-125"
  3634. ></wui-icon-box>`}imageTemplate(){let e=this.icon||`https://avatar.vercel.sh/andrew.svg?size=50&text=${this.symbol}`;return(0,a.qy)`<wui-flex class="purchase-image-container">
  3635. <wui-image src=${e}></wui-image>
  3636. </wui-flex>`}boughtIconTemplate(){return(0,a.qy)`<wui-icon-box
  3637. size="xxs"
  3638. iconColor="success-100"
  3639. backgroundColor="success-100"
  3640. background="opaque"
  3641. icon="arrowBottom"
  3642. borderColor="wui-color-bg-125"
  3643. ></wui-icon-box>`}};iC.styles=[iy],ix([(0,o.MZ)({type:Boolean})],iC.prototype,"disabled",void 0),ix([(0,o.MZ)()],iC.prototype,"color",void 0),ix([(0,o.MZ)()],iC.prototype,"label",void 0),ix([(0,o.MZ)()],iC.prototype,"purchaseValue",void 0),ix([(0,o.MZ)()],iC.prototype,"purchaseCurrency",void 0),ix([(0,o.MZ)()],iC.prototype,"date",void 0),ix([(0,o.MZ)({type:Boolean})],iC.prototype,"completed",void 0),ix([(0,o.MZ)({type:Boolean})],iC.prototype,"inProgress",void 0),ix([(0,o.MZ)({type:Boolean})],iC.prototype,"failed",void 0),ix([(0,o.MZ)()],iC.prototype,"onClick",void 0),ix([(0,o.MZ)()],iC.prototype,"symbol",void 0),ix([(0,o.MZ)()],iC.prototype,"icon",void 0),iC=ix([(0,r.customElement)("w3m-onramp-activity-item")],iC);let iA=(0,a.AH)`
  3644. :host {
  3645. width: 100%;
  3646. }
  3647. wui-loading-spinner {
  3648. position: absolute;
  3649. top: 50%;
  3650. right: 20px;
  3651. transform: translateY(-50%);
  3652. }
  3653. .currency-container {
  3654. position: absolute;
  3655. top: 50%;
  3656. transform: translateY(-50%);
  3657. right: var(--wui-spacing-1xs);
  3658. height: 40px;
  3659. padding: var(--wui-spacing-xs) var(--wui-spacing-1xs) var(--wui-spacing-xs)
  3660. var(--wui-spacing-xs);
  3661. min-width: 95px;
  3662. border-radius: var(--FULL, 1000px);
  3663. border: 1px solid var(--wui-color-gray-glass-002);
  3664. background: var(--wui-color-gray-glass-002);
  3665. cursor: pointer;
  3666. }
  3667. .currency-container > wui-image {
  3668. height: 24px;
  3669. width: 24px;
  3670. border-radius: 50%;
  3671. }
  3672. `;var iE=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let i_=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=this.currencies?.[0],this.currencyImages=n.jQ.state.currencyImages,this.tokenImages=n.jQ.state.tokenImages,this.unsubscribe.push(n.aG.subscribeKey("purchaseCurrency",e=>{e&&"Fiat"!==this.type&&(this.selectedCurrency=this.formatPurchaseCurrency(e))}),n.aG.subscribeKey("paymentCurrency",e=>{e&&"Token"!==this.type&&(this.selectedCurrency=this.formatPaymentCurrency(e))}),n.aG.subscribe(e=>{"Fiat"===this.type?this.currencies=e.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=e.paymentCurrencies.map(this.formatPaymentCurrency)}),n.jQ.subscribe(e=>{this.currencyImages={...e.currencyImages},this.tokenImages={...e.tokenImages}}))}firstUpdated(){n.aG.getAvailableCurrencies()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.selectedCurrency?.symbol||"",t=this.currencyImages[e]||this.tokenImages[e];return(0,a.qy)`<wui-input-text type="number" size="lg" value=${this.value}>
  3673. ${this.selectedCurrency?(0,a.qy)` <wui-flex
  3674. class="currency-container"
  3675. justifyContent="space-between"
  3676. alignItems="center"
  3677. gap="xxs"
  3678. @click=${()=>n.W3.open({view:`OnRamp${this.type}Select`})}
  3679. >
  3680. <wui-image src=${(0,s.J)(t)}></wui-image>
  3681. <wui-text color="fg-100">${this.selectedCurrency.symbol}</wui-text>
  3682. </wui-flex>`:(0,a.qy)`<wui-loading-spinner></wui-loading-spinner>`}
  3683. </wui-input-text>`}formatPaymentCurrency(e){return{name:e.id,symbol:e.id}}formatPurchaseCurrency(e){return{name:e.name,symbol:e.symbol}}};i_.styles=iA,iE([(0,o.MZ)({type:String})],i_.prototype,"type",void 0),iE([(0,o.MZ)({type:Number})],i_.prototype,"value",void 0),iE([(0,o.wk)()],i_.prototype,"currencies",void 0),iE([(0,o.wk)()],i_.prototype,"selectedCurrency",void 0),iE([(0,o.wk)()],i_.prototype,"currencyImages",void 0),iE([(0,o.wk)()],i_.prototype,"tokenImages",void 0),i_=iE([(0,r.customElement)("w3m-onramp-input")],i_);let ik=(0,a.AH)`
  3684. button {
  3685. padding: var(--wui-spacing-s);
  3686. border-radius: var(--wui-border-radius-xs);
  3687. border: none;
  3688. outline: none;
  3689. background-color: var(--wui-color-gray-glass-002);
  3690. width: 100%;
  3691. display: flex;
  3692. align-items: center;
  3693. justify-content: flex-start;
  3694. gap: var(--wui-spacing-s);
  3695. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
  3696. will-change: background-color;
  3697. }
  3698. button:hover {
  3699. background-color: var(--wui-color-gray-glass-005);
  3700. }
  3701. .provider-image {
  3702. width: var(--wui-spacing-3xl);
  3703. min-width: var(--wui-spacing-3xl);
  3704. height: var(--wui-spacing-3xl);
  3705. border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2));
  3706. position: relative;
  3707. overflow: hidden;
  3708. }
  3709. .provider-image::after {
  3710. content: '';
  3711. display: block;
  3712. width: 100%;
  3713. height: 100%;
  3714. position: absolute;
  3715. inset: 0;
  3716. border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2));
  3717. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  3718. }
  3719. .network-icon {
  3720. width: var(--wui-spacing-m);
  3721. height: var(--wui-spacing-m);
  3722. border-radius: calc(var(--wui-spacing-m) / 2);
  3723. overflow: hidden;
  3724. box-shadow:
  3725. 0 0 0 3px var(--wui-color-gray-glass-002),
  3726. 0 0 0 3px var(--wui-color-modal-bg);
  3727. transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-md);
  3728. will-change: box-shadow;
  3729. }
  3730. button:hover .network-icon {
  3731. box-shadow:
  3732. 0 0 0 3px var(--wui-color-gray-glass-005),
  3733. 0 0 0 3px var(--wui-color-modal-bg);
  3734. }
  3735. `;var iI=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iS=class extends a.WF{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return(0,a.qy)`
  3736. <button ?disabled=${this.disabled} ontouchstart>
  3737. <wui-visual name=${(0,s.J)(this.name)} class="provider-image"></wui-visual>
  3738. <wui-flex flexDirection="column" gap="4xs">
  3739. <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text>
  3740. <wui-flex alignItems="center" justifyContent="flex-start" gap="l">
  3741. <wui-text variant="tiny-500" color="fg-100">
  3742. <wui-text variant="tiny-400" color="fg-200">Fees</wui-text>
  3743. ${this.feeRange}
  3744. </wui-text>
  3745. <wui-flex gap="xxs">
  3746. <wui-icon name="bank" size="xs" color="fg-150"></wui-icon>
  3747. <wui-icon name="card" size="xs" color="fg-150"></wui-icon>
  3748. </wui-flex>
  3749. ${this.networksTemplate()}
  3750. </wui-flex>
  3751. </wui-flex>
  3752. ${this.loading?(0,a.qy)`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:(0,a.qy)`<wui-icon name="chevronRight" color="fg-200" size="sm"></wui-icon>`}
  3753. </button>
  3754. `}networksTemplate(){let e=n.WB.getAllRequestedCaipNetworks(),t=e?.filter(e=>e?.assets?.imageId)?.slice(0,5);return(0,a.qy)`
  3755. <wui-flex class="networks">
  3756. ${t?.map(e=>a.qy`
  3757. <wui-flex class="network-icon">
  3758. <wui-image src=${s.J(n.$m.getNetworkImage(e))}></wui-image>
  3759. </wui-flex>
  3760. `)}
  3761. </wui-flex>
  3762. `}};iS.styles=[ik],iI([(0,o.MZ)({type:Boolean})],iS.prototype,"disabled",void 0),iI([(0,o.MZ)()],iS.prototype,"color",void 0),iI([(0,o.MZ)()],iS.prototype,"name",void 0),iI([(0,o.MZ)()],iS.prototype,"label",void 0),iI([(0,o.MZ)()],iS.prototype,"feeRange",void 0),iI([(0,o.MZ)({type:Boolean})],iS.prototype,"loading",void 0),iI([(0,o.MZ)()],iS.prototype,"onClick",void 0),iS=iI([(0,r.customElement)("w3m-onramp-provider-item")],iS);let iT=(0,a.AH)`
  3763. wui-flex {
  3764. background-color: var(--wui-color-gray-glass-005);
  3765. }
  3766. a {
  3767. text-decoration: none;
  3768. color: var(--wui-color-fg-175);
  3769. font-weight: 500;
  3770. }
  3771. `,iN=class extends a.WF{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox;return(e||t)&&!i?(0,a.qy)`
  3772. <wui-flex .padding=${["m","s","s","s"]} justifyContent="center">
  3773. <wui-text color="fg-250" variant="small-400" align="center">
  3774. By connecting your wallet, you agree to our <br />
  3775. ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
  3776. </wui-text>
  3777. </wui-flex>
  3778. `:null}andTemplate(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=n.Hd.state;return e?(0,a.qy)`<a href=${e}>Terms of Service</a>`:null}privacyTemplate(){let{privacyPolicyUrl:e}=n.Hd.state;return e?(0,a.qy)`<a href=${e}>Privacy Policy</a>`:null}};iN.styles=[iT],iN=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-legal-footer")],iN);let iP=(0,a.AH)`
  3779. :host {
  3780. display: flex;
  3781. align-items: center;
  3782. justify-content: center;
  3783. }
  3784. wui-checkbox {
  3785. padding: var(--wui-spacing-s);
  3786. }
  3787. a {
  3788. text-decoration: none;
  3789. color: var(--wui-color-fg-150);
  3790. font-weight: 500;
  3791. }
  3792. `,iR=class extends a.WF{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state,i=n.Hd.state.features?.legalCheckbox;return(e||t)&&i?(0,a.qy)`
  3793. <wui-checkbox data-testid="wui-checkbox">
  3794. <wui-text color="fg-250" variant="small-400" align="left">
  3795. I agree to our ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
  3796. </wui-text>
  3797. </wui-checkbox>
  3798. `:null}andTemplate(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=n.Hd.state;return e?(0,a.qy)`<a rel="noreferrer" target="_blank" href=${e}>terms of service</a>`:null}privacyTemplate(){let{privacyPolicyUrl:e}=n.Hd.state;return e?(0,a.qy)`<a rel="noreferrer" target="_blank" href=${e}>privacy policy</a>`:null}};iR.styles=[iP],iR=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-legal-checkbox")],iR);let iO=(0,a.AH)`
  3799. :host {
  3800. display: block;
  3801. padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
  3802. }
  3803. `;var iM=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iD=class extends a.WF{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;let{name:e,app_store:t,play_store:i,chrome_store:o,homepage:s}=this.wallet,c=n.wE.isMobile(),l=n.wE.isIos(),u=n.wE.isAndroid(),d=[t,i,s,o].filter(Boolean).length>1,h=r.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return d&&!c?(0,a.qy)`
  3804. <wui-cta-button
  3805. label=${`Don't have ${h}?`}
  3806. buttonLabel="Get"
  3807. @click=${()=>n.IN.push("Downloads",{wallet:this.wallet})}
  3808. ></wui-cta-button>
  3809. `:!d&&s?(0,a.qy)`
  3810. <wui-cta-button
  3811. label=${`Don't have ${h}?`}
  3812. buttonLabel="Get"
  3813. @click=${this.onHomePage.bind(this)}
  3814. ></wui-cta-button>
  3815. `:t&&l?(0,a.qy)`
  3816. <wui-cta-button
  3817. label=${`Don't have ${h}?`}
  3818. buttonLabel="Get"
  3819. @click=${this.onAppStore.bind(this)}
  3820. ></wui-cta-button>
  3821. `:i&&u?(0,a.qy)`
  3822. <wui-cta-button
  3823. label=${`Don't have ${h}?`}
  3824. buttonLabel="Get"
  3825. @click=${this.onPlayStore.bind(this)}
  3826. ></wui-cta-button>
  3827. `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&n.wE.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&n.wE.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&n.wE.openHref(this.wallet.homepage,"_blank")}};iD.styles=[iO],iM([(0,o.MZ)({type:Object})],iD.prototype,"wallet",void 0),iD=iM([(0,r.customElement)("w3m-mobile-download-links")],iD);let iU=(0,a.AH)`
  3828. wui-flex {
  3829. border-top: 1px solid var(--wui-color-gray-glass-005);
  3830. }
  3831. a {
  3832. text-decoration: none;
  3833. color: var(--wui-color-fg-175);
  3834. font-weight: 500;
  3835. display: flex;
  3836. align-items: center;
  3837. justify-content: center;
  3838. gap: var(--wui-spacing-3xs);
  3839. }
  3840. `,i$=class extends a.WF{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=n.Hd.state;return e||t?(0,a.qy)`
  3841. <wui-flex
  3842. .padding=${["m","s","s","s"]}
  3843. flexDirection="column"
  3844. alignItems="center"
  3845. justifyContent="center"
  3846. gap="s"
  3847. >
  3848. <wui-text color="fg-250" variant="small-400" align="center">
  3849. We work with the best providers to give you the lowest fees and best support. More options
  3850. coming soon!
  3851. </wui-text>
  3852. ${this.howDoesItWorkTemplate()}
  3853. </wui-flex>
  3854. `:null}howDoesItWorkTemplate(){return(0,a.qy)` <wui-link @click=${this.onWhatIsBuy.bind(this)}>
  3855. <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon>
  3856. How does it work?
  3857. </wui-link>`}onWhatIsBuy(){n.En.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),n.IN.push("WhatIsABuy")}};i$.styles=[iU],i$=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-onramp-providers-footer")],i$);let iL=(0,a.AH)`
  3858. :host {
  3859. display: block;
  3860. position: absolute;
  3861. opacity: 0;
  3862. pointer-events: none;
  3863. top: 11px;
  3864. left: 50%;
  3865. width: max-content;
  3866. }
  3867. `;var ij=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iB={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},iW=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=n.Pt.state.open,this.unsubscribe.push(n.Pt.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t,svg:i}=n.Pt.state,r=iB[t],{icon:o,iconColor:s}=i??r??{};return(0,a.qy)`
  3868. <wui-snackbar
  3869. message=${e}
  3870. backgroundColor=${r?.backgroundColor}
  3871. iconColor=${s}
  3872. icon=${o}
  3873. .loading=${"loading"===t}
  3874. ></wui-snackbar>
  3875. `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>n.Pt.hide(),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};iW.styles=iL,ij([(0,o.wk)()],iW.prototype,"open",void 0),iW=ij([(0,r.customElement)("w3m-snackbar")],iW);let iq=(0,a.AH)`
  3876. :host {
  3877. display: block;
  3878. position: absolute;
  3879. top: var(--wui-spacing-s);
  3880. left: var(--wui-spacing-l);
  3881. right: var(--wui-spacing-l);
  3882. opacity: 0;
  3883. pointer-events: none;
  3884. }
  3885. `;var iH=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iz={info:{backgroundColor:"fg-350",iconColor:"fg-325",icon:"info"},success:{backgroundColor:"success-glass-reown-020",iconColor:"success-125",icon:"checkmark"},warning:{backgroundColor:"warning-glass-reown-020",iconColor:"warning-100",icon:"warningCircle"},error:{backgroundColor:"error-glass-reown-020",iconColor:"error-125",icon:"exclamationTriangle"}},iF=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.open=n.hG.state.open,this.onOpen(!0),this.unsubscribe.push(n.hG.subscribeKey("open",e=>{this.open=e,this.onOpen(!1)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t}=n.hG.state,i=iz[t];return(0,a.qy)`
  3886. <wui-alertbar
  3887. message=${e}
  3888. backgroundColor=${i?.backgroundColor}
  3889. iconColor=${i?.iconColor}
  3890. icon=${i?.icon}
  3891. ></wui-alertbar>
  3892. `}onOpen(e){this.open?(this.animate([{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: auto"):e||(this.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: none")}};iF.styles=iq,iH([(0,o.wk)()],iF.prototype,"open",void 0),iF=iH([(0,r.customElement)("w3m-alertbar")],iF);let iZ=(0,a.AH)`
  3893. wui-separator {
  3894. margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1);
  3895. width: calc(100% + var(--wui-spacing-s) * 2);
  3896. }
  3897. wui-email-input {
  3898. width: 100%;
  3899. }
  3900. form {
  3901. width: 100%;
  3902. display: block;
  3903. position: relative;
  3904. }
  3905. wui-icon-link,
  3906. wui-loading-spinner {
  3907. position: absolute;
  3908. top: 50%;
  3909. transform: translateY(-50%);
  3910. }
  3911. wui-icon-link {
  3912. right: var(--wui-spacing-xs);
  3913. }
  3914. wui-loading-spinner {
  3915. right: var(--wui-spacing-m);
  3916. }
  3917. wui-text {
  3918. margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
  3919. }
  3920. `;var iV=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iK=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.formRef=(0,eh._)(),this.connectors=n.aK.state.connectors,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.email="",this.loading=!1,this.error="",this.walletGuide="get-started",this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=e.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=n.Hd.state.features?.email;return this.authConnector&&e?(0,a.qy)`
  3921. <form ${(0,eh.K)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}>
  3922. <wui-email-input
  3923. @focus=${this.onFocusEvent.bind(this)}
  3924. .disabled=${this.loading}
  3925. @inputChange=${this.onEmailInputChange.bind(this)}
  3926. tabIdx=${(0,s.J)(this.tabIdx)}
  3927. >
  3928. </wui-email-input>
  3929. ${this.submitButtonTemplate()}${this.loadingTemplate()}
  3930. <input type="submit" hidden />
  3931. </form>
  3932. ${this.templateError()} ${this.separatorTemplate()}
  3933. `:null}submitButtonTemplate(){return!this.loading&&this.email.length>3?(0,a.qy)`
  3934. <wui-icon-link
  3935. size="sm"
  3936. icon="chevronRight"
  3937. iconcolor="accent-100"
  3938. @click=${this.onSubmitEmail.bind(this)}
  3939. >
  3940. </wui-icon-link>
  3941. `:null}separatorTemplate(){let e=n.Hd.state.features?.socials,t=this.connectors.length>1,i=n.Hd.state.enableWallets,r=n.Hd.state.features?.emailShowWallets;return(e&&e.length||r||!t||!i)&&"get-started"===this.walletGuide||e&&e.length>0?null:(0,a.qy)`
  3942. <wui-flex
  3943. data-testid="w3m-email-login-or-separator"
  3944. .padding=${["xxs","0","0","0"]}
  3945. >
  3946. <wui-separator text="or"></wui-separator>
  3947. </wui-flex>
  3948. `}loadingTemplate(){return this.loading?(0,a.qy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}templateError(){return this.error?(0,a.qy)`<wui-text variant="tiny-500" color="error-100">${this.error}</wui-text>`:null}onEmailInputChange(e){this.email=e.detail.trim(),this.error=""}async onSubmitEmail(e){if(![et.oU.CHAIN.EVM,et.oU.CHAIN.SOLANA].find(e=>e===n.WB.state.activeChain)){n.IN.push("SwitchActiveChain",{switchToChain:et.oU.CHAIN.EVM});return}try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=n.aK.getAuthConnector();if(!t)throw Error("w3m-email-login-widget: Auth connector not found");let{action:i}=await t.provider.connectEmail({email:this.email});n.En.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),"VERIFY_OTP"===i?(n.En.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),n.IN.push("EmailVerifyOtp",{email:this.email})):"VERIFY_DEVICE"===i&&n.IN.push("EmailVerifyDevice",{email:this.email})}catch(t){let e=n.wE.parseError(t);e?.includes("Invalid email")?this.error="Invalid email. Try again.":n.Pt.showError(t)}finally{this.loading=!1}}onFocusEvent(){n.En.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};iK.styles=iZ,iV([(0,o.MZ)()],iK.prototype,"tabIdx",void 0),iV([(0,o.wk)()],iK.prototype,"connectors",void 0),iV([(0,o.wk)()],iK.prototype,"authConnector",void 0),iV([(0,o.wk)()],iK.prototype,"email",void 0),iV([(0,o.wk)()],iK.prototype,"loading",void 0),iV([(0,o.wk)()],iK.prototype,"error",void 0),iV([(0,o.MZ)()],iK.prototype,"walletGuide",void 0),iK=iV([(0,r.customElement)("w3m-email-login-widget")],iK);let iG=(0,a.AH)`
  3949. wui-flex {
  3950. width: 100%;
  3951. }
  3952. :host > wui-flex:first-child {
  3953. transform: translateY(calc(var(--wui-spacing-xxs) * -1));
  3954. }
  3955. wui-icon-link {
  3956. margin-right: calc(var(--wui-icon-box-size-md) * -1);
  3957. }
  3958. wui-notice-card {
  3959. margin-bottom: var(--wui-spacing-3xs);
  3960. }
  3961. wui-list-item > wui-text {
  3962. flex: 1;
  3963. }
  3964. w3m-transactions-view {
  3965. max-height: 200px;
  3966. }
  3967. .tab-content-container {
  3968. height: 300px;
  3969. overflow-y: auto;
  3970. overflow-x: hidden;
  3971. scrollbar-width: none;
  3972. }
  3973. .tab-content-container::-webkit-scrollbar {
  3974. display: none;
  3975. }
  3976. .account-button {
  3977. width: auto;
  3978. border: none;
  3979. display: flex;
  3980. align-items: center;
  3981. justify-content: center;
  3982. gap: var(--wui-spacing-s);
  3983. height: 48px;
  3984. padding: var(--wui-spacing-xs);
  3985. padding-right: var(--wui-spacing-s);
  3986. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  3987. background-color: var(--wui-color-gray-glass-002);
  3988. border-radius: 24px;
  3989. transition: background-color 0.2s linear;
  3990. }
  3991. .account-button:hover {
  3992. background-color: var(--wui-color-gray-glass-005);
  3993. }
  3994. .avatar-container {
  3995. position: relative;
  3996. }
  3997. wui-avatar.avatar {
  3998. width: 32px;
  3999. height: 32px;
  4000. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  4001. }
  4002. wui-avatar.network-avatar {
  4003. width: 16px;
  4004. height: 16px;
  4005. position: absolute;
  4006. left: 100%;
  4007. top: 100%;
  4008. transform: translate(-75%, -75%);
  4009. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  4010. }
  4011. .account-links {
  4012. display: flex;
  4013. justify-content: space-between;
  4014. align-items: center;
  4015. }
  4016. .account-links wui-flex {
  4017. cursor: pointer;
  4018. display: flex;
  4019. align-items: center;
  4020. justify-content: center;
  4021. flex: 1;
  4022. background: red;
  4023. align-items: center;
  4024. justify-content: center;
  4025. height: 48px;
  4026. padding: 10px;
  4027. flex: 1 0 0;
  4028. border-radius: var(--XS, 16px);
  4029. border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
  4030. background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
  4031. transition:
  4032. background-color var(--wui-ease-out-power-1) var(--wui-duration-md),
  4033. opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  4034. will-change: background-color, opacity;
  4035. }
  4036. .account-links wui-flex:hover {
  4037. background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15));
  4038. }
  4039. .account-links wui-flex wui-icon {
  4040. width: var(--S, 20px);
  4041. height: var(--S, 20px);
  4042. }
  4043. .account-links wui-flex wui-icon svg path {
  4044. stroke: #667dff;
  4045. }
  4046. `;var iJ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iY=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.caipAddress=n.Uj.state.caipAddress,this.address=n.wE.getPlainAddress(n.Uj.state.caipAddress),this.allAccounts=n.Uj.state.allAccounts,this.profileImage=n.Uj.state.profileImage,this.profileName=n.Uj.state.profileName,this.disconnecting=!1,this.balance=n.Uj.state.balance,this.balanceSymbol=n.Uj.state.balanceSymbol,this.features=n.Hd.state.features,this.unsubscribe.push(n.Uj.subscribeKey("caipAddress",e=>{this.address=n.wE.getPlainAddress(e),this.caipAddress=e}),n.Uj.subscribeKey("balance",e=>this.balance=e),n.Uj.subscribeKey("balanceSymbol",e=>this.balanceSymbol=e),n.Uj.subscribeKey("profileName",e=>this.profileName=e),n.Uj.subscribeKey("profileImage",e=>this.profileImage=e),n.Hd.subscribeKey("features",e=>this.features=e),n.Uj.subscribeKey("allAccounts",e=>{this.allAccounts=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.caipAddress)return null;let e=n.WB.state.activeChain===et.oU.CHAIN.EVM&&this.allAccounts.length>1;return(0,a.qy)`<wui-flex
  4047. flexDirection="column"
  4048. .padding=${["0","xl","m","xl"]}
  4049. alignItems="center"
  4050. gap="l"
  4051. >
  4052. ${e?this.multiAccountTemplate():this.singleAccountTemplate()}
  4053. <wui-flex flexDirection="column" alignItems="center">
  4054. <wui-text variant="paragraph-500" color="fg-200">
  4055. ${n.wE.formatBalance(this.balance,this.balanceSymbol)}
  4056. </wui-text>
  4057. </wui-flex>
  4058. ${this.explorerBtnTemplate()}
  4059. </wui-flex>
  4060. <wui-flex flexDirection="column" gap="xs" .padding=${["0","s","s","s"]}>
  4061. ${this.authCardTemplate()} <w3m-account-auth-button></w3m-account-auth-button>
  4062. ${this.onrampTemplate()} ${this.swapsTemplate()} ${this.activityTemplate()}
  4063. <wui-list-item
  4064. variant="icon"
  4065. iconVariant="overlay"
  4066. icon="disconnect"
  4067. ?chevron=${!1}
  4068. .loading=${this.disconnecting}
  4069. @click=${this.onDisconnect.bind(this)}
  4070. data-testid="disconnect-button"
  4071. >
  4072. <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text>
  4073. </wui-list-item>
  4074. </wui-flex>`}onrampTemplate(){return this.features?.onramp?(0,a.qy)`
  4075. <wui-list-item
  4076. data-testid="w3m-account-default-onramp-button"
  4077. iconVariant="blue"
  4078. icon="card"
  4079. ?chevron=${!0}
  4080. @click=${this.handleClickPay.bind(this)}
  4081. >
  4082. <wui-text variant="paragraph-500" color="fg-100">Buy crypto</wui-text>
  4083. </wui-list-item>
  4084. `:null}activityTemplate(){let e=n.WB.state.activeChain===et.oU.CHAIN.SOLANA;return(0,a.qy)` <wui-list-item
  4085. iconVariant="blue"
  4086. icon="clock"
  4087. iconSize="sm"
  4088. ?chevron=${!e}
  4089. ?disabled=${e}
  4090. @click=${this.onTransactions.bind(this)}
  4091. >
  4092. <wui-text variant="paragraph-500" color="fg-100" ?disabled=${e}> Activity </wui-text>
  4093. ${e?(0,a.qy)`<wui-tag variant="main">Coming soon</wui-tag>`:""}
  4094. </wui-list-item>`}swapsTemplate(){let e=this.features?.swaps,t=n.WB.state.activeChain===et.oU.CHAIN.SOLANA;return!e||t?null:(0,a.qy)`
  4095. <wui-list-item
  4096. iconVariant="blue"
  4097. icon="recycleHorizontal"
  4098. ?chevron=${!0}
  4099. @click=${this.handleClickSwap.bind(this)}
  4100. >
  4101. <wui-text variant="paragraph-500" color="fg-100">Swap</wui-text>
  4102. </wui-list-item>
  4103. `}authCardTemplate(){let e=n.iT.getConnectedConnector(),t=n.aK.getAuthConnector(),{origin:i}=location;return!t||"ID_AUTH"!==e||i.includes(n.oU.SECURE_SITE)?null:(0,a.qy)`
  4104. <wui-notice-card
  4105. @click=${this.onGoToUpgradeView.bind(this)}
  4106. label="Upgrade your wallet"
  4107. description="Transition to a self-custodial wallet"
  4108. icon="wallet"
  4109. data-testid="w3m-wallet-upgrade-card"
  4110. ></wui-notice-card>
  4111. `}handleSwitchAccountsView(){n.IN.push("SwitchAddress")}handleClickPay(){n.IN.push("OnRampProviders")}handleClickSwap(){n.IN.push("Swap")}explorerBtnTemplate(){return n.Uj.state.addressExplorerUrl?(0,a.qy)`
  4112. <wui-button size="md" variant="neutral" @click=${this.onExplorer.bind(this)}>
  4113. <wui-icon size="sm" color="inherit" slot="iconLeft" name="compass"></wui-icon>
  4114. Block Explorer
  4115. <wui-icon size="sm" color="inherit" slot="iconRight" name="externalLink"></wui-icon>
  4116. </wui-button>
  4117. `:null}singleAccountTemplate(){return(0,a.qy)`
  4118. <wui-avatar
  4119. alt=${(0,s.J)(this.caipAddress)}
  4120. address=${(0,s.J)(n.wE.getPlainAddress(this.caipAddress))}
  4121. imageSrc=${(0,s.J)(null===this.profileImage?void 0:this.profileImage)}
  4122. data-testid="single-account-avatar"
  4123. ></wui-avatar>
  4124. <wui-flex flexDirection="column" alignItems="center">
  4125. <wui-flex gap="3xs" alignItems="center" justifyContent="center">
  4126. <wui-text variant="large-600" color="fg-100">
  4127. ${this.profileName?r.UiHelperUtil.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):r.UiHelperUtil.getTruncateString({string:this.address||"",charsStart:4,charsEnd:4,truncate:"middle"})}
  4128. </wui-text>
  4129. <wui-icon-link
  4130. size="md"
  4131. icon="copy"
  4132. iconColor="fg-200"
  4133. @click=${this.onCopyAddress}
  4134. ></wui-icon-link> </wui-flex
  4135. ></wui-flex>
  4136. `}multiAccountTemplate(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=this.allAccounts.find(e=>e.address===this.address),t=n.Uj.state.addressLabels.get(this.address);return(0,a.qy)`
  4137. <wui-profile-button-v2
  4138. .onProfileClick=${this.handleSwitchAccountsView.bind(this)}
  4139. address=${(0,s.J)(this.address)}
  4140. icon="${e?.type===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT&&n.WB.state.activeChain===et.oU.CHAIN.EVM?"lightbulb":"mail"}"
  4141. avatarSrc=${(0,s.J)(this.profileImage?this.profileImage:void 0)}
  4142. profileName=${(0,s.J)(t||this.profileName)}
  4143. .onCopyClick=${this.onCopyAddress.bind(this)}
  4144. ></wui-profile-button-v2>
  4145. `}onCopyAddress(){try{this.address&&(n.wE.copyToClopboard(this.address),n.Pt.showSuccess("Address copied"))}catch{n.Pt.showError("Failed to copy")}}onTransactions(){n.En.sendEvent({type:"track",event:"CLICK_TRANSACTIONS",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),n.IN.push("Transactions")}async onDisconnect(){try{this.disconnecting=!0,await n.x4.disconnect(),n.En.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),n.W3.close()}catch{n.En.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),n.Pt.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onExplorer(){let e=n.Uj.state.addressExplorerUrl;e&&n.wE.openHref(e,"_blank")}onGoToUpgradeView(){n.En.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),n.IN.push("UpgradeEmailWallet")}};iY.styles=iG,iJ([(0,o.wk)()],iY.prototype,"caipAddress",void 0),iJ([(0,o.wk)()],iY.prototype,"address",void 0),iJ([(0,o.wk)()],iY.prototype,"allAccounts",void 0),iJ([(0,o.wk)()],iY.prototype,"profileImage",void 0),iJ([(0,o.wk)()],iY.prototype,"profileName",void 0),iJ([(0,o.wk)()],iY.prototype,"disconnecting",void 0),iJ([(0,o.wk)()],iY.prototype,"balance",void 0),iJ([(0,o.wk)()],iY.prototype,"balanceSymbol",void 0),iJ([(0,o.wk)()],iY.prototype,"features",void 0),iY=iJ([(0,r.customElement)("w3m-account-default-widget")],iY);let iQ=(0,a.AH)`
  4146. wui-flex {
  4147. width: 100%;
  4148. }
  4149. wui-promo {
  4150. position: absolute;
  4151. top: -32px;
  4152. }
  4153. wui-profile-button {
  4154. margin-top: calc(-1 * var(--wui-spacing-2l));
  4155. }
  4156. wui-promo + wui-profile-button {
  4157. margin-top: var(--wui-spacing-2l);
  4158. }
  4159. wui-tabs {
  4160. width: 100%;
  4161. }
  4162. .contentContainer {
  4163. height: 280px;
  4164. }
  4165. .contentContainer > wui-icon-box {
  4166. width: 40px;
  4167. height: 40px;
  4168. border-radius: var(--wui-border-radius-xxs);
  4169. }
  4170. .contentContainer > .textContent {
  4171. width: 65%;
  4172. }
  4173. `;var iX=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let i0=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.address=n.Uj.state.address,this.profileImage=n.Uj.state.profileImage,this.profileName=n.Uj.state.profileName,this.smartAccountDeployed=n.Uj.state.smartAccountDeployed,this.network=n.WB.state.activeCaipNetwork,this.currentTab=n.Uj.state.currentTab,this.tokenBalance=n.Uj.state.tokenBalance,this.preferredAccountType=n.Uj.state.preferredAccountType,this.features=n.Hd.state.features,this.unsubscribe.push(n.Uj.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.currentTab=e.currentTab,this.tokenBalance=e.tokenBalance,this.smartAccountDeployed=e.smartAccountDeployed,this.preferredAccountType=e.preferredAccountType):n.W3.close()}),n.WB.subscribeKey("activeCaipNetwork",e=>this.network=e),n.Hd.subscribeKey("features",e=>this.features=e)),this.watchSwapValues()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearInterval(this.watchTokenBalance)}firstUpdated(){n.Uj.fetchTokenBalance()}render(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=n.$m.getNetworkImage(this.network);return(0,a.qy)`<wui-flex
  4174. flexDirection="column"
  4175. .padding=${["0","xl","m","xl"]}
  4176. alignItems="center"
  4177. gap="m"
  4178. >
  4179. ${this.network&&(0,a.qy)`<wui-network-icon .network=${this.network}></wui-network-icon>`}
  4180. ${this.activateAccountTemplate()}
  4181. <wui-profile-button
  4182. @click=${this.onProfileButtonClick.bind(this)}
  4183. address=${(0,s.J)(this.address)}
  4184. networkSrc=${(0,s.J)(e)}
  4185. icon="chevronBottom"
  4186. avatarSrc=${(0,s.J)(this.profileImage?this.profileImage:void 0)}
  4187. profileName=${this.profileName}
  4188. data-testid="w3m-profile-button"
  4189. ></wui-profile-button>
  4190. ${this.tokenBalanceTemplate()}
  4191. <wui-flex gap="s">
  4192. <w3m-tooltip-trigger text="Buy">
  4193. <wui-icon-button
  4194. data-testid="wallet-features-onramp-button"
  4195. @click=${this.onBuyClick.bind(this)}
  4196. icon="card"
  4197. ></wui-icon-button>
  4198. </w3m-tooltip-trigger>
  4199. ${this.swapsTemplate()}
  4200. <w3m-tooltip-trigger text="Receive">
  4201. <wui-icon-button
  4202. data-testid="wallet-features-receive-button"
  4203. @click=${this.onReceiveClick.bind(this)}
  4204. icon="arrowBottomCircle"
  4205. >
  4206. </wui-icon-button>
  4207. </w3m-tooltip-trigger>
  4208. <w3m-tooltip-trigger text="Send">
  4209. <wui-icon-button
  4210. data-testid="wallet-features-send-button"
  4211. @click=${this.onSendClick.bind(this)}
  4212. icon="send"
  4213. ></wui-icon-button>
  4214. </w3m-tooltip-trigger>
  4215. </wui-flex>
  4216. <wui-tabs
  4217. .onTabChange=${this.onTabChange.bind(this)}
  4218. .activeTab=${this.currentTab}
  4219. localTabWidth=${n.wE.isMobile()&&window.innerWidth<430?`${(window.innerWidth-48)/3}px`:"104px"}
  4220. .tabs=${I.ACCOUNT_TABS}
  4221. ></wui-tabs>
  4222. ${this.listContentTemplate()}
  4223. </wui-flex>`}swapsTemplate(){return this.features?.swaps?(0,a.qy)`
  4224. <w3m-tooltip-trigger text="Swap">
  4225. <wui-icon-button
  4226. data-testid="wallet-features-swap-button"
  4227. @click=${this.onSwapClick.bind(this)}
  4228. icon="recycleHorizontal"
  4229. >
  4230. </wui-icon-button>
  4231. </w3m-tooltip-trigger>
  4232. `:null}watchSwapValues(){this.watchTokenBalance=setInterval(()=>n.Uj.fetchTokenBalance(),1e4)}listContentTemplate(){return 0===this.currentTab?(0,a.qy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`:1===this.currentTab?(0,a.qy)`<w3m-account-nfts-widget></w3m-account-nfts-widget>`:2===this.currentTab?(0,a.qy)`<w3m-account-activity-widget></w3m-account-activity-widget>`:(0,a.qy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`}tokenBalanceTemplate(){if(this.tokenBalance&&this.tokenBalance?.length>=0){let e=n.wE.calculateBalance(this.tokenBalance),{dollars:t="0",pennies:i="00"}=n.wE.formatTokenBalance(e);return(0,a.qy)`<wui-balance dollars=${t} pennies=${i}></wui-balance>`}return(0,a.qy)`<wui-balance dollars="0" pennies="00"></wui-balance>`}activateAccountTemplate(){return!n.WB.checkIfSmartAccountEnabled()||this.preferredAccountType!==D.Vl.ACCOUNT_TYPES.EOA||this.smartAccountDeployed?null:(0,a.qy)` <wui-promo
  4233. text=${"Activate your account"}
  4234. @click=${this.onUpdateToSmartAccount.bind(this)}
  4235. data-testid="activate-smart-account-promo"
  4236. ></wui-promo>`}onTabChange(e){n.Uj.setCurrentTab(e)}onProfileButtonClick(){n.IN.push("Profile")}onBuyClick(){n.IN.push("OnRampProviders")}onSwapClick(){this.network?.caipNetworkId&&!n.oU.SWAP_SUPPORTED_NETWORKS.includes(this.network?.caipNetworkId)?n.IN.push("UnsupportedChain",{swapUnsupportedChain:!0}):(n.En.sendEvent({type:"track",event:"OPEN_SWAP",properties:{network:this.network?.caipNetworkId||"",isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),n.IN.push("Swap"))}onReceiveClick(){n.IN.push("WalletReceive")}onSendClick(){n.En.sendEvent({type:"track",event:"OPEN_SEND",properties:{network:this.network?.caipNetworkId||"",isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),n.IN.push("WalletSend")}onUpdateToSmartAccount(){n.IN.push("UpgradeToSmartAccount")}};i0.styles=iQ,iX([(0,o.wk)()],i0.prototype,"watchTokenBalance",void 0),iX([(0,o.wk)()],i0.prototype,"address",void 0),iX([(0,o.wk)()],i0.prototype,"profileImage",void 0),iX([(0,o.wk)()],i0.prototype,"profileName",void 0),iX([(0,o.wk)()],i0.prototype,"smartAccountDeployed",void 0),iX([(0,o.wk)()],i0.prototype,"network",void 0),iX([(0,o.wk)()],i0.prototype,"currentTab",void 0),iX([(0,o.wk)()],i0.prototype,"tokenBalance",void 0),iX([(0,o.wk)()],i0.prototype,"preferredAccountType",void 0),iX([(0,o.wk)()],i0.prototype,"features",void 0),i0=iX([(0,r.customElement)("w3m-account-wallet-features-widget")],i0);let i1=(0,a.AH)`
  4237. :host {
  4238. width: 100%;
  4239. max-height: 280px;
  4240. overflow: scroll;
  4241. scrollbar-width: none;
  4242. }
  4243. :host::-webkit-scrollbar {
  4244. display: none;
  4245. }
  4246. `,i2=class extends a.WF{render(){return(0,a.qy)`<w3m-activity-list page="account"></w3m-activity-list>`}};i2.styles=i1,i2=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-account-activity-widget")],i2);let i3=(0,a.AH)`
  4247. .contentContainer {
  4248. height: 280px;
  4249. }
  4250. .contentContainer > wui-icon-box {
  4251. width: 40px;
  4252. height: 40px;
  4253. border-radius: var(--wui-border-radius-xxs);
  4254. }
  4255. .contentContainer > .textContent {
  4256. width: 65%;
  4257. }
  4258. `,i5=class extends a.WF{render(){return(0,a.qy)`${this.nftTemplate()}`}nftTemplate(){return(0,a.qy)` <wui-flex
  4259. class="contentContainer"
  4260. alignItems="center"
  4261. justifyContent="center"
  4262. flexDirection="column"
  4263. gap="l"
  4264. >
  4265. <wui-icon-box
  4266. icon="wallet"
  4267. size="inherit"
  4268. iconColor="fg-200"
  4269. backgroundColor="fg-200"
  4270. iconSize="lg"
  4271. ></wui-icon-box>
  4272. <wui-flex
  4273. class="textContent"
  4274. gap="xs"
  4275. flexDirection="column"
  4276. justifyContent="center"
  4277. flexDirection="column"
  4278. >
  4279. <wui-text variant="paragraph-500" align="center" color="fg-100">Coming soon</wui-text>
  4280. <wui-text variant="small-400" align="center" color="fg-200"
  4281. >Stay tuned for our upcoming NFT feature</wui-text
  4282. >
  4283. </wui-flex>
  4284. <wui-link @click=${this.onReceiveClick.bind(this)}>Receive funds</wui-link>
  4285. </wui-flex>`}onReceiveClick(){n.IN.push("WalletReceive")}};i5.styles=i3,i5=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-account-nfts-widget")],i5);let i4=(0,a.AH)`
  4286. :host {
  4287. width: 100%;
  4288. }
  4289. wui-flex {
  4290. width: 100%;
  4291. }
  4292. .contentContainer {
  4293. max-height: 280px;
  4294. overflow: scroll;
  4295. scrollbar-width: none;
  4296. }
  4297. .contentContainer::-webkit-scrollbar {
  4298. display: none;
  4299. }
  4300. `;var i6=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let i8=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tokenBalance=n.Uj.state.tokenBalance,this.unsubscribe.push(n.Uj.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)`${this.tokenTemplate()}`}tokenTemplate(){return this.tokenBalance&&this.tokenBalance?.length>0?(0,a.qy)`<wui-flex class="contentContainer" flexDirection="column" gap="xs">
  4301. ${this.tokenItemTemplate()}
  4302. </wui-flex>`:(0,a.qy)` <wui-flex flexDirection="column" gap="xs"
  4303. ><wui-list-description
  4304. @click=${this.onBuyClick.bind(this)}
  4305. text="Buy Crypto"
  4306. description="Easy with card or bank account"
  4307. icon="card"
  4308. iconColor="success-100"
  4309. iconBackgroundColor="success-100"
  4310. tag="popular"
  4311. ></wui-list-description
  4312. ><wui-list-description
  4313. @click=${this.onReceiveClick.bind(this)}
  4314. text="Receive funds"
  4315. description="Transfer tokens on your wallet"
  4316. icon="arrowBottomCircle"
  4317. iconColor="fg-200"
  4318. iconBackgroundColor="fg-200"
  4319. ></wui-list-description
  4320. ></wui-flex>`}tokenItemTemplate(){return this.tokenBalance?.map(e=>a.qy`<wui-list-token
  4321. tokenName=${e.name}
  4322. tokenImageUrl=${e.iconUrl}
  4323. tokenAmount=${e.quantity.numeric}
  4324. tokenValue=${e.value}
  4325. tokenCurrency=${e.symbol}
  4326. ></wui-list-token>`)}onReceiveClick(){n.IN.push("WalletReceive")}onBuyClick(){n.En.sendEvent({type:"track",event:"SELECT_BUY_CRYPTO",properties:{isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}),n.IN.push("OnRampProviders")}};i8.styles=i4,i6([(0,o.wk)()],i8.prototype,"tokenBalance",void 0),i8=i6([(0,r.customElement)("w3m-account-tokens-widget")],i8);let i9=(0,a.AH)`
  4327. :host {
  4328. min-height: 100%;
  4329. }
  4330. .group-container[last-group='true'] {
  4331. padding-bottom: var(--wui-spacing-m);
  4332. }
  4333. .contentContainer {
  4334. height: 280px;
  4335. }
  4336. .contentContainer > wui-icon-box {
  4337. width: 40px;
  4338. height: 40px;
  4339. border-radius: var(--wui-border-radius-xxs);
  4340. }
  4341. .contentContainer > .textContent {
  4342. width: 65%;
  4343. }
  4344. .emptyContainer {
  4345. height: 100%;
  4346. }
  4347. `;var i7=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let re="last-transaction",rt=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.caipAddress=n.WB.state.activeCaipAddress,this.transactionsByYear=n.WC.state.transactionsByYear,this.loading=n.WC.state.loading,this.empty=n.WC.state.empty,this.next=n.WC.state.next,n.WC.clearCursor(),this.unsubscribe.push(n.WB.subscribeKey("activeCaipAddress",e=>{e&&this.caipAddress!==e&&(n.WC.resetTransactions(),n.WC.fetchTransactions(e)),this.caipAddress=e}),n.WB.subscribeKey("activeCaipNetwork",()=>{this.updateTransactionView()}),n.WC.subscribe(e=>{this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next}))}firstUpdated(){this.updateTransactionView(),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,a.qy)` ${this.empty?null:this.templateTransactionsByYear()}
  4348. ${this.loading?this.templateLoading():null}
  4349. ${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){let e=n.WB.state.activeCaipNetwork?.caipNetworkId;n.WC.state.lastNetworkInView!==e&&(n.WC.resetTransactions(),this.caipAddress&&n.WC.fetchTransactions(n.wE.getPlainAddress(this.caipAddress))),n.WC.setLastNetworkInView(e)}templateTransactionsByYear(){return Object.keys(this.transactionsByYear).sort().reverse().map(e=>{let t=parseInt(e,10),i=Array(12).fill(null).map((e,i)=>({groupTitle:r.TransactionUtil.getTransactionGroupTitle(t,i),transactions:this.transactionsByYear[t]?.[i]})).filter(({transactions:e})=>e).reverse();return i.map(({groupTitle:e,transactions:t},r)=>{let n=r===i.length-1;return t?(0,a.qy)`
  4350. <wui-flex
  4351. flexDirection="column"
  4352. class="group-container"
  4353. last-group="${n?"true":"false"}"
  4354. >
  4355. <wui-flex
  4356. alignItems="center"
  4357. flexDirection="row"
  4358. .padding=${["xs","s","s","s"]}
  4359. >
  4360. <wui-text variant="paragraph-500" color="fg-200">${e}</wui-text>
  4361. </wui-flex>
  4362. <wui-flex flexDirection="column" gap="xs">
  4363. ${this.templateTransactions(t,n)}
  4364. </wui-flex>
  4365. </wui-flex>
  4366. `:null})})}templateRenderTransaction(e,t){let{date:i,descriptions:n,direction:o,isAllNFT:s,images:c,status:l,transfers:u,type:d}=this.getTransactionListItemProps(e),h=u?.length>1;return u?.length!==2||s?h?u.map((e,n)=>{let o=r.TransactionUtil.getTransferDescription(e),s=t&&n===u.length-1;return(0,a.qy)` <wui-transaction-list-item
  4367. date=${i}
  4368. direction=${e.direction}
  4369. id=${s&&this.next?re:""}
  4370. status=${l}
  4371. type=${d}
  4372. .onlyDirectionIcon=${!0}
  4373. .images=${[c[n]]}
  4374. .descriptions=${[o]}
  4375. ></wui-transaction-list-item>`}):(0,a.qy)`
  4376. <wui-transaction-list-item
  4377. date=${i}
  4378. .direction=${o}
  4379. id=${t&&this.next?re:""}
  4380. status=${l}
  4381. type=${d}
  4382. .images=${c}
  4383. .descriptions=${n}
  4384. ></wui-transaction-list-item>
  4385. `:(0,a.qy)`
  4386. <wui-transaction-list-item
  4387. date=${i}
  4388. .direction=${o}
  4389. id=${t&&this.next?re:""}
  4390. status=${l}
  4391. type=${d}
  4392. .images=${c}
  4393. .descriptions=${n}
  4394. ></wui-transaction-list-item>
  4395. `}templateTransactions(e,t){return e.map((i,r)=>{let n=t&&r===e.length-1;return(0,a.qy)`${this.templateRenderTransaction(i,n)}`})}emptyStateActivity(){return(0,a.qy)`<wui-flex
  4396. class="emptyContainer"
  4397. flexGrow="1"
  4398. flexDirection="column"
  4399. justifyContent="center"
  4400. alignItems="center"
  4401. .padding=${["3xl","xl","3xl","xl"]}
  4402. gap="xl"
  4403. >
  4404. <wui-icon-box
  4405. backgroundColor="gray-glass-005"
  4406. background="gray"
  4407. iconColor="fg-200"
  4408. icon="wallet"
  4409. size="lg"
  4410. ?border=${!0}
  4411. borderColor="wui-color-bg-125"
  4412. ></wui-icon-box>
  4413. <wui-flex flexDirection="column" alignItems="center" gap="xs">
  4414. <wui-text align="center" variant="paragraph-500" color="fg-100"
  4415. >No Transactions yet</wui-text
  4416. >
  4417. <wui-text align="center" variant="small-500" color="fg-200"
  4418. >Start trading on dApps <br />
  4419. to grow your wallet!</wui-text
  4420. >
  4421. </wui-flex>
  4422. </wui-flex>`}emptyStateAccount(){return(0,a.qy)`<wui-flex
  4423. class="contentContainer"
  4424. alignItems="center"
  4425. justifyContent="center"
  4426. flexDirection="column"
  4427. gap="l"
  4428. >
  4429. <wui-icon-box
  4430. icon="swapHorizontal"
  4431. size="inherit"
  4432. iconColor="fg-200"
  4433. backgroundColor="fg-200"
  4434. iconSize="lg"
  4435. ></wui-icon-box>
  4436. <wui-flex
  4437. class="textContent"
  4438. gap="xs"
  4439. flexDirection="column"
  4440. justifyContent="center"
  4441. flexDirection="column"
  4442. >
  4443. <wui-text variant="paragraph-500" align="center" color="fg-100">No activity yet</wui-text>
  4444. <wui-text variant="small-400" align="center" color="fg-200"
  4445. >Your next transactions will appear here</wui-text
  4446. >
  4447. </wui-flex>
  4448. <wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link>
  4449. </wui-flex>`}templateEmpty(){return"account"===this.page?(0,a.qy)`${this.emptyStateAccount()}`:(0,a.qy)`${this.emptyStateActivity()}`}templateLoading(){return"activity"===this.page?Array(7).fill((0,a.qy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e):null}onReceiveClick(){n.IN.push("WalletReceive")}createPaginationObserver(){let{projectId:e}=n.Hd.state;this.paginationObserver=new IntersectionObserver(([t])=>{t?.isIntersecting&&!this.loading&&(n.WC.fetchTransactions(n.wE.getPlainAddress(this.caipAddress)),n.En.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:n.wE.getPlainAddress(this.caipAddress),projectId:e,cursor:this.next,isSmartAccount:n.Uj.state.preferredAccountType===D.Vl.ACCOUNT_TYPES.SMART_ACCOUNT}}))},{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();let e=this.shadowRoot?.querySelector(`#${re}`);e&&this.paginationObserver?.observe(e)}getTransactionListItemProps(e){let t=et.rL.formatDate(e?.metadata?.minedAt),i=r.TransactionUtil.getTransactionDescriptions(e),n=e?.transfers,a=e?.transfers?.[0],o=!!a&&e?.transfers?.every(e=>!!e.nft_info),s=r.TransactionUtil.getTransactionImages(n);return{date:t,direction:a?.direction,descriptions:i,isAllNFT:o,images:s,status:e.metadata?.status,transfers:n,type:e.metadata?.operationType}}};rt.styles=i9,i7([(0,o.MZ)()],rt.prototype,"page",void 0),i7([(0,o.wk)()],rt.prototype,"caipAddress",void 0),i7([(0,o.wk)()],rt.prototype,"transactionsByYear",void 0),i7([(0,o.wk)()],rt.prototype,"loading",void 0),i7([(0,o.wk)()],rt.prototype,"empty",void 0),i7([(0,o.wk)()],rt.prototype,"next",void 0),rt=i7([(0,r.customElement)("w3m-activity-list")],rt);let ri=(0,a.AH)`
  4450. :host {
  4451. width: 100%;
  4452. height: 100px;
  4453. border-radius: var(--wui-border-radius-s);
  4454. border: 1px solid var(--wui-color-gray-glass-002);
  4455. background-color: var(--wui-color-gray-glass-002);
  4456. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
  4457. will-change: background-color;
  4458. }
  4459. :host(:hover) {
  4460. background-color: var(--wui-color-gray-glass-005);
  4461. }
  4462. wui-flex {
  4463. width: 100%;
  4464. height: fit-content;
  4465. }
  4466. wui-button {
  4467. width: 100%;
  4468. display: flex;
  4469. justify-content: flex-end;
  4470. }
  4471. wui-input-amount {
  4472. mask-image: linear-gradient(
  4473. 270deg,
  4474. transparent 0px,
  4475. transparent 8px,
  4476. black 24px,
  4477. black 25px,
  4478. black 32px,
  4479. black 100%
  4480. );
  4481. }
  4482. .totalValue {
  4483. width: 100%;
  4484. }
  4485. `;var rr=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rn=class extends a.WF{render(){return(0,a.qy)` <wui-flex
  4486. flexDirection="column"
  4487. gap="4xs"
  4488. .padding=${["xl","s","l","l"]}
  4489. >
  4490. <wui-flex alignItems="center">
  4491. <wui-input-amount
  4492. @inputChange=${this.onInputChange.bind(this)}
  4493. ?disabled=${!this.token}
  4494. .value=${this.sendTokenAmount?String(this.sendTokenAmount):""}
  4495. ></wui-input-amount>
  4496. ${this.buttonTemplate()}
  4497. </wui-flex>
  4498. <wui-flex alignItems="center" justifyContent="space-between">
  4499. ${this.sendValueTemplate()}
  4500. <wui-flex alignItems="center" gap="4xs" justifyContent="flex-end">
  4501. ${this.maxAmountTemplate()} ${this.actionTemplate()}
  4502. </wui-flex>
  4503. </wui-flex>
  4504. </wui-flex>`}buttonTemplate(){return this.token?(0,a.qy)`<wui-token-button
  4505. text=${this.token.symbol}
  4506. imageSrc=${this.token.iconUrl}
  4507. @click=${this.handleSelectButtonClick.bind(this)}
  4508. >
  4509. </wui-token-button>`:(0,a.qy)`<wui-button
  4510. size="md"
  4511. variant="accent"
  4512. @click=${this.handleSelectButtonClick.bind(this)}
  4513. >Select token</wui-button
  4514. >`}handleSelectButtonClick(){n.IN.push("WalletSendSelectToken")}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,a.qy)`<wui-text class="totalValue" variant="small-400" color="fg-200"
  4515. >${e?`$${r.UiHelperUtil.formatNumberToLocalString(e,2)}`:"Incorrect value"}</wui-text
  4516. >`}return null}maxAmountTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,a.qy)` <wui-text variant="small-400" color="error-100">
  4517. ${r.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)}
  4518. </wui-text>`:(0,a.qy)` <wui-text variant="small-400" color="fg-200">
  4519. ${r.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)}
  4520. </wui-text>`:null}actionTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,a.qy)`<wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>`:(0,a.qy)`<wui-link @click=${this.onMaxClick.bind(this)}>Max</wui-link>`:null}onInputChange(e){n.Rv.setTokenAmount(e.detail)}onMaxClick(){if(this.token&&void 0!==this.gasPrice){let e=void 0===this.token.address||Object.values(n.oU.NATIVE_TOKEN_ADDRESS).some(e=>this.token?.address===e),t=et.Se.bigNumber(this.gasPrice).shiftedBy(-this.token.quantity.decimals),i=e?et.Se.bigNumber(this.token.quantity.numeric).minus(t):et.Se.bigNumber(this.token.quantity.numeric);n.Rv.setTokenAmount(Number(i.toFixed(20)))}}onBuyClick(){n.IN.push("OnRampProviders")}};rn.styles=ri,rr([(0,o.MZ)({type:Object})],rn.prototype,"token",void 0),rr([(0,o.MZ)({type:Number})],rn.prototype,"sendTokenAmount",void 0),rr([(0,o.MZ)({type:Number})],rn.prototype,"gasPriceInUSD",void 0),rr([(0,o.MZ)({type:Number})],rn.prototype,"gasPrice",void 0),rn=rr([(0,r.customElement)("w3m-input-token")],rn);let ra=(0,a.AH)`
  4521. :host {
  4522. width: 100%;
  4523. height: 100px;
  4524. border-radius: var(--wui-border-radius-s);
  4525. border: 1px solid var(--wui-color-gray-glass-002);
  4526. background-color: var(--wui-color-gray-glass-002);
  4527. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
  4528. will-change: background-color;
  4529. position: relative;
  4530. }
  4531. :host(:hover) {
  4532. background-color: var(--wui-color-gray-glass-005);
  4533. }
  4534. wui-flex {
  4535. width: 100%;
  4536. height: fit-content;
  4537. }
  4538. wui-button {
  4539. display: ruby;
  4540. color: var(--wui-color-fg-100);
  4541. margin: 0 var(--wui-spacing-xs);
  4542. }
  4543. .instruction {
  4544. position: absolute;
  4545. top: 50%;
  4546. transform: translateY(-50%);
  4547. z-index: 2;
  4548. }
  4549. .paste {
  4550. display: inline-flex;
  4551. }
  4552. textarea {
  4553. background: transparent;
  4554. width: 100%;
  4555. font-family: var(--w3m-font-family);
  4556. font-size: var(--wui-font-size-medium);
  4557. font-style: normal;
  4558. font-weight: var(--wui-font-weight-light);
  4559. line-height: 130%;
  4560. letter-spacing: var(--wui-letter-spacing-medium);
  4561. color: var(--wui-color-fg-100);
  4562. caret-color: var(--wui-color-accent-100);
  4563. box-sizing: border-box;
  4564. -webkit-appearance: none;
  4565. -moz-appearance: textfield;
  4566. padding: 0px;
  4567. border: none;
  4568. outline: none;
  4569. appearance: none;
  4570. resize: none;
  4571. overflow: hidden;
  4572. }
  4573. `;var ro=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rs=class extends a.WF{constructor(){super(...arguments),this.inputElementRef=(0,eh._)(),this.instructionElementRef=(0,eh._)(),this.instructionHidden=!!this.value,this.pasting=!1,this.onDebouncedSearch=n.wE.debounce(async e=>{let t=await n.x4.getEnsAddress(e);if(n.Rv.setLoading(!1),t){n.Rv.setReceiverProfileName(e),n.Rv.setReceiverAddress(t);let i=await n.x4.getEnsAvatar(e);n.Rv.setReceiverProfileImageUrl(i||void 0)}else n.Rv.setReceiverAddress(e),n.Rv.setReceiverProfileName(void 0),n.Rv.setReceiverProfileImageUrl(void 0)})}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return(0,a.qy)` <wui-flex
  4574. @click=${this.onBoxClick.bind(this)}
  4575. flexDirection="column"
  4576. justifyContent="center"
  4577. gap="4xs"
  4578. .padding=${["2xl","l","xl","l"]}
  4579. >
  4580. <wui-text
  4581. ${(0,eh.K)(this.instructionElementRef)}
  4582. class="instruction"
  4583. color="fg-300"
  4584. variant="medium-400"
  4585. >
  4586. Type or
  4587. <wui-button
  4588. class="paste"
  4589. size="md"
  4590. variant="neutral"
  4591. iconLeft="copy"
  4592. @click=${this.onPasteClick.bind(this)}
  4593. >
  4594. <wui-icon size="sm" color="inherit" slot="iconLeft" name="copy"></wui-icon>
  4595. Paste
  4596. </wui-button>
  4597. address
  4598. </wui-text>
  4599. <textarea
  4600. spellcheck="false"
  4601. ?disabled=${!this.instructionHidden}
  4602. ${(0,eh.K)(this.inputElementRef)}
  4603. @input=${this.onInputChange.bind(this)}
  4604. @blur=${this.onBlur.bind(this)}
  4605. .value=${this.value??""}
  4606. autocomplete="off"
  4607. >
  4608. ${this.value??""}</textarea
  4609. >
  4610. </wui-flex>`}async focusInput(){this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",this.inputElementRef.value?.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",this.inputElementRef.value?.blur())}async toggleInstructionFocus(e){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:e?0:1},{opacity:e?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){this.value||this.instructionHidden||this.focusInput()}onBlur(){this.value||!this.instructionHidden||this.pasting||this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;let e=await navigator.clipboard.readText();n.Rv.setReceiverAddress(e),this.focusInput()}onInputChange(e){this.pasting=!1;let t=e.target;t.value&&!this.instructionHidden&&this.focusInput(),n.Rv.setLoading(!0),this.onDebouncedSearch(t.value)}};rs.styles=ra,ro([(0,o.MZ)()],rs.prototype,"value",void 0),ro([(0,o.wk)()],rs.prototype,"instructionHidden",void 0),ro([(0,o.wk)()],rs.prototype,"pasting",void 0),rs=ro([(0,r.customElement)("w3m-input-address")],rs);let rc=(0,a.AH)`
  4611. :host {
  4612. display: flex;
  4613. width: auto;
  4614. flex-direction: column;
  4615. gap: var(--wui-border-radius-1xs);
  4616. border-radius: var(--wui-border-radius-s);
  4617. background: var(--wui-color-gray-glass-002);
  4618. padding: var(--wui-spacing-s) var(--wui-spacing-1xs) var(--wui-spacing-1xs)
  4619. var(--wui-spacing-1xs);
  4620. }
  4621. wui-text {
  4622. padding: 0 var(--wui-spacing-1xs);
  4623. }
  4624. wui-flex {
  4625. margin-top: var(--wui-spacing-1xs);
  4626. }
  4627. .network {
  4628. cursor: pointer;
  4629. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
  4630. will-change: background-color;
  4631. }
  4632. .network:focus-visible {
  4633. border: 1px solid var(--wui-color-accent-100);
  4634. background-color: var(--wui-color-gray-glass-005);
  4635. -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  4636. -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  4637. box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  4638. }
  4639. .network:hover {
  4640. background-color: var(--wui-color-gray-glass-005);
  4641. }
  4642. .network:active {
  4643. background-color: var(--wui-color-gray-glass-010);
  4644. }
  4645. `;var rl=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ru=class extends a.WF{render(){return(0,a.qy)` <wui-text variant="small-400" color="fg-200">Details</wui-text>
  4646. <wui-flex flexDirection="column" gap="xxs">
  4647. <wui-list-content textTitle="Network cost" textValue="$${(0,s.J)(r.UiHelperUtil.formatNumberToLocalString(this.networkFee,2))}"></wui-list-content></wui-list-content>
  4648. <wui-list-content
  4649. textTitle="Address"
  4650. textValue=${r.UiHelperUtil.getTruncateString({string:this.receiverAddress??"",charsStart:4,charsEnd:4,truncate:"middle"})}
  4651. >
  4652. </wui-list-content>
  4653. ${this.networkTemplate()}
  4654. </wui-flex>`}networkTemplate(){return this.caipNetwork?.name?(0,a.qy)` <wui-list-content
  4655. @click=${()=>this.onNetworkClick(this.caipNetwork)}
  4656. class="network"
  4657. textTitle="Network"
  4658. imageSrc=${(0,s.J)(n.$m.getNetworkImage(this.caipNetwork))}
  4659. ></wui-list-content>`:null}onNetworkClick(e){e&&n.IN.push("Networks",{network:e})}};ru.styles=rc,rl([(0,o.MZ)()],ru.prototype,"receiverAddress",void 0),rl([(0,o.MZ)({type:Object})],ru.prototype,"caipNetwork",void 0),rl([(0,o.MZ)({type:Number})],ru.prototype,"networkFee",void 0),ru=rl([(0,r.customElement)("w3m-wallet-send-details")],ru);let rd=(0,a.AH)`
  4660. :host {
  4661. pointer-events: none;
  4662. }
  4663. :host > wui-flex {
  4664. display: var(--w3m-tooltip-display);
  4665. opacity: var(--w3m-tooltip-opacity);
  4666. padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
  4667. border-radius: var(--wui-border-radius-xxs);
  4668. color: var(--wui-color-bg-100);
  4669. position: fixed;
  4670. top: var(--w3m-tooltip-top);
  4671. left: var(--w3m-tooltip-left);
  4672. transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
  4673. max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
  4674. transition: opacity 0.2s var(--wui-ease-out-power-2);
  4675. will-change: opacity;
  4676. }
  4677. :host([data-variant='shade']) > wui-flex {
  4678. background-color: var(--wui-color-bg-150);
  4679. border: 1px solid var(--wui-color-gray-glass-005);
  4680. }
  4681. :host([data-variant='shade']) > wui-flex > wui-text {
  4682. color: var(--wui-color-fg-150);
  4683. }
  4684. :host([data-variant='fill']) > wui-flex {
  4685. background-color: var(--wui-color-fg-100);
  4686. border: none;
  4687. }
  4688. wui-icon {
  4689. position: absolute;
  4690. width: 12px !important;
  4691. height: 4px !important;
  4692. color: var(--wui-color-bg-150);
  4693. }
  4694. wui-icon[data-placement='top'] {
  4695. bottom: 0px;
  4696. left: 50%;
  4697. transform: translate(-50%, 95%);
  4698. }
  4699. wui-icon[data-placement='bottom'] {
  4700. top: 0;
  4701. left: 50%;
  4702. transform: translate(-50%, -95%) rotate(180deg);
  4703. }
  4704. wui-icon[data-placement='right'] {
  4705. top: 50%;
  4706. left: 0;
  4707. transform: translate(-65%, -50%) rotate(90deg);
  4708. }
  4709. wui-icon[data-placement='left'] {
  4710. top: 50%;
  4711. right: 0%;
  4712. transform: translate(65%, -50%) rotate(270deg);
  4713. }
  4714. `;var rh=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rp=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.open=n.Ib.state.open,this.message=n.Ib.state.message,this.triggerRect=n.Ib.state.triggerRect,this.variant=n.Ib.state.variant,this.unsubscribe.push(n.Ib.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=`
  4715. --w3m-tooltip-top: ${e}px;
  4716. --w3m-tooltip-left: ${t}px;
  4717. --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;
  4718. --w3m-tooltip-display: ${this.open?"flex":"none"};
  4719. --w3m-tooltip-opacity: ${this.open?1:0};
  4720. `,(0,a.qy)`<wui-flex>
  4721. <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
  4722. <wui-text color="inherit" variant="small-500">${this.message}</wui-text>
  4723. </wui-flex>`}};rp.styles=[rd],rh([(0,o.wk)()],rp.prototype,"open",void 0),rh([(0,o.wk)()],rp.prototype,"message",void 0),rh([(0,o.wk)()],rp.prototype,"triggerRect",void 0),rh([(0,o.wk)()],rp.prototype,"variant",void 0),rp=rh([(0,r.customElement)("w3m-tooltip")],rp);let rf=(0,a.AH)`
  4724. :host {
  4725. width: 100%;
  4726. display: block;
  4727. }
  4728. `;var rg=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rw=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.text="",this.open=n.Ib.state.open,this.unsubscribe.push(n.IN.subscribeKey("view",()=>{n.Ib.hide()}),n.W3.subscribeKey("open",e=>{e||n.Ib.hide()}),n.Ib.subscribeKey("open",e=>{this.open=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),n.Ib.hide()}render(){return(0,a.qy)`
  4729. <div
  4730. @pointermove=${this.onMouseEnter.bind(this)}
  4731. @pointerleave=${this.onMouseLeave.bind(this)}
  4732. >
  4733. ${this.renderChildren()}
  4734. </div>
  4735. `}renderChildren(){return(0,a.qy)`<slot></slot> `}onMouseEnter(){let e=this.getBoundingClientRect();this.open||n.Ib.showTooltip({message:this.text,triggerRect:{width:e.width,height:e.height,left:e.left,top:e.top},variant:"shade"})}onMouseLeave(e){this.contains(e.relatedTarget)||n.Ib.hide()}};rw.styles=[rf],rg([(0,o.MZ)()],rw.prototype,"text",void 0),rg([(0,o.wk)()],rw.prototype,"open",void 0),rw=rg([(0,r.customElement)("w3m-tooltip-trigger")],rw);let rm=(0,a.AH)`
  4736. :host > wui-flex:first-child {
  4737. margin-top: var(--wui-spacing-s);
  4738. }
  4739. wui-separator {
  4740. margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-m)
  4741. calc(var(--wui-spacing-m) * -1);
  4742. width: calc(100% + var(--wui-spacing-s) * 2);
  4743. }
  4744. `;var rb=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rv=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.walletGuide="get-started",this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.features=n.Hd.state.features,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(e=>"AUTH"===e.type)}),n.Hd.subscribeKey("features",e=>this.features=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.features?.socials;return this.authConnector&&e&&e?.length?(0,a.qy)`
  4745. <wui-flex
  4746. class="container"
  4747. flexDirection="column"
  4748. gap="xs"
  4749. .padding=${["0","0","xs","0"]}
  4750. data-testid="w3m-social-login-widget"
  4751. >
  4752. ${this.topViewTemplate()}${this.bottomViewTemplate()}
  4753. </wui-flex>
  4754. ${this.separatorTemplate()}
  4755. `:null}topViewTemplate(){let e=this.features?.socials;return this.authConnector&&e&&e?.length?2===e.length?(0,a.qy)` <wui-flex gap="xs">
  4756. ${e.slice(0,2).map(e=>(0,a.qy)`<wui-logo-select
  4757. data-testid=${`social-selector-${e}`}
  4758. @click=${()=>{this.onSocialClick(e)}}
  4759. logo=${e}
  4760. tabIdx=${(0,s.J)(this.tabIdx)}
  4761. ></wui-logo-select>`)}
  4762. </wui-flex>`:(0,a.qy)` <wui-list-social
  4763. data-testid=${`social-selector-${e?.[0]}`}
  4764. @click=${()=>{this.onSocialClick(e?.[0])}}
  4765. logo=${(0,s.J)(e[0])}
  4766. align="center"
  4767. name=${`Continue with ${e[0]}`}
  4768. tabIdx=${(0,s.J)(this.tabIdx)}
  4769. ></wui-list-social>`:null}bottomViewTemplate(){let e=this.features?.socials;return this.authConnector&&e&&e?.length&&!(e.length<=2)?e.length>6?(0,a.qy)`<wui-flex gap="xs">
  4770. ${e.slice(1,5).map(e=>(0,a.qy)`<wui-logo-select
  4771. data-testid=${`social-selector-${e}`}
  4772. @click=${()=>{this.onSocialClick(e)}}
  4773. logo=${e}
  4774. tabIdx=${(0,s.J)(this.tabIdx)}
  4775. ></wui-logo-select>`)}
  4776. <wui-logo-select
  4777. logo="more"
  4778. tabIdx=${(0,s.J)(this.tabIdx)}
  4779. @click=${this.onMoreSocialsClick.bind(this)}
  4780. ></wui-logo-select>
  4781. </wui-flex>`:(0,a.qy)`<wui-flex gap="xs">
  4782. ${e.slice(1,e.length).map(e=>(0,a.qy)`<wui-logo-select
  4783. data-testid=${`social-selector-${e}`}
  4784. @click=${()=>{this.onSocialClick(e)}}
  4785. logo=${e}
  4786. tabIdx=${(0,s.J)(this.tabIdx)}
  4787. ></wui-logo-select>`)}
  4788. </wui-flex>`:null}separatorTemplate(){let e=this.connectors.find(e=>"walletConnect"===e.id),t=n.Hd.state.enableWallets;return e&&t||"explore"===this.walletGuide?(0,a.qy)`<wui-separator text="or"></wui-separator>`:null}onMoreSocialsClick(){n.IN.push("ConnectSocials")}async onSocialClick(e){if(e&&(n.Uj.setSocialProvider(e,n.WB.state.activeChain),n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===G.iV.Farcaster){n.IN.push("ConnectingFarcaster");let e=n.aK.getAuthConnector();if(e&&!n.Uj.state.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();n.Uj.setFarcasterUrl(t,n.WB.state.activeChain)}catch(e){n.IN.goBack(),n.Pt.showError(e)}}else{n.IN.push("ConnectingSocial");let t=n.aK.getAuthConnector();this.popupWindow=n.wE.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){let{uri:i}=await t.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&i)n.Uj.setSocialWindow(this.popupWindow,n.WB.state.activeChain),this.popupWindow.location.href=i;else throw this.popupWindow?.close(),Error("Something went wrong")}}catch(e){this.popupWindow?.close(),n.Pt.showError("Something went wrong")}}}};rv.styles=rm,rb([(0,o.MZ)()],rv.prototype,"walletGuide",void 0),rb([(0,o.MZ)()],rv.prototype,"tabIdx",void 0),rb([(0,o.wk)()],rv.prototype,"connectors",void 0),rb([(0,o.wk)()],rv.prototype,"features",void 0),rb([(0,o.wk)()],rv.prototype,"authConnector",void 0),rv=rb([(0,r.customElement)("w3m-social-login-widget")],rv);var ry=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rx=class extends a.WF{constructor(){super(...arguments),this.tabIdx=void 0}render(){return(0,a.qy)`
  4789. <wui-flex flexDirection="column" gap="xs">
  4790. <w3m-connector-list tabIdx=${(0,s.J)(this.tabIdx)}></w3m-connector-list>
  4791. <w3m-all-wallets-widget tabIdx=${(0,s.J)(this.tabIdx)}></w3m-all-wallets-widget>
  4792. </wui-flex>
  4793. `}};ry([(0,o.MZ)()],rx.prototype,"tabIdx",void 0),rx=ry([(0,r.customElement)("w3m-wallet-login-list")],rx);let rC=(0,a.AH)`
  4794. :host {
  4795. margin-top: var(--wui-spacing-3xs);
  4796. }
  4797. wui-separator {
  4798. margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
  4799. calc(var(--wui-spacing-m) * -1);
  4800. width: calc(100% + var(--wui-spacing-s) * 2);
  4801. }
  4802. `;var rA=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rE=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.authConnector=this.connectors.find(e=>"AUTH"===e.type),this.features=n.Hd.state.features,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>{this.connectors=e,this.authConnector=this.connectors.find(e=>"AUTH"===e.type)}),n.Hd.subscribeKey("features",e=>this.features=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.features?.socials;return this.authConnector&&e&&e?.length?(0,a.qy)` <wui-flex flexDirection="column" gap="xs">
  4803. ${e.map(e=>(0,a.qy)`<wui-list-social
  4804. @click=${()=>{this.onSocialClick(e)}}
  4805. name=${e}
  4806. logo=${e}
  4807. tabIdx=${(0,s.J)(this.tabIdx)}
  4808. ></wui-list-social>`)}
  4809. </wui-flex>`:null}async onSocialClick(e){if(e&&(n.Uj.setSocialProvider(e,n.WB.state.activeChain),n.En.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===G.iV.Farcaster){n.IN.push("ConnectingFarcaster");let e=n.aK.getAuthConnector();if(e&&!n.Uj.state.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();n.Uj.setFarcasterUrl(t,n.WB.state.activeChain)}catch(e){n.IN.goBack(),n.Pt.showError(e)}}else{n.IN.push("ConnectingSocial");let t=n.aK.getAuthConnector();this.popupWindow=n.wE.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){let{uri:i}=await t.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&i)n.Uj.setSocialWindow(this.popupWindow,n.WB.state.activeChain),this.popupWindow.location.href=i;else throw this.popupWindow?.close(),Error("Something went wrong")}}catch(e){this.popupWindow?.close(),n.Pt.showError("Something went wrong")}}}};rE.styles=rC,rA([(0,o.MZ)()],rE.prototype,"tabIdx",void 0),rA([(0,o.wk)()],rE.prototype,"connectors",void 0),rA([(0,o.wk)()],rE.prototype,"authConnector",void 0),rA([(0,o.wk)()],rE.prototype,"features",void 0),rE=rA([(0,r.customElement)("w3m-social-login-list")],rE);var r_=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rk=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"ANNOUNCED"===e.type);return e?.length?(0,a.qy)`
  4810. <wui-flex flexDirection="column" gap="xs">
  4811. ${e.map(e=>e.info?.rdns&&n.Np.state.excludedRDNS&&n.Np.state.excludedRDNS.includes(e?.info?.rdns)?null:(0,a.qy)`
  4812. <wui-list-wallet
  4813. imageSrc=${(0,s.J)(n.$m.getConnectorImage(e))}
  4814. name=${e.name??"Unknown"}
  4815. @click=${()=>this.onConnector(e)}
  4816. tagVariant="success"
  4817. tagLabel="installed"
  4818. data-testid=${`wallet-selector-${e.id}`}
  4819. .installed=${!0}
  4820. tabIdx=${(0,s.J)(this.tabIdx)}
  4821. >
  4822. </wui-list-wallet>
  4823. `)}
  4824. </wui-flex>
  4825. `:(this.style.cssText="display: none",null)}onConnector(e){"walletConnect"===e.id?n.wE.isMobile()?n.IN.push("AllWallets"):n.IN.push("ConnectingWalletConnect"):n.IN.push("ConnectingExternal",{connector:e})}};r_([(0,o.MZ)()],rk.prototype,"tabIdx",void 0),r_([(0,o.wk)()],rk.prototype,"connectors",void 0),rk=r_([(0,r.customElement)("w3m-connect-announced-widget")],rk);var rI=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rS=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{customWallets:e}=n.Hd.state;if(!e?.length)return this.style.cssText="display: none",null;let t=this.filterOutDuplicateWallets(e);return(0,a.qy)`<wui-flex flexDirection="column" gap="xs">
  4826. ${t.map(e=>(0,a.qy)`
  4827. <wui-list-wallet
  4828. imageSrc=${(0,s.J)(n.$m.getWalletImage(e))}
  4829. name=${e.name??"Unknown"}
  4830. @click=${()=>this.onConnectWallet(e)}
  4831. data-testid=${`wallet-selector-${e.id}`}
  4832. tabIdx=${(0,s.J)(this.tabIdx)}
  4833. >
  4834. </wui-list-wallet>
  4835. `)}
  4836. </wui-flex>`}filterOutDuplicateWallets(e){let t=n.iT.getRecentWallets(),i=this.connectors.map(e=>e.info?.rdns).filter(Boolean),r=t.map(e=>e.rdns).filter(Boolean),a=i.concat(r);if(a.includes("io.metamask.mobile")&&n.wE.isMobile()){let e=a.indexOf("io.metamask.mobile");a[e]="io.metamask"}return e.filter(e=>!a.includes(String(e?.rdns)))}onConnectWallet(e){n.IN.push("ConnectingWalletConnect",{wallet:e})}};rI([(0,o.MZ)()],rS.prototype,"tabIdx",void 0),rI([(0,o.wk)()],rS.prototype,"connectors",void 0),rS=rI([(0,r.customElement)("w3m-connect-custom-widget")],rS);var rT=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rN=class extends a.WF{constructor(){super(...arguments),this.unsubscribe=[],this.tabIdx=void 0}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{featured:e}=n.Np.state;if(!e.length)return this.style.cssText="display: none",null;let t=tZ.filterOutDuplicateWallets(e);return(0,a.qy)`
  4837. <wui-flex flexDirection="column" gap="xs">
  4838. ${t.map(e=>(0,a.qy)`
  4839. <wui-list-wallet
  4840. data-testid=${`wallet-selector-featured-${e.id}`}
  4841. imageSrc=${(0,s.J)(n.$m.getWalletImage(e))}
  4842. name=${e.name??"Unknown"}
  4843. @click=${()=>this.onConnectWallet(e)}
  4844. tabIdx=${(0,s.J)(this.tabIdx)}
  4845. >
  4846. </wui-list-wallet>
  4847. `)}
  4848. </wui-flex>
  4849. `}onConnectWallet(e){let t=n.aK.getConnector(e.id,e.rdns);t?n.IN.push("ConnectingExternal",{connector:t}):n.IN.push("ConnectingWalletConnect",{wallet:e})}};rT([(0,o.MZ)()],rN.prototype,"tabIdx",void 0),rN=rT([(0,r.customElement)("w3m-connect-featured-widget")],rN);var rP=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rR=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"INJECTED"===e.type);return e?.length&&(1!==e.length||e[0]?.name!=="Browser Wallet"||n.wE.isMobile())?(0,a.qy)`
  4850. <wui-flex flexDirection="column" gap="xs">
  4851. ${e.map(e=>{if(!n.wE.isMobile()&&"Browser Wallet"===e.name)return null;let t=e.info?.rdns;return t||n.x4.checkInstalled(void 0)?t&&n.Np.state.excludedRDNS&&n.Np.state.excludedRDNS.includes(t)?null:(0,a.qy)`
  4852. <wui-list-wallet
  4853. imageSrc=${(0,s.J)(n.$m.getConnectorImage(e))}
  4854. .installed=${!0}
  4855. name=${e.name??"Unknown"}
  4856. tagVariant="success"
  4857. tagLabel="installed"
  4858. data-testid=${`wallet-selector-${e.id}`}
  4859. @click=${()=>this.onConnector(e)}
  4860. tabIdx=${(0,s.J)(this.tabIdx)}
  4861. >
  4862. </wui-list-wallet>
  4863. `:(this.style.cssText="display: none",null)})}
  4864. </wui-flex>
  4865. `:(this.style.cssText="display: none",null)}onConnector(e){n.WB.setActiveConnector(e),n.IN.push("ConnectingExternal",{connector:e})}};rP([(0,o.MZ)()],rR.prototype,"tabIdx",void 0),rP([(0,o.wk)()],rR.prototype,"connectors",void 0),rR=rP([(0,r.customElement)("w3m-connect-injected-widget")],rR);var rO=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rM=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"MULTI_CHAIN"===e.type&&"WalletConnect"!==e.name);return e?.length?(0,a.qy)`
  4866. <wui-flex flexDirection="column" gap="xs">
  4867. ${e.map(e=>(0,a.qy)`
  4868. <wui-list-wallet
  4869. imageSrc=${(0,s.J)(n.$m.getConnectorImage(e))}
  4870. .installed=${!0}
  4871. name=${e.name??"Unknown"}
  4872. tagVariant="shade"
  4873. tagLabel="multichain"
  4874. data-testid=${`wallet-selector-${e.id}`}
  4875. @click=${()=>this.onConnector(e)}
  4876. tabIdx=${(0,s.J)(this.tabIdx)}
  4877. >
  4878. </wui-list-wallet>
  4879. `)}
  4880. </wui-flex>
  4881. `:(this.style.cssText="display: none",null)}onConnector(e){n.WB.setActiveConnector(e),n.IN.push("ConnectingMultiChain")}};rO([(0,o.MZ)()],rM.prototype,"tabIdx",void 0),rO([(0,o.wk)()],rM.prototype,"connectors",void 0),rM=rO([(0,r.customElement)("w3m-connect-multi-chain-widget")],rM);var rD=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rU=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"EXTERNAL"===e.type).filter(e=>"coinbaseWalletSDK"!==e.id);return e?.length?(0,a.qy)`
  4882. <wui-flex flexDirection="column" gap="xs">
  4883. ${e.map(e=>(0,a.qy)`
  4884. <wui-list-wallet
  4885. imageSrc=${(0,s.J)(n.$m.getConnectorImage(e))}
  4886. .installed=${!0}
  4887. name=${e.name??"Unknown"}
  4888. data-testid=${`wallet-selector-external-${e.id}`}
  4889. @click=${()=>this.onConnector(e)}
  4890. tabIdx=${(0,s.J)(this.tabIdx)}
  4891. >
  4892. </wui-list-wallet>
  4893. `)}
  4894. </wui-flex>
  4895. `:(this.style.cssText="display: none",null)}onConnector(e){n.IN.push("ConnectingExternal",{connector:e})}};rD([(0,o.MZ)()],rU.prototype,"tabIdx",void 0),rD([(0,o.wk)()],rU.prototype,"connectors",void 0),rU=rD([(0,r.customElement)("w3m-connect-external-widget")],rU);var r$=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rL=class extends a.WF{constructor(){super(...arguments),this.tabIdx=void 0}render(){let e=n.iT.getRecentWallets();return e?.length?(0,a.qy)`
  4896. <wui-flex flexDirection="column" gap="xs">
  4897. ${e.map(e=>(0,a.qy)`
  4898. <wui-list-wallet
  4899. imageSrc=${(0,s.J)(n.$m.getWalletImage(e))}
  4900. name=${e.name??"Unknown"}
  4901. @click=${()=>this.onConnectWallet(e)}
  4902. tagLabel="recent"
  4903. tagVariant="shade"
  4904. tabIdx=${(0,s.J)(this.tabIdx)}
  4905. >
  4906. </wui-list-wallet>
  4907. `)}
  4908. </wui-flex>
  4909. `:(this.style.cssText="display: none",null)}onConnectWallet(e){n.IN.push("ConnectingWalletConnect",{wallet:e})}};r$([(0,o.MZ)()],rL.prototype,"tabIdx",void 0),rL=r$([(0,r.customElement)("w3m-connect-recent-widget")],rL);var rj=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rB=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.connectors.find(e=>"walletConnect"===e.id))return null;let{recommended:e}=n.Np.state,{customWallets:t,featuredWalletIds:i}=n.Hd.state,{connectors:r}=n.aK.state,o=n.iT.getRecentWallets(),c=r.filter(e=>"INJECTED"===e.type||"ANNOUNCED"===e.type||"MULTI_CHAIN"===e.type).filter(e=>"Browser Wallet"!==e.name);if(i||t||!e.length)return this.style.cssText="display: none",null;let l=Math.max(0,2-(c.length+o.length)),u=tZ.filterOutDuplicateWallets(e).slice(0,l);return u.length?(0,a.qy)`
  4910. <wui-flex flexDirection="column" gap="xs">
  4911. ${u.map(e=>(0,a.qy)`
  4912. <wui-list-wallet
  4913. imageSrc=${(0,s.J)(n.$m.getWalletImage(e))}
  4914. name=${e?.name??"Unknown"}
  4915. @click=${()=>this.onConnectWallet(e)}
  4916. tabIdx=${(0,s.J)(this.tabIdx)}
  4917. >
  4918. </wui-list-wallet>
  4919. `)}
  4920. </wui-flex>
  4921. `:(this.style.cssText="display: none",null)}onConnectWallet(e){let t=n.aK.getConnector(e.id,e.rdns);t?n.IN.push("ConnectingExternal",{connector:t}):n.IN.push("ConnectingWalletConnect",{wallet:e})}};rj([(0,o.MZ)()],rB.prototype,"tabIdx",void 0),rj([(0,o.wk)()],rB.prototype,"connectors",void 0),rB=rj([(0,r.customElement)("w3m-connect-recommended-widget")],rB);var rW=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rq=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(n.wE.isMobile())return this.style.cssText="display: none",null;let e=this.connectors.find(e=>"walletConnect"===e.id);return e?(0,a.qy)`
  4922. <wui-list-wallet
  4923. imageSrc=${(0,s.J)(n.$m.getConnectorImage(e))}
  4924. name=${e.name??"Unknown"}
  4925. @click=${()=>this.onConnector(e)}
  4926. tagLabel="qr code"
  4927. tagVariant="main"
  4928. tabIdx=${(0,s.J)(this.tabIdx)}
  4929. data-testid="wallet-selector-walletconnect"
  4930. >
  4931. </wui-list-wallet>
  4932. `:(this.style.cssText="display: none",null)}onConnector(e){n.WB.setActiveConnector(e),n.IN.push("ConnectingWalletConnect")}};rW([(0,o.MZ)()],rq.prototype,"tabIdx",void 0),rW([(0,o.wk)()],rq.prototype,"connectors",void 0),rq=rW([(0,r.customElement)("w3m-connect-walletconnect-widget")],rq);let rH=(0,a.AH)`
  4933. :host {
  4934. margin-top: var(--wui-spacing-3xs);
  4935. }
  4936. wui-separator {
  4937. margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
  4938. calc(var(--wui-spacing-m) * -1);
  4939. width: calc(100% + var(--wui-spacing-s) * 2);
  4940. }
  4941. `;var rz=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rF=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{custom:e,recent:t,announced:i,injected:r,multiChain:o,recommended:c,featured:l,external:u}=this.getConnectorsByType(),d=n.Hd.state.enableWalletConnect;return(0,a.qy)`
  4942. <wui-flex flexDirection="column" gap="xs">
  4943. ${d?(0,a.qy)`<w3m-connect-walletconnect-widget
  4944. tabIdx=${(0,s.J)(this.tabIdx)}
  4945. ></w3m-connect-walletconnect-widget>`:null}
  4946. ${t.length?(0,a.qy)`<w3m-connect-recent-widget
  4947. tabIdx=${(0,s.J)(this.tabIdx)}
  4948. ></w3m-connect-recent-widget>`:null}
  4949. ${o.length?(0,a.qy)`<w3m-connect-multi-chain-widget
  4950. tabIdx=${(0,s.J)(this.tabIdx)}
  4951. ></w3m-connect-multi-chain-widget>`:null}
  4952. ${i.length?(0,a.qy)`<w3m-connect-announced-widget
  4953. tabIdx=${(0,s.J)(this.tabIdx)}
  4954. ></w3m-connect-announced-widget>`:null}
  4955. ${r.length?(0,a.qy)`<w3m-connect-injected-widget
  4956. tabIdx=${(0,s.J)(this.tabIdx)}
  4957. ></w3m-connect-injected-widget>`:null}
  4958. ${l.length?(0,a.qy)`<w3m-connect-featured-widget
  4959. tabIdx=${(0,s.J)(this.tabIdx)}
  4960. ></w3m-connect-featured-widget>`:null}
  4961. ${e?.length?(0,a.qy)`<w3m-connect-custom-widget
  4962. tabIdx=${(0,s.J)(this.tabIdx)}
  4963. ></w3m-connect-custom-widget>`:null}
  4964. ${u.length?(0,a.qy)`<w3m-connect-external-widget
  4965. tabIdx=${(0,s.J)(this.tabIdx)}
  4966. ></w3m-connect-external-widget>`:null}
  4967. ${c.length?(0,a.qy)`<w3m-connect-recommended-widget
  4968. tabIdx=${(0,s.J)(this.tabIdx)}
  4969. ></w3m-connect-recommended-widget>`:null}
  4970. </wui-flex>
  4971. `}getConnectorsByType(){let{featured:e,recommended:t}=n.Np.state,{customWallets:i}=n.Hd.state,r=n.iT.getRecentWallets(),a=tZ.filterOutDuplicateWallets(t),o=tZ.filterOutDuplicateWallets(e),s=this.connectors.filter(e=>"MULTI_CHAIN"===e.type),c=this.connectors.filter(e=>"ANNOUNCED"===e.type),l=this.connectors.filter(e=>"INJECTED"===e.type);return{custom:i,recent:r,external:this.connectors.filter(e=>"EXTERNAL"===e.type),multiChain:s,announced:c,injected:l,recommended:a,featured:o}}};rF.styles=rH,rz([(0,o.MZ)()],rF.prototype,"tabIdx",void 0),rz([(0,o.wk)()],rF.prototype,"connectors",void 0),rF=rz([(0,r.customElement)("w3m-connector-list")],rF);var rZ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rV=class extends a.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.aK.state.connectors,this.count=n.Np.state.count,this.unsubscribe.push(n.aK.subscribeKey("connectors",e=>this.connectors=e),n.Np.subscribeKey("count",e=>this.count=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"walletConnect"===e.id),{allWallets:t}=n.Hd.state;if(!e||"HIDE"===t||"ONLY_MOBILE"===t&&!n.wE.isMobile())return null;let i=n.Np.state.featured.length,r=this.count+i,o=r<10?r:10*Math.floor(r/10),c=o<r?`${o}+`:`${o}`;return(0,a.qy)`
  4972. <wui-list-wallet
  4973. name="All Wallets"
  4974. walletIcon="allWallets"
  4975. showAllWallets
  4976. @click=${this.onAllWallets.bind(this)}
  4977. tagLabel=${c}
  4978. tagVariant="shade"
  4979. data-testid="all-wallets"
  4980. tabIdx=${(0,s.J)(this.tabIdx)}
  4981. ></wui-list-wallet>
  4982. `}onAllWallets(){n.En.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),n.IN.push("AllWallets")}};rZ([(0,o.MZ)()],rV.prototype,"tabIdx",void 0),rZ([(0,o.wk)()],rV.prototype,"connectors",void 0),rZ([(0,o.wk)()],rV.prototype,"count",void 0),rV=rZ([(0,r.customElement)("w3m-all-wallets-widget")],rV);let rK=class extends a.WF{constructor(){super(...arguments),this.socialProvider=n.iT.getConnectedSocialProvider(),this.socialUsername=n.iT.getConnectedSocialUsername()}render(){let e=n.iT.getConnectedConnector(),t=n.aK.getAuthConnector();if(!t||"ID_AUTH"!==e)return this.style.cssText="display: none",null;let i=t.provider.getEmail()??"";return(0,a.qy)`
  4983. <wui-list-item
  4984. variant="icon"
  4985. iconVariant="overlay"
  4986. icon=${this.socialProvider??"mail"}
  4987. iconSize=${this.socialProvider?"xxl":"sm"}
  4988. data-testid="w3m-account-email-update"
  4989. ?chevron=${!this.socialProvider}
  4990. @click=${()=>{this.onGoToUpdateEmail(i,this.socialProvider)}}
  4991. >
  4992. <wui-text variant="paragraph-500" color="fg-100">${this.getAuthName(i)}</wui-text>
  4993. </wui-list-item>
  4994. `}onGoToUpdateEmail(e,t){t||n.IN.push("UpdateEmailWallet",{email:e})}getAuthName(e){return this.socialUsername?"discord"===this.socialProvider&&this.socialUsername.endsWith("0")?this.socialUsername.slice(0,-1):this.socialUsername:e.length>30?`${e.slice(0,-3)}...`:e}};rK=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-account-auth-button")],rK);let rG=(0,a.AH)`
  4995. wui-flex {
  4996. width: 100%;
  4997. }
  4998. .wallet-guide {
  4999. width: 100%;
  5000. }
  5001. .chip-box {
  5002. width: fit-content;
  5003. background-color: var(--wui-color-gray-glass-005);
  5004. border-radius: var(--wui-border-radius-3xl);
  5005. }
  5006. `;var rJ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rY=class extends a.WF{constructor(){super(...arguments),this.walletGuide="get-started"}render(){return"explore"===this.walletGuide?(0,a.qy)`<wui-flex
  5007. class="wallet-guide"
  5008. flexDirection="column"
  5009. alignItems="center"
  5010. justifyContent="center"
  5011. rowGap="xs"
  5012. data-testid="w3m-wallet-guide-explore"
  5013. >
  5014. <wui-text variant="small-400" color="fg-200" align="center">
  5015. Looking for a self-custody wallet?
  5016. </wui-text>
  5017. <wui-flex class="chip-box">
  5018. <wui-chip
  5019. imageIcon="walletConnectLightBrown"
  5020. icon="externalLink"
  5021. variant="transparent"
  5022. href="https://explorer.walletconnect.com"
  5023. title="Visit our Explorer"
  5024. ></wui-chip>
  5025. </wui-flex>
  5026. </wui-flex>`:(0,a.qy)`<wui-flex
  5027. columnGap="4xs"
  5028. flexDirection="row"
  5029. alignItems="center"
  5030. justifyContent="center"
  5031. >
  5032. <wui-text variant="small-400" class="title" color="fg-200"
  5033. >Haven't got a wallet?</wui-text
  5034. >
  5035. <wui-link
  5036. data-testid="w3m-wallet-guide-get-started"
  5037. color="blue-100"
  5038. class="get-started-link"
  5039. @click=${this.onGetStarted}
  5040. tabIdx=${(0,s.J)(this.tabIdx)}
  5041. >
  5042. Get started
  5043. </wui-link>
  5044. </wui-flex>`}onGetStarted(){n.IN.push("Create")}};rY.styles=rG,rJ([(0,o.MZ)()],rY.prototype,"tabIdx",void 0),rJ([(0,o.MZ)()],rY.prototype,"walletGuide",void 0),rY=rJ([(0,r.customElement)("w3m-wallet-guide")],rY);let rQ=(0,a.AH)`
  5045. :host {
  5046. display: flex;
  5047. justify-content: center;
  5048. gap: var(--wui-spacing-2xl);
  5049. }
  5050. wui-visual-thumbnail:nth-child(1) {
  5051. z-index: 1;
  5052. }
  5053. `,rX=class extends a.WF{constructor(){super(...arguments),this.dappImageUrl=n.Hd.state.metadata?.icons,this.walletImageUrl=n.Uj.state.connectedWalletInfo?.icon}firstUpdated(){let e=this.shadowRoot?.querySelectorAll("wui-visual-thumbnail");e?.[0]&&this.createAnimation(e[0],"translate(18px)"),e?.[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){return(0,a.qy)`
  5054. <wui-visual-thumbnail
  5055. ?borderRadiusFull=${!0}
  5056. .imageSrc=${this.dappImageUrl?.[0]}
  5057. ></wui-visual-thumbnail>
  5058. <wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail>
  5059. `}createAnimation(e,t){e.animate([{transform:"translateX(0px)"},{transform:t}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};rX.styles=rQ,rX=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([(0,r.customElement)("w3m-siwx-sign-message-thumbnails")],rX)},57068:(e,t,i)=>{"use strict";let r,n,a;i.r(t),i.d(t,{MathUtil:()=>n5,TransactionUtil:()=>n8,UiHelperUtil:()=>tT,WuiAccountButton:()=>tW,WuiAlertBar:()=>rC,WuiAllWalletsImage:()=>tV,WuiAvatar:()=>tD,WuiBalance:()=>r5,WuiBanner:()=>nl,WuiBannerImg:()=>nh,WuiButton:()=>tX,WuiCard:()=>y,WuiCardSelect:()=>it,WuiCardSelectLoader:()=>t3,WuiCertifiedSwitch:()=>nY,WuiCheckBox:()=>nF,WuiChip:()=>ia,WuiChipButton:()=>nr,WuiCompatibleNetwork:()=>no,WuiConnectButton:()=>ic,WuiCtaButton:()=>id,WuiDetailsGroup:()=>ip,WuiDetailsGroupItem:()=>im,WuiDropdownMenu:()=>iy,WuiEmailInput:()=>iI,WuiEnsInput:()=>iN,WuiFlex:()=>tR,WuiGrid:()=>n0,WuiIcon:()=>eZ,WuiIconBox:()=>tL,WuiIconButton:()=>nO,WuiIconLink:()=>iO,WuiImage:()=>eG,WuiInputAmount:()=>nA,WuiInputElement:()=>iU,WuiInputNumeric:()=>ij,WuiInputText:()=>iE,WuiLink:()=>iq,WuiListAccordion:()=>rH,WuiListAccount:()=>nN,WuiListButton:()=>nU,WuiListContent:()=>rZ,WuiListDescription:()=>nb,WuiListItem:()=>iF,WuiListNetwork:()=>rG,WuiListSocial:()=>nj,WuiListToken:()=>ng,WuiListWallet:()=>i4,WuiListWalletTransaction:()=>rQ,WuiLoadingHexagon:()=>eY,WuiLoadingSpinner:()=>e0,WuiLoadingThumbnail:()=>e3,WuiLogo:()=>i9,WuiLogoSelect:()=>rt,WuiNetworkButton:()=>rn,WuiNetworkImage:()=>t9,WuiNoticeCard:()=>rB,WuiOtp:()=>rs,WuiPreviewItem:()=>nk,WuiProfileButton:()=>r8,WuiProfileButtonV2:()=>ne,WuiPromo:()=>r1,WuiQrCode:()=>rp,WuiSearchBar:()=>rg,WuiSelect:()=>nq,WuiSeparator:()=>n3,WuiShimmer:()=>e6,WuiSnackbar:()=>rb,WuiSwitch:()=>nK,WuiTabs:()=>r_,WuiTag:()=>i2,WuiText:()=>te,WuiTokenButton:()=>rS,WuiTokenListItem:()=>rM,WuiTooltip:()=>rP,WuiTransactionListItem:()=>iY,WuiTransactionListItemLoader:()=>iX,WuiTransactionVisual:()=>iK,WuiVisual:()=>tI,WuiVisualThumbnail:()=>r$,WuiWalletImage:()=>tz,customElement:()=>b,initializeTheming:()=>d,setColorTheme:()=>h,setThemeVariables:()=>p,swapInputMaskBottomSvg:()=>c,swapInputMaskTopSvg:()=>l});var o,s=i(16896);let c=(0,s.JW)`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
  5060. <mask id="path-1-inside-1_18299_4189">
  5061. <path
  5062. class="input_mask__border"
  5063. fill-rule="evenodd"
  5064. clip-rule="evenodd"
  5065. d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z"
  5066. />
  5067. </mask>
  5068. <path
  5069. class="input_mask__background"
  5070. fill-rule="evenodd"
  5071. clip-rule="evenodd"
  5072. d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z"
  5073. />
  5074. <path
  5075. class="input_mask__border"
  5076. d="M138.008 0L139.008 -0.00694413L139.001 -1H138.008V0ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM189.992 0V-1H188.999L188.992 -0.00694413L189.992 0ZM188.914 10.1564L189.854 10.4984V10.4984L188.914 10.1564ZM178.156 20.9145L177.814 19.9748V19.9748L178.156 20.9145ZM149.844 20.9145L150.186 19.9748V19.9748L149.844 20.9145ZM139.086 10.1564L138.146 10.4984V10.4984L139.086 10.1564ZM40 1H138.008V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM288 99H40V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM189.992 1H288V-1H189.992V1ZM188.992 -0.00694413C188.958 4.90792 188.778 7.60788 187.975 9.81434L189.854 10.4984C190.793 7.9177 190.958 4.87452 190.992 0.00694413L188.992 -0.00694413ZM187.975 9.81434C186.256 14.5364 182.536 18.2561 177.814 19.9748L178.498 21.8542C183.776 19.9333 187.933 15.7759 189.854 10.4984L187.975 9.81434ZM177.814 19.9748C175.039 20.9848 171.536 21 164 21V23C171.362 23 175.308 23.0152 178.498 21.8542L177.814 19.9748ZM164 21C156.464 21 152.961 20.9848 150.186 19.9748L149.502 21.8542C152.692 23.0152 156.638 23 164 23V21ZM150.186 19.9748C145.464 18.2561 141.744 14.5364 140.025 9.81434L138.146 10.4984C140.067 15.7759 144.224 19.9333 149.502 21.8542L150.186 19.9748ZM140.025 9.81434C139.222 7.60788 139.042 4.90792 139.008 -0.00694413L137.008 0.00694413C137.042 4.87452 137.207 7.9177 138.146 10.4984L140.025 9.81434Z"
  5077. mask="url(#path-1-inside-1_18299_4189)"
  5078. />
  5079. </svg>`,l=(0,s.JW)`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
  5080. <mask id="path-1-inside-1_18299_4168">
  5081. <path
  5082. class="input_mask__border"
  5083. fill-rule="evenodd"
  5084. clip-rule="evenodd"
  5085. d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z"
  5086. />
  5087. </mask>
  5088. <path
  5089. class="input_mask__background"
  5090. fill-rule="evenodd"
  5091. clip-rule="evenodd"
  5092. d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z"
  5093. />
  5094. <path
  5095. class="input_mask__border"
  5096. d="M138.008 100V101H139.001L139.008 100.007L138.008 100ZM139.086 89.8436L138.146 89.5016L139.086 89.8436ZM149.844 79.0855L150.186 80.0252L149.844 79.0855ZM178.156 79.0855L177.814 80.0252L178.156 79.0855ZM188.914 89.8436L189.854 89.5016L188.914 89.8436ZM189.992 100L188.992 100.007L188.999 101H189.992V100ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM138.008 99H40V101H138.008V99ZM139.008 100.007C139.042 95.0921 139.222 92.3921 140.025 90.1857L138.146 89.5016C137.207 92.0823 137.042 95.1255 137.008 99.9931L139.008 100.007ZM140.025 90.1857C141.744 85.4636 145.464 81.7439 150.186 80.0252L149.502 78.1458C144.224 80.0667 140.067 84.2241 138.146 89.5016L140.025 90.1857ZM150.186 80.0252C152.961 79.0152 156.464 79 164 79V77C156.638 77 152.692 76.9848 149.502 78.1458L150.186 80.0252ZM164 79C171.536 79 175.039 79.0152 177.814 80.0252L178.498 78.1458C175.308 76.9848 171.362 77 164 77V79ZM177.814 80.0252C182.536 81.7439 186.256 85.4636 187.975 90.1857L189.854 89.5016C187.933 84.2241 183.776 80.0667 178.498 78.1458L177.814 80.0252ZM187.975 90.1857C188.778 92.3921 188.958 95.0921 188.992 100.007L190.992 99.9931C190.958 95.1255 190.793 92.0823 189.854 89.5016L187.975 90.1857ZM288 99H189.992V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM40 1H288V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497Z"
  5097. mask="url(#path-1-inside-1_18299_4168)"
  5098. />
  5099. </svg>`;var u=i(50639);function d(e,t){r=document.createElement("style"),n=document.createElement("style"),a=document.createElement("style"),r.textContent=f(e).core.cssText,n.textContent=f(e).dark.cssText,a.textContent=f(e).light.cssText,document.head.appendChild(r),document.head.appendChild(n),document.head.appendChild(a),h(t)}function h(e){n&&a&&("light"===e?(n.removeAttribute("media"),a.media="enabled"):(a.removeAttribute("media"),n.media="enabled"))}function p(e){r&&n&&a&&(r.textContent=f(e).core.cssText,n.textContent=f(e).dark.cssText,a.textContent=f(e).light.cssText)}function f(e){return{core:(0,s.AH)`
  5100. @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
  5101. @keyframes w3m-shake {
  5102. 0% {
  5103. transform: scale(1) rotate(0deg);
  5104. }
  5105. 20% {
  5106. transform: scale(1) rotate(-1deg);
  5107. }
  5108. 40% {
  5109. transform: scale(1) rotate(1.5deg);
  5110. }
  5111. 60% {
  5112. transform: scale(1) rotate(-1.5deg);
  5113. }
  5114. 80% {
  5115. transform: scale(1) rotate(1deg);
  5116. }
  5117. 100% {
  5118. transform: scale(1) rotate(0deg);
  5119. }
  5120. }
  5121. @keyframes w3m-iframe-fade-out {
  5122. 0% {
  5123. opacity: 1;
  5124. }
  5125. 100% {
  5126. opacity: 0;
  5127. }
  5128. }
  5129. @keyframes w3m-iframe-zoom-in {
  5130. 0% {
  5131. transform: translateY(50px);
  5132. opacity: 0;
  5133. }
  5134. 100% {
  5135. transform: translateY(0px);
  5136. opacity: 1;
  5137. }
  5138. }
  5139. @keyframes w3m-iframe-zoom-in-mobile {
  5140. 0% {
  5141. transform: scale(0.95);
  5142. opacity: 0;
  5143. }
  5144. 100% {
  5145. transform: scale(1);
  5146. opacity: 1;
  5147. }
  5148. }
  5149. :root {
  5150. --w3m-modal-width: 360px;
  5151. --w3m-color-mix-strength: ${(0,s.iz)(e?.["--w3m-color-mix-strength"]?`${e["--w3m-color-mix-strength"]}%`:"0%")};
  5152. --w3m-font-family: ${(0,s.iz)(e?.["--w3m-font-family"]||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")};
  5153. --w3m-font-size-master: ${(0,s.iz)(e?.["--w3m-font-size-master"]||"10px")};
  5154. --w3m-border-radius-master: ${(0,s.iz)(e?.["--w3m-border-radius-master"]||"4px")};
  5155. --w3m-z-index: ${(0,s.iz)(e?.["--w3m-z-index"]||999)};
  5156. --wui-font-family: var(--w3m-font-family);
  5157. --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8);
  5158. --wui-font-size-micro: var(--w3m-font-size-master);
  5159. --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2);
  5160. --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4);
  5161. --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6);
  5162. --wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8);
  5163. --wui-font-size-large: calc(var(--w3m-font-size-master) * 2);
  5164. --wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2);
  5165. --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4);
  5166. --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4);
  5167. --wui-border-radius-5xs: var(--w3m-border-radius-master);
  5168. --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5);
  5169. --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2);
  5170. --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3);
  5171. --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4);
  5172. --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5);
  5173. --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7);
  5174. --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9);
  5175. --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20);
  5176. --wui-font-weight-light: 400;
  5177. --wui-font-weight-regular: 500;
  5178. --wui-font-weight-medium: 600;
  5179. --wui-font-weight-bold: 700;
  5180. --wui-letter-spacing-2xl: -1.6px;
  5181. --wui-letter-spacing-medium-title: -0.96px;
  5182. --wui-letter-spacing-title-6: -0.88px;
  5183. --wui-letter-spacing-large: -0.8px;
  5184. --wui-letter-spacing-medium: -0.72px;
  5185. --wui-letter-spacing-paragraph: -0.64px;
  5186. --wui-letter-spacing-small: -0.56px;
  5187. --wui-letter-spacing-tiny: -0.48px;
  5188. --wui-letter-spacing-micro: -0.2px;
  5189. --wui-letter-spacing-mini: -0.16px;
  5190. --wui-spacing-0: 0px;
  5191. --wui-spacing-4xs: 2px;
  5192. --wui-spacing-3xs: 4px;
  5193. --wui-spacing-xxs: 6px;
  5194. --wui-spacing-2xs: 7px;
  5195. --wui-spacing-xs: 8px;
  5196. --wui-spacing-1xs: 10px;
  5197. --wui-spacing-s: 12px;
  5198. --wui-spacing-m: 14px;
  5199. --wui-spacing-l: 16px;
  5200. --wui-spacing-2l: 18px;
  5201. --wui-spacing-xl: 20px;
  5202. --wui-spacing-xxl: 24px;
  5203. --wui-spacing-2xl: 32px;
  5204. --wui-spacing-3xl: 40px;
  5205. --wui-spacing-4xl: 90px;
  5206. --wui-spacing-5xl: 95px;
  5207. --wui-icon-box-size-xxs: 14px;
  5208. --wui-icon-box-size-xs: 20px;
  5209. --wui-icon-box-size-sm: 24px;
  5210. --wui-icon-box-size-md: 32px;
  5211. --wui-icon-box-size-lg: 40px;
  5212. --wui-icon-box-size-2lg: 48px;
  5213. --wui-icon-box-size-xl: 64px;
  5214. --wui-icon-size-inherit: inherit;
  5215. --wui-icon-size-xxs: 10px;
  5216. --wui-icon-size-xs: 12px;
  5217. --wui-icon-size-sm: 14px;
  5218. --wui-icon-size-md: 16px;
  5219. --wui-icon-size-mdl: 18px;
  5220. --wui-icon-size-lg: 20px;
  5221. --wui-icon-size-xl: 24px;
  5222. --wui-icon-size-xxl: 28px;
  5223. --wui-wallet-image-size-inherit: inherit;
  5224. --wui-wallet-image-size-sm: 40px;
  5225. --wui-wallet-image-size-md: 56px;
  5226. --wui-wallet-image-size-lg: 80px;
  5227. --wui-visual-size-size-inherit: inherit;
  5228. --wui-visual-size-sm: 40px;
  5229. --wui-visual-size-md: 55px;
  5230. --wui-visual-size-lg: 80px;
  5231. --wui-box-size-md: 100px;
  5232. --wui-box-size-lg: 120px;
  5233. --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1);
  5234. --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1);
  5235. --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1);
  5236. --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1);
  5237. --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1);
  5238. --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1);
  5239. --wui-duration-lg: 200ms;
  5240. --wui-duration-md: 125ms;
  5241. --wui-duration-sm: 75ms;
  5242. --wui-path-network-sm: path(
  5243. 'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z'
  5244. );
  5245. --wui-path-network-md: path(
  5246. 'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z'
  5247. );
  5248. --wui-path-network-lg: path(
  5249. 'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z'
  5250. );
  5251. --wui-width-network-sm: 36px;
  5252. --wui-width-network-md: 48px;
  5253. --wui-width-network-lg: 86px;
  5254. --wui-height-network-sm: 40px;
  5255. --wui-height-network-md: 54px;
  5256. --wui-height-network-lg: 96px;
  5257. --wui-icon-size-network-xs: 12px;
  5258. --wui-icon-size-network-sm: 16px;
  5259. --wui-icon-size-network-md: 24px;
  5260. --wui-icon-size-network-lg: 42px;
  5261. --wui-color-inherit: inherit;
  5262. --wui-color-inverse-100: #fff;
  5263. --wui-color-inverse-000: #000;
  5264. --wui-cover: rgba(20, 20, 20, 0.8);
  5265. --wui-color-modal-bg: var(--wui-color-modal-bg-base);
  5266. --wui-color-accent-100: var(--wui-color-accent-base-100);
  5267. --wui-color-accent-090: var(--wui-color-accent-base-090);
  5268. --wui-color-accent-080: var(--wui-color-accent-base-080);
  5269. --wui-color-success-100: var(--wui-color-success-base-100);
  5270. --wui-color-success-125: var(--wui-color-success-base-125);
  5271. --wui-color-warning-100: var(--wui-color-warning-base-100);
  5272. --wui-color-error-100: var(--wui-color-error-base-100);
  5273. --wui-color-error-125: var(--wui-color-error-base-125);
  5274. --wui-color-blue-100: var(--wui-color-blue-base-100);
  5275. --wui-color-blue-90: var(--wui-color-blue-base-90);
  5276. --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100);
  5277. --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100);
  5278. --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100);
  5279. --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100);
  5280. --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100);
  5281. --wui-avatar-border: var(--wui-avatar-border-base);
  5282. --wui-thumbnail-border: var(--wui-thumbnail-border-base);
  5283. --wui-box-shadow-blue: var(--wui-color-accent-glass-020);
  5284. }
  5285. @supports (background: color-mix(in srgb, white 50%, black)) {
  5286. :root {
  5287. --wui-color-modal-bg: color-mix(
  5288. in srgb,
  5289. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5290. var(--wui-color-modal-bg-base)
  5291. );
  5292. --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent);
  5293. --wui-color-accent-100: color-mix(
  5294. in srgb,
  5295. var(--wui-color-accent-base-100) 100%,
  5296. transparent
  5297. );
  5298. --wui-color-accent-090: color-mix(
  5299. in srgb,
  5300. var(--wui-color-accent-base-100) 90%,
  5301. transparent
  5302. );
  5303. --wui-color-accent-080: color-mix(
  5304. in srgb,
  5305. var(--wui-color-accent-base-100) 80%,
  5306. transparent
  5307. );
  5308. --wui-color-accent-glass-090: color-mix(
  5309. in srgb,
  5310. var(--wui-color-accent-base-100) 90%,
  5311. transparent
  5312. );
  5313. --wui-color-accent-glass-080: color-mix(
  5314. in srgb,
  5315. var(--wui-color-accent-base-100) 80%,
  5316. transparent
  5317. );
  5318. --wui-color-accent-glass-020: color-mix(
  5319. in srgb,
  5320. var(--wui-color-accent-base-100) 20%,
  5321. transparent
  5322. );
  5323. --wui-color-accent-glass-015: color-mix(
  5324. in srgb,
  5325. var(--wui-color-accent-base-100) 15%,
  5326. transparent
  5327. );
  5328. --wui-color-accent-glass-010: color-mix(
  5329. in srgb,
  5330. var(--wui-color-accent-base-100) 10%,
  5331. transparent
  5332. );
  5333. --wui-color-accent-glass-005: color-mix(
  5334. in srgb,
  5335. var(--wui-color-accent-base-100) 5%,
  5336. transparent
  5337. );
  5338. --wui-color-accent-002: color-mix(
  5339. in srgb,
  5340. var(--wui-color-accent-base-100) 2%,
  5341. transparent
  5342. );
  5343. --wui-color-fg-100: color-mix(
  5344. in srgb,
  5345. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5346. var(--wui-color-fg-100)
  5347. );
  5348. --wui-color-fg-125: color-mix(
  5349. in srgb,
  5350. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5351. var(--wui-color-fg-125)
  5352. );
  5353. --wui-color-fg-150: color-mix(
  5354. in srgb,
  5355. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5356. var(--wui-color-fg-150)
  5357. );
  5358. --wui-color-fg-175: color-mix(
  5359. in srgb,
  5360. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5361. var(--wui-color-fg-175)
  5362. );
  5363. --wui-color-fg-200: color-mix(
  5364. in srgb,
  5365. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5366. var(--wui-color-fg-200)
  5367. );
  5368. --wui-color-fg-225: color-mix(
  5369. in srgb,
  5370. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5371. var(--wui-color-fg-225)
  5372. );
  5373. --wui-color-fg-250: color-mix(
  5374. in srgb,
  5375. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5376. var(--wui-color-fg-250)
  5377. );
  5378. --wui-color-fg-275: color-mix(
  5379. in srgb,
  5380. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5381. var(--wui-color-fg-275)
  5382. );
  5383. --wui-color-fg-300: color-mix(
  5384. in srgb,
  5385. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5386. var(--wui-color-fg-300)
  5387. );
  5388. --wui-color-fg-325: color-mix(
  5389. in srgb,
  5390. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5391. var(--wui-color-fg-325)
  5392. );
  5393. --wui-color-fg-350: color-mix(
  5394. in srgb,
  5395. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5396. var(--wui-color-fg-350)
  5397. );
  5398. --wui-color-bg-100: color-mix(
  5399. in srgb,
  5400. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5401. var(--wui-color-bg-100)
  5402. );
  5403. --wui-color-bg-125: color-mix(
  5404. in srgb,
  5405. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5406. var(--wui-color-bg-125)
  5407. );
  5408. --wui-color-bg-150: color-mix(
  5409. in srgb,
  5410. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5411. var(--wui-color-bg-150)
  5412. );
  5413. --wui-color-bg-175: color-mix(
  5414. in srgb,
  5415. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5416. var(--wui-color-bg-175)
  5417. );
  5418. --wui-color-bg-200: color-mix(
  5419. in srgb,
  5420. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5421. var(--wui-color-bg-200)
  5422. );
  5423. --wui-color-bg-225: color-mix(
  5424. in srgb,
  5425. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5426. var(--wui-color-bg-225)
  5427. );
  5428. --wui-color-bg-250: color-mix(
  5429. in srgb,
  5430. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5431. var(--wui-color-bg-250)
  5432. );
  5433. --wui-color-bg-275: color-mix(
  5434. in srgb,
  5435. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5436. var(--wui-color-bg-275)
  5437. );
  5438. --wui-color-bg-300: color-mix(
  5439. in srgb,
  5440. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5441. var(--wui-color-bg-300)
  5442. );
  5443. --wui-color-bg-325: color-mix(
  5444. in srgb,
  5445. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5446. var(--wui-color-bg-325)
  5447. );
  5448. --wui-color-bg-350: color-mix(
  5449. in srgb,
  5450. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5451. var(--wui-color-bg-350)
  5452. );
  5453. --wui-color-success-100: color-mix(
  5454. in srgb,
  5455. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5456. var(--wui-color-success-base-100)
  5457. );
  5458. --wui-color-success-125: color-mix(
  5459. in srgb,
  5460. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5461. var(--wui-color-success-base-125)
  5462. );
  5463. --wui-color-warning-100: color-mix(
  5464. in srgb,
  5465. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5466. var(--wui-color-warning-base-100)
  5467. );
  5468. --wui-color-error-100: color-mix(
  5469. in srgb,
  5470. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5471. var(--wui-color-error-base-100)
  5472. );
  5473. --wui-color-blue-100: color-mix(
  5474. in srgb,
  5475. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5476. var(--wui-color-blue-base-100)
  5477. );
  5478. --wui-color-blue-90: color-mix(
  5479. in srgb,
  5480. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5481. var(--wui-color-blue-base-90)
  5482. );
  5483. --wui-color-error-125: color-mix(
  5484. in srgb,
  5485. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5486. var(--wui-color-error-base-125)
  5487. );
  5488. --wui-icon-box-bg-error-100: color-mix(
  5489. in srgb,
  5490. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5491. var(--wui-icon-box-bg-error-base-100)
  5492. );
  5493. --wui-icon-box-bg-accent-100: color-mix(
  5494. in srgb,
  5495. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5496. var(--wui-icon-box-bg-blue-base-100)
  5497. );
  5498. --wui-icon-box-bg-success-100: color-mix(
  5499. in srgb,
  5500. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5501. var(--wui-icon-box-bg-success-base-100)
  5502. );
  5503. --wui-icon-box-bg-inverse-100: color-mix(
  5504. in srgb,
  5505. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5506. var(--wui-icon-box-bg-inverse-base-100)
  5507. );
  5508. --wui-all-wallets-bg-100: color-mix(
  5509. in srgb,
  5510. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5511. var(--wui-all-wallets-bg-100)
  5512. );
  5513. --wui-avatar-border: color-mix(
  5514. in srgb,
  5515. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5516. var(--wui-avatar-border-base)
  5517. );
  5518. --wui-thumbnail-border: color-mix(
  5519. in srgb,
  5520. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  5521. var(--wui-thumbnail-border-base)
  5522. );
  5523. }
  5524. }
  5525. `,light:(0,s.AH)`
  5526. :root {
  5527. --w3m-color-mix: ${(0,s.iz)(e?.["--w3m-color-mix"]||"#fff")};
  5528. --w3m-accent: ${(0,s.iz)((0,u.o_)(e,"dark")["--w3m-accent"])};
  5529. --w3m-default: #fff;
  5530. --wui-color-modal-bg-base: ${(0,s.iz)((0,u.o_)(e,"dark")["--w3m-background"])};
  5531. --wui-color-accent-base-100: var(--w3m-accent);
  5532. --wui-color-blueberry-100: hsla(230, 100%, 67%, 1);
  5533. --wui-color-blueberry-090: hsla(231, 76%, 61%, 1);
  5534. --wui-color-blueberry-080: hsla(230, 59%, 55%, 1);
  5535. --wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1);
  5536. --wui-color-fg-100: #e4e7e7;
  5537. --wui-color-fg-125: #d0d5d5;
  5538. --wui-color-fg-150: #a8b1b1;
  5539. --wui-color-fg-175: #a8b0b0;
  5540. --wui-color-fg-200: #949e9e;
  5541. --wui-color-fg-225: #868f8f;
  5542. --wui-color-fg-250: #788080;
  5543. --wui-color-fg-275: #788181;
  5544. --wui-color-fg-300: #6e7777;
  5545. --wui-color-fg-325: #9a9a9a;
  5546. --wui-color-fg-350: #363636;
  5547. --wui-color-bg-100: #141414;
  5548. --wui-color-bg-125: #191a1a;
  5549. --wui-color-bg-150: #1e1f1f;
  5550. --wui-color-bg-175: #222525;
  5551. --wui-color-bg-200: #272a2a;
  5552. --wui-color-bg-225: #2c3030;
  5553. --wui-color-bg-250: #313535;
  5554. --wui-color-bg-275: #363b3b;
  5555. --wui-color-bg-300: #3b4040;
  5556. --wui-color-bg-325: #252525;
  5557. --wui-color-bg-350: #ffffff;
  5558. --wui-color-success-base-100: #26d962;
  5559. --wui-color-success-base-125: #30a46b;
  5560. --wui-color-warning-base-100: #f3a13f;
  5561. --wui-color-error-base-100: #f25a67;
  5562. --wui-color-error-base-125: #df4a34;
  5563. --wui-color-blue-base-100: rgba(102, 125, 255, 1);
  5564. --wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
  5565. --wui-color-success-glass-001: rgba(38, 217, 98, 0.01);
  5566. --wui-color-success-glass-002: rgba(38, 217, 98, 0.02);
  5567. --wui-color-success-glass-005: rgba(38, 217, 98, 0.05);
  5568. --wui-color-success-glass-010: rgba(38, 217, 98, 0.1);
  5569. --wui-color-success-glass-015: rgba(38, 217, 98, 0.15);
  5570. --wui-color-success-glass-020: rgba(38, 217, 98, 0.2);
  5571. --wui-color-success-glass-025: rgba(38, 217, 98, 0.25);
  5572. --wui-color-success-glass-030: rgba(38, 217, 98, 0.3);
  5573. --wui-color-success-glass-060: rgba(38, 217, 98, 0.6);
  5574. --wui-color-success-glass-080: rgba(38, 217, 98, 0.8);
  5575. --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
  5576. --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
  5577. --wui-color-error-glass-001: rgba(242, 90, 103, 0.01);
  5578. --wui-color-error-glass-002: rgba(242, 90, 103, 0.02);
  5579. --wui-color-error-glass-005: rgba(242, 90, 103, 0.05);
  5580. --wui-color-error-glass-010: rgba(242, 90, 103, 0.1);
  5581. --wui-color-error-glass-015: rgba(242, 90, 103, 0.15);
  5582. --wui-color-error-glass-020: rgba(242, 90, 103, 0.2);
  5583. --wui-color-error-glass-025: rgba(242, 90, 103, 0.25);
  5584. --wui-color-error-glass-030: rgba(242, 90, 103, 0.3);
  5585. --wui-color-error-glass-060: rgba(242, 90, 103, 0.6);
  5586. --wui-color-error-glass-080: rgba(242, 90, 103, 0.8);
  5587. --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
  5588. --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01);
  5589. --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02);
  5590. --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05);
  5591. --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1);
  5592. --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15);
  5593. --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2);
  5594. --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25);
  5595. --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3);
  5596. --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6);
  5597. --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8);
  5598. --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9);
  5599. --wui-color-dark-glass-100: rgba(42, 42, 42, 1);
  5600. --wui-icon-box-bg-error-base-100: #3c2426;
  5601. --wui-icon-box-bg-blue-base-100: #20303f;
  5602. --wui-icon-box-bg-success-base-100: #1f3a28;
  5603. --wui-icon-box-bg-inverse-base-100: #243240;
  5604. --wui-all-wallets-bg-100: #222b35;
  5605. --wui-avatar-border-base: #252525;
  5606. --wui-thumbnail-border-base: #252525;
  5607. }
  5608. `,dark:(0,s.AH)`
  5609. :root {
  5610. --w3m-color-mix: ${(0,s.iz)(e?.["--w3m-color-mix"]||"#000")};
  5611. --w3m-accent: ${(0,s.iz)((0,u.o_)(e,"light")["--w3m-accent"])};
  5612. --w3m-default: #000;
  5613. --wui-color-modal-bg-base: ${(0,s.iz)((0,u.o_)(e,"light")["--w3m-background"])};
  5614. --wui-color-accent-base-100: var(--w3m-accent);
  5615. --wui-color-blueberry-100: hsla(231, 100%, 70%, 1);
  5616. --wui-color-blueberry-090: hsla(231, 97%, 72%, 1);
  5617. --wui-color-blueberry-080: hsla(231, 92%, 74%, 1);
  5618. --wui-color-fg-100: #141414;
  5619. --wui-color-fg-125: #2d3131;
  5620. --wui-color-fg-150: #474d4d;
  5621. --wui-color-fg-175: #636d6d;
  5622. --wui-color-fg-200: #798686;
  5623. --wui-color-fg-225: #828f8f;
  5624. --wui-color-fg-250: #8b9797;
  5625. --wui-color-fg-275: #95a0a0;
  5626. --wui-color-fg-300: #9ea9a9;
  5627. --wui-color-fg-325: #9a9a9a;
  5628. --wui-color-fg-350: #d0d0d0;
  5629. --wui-color-bg-100: #ffffff;
  5630. --wui-color-bg-125: #f5fafa;
  5631. --wui-color-bg-150: #f3f8f8;
  5632. --wui-color-bg-175: #eef4f4;
  5633. --wui-color-bg-200: #eaf1f1;
  5634. --wui-color-bg-225: #e5eded;
  5635. --wui-color-bg-250: #e1e9e9;
  5636. --wui-color-bg-275: #dce7e7;
  5637. --wui-color-bg-300: #d8e3e3;
  5638. --wui-color-bg-325: #f3f3f3;
  5639. --wui-color-bg-350: #202020;
  5640. --wui-color-success-base-100: #26b562;
  5641. --wui-color-success-base-125: #30a46b;
  5642. --wui-color-warning-base-100: #f3a13f;
  5643. --wui-color-error-base-100: #f05142;
  5644. --wui-color-error-base-125: #df4a34;
  5645. --wui-color-blue-base-100: rgba(102, 125, 255, 1);
  5646. --wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
  5647. --wui-color-success-glass-001: rgba(38, 181, 98, 0.01);
  5648. --wui-color-success-glass-002: rgba(38, 181, 98, 0.02);
  5649. --wui-color-success-glass-005: rgba(38, 181, 98, 0.05);
  5650. --wui-color-success-glass-010: rgba(38, 181, 98, 0.1);
  5651. --wui-color-success-glass-015: rgba(38, 181, 98, 0.15);
  5652. --wui-color-success-glass-020: rgba(38, 181, 98, 0.2);
  5653. --wui-color-success-glass-025: rgba(38, 181, 98, 0.25);
  5654. --wui-color-success-glass-030: rgba(38, 181, 98, 0.3);
  5655. --wui-color-success-glass-060: rgba(38, 181, 98, 0.6);
  5656. --wui-color-success-glass-080: rgba(38, 181, 98, 0.8);
  5657. --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
  5658. --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
  5659. --wui-color-error-glass-001: rgba(240, 81, 66, 0.01);
  5660. --wui-color-error-glass-002: rgba(240, 81, 66, 0.02);
  5661. --wui-color-error-glass-005: rgba(240, 81, 66, 0.05);
  5662. --wui-color-error-glass-010: rgba(240, 81, 66, 0.1);
  5663. --wui-color-error-glass-015: rgba(240, 81, 66, 0.15);
  5664. --wui-color-error-glass-020: rgba(240, 81, 66, 0.2);
  5665. --wui-color-error-glass-025: rgba(240, 81, 66, 0.25);
  5666. --wui-color-error-glass-030: rgba(240, 81, 66, 0.3);
  5667. --wui-color-error-glass-060: rgba(240, 81, 66, 0.6);
  5668. --wui-color-error-glass-080: rgba(240, 81, 66, 0.8);
  5669. --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
  5670. --wui-icon-box-bg-error-base-100: #f4dfdd;
  5671. --wui-icon-box-bg-blue-base-100: #d9ecfb;
  5672. --wui-icon-box-bg-success-base-100: #daf0e4;
  5673. --wui-icon-box-bg-inverse-base-100: #dcecfc;
  5674. --wui-all-wallets-bg-100: #e8f1fa;
  5675. --wui-avatar-border-base: #f3f4f4;
  5676. --wui-thumbnail-border-base: #eaefef;
  5677. --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01);
  5678. --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02);
  5679. --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05);
  5680. --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1);
  5681. --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15);
  5682. --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2);
  5683. --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25);
  5684. --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3);
  5685. --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6);
  5686. --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8);
  5687. --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9);
  5688. --wui-color-dark-glass-100: rgba(233, 233, 233, 1);
  5689. }
  5690. `}}let g=(0,s.AH)`
  5691. *,
  5692. *::after,
  5693. *::before,
  5694. :host {
  5695. margin: 0;
  5696. padding: 0;
  5697. box-sizing: border-box;
  5698. font-style: normal;
  5699. text-rendering: optimizeSpeed;
  5700. -webkit-font-smoothing: antialiased;
  5701. -moz-osx-font-smoothing: grayscale;
  5702. -webkit-tap-highlight-color: transparent;
  5703. font-family: var(--wui-font-family);
  5704. backface-visibility: hidden;
  5705. }
  5706. `,w=(0,s.AH)`
  5707. button,
  5708. a {
  5709. cursor: pointer;
  5710. display: flex;
  5711. justify-content: center;
  5712. align-items: center;
  5713. position: relative;
  5714. transition:
  5715. color var(--wui-duration-lg) var(--wui-ease-out-power-1),
  5716. background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
  5717. border var(--wui-duration-lg) var(--wui-ease-out-power-1),
  5718. box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1);
  5719. will-change: background-color, color, border, box-shadow;
  5720. outline: none;
  5721. border: none;
  5722. column-gap: var(--wui-spacing-3xs);
  5723. background-color: transparent;
  5724. text-decoration: none;
  5725. }
  5726. button:disabled > wui-wallet-image,
  5727. button:disabled > wui-all-wallets-image,
  5728. button:disabled > wui-network-image,
  5729. button:disabled > wui-image,
  5730. button:disabled > wui-transaction-visual,
  5731. button:disabled > wui-logo {
  5732. filter: grayscale(1);
  5733. }
  5734. @media (hover: hover) and (pointer: fine) {
  5735. button:hover:enabled {
  5736. background-color: var(--wui-color-gray-glass-005);
  5737. }
  5738. button:active:enabled {
  5739. background-color: var(--wui-color-gray-glass-010);
  5740. }
  5741. }
  5742. button:disabled > wui-icon-box {
  5743. opacity: 0.5;
  5744. }
  5745. input {
  5746. border: none;
  5747. outline: none;
  5748. appearance: none;
  5749. }
  5750. `,m=(0,s.AH)`
  5751. .wui-color-inherit {
  5752. color: var(--wui-color-inherit);
  5753. }
  5754. .wui-color-accent-100 {
  5755. color: var(--wui-color-accent-100);
  5756. }
  5757. .wui-color-error-100 {
  5758. color: var(--wui-color-error-100);
  5759. }
  5760. .wui-color-blue-100 {
  5761. color: var(--wui-color-blue-100);
  5762. }
  5763. .wui-color-blue-90 {
  5764. color: var(--wui-color-blue-90);
  5765. }
  5766. .wui-color-error-125 {
  5767. color: var(--wui-color-error-125);
  5768. }
  5769. .wui-color-success-100 {
  5770. color: var(--wui-color-success-100);
  5771. }
  5772. .wui-color-success-125 {
  5773. color: var(--wui-color-success-125);
  5774. }
  5775. .wui-color-inverse-100 {
  5776. color: var(--wui-color-inverse-100);
  5777. }
  5778. .wui-color-inverse-000 {
  5779. color: var(--wui-color-inverse-000);
  5780. }
  5781. .wui-color-fg-100 {
  5782. color: var(--wui-color-fg-100);
  5783. }
  5784. .wui-color-fg-200 {
  5785. color: var(--wui-color-fg-200);
  5786. }
  5787. .wui-color-fg-300 {
  5788. color: var(--wui-color-fg-300);
  5789. }
  5790. .wui-color-fg-325 {
  5791. color: var(--wui-color-fg-325);
  5792. }
  5793. .wui-color-fg-350 {
  5794. color: var(--wui-color-fg-350);
  5795. }
  5796. .wui-bg-color-inherit {
  5797. background-color: var(--wui-color-inherit);
  5798. }
  5799. .wui-bg-color-blue-100 {
  5800. background-color: var(--wui-color-accent-100);
  5801. }
  5802. .wui-bg-color-error-100 {
  5803. background-color: var(--wui-color-error-100);
  5804. }
  5805. .wui-bg-color-error-125 {
  5806. background-color: var(--wui-color-error-125);
  5807. }
  5808. .wui-bg-color-success-100 {
  5809. background-color: var(--wui-color-success-100);
  5810. }
  5811. .wui-bg-color-success-125 {
  5812. background-color: var(--wui-color-success-100);
  5813. }
  5814. .wui-bg-color-inverse-100 {
  5815. background-color: var(--wui-color-inverse-100);
  5816. }
  5817. .wui-bg-color-inverse-000 {
  5818. background-color: var(--wui-color-inverse-000);
  5819. }
  5820. .wui-bg-color-fg-100 {
  5821. background-color: var(--wui-color-fg-100);
  5822. }
  5823. .wui-bg-color-fg-200 {
  5824. background-color: var(--wui-color-fg-200);
  5825. }
  5826. .wui-bg-color-fg-300 {
  5827. background-color: var(--wui-color-fg-300);
  5828. }
  5829. .wui-color-fg-325 {
  5830. background-color: var(--wui-color-fg-325);
  5831. }
  5832. .wui-color-fg-350 {
  5833. background-color: var(--wui-color-fg-350);
  5834. }
  5835. `;function b(e){return function(t){return"function"==typeof t?(customElements.get(e)||customElements.define(e,t),t):function(e,t){let{kind:i,elements:r}=t;return{kind:i,elements:r,finisher(t){customElements.get(e)||customElements.define(e,t)}}}(e,t)}}let v=(0,s.AH)`
  5836. :host {
  5837. display: block;
  5838. border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
  5839. box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
  5840. background-color: var(--wui-color-modal-bg);
  5841. overflow: hidden;
  5842. }
  5843. `,y=class extends s.WF{render(){return(0,s.qy)`<slot></slot>`}};y.styles=[g,v],y=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([b("wui-card")],y);var x=i(5419);let C=(0,s.AH)`
  5844. :host {
  5845. display: flex;
  5846. aspect-ratio: 1 / 1;
  5847. color: var(--local-color);
  5848. width: var(--local-width);
  5849. }
  5850. svg {
  5851. width: inherit;
  5852. height: inherit;
  5853. object-fit: contain;
  5854. object-position: center;
  5855. }
  5856. `,A=(0,s.JW)`<svg
  5857. width="14"
  5858. height="14"
  5859. viewBox="0 0 14 14"
  5860. fill="none"
  5861. xmlns="http://www.w3.org/2000/svg"
  5862. >
  5863. <path
  5864. fill="currentColor"
  5865. fill-rule="evenodd"
  5866. clip-rule="evenodd"
  5867. d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z"
  5868. fill="#667dff"
  5869. /></svg
  5870. >`,E=(0,s.JW)`<svg fill="none" viewBox="0 0 24 24">
  5871. <path
  5872. style="fill: var(--wui-color-accent-100);"
  5873. d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
  5874. />
  5875. </svg>`,_=(0,s.JW)`<svg
  5876. fill="none"
  5877. viewBox="0 0 21 20"
  5878. >
  5879. <path
  5880. fill="currentColor"
  5881. fill-rule="evenodd"
  5882. d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z"
  5883. clip-rule="evenodd"
  5884. /></svg
  5885. >`,k=(0,s.JW)`
  5886. <svg width="36" height="36">
  5887. <path
  5888. d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
  5889. fill="url(#a)"
  5890. />
  5891. <path
  5892. d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z"
  5893. fill="#fff"
  5894. />
  5895. <defs>
  5896. <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse">
  5897. <stop stop-color="#18BFFB" />
  5898. <stop offset="1" stop-color="#2072F3" />
  5899. </linearGradient>
  5900. </defs>
  5901. </svg>`,I=(0,s.JW)`<svg fill="none" viewBox="0 0 40 40">
  5902. <g clip-path="url(#a)">
  5903. <g clip-path="url(#b)">
  5904. <circle cx="20" cy="19.89" r="20" fill="#000" />
  5905. <g clip-path="url(#c)">
  5906. <path
  5907. fill="#fff"
  5908. d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z"
  5909. />
  5910. </g>
  5911. </g>
  5912. </g>
  5913. <defs>
  5914. <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
  5915. <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  5916. <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  5917. </defs>
  5918. </svg>`,S=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  5919. <path
  5920. fill="currentColor"
  5921. fill-rule="evenodd"
  5922. d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z"
  5923. clip-rule="evenodd"
  5924. />
  5925. </svg>`,T=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  5926. <path
  5927. fill="currentColor"
  5928. fill-rule="evenodd"
  5929. d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z"
  5930. clip-rule="evenodd"
  5931. />
  5932. </svg>`,N=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  5933. <path
  5934. fill="currentColor"
  5935. fill-rule="evenodd"
  5936. d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z"
  5937. clip-rule="evenodd"
  5938. />
  5939. </svg>`,P=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  5940. <path
  5941. fill="currentColor"
  5942. fill-rule="evenodd"
  5943. d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z"
  5944. clip-rule="evenodd"
  5945. />
  5946. </svg>`,R=(0,s.JW)`<svg
  5947. xmlns="http://www.w3.org/2000/svg"
  5948. width="12"
  5949. height="13"
  5950. viewBox="0 0 12 13"
  5951. fill="none"
  5952. >
  5953. <path
  5954. fill-rule="evenodd"
  5955. clip-rule="evenodd"
  5956. d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z"
  5957. fill="currentColor"
  5958. /></svg
  5959. >`,O=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  5960. <path
  5961. fill="currentColor"
  5962. fill-rule="evenodd"
  5963. d="M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z"
  5964. clip-rule="evenodd"
  5965. />
  5966. <path
  5967. fill="currentColor"
  5968. fill-rule="evenodd"
  5969. d="M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z"
  5970. clip-rule="evenodd"
  5971. />
  5972. </svg>`,M=(0,s.JW)`<svg
  5973. xmlns="http://www.w3.org/2000/svg"
  5974. width="12"
  5975. height="13"
  5976. viewBox="0 0 12 13"
  5977. fill="none"
  5978. >
  5979. <path
  5980. fill-rule="evenodd"
  5981. clip-rule="evenodd"
  5982. d="M4.16072 2C4.17367 2 4.18665 2 4.19968 2L7.83857 2C8.36772 1.99998 8.82398 1.99996 9.19518 2.04018C9.5895 2.0829 9.97577 2.17811 10.3221 2.42971C10.5131 2.56849 10.6811 2.73647 10.8198 2.92749C11.0714 3.27379 11.1666 3.66007 11.2094 4.0544C11.2496 4.42561 11.2496 4.88188 11.2495 5.41105V7.58896C11.2496 8.11812 11.2496 8.57439 11.2094 8.94561C11.1666 9.33994 11.0714 9.72621 10.8198 10.0725C10.6811 10.2635 10.5131 10.4315 10.3221 10.5703C9.97577 10.8219 9.5895 10.9171 9.19518 10.9598C8.82398 11 8.36772 11 7.83856 11H4.16073C3.63157 11 3.17531 11 2.80411 10.9598C2.40979 10.9171 2.02352 10.8219 1.67722 10.5703C1.48621 10.4315 1.31824 10.2635 1.17946 10.0725C0.927858 9.72621 0.832652 9.33994 0.78993 8.94561C0.749713 8.5744 0.749733 8.11813 0.749757 7.58896L0.749758 5.45C0.749758 5.43697 0.749758 5.42399 0.749757 5.41104C0.749733 4.88188 0.749713 4.42561 0.78993 4.0544C0.832652 3.66007 0.927858 3.27379 1.17946 2.92749C1.31824 2.73647 1.48621 2.56849 1.67722 2.42971C2.02352 2.17811 2.40979 2.0829 2.80411 2.04018C3.17531 1.99996 3.63157 1.99998 4.16072 2ZM2.96567 3.53145C2.69897 3.56034 2.60687 3.60837 2.55888 3.64324C2.49521 3.6895 2.43922 3.74549 2.39296 3.80916C2.35809 3.85715 2.31007 3.94926 2.28117 4.21597C2.26629 4.35335 2.25844 4.51311 2.25431 4.70832H9.74498C9.74085 4.51311 9.733 4.35335 9.71812 4.21597C9.68922 3.94926 9.6412 3.85715 9.60633 3.80916C9.56007 3.74549 9.50408 3.6895 9.44041 3.64324C9.39242 3.60837 9.30031 3.56034 9.03362 3.53145C8.75288 3.50103 8.37876 3.5 7.79961 3.5H4.19968C3.62053 3.5 3.24641 3.50103 2.96567 3.53145ZM9.74956 6.20832H2.24973V7.55C2.24973 8.12917 2.25076 8.5033 2.28117 8.78404C2.31007 9.05074 2.35809 9.14285 2.39296 9.19084C2.43922 9.25451 2.49521 9.31051 2.55888 9.35677C2.60687 9.39163 2.69897 9.43966 2.96567 9.46856C3.24641 9.49897 3.62053 9.5 4.19968 9.5H7.79961C8.37876 9.5 8.75288 9.49897 9.03362 9.46856C9.30032 9.43966 9.39242 9.39163 9.44041 9.35677C9.50408 9.31051 9.56007 9.25451 9.60633 9.19084C9.6412 9.14285 9.68922 9.05075 9.71812 8.78404C9.74854 8.5033 9.74956 8.12917 9.74956 7.55V6.20832ZM6.74963 8C6.74963 7.58579 7.08541 7.25 7.49961 7.25H8.2496C8.6638 7.25 8.99958 7.58579 8.99958 8C8.99958 8.41422 8.6638 8.75 8.2496 8.75H7.49961C7.08541 8.75 6.74963 8.41422 6.74963 8Z"
  5983. fill="currentColor"
  5984. /></svg
  5985. >`,D=(0,s.JW)`<svg fill="none" viewBox="0 0 14 14">
  5986. <path
  5987. fill="currentColor"
  5988. fill-rule="evenodd"
  5989. d="M12.9576 2.23383C13.3807 2.58873 13.4361 3.21947 13.0812 3.64263L6.37159 11.6426C6.19161 11.8572 5.92989 11.9865 5.65009 11.999C5.3703 12.0115 5.09808 11.9062 4.89965 11.7085L0.979321 7.80331C0.588042 7.41354 0.586817 6.78038 0.976585 6.3891C1.36635 5.99782 1.99952 5.99659 2.3908 6.38636L5.53928 9.52268L11.5488 2.35742C11.9037 1.93426 12.5344 1.87893 12.9576 2.23383Z"
  5990. clip-rule="evenodd"
  5991. />
  5992. </svg>`,U=(0,s.JW)`<svg
  5993. width="28"
  5994. height="28"
  5995. viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
  5996. <path
  5997. fill-rule="evenodd"
  5998. clip-rule="evenodd"
  5999. d="M25.5297 4.92733C26.1221 5.4242 26.1996 6.30724 25.7027 6.89966L12.2836 22.8997C12.0316 23.2001 11.6652 23.3811 11.2735 23.3986C10.8817 23.4161 10.5006 23.2686 10.2228 22.9919L2.38218 15.1815C1.83439 14.6358 1.83268 13.7494 2.37835 13.2016C2.92403 12.6538 3.81046 12.6521 4.35825 13.1978L11.1183 19.9317L23.5573 5.10036C24.0542 4.50794 24.9372 4.43047 25.5297 4.92733Z"
  6000. fill="currentColor"/>
  6001. </svg>
  6002. `,$=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6003. <path
  6004. fill="currentColor"
  6005. fill-rule="evenodd"
  6006. d="M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z"
  6007. clip-rule="evenodd"
  6008. />
  6009. </svg>`,L=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6010. <path
  6011. fill="currentColor"
  6012. fill-rule="evenodd"
  6013. d="M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z"
  6014. clip-rule="evenodd"
  6015. />
  6016. </svg>`,j=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6017. <path
  6018. fill="currentColor"
  6019. fill-rule="evenodd"
  6020. d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z"
  6021. clip-rule="evenodd"
  6022. />
  6023. </svg>`,B=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6024. <path
  6025. fill="currentColor"
  6026. fill-rule="evenodd"
  6027. d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z"
  6028. clip-rule="evenodd"
  6029. />
  6030. </svg>`,W=(0,s.JW)`<svg width="36" height="36" fill="none">
  6031. <path
  6032. fill="#fff"
  6033. fill-opacity=".05"
  6034. d="M0 14.94c0-5.55 0-8.326 1.182-10.4a9 9 0 0 1 3.359-3.358C6.614 0 9.389 0 14.94 0h6.12c5.55 0 8.326 0 10.4 1.182a9 9 0 0 1 3.358 3.359C36 6.614 36 9.389 36 14.94v6.12c0 5.55 0 8.326-1.182 10.4a9 9 0 0 1-3.359 3.358C29.386 36 26.611 36 21.06 36h-6.12c-5.55 0-8.326 0-10.4-1.182a9 9 0 0 1-3.358-3.359C0 29.386 0 26.611 0 21.06v-6.12Z"
  6035. />
  6036. <path
  6037. stroke="#fff"
  6038. stroke-opacity=".05"
  6039. d="M14.94.5h6.12c2.785 0 4.84 0 6.46.146 1.612.144 2.743.43 3.691.97a8.5 8.5 0 0 1 3.172 3.173c.541.948.826 2.08.971 3.692.145 1.62.146 3.675.146 6.459v6.12c0 2.785 0 4.84-.146 6.46-.145 1.612-.43 2.743-.97 3.691a8.5 8.5 0 0 1-3.173 3.172c-.948.541-2.08.826-3.692.971-1.62.145-3.674.146-6.459.146h-6.12c-2.784 0-4.84 0-6.46-.146-1.612-.145-2.743-.43-3.691-.97a8.5 8.5 0 0 1-3.172-3.173c-.541-.948-.827-2.08-.971-3.692C.5 25.9.5 23.845.5 21.06v-6.12c0-2.784 0-4.84.146-6.46.144-1.612.43-2.743.97-3.691A8.5 8.5 0 0 1 4.79 1.617C5.737 1.076 6.869.79 8.48.646 10.1.5 12.156.5 14.94.5Z"
  6040. />
  6041. <path
  6042. fill="url(#a)"
  6043. d="M17.998 10.8h12.469a14.397 14.397 0 0 0-24.938.001l6.234 10.798.006-.001a7.19 7.19 0 0 1 6.23-10.799Z"
  6044. />
  6045. <path
  6046. fill="url(#b)"
  6047. d="m24.237 21.598-6.234 10.798A14.397 14.397 0 0 0 30.47 10.798H18.002l-.002.006a7.191 7.191 0 0 1 6.237 10.794Z"
  6048. />
  6049. <path
  6050. fill="url(#c)"
  6051. d="M11.765 21.601 5.531 10.803A14.396 14.396 0 0 0 18.001 32.4l6.235-10.798-.004-.004a7.19 7.19 0 0 1-12.466.004Z"
  6052. />
  6053. <path fill="#fff" d="M18 25.2a7.2 7.2 0 1 0 0-14.4 7.2 7.2 0 0 0 0 14.4Z" />
  6054. <path fill="#1A73E8" d="M18 23.7a5.7 5.7 0 1 0 0-11.4 5.7 5.7 0 0 0 0 11.4Z" />
  6055. <defs>
  6056. <linearGradient
  6057. id="a"
  6058. x1="6.294"
  6059. x2="41.1"
  6060. y1="5.995"
  6061. y2="5.995"
  6062. gradientUnits="userSpaceOnUse"
  6063. >
  6064. <stop stop-color="#D93025" />
  6065. <stop offset="1" stop-color="#EA4335" />
  6066. </linearGradient>
  6067. <linearGradient
  6068. id="b"
  6069. x1="20.953"
  6070. x2="37.194"
  6071. y1="32.143"
  6072. y2="2.701"
  6073. gradientUnits="userSpaceOnUse"
  6074. >
  6075. <stop stop-color="#FCC934" />
  6076. <stop offset="1" stop-color="#FBBC04" />
  6077. </linearGradient>
  6078. <linearGradient
  6079. id="c"
  6080. x1="25.873"
  6081. x2="9.632"
  6082. y1="31.2"
  6083. y2="1.759"
  6084. gradientUnits="userSpaceOnUse"
  6085. >
  6086. <stop stop-color="#1E8E3E" />
  6087. <stop offset="1" stop-color="#34A853" />
  6088. </linearGradient>
  6089. </defs>
  6090. </svg>`,q=(0,s.JW)`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
  6091. <path
  6092. fill-rule="evenodd"
  6093. clip-rule="evenodd"
  6094. d="M7.00235 2C4.24 2 2.00067 4.23858 2.00067 7C2.00067 9.76142 4.24 12 7.00235 12C9.7647 12 12.004 9.76142 12.004 7C12.004 4.23858 9.7647 2 7.00235 2ZM0 7C0 3.13401 3.13506 0 7.00235 0C10.8696 0 14.0047 3.13401 14.0047 7C14.0047 10.866 10.8696 14 7.00235 14C3.13506 14 0 10.866 0 7ZM7.00235 3C7.55482 3 8.00269 3.44771 8.00269 4V6.58579L9.85327 8.43575C10.2439 8.82627 10.2439 9.45944 9.85327 9.84996C9.46262 10.2405 8.82924 10.2405 8.43858 9.84996L6.29501 7.70711C6.10741 7.51957 6.00201 7.26522 6.00201 7V4C6.00201 3.44771 6.44988 3 7.00235 3Z"
  6095. fill="currentColor"
  6096. />
  6097. </svg>`,H=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6098. <path
  6099. fill="currentColor"
  6100. fill-rule="evenodd"
  6101. d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z"
  6102. clip-rule="evenodd"
  6103. />
  6104. </svg>`,z=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6105. <path
  6106. fill="currentColor"
  6107. fill-rule="evenodd"
  6108. d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z"
  6109. clip-rule="evenodd"
  6110. />
  6111. </svg>`,F=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6112. <path
  6113. fill="currentColor"
  6114. fill-rule="evenodd"
  6115. d="M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z"
  6116. clip-rule="evenodd"
  6117. />
  6118. </svg>`,Z=(0,s.JW)`<svg
  6119. xmlns="http://www.w3.org/2000/svg"
  6120. width="16"
  6121. height="16"
  6122. viewBox="0 0 16 16"
  6123. fill="none"
  6124. >
  6125. <path
  6126. fill="currentColor"
  6127. fill-rule="evenodd"
  6128. clip-rule="evenodd"
  6129. d="M9.21498 1.28565H10.5944C11.1458 1.28562 11.6246 1.2856 12.0182 1.32093C12.4353 1.35836 12.853 1.44155 13.2486 1.66724C13.7005 1.92498 14.0749 2.29935 14.3326 2.75122C14.5583 3.14689 14.6415 3.56456 14.6789 3.9817C14.7143 4.37531 14.7142 4.85403 14.7142 5.40545V6.78489C14.7142 7.33631 14.7143 7.81503 14.6789 8.20865C14.6415 8.62578 14.5583 9.04345 14.3326 9.43912C14.0749 9.89099 13.7005 10.2654 13.2486 10.5231C12.853 10.7488 12.4353 10.832 12.0182 10.8694C11.7003 10.8979 11.3269 10.9034 10.9045 10.9045C10.9034 11.3269 10.8979 11.7003 10.8694 12.0182C10.832 12.4353 10.7488 12.853 10.5231 13.2486C10.2654 13.7005 9.89099 14.0749 9.43912 14.3326C9.04345 14.5583 8.62578 14.6415 8.20865 14.6789C7.81503 14.7143 7.33631 14.7142 6.78489 14.7142H5.40545C4.85403 14.7142 4.37531 14.7143 3.9817 14.6789C3.56456 14.6415 3.14689 14.5583 2.75122 14.3326C2.29935 14.0749 1.92498 13.7005 1.66724 13.2486C1.44155 12.853 1.35836 12.4353 1.32093 12.0182C1.2856 11.6246 1.28562 11.1458 1.28565 10.5944V9.21498C1.28562 8.66356 1.2856 8.18484 1.32093 7.79122C1.35836 7.37409 1.44155 6.95642 1.66724 6.56074C1.92498 6.10887 2.29935 5.73451 2.75122 5.47677C3.14689 5.25108 3.56456 5.16789 3.9817 5.13045C4.2996 5.10192 4.67301 5.09645 5.09541 5.09541C5.09645 4.67302 5.10192 4.2996 5.13045 3.9817C5.16789 3.56456 5.25108 3.14689 5.47676 2.75122C5.73451 2.29935 6.10887 1.92498 6.56074 1.66724C6.95642 1.44155 7.37409 1.35836 7.79122 1.32093C8.18484 1.2856 8.66356 1.28562 9.21498 1.28565ZM5.09541 7.09552C4.68397 7.09667 4.39263 7.10161 4.16046 7.12245C3.88053 7.14757 3.78516 7.18949 3.74214 7.21403C3.60139 7.29431 3.48478 7.41091 3.4045 7.55166C3.37997 7.59468 3.33804 7.69005 3.31292 7.96999C3.28659 8.26345 3.28565 8.65147 3.28565 9.25708V10.5523C3.28565 11.1579 3.28659 11.5459 3.31292 11.8394C3.33804 12.1193 3.37997 12.2147 3.4045 12.2577C3.48478 12.3985 3.60139 12.5151 3.74214 12.5954C3.78516 12.6199 3.88053 12.6618 4.16046 12.6869C4.45393 12.7133 4.84195 12.7142 5.44755 12.7142H6.74279C7.3484 12.7142 7.73641 12.7133 8.02988 12.6869C8.30981 12.6618 8.40518 12.6199 8.44821 12.5954C8.58895 12.5151 8.70556 12.3985 8.78584 12.2577C8.81038 12.2147 8.8523 12.1193 8.87742 11.8394C8.89825 11.6072 8.90319 11.3159 8.90435 10.9045C8.48219 10.9034 8.10898 10.8979 7.79122 10.8694C7.37409 10.832 6.95641 10.7488 6.56074 10.5231C6.10887 10.2654 5.73451 9.89099 5.47676 9.43912C5.25108 9.04345 5.16789 8.62578 5.13045 8.20865C5.10194 7.89089 5.09645 7.51767 5.09541 7.09552ZM7.96999 3.31292C7.69005 3.33804 7.59468 3.37997 7.55166 3.4045C7.41091 3.48478 7.29431 3.60139 7.21403 3.74214C7.18949 3.78516 7.14757 3.88053 7.12245 4.16046C7.09611 4.45393 7.09517 4.84195 7.09517 5.44755V6.74279C7.09517 7.3484 7.09611 7.73641 7.12245 8.02988C7.14757 8.30981 7.18949 8.40518 7.21403 8.4482C7.29431 8.58895 7.41091 8.70556 7.55166 8.78584C7.59468 8.81038 7.69005 8.8523 7.96999 8.87742C8.26345 8.90376 8.65147 8.9047 9.25708 8.9047H10.5523C11.1579 8.9047 11.5459 8.90376 11.8394 8.87742C12.1193 8.8523 12.2147 8.81038 12.2577 8.78584C12.3985 8.70556 12.5151 8.58895 12.5954 8.4482C12.6199 8.40518 12.6618 8.30981 12.6869 8.02988C12.7133 7.73641 12.7142 7.3484 12.7142 6.74279V5.44755C12.7142 4.84195 12.7133 4.45393 12.6869 4.16046C12.6618 3.88053 12.6199 3.78516 12.5954 3.74214C12.5151 3.60139 12.3985 3.48478 12.2577 3.4045C12.2147 3.37997 12.1193 3.33804 11.8394 3.31292C11.5459 3.28659 11.1579 3.28565 10.5523 3.28565H9.25708C8.65147 3.28565 8.26345 3.28659 7.96999 3.31292Z"
  6130. fill="#788181"
  6131. /></svg
  6132. >`,V=(0,s.JW)` <svg fill="none" viewBox="0 0 13 4">
  6133. <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" />
  6134. </svg>`,K=(0,s.JW)`<svg fill="none" viewBox="0 0 14 6">
  6135. <path style="fill: var(--wui-color-bg-150);" d="M0 1h14L9.21 5.12a3.31 3.31 0 0 1-4.49 0L0 1Z" />
  6136. <path
  6137. style="stroke: var(--wui-color-inverse-100);"
  6138. stroke-opacity=".05"
  6139. d="M1.33 1.5h11.32L8.88 4.75l-.01.01a2.81 2.81 0 0 1-3.8 0l-.02-.01L1.33 1.5Z"
  6140. />
  6141. <path
  6142. style="fill: var(--wui-color-bg-150);"
  6143. d="M1.25.71h11.5L9.21 3.88a3.31 3.31 0 0 1-4.49 0L1.25.71Z"
  6144. />
  6145. </svg> `,G=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6146. <path
  6147. fill="currentColor"
  6148. fill-rule="evenodd"
  6149. d="M13.66 2H6.34c-1.07 0-1.96 0-2.68.08-.74.08-1.42.25-2.01.68a4 4 0 0 0-.89.89c-.43.6-.6 1.27-.68 2.01C0 6.38 0 7.26 0 8.34v.89c0 1.07 0 1.96.08 2.68.08.74.25 1.42.68 2.01a4 4 0 0 0 .89.89c.6.43 1.27.6 2.01.68a27 27 0 0 0 2.68.08h7.32a27 27 0 0 0 2.68-.08 4.03 4.03 0 0 0 2.01-.68 4 4 0 0 0 .89-.89c.43-.6.6-1.27.68-2.01.08-.72.08-1.6.08-2.68v-.89c0-1.07 0-1.96-.08-2.68a4.04 4.04 0 0 0-.68-2.01 4 4 0 0 0-.89-.89c-.6-.43-1.27-.6-2.01-.68C15.62 2 14.74 2 13.66 2ZM2.82 4.38c.2-.14.48-.25 1.06-.31C4.48 4 5.25 4 6.4 4h7.2c1.15 0 1.93 0 2.52.07.58.06.86.17 1.06.31a2 2 0 0 1 .44.44c.14.2.25.48.31 1.06.07.6.07 1.37.07 2.52v.77c0 1.15 0 1.93-.07 2.52-.06.58-.17.86-.31 1.06a2 2 0 0 1-.44.44c-.2.14-.48.25-1.06.32-.6.06-1.37.06-2.52.06H6.4c-1.15 0-1.93 0-2.52-.06-.58-.07-.86-.18-1.06-.32a2 2 0 0 1-.44-.44c-.14-.2-.25-.48-.31-1.06C2 11.1 2 10.32 2 9.17V8.4c0-1.15 0-1.93.07-2.52.06-.58.17-.86.31-1.06a2 2 0 0 1 .44-.44Z"
  6150. clip-rule="evenodd"
  6151. />
  6152. <path fill="currentColor" d="M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z" />
  6153. </svg>`,J=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6154. <path
  6155. fill="currentColor"
  6156. fill-rule="evenodd"
  6157. d="M6.07 1h.57a1 1 0 0 1 0 2h-.52c-.98 0-1.64 0-2.14.06-.48.05-.7.14-.84.24-.13.1-.25.22-.34.35-.1.14-.2.35-.25.83-.05.5-.05 1.16-.05 2.15v2.74c0 .99 0 1.65.05 2.15.05.48.14.7.25.83.1.14.2.25.34.35.14.1.36.2.84.25.5.05 1.16.05 2.14.05h.52a1 1 0 0 1 0 2h-.57c-.92 0-1.69 0-2.3-.07a3.6 3.6 0 0 1-1.8-.61c-.3-.22-.57-.49-.8-.8a3.6 3.6 0 0 1-.6-1.79C.5 11.11.5 10.35.5 9.43V6.58c0-.92 0-1.7.06-2.31a3.6 3.6 0 0 1 .62-1.8c.22-.3.48-.57.79-.79a3.6 3.6 0 0 1 1.8-.61C4.37 1 5.14 1 6.06 1ZM9.5 3a1 1 0 0 1 1.42 0l4.28 4.3a1 1 0 0 1 0 1.4L10.93 13a1 1 0 0 1-1.42-1.42L12.1 9H6.8a1 1 0 1 1 0-2h5.3L9.51 4.42a1 1 0 0 1 0-1.41Z"
  6158. clip-rule="evenodd"
  6159. />
  6160. </svg>`,Y=(0,s.JW)`<svg fill="none" viewBox="0 0 40 40">
  6161. <g clip-path="url(#a)">
  6162. <g clip-path="url(#b)">
  6163. <circle cx="20" cy="19.89" r="20" fill="#5865F2" />
  6164. <path
  6165. fill="#fff"
  6166. fill-rule="evenodd"
  6167. d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z"
  6168. clip-rule="evenodd"
  6169. />
  6170. </g>
  6171. </g>
  6172. <defs>
  6173. <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
  6174. <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  6175. </defs>
  6176. </svg>`,Q=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6177. <path
  6178. fill="currentColor"
  6179. d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
  6180. />
  6181. </svg>`,X=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  6182. <path
  6183. fill="currentColor"
  6184. fill-rule="evenodd"
  6185. d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z"
  6186. clip-rule="evenodd"
  6187. />
  6188. </svg>`,ee=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  6189. <path
  6190. fill="currentColor"
  6191. fill-rule="evenodd"
  6192. d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z"
  6193. clip-rule="evenodd"
  6194. />
  6195. </svg>`,et=(0,s.JW)`<svg fill="none" viewBox="0 0 40 40">
  6196. <g clip-path="url(#a)">
  6197. <g clip-path="url(#b)">
  6198. <circle cx="20" cy="19.89" r="20" fill="#1877F2" />
  6199. <g clip-path="url(#c)">
  6200. <path
  6201. fill="#fff"
  6202. d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H21.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z"
  6203. />
  6204. </g>
  6205. </g>
  6206. <path
  6207. fill="#1877F2"
  6208. d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z"
  6209. />
  6210. <path
  6211. fill="#fff"
  6212. d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z"
  6213. />
  6214. </g>
  6215. <defs>
  6216. <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
  6217. <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  6218. <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  6219. </defs>
  6220. </svg>`,ei=(0,s.JW)`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
  6221. <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
  6222. <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
  6223. <path
  6224. fill="#fff"
  6225. d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z"
  6226. />
  6227. <path
  6228. fill="#fff"
  6229. d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z"
  6230. />
  6231. </svg>`,er=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6232. <path
  6233. fill="currentColor"
  6234. fill-rule="evenodd"
  6235. d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z"
  6236. clip-rule="evenodd"
  6237. />
  6238. </svg>`,en=(0,s.JW)`<svg fill="none" viewBox="0 0 40 40">
  6239. <g clip-path="url(#a)">
  6240. <g clip-path="url(#b)">
  6241. <circle cx="20" cy="19.89" r="20" fill="#1B1F23" />
  6242. <g clip-path="url(#c)">
  6243. <path
  6244. fill="#fff"
  6245. d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z"
  6246. />
  6247. </g>
  6248. </g>
  6249. </g>
  6250. <defs>
  6251. <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
  6252. <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  6253. <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  6254. </defs>
  6255. </svg>`,ea=(0,s.JW)`<svg fill="none" viewBox="0 0 40 40">
  6256. <path
  6257. fill="#4285F4"
  6258. d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z"
  6259. />
  6260. <path
  6261. fill="#34A853"
  6262. d="M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z"
  6263. />
  6264. <path
  6265. fill="#FBBC05"
  6266. d="M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z"
  6267. />
  6268. <path
  6269. fill="#EA4335"
  6270. d="M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z"
  6271. />
  6272. </svg>`,eo=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6273. <path
  6274. fill="currentColor"
  6275. d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z"
  6276. />
  6277. <path
  6278. fill="currentColor"
  6279. fill-rule="evenodd"
  6280. d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"
  6281. clip-rule="evenodd"
  6282. />
  6283. </svg>`,es=(0,s.JW)`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
  6284. <path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
  6285. <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
  6286. </svg>`,ec=(0,s.JW)`<svg fill="none" viewBox="0 0 14 15">
  6287. <path
  6288. fill="currentColor"
  6289. d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
  6290. />
  6291. <path
  6292. fill="currentColor"
  6293. fill-rule="evenodd"
  6294. d="M7 14.99a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-7a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"
  6295. clip-rule="evenodd"
  6296. />
  6297. </svg>`,el=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6298. <path
  6299. fill="currentColor"
  6300. fill-rule="evenodd"
  6301. d="M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z"
  6302. clip-rule="evenodd"
  6303. />
  6304. </svg>`,eu=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6305. <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" />
  6306. <path
  6307. fill="currentColor"
  6308. fill-rule="evenodd"
  6309. d="M3 4.75A4.75 4.75 0 0 1 7.75 0h4.5A4.75 4.75 0 0 1 17 4.75v10.5A4.75 4.75 0 0 1 12.25 20h-4.5A4.75 4.75 0 0 1 3 15.25V4.75ZM7.75 2A2.75 2.75 0 0 0 5 4.75v10.5A2.75 2.75 0 0 0 7.75 18h4.5A2.75 2.75 0 0 0 15 15.25V4.75A2.75 2.75 0 0 0 12.25 2h-4.5Z"
  6310. clip-rule="evenodd"
  6311. />
  6312. </svg>`,ed=(0,s.JW)`<svg fill="none" viewBox="0 0 41 40">
  6313. <path
  6314. style="fill: var(--wui-color-fg-100);"
  6315. fill-opacity=".05"
  6316. d="M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z"
  6317. />
  6318. <path
  6319. fill="#949E9E"
  6320. d="M15.6 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM23.1 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM28.1 22.81a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"
  6321. />
  6322. </svg>`,eh=(0,s.JW)`<svg fill="none" viewBox="0 0 22 20">
  6323. <path
  6324. fill="currentColor"
  6325. fill-rule="evenodd"
  6326. d="M16.32 13.62a3.14 3.14 0 1 1-.99 1.72l-1.6-.93a3.83 3.83 0 0 1-3.71 1 3.66 3.66 0 0 1-1.74-1l-1.6.94a3.14 3.14 0 1 1-1-1.73l1.6-.94a3.7 3.7 0 0 1 0-2 3.81 3.81 0 0 1 1.8-2.33c.29-.17.6-.3.92-.38V6.1a3.14 3.14 0 1 1 2 0l-.01.02v1.85H12a3.82 3.82 0 0 1 2.33 1.8 3.7 3.7 0 0 1 .39 2.91l1.6.93ZM2.6 16.54a1.14 1.14 0 0 0 1.98-1.14 1.14 1.14 0 0 0-1.98 1.14ZM11 2.01a1.14 1.14 0 1 0 0 2.28 1.14 1.14 0 0 0 0-2.28Zm1.68 10.45c.08-.19.14-.38.16-.58v-.05l.02-.13v-.13a1.92 1.92 0 0 0-.24-.8l-.11-.15a1.89 1.89 0 0 0-.74-.6 1.86 1.86 0 0 0-.77-.17h-.19a1.97 1.97 0 0 0-.89.34 1.98 1.98 0 0 0-.61.74 1.99 1.99 0 0 0-.16.9v.05a1.87 1.87 0 0 0 .24.74l.1.15c.12.16.26.3.42.42l.16.1.13.07.04.02a1.84 1.84 0 0 0 .76.17h.17a2 2 0 0 0 .91-.35 1.78 1.78 0 0 0 .52-.58l.03-.05a.84.84 0 0 0 .05-.11Zm5.15 4.5a1.14 1.14 0 0 0 1.14-1.97 1.13 1.13 0 0 0-1.55.41c-.32.55-.13 1.25.41 1.56Z"
  6327. clip-rule="evenodd"
  6328. />
  6329. <path
  6330. fill="currentColor"
  6331. fill-rule="evenodd"
  6332. d="M4.63 9.43a1.5 1.5 0 1 0 1.5-2.6 1.5 1.5 0 0 0-1.5 2.6Zm.32-1.55a.5.5 0 0 1 .68-.19.5.5 0 0 1 .18.68.5.5 0 0 1-.68.19.5.5 0 0 1-.18-.68ZM17.94 8.88a1.5 1.5 0 1 1-2.6-1.5 1.5 1.5 0 1 1 2.6 1.5ZM16.9 7.69a.5.5 0 0 0-.68.19.5.5 0 0 0 .18.68.5.5 0 0 0 .68-.19.5.5 0 0 0-.18-.68ZM9.75 17.75a1.5 1.5 0 1 1 2.6 1.5 1.5 1.5 0 1 1-2.6-1.5Zm1.05 1.18a.5.5 0 0 0 .68-.18.5.5 0 0 0-.18-.68.5.5 0 0 0-.68.18.5.5 0 0 0 .18.68Z"
  6333. clip-rule="evenodd"
  6334. />
  6335. </svg>`,ep=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6336. <path
  6337. fill="currentColor"
  6338. fill-rule="evenodd"
  6339. d="M9.13 1h1.71c1.46 0 2.63 0 3.56.1.97.1 1.8.33 2.53.85a5 5 0 0 1 1.1 1.11c.53.73.75 1.56.86 2.53.1.93.1 2.1.1 3.55v1.72c0 1.45 0 2.62-.1 3.55-.1.97-.33 1.8-.86 2.53a5 5 0 0 1-1.1 1.1c-.73.53-1.56.75-2.53.86-.93.1-2.1.1-3.55.1H9.13c-1.45 0-2.62 0-3.56-.1-.96-.1-1.8-.33-2.52-.85a5 5 0 0 1-1.1-1.11 5.05 5.05 0 0 1-.86-2.53c-.1-.93-.1-2.1-.1-3.55V9.14c0-1.45 0-2.62.1-3.55.1-.97.33-1.8.85-2.53a5 5 0 0 1 1.1-1.1 5.05 5.05 0 0 1 2.53-.86C6.51 1 7.67 1 9.13 1ZM5.79 3.09a3.1 3.1 0 0 0-1.57.48 3 3 0 0 0-.66.67c-.24.32-.4.77-.48 1.56-.1.82-.1 1.88-.1 3.4v1.6c0 1.15 0 2.04.05 2.76l.41-.42c.5-.5.93-.92 1.32-1.24.41-.33.86-.6 1.43-.7a3 3 0 0 1 .94 0c.35.06.66.2.95.37a17.11 17.11 0 0 0 .8.45c.1-.08.2-.2.41-.4l.04-.03a27 27 0 0 1 1.95-1.84 4.03 4.03 0 0 1 1.91-.94 4 4 0 0 1 1.25 0c.73.11 1.33.46 1.91.94l.64.55V9.2c0-1.52 0-2.58-.1-3.4a3.1 3.1 0 0 0-.48-1.56 3 3 0 0 0-.66-.67 3.1 3.1 0 0 0-1.56-.48C13.37 3 12.3 3 10.79 3h-1.6c-1.52 0-2.59 0-3.4.09Zm11.18 10-.04-.05a26.24 26.24 0 0 0-1.83-1.74c-.45-.36-.73-.48-.97-.52a2 2 0 0 0-.63 0c-.24.04-.51.16-.97.52-.46.38-1.01.93-1.83 1.74l-.02.02c-.17.18-.34.34-.49.47a2.04 2.04 0 0 1-1.08.5 1.97 1.97 0 0 1-1.25-.27l-.79-.46-.02-.02a.65.65 0 0 0-.24-.1 1 1 0 0 0-.31 0c-.08.02-.21.06-.49.28-.3.24-.65.59-1.2 1.14l-.56.56-.65.66a3 3 0 0 0 .62.6c.33.24.77.4 1.57.49.81.09 1.88.09 3.4.09h1.6c1.52 0 2.58 0 3.4-.09a3.1 3.1 0 0 0 1.56-.48 3 3 0 0 0 .66-.67c.24-.32.4-.77.49-1.56l.07-1.12Zm-8.02-1.03ZM4.99 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"
  6340. clip-rule="evenodd"
  6341. />
  6342. </svg>`,ef=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6343. <path
  6344. fill="currentColor"
  6345. fill-rule="evenodd"
  6346. d="M8 0a1 1 0 0 1 1 1v5.38a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1ZM5.26 2.6a1 1 0 0 1-.28 1.39 5.46 5.46 0 1 0 6.04 0 1 1 0 1 1 1.1-1.67 7.46 7.46 0 1 1-8.25 0 1 1 0 0 1 1.4.28Z"
  6347. clip-rule="evenodd"
  6348. />
  6349. </svg>`,eg=(0,s.JW)` <svg
  6350. width="36"
  6351. height="36"
  6352. fill="none"
  6353. >
  6354. <path
  6355. d="M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z"
  6356. fill="#fff"
  6357. fill-opacity=".05"
  6358. />
  6359. <path
  6360. d="m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z"
  6361. fill="#EA4335"
  6362. />
  6363. <path
  6364. d="m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z"
  6365. fill="#FBBC04"
  6366. />
  6367. <path
  6368. d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z"
  6369. fill="#4285F4"
  6370. />
  6371. <path
  6372. d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z"
  6373. fill="#34A853"
  6374. />
  6375. <path
  6376. d="M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z"
  6377. stroke="#fff"
  6378. stroke-opacity=".05"
  6379. />
  6380. </svg>`,ew=(0,s.JW)`<svg
  6381. width="13"
  6382. height="12"
  6383. viewBox="0 0 13 12"
  6384. fill="none"
  6385. >
  6386. <path
  6387. fill="currentColor"
  6388. fill-rule="evenodd"
  6389. clip-rule="evenodd"
  6390. d="M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z"
  6391. /></svg
  6392. >`,em=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6393. <path
  6394. fill="currentColor"
  6395. d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z"
  6396. />
  6397. </svg>`,eb=(0,s.JW)`<svg
  6398. fill="none"
  6399. viewBox="0 0 21 20"
  6400. >
  6401. <path
  6402. fill="currentColor"
  6403. d="M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z"
  6404. /></svg
  6405. >`,ev=(0,s.JW)`<svg fill="none" viewBox="0 0 14 16">
  6406. <path
  6407. fill="currentColor"
  6408. fill-rule="evenodd"
  6409. d="M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z"
  6410. clip-rule="evenodd"
  6411. />
  6412. </svg>`,ey=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6413. <path
  6414. fill="currentColor"
  6415. fill-rule="evenodd"
  6416. d="M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z"
  6417. clip-rule="evenodd"
  6418. />
  6419. </svg>`,ex=(0,s.JW)`<svg fill="none" viewBox="0 0 21 20">
  6420. <path
  6421. fill="currentColor"
  6422. fill-rule="evenodd"
  6423. d="M14.3808 4.34812C13.72 4.47798 12.8501 4.7587 11.5748 5.17296L9.00869 6.00646C6.90631 6.68935 5.40679 7.17779 4.38121 7.63178C3.87166 7.85734 3.5351 8.05091 3.32022 8.22035C3.11183 8.38466 3.07011 8.48486 3.05969 8.51817C2.98058 8.77103 2.98009 9.04195 3.05831 9.29509C3.06861 9.32844 3.10998 9.42878 3.31777 9.59384C3.53205 9.76404 3.86792 9.95881 4.37667 10.1862C5.29287 10.5957 6.58844 11.0341 8.35529 11.6164L10.8876 8.59854C11.2426 8.17547 11.8733 8.12028 12.2964 8.47528C12.7195 8.83029 12.7746 9.46104 12.4196 9.88412L9.88738 12.9019C10.7676 14.5408 11.4244 15.7406 11.9867 16.5718C12.299 17.0333 12.5491 17.3303 12.7539 17.5117C12.9526 17.6877 13.0586 17.711 13.0932 17.7154C13.3561 17.7484 13.6228 17.7009 13.8581 17.5791C13.8891 17.563 13.9805 17.5046 14.1061 17.2708C14.2357 17.0298 14.3679 16.6647 14.5015 16.1237C14.7705 15.0349 14.9912 13.4733 15.2986 11.2843L15.6738 8.61249C15.8603 7.28456 15.9857 6.37917 15.9989 5.7059C16.012 5.03702 15.9047 4.8056 15.8145 4.69183C15.7044 4.55297 15.5673 4.43792 15.4114 4.35365C15.2837 4.28459 15.0372 4.2191 14.3808 4.34812ZM7.99373 13.603C6.11919 12.9864 4.6304 12.4902 3.5606 12.0121C2.98683 11.7557 2.4778 11.4808 2.07383 11.1599C1.66337 10.8339 1.31312 10.4217 1.14744 9.88551C0.949667 9.24541 0.950886 8.56035 1.15094 7.92096C1.31852 7.38534 1.67024 6.97442 2.08185 6.64985C2.48697 6.33041 2.99697 6.05734 3.57166 5.80295C4.70309 5.3021 6.30179 4.78283 8.32903 4.12437L11.0196 3.25042C12.2166 2.86159 13.2017 2.54158 13.9951 2.38566C14.8065 2.22618 15.6202 2.19289 16.3627 2.59437C16.7568 2.80747 17.1035 3.09839 17.3818 3.4495C17.9062 4.111 18.0147 4.91815 17.9985 5.74496C17.9827 6.55332 17.8386 7.57903 17.6636 8.82534L17.2701 11.6268C16.9737 13.7376 16.7399 15.4022 16.4432 16.6034C16.2924 17.2135 16.1121 17.7632 15.8678 18.2176C15.6197 18.6794 15.2761 19.0971 14.7777 19.3551C14.1827 19.6632 13.5083 19.7833 12.8436 19.6997C12.2867 19.6297 11.82 19.3563 11.4277 19.0087C11.0415 18.6666 10.6824 18.213 10.3302 17.6925C9.67361 16.722 8.92648 15.342 7.99373 13.603Z"
  6424. clip-rule="evenodd"
  6425. />
  6426. <svg
  6427. xmlns="http://www.w3.org/2000/svg"
  6428. width="21"
  6429. height="20"
  6430. viewBox="0 0 21 20"
  6431. fill="none"
  6432. ></svg></svg
  6433. >`,eC=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6434. <path
  6435. fill="currentColor"
  6436. fill-rule="evenodd"
  6437. d="M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z"
  6438. clip-rule="evenodd"
  6439. />
  6440. </svg>`,eA=(0,s.JW)`<svg width="10" height="10" viewBox="0 0 10 10">
  6441. <path
  6442. fill="currentColor"
  6443. fill-rule="evenodd"
  6444. d="M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z"
  6445. clip-rule="evenodd"
  6446. />
  6447. </svg>`,eE=(0,s.JW)`<svg
  6448. width="14"
  6449. height="14"
  6450. viewBox="0 0 14 14"
  6451. fill="none"
  6452. xmlns="http://www.w3.org/2000/svg"
  6453. >
  6454. <path
  6455. fill-rule="evenodd"
  6456. clip-rule="evenodd"
  6457. d="M13.7306 3.24213C14.0725 3.58384 14.0725 4.13786 13.7306 4.47957L10.7418 7.46737C10.4 7.80908 9.84581 7.80908 9.50399 7.46737C9.16216 7.12567 9.16216 6.57165 9.50399 6.22994L10.9986 4.73585H5.34082C4.85741 4.73585 4.46553 4.3441 4.46553 3.86085C4.46553 3.3776 4.85741 2.98585 5.34082 2.98585L10.9986 2.98585L9.50399 1.49177C9.16216 1.15006 9.16216 0.596037 9.50399 0.254328C9.84581 -0.0873803 10.4 -0.0873803 10.7418 0.254328L13.7306 3.24213ZM9.52515 10.1352C9.52515 10.6185 9.13327 11.0102 8.64986 11.0102L2.9921 11.0102L4.48669 12.5043C4.82852 12.846 4.82852 13.4001 4.48669 13.7418C4.14487 14.0835 3.59066 14.0835 3.24884 13.7418L0.26003 10.754C0.0958806 10.5899 0.0036621 10.3673 0.00366211 10.1352C0.00366212 9.90318 0.0958806 9.68062 0.26003 9.51652L3.24884 6.52872C3.59066 6.18701 4.14487 6.18701 4.48669 6.52872C4.82851 6.87043 4.82851 7.42445 4.48669 7.76616L2.9921 9.26024L8.64986 9.26024C9.13327 9.26024 9.52515 9.65199 9.52515 10.1352Z"
  6458. fill="currentColor"
  6459. />
  6460. </svg>
  6461. `,e_=(0,s.JW)`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  6462. <path
  6463. fill="currentColor"
  6464. fill-rule="evenodd"
  6465. clip-rule="evenodd"
  6466. d="M8.3071 0.292893C8.69763 0.683417 8.69763 1.31658 8.3071 1.70711L6.41421 3.6H11.3404C13.8368 3.6 16.0533 5.1975 16.8427 7.56588L16.9487 7.88377C17.1233 8.40772 16.8402 8.97404 16.3162 9.14868C15.7923 9.32333 15.226 9.04017 15.0513 8.51623L14.9453 8.19834C14.4281 6.64664 12.976 5.6 11.3404 5.6H6.41421L8.3071 7.49289C8.69763 7.88342 8.69763 8.51658 8.3071 8.90711C7.91658 9.29763 7.28341 9.29763 6.89289 8.90711L3.29289 5.30711C2.90236 4.91658 2.90236 4.28342 3.29289 3.89289L6.89289 0.292893C7.28341 -0.0976311 7.91658 -0.0976311 8.3071 0.292893ZM3.68377 10.8513C4.20771 10.6767 4.77403 10.9598 4.94868 11.4838L5.05464 11.8017C5.57188 13.3534 7.024 14.4 8.65964 14.4L13.5858 14.4L11.6929 12.5071C11.3024 12.1166 11.3024 11.4834 11.6929 11.0929C12.0834 10.7024 12.7166 10.7024 13.1071 11.0929L16.7071 14.6929C17.0976 15.0834 17.0976 15.7166 16.7071 16.1071L13.1071 19.7071C12.7166 20.0976 12.0834 20.0976 11.6929 19.7071C11.3024 19.3166 11.3024 18.6834 11.6929 18.2929L13.5858 16.4L8.65964 16.4C6.16314 16.4 3.94674 14.8025 3.15728 12.4341L3.05131 12.1162C2.87667 11.5923 3.15983 11.026 3.68377 10.8513Z"
  6467. />
  6468. </svg>`,ek=(0,s.JW)`<svg fill="none" viewBox="0 0 14 14">
  6469. <path
  6470. fill="currentColor"
  6471. fill-rule="evenodd"
  6472. d="M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z"
  6473. clip-rule="evenodd"
  6474. />
  6475. </svg>`,eI=(0,s.JW)`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
  6476. <g clip-path="url(#a)">
  6477. <path fill="url(#b)" d="M0 0h32v32H0z"/>
  6478. <path fill-rule="evenodd" clip-rule="evenodd" d="M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z" fill="#fff"/>
  6479. </g>
  6480. <path d="M.5 16C.5 7.44 7.44.5 16 .5 24.56.5 31.5 7.44 31.5 16c0 8.56-6.94 15.5-15.5 15.5C7.44 31.5.5 24.56.5 16Z" stroke="#141414" stroke-opacity=".05"/>
  6481. <defs>
  6482. <linearGradient id="b" x1="1600" y1="0" x2="1600" y2="3176.27" gradientUnits="userSpaceOnUse">
  6483. <stop stop-color="#2AABEE"/>
  6484. <stop offset="1" stop-color="#229ED9"/>
  6485. </linearGradient>
  6486. <clipPath id="a">
  6487. <path d="M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16Z" fill="#fff"/>
  6488. </clipPath>
  6489. </defs>
  6490. </svg>`,eS=(0,s.JW)`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
  6491. <path d="M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z" fill="#949E9E"/>
  6492. <path d="M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z" fill="#949E9E"/>
  6493. <path d="M5.25 12.4688C5.25 13.4352 6.0335 14.2187 7 14.2187C7.9665 14.2187 8.75 13.4352 8.75 12.4688C8.75 11.5023 7.9665 10.7188 7 10.7188C6.0335 10.7188 5.25 11.5023 5.25 12.4688Z" fill="#949E9E"/>
  6494. </svg>`,eT=(0,s.JW)`<svg fill="none" viewBox="0 0 40 40">
  6495. <g clip-path="url(#a)">
  6496. <g clip-path="url(#b)">
  6497. <circle cx="20" cy="19.89" r="20" fill="#5A3E85" />
  6498. <g clip-path="url(#c)">
  6499. <path
  6500. fill="#fff"
  6501. d="M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z"
  6502. />
  6503. </g>
  6504. </g>
  6505. </g>
  6506. <defs>
  6507. <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
  6508. <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  6509. <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
  6510. </defs>
  6511. </svg>`,eN=(0,s.JW)`<svg fill="none" viewBox="0 0 16 16">
  6512. <path
  6513. fill="currentColor"
  6514. d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z"
  6515. />
  6516. </svg>`,eP=(0,s.JW)`<svg fill="none" viewBox="0 0 28 28">
  6517. <path
  6518. fill="currentColor"
  6519. fill-rule="evenodd"
  6520. d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z"
  6521. clip-rule="evenodd"
  6522. />
  6523. </svg>`,eR=(0,s.JW)`<svg fill="none" viewBox="0 0 14 14">
  6524. <path
  6525. fill="currentColor"
  6526. fill-rule="evenodd"
  6527. d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z"
  6528. clip-rule="evenodd"
  6529. />
  6530. </svg>`,eO=(0,s.JW)`
  6531. <svg fill="none" viewBox="0 0 48 44">
  6532. <path
  6533. style="fill: var(--wui-color-bg-300);"
  6534. d="M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.05 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z"
  6535. />
  6536. <path
  6537. style="fill: var(--wui-color-fg-200);"
  6538. fill-rule="evenodd"
  6539. d="M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z"
  6540. clip-rule="evenodd"
  6541. />
  6542. </svg>
  6543. `,eM=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6544. <path
  6545. fill="currentColor"
  6546. fill-rule="evenodd"
  6547. d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z"
  6548. clip-rule="evenodd"
  6549. />
  6550. </svg>`,eD=(0,s.JW)`<svg fill="none" viewBox="0 0 96 67">
  6551. <path
  6552. fill="currentColor"
  6553. d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z"
  6554. />
  6555. <path
  6556. stroke="#000"
  6557. stroke-opacity=".1"
  6558. d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z"
  6559. />
  6560. </svg>`,eU=(0,s.JW)`
  6561. <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  6562. <g clip-path="url(#clip0_22274_4692)">
  6563. <path d="M0 6.64C0 4.17295 0 2.93942 0.525474 2.01817C0.880399 1.39592 1.39592 0.880399 2.01817 0.525474C2.93942 0 4.17295 0 6.64 0H9.36C11.8271 0 13.0606 0 13.9818 0.525474C14.6041 0.880399 15.1196 1.39592 15.4745 2.01817C16 2.93942 16 4.17295 16 6.64V9.36C16 11.8271 16 13.0606 15.4745 13.9818C15.1196 14.6041 14.6041 15.1196 13.9818 15.4745C13.0606 16 11.8271 16 9.36 16H6.64C4.17295 16 2.93942 16 2.01817 15.4745C1.39592 15.1196 0.880399 14.6041 0.525474 13.9818C0 13.0606 0 11.8271 0 9.36V6.64Z" fill="#C7B994"/>
  6564. <path d="M4.49038 5.76609C6.42869 3.86833 9.5713 3.86833 11.5096 5.76609L11.7429 5.99449C11.8398 6.08938 11.8398 6.24323 11.7429 6.33811L10.9449 7.11942C10.8964 7.16686 10.8179 7.16686 10.7694 7.11942L10.4484 6.80512C9.09617 5.48119 6.90381 5.48119 5.5516 6.80512L5.20782 7.14171C5.15936 7.18915 5.08079 7.18915 5.03234 7.14171L4.23434 6.3604C4.13742 6.26552 4.13742 6.11167 4.23434 6.01678L4.49038 5.76609ZM13.1599 7.38192L13.8702 8.07729C13.9671 8.17217 13.9671 8.32602 13.8702 8.4209L10.6677 11.5564C10.5708 11.6513 10.4137 11.6513 10.3168 11.5564L8.04388 9.33105C8.01965 9.30733 7.98037 9.30733 7.95614 9.33105L5.6833 11.5564C5.58638 11.6513 5.42925 11.6513 5.33234 11.5564L2.12982 8.42087C2.0329 8.32598 2.0329 8.17213 2.12982 8.07724L2.84004 7.38188C2.93695 7.28699 3.09408 7.28699 3.191 7.38188L5.46392 9.60726C5.48815 9.63098 5.52743 9.63098 5.55166 9.60726L7.82447 7.38188C7.92138 7.28699 8.07851 7.28699 8.17543 7.38187L10.4484 9.60726C10.4726 9.63098 10.5119 9.63098 10.5361 9.60726L12.809 7.38192C12.9059 7.28703 13.063 7.28703 13.1599 7.38192Z" fill="#202020"/>
  6565. </g>
  6566. <defs>
  6567. <clipPath id="clip0_22274_4692">
  6568. <path d="M0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8Z" fill="white"/>
  6569. </clipPath>
  6570. </defs>
  6571. </svg>
  6572. `,e$=(0,s.JW)`
  6573. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  6574. <circle cx="11" cy="11" r="11" transform="matrix(-1 0 0 1 23 1)" fill="#202020"/>
  6575. <circle cx="11" cy="11" r="11.5" transform="matrix(-1 0 0 1 23 1)" stroke="#C7B994" stroke-opacity="0.7"/>
  6576. <path d="M15.4523 11.0686L16.7472 9.78167C13.8205 6.87297 10.1838 6.87297 7.25708 9.78167L8.55201 11.0686C10.7779 8.85645 13.2279 8.85645 15.4538 11.0686H15.4523Z" fill="#C7B994"/>
  6577. <path d="M15.0199 14.067L12 11.0656L8.98 14.067L5.96004 11.0656L4.66663 12.3511L8.98 16.6393L12 13.638L15.0199 16.6393L19.3333 12.3511L18.0399 11.0656L15.0199 14.067Z" fill="#C7B994"/>
  6578. </svg>
  6579. `,eL=(0,s.JW)`<svg fill="none" viewBox="0 0 20 20">
  6580. <path
  6581. fill="currentColor"
  6582. d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"
  6583. />
  6584. <path
  6585. fill="currentColor"
  6586. fill-rule="evenodd"
  6587. d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z"
  6588. clip-rule="evenodd"
  6589. />
  6590. </svg>`,ej=(0,s.JW)`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
  6591. <path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
  6592. </svg>`,eB=(0,s.JW)`<svg
  6593. xmlns="http://www.w3.org/2000/svg"
  6594. width="28"
  6595. height="28"
  6596. viewBox="0 0 28 28"
  6597. fill="none">
  6598. <path
  6599. fill="#949E9E"
  6600. fill-rule="evenodd"
  6601. d="M7.974 2.975h12.052c1.248 0 2.296 0 3.143.092.89.096 1.723.307 2.461.844a4.9 4.9 0 0 1 1.084 1.084c.537.738.748 1.57.844 2.461.092.847.092 1.895.092 3.143v6.802c0 1.248 0 2.296-.092 3.143-.096.89-.307 1.723-.844 2.461a4.9 4.9 0 0 1-1.084 1.084c-.738.537-1.57.748-2.461.844-.847.092-1.895.092-3.143.092H7.974c-1.247 0-2.296 0-3.143-.092-.89-.096-1.723-.307-2.461-.844a4.901 4.901 0 0 1-1.084-1.084c-.537-.738-.748-1.571-.844-2.461C.35 19.697.35 18.649.35 17.4v-6.802c0-1.248 0-2.296.092-3.143.096-.89.307-1.723.844-2.461A4.9 4.9 0 0 1 2.37 3.91c.738-.537 1.571-.748 2.461-.844.847-.092 1.895-.092 3.143-.092ZM5.133 5.85c-.652.071-.936.194-1.117.326a2.1 2.1 0 0 0-.465.465c-.132.181-.255.465-.325 1.117-.074.678-.076 1.573-.076 2.917v6.65c0 1.344.002 2.239.076 2.917.07.652.193.936.325 1.117a2.1 2.1 0 0 0 .465.465c.181.132.465.255 1.117.326.678.073 1.574.075 2.917.075h11.9c1.344 0 2.239-.002 2.917-.075.652-.071.936-.194 1.117-.326.179-.13.335-.286.465-.465.132-.181.255-.465.326-1.117.073-.678.075-1.573.075-2.917v-6.65c0-1.344-.002-2.239-.075-2.917-.071-.652-.194-.936-.326-1.117a2.1 2.1 0 0 0-.465-.465c-.181-.132-.465-.255-1.117-.326-.678-.073-1.573-.075-2.917-.075H8.05c-1.343 0-2.239.002-2.917.075Zm.467 7.275a3.15 3.15 0 1 1 6.3 0 3.15 3.15 0 0 1-6.3 0Zm8.75-1.75a1.4 1.4 0 0 1 1.4-1.4h3.5a1.4 1.4 0 0 1 0 2.8h-3.5a1.4 1.4 0 0 1-1.4-1.4Zm0 5.25a1.4 1.4 0 0 1 1.4-1.4H21a1.4 1.4 0 1 1 0 2.8h-5.25a1.4 1.4 0 0 1-1.4-1.4Z"
  6602. clip-rule="evenodd"/>
  6603. </svg>`,eW=(0,s.JW)`<svg fill="none" viewBox="0 0 41 40">
  6604. <g clip-path="url(#a)">
  6605. <path fill="#000" d="M.8 0h40v40H.8z" />
  6606. <path
  6607. fill="#fff"
  6608. d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z"
  6609. />
  6610. </g>
  6611. <defs>
  6612. <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath>
  6613. </defs>
  6614. </svg>`,eq=(0,s.JW)`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
  6615. <path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
  6616. </svg>`,eH=(0,s.JW)`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  6617. <path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
  6618. </svg>
  6619. `;var ez=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eF={add:A,allWallets:E,arrowBottomCircle:_,appStore:k,apple:I,arrowBottom:S,arrowLeft:T,arrowRight:N,arrowTop:P,bank:R,browser:O,card:M,checkmark:U,checkmarkBold:D,chevronBottom:$,chevronLeft:L,chevronRight:j,chevronTop:B,chromeStore:W,clock:q,close:H,compass:F,coinPlaceholder:z,copy:Z,cursor:V,cursorTransparent:K,desktop:G,disconnect:J,discord:Y,etherscan:Q,extension:X,externalLink:ee,facebook:et,farcaster:ei,filters:er,github:en,google:ea,helpCircle:eo,image:es,id:eB,infoCircle:ec,lightbulb:ej,mail:el,mobile:eu,more:ed,networkPlaceholder:eh,nftPlaceholder:ep,off:ef,playStore:eg,plus:ew,qrCode:em,recycleHorizontal:eb,refresh:ev,search:ey,send:ex,swapHorizontal:eC,swapHorizontalMedium:eE,swapHorizontalBold:eA,swapHorizontalRoundedBold:e_,swapVertical:ek,telegram:eI,threeDots:eS,twitch:eT,twitter:eW,twitterIcon:eN,verify:eP,verifyFilled:eR,wallet:eM,walletConnect:eD,walletConnectLightBrown:eU,walletConnectBrown:e$,walletPlaceholder:eO,warningCircle:eL,x:eW,info:eq,exclamationTriangle:eH},eZ=class extends s.WF{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=`
  6620. --local-color: var(--wui-color-${this.color});
  6621. --local-width: var(--wui-icon-size-${this.size});
  6622. `,(0,s.qy)`${eF[this.name]}`}};eZ.styles=[g,m,C],ez([(0,x.MZ)()],eZ.prototype,"size",void 0),ez([(0,x.MZ)()],eZ.prototype,"name",void 0),ez([(0,x.MZ)()],eZ.prototype,"color",void 0),eZ=ez([b("wui-icon")],eZ);let eV=(0,s.AH)`
  6623. :host {
  6624. display: block;
  6625. width: var(--local-width);
  6626. height: var(--local-height);
  6627. }
  6628. img {
  6629. display: block;
  6630. width: 100%;
  6631. height: 100%;
  6632. object-fit: cover;
  6633. object-position: center center;
  6634. border-radius: inherit;
  6635. }
  6636. `;var eK=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let eG=class extends s.WF{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=`
  6637. --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
  6638. --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
  6639. `,(0,s.qy)`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};eG.styles=[g,m,eV],eK([(0,x.MZ)()],eG.prototype,"src",void 0),eK([(0,x.MZ)()],eG.prototype,"alt",void 0),eK([(0,x.MZ)()],eG.prototype,"size",void 0),eG=eK([b("wui-image")],eG);let eJ=(0,s.AH)`
  6640. :host {
  6641. display: block;
  6642. width: var(--wui-box-size-lg);
  6643. height: var(--wui-box-size-lg);
  6644. }
  6645. svg {
  6646. width: var(--wui-box-size-lg);
  6647. height: var(--wui-box-size-lg);
  6648. fill: none;
  6649. stroke: transparent;
  6650. stroke-linecap: round;
  6651. }
  6652. use {
  6653. stroke: var(--wui-color-accent-100);
  6654. stroke-width: 2px;
  6655. stroke-dasharray: 54, 118;
  6656. stroke-dashoffset: 172;
  6657. animation: dash 1s linear infinite;
  6658. }
  6659. @keyframes dash {
  6660. to {
  6661. stroke-dashoffset: 0px;
  6662. }
  6663. }
  6664. `,eY=class extends s.WF{render(){return(0,s.qy)`
  6665. <svg viewBox="0 0 54 59">
  6666. <path
  6667. id="wui-loader-path"
  6668. d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z"
  6669. />
  6670. <use xlink:href="#wui-loader-path"></use>
  6671. </svg>
  6672. `}};eY.styles=[g,eJ],eY=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([b("wui-loading-hexagon")],eY);let eQ=(0,s.AH)`
  6673. :host {
  6674. display: flex;
  6675. }
  6676. :host([data-size='sm']) > svg {
  6677. width: 12px;
  6678. height: 12px;
  6679. }
  6680. :host([data-size='md']) > svg {
  6681. width: 16px;
  6682. height: 16px;
  6683. }
  6684. :host([data-size='lg']) > svg {
  6685. width: 24px;
  6686. height: 24px;
  6687. }
  6688. :host([data-size='xl']) > svg {
  6689. width: 32px;
  6690. height: 32px;
  6691. }
  6692. svg {
  6693. animation: rotate 2s linear infinite;
  6694. }
  6695. circle {
  6696. fill: none;
  6697. stroke: var(--local-color);
  6698. stroke-width: 4px;
  6699. stroke-dasharray: 1, 124;
  6700. stroke-dashoffset: 0;
  6701. stroke-linecap: round;
  6702. animation: dash 1.5s ease-in-out infinite;
  6703. }
  6704. :host([data-size='md']) > svg > circle {
  6705. stroke-width: 6px;
  6706. }
  6707. :host([data-size='sm']) > svg > circle {
  6708. stroke-width: 8px;
  6709. }
  6710. @keyframes rotate {
  6711. 100% {
  6712. transform: rotate(360deg);
  6713. }
  6714. }
  6715. @keyframes dash {
  6716. 0% {
  6717. stroke-dasharray: 1, 124;
  6718. stroke-dashoffset: 0;
  6719. }
  6720. 50% {
  6721. stroke-dasharray: 90, 124;
  6722. stroke-dashoffset: -35;
  6723. }
  6724. 100% {
  6725. stroke-dashoffset: -125;
  6726. }
  6727. }
  6728. `;var eX=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e0=class extends s.WF{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: ${"inherit"===this.color?"inherit":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,(0,s.qy)`<svg viewBox="25 25 50 50">
  6729. <circle r="20" cy="50" cx="50"></circle>
  6730. </svg>`}};e0.styles=[g,eQ],eX([(0,x.MZ)()],e0.prototype,"color",void 0),eX([(0,x.MZ)()],e0.prototype,"size",void 0),e0=eX([b("wui-loading-spinner")],e0);let e1=(0,s.AH)`
  6731. :host {
  6732. display: block;
  6733. width: var(--wui-box-size-md);
  6734. height: var(--wui-box-size-md);
  6735. }
  6736. svg {
  6737. width: var(--wui-box-size-md);
  6738. height: var(--wui-box-size-md);
  6739. }
  6740. rect {
  6741. fill: none;
  6742. stroke: var(--wui-color-accent-100);
  6743. stroke-width: 4px;
  6744. stroke-linecap: round;
  6745. animation: dash 1s linear infinite;
  6746. }
  6747. @keyframes dash {
  6748. to {
  6749. stroke-dashoffset: 0px;
  6750. }
  6751. }
  6752. `;var e2=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e3=class extends s.WF{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,t=36-e;return(0,s.qy)`
  6753. <svg viewBox="0 0 110 110" width="110" height="110">
  6754. <rect
  6755. x="2"
  6756. y="2"
  6757. width="106"
  6758. height="106"
  6759. rx=${e}
  6760. stroke-dasharray="${116+t} ${245+t}"
  6761. stroke-dashoffset=${360+1.75*t}
  6762. />
  6763. </svg>
  6764. `}};e3.styles=[g,e1],e2([(0,x.MZ)({type:Number})],e3.prototype,"radius",void 0),e3=e2([b("wui-loading-thumbnail")],e3);let e5=(0,s.AH)`
  6765. :host {
  6766. display: block;
  6767. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  6768. background: linear-gradient(
  6769. 120deg,
  6770. var(--wui-color-bg-200) 5%,
  6771. var(--wui-color-bg-200) 48%,
  6772. var(--wui-color-bg-300) 55%,
  6773. var(--wui-color-bg-300) 60%,
  6774. var(--wui-color-bg-300) calc(60% + 10px),
  6775. var(--wui-color-bg-200) calc(60% + 12px),
  6776. var(--wui-color-bg-200) 100%
  6777. );
  6778. background-size: 250%;
  6779. animation: shimmer 3s linear infinite reverse;
  6780. }
  6781. :host([variant='light']) {
  6782. background: linear-gradient(
  6783. 120deg,
  6784. var(--wui-color-bg-150) 5%,
  6785. var(--wui-color-bg-150) 48%,
  6786. var(--wui-color-bg-200) 55%,
  6787. var(--wui-color-bg-200) 60%,
  6788. var(--wui-color-bg-200) calc(60% + 10px),
  6789. var(--wui-color-bg-150) calc(60% + 12px),
  6790. var(--wui-color-bg-150) 100%
  6791. );
  6792. background-size: 250%;
  6793. }
  6794. @keyframes shimmer {
  6795. from {
  6796. background-position: -250% 0;
  6797. }
  6798. to {
  6799. background-position: 250% 0;
  6800. }
  6801. }
  6802. `;var e4=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let e6=class extends s.WF{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=`
  6803. width: ${this.width};
  6804. height: ${this.height};
  6805. border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);
  6806. `,(0,s.qy)`<slot></slot>`}};e6.styles=[e5],e4([(0,x.MZ)()],e6.prototype,"width",void 0),e4([(0,x.MZ)()],e6.prototype,"height",void 0),e4([(0,x.MZ)()],e6.prototype,"borderRadius",void 0),e4([(0,x.MZ)()],e6.prototype,"variant",void 0),e6=e4([b("wui-shimmer")],e6);var e8=i(60037);let e9=(0,s.AH)`
  6807. :host {
  6808. display: inline-flex !important;
  6809. }
  6810. slot {
  6811. width: 100%;
  6812. display: inline-block;
  6813. font-style: normal;
  6814. font-family: var(--wui-font-family);
  6815. font-feature-settings:
  6816. 'tnum' on,
  6817. 'lnum' on,
  6818. 'case' on;
  6819. line-height: 130%;
  6820. font-weight: var(--wui-font-weight-regular);
  6821. overflow: inherit;
  6822. text-overflow: inherit;
  6823. text-align: var(--local-align);
  6824. color: var(--local-color);
  6825. }
  6826. .wui-line-clamp-1 {
  6827. overflow: hidden;
  6828. display: -webkit-box;
  6829. -webkit-box-orient: vertical;
  6830. -webkit-line-clamp: 1;
  6831. }
  6832. .wui-line-clamp-2 {
  6833. overflow: hidden;
  6834. display: -webkit-box;
  6835. -webkit-box-orient: vertical;
  6836. -webkit-line-clamp: 2;
  6837. }
  6838. .wui-font-medium-400 {
  6839. font-size: var(--wui-font-size-medium);
  6840. font-weight: var(--wui-font-weight-light);
  6841. letter-spacing: var(--wui-letter-spacing-medium);
  6842. }
  6843. .wui-font-medium-600 {
  6844. font-size: var(--wui-font-size-medium);
  6845. letter-spacing: var(--wui-letter-spacing-medium);
  6846. }
  6847. .wui-font-title-600 {
  6848. font-size: var(--wui-font-size-title);
  6849. letter-spacing: var(--wui-letter-spacing-title);
  6850. }
  6851. .wui-font-title-6-600 {
  6852. font-size: var(--wui-font-size-title-6);
  6853. letter-spacing: var(--wui-letter-spacing-title-6);
  6854. }
  6855. .wui-font-mini-700 {
  6856. font-size: var(--wui-font-size-mini);
  6857. letter-spacing: var(--wui-letter-spacing-mini);
  6858. text-transform: uppercase;
  6859. }
  6860. .wui-font-large-500,
  6861. .wui-font-large-600,
  6862. .wui-font-large-700 {
  6863. font-size: var(--wui-font-size-large);
  6864. letter-spacing: var(--wui-letter-spacing-large);
  6865. }
  6866. .wui-font-2xl-500,
  6867. .wui-font-2xl-600,
  6868. .wui-font-2xl-700 {
  6869. font-size: var(--wui-font-size-2xl);
  6870. letter-spacing: var(--wui-letter-spacing-2xl);
  6871. }
  6872. .wui-font-paragraph-400,
  6873. .wui-font-paragraph-500,
  6874. .wui-font-paragraph-600,
  6875. .wui-font-paragraph-700 {
  6876. font-size: var(--wui-font-size-paragraph);
  6877. letter-spacing: var(--wui-letter-spacing-paragraph);
  6878. }
  6879. .wui-font-small-400,
  6880. .wui-font-small-500,
  6881. .wui-font-small-600 {
  6882. font-size: var(--wui-font-size-small);
  6883. letter-spacing: var(--wui-letter-spacing-small);
  6884. }
  6885. .wui-font-tiny-400,
  6886. .wui-font-tiny-500,
  6887. .wui-font-tiny-600 {
  6888. font-size: var(--wui-font-size-tiny);
  6889. letter-spacing: var(--wui-letter-spacing-tiny);
  6890. }
  6891. .wui-font-micro-700,
  6892. .wui-font-micro-600 {
  6893. font-size: var(--wui-font-size-micro);
  6894. letter-spacing: var(--wui-letter-spacing-micro);
  6895. text-transform: uppercase;
  6896. }
  6897. .wui-font-tiny-400,
  6898. .wui-font-small-400,
  6899. .wui-font-medium-400,
  6900. .wui-font-paragraph-400 {
  6901. font-weight: var(--wui-font-weight-light);
  6902. }
  6903. .wui-font-large-700,
  6904. .wui-font-paragraph-700,
  6905. .wui-font-micro-700,
  6906. .wui-font-mini-700 {
  6907. font-weight: var(--wui-font-weight-bold);
  6908. }
  6909. .wui-font-medium-600,
  6910. .wui-font-medium-title-600,
  6911. .wui-font-title-6-600,
  6912. .wui-font-large-600,
  6913. .wui-font-paragraph-600,
  6914. .wui-font-small-600,
  6915. .wui-font-tiny-600,
  6916. .wui-font-micro-600 {
  6917. font-weight: var(--wui-font-weight-medium);
  6918. }
  6919. :host([disabled]) {
  6920. opacity: 0.4;
  6921. }
  6922. `;var e7=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let te=class extends s.WF{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left",this.lineClamp=void 0}render(){let e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=`
  6923. --local-align: ${this.align};
  6924. --local-color: var(--wui-color-${this.color});
  6925. `,(0,s.qy)`<slot class=${(0,e8.H)(e)}></slot>`}};te.styles=[g,e9],e7([(0,x.MZ)()],te.prototype,"variant",void 0),e7([(0,x.MZ)()],te.prototype,"color",void 0),e7([(0,x.MZ)()],te.prototype,"align",void 0),e7([(0,x.MZ)()],te.prototype,"lineClamp",void 0),te=e7([b("wui-text")],te);let tt=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  6926. <rect width="60" height="60" fill="#1DC956" rx="30" />
  6927. <circle cx="30" cy="30" r="3" fill="#fff" />
  6928. <path
  6929. fill="#2BEE6C"
  6930. stroke="#fff"
  6931. stroke-width="2"
  6932. d="m45.32 17.9-.88-.42.88.42.02-.05c.1-.2.21-.44.26-.7l-.82-.15.82.16a2 2 0 0 0-.24-1.4c-.13-.23-.32-.42-.47-.57a8.42 8.42 0 0 1-.04-.04l-.04-.04a2.9 2.9 0 0 0-.56-.47l-.51.86.5-.86a2 2 0 0 0-1.4-.24c-.26.05-.5.16-.69.26l-.05.02-15.05 7.25-.1.05c-1.14.55-1.85.89-2.46 1.37a7 7 0 0 0-1.13 1.14c-.5.6-.83 1.32-1.38 2.45l-.05.11-7.25 15.05-.02.05c-.1.2-.21.43-.26.69a2 2 0 0 0 .24 1.4l.85-.5-.85.5c.13.23.32.42.47.57l.04.04.04.04c.15.15.34.34.56.47a2 2 0 0 0 1.41.24l-.2-.98.2.98c.25-.05.5-.17.69-.26l.05-.02-.42-.87.42.87 15.05-7.25.1-.05c1.14-.55 1.85-.89 2.46-1.38a7 7 0 0 0 1.13-1.13 12.87 12.87 0 0 0 1.43-2.56l7.25-15.05Z"
  6933. />
  6934. <path
  6935. fill="#1DC956"
  6936. d="M33.38 32.72 30.7 29.3 15.86 44.14l.2.2a1 1 0 0 0 1.14.2l15.1-7.27a3 3 0 0 0 1.08-4.55Z"
  6937. />
  6938. <path
  6939. fill="#86F999"
  6940. d="m26.62 27.28 2.67 3.43 14.85-14.85-.2-.2a1 1 0 0 0-1.14-.2l-15.1 7.27a3 3 0 0 0-1.08 4.55Z"
  6941. />
  6942. <circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)" />
  6943. <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" />
  6944. </svg> `,ti=(0,s.JW)`<svg viewBox="0 0 60 60" fill="none">
  6945. <g clip-path="url(#clip0_7734_50402)">
  6946. <path
  6947. d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z"
  6948. fill="#EB8B47"
  6949. />
  6950. <path
  6951. d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z"
  6952. stroke="#062B2B"
  6953. stroke-opacity="0.1"
  6954. />
  6955. <path
  6956. d="M19 52C24.5228 52 29 47.5228 29 42C29 36.4772 24.5228 32 19 32C13.4772 32 9 36.4772 9 42C9 47.5228 13.4772 52 19 52Z"
  6957. fill="#FF974C"
  6958. stroke="white"
  6959. stroke-width="2"
  6960. />
  6961. <path
  6962. fill-rule="evenodd"
  6963. clip-rule="evenodd"
  6964. d="M42.8437 8.3264C42.4507 7.70891 41.5493 7.70891 41.1564 8.32641L28.978 27.4638C28.5544 28.1295 29.0326 29.0007 29.8217 29.0007H54.1783C54.9674 29.0007 55.4456 28.1295 55.022 27.4638L42.8437 8.3264Z"
  6965. fill="white"
  6966. />
  6967. <path
  6968. fill-rule="evenodd"
  6969. clip-rule="evenodd"
  6970. d="M42.3348 11.6456C42.659 11.7608 42.9061 12.1492 43.4005 12.926L50.7332 24.4488C51.2952 25.332 51.5763 25.7737 51.5254 26.1382C51.4915 26.3808 51.3698 26.6026 51.1833 26.7614C50.9031 27 50.3796 27 49.3327 27H34.6673C33.6204 27 33.0969 27 32.8167 26.7614C32.6302 26.6026 32.5085 26.3808 32.4746 26.1382C32.4237 25.7737 32.7048 25.332 33.2669 24.4488L40.5995 12.926C41.0939 12.1492 41.341 11.7608 41.6652 11.6456C41.8818 11.5687 42.1182 11.5687 42.3348 11.6456ZM35.0001 26.999C38.8661 26.999 42.0001 23.865 42.0001 19.999C42.0001 23.865 45.1341 26.999 49.0001 26.999H35.0001Z"
  6971. fill="#FF974C"
  6972. />
  6973. <path
  6974. d="M10.1061 9.35712C9.9973 9.67775 9.99867 10.0388 9.99978 10.3323C9.99989 10.3611 10 10.3893 10 10.4167V25.5833C10 25.6107 9.99989 25.6389 9.99978 25.6677C9.99867 25.9612 9.9973 26.3222 10.1061 26.6429C10.306 27.2317 10.7683 27.694 11.3571 27.8939C11.6777 28.0027 12.0388 28.0013 12.3323 28.0002C12.3611 28.0001 12.3893 28 12.4167 28H19C24.5228 28 29 23.5228 29 18C29 12.4772 24.5228 8 19 8H12.4167C12.3893 8 12.3611 7.99989 12.3323 7.99978C12.0388 7.99867 11.6778 7.9973 11.3571 8.10614C10.7683 8.306 10.306 8.76834 10.1061 9.35712Z"
  6975. fill="#FF974C"
  6976. stroke="white"
  6977. stroke-width="2"
  6978. />
  6979. <circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="white" stroke-width="2" />
  6980. <circle cx="19" cy="42" r="4" fill="#EB8B47" stroke="white" stroke-width="2" />
  6981. </g>
  6982. <defs>
  6983. <clipPath id="clip0_7734_50402">
  6984. <rect width="60" height="60" fill="white" />
  6985. </clipPath>
  6986. </defs>
  6987. </svg> `,tr=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  6988. <g clip-path="url(#a)">
  6989. <path
  6990. fill="#1DC956"
  6991. d="M0 25.01c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02.11 15.65.11 24.9.11h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.13 60 15.76 60 25v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-3.45 1.97-8.08 1.97-17.33 1.97H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 49.1 0 44.46 0 35.21v-10.2Z"
  6992. />
  6993. <path
  6994. fill="#2BEE6C"
  6995. d="M16.1 60c-3.82-.18-6.4-.64-8.53-1.86a15 15 0 0 1-5.6-5.6C.55 50.06.16 46.97.04 41.98L4.2 40.6a4 4 0 0 0 2.48-2.39l4.65-12.4a2 2 0 0 1 2.5-1.2l2.53.84a2 2 0 0 0 2.43-1l2.96-5.94a2 2 0 0 1 3.7.32l3.78 12.58a2 2 0 0 0 3.03 1.09l3.34-2.23a2 2 0 0 0 .65-.7l5.3-9.72a2 2 0 0 1 1.42-1.01l4.14-.69a2 2 0 0 1 1.6.44l3.9 3.24a2 2 0 0 0 2.7-.12l4.62-4.63c.08 2.2.08 4.8.08 7.93v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-2.13 1.22-4.7 1.68-8.54 1.86H16.11Z"
  6996. />
  6997. <path
  6998. fill="#fff"
  6999. d="m.07 43.03-.05-2.1 3.85-1.28a3 3 0 0 0 1.86-1.79l4.66-12.4a3 3 0 0 1 3.75-1.8l2.53.84a1 1 0 0 0 1.21-.5l2.97-5.94a3 3 0 0 1 5.56.48l3.77 12.58a1 1 0 0 0 1.51.55l3.34-2.23a1 1 0 0 0 .33-.35l5.3-9.71a3 3 0 0 1 2.14-1.53l4.13-.69a3 3 0 0 1 2.41.66l3.9 3.24a1 1 0 0 0 1.34-.06l5.28-5.28c.05.85.08 1.75.1 2.73L56 22.41a3 3 0 0 1-4.04.19l-3.9-3.25a1 1 0 0 0-.8-.21l-4.13.69a1 1 0 0 0-.72.5l-5.3 9.72a3 3 0 0 1-.97 1.05l-3.34 2.23a3 3 0 0 1-4.53-1.63l-3.78-12.58a1 1 0 0 0-1.85-.16l-2.97 5.94a3 3 0 0 1-3.63 1.5l-2.53-.84a1 1 0 0 0-1.25.6l-4.65 12.4a5 5 0 0 1-3.1 3L.07 43.02Z"
  7000. />
  7001. <path
  7002. fill="#fff"
  7003. fill-rule="evenodd"
  7004. d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
  7005. clip-rule="evenodd"
  7006. />
  7007. <path fill="#fff" d="M45 .28v59.66l-2 .1V.19c.7.02 1.37.05 2 .1Z" />
  7008. <path fill="#2BEE6C" d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" />
  7009. <path
  7010. stroke="#fff"
  7011. stroke-opacity=".1"
  7012. d="M.5 25.01c0-4.63 0-8.08.24-10.8.25-2.7.73-4.64 1.66-6.28a14.5 14.5 0 0 1 5.42-5.41C9.46 1.58 11.39 1.1 14.1.85A133 133 0 0 1 24.9.61h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.67a14.5 14.5 0 0 1 5.42 5.4c.93 1.65 1.41 3.58 1.66 6.3.24 2.71.24 6.16.24 10.79v10.2c0 4.64 0 8.08-.24 10.8-.25 2.7-.73 4.65-1.66 6.28a14.5 14.5 0 0 1-5.42 5.42c-1.63.93-3.57 1.41-6.28 1.66-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.66a14.5 14.5 0 0 1-5.42-5.42C1.47 50.66 1 48.72.74 46.01A133 133 0 0 1 .5 35.2v-10.2Z"
  7013. />
  7014. </g>
  7015. <defs>
  7016. <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath>
  7017. </defs>
  7018. </svg>`,tn=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7019. <g clip-path="url(#a)">
  7020. <rect width="60" height="60" fill="#C653C6" rx="30" />
  7021. <path
  7022. fill="#E87DE8"
  7023. d="M57.98.01v19.5a4.09 4.09 0 0 0-2.63 2.29L50.7 34.2a2 2 0 0 1-2.5 1.2l-2.53-.84a2 2 0 0 0-2.42 1l-2.97 5.94a2 2 0 0 1-3.7-.32L32.8 28.6a2 2 0 0 0-3.02-1.09l-3.35 2.23a2 2 0 0 0-.64.7l-5.3 9.72a2 2 0 0 1-1.43 1.01l-4.13.69a2 2 0 0 1-1.61-.44l-3.9-3.24a2 2 0 0 0-2.69.12L2.1 42.93.02 43V.01h57.96Z"
  7024. />
  7025. <path
  7026. fill="#fff"
  7027. d="m61.95 16.94.05 2.1-3.85 1.28a3 3 0 0 0-1.86 1.79l-4.65 12.4a3 3 0 0 1-3.76 1.8l-2.53-.84a1 1 0 0 0-1.2.5l-2.98 5.94a3 3 0 0 1-5.55-.48l-3.78-12.58a1 1 0 0 0-1.5-.55l-3.35 2.23a1 1 0 0 0-.32.35l-5.3 9.72a3 3 0 0 1-2.14 1.52l-4.14.69a3 3 0 0 1-2.41-.66l-3.9-3.24a1 1 0 0 0-1.34.06l-5.28 5.28c-.05-.84-.08-1.75-.1-2.73l3.97-3.96a3 3 0 0 1 4.04-.19l3.89 3.25a1 1 0 0 0 .8.21l4.14-.68a1 1 0 0 0 .71-.51l5.3-9.71a3 3 0 0 1 .97-1.06l3.34-2.23a3 3 0 0 1 4.54 1.63l3.77 12.58a1 1 0 0 0 1.86.16l2.96-5.93a3 3 0 0 1 3.64-1.5l2.52.83a1 1 0 0 0 1.25-.6l4.66-12.4a5 5 0 0 1 3.1-2.99l4.43-1.48Z"
  7028. />
  7029. <path
  7030. fill="#fff"
  7031. fill-rule="evenodd"
  7032. d="M35.5 27a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
  7033. clip-rule="evenodd"
  7034. />
  7035. <path fill="#fff" d="M31 0v60h-2V0h2Z" />
  7036. <path fill="#E87DE8" d="M33.5 27a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" />
  7037. </g>
  7038. <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" />
  7039. <defs>
  7040. <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath>
  7041. </defs>
  7042. </svg> `,ta=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7043. <g clip-path="url(#a)">
  7044. <rect width="60" height="60" fill="#987DE8" rx="30" />
  7045. <path
  7046. fill="#fff"
  7047. fill-rule="evenodd"
  7048. d="m15.48 28.37 11.97-19.3a3 3 0 0 1 5.1 0l11.97 19.3a6 6 0 0 1 .9 3.14v.03a6 6 0 0 1-1.16 3.56L33.23 50.2a4 4 0 0 1-6.46 0L15.73 35.1a6 6 0 0 1-1.15-3.54v-.03a6 6 0 0 1 .9-3.16Z"
  7049. clip-rule="evenodd"
  7050. />
  7051. <path
  7052. fill="#643CDD"
  7053. d="M30.84 10.11a1 1 0 0 0-.84-.46V24.5l12.6 5.53a2 2 0 0 0-.28-1.4L30.84 10.11Z"
  7054. />
  7055. <path
  7056. fill="#BDADEB"
  7057. d="M30 9.65a1 1 0 0 0-.85.46L17.66 28.64a2 2 0 0 0-.26 1.39L30 24.5V9.65Z"
  7058. />
  7059. <path
  7060. fill="#643CDD"
  7061. d="M30 50.54a1 1 0 0 0 .8-.4l11.24-15.38c.3-.44-.2-1-.66-.73l-9.89 5.68a3 3 0 0 1-1.5.4v10.43Z"
  7062. />
  7063. <path
  7064. fill="#BDADEB"
  7065. d="m17.97 34.76 11.22 15.37c.2.28.5.41.8.41V40.11a3 3 0 0 1-1.49-.4l-9.88-5.68c-.47-.27-.97.3-.65.73Z"
  7066. />
  7067. <path
  7068. fill="#401AB3"
  7069. d="M42.6 30.03 30 24.5v13.14a3 3 0 0 0 1.5-.4l10.14-5.83a2 2 0 0 0 .95-1.38Z"
  7070. />
  7071. <path
  7072. fill="#7C5AE2"
  7073. d="M30 37.64V24.46l-12.6 5.57a2 2 0 0 0 .97 1.39l10.13 5.82a3 3 0 0 0 1.5.4Z"
  7074. />
  7075. </g>
  7076. <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" />
  7077. <defs>
  7078. <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath>
  7079. </defs>
  7080. </svg> `,to=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7081. <rect width="60" height="60" fill="#1DC956" rx="3" />
  7082. <path
  7083. fill="#1FAD7E"
  7084. stroke="#fff"
  7085. stroke-width="2"
  7086. d="m30.49 29.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z"
  7087. />
  7088. <path
  7089. fill="#2BEE6C"
  7090. stroke="#fff"
  7091. stroke-width="2"
  7092. d="m30.49 19.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z"
  7093. />
  7094. <path
  7095. fill="#86F999"
  7096. stroke="#fff"
  7097. stroke-width="2"
  7098. d="m46.69 21.06-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-6.32-3.51-.18-.1c-2.33-1.3-3.72-2.06-5.22-2.33a9 9 0 0 0-3.08 0c-1.5.27-2.9 1.04-5.22 2.33l-.17.1-6.33 3.51-.05.03c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45Z"
  7099. />
  7100. <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
  7101. </svg>`,ts=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7102. <rect width="60" height="60" fill="#C653C6" rx="3" />
  7103. <path
  7104. fill="#fff"
  7105. d="M20.03 15.22C20 15.6 20 16.07 20 17v2.8c0 1.14 0 1.7-.2 2.12-.15.31-.3.5-.58.71-.37.28-1.06.42-2.43.7-.59.12-1.11.29-1.6.51a9 9 0 0 0-4.35 4.36C10 30 10 32.34 10 37c0 4.66 0 7 .84 8.8a9 9 0 0 0 4.36 4.36C17 51 19.34 51 24 51h12c4.66 0 7 0 8.8-.84a9 9 0 0 0 4.36-4.36C50 44 50 41.66 50 37c0-4.66 0-7-.84-8.8a9 9 0 0 0-4.36-4.36c-.48-.22-1-.39-1.6-.5-1.36-.29-2.05-.43-2.42-.7-.27-.22-.43-.4-.58-.72-.2-.42-.2-.98-.2-2.11V17c0-.93 0-1.4-.03-1.78a9 9 0 0 0-8.19-8.19C31.4 7 30.93 7 30 7s-1.4 0-1.78.03a9 9 0 0 0-8.19 8.19Z"
  7106. />
  7107. <path
  7108. fill="#E87DE8"
  7109. d="M22 17c0-.93 0-1.4.04-1.78a7 7 0 0 1 6.18-6.18C28.6 9 29.07 9 30 9s1.4 0 1.78.04a7 7 0 0 1 6.18 6.18c.04.39.04.85.04 1.78v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.4-.08-1.78a4 4 0 0 0-3.14-3.14C31.39 12 30.93 12 30 12s-1.4 0-1.78.08a4 4 0 0 0-3.14 3.14c-.08.39-.08.85-.08 1.78v4.5a1.5 1.5 0 0 1-3 0V17Z"
  7110. />
  7111. <path
  7112. fill="#E87DE8"
  7113. fill-rule="evenodd"
  7114. d="M12 36.62c0-4.32 0-6.48.92-8.09a7 7 0 0 1 2.61-2.61C17.14 25 19.3 25 23.62 25h6.86c.46 0 .7 0 .9.02 2.73.22 4.37 2.43 4.62 4.98.27-2.7 2.11-5 5.02-5A6.98 6.98 0 0 1 48 31.98v5.4c0 4.32 0 6.48-.92 8.09a7 7 0 0 1-2.61 2.61c-1.61.92-3.77.92-8.09.92h-5.86c-.46 0-.7 0-.9-.02-2.73-.22-4.37-2.43-4.62-4.98-.26 2.58-1.94 4.82-4.71 4.99l-.7.01c-.55 0-.82 0-1.05-.02a7 7 0 0 1-6.52-6.52c-.02-.23-.02-.5-.02-1.05v-4.79Zm21.24-.27a4 4 0 1 0-6.48 0 31.28 31.28 0 0 1 1.57 2.23c.17.4.17.81.17 1.24V42.5a1.5 1.5 0 0 0 3 0V39.82c0-.43 0-.85.17-1.24.09-.2.58-.87 1.57-2.23Z"
  7115. clip-rule="evenodd"
  7116. />
  7117. <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
  7118. </svg>`,tc=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7119. <g clip-path="url(#a)">
  7120. <path
  7121. fill="#EB8B47"
  7122. d="M0 24.9c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02 0 15.65 0 24.9 0h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.02 60 15.65 60 24.9v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6C48.98 60 44.35 60 35.1 60H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 48.98 0 44.35 0 35.1V24.9Z"
  7123. />
  7124. <path
  7125. stroke="#062B2B"
  7126. stroke-opacity=".1"
  7127. d="M.5 24.9c0-4.64 0-8.08.24-10.8.25-2.7.73-4.65 1.66-6.28A14.5 14.5 0 0 1 7.82 2.4C9.46 1.47 11.39 1 14.1.74A133 133 0 0 1 24.9.5h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.66a14.5 14.5 0 0 1 5.42 5.42c.93 1.63 1.41 3.57 1.66 6.28.24 2.72.24 6.16.24 10.8v10.2c0 4.63 0 8.08-.24 10.8-.25 2.7-.73 4.64-1.66 6.28a14.5 14.5 0 0 1-5.42 5.41c-1.63.94-3.57 1.42-6.28 1.67-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.67a14.5 14.5 0 0 1-5.42-5.4C1.47 50.53 1 48.6.74 45.88A133 133 0 0 1 .5 35.1V24.9Z"
  7128. />
  7129. <path
  7130. fill="#FF974C"
  7131. stroke="#fff"
  7132. stroke-width="2"
  7133. d="M39.2 29.2a13 13 0 1 0-18.4 0l1.3 1.28a12.82 12.82 0 0 1 2.1 2.39 6 6 0 0 1 .6 1.47c.2.76.2 1.56.2 3.17v11.24c0 1.08 0 1.61.13 2.12a4 4 0 0 0 .41.98c.26.45.64.83 1.4 1.6l.3.29c.65.65.98.98 1.36 1.09.26.07.54.07.8 0 .38-.11.7-.44 1.36-1.1l3.48-3.47c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.47-.48c-.65-.65-.98-.98-1.09-1.36a1.5 1.5 0 0 1 0-.8c.1-.38.44-.7 1.1-1.36l.47-.48c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.48-.5c-.65-.64-.98-.97-1.08-1.35a1.5 1.5 0 0 1 0-.79c.1-.38.42-.7 1.06-1.36l5.46-5.55Z"
  7134. />
  7135. <circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2" />
  7136. </g>
  7137. <defs>
  7138. <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath>
  7139. </defs>
  7140. </svg> `,tl=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7141. <g clip-path="url(#a)">
  7142. <rect width="60" height="60" fill="#00ACE6" rx="30" />
  7143. <circle cx="64" cy="39" r="50" fill="#1AC6FF" stroke="#fff" stroke-width="2" />
  7144. <circle cx="78" cy="30" r="50" fill="#4DD2FF" stroke="#fff" stroke-width="2" />
  7145. <circle cx="72" cy="15" r="35" fill="#80DFFF" stroke="#fff" stroke-width="2" />
  7146. <circle cx="34" cy="-17" r="45" stroke="#fff" stroke-width="2" />
  7147. <circle cx="34" cy="-5" r="50" stroke="#fff" stroke-width="2" />
  7148. <circle cx="30" cy="45" r="4" fill="#4DD2FF" stroke="#fff" stroke-width="2" />
  7149. <circle cx="39.5" cy="27.5" r="4" fill="#80DFFF" stroke="#fff" stroke-width="2" />
  7150. <circle cx="16" cy="24" r="4" fill="#19C6FF" stroke="#fff" stroke-width="2" />
  7151. </g>
  7152. <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" />
  7153. <defs>
  7154. <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath>
  7155. </defs>
  7156. </svg>`,tu=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7157. <g clip-path="url(#a)">
  7158. <rect width="60" height="60" fill="#C653C6" rx="3" />
  7159. <path
  7160. fill="#E87DE8"
  7161. stroke="#fff"
  7162. stroke-width="2"
  7163. d="M52.1 47.34c0-4.24-1.44-9.55-5.9-12.4a2.86 2.86 0 0 0-1.6-3.89v-.82c0-1.19-.52-2.26-1.35-3a4.74 4.74 0 0 0-2.4-6.26v-5.5a11.31 11.31 0 1 0-22.63 0v2.15a3.34 3.34 0 0 0-1.18 5.05 4.74 4.74 0 0 0-.68 6.44A5.22 5.22 0 0 0 14 35.92c-3.06 4.13-6.1 8.3-6.1 15.64 0 2.67.37 4.86.74 6.39a20.3 20.3 0 0 0 .73 2.39l.02.04v.01l.92-.39-.92.4.26.6h38.26l.3-.49-.87-.51.86.5.02-.01.03-.07a16.32 16.32 0 0 0 .57-1.05c.36-.72.85-1.74 1.33-2.96a25.51 25.51 0 0 0 1.94-9.07Z"
  7164. />
  7165. <path
  7166. fill="#fff"
  7167. fill-rule="evenodd"
  7168. d="M26.5 29.5c-3-.5-5.5-3-5.5-7v-7c0-.47 0-.7.03-.9a3 3 0 0 1 2.58-2.57c.2-.03.42-.03.89-.03 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.4 0 2.1 0 2.65.23a3 3 0 0 1 1.62 1.62c.23.55.23 1.25.23 2.65v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.5 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z"
  7169. clip-rule="evenodd"
  7170. />
  7171. </g>
  7172. <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
  7173. <defs>
  7174. <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="3" /></clipPath>
  7175. </defs>
  7176. </svg> `,td=(0,s.JW)`<svg fill="none" viewBox="0 0 60 60">
  7177. <rect width="60" height="60" fill="#794CFF" rx="3" />
  7178. <path
  7179. fill="#987DE8"
  7180. stroke="#fff"
  7181. stroke-width="2"
  7182. d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z"
  7183. />
  7184. <path fill="#fff" d="M37.5 25h10v10h-10z" />
  7185. <path fill="#4019B2" d="M42.5 25h5v10h-5z" />
  7186. <path fill="#fff" d="M19.5 25h10v10h-10z" />
  7187. <path fill="#4019B2" d="M24.5 25h5v10h-5z" />
  7188. <path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z" />
  7189. <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" />
  7190. </svg>`,th=(0,s.JW)`<svg
  7191. viewBox="0 0 60 60"
  7192. fill="none"
  7193. >
  7194. <g clip-path="url(#1)">
  7195. <rect width="60" height="60" rx="30" fill="#00ACE6" />
  7196. <path
  7197. d="M59 73C59 89.0163 46.0163 102 30 102C13.9837 102 1 89.0163 1 73C1 56.9837 12 44 30 44C48 44 59 56.9837 59 73Z"
  7198. fill="#1AC6FF"
  7199. stroke="white"
  7200. stroke-width="2"
  7201. />
  7202. <path
  7203. d="M18.6904 19.9015C19.6264 15.3286 23.3466 11.8445 27.9708 11.2096C29.3231 11.024 30.6751 11.0238 32.0289 11.2096C36.6532 11.8445 40.3733 15.3286 41.3094 19.9015C41.4868 20.7681 41.6309 21.6509 41.7492 22.5271C41.8811 23.5041 41.8811 24.4944 41.7492 25.4715C41.6309 26.3476 41.4868 27.2304 41.3094 28.097C40.3733 32.6699 36.6532 36.154 32.0289 36.7889C30.6772 36.9744 29.3216 36.9743 27.9708 36.7889C23.3466 36.154 19.6264 32.6699 18.6904 28.097C18.513 27.2304 18.3689 26.3476 18.2506 25.4715C18.1186 24.4944 18.1186 23.5041 18.2506 22.5271C18.3689 21.6509 18.513 20.7681 18.6904 19.9015Z"
  7204. fill="#1AC6FF"
  7205. stroke="white"
  7206. stroke-width="2"
  7207. />
  7208. <circle cx="24.5" cy="23.5" r="1.5" fill="white" />
  7209. <circle cx="35.5" cy="23.5" r="1.5" fill="white" />
  7210. <path
  7211. d="M31 20L28 28H32"
  7212. stroke="white"
  7213. stroke-width="2"
  7214. stroke-linecap="round"
  7215. stroke-linejoin="round"
  7216. />
  7217. </g>
  7218. <rect x="0.5" y="0.5" width="59" height="59" rx="29.5" stroke="white" stroke-opacity="0.1" />
  7219. <defs>
  7220. <clipPath id="1">
  7221. <rect width="60" height="60" rx="30" fill="white" />
  7222. </clipPath>
  7223. </defs>
  7224. </svg> `,tp=(0,s.JW)`<svg viewBox="0 0 60 60" fill="none">
  7225. <g clip-path="url(#1)">
  7226. <path
  7227. d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.6985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z"
  7228. fill="#794CFF"
  7229. />
  7230. <path
  7231. d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z"
  7232. stroke="#062B2B"
  7233. stroke-opacity="0.1"
  7234. />
  7235. <path
  7236. d="M35.1403 31.5016C35.1193 30.9637 35.388 30.4558 35.8446 30.1707C36.1207 29.9982 36.4761 29.8473 36.7921 29.7685C37.3143 29.6382 37.8664 29.7977 38.2386 30.1864C38.8507 30.8257 39.3004 31.6836 39.8033 32.408C40.2796 33.0942 41.4695 33.2512 41.9687 32.5047C42.4839 31.7341 42.9405 30.8229 43.572 30.1399C43.9375 29.7447 44.4866 29.5756 45.0111 29.6967C45.3283 29.7701 45.6863 29.9147 45.9655 30.0823C46.4269 30.3595 46.7045 30.8626 46.6928 31.4008C46.6731 32.3083 46.3764 33.2571 46.2158 34.1473C46.061 35.0048 46.9045 35.8337 47.7592 35.664C48.6464 35.4878 49.5899 35.1747 50.497 35.1391C51.0348 35.1181 51.5427 35.3868 51.8279 35.8433C52.0004 36.1195 52.1513 36.4749 52.2301 36.7908C52.3604 37.3131 52.2009 37.8651 51.8121 38.2374C51.1729 38.8495 50.3151 39.2991 49.5908 39.8019C48.9046 40.2782 48.7473 41.4683 49.4939 41.9675C50.2644 42.4827 51.1757 42.9393 51.8587 43.5708C52.2539 43.9362 52.423 44.4854 52.3018 45.0099C52.2285 45.3271 52.0839 45.6851 51.9162 45.9642C51.6391 46.4257 51.1359 46.7032 50.5978 46.6916C49.6903 46.6719 48.7417 46.3753 47.8516 46.2146C46.9939 46.0598 46.1648 46.9035 46.3346 47.7583C46.5108 48.6454 46.8239 49.5888 46.8594 50.4958C46.8805 51.0336 46.6117 51.5415 46.1552 51.8267C45.879 51.9992 45.5236 52.15 45.2077 52.2289C44.6854 52.3592 44.1334 52.1997 43.7611 51.8109C43.1491 51.1718 42.6996 50.314 42.1968 49.5897C41.7203 48.9034 40.5301 48.7463 40.0309 49.493C39.5157 50.2634 39.0592 51.1746 38.4278 51.8574C38.0623 52.2527 37.5132 52.4218 36.9887 52.3006C36.6715 52.2273 36.3135 52.0826 36.0343 51.915C35.5729 51.6379 35.2953 51.1347 35.307 50.5966C35.3267 49.6891 35.6233 48.7405 35.7839 47.8505C35.9388 46.9928 35.0951 46.1636 34.2402 46.3334C33.3531 46.5096 32.4098 46.8227 31.5028 46.8582C30.9649 46.8793 30.457 46.6105 30.1719 46.154C29.9994 45.8778 29.8485 45.5224 29.7697 45.2065C29.6394 44.6842 29.7989 44.1322 30.1877 43.7599C30.8269 43.1479 31.6847 42.6982 32.4091 42.1954C33.0954 41.7189 33.2522 40.5289 32.5056 40.0297C31.7351 39.5145 30.824 39.058 30.1411 38.4265C29.7459 38.0611 29.5768 37.5119 29.698 36.9875C29.7713 36.6702 29.9159 36.3122 30.0836 36.0331C30.3607 35.5717 30.8638 35.2941 31.402 35.3058C32.3095 35.3255 33.2583 35.6221 34.1485 35.7828C35.006 35.9376 35.8349 35.094 35.6652 34.2393C35.489 33.3521 35.1759 32.4087 35.1403 31.5016Z"
  7237. fill="#906EF7"
  7238. stroke="white"
  7239. stroke-width="2"
  7240. />
  7241. <path
  7242. d="M20.7706 8.22357C20.9036 7.51411 21.5231 7 22.2449 7H23.7551C24.4769 7 25.0964 7.51411 25.2294 8.22357C25.5051 9.69403 25.4829 11.6321 27.1202 12.2606C27.3092 12.3331 27.4958 12.4105 27.6798 12.4926C29.2818 13.2072 30.6374 11.8199 31.8721 10.9752C32.4678 10.5676 33.2694 10.6421 33.7798 11.1525L34.8477 12.2204C35.3581 12.7308 35.4326 13.5323 35.025 14.128C34.1802 15.3627 32.7931 16.7183 33.5077 18.3202C33.5898 18.5043 33.6672 18.6909 33.7398 18.88C34.3683 20.5171 36.3061 20.4949 37.7764 20.7706C38.4859 20.9036 39 21.5231 39 22.2449V23.7551C39 24.4769 38.4859 25.0964 37.7764 25.2294C36.3061 25.5051 34.3685 25.483 33.7401 27.1201C33.6675 27.3093 33.59 27.4961 33.5079 27.6803C32.7934 29.282 34.1803 30.6374 35.025 31.8719C35.4326 32.4677 35.3581 33.2692 34.8477 33.7796L33.7798 34.8475C33.2694 35.3579 32.4678 35.4324 31.8721 35.0248C30.6376 34.1801 29.2823 32.7934 27.6806 33.508C27.4962 33.5903 27.3093 33.6678 27.12 33.7405C25.483 34.3688 25.5051 36.3062 25.2294 37.7764C25.0964 38.4859 24.4769 39 23.7551 39H22.2449C21.5231 39 20.9036 38.4859 20.7706 37.7764C20.4949 36.3062 20.517 34.3688 18.88 33.7405C18.6908 33.6678 18.5039 33.5903 18.3196 33.5081C16.7179 32.7936 15.3625 34.1804 14.1279 35.0251C13.5322 35.4327 12.7307 35.3582 12.2203 34.8478L11.1524 33.7799C10.642 33.2695 10.5675 32.4679 10.9751 31.8722C11.8198 30.6376 13.2067 29.2822 12.4922 27.6804C12.41 27.4962 12.3325 27.3093 12.2599 27.1201C11.6315 25.483 9.69392 25.5051 8.22357 25.2294C7.51411 25.0964 7 24.4769 7 23.7551V22.2449C7 21.5231 7.51411 20.9036 8.22357 20.7706C9.69394 20.4949 11.6317 20.5171 12.2602 18.88C12.3328 18.6909 12.4103 18.5042 12.4924 18.3201C13.207 16.7181 11.8198 15.3625 10.975 14.1278C10.5674 13.5321 10.6419 12.7305 11.1523 12.2201L12.2202 11.1522C12.7306 10.6418 13.5322 10.5673 14.1279 10.9749C15.3626 11.8197 16.7184 13.2071 18.3204 12.4925C18.5044 12.4105 18.6909 12.3331 18.8799 12.2606C20.5171 11.6321 20.4949 9.69403 20.7706 8.22357Z"
  7243. fill="#906EF7"
  7244. stroke="white"
  7245. stroke-width="2"
  7246. />
  7247. <circle cx="23" cy="23" r="6" fill="#794CFF" stroke="white" stroke-width="2" />
  7248. <circle cx="41" cy="41" r="4" fill="#794CFF" stroke="white" stroke-width="2" />
  7249. </g>
  7250. <defs>
  7251. <clipPath id="1">
  7252. <rect width="60" height="60" fill="white" />
  7253. </clipPath>
  7254. </defs>
  7255. </svg> `,tf=(0,s.JW)`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">
  7256. <g clip-path="url(#clip0_187_29)">
  7257. <path d="M1.18187e-05 15.8055C1.18187e-05 9.8015 -5.19442e-07 6.91338 1.69991e-08 0C4.5 3.72236e-05 9.62249 0 16.5 0L23.5 4.31399e-05C29.9349 4.31399e-05 35.5 0.000206332 40 3.73468e-05C40 2.77754 40 9.36708 40 15.8055V22.8364C40 29.2647 40 33.7962 40 40C31.5 40 29.8337 40 23.4 40H16.6C10.5092 40 6.50004 40 4.04289e-05 40C3.05176e-05 32.2453 1.18187e-05 29.6382 1.18187e-05 22.8364V15.8055Z" fill="#0052FF"/>
  7258. <path d="M20.0236 26.5C16.4342 26.5 13.5236 23.5931 13.5236 20C13.5236 16.4069 16.4342 13.5 20.0236 13.5C23.2411 13.5 25.9134 15.8472 26.4261 18.9167H32.9731C32.4206 12.2433 26.8342 7 20.02 7C12.8411 7 7.02002 12.8211 7.02002 20C7.02002 27.1789 12.8411 33 20.02 33C26.8342 33 32.4206 27.7567 32.9731 21.0833H26.4225C25.9061 24.1528 23.2411 26.5 20.0236 26.5Z" fill="white"/>
  7259. </g>
  7260. <defs>
  7261. <clipPath id="clip0_187_29">
  7262. <rect width="40" height="40" fill="white"/>
  7263. </clipPath>
  7264. </defs>
  7265. </svg>`,tg=(0,s.JW)`
  7266. <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
  7267. <g clip-path="url(#a)">
  7268. <path
  7269. d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z"
  7270. fill="#7D00FF"
  7271. />
  7272. <path
  7273. d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z"
  7274. stroke="#fff"
  7275. stroke-opacity=".05"
  7276. />
  7277. <path
  7278. d="M28.306 15.381a3.69 3.69 0 1 0 0-7.381 3.69 3.69 0 0 0 0 7.381ZM16.987 32a8.991 8.991 0 1 1 .016-17.983A8.991 8.991 0 0 1 16.988 32Z"
  7279. fill="#fff"
  7280. />
  7281. </g>
  7282. <defs>
  7283. <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  7284. </defs>
  7285. </svg>
  7286. `,tw=(0,s.JW)`
  7287. <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
  7288. <g clip-path="url(#a)">
  7289. <path
  7290. d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z"
  7291. fill="#635BFF"
  7292. />
  7293. <path
  7294. d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z"
  7295. stroke="#fff"
  7296. stroke-opacity=".05"
  7297. />
  7298. <path
  7299. fill-rule="evenodd"
  7300. clip-rule="evenodd"
  7301. d="M18.299 15.147c0-1.028.844-1.424 2.242-1.424 2.004 0 4.536.607 6.54 1.688V9.213C24.892 8.343 22.73 8 20.541 8c-5.354 0-8.915 2.796-8.915 7.464 0 7.279 10.022 6.118 10.022 9.257 0 1.213-1.055 1.609-2.531 1.609-2.19 0-4.985-.897-7.2-2.11v6.277a18.283 18.283 0 0 0 7.2 1.503c5.485 0 9.257-2.716 9.257-7.437-.027-7.86-10.075-6.462-10.075-9.416Z"
  7302. fill="#fff"
  7303. />
  7304. </g>
  7305. <defs>
  7306. <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  7307. </defs>
  7308. </svg>
  7309. `,tm=(0,s.JW)`
  7310. <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
  7311. <g clip-path="url(#a)">
  7312. <path
  7313. d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z"
  7314. fill="#fff"
  7315. />
  7316. <path
  7317. d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z"
  7318. stroke="#fff"
  7319. stroke-opacity=".05"
  7320. />
  7321. <path
  7322. d="M18.606 12.642a.781.781 0 0 0-.771.66l-1.281 8.125a.78.78 0 0 1 .77-.66h3.755a7.668 7.668 0 0 0 7.57-6.49 6.26 6.26 0 0 0 .075-.843c-.96-.504-2.089-.792-3.325-.792h-6.793Z"
  7323. fill="#001C64"
  7324. />
  7325. <path
  7326. d="M28.724 13.434c-.006.282-.03.564-.075.843a7.668 7.668 0 0 1-7.57 6.491h-3.754a.78.78 0 0 0-.771.66l-1.916 12.15a.634.634 0 0 0 .626.734h4.075a.781.781 0 0 0 .77-.66l1.074-6.807a.781.781 0 0 1 .772-.66h2.4a7.668 7.668 0 0 0 7.57-6.491c.415-2.651-.92-5.064-3.201-6.26Z"
  7327. fill="#0070E0"
  7328. />
  7329. <path
  7330. d="M13.977 7.226a.78.78 0 0 0-.771.658l-3.198 20.277a.634.634 0 0 0 .626.733h4.742l1.178-7.467 1.281-8.125a.782.782 0 0 1 .771-.66H25.4c1.237 0 2.364.289 3.325.792.065-3.4-2.74-6.208-6.599-6.208h-8.148Z"
  7331. fill="#003087"
  7332. />
  7333. </g>
  7334. <defs>
  7335. <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
  7336. </defs>
  7337. </svg>
  7338. `,tb=(0,s.JW)`<svg width="60" height="60" viewBox="0 0 60 60" fill="none">
  7339. <g clip-path="url(#clip0_13859_31161)">
  7340. <path d="M0 24.8995C0 15.6481 0 11.0223 1.97053 7.56763C3.3015 5.2342 5.23468 3.30101 7.56812 1.97004C11.0228 -0.000488281 15.6485 -0.000488281 24.9 -0.000488281H35.1C44.3514 -0.000488281 48.9772 -0.000488281 52.4319 1.97004C54.7653 3.30101 56.6985 5.2342 58.0295 7.56763C60 11.0223 60 15.6481 60 24.8995V35.0995C60 44.351 60 48.9767 58.0295 52.4314C56.6985 54.7648 54.7653 56.698 52.4319 58.029C48.9772 59.9995 44.3514 59.9995 35.1 59.9995H24.9C15.6485 59.9995 11.0228 59.9995 7.56812 58.029C5.23468 56.698 3.3015 54.7648 1.97053 52.4314C0 48.9767 0 44.351 0 35.0995V24.8995Z" fill="#EB8B47"/>
  7341. <path d="M0.5 24.8995C0.5 20.2647 0.50047 16.8216 0.744315 14.1045C0.987552 11.3941 1.46987 9.45455 2.40484 7.81536C3.69145 5.55971 5.56019 3.69096 7.81585 2.40435C9.45504 1.46938 11.3946 0.987064 14.105 0.743826C16.8221 0.499981 20.2652 0.499512 24.9 0.499512H35.1C39.7348 0.499512 43.1779 0.499981 45.895 0.743826C48.6054 0.987064 50.545 1.46938 52.1841 2.40435C54.4398 3.69096 56.3086 5.55971 57.5952 7.81536C58.5301 9.45455 59.0124 11.3941 59.2557 14.1045C59.4995 16.8216 59.5 20.2647 59.5 24.8995V35.0995C59.5 39.7343 59.4995 43.1774 59.2557 45.8945C59.0124 48.6049 58.5301 50.5445 57.5952 52.1837C56.3086 54.4393 54.4398 56.3081 52.1841 57.5947C50.545 58.5296 48.6054 59.012 45.895 59.2552C43.1779 59.499 39.7348 59.4995 35.1 59.4995H24.9C20.2652 59.4995 16.8221 59.499 14.105 59.2552C11.3946 59.012 9.45504 58.5296 7.81585 57.5947C5.56019 56.3081 3.69145 54.4393 2.40484 52.1837C1.46987 50.5445 0.987552 48.6049 0.744315 45.8945C0.50047 43.1774 0.5 39.7343 0.5 35.0995V24.8995Z" stroke="#141414" stroke-opacity="0.1"/>
  7342. <path d="M13 26.0335C13 21.7838 13 19.659 14.0822 18.1694C14.4318 17.6883 14.8548 17.2653 15.3359 16.9157C16.8255 15.8335 18.9503 15.8335 23.2 15.8335H36.8C41.0497 15.8335 43.1745 15.8335 44.6641 16.9157C45.1452 17.2653 45.5682 17.6883 45.9178 18.1694C47 19.659 47 21.7838 47 26.0335V33.9668C47 38.2165 47 40.3414 45.9178 41.831C45.5682 42.312 45.1452 42.7351 44.6641 43.0846C43.1745 44.1668 41.0497 44.1668 36.8 44.1668H23.2C18.9503 44.1668 16.8255 44.1668 15.3359 43.0846C14.8548 42.7351 14.4318 42.312 14.0822 41.831C13 40.3414 13 38.2165 13 33.9668V26.0335Z" fill="#FF974C" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7343. <path d="M39.5 36.667H36.6666" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
  7344. <path d="M45.2 23.0645H14.8C14.0501 23.0645 13.6751 23.0645 13.4122 23.2554C13.3273 23.3171 13.2527 23.3918 13.191 23.4767C13 23.7395 13 24.1145 13 24.8645V27.2645C13 28.0144 13 28.3894 13.191 28.6522C13.2527 28.7371 13.3273 28.8118 13.4122 28.8735C13.6751 29.0645 14.0501 29.0645 14.8 29.0645H45.2C45.9499 29.0645 46.3249 29.0645 46.5878 28.8735C46.6727 28.8118 46.7473 28.7371 46.809 28.6522C47 28.3894 47 28.0144 47 27.2645V24.8645C47 24.1145 47 23.7395 46.809 23.4767C46.7473 23.3918 46.6727 23.3171 46.5878 23.2554C46.3249 23.0645 45.9499 23.0645 45.2 23.0645Z" fill="white" fill-opacity="0.4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7345. </g>
  7346. <defs>
  7347. <clipPath id="clip0_13859_31161">
  7348. <rect width="60" height="60" fill="white"/>
  7349. </clipPath>
  7350. </defs>
  7351. </svg>`,tv=(0,s.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
  7352. <rect width="64" height="64" rx="30" fill="#1DC956"/>
  7353. <rect x="0.5" y="0.5" width="63" height="63" rx="29.5" stroke="#141414" stroke-opacity="0.1"/>
  7354. <path d="M32.4053 19.8031C35.3901 19.8031 38.0431 20.8349 40.1619 22.8247L45.9656 17.0211C42.4465 13.7416 37.8773 11.7333 32.4053 11.7333C24.4829 11.7333 17.6475 16.2841 14.3127 22.9168L21.056 28.1493C22.6589 23.359 27.136 19.8031 32.4053 19.8031Z" fill="#1DC956" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7355. <path d="M32.4053 52.2667C37.8773 52.2667 42.465 50.4611 45.8182 47.3658L39.2407 42.2623C37.4351 43.4783 35.1321 44.2153 32.4053 44.2153C27.136 44.2153 22.6589 40.6594 21.056 35.8691L14.3127 41.1016C17.6475 47.7159 24.4829 52.2667 32.4053 52.2667Z" fill="#2BEE6C"/>
  7356. <path d="M21.056 35.8507L19.5636 36.993L14.3127 41.0832M39.2407 42.2623L45.8182 47.3658C42.465 50.4611 37.8773 52.2667 32.4053 52.2667C24.4829 52.2667 17.6475 47.7159 14.3127 41.1016L21.056 35.8691C22.6589 40.6594 27.136 44.2153 32.4053 44.2153C35.1321 44.2153 37.4351 43.4783 39.2407 42.2623Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7357. <path d="M51.8613 32.4606C51.8613 31.0235 51.7323 29.6417 51.4928 28.3151H32.4053V36.1638H43.3124C42.8334 38.688 41.3963 40.8252 39.2407 42.2623L45.8181 47.3658C49.6503 43.8283 51.8613 38.6327 51.8613 32.4606Z" fill="#1FAD7E" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7358. <path d="M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" fill="#86F999"/>
  7359. <path d="M21.056 35.8691L14.3127 41.1016M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7360. </svg>
  7361. `,ty=(0,s.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
  7362. <g clip-path="url(#clip0_241_31635)">
  7363. <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58317 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58317 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9268C60.4784 58.4158 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4158 2.1019 55.9268C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#EB8B47"/>
  7364. <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/>
  7365. <path d="M28.1042 49.2329L13.1024 51.2077L15.0772 36.2059L37.1015 14.1815C39.2441 12.039 40.3154 10.9677 41.5718 10.624C42.4205 10.3918 43.3159 10.3918 44.1645 10.624C45.421 10.9677 46.4922 12.039 48.6348 14.1815L50.1286 15.6753C52.2711 17.8179 53.3424 18.8891 53.6861 20.1456C53.9183 20.9942 53.9183 21.8896 53.6861 22.7383C53.3424 23.9947 52.2711 25.066 50.1286 27.2086L28.1042 49.2329Z" fill="#FF974C" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7366. <path d="M38.5962 20.5376L22.4199 36.7139" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7367. <path d="M43.7727 25.714L27.5964 41.8903" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7368. <path d="M22.3703 36.7635C19.3258 39.808 16.0198 36.6395 16.2616 35.0324" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7369. <path d="M27.5466 41.9399C24.5034 44.9831 28.155 48.7098 29.2738 48.0475" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7370. <path d="M27.5468 41.9398C23.428 46.0586 18.2516 40.8822 22.3704 36.7634" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7371. <path d="M15.8191 50.5214C15.4711 49.5823 14.728 48.8392 13.7889 48.4912" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  7372. <path d="M49.2862 29.5805L34.7275 15.0219" stroke="#E4E7E7" stroke-width="2" stroke-linejoin="round"/>
  7373. </g>
  7374. <defs>
  7375. <clipPath id="clip0_241_31635">
  7376. <rect width="64" height="64" fill="white"/>
  7377. </clipPath>
  7378. </defs>
  7379. </svg>
  7380. `,tx=(0,s.JW)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
  7381. <g clip-path="url(#clip0_241_31636)">
  7382. <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58318 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58318 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9269C60.4784 58.4159 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4159 2.1019 55.9269C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#794CFF"/>
  7383. <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/>
  7384. <path d="M40 39.4595C44.7824 36.693 48 31.5222 48 25.6C48 16.7634 40.8366 9.59998 32 9.59998C23.1634 9.59998 16 16.7634 16 25.6C16 31.5222 19.2176 36.693 24 39.4595V45.8144H40V39.4595Z" fill="#906EF7"/>
  7385. <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#906EF7"/>
  7386. <path d="M24 45.8144V39.4595C19.2176 36.693 16 31.5222 16 25.6C16 16.7634 23.1634 9.59998 32 9.59998C40.8366 9.59998 48 16.7634 48 25.6C48 31.5222 44.7824 36.693 40 39.4595V45.8144M24 45.8144H40M24 45.8144V49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7387. <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#643CDD" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7388. <path d="M29.6735 26.9101V29.1109H34.0753V26.9101C34.0753 25.6945 35.0607 24.7092 36.2762 24.7092C37.4917 24.7092 38.4771 25.6945 38.4771 26.9101C38.4771 28.1256 37.4917 29.1109 36.2762 29.1109H34.0753H29.6735H27.4726C26.2571 29.1109 25.2717 28.1256 25.2717 26.9101C25.2717 25.6945 26.2571 24.7092 27.4726 24.7092C28.6881 24.7092 29.6735 25.6945 29.6735 26.9101Z" fill="#906EF7"/>
  7389. <path d="M29.6735 45.3183V26.9101C29.6735 25.6945 28.6881 24.7092 27.4726 24.7092V24.7092C26.2571 24.7092 25.2717 25.6945 25.2717 26.9101V26.9101C25.2717 28.1256 26.2571 29.1109 27.4726 29.1109H36.2762C37.4917 29.1109 38.4771 28.1256 38.4771 26.9101V26.9101C38.4771 25.6945 37.4917 24.7092 36.2762 24.7092V24.7092C35.0607 24.7092 34.0753 25.6945 34.0753 26.9101V45.3183" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  7390. </g>
  7391. <defs>
  7392. <clipPath id="clip0_241_31636">
  7393. <rect width="64" height="64" fill="white"/>
  7394. </clipPath>
  7395. </defs>
  7396. </svg>
  7397. `,tC=(0,s.JW)`<svg width="40" height="42" viewBox="0 0 40 42" fill="none">
  7398. <path opacity="0.7" d="M19.9526 41.9076L7.3877 34.655V26.1226L19.9526 33.3751V41.9076Z" fill="url(#paint0_linear_2113_32117)"/>
  7399. <path opacity="0.7" d="M19.9521 41.9076L32.5171 34.655V26.1226L19.9521 33.3751V41.9076Z" fill="url(#paint1_linear_2113_32117)"/>
  7400. <path opacity="0.7" d="M39.9095 7.34521V21.8562L32.5166 26.1225V11.6114L39.9095 7.34521Z" fill="url(#paint2_linear_2113_32117)"/>
  7401. <path d="M39.9099 7.34536L27.345 0.0927734L19.9521 4.359L32.5171 11.6116L39.9099 7.34536Z" fill="url(#paint3_linear_2113_32117)"/>
  7402. <path d="M0 7.34536L12.5649 0.0927734L19.9519 4.359L7.387 11.6116L0 7.34536Z" fill="#F969D3"/>
  7403. <path opacity="0.7" d="M0 7.34521V21.8562L7.387 26.1225V11.6114L0 7.34521Z" fill="url(#paint4_linear_2113_32117)"/>
  7404. <defs>
  7405. <linearGradient id="paint0_linear_2113_32117" x1="18.6099" y1="41.8335" x2="7.73529" y2="8.31842" gradientUnits="userSpaceOnUse">
  7406. <stop stop-color="#E98ADA"/>
  7407. <stop offset="1" stop-color="#7E4DBD"/>
  7408. </linearGradient>
  7409. <linearGradient id="paint1_linear_2113_32117" x1="26.2346" y1="26.1226" x2="26.2346" y2="41.9076" gradientUnits="userSpaceOnUse">
  7410. <stop stop-color="#719DED"/>
  7411. <stop offset="1" stop-color="#2545BE"/>
  7412. </linearGradient>
  7413. <linearGradient id="paint2_linear_2113_32117" x1="36.213" y1="7.34521" x2="36.213" y2="26.1225" gradientUnits="userSpaceOnUse">
  7414. <stop stop-color="#93EBFF"/>
  7415. <stop offset="1" stop-color="#197DDB"/>
  7416. </linearGradient>
  7417. <linearGradient id="paint3_linear_2113_32117" x1="29.931" y1="0.0927734" x2="38.2156" y2="14.8448" gradientUnits="userSpaceOnUse">
  7418. <stop stop-color="#F969D3"/>
  7419. <stop offset="1" stop-color="#4F51C0"/>
  7420. </linearGradient>
  7421. <linearGradient id="paint4_linear_2113_32117" x1="18.1251" y1="44.2539" x2="-7.06792" y2="15.2763" gradientUnits="userSpaceOnUse">
  7422. <stop stop-color="#E98ADA"/>
  7423. <stop offset="1" stop-color="#7E4DBD"/>
  7424. </linearGradient>
  7425. </defs>
  7426. </svg>`,tA=(0,s.AH)`
  7427. :host {
  7428. display: block;
  7429. width: var(--local-size);
  7430. height: var(--local-size);
  7431. }
  7432. :host svg {
  7433. width: 100%;
  7434. height: 100%;
  7435. }
  7436. `,tE=(0,s.JW)`<svg fill="none" viewBox="0 0 80 80">
  7437. <g clip-path="url(#a)">
  7438. <path fill="url(#b)" d="M40 80a40 40 0 1 0 0-80 40 40 0 0 0 0 80Z" />
  7439. <path
  7440. stroke="#fff"
  7441. stroke-opacity=".1"
  7442. d="M79.5 40a39.5 39.5 0 1 1-79 0 39.5 39.5 0 0 1 79 0Z"
  7443. />
  7444. <path
  7445. fill="#fff"
  7446. d="m62.62 51.54-7.54 7.91a1.75 1.75 0 0 1-1.29.55H18.02a.9.9 0 0 1-.8-.52.84.84 0 0 1 .16-.92l7.55-7.92a1.75 1.75 0 0 1 1.28-.55h35.77a.87.87 0 0 1 .8.52.84.84 0 0 1-.16.93Zm-7.54-15.95a1.75 1.75 0 0 0-1.29-.54H18.02a.89.89 0 0 0-.8.51.84.84 0 0 0 .16.93l7.55 7.92a1.75 1.75 0 0 0 1.28.54h35.77a.89.89 0 0 0 .8-.51.84.84 0 0 0-.16-.93l-7.54-7.92ZM18.02 29.9h35.77a1.79 1.79 0 0 0 1.29-.54l7.54-7.92a.85.85 0 0 0 .16-.93.87.87 0 0 0-.8-.51H26.21a1.79 1.79 0 0 0-1.28.54l-7.55 7.92a.85.85 0 0 0-.16.93.89.89 0 0 0 .8.52Z"
  7447. />
  7448. </g>
  7449. <defs>
  7450. <linearGradient id="b" x1="6.75" x2="80.68" y1="81.91" y2="7.37" gradientUnits="userSpaceOnUse">
  7451. <stop offset=".08" stop-color="#9945FF" />
  7452. <stop offset=".3" stop-color="#8752F3" />
  7453. <stop offset=".5" stop-color="#5497D5" />
  7454. <stop offset=".6" stop-color="#43B4CA" />
  7455. <stop offset=".72" stop-color="#28E0B9" />
  7456. <stop offset=".97" stop-color="#19FB9B" />
  7457. </linearGradient>
  7458. <clipPath id="a"><path fill="#fff" d="M0 0h80v80H0z" /></clipPath>
  7459. </defs>
  7460. </svg> `;var t_=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tk={browser:tt,dao:ti,defi:tr,defiAlt:tn,eth:ta,layers:to,lock:ts,login:tc,network:tl,nft:tu,noun:td,profile:th,system:tp,coinbase:tf,meld:tC,onrampCard:tb,moonpay:tg,stripe:tw,paypal:tm,google:tv,pencil:ty,lightbulb:tx,solana:tE},tI=class extends s.WF{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=`
  7461. --local-size: var(--wui-visual-size-${this.size});
  7462. `,(0,s.qy)`${tk[this.name]}`}};tI.styles=[g,tA],t_([(0,x.MZ)()],tI.prototype,"name",void 0),t_([(0,x.MZ)()],tI.prototype,"size",void 0),tI=t_([b("wui-visual")],tI);var tS=i(92821);let tT={getSpacingStyles:(e,t)=>Array.isArray(e)?e[t]?`var(--wui-spacing-${e[t]})`:void 0:"string"==typeof e?`var(--wui-spacing-${e})`:void 0,getFormattedDate:e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(e),getHostName(e){try{return new URL(e).hostname}catch(e){return""}},getTruncateString:({string:e,charsStart:t,charsEnd:i,truncate:r})=>e.length<=t+i?e:"end"===r?`${e.substring(0,t)}...`:"start"===r?`...${e.substring(e.length-i)}`:`${e.substring(0,Math.floor(t))}...${e.substring(e.length-Math.floor(i))}`,generateAvatarColors(e){let t=e.toLowerCase().replace(/^0x/iu,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),i=this.hexToRgb(t),r=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),n=100-3*Number(r?.replace("px","")),a=`${n}% ${n}% at 65% 40%`,o=[];for(let e=0;e<5;e+=1){let t=this.tintColor(i,.15*e);o.push(`rgb(${t[0]}, ${t[1]}, ${t[2]})`)}return`
  7463. --local-color-1: ${o[0]};
  7464. --local-color-2: ${o[1]};
  7465. --local-color-3: ${o[2]};
  7466. --local-color-4: ${o[3]};
  7467. --local-color-5: ${o[4]};
  7468. --local-radial-circle: ${a}
  7469. `},hexToRgb(e){let t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){let[i,r,n]=e;return[Math.round(i+(255-i)*t),Math.round(r+(255-r)*t),Math.round(n+(255-n)*t)]},isNumber:e=>/^[0-9]+$/u.test(e),getColorTheme:e=>e||("undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"dark"),splitBalance(e){let t=e.split(".");return 2===t.length?[t[0],t[1]]:["0","00"]},roundNumber:(e,t,i)=>e.toString().length>=t?Number(e).toFixed(i):e,formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})},tN=(0,s.AH)`
  7470. :host {
  7471. display: flex;
  7472. width: inherit;
  7473. height: inherit;
  7474. }
  7475. `;var tP=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tR=class extends s.WF{render(){return this.style.cssText=`
  7476. flex-direction: ${this.flexDirection};
  7477. flex-wrap: ${this.flexWrap};
  7478. flex-basis: ${this.flexBasis};
  7479. flex-grow: ${this.flexGrow};
  7480. flex-shrink: ${this.flexShrink};
  7481. align-items: ${this.alignItems};
  7482. justify-content: ${this.justifyContent};
  7483. column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
  7484. row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
  7485. gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
  7486. padding-top: ${this.padding&&tT.getSpacingStyles(this.padding,0)};
  7487. padding-right: ${this.padding&&tT.getSpacingStyles(this.padding,1)};
  7488. padding-bottom: ${this.padding&&tT.getSpacingStyles(this.padding,2)};
  7489. padding-left: ${this.padding&&tT.getSpacingStyles(this.padding,3)};
  7490. margin-top: ${this.margin&&tT.getSpacingStyles(this.margin,0)};
  7491. margin-right: ${this.margin&&tT.getSpacingStyles(this.margin,1)};
  7492. margin-bottom: ${this.margin&&tT.getSpacingStyles(this.margin,2)};
  7493. margin-left: ${this.margin&&tT.getSpacingStyles(this.margin,3)};
  7494. `,(0,s.qy)`<slot></slot>`}};tR.styles=[g,tN],tP([(0,x.MZ)()],tR.prototype,"flexDirection",void 0),tP([(0,x.MZ)()],tR.prototype,"flexWrap",void 0),tP([(0,x.MZ)()],tR.prototype,"flexBasis",void 0),tP([(0,x.MZ)()],tR.prototype,"flexGrow",void 0),tP([(0,x.MZ)()],tR.prototype,"flexShrink",void 0),tP([(0,x.MZ)()],tR.prototype,"alignItems",void 0),tP([(0,x.MZ)()],tR.prototype,"justifyContent",void 0),tP([(0,x.MZ)()],tR.prototype,"columnGap",void 0),tP([(0,x.MZ)()],tR.prototype,"rowGap",void 0),tP([(0,x.MZ)()],tR.prototype,"gap",void 0),tP([(0,x.MZ)()],tR.prototype,"padding",void 0),tP([(0,x.MZ)()],tR.prototype,"margin",void 0),tR=tP([b("wui-flex")],tR);let tO=(0,s.AH)`
  7495. :host {
  7496. display: block;
  7497. width: var(--local-width);
  7498. height: var(--local-height);
  7499. border-radius: var(--wui-border-radius-3xl);
  7500. box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
  7501. overflow: hidden;
  7502. position: relative;
  7503. }
  7504. :host([data-variant='generated']) {
  7505. --mixed-local-color-1: var(--local-color-1);
  7506. --mixed-local-color-2: var(--local-color-2);
  7507. --mixed-local-color-3: var(--local-color-3);
  7508. --mixed-local-color-4: var(--local-color-4);
  7509. --mixed-local-color-5: var(--local-color-5);
  7510. }
  7511. @supports (background: color-mix(in srgb, white 50%, black)) {
  7512. :host([data-variant='generated']) {
  7513. --mixed-local-color-1: color-mix(
  7514. in srgb,
  7515. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  7516. var(--local-color-1)
  7517. );
  7518. --mixed-local-color-2: color-mix(
  7519. in srgb,
  7520. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  7521. var(--local-color-2)
  7522. );
  7523. --mixed-local-color-3: color-mix(
  7524. in srgb,
  7525. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  7526. var(--local-color-3)
  7527. );
  7528. --mixed-local-color-4: color-mix(
  7529. in srgb,
  7530. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  7531. var(--local-color-4)
  7532. );
  7533. --mixed-local-color-5: color-mix(
  7534. in srgb,
  7535. var(--w3m-color-mix) var(--w3m-color-mix-strength),
  7536. var(--local-color-5)
  7537. );
  7538. }
  7539. }
  7540. :host([data-variant='generated']) {
  7541. box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
  7542. background: radial-gradient(
  7543. var(--local-radial-circle),
  7544. #fff 0.52%,
  7545. var(--mixed-local-color-5) 31.25%,
  7546. var(--mixed-local-color-3) 51.56%,
  7547. var(--mixed-local-color-2) 65.63%,
  7548. var(--mixed-local-color-1) 82.29%,
  7549. var(--mixed-local-color-4) 100%
  7550. );
  7551. }
  7552. :host([data-variant='default']) {
  7553. box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
  7554. background: radial-gradient(
  7555. 75.29% 75.29% at 64.96% 24.36%,
  7556. #fff 0.52%,
  7557. #f5ccfc 31.25%,
  7558. #dba4f5 51.56%,
  7559. #9a8ee8 65.63%,
  7560. #6493da 82.29%,
  7561. #6ebdea 100%
  7562. );
  7563. }
  7564. `;var tM=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tD=class extends s.WF{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}render(){return this.style.cssText=`
  7565. --local-width: var(--wui-icon-box-size-${this.size});
  7566. --local-height: var(--wui-icon-box-size-${this.size});
  7567. `,(0,s.qy)`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";let e=tT.generateAvatarColors(this.address);return this.style.cssText+=`
  7568. ${e}`,null}return this.dataset.variant="default",null}};tD.styles=[g,tO],tM([(0,x.MZ)()],tD.prototype,"imageSrc",void 0),tM([(0,x.MZ)()],tD.prototype,"alt",void 0),tM([(0,x.MZ)()],tD.prototype,"address",void 0),tM([(0,x.MZ)()],tD.prototype,"size",void 0),tD=tM([b("wui-avatar")],tD);let tU=(0,s.AH)`
  7569. :host {
  7570. display: inline-flex;
  7571. justify-content: center;
  7572. align-items: center;
  7573. position: relative;
  7574. overflow: hidden;
  7575. background-color: var(--wui-color-gray-glass-020);
  7576. border-radius: var(--local-border-radius);
  7577. border: var(--local-border);
  7578. box-sizing: content-box;
  7579. width: var(--local-size);
  7580. height: var(--local-size);
  7581. min-height: var(--local-size);
  7582. min-width: var(--local-size);
  7583. }
  7584. @supports (background: color-mix(in srgb, white 50%, black)) {
  7585. :host {
  7586. background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
  7587. }
  7588. }
  7589. `;var t$=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tL=class extends s.WF{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){let e=this.iconSize||this.size,t="lg"===this.size,i="xl"===this.size,r="gray"===this.background,n="opaque"===this.background,a="accent-100"===this.backgroundColor&&n||"success-100"===this.backgroundColor&&n||"error-100"===this.backgroundColor&&n||"inverse-100"===this.backgroundColor&&n,o=`var(--wui-color-${this.backgroundColor})`;return a?o=`var(--wui-icon-box-bg-${this.backgroundColor})`:r&&(o=`var(--wui-color-gray-${this.backgroundColor})`),this.style.cssText=`
  7590. --local-bg-value: ${o};
  7591. --local-bg-mix: ${a||r?"100%":t?"12%":"16%"};
  7592. --local-border-radius: var(--wui-border-radius-${t?"xxs":i?"s":"3xl"});
  7593. --local-size: var(--wui-icon-box-size-${this.size});
  7594. --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}
  7595. `,(0,s.qy)` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};tL.styles=[g,w,tU],t$([(0,x.MZ)()],tL.prototype,"size",void 0),t$([(0,x.MZ)()],tL.prototype,"backgroundColor",void 0),t$([(0,x.MZ)()],tL.prototype,"iconColor",void 0),t$([(0,x.MZ)()],tL.prototype,"iconSize",void 0),t$([(0,x.MZ)()],tL.prototype,"background",void 0),t$([(0,x.MZ)({type:Boolean})],tL.prototype,"border",void 0),t$([(0,x.MZ)()],tL.prototype,"borderColor",void 0),t$([(0,x.MZ)()],tL.prototype,"icon",void 0),tL=t$([b("wui-icon-box")],tL);let tj=(0,s.AH)`
  7596. :host {
  7597. display: block;
  7598. }
  7599. button {
  7600. border-radius: var(--wui-border-radius-3xl);
  7601. background: var(--wui-color-gray-glass-002);
  7602. display: flex;
  7603. gap: var(--wui-spacing-xs);
  7604. padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) var(--wui-spacing-3xs)
  7605. var(--wui-spacing-xs);
  7606. border: 1px solid var(--wui-color-gray-glass-005);
  7607. }
  7608. button:disabled {
  7609. background: var(--wui-color-gray-glass-015);
  7610. }
  7611. button:disabled > wui-text {
  7612. color: var(--wui-color-gray-glass-015);
  7613. }
  7614. button:disabled > wui-flex > wui-text {
  7615. color: var(--wui-color-gray-glass-015);
  7616. }
  7617. button:disabled > wui-image,
  7618. button:disabled > wui-flex > wui-avatar {
  7619. filter: grayscale(1);
  7620. }
  7621. button:has(wui-image) {
  7622. padding: var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-3xs)
  7623. var(--wui-spacing-xs);
  7624. }
  7625. wui-text {
  7626. color: var(--wui-color-fg-100);
  7627. }
  7628. wui-flex > wui-text {
  7629. color: var(--wui-color-fg-200);
  7630. }
  7631. wui-image,
  7632. wui-icon-box {
  7633. border-radius: var(--wui-border-radius-3xl);
  7634. width: 24px;
  7635. height: 24px;
  7636. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  7637. }
  7638. wui-flex {
  7639. border-radius: var(--wui-border-radius-3xl);
  7640. border: 1px solid var(--wui-color-gray-glass-005);
  7641. background: var(--wui-color-gray-glass-005);
  7642. padding: 4px var(--wui-spacing-m) 4px var(--wui-spacing-xxs);
  7643. }
  7644. button.local-no-balance {
  7645. border-radius: 0px;
  7646. border: none;
  7647. background: transparent;
  7648. }
  7649. wui-avatar {
  7650. width: 20px;
  7651. height: 20px;
  7652. box-shadow: 0 0 0 2px var(--wui-color-accent-glass-010);
  7653. }
  7654. @media (max-width: 500px) {
  7655. button {
  7656. gap: 0px;
  7657. padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) !important;
  7658. height: 32px;
  7659. }
  7660. wui-image,
  7661. wui-icon-box,
  7662. button > wui-text {
  7663. visibility: hidden;
  7664. width: 0px;
  7665. height: 0px;
  7666. }
  7667. button {
  7668. border-radius: 0px;
  7669. border: none;
  7670. background: transparent;
  7671. padding: 0px;
  7672. }
  7673. }
  7674. @media (hover: hover) and (pointer: fine) {
  7675. button:hover:enabled > wui-flex > wui-text {
  7676. color: var(--wui-color-fg-175);
  7677. }
  7678. button:active:enabled > wui-flex > wui-text {
  7679. color: var(--wui-color-fg-175);
  7680. }
  7681. }
  7682. `;var tB=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tW=class extends s.WF{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.address="",this.profileName="",this.charsStart=4,this.charsEnd=6}render(){return(0,s.qy)`
  7683. <button
  7684. ?disabled=${this.disabled}
  7685. class=${(0,tS.J)(this.balance?void 0:"local-no-balance")}
  7686. >
  7687. ${this.balanceTemplate()}
  7688. <wui-flex gap="xxs" alignItems="center">
  7689. <wui-avatar
  7690. .imageSrc=${this.avatarSrc}
  7691. alt=${this.address}
  7692. address=${this.address}
  7693. ></wui-avatar>
  7694. <wui-text variant="paragraph-600" color="inherit">
  7695. ${this.address?tT.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"}):null}
  7696. </wui-text>
  7697. </wui-flex>
  7698. </button>
  7699. `}balanceTemplate(){if(this.isUnsupportedChain)return(0,s.qy)` <wui-icon-box
  7700. size="sm"
  7701. iconColor="error-100"
  7702. backgroundColor="error-100"
  7703. icon="warningCircle"
  7704. ></wui-icon-box>
  7705. <wui-text variant="paragraph-600" color="inherit"> Switch Network</wui-text>`;if(this.balance){let e=this.networkSrc?(0,s.qy)`<wui-image src=${this.networkSrc}></wui-image>`:(0,s.qy)`
  7706. <wui-icon-box
  7707. size="sm"
  7708. iconColor="fg-200"
  7709. backgroundColor="fg-300"
  7710. icon="networkPlaceholder"
  7711. ></wui-icon-box>
  7712. `;return(0,s.qy)`
  7713. ${e}
  7714. <wui-text variant="paragraph-600" color="inherit"> ${this.balance}</wui-text>
  7715. `}return null}};tW.styles=[g,w,tj],tB([(0,x.MZ)()],tW.prototype,"networkSrc",void 0),tB([(0,x.MZ)()],tW.prototype,"avatarSrc",void 0),tB([(0,x.MZ)()],tW.prototype,"balance",void 0),tB([(0,x.MZ)({type:Boolean})],tW.prototype,"isUnsupportedChain",void 0),tB([(0,x.MZ)({type:Boolean})],tW.prototype,"disabled",void 0),tB([(0,x.MZ)()],tW.prototype,"address",void 0),tB([(0,x.MZ)()],tW.prototype,"profileName",void 0),tB([(0,x.MZ)()],tW.prototype,"charsStart",void 0),tB([(0,x.MZ)()],tW.prototype,"charsEnd",void 0),tW=tB([b("wui-account-button")],tW);let tq=(0,s.AH)`
  7716. :host {
  7717. position: relative;
  7718. background-color: var(--wui-color-gray-glass-002);
  7719. display: flex;
  7720. justify-content: center;
  7721. align-items: center;
  7722. width: var(--local-size);
  7723. height: var(--local-size);
  7724. border-radius: inherit;
  7725. border-radius: var(--local-border-radius);
  7726. }
  7727. :host > wui-flex {
  7728. overflow: hidden;
  7729. border-radius: inherit;
  7730. border-radius: var(--local-border-radius);
  7731. }
  7732. :host::after {
  7733. content: '';
  7734. position: absolute;
  7735. top: 0;
  7736. bottom: 0;
  7737. left: 0;
  7738. right: 0;
  7739. border-radius: inherit;
  7740. border: 1px solid var(--wui-color-gray-glass-010);
  7741. pointer-events: none;
  7742. }
  7743. :host([name='Extension'])::after {
  7744. border: 1px solid var(--wui-color-accent-glass-010);
  7745. }
  7746. :host([data-wallet-icon='allWallets']) {
  7747. background-color: var(--wui-all-wallets-bg-100);
  7748. }
  7749. :host([data-wallet-icon='allWallets'])::after {
  7750. border: 1px solid var(--wui-color-accent-glass-010);
  7751. }
  7752. wui-icon[data-parent-size='inherit'] {
  7753. width: 75%;
  7754. height: 75%;
  7755. align-items: center;
  7756. }
  7757. wui-icon[data-parent-size='sm'] {
  7758. width: 18px;
  7759. height: 18px;
  7760. }
  7761. wui-icon[data-parent-size='md'] {
  7762. width: 24px;
  7763. height: 24px;
  7764. }
  7765. wui-icon[data-parent-size='lg'] {
  7766. width: 42px;
  7767. height: 42px;
  7768. }
  7769. wui-icon[data-parent-size='full'] {
  7770. width: 100%;
  7771. height: 100%;
  7772. }
  7773. :host > wui-icon-box {
  7774. position: absolute;
  7775. overflow: hidden;
  7776. right: -1px;
  7777. bottom: -2px;
  7778. z-index: 1;
  7779. border: 2px solid var(--wui-color-bg-150, #1e1f1f);
  7780. padding: 1px;
  7781. }
  7782. `;var tH=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tz=class extends s.WF{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return e="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=`
  7783. --local-border-radius: var(--wui-border-radius-${e});
  7784. --local-size: var(--wui-wallet-image-size-${this.size});
  7785. `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),(0,s.qy)`
  7786. <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
  7787. `}templateVisual(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?(0,s.qy)`<wui-icon
  7788. data-parent-size="md"
  7789. size="md"
  7790. color="inherit"
  7791. name=${this.walletIcon}
  7792. ></wui-icon>`:(0,s.qy)`<wui-icon
  7793. data-parent-size=${this.size}
  7794. size="inherit"
  7795. color="inherit"
  7796. name="walletPlaceholder"
  7797. ></wui-icon>`}};tz.styles=[g,tq],tH([(0,x.MZ)()],tz.prototype,"size",void 0),tH([(0,x.MZ)()],tz.prototype,"name",void 0),tH([(0,x.MZ)()],tz.prototype,"imageSrc",void 0),tH([(0,x.MZ)()],tz.prototype,"walletIcon",void 0),tH([(0,x.MZ)({type:Boolean})],tz.prototype,"installed",void 0),tH([(0,x.MZ)()],tz.prototype,"badgeSize",void 0),tz=tH([b("wui-wallet-image")],tz);let tF=(0,s.AH)`
  7798. :host {
  7799. position: relative;
  7800. border-radius: var(--wui-border-radius-xxs);
  7801. width: 40px;
  7802. height: 40px;
  7803. overflow: hidden;
  7804. background: var(--wui-color-gray-glass-002);
  7805. display: flex;
  7806. justify-content: center;
  7807. align-items: center;
  7808. flex-wrap: wrap;
  7809. gap: var(--wui-spacing-4xs);
  7810. padding: 3.75px !important;
  7811. }
  7812. :host::after {
  7813. content: '';
  7814. position: absolute;
  7815. top: 0;
  7816. bottom: 0;
  7817. left: 0;
  7818. right: 0;
  7819. border-radius: inherit;
  7820. border: 1px solid var(--wui-color-gray-glass-010);
  7821. pointer-events: none;
  7822. }
  7823. :host > wui-wallet-image {
  7824. width: 14px;
  7825. height: 14px;
  7826. border-radius: var(--wui-border-radius-5xs);
  7827. }
  7828. :host > wui-flex {
  7829. padding: 2px;
  7830. position: fixed;
  7831. overflow: hidden;
  7832. left: 34px;
  7833. bottom: 8px;
  7834. background: var(--dark-background-150, #1e1f1f);
  7835. border-radius: 50%;
  7836. z-index: 2;
  7837. display: flex;
  7838. }
  7839. `;var tZ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tV=class extends s.WF{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<4;return(0,s.qy)`${this.walletImages.slice(0,4).map(({src:e,walletName:t})=>(0,s.qy)`
  7840. <wui-wallet-image
  7841. size="inherit"
  7842. imageSrc=${e}
  7843. name=${(0,tS.J)(t)}
  7844. ></wui-wallet-image>
  7845. `)}
  7846. ${e?[...Array(4-this.walletImages.length)].map(()=>(0,s.qy)` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null}
  7847. <wui-flex>
  7848. <wui-icon-box
  7849. size="xxs"
  7850. iconSize="xxs"
  7851. iconcolor="success-100"
  7852. backgroundcolor="success-100"
  7853. icon="checkmark"
  7854. background="opaque"
  7855. ></wui-icon-box>
  7856. </wui-flex>`}};tV.styles=[g,tF],tZ([(0,x.MZ)({type:Array})],tV.prototype,"walletImages",void 0),tV=tZ([b("wui-all-wallets-image")],tV);let tK=(0,s.AH)`
  7857. :host {
  7858. width: var(--local-width);
  7859. position: relative;
  7860. }
  7861. button {
  7862. border: none;
  7863. border-radius: var(--local-border-radius);
  7864. width: var(--local-width);
  7865. white-space: nowrap;
  7866. }
  7867. /* -- Sizes --------------------------------------------------- */
  7868. button[data-size='md'] {
  7869. padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
  7870. height: 36px;
  7871. }
  7872. button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
  7873. padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
  7874. }
  7875. button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
  7876. padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
  7877. }
  7878. button[data-size='lg'] {
  7879. padding: var(--wui-spacing-m) var(--wui-spacing-2l);
  7880. height: 48px;
  7881. }
  7882. /* -- Variants --------------------------------------------------------- */
  7883. button[data-variant='main'] {
  7884. background-color: var(--wui-color-accent-100);
  7885. color: var(--wui-color-inverse-100);
  7886. border: none;
  7887. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  7888. }
  7889. button[data-variant='inverse'] {
  7890. background-color: var(--wui-color-inverse-100);
  7891. color: var(--wui-color-inverse-000);
  7892. border: none;
  7893. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  7894. }
  7895. button[data-variant='accent'] {
  7896. background-color: var(--wui-color-accent-glass-010);
  7897. color: var(--wui-color-accent-100);
  7898. border: none;
  7899. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  7900. }
  7901. button[data-variant='accent-error'] {
  7902. background: var(--wui-color-error-glass-015);
  7903. color: var(--wui-color-error-100);
  7904. border: none;
  7905. box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
  7906. }
  7907. button[data-variant='accent-success'] {
  7908. background: var(--wui-color-success-glass-015);
  7909. color: var(--wui-color-success-100);
  7910. border: none;
  7911. box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
  7912. }
  7913. button[data-variant='neutral'] {
  7914. background: transparent;
  7915. color: var(--wui-color-fg-100);
  7916. border: none;
  7917. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  7918. }
  7919. /* -- Focus states --------------------------------------------------- */
  7920. button[data-variant='main']:focus-visible:enabled {
  7921. background-color: var(--wui-color-accent-090);
  7922. box-shadow:
  7923. inset 0 0 0 1px var(--wui-color-accent-100),
  7924. 0 0 0 4px var(--wui-color-accent-glass-020);
  7925. }
  7926. button[data-variant='inverse']:focus-visible:enabled {
  7927. background-color: var(--wui-color-inverse-100);
  7928. box-shadow:
  7929. inset 0 0 0 1px var(--wui-color-gray-glass-010),
  7930. 0 0 0 4px var(--wui-color-accent-glass-020);
  7931. }
  7932. button[data-variant='accent']:focus-visible:enabled {
  7933. background-color: var(--wui-color-accent-glass-010);
  7934. box-shadow:
  7935. inset 0 0 0 1px var(--wui-color-accent-100),
  7936. 0 0 0 4px var(--wui-color-accent-glass-020);
  7937. }
  7938. button[data-variant='accent-error']:focus-visible:enabled {
  7939. background: var(--wui-color-error-glass-015);
  7940. box-shadow:
  7941. inset 0 0 0 1px var(--wui-color-error-100),
  7942. 0 0 0 4px var(--wui-color-error-glass-020);
  7943. }
  7944. button[data-variant='accent-success']:focus-visible:enabled {
  7945. background: var(--wui-color-success-glass-015);
  7946. box-shadow:
  7947. inset 0 0 0 1px var(--wui-color-success-100),
  7948. 0 0 0 4px var(--wui-color-success-glass-020);
  7949. }
  7950. button[data-variant='neutral']:focus-visible:enabled {
  7951. background: var(--wui-color-gray-glass-005);
  7952. box-shadow:
  7953. inset 0 0 0 1px var(--wui-color-gray-glass-010),
  7954. 0 0 0 4px var(--wui-color-gray-glass-002);
  7955. }
  7956. /* -- Hover & Active states ----------------------------------------------------------- */
  7957. @media (hover: hover) and (pointer: fine) {
  7958. button[data-variant='main']:hover:enabled {
  7959. background-color: var(--wui-color-accent-090);
  7960. }
  7961. button[data-variant='main']:active:enabled {
  7962. background-color: var(--wui-color-accent-080);
  7963. }
  7964. button[data-variant='accent']:hover:enabled {
  7965. background-color: var(--wui-color-accent-glass-015);
  7966. }
  7967. button[data-variant='accent']:active:enabled {
  7968. background-color: var(--wui-color-accent-glass-020);
  7969. }
  7970. button[data-variant='accent-error']:hover:enabled {
  7971. background: var(--wui-color-error-glass-020);
  7972. color: var(--wui-color-error-100);
  7973. }
  7974. button[data-variant='accent-error']:active:enabled {
  7975. background: var(--wui-color-error-glass-030);
  7976. color: var(--wui-color-error-100);
  7977. }
  7978. button[data-variant='accent-success']:hover:enabled {
  7979. background: var(--wui-color-success-glass-020);
  7980. color: var(--wui-color-success-100);
  7981. }
  7982. button[data-variant='accent-success']:active:enabled {
  7983. background: var(--wui-color-success-glass-030);
  7984. color: var(--wui-color-success-100);
  7985. }
  7986. button[data-variant='neutral']:hover:enabled {
  7987. background: var(--wui-color-gray-glass-002);
  7988. }
  7989. button[data-variant='neutral']:active:enabled {
  7990. background: var(--wui-color-gray-glass-005);
  7991. }
  7992. button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
  7993. padding-left: var(--wui-spacing-m);
  7994. }
  7995. button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
  7996. padding-right: var(--wui-spacing-m);
  7997. }
  7998. }
  7999. /* -- Disabled state --------------------------------------------------- */
  8000. button:disabled {
  8001. background-color: var(--wui-color-gray-glass-002);
  8002. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  8003. color: var(--wui-color-gray-glass-020);
  8004. cursor: not-allowed;
  8005. }
  8006. button > wui-text {
  8007. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  8008. will-change: opacity;
  8009. opacity: var(--local-opacity-100);
  8010. }
  8011. ::slotted(*) {
  8012. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  8013. will-change: opacity;
  8014. opacity: var(--local-opacity-100);
  8015. }
  8016. wui-loading-spinner {
  8017. position: absolute;
  8018. left: 50%;
  8019. top: 50%;
  8020. transform: translate(-50%, -50%);
  8021. opacity: var(--local-opacity-000);
  8022. }
  8023. `;var tG=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let tJ={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},tY={lg:"paragraph-600",md:"small-600"},tQ={lg:"md",md:"md"},tX=class extends s.WF{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=`
  8024. --local-width: ${this.fullWidth?"100%":"auto"};
  8025. --local-opacity-100: ${this.loading?0:1};
  8026. --local-opacity-000: ${this.loading?1:0};
  8027. --local-border-radius: var(--wui-border-radius-${this.borderRadius});
  8028. `;let e=this.textVariant??tY[this.size];return(0,s.qy)`
  8029. <button
  8030. data-variant=${this.variant}
  8031. data-icon-left=${this.hasIconLeft}
  8032. data-icon-right=${this.hasIconRight}
  8033. data-size=${this.size}
  8034. ?disabled=${this.disabled}
  8035. ontouchstart
  8036. >
  8037. ${this.loadingTemplate()}
  8038. <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot>
  8039. <wui-text variant=${e} color="inherit">
  8040. <slot></slot>
  8041. </wui-text>
  8042. <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot>
  8043. </button>
  8044. `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){let e=tQ[this.size],t=this.disabled?tJ.disabled:tJ[this.variant];return(0,s.qy)`<wui-loading-spinner color=${t} size=${e}></wui-loading-spinner>`}return(0,s.qy)``}};tX.styles=[g,w,tK],tG([(0,x.MZ)()],tX.prototype,"size",void 0),tG([(0,x.MZ)({type:Boolean})],tX.prototype,"disabled",void 0),tG([(0,x.MZ)({type:Boolean})],tX.prototype,"fullWidth",void 0),tG([(0,x.MZ)({type:Boolean})],tX.prototype,"loading",void 0),tG([(0,x.MZ)()],tX.prototype,"variant",void 0),tG([(0,x.MZ)({type:Boolean})],tX.prototype,"hasIconLeft",void 0),tG([(0,x.MZ)({type:Boolean})],tX.prototype,"hasIconRight",void 0),tG([(0,x.MZ)()],tX.prototype,"borderRadius",void 0),tG([(0,x.MZ)()],tX.prototype,"textVariant",void 0),tX=tG([b("wui-button")],tX);let t0=(0,s.JW)`<svg viewBox="0 0 48 54" fill="none">
  8045. <path
  8046. d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
  8047. />
  8048. </svg>`,t1=(0,s.AH)`
  8049. :host {
  8050. display: flex;
  8051. flex-direction: column;
  8052. align-items: center;
  8053. width: 104px;
  8054. row-gap: var(--wui-spacing-xs);
  8055. padding: var(--wui-spacing-xs) 10px;
  8056. background-color: var(--wui-color-gray-glass-002);
  8057. border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
  8058. position: relative;
  8059. }
  8060. wui-shimmer[data-type='network'] {
  8061. border: none;
  8062. -webkit-clip-path: var(--wui-path-network);
  8063. clip-path: var(--wui-path-network);
  8064. }
  8065. svg {
  8066. position: absolute;
  8067. width: 48px;
  8068. height: 54px;
  8069. z-index: 1;
  8070. }
  8071. svg > path {
  8072. stroke: var(--wui-color-gray-glass-010);
  8073. stroke-width: 1px;
  8074. }
  8075. @media (max-width: 350px) {
  8076. :host {
  8077. width: 100%;
  8078. }
  8079. }
  8080. `;var t2=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let t3=class extends s.WF{constructor(){super(...arguments),this.type="wallet"}render(){return(0,s.qy)`
  8081. ${this.shimmerTemplate()}
  8082. <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
  8083. `}shimmerTemplate(){return"network"===this.type?(0,s.qy)` <wui-shimmer
  8084. data-type=${this.type}
  8085. width="48px"
  8086. height="54px"
  8087. borderRadius="xs"
  8088. ></wui-shimmer>
  8089. ${t0}`:(0,s.qy)`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};t3.styles=[g,w,t1],t2([(0,x.MZ)()],t3.prototype,"type",void 0),t3=t2([b("wui-card-select-loader")],t3);let t5=(0,s.JW)`
  8090. <svg fill="none" viewBox="0 0 36 40">
  8091. <path
  8092. d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
  8093. />
  8094. </svg>
  8095. `,t4=(0,s.JW)`<svg width="86" height="96" fill="none">
  8096. <path
  8097. d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
  8098. />
  8099. </svg>`,t6=(0,s.AH)`
  8100. :host {
  8101. position: relative;
  8102. border-radius: inherit;
  8103. display: flex;
  8104. justify-content: center;
  8105. align-items: center;
  8106. width: var(--local-width);
  8107. height: var(--local-height);
  8108. }
  8109. :host([data-round='true']) {
  8110. background: var(--wui-color-gray-glass-002);
  8111. border-radius: 100%;
  8112. outline: 1px solid var(--wui-color-gray-glass-005);
  8113. }
  8114. svg {
  8115. position: absolute;
  8116. top: 0;
  8117. left: 0;
  8118. width: 100%;
  8119. height: 100%;
  8120. z-index: 1;
  8121. fill: var(--wui-color-gray-glass-002);
  8122. }
  8123. svg > path {
  8124. stroke: var(--local-stroke);
  8125. }
  8126. wui-image {
  8127. width: 100%;
  8128. height: 100%;
  8129. -webkit-clip-path: var(--local-path);
  8130. clip-path: var(--local-path);
  8131. background: var(--wui-color-gray-glass-002);
  8132. }
  8133. wui-icon {
  8134. transform: translateY(-5%);
  8135. width: var(--local-icon-size);
  8136. height: var(--local-icon-size);
  8137. }
  8138. `;var t8=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let t9=class extends s.WF{constructor(){super(...arguments),this.size="md",this.name="uknown",this.networkImagesBySize={sm:t5,md:t0,lg:t4},this.selected=!1,this.round=!1}render(){return this.round?(this.dataset.round="true",this.style.cssText=`
  8139. --local-width: var(--wui-spacing-3xl);
  8140. --local-height: var(--wui-spacing-3xl);
  8141. --local-icon-size: var(--wui-spacing-l);
  8142. `):this.style.cssText=`
  8143. --local-path: var(--wui-path-network-${this.size});
  8144. --local-width: var(--wui-width-network-${this.size});
  8145. --local-height: var(--wui-height-network-${this.size});
  8146. --local-icon-size: var(--wui-icon-size-network-${this.size});
  8147. `,(0,s.qy)`${this.templateVisual()} ${this.svgTemplate()} `}svgTemplate(){return this.round?null:this.networkImagesBySize[this.size]}templateVisual(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};t9.styles=[g,t6],t8([(0,x.MZ)()],t9.prototype,"size",void 0),t8([(0,x.MZ)()],t9.prototype,"name",void 0),t8([(0,x.MZ)({type:Object})],t9.prototype,"networkImagesBySize",void 0),t8([(0,x.MZ)()],t9.prototype,"imageSrc",void 0),t8([(0,x.MZ)({type:Boolean})],t9.prototype,"selected",void 0),t8([(0,x.MZ)({type:Boolean})],t9.prototype,"round",void 0),t9=t8([b("wui-network-image")],t9);let t7=(0,s.AH)`
  8148. button {
  8149. flex-direction: column;
  8150. width: 76px;
  8151. row-gap: var(--wui-spacing-xs);
  8152. padding: var(--wui-spacing-xs) var(--wui-spacing-0);
  8153. background-color: var(--wui-color-gray-glass-002);
  8154. border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
  8155. }
  8156. button > wui-text {
  8157. color: var(--wui-color-fg-100);
  8158. max-width: var(--wui-icon-box-size-xl);
  8159. white-space: nowrap;
  8160. overflow: hidden;
  8161. text-overflow: ellipsis;
  8162. justify-content: center;
  8163. }
  8164. button:disabled > wui-text {
  8165. color: var(--wui-color-gray-glass-015);
  8166. }
  8167. [data-selected='true'] {
  8168. background-color: var(--wui-color-accent-glass-020);
  8169. }
  8170. @media (hover: hover) and (pointer: fine) {
  8171. [data-selected='true']:hover:enabled {
  8172. background-color: var(--wui-color-accent-glass-015);
  8173. }
  8174. }
  8175. [data-selected='true']:active:enabled {
  8176. background-color: var(--wui-color-accent-glass-010);
  8177. }
  8178. `;var ie=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let it=class extends s.WF{constructor(){super(...arguments),this.name="Unknown",this.type="wallet",this.imageSrc=void 0,this.disabled=!1,this.selected=!1,this.installed=!1}render(){return(0,s.qy)`
  8179. <button data-selected=${(0,tS.J)(this.selected)} ?disabled=${this.disabled} ontouchstart>
  8180. ${this.imageTemplate()}
  8181. <wui-text variant="tiny-500" color=${this.selected?"accent-100":"inherit"}>
  8182. ${this.name}
  8183. </wui-text>
  8184. </button>
  8185. `}imageTemplate(){return"network"===this.type?(0,s.qy)`
  8186. <wui-network-image
  8187. .selected=${this.selected}
  8188. imageSrc=${(0,tS.J)(this.imageSrc)}
  8189. name=${this.name}
  8190. >
  8191. </wui-network-image>
  8192. `:(0,s.qy)`
  8193. <wui-wallet-image
  8194. size="md"
  8195. imageSrc=${(0,tS.J)(this.imageSrc)}
  8196. name=${this.name}
  8197. .installed=${this.installed}
  8198. badgeSize="sm"
  8199. >
  8200. </wui-wallet-image>
  8201. `}};it.styles=[g,w,t7],ie([(0,x.MZ)()],it.prototype,"name",void 0),ie([(0,x.MZ)()],it.prototype,"type",void 0),ie([(0,x.MZ)()],it.prototype,"imageSrc",void 0),ie([(0,x.MZ)({type:Boolean})],it.prototype,"disabled",void 0),ie([(0,x.MZ)({type:Boolean})],it.prototype,"selected",void 0),ie([(0,x.MZ)({type:Boolean})],it.prototype,"installed",void 0),it=ie([b("wui-card-select")],it);let ii=(0,s.AH)`
  8202. a {
  8203. border: 1px solid var(--wui-color-gray-glass-010);
  8204. border-radius: var(--wui-border-radius-3xl);
  8205. }
  8206. wui-image {
  8207. border-radius: var(--wui-border-radius-3xl);
  8208. overflow: hidden;
  8209. }
  8210. a.disabled > wui-icon:not(.image-icon),
  8211. a.disabled > wui-image {
  8212. filter: grayscale(1);
  8213. }
  8214. a[data-variant='fill'] {
  8215. color: var(--wui-color-inverse-100);
  8216. background-color: var(--wui-color-accent-100);
  8217. }
  8218. a[data-variant='shade'],
  8219. a[data-variant='shadeSmall'] {
  8220. background-color: transparent;
  8221. background-color: var(--wui-color-gray-glass-010);
  8222. color: var(--wui-color-fg-200);
  8223. }
  8224. a[data-variant='success'] {
  8225. column-gap: var(--wui-spacing-xxs);
  8226. border: 1px solid var(--wui-color-success-glass-010);
  8227. background-color: var(--wui-color-success-glass-010);
  8228. color: var(--wui-color-success-100);
  8229. }
  8230. a[data-variant='error'] {
  8231. column-gap: var(--wui-spacing-xxs);
  8232. border: 1px solid var(--wui-color-error-glass-010);
  8233. background-color: var(--wui-color-error-glass-010);
  8234. color: var(--wui-color-error-100);
  8235. }
  8236. a[data-variant='transparent'] {
  8237. column-gap: var(--wui-spacing-xxs);
  8238. background-color: transparent;
  8239. color: var(--wui-color-fg-150);
  8240. }
  8241. a[data-variant='transparent'],
  8242. a[data-variant='success'],
  8243. a[data-variant='shadeSmall'],
  8244. a[data-variant='error'] {
  8245. padding: 7px var(--wui-spacing-s) 7px 10px;
  8246. }
  8247. a[data-variant='transparent']:has(wui-text:first-child),
  8248. a[data-variant='success']:has(wui-text:first-child),
  8249. a[data-variant='shadeSmall']:has(wui-text:first-child),
  8250. a[data-variant='error']:has(wui-text:first-child) {
  8251. padding: 7px var(--wui-spacing-s);
  8252. }
  8253. a[data-variant='fill'],
  8254. a[data-variant='shade'] {
  8255. column-gap: var(--wui-spacing-xs);
  8256. padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs)
  8257. var(--wui-spacing-xs);
  8258. }
  8259. a[data-variant='fill']:has(wui-text:first-child),
  8260. a[data-variant='shade']:has(wui-text:first-child) {
  8261. padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m);
  8262. }
  8263. a[data-variant='fill'] > wui-image,
  8264. a[data-variant='shade'] > wui-image {
  8265. width: 24px;
  8266. height: 24px;
  8267. }
  8268. a[data-variant='fill'] > wui-image {
  8269. box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
  8270. }
  8271. a[data-variant='shade'] > wui-image,
  8272. a[data-variant='shadeSmall'] > wui-image {
  8273. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  8274. }
  8275. a[data-variant='fill'] > wui-icon:not(.image-icon),
  8276. a[data-variant='shade'] > wui-icon:not(.image-icon) {
  8277. width: 14px;
  8278. height: 14px;
  8279. }
  8280. a[data-variant='transparent'] > wui-image,
  8281. a[data-variant='success'] > wui-image,
  8282. a[data-variant='shadeSmall'] > wui-image,
  8283. a[data-variant='error'] > wui-image {
  8284. width: 14px;
  8285. height: 14px;
  8286. }
  8287. a[data-variant='transparent'] > wui-icon:not(.image-icon),
  8288. a[data-variant='success'] > wui-icon:not(.image-icon),
  8289. a[data-variant='shadeSmall'] > wui-icon:not(.image-icon),
  8290. a[data-variant='error'] > wui-icon:not(.image-icon) {
  8291. width: 12px;
  8292. height: 12px;
  8293. }
  8294. a[data-variant='fill']:focus-visible {
  8295. background-color: var(--wui-color-accent-090);
  8296. }
  8297. a[data-variant='shade']:focus-visible,
  8298. a[data-variant='shadeSmall']:focus-visible {
  8299. background-color: var(--wui-color-gray-glass-015);
  8300. }
  8301. a[data-variant='transparent']:focus-visible {
  8302. background-color: var(--wui-color-gray-glass-005);
  8303. }
  8304. a[data-variant='success']:focus-visible {
  8305. background-color: var(--wui-color-success-glass-015);
  8306. }
  8307. a[data-variant='error']:focus-visible {
  8308. background-color: var(--wui-color-error-glass-015);
  8309. }
  8310. a.disabled {
  8311. color: var(--wui-color-gray-glass-015);
  8312. background-color: var(--wui-color-gray-glass-015);
  8313. pointer-events: none;
  8314. }
  8315. @media (hover: hover) and (pointer: fine) {
  8316. a[data-variant='fill']:hover {
  8317. background-color: var(--wui-color-accent-090);
  8318. }
  8319. a[data-variant='shade']:hover,
  8320. a[data-variant='shadeSmall']:hover {
  8321. background-color: var(--wui-color-gray-glass-015);
  8322. }
  8323. a[data-variant='transparent']:hover {
  8324. background-color: var(--wui-color-gray-glass-005);
  8325. }
  8326. a[data-variant='success']:hover {
  8327. background-color: var(--wui-color-success-glass-015);
  8328. }
  8329. a[data-variant='error']:hover {
  8330. background-color: var(--wui-color-error-glass-015);
  8331. }
  8332. }
  8333. a[data-variant='fill']:active {
  8334. background-color: var(--wui-color-accent-080);
  8335. }
  8336. a[data-variant='shade']:active,
  8337. a[data-variant='shadeSmall']:active {
  8338. background-color: var(--wui-color-gray-glass-020);
  8339. }
  8340. a[data-variant='transparent']:active {
  8341. background-color: var(--wui-color-gray-glass-010);
  8342. }
  8343. a[data-variant='success']:active {
  8344. background-color: var(--wui-color-success-glass-020);
  8345. }
  8346. a[data-variant='error']:active {
  8347. background-color: var(--wui-color-error-glass-020);
  8348. }
  8349. `;var ir=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ia=class extends s.WF{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.imageIcon=void 0,this.imageIconSize="md",this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){let e="success"===this.variant||"transparent"===this.variant||"shadeSmall"===this.variant;return(0,s.qy)`
  8350. <a
  8351. rel="noreferrer"
  8352. target="_blank"
  8353. href=${this.href}
  8354. class=${this.disabled?"disabled":""}
  8355. data-variant=${this.variant}
  8356. >
  8357. ${this.imageTemplate()}
  8358. <wui-text variant=${e?"small-600":"paragraph-600"} color="inherit">
  8359. ${this.title?this.title:tT.getHostName(this.href)}
  8360. </wui-text>
  8361. <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
  8362. </a>
  8363. `}imageTemplate(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc}></wui-image>`:this.imageIcon?(0,s.qy)`<wui-icon
  8364. name=${this.imageIcon}
  8365. color="inherit"
  8366. size=${this.imageIconSize}
  8367. class="image-icon"
  8368. ></wui-icon>`:null}};ia.styles=[g,w,ii],ir([(0,x.MZ)()],ia.prototype,"variant",void 0),ir([(0,x.MZ)()],ia.prototype,"imageSrc",void 0),ir([(0,x.MZ)()],ia.prototype,"imageIcon",void 0),ir([(0,x.MZ)()],ia.prototype,"imageIconSize",void 0),ir([(0,x.MZ)({type:Boolean})],ia.prototype,"disabled",void 0),ir([(0,x.MZ)()],ia.prototype,"icon",void 0),ir([(0,x.MZ)()],ia.prototype,"href",void 0),ir([(0,x.MZ)()],ia.prototype,"text",void 0),ia=ir([b("wui-chip")],ia);let io=(0,s.AH)`
  8369. :host {
  8370. position: relative;
  8371. display: block;
  8372. }
  8373. button {
  8374. background: var(--wui-color-accent-100);
  8375. border: 1px solid var(--wui-color-gray-glass-010);
  8376. border-radius: var(--wui-border-radius-m);
  8377. gap: var(--wui-spacing-xs);
  8378. }
  8379. button.loading {
  8380. background: var(--wui-color-gray-glass-010);
  8381. border: 1px solid var(--wui-color-gray-glass-010);
  8382. pointer-events: none;
  8383. }
  8384. button:disabled {
  8385. background-color: var(--wui-color-gray-glass-015);
  8386. border: 1px solid var(--wui-color-gray-glass-010);
  8387. }
  8388. button:disabled > wui-text {
  8389. color: var(--wui-color-gray-glass-015);
  8390. }
  8391. @media (hover: hover) and (pointer: fine) {
  8392. button:hover:enabled {
  8393. background-color: var(--wui-color-accent-090);
  8394. }
  8395. button:active:enabled {
  8396. background-color: var(--wui-color-accent-080);
  8397. }
  8398. }
  8399. button:focus-visible {
  8400. border: 1px solid var(--wui-color-gray-glass-010);
  8401. background-color: var(--wui-color-accent-090);
  8402. -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8403. -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8404. box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8405. }
  8406. button[data-size='sm'] {
  8407. padding: 6.75px 10px 7.25px;
  8408. }
  8409. ::slotted(*) {
  8410. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  8411. will-change: opacity;
  8412. opacity: var(--local-opacity-100);
  8413. }
  8414. button > wui-text {
  8415. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  8416. will-change: opacity;
  8417. opacity: var(--local-opacity-100);
  8418. color: var(--wui-color-inverse-100);
  8419. }
  8420. button[data-size='md'] {
  8421. padding: 9px var(--wui-spacing-l) 9px var(--wui-spacing-l);
  8422. }
  8423. button[data-size='md'] + wui-text {
  8424. padding-left: var(--wui-spacing-3xs);
  8425. }
  8426. @media (max-width: 500px) {
  8427. button[data-size='md'] {
  8428. height: 32px;
  8429. padding: 5px 12px;
  8430. }
  8431. button[data-size='md'] > wui-text > slot {
  8432. font-size: 14px !important;
  8433. }
  8434. }
  8435. wui-loading-spinner {
  8436. width: 14px;
  8437. height: 14px;
  8438. }
  8439. wui-loading-spinner::slotted(svg) {
  8440. width: 10px !important;
  8441. height: 10px !important;
  8442. }
  8443. button[data-size='sm'] > wui-loading-spinner {
  8444. width: 12px;
  8445. height: 12px;
  8446. }
  8447. `;var is=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ic=class extends s.WF{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){let e="md"===this.size?"paragraph-600":"small-600";return(0,s.qy)`
  8448. <button data-size=${this.size} ?disabled=${this.loading} ontouchstart>
  8449. ${this.loadingTemplate()}
  8450. <wui-text variant=${e} color=${this.loading?"accent-100":"inherit"}>
  8451. <slot></slot>
  8452. </wui-text>
  8453. </button>
  8454. `}loadingTemplate(){return this.loading?(0,s.qy)`<wui-loading-spinner size=${this.size} color="accent-100"></wui-loading-spinner>`:null}};ic.styles=[g,w,io],is([(0,x.MZ)()],ic.prototype,"size",void 0),is([(0,x.MZ)({type:Boolean})],ic.prototype,"loading",void 0),ic=is([b("wui-connect-button")],ic);let il=(0,s.AH)`
  8455. wui-flex {
  8456. width: 100%;
  8457. background-color: var(--wui-color-gray-glass-002);
  8458. border-radius: var(--wui-border-radius-xs);
  8459. }
  8460. `;var iu=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let id=class extends s.WF{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return(0,s.qy)`
  8461. <wui-flex
  8462. justifyContent="space-between"
  8463. alignItems="center"
  8464. .padding=${["1xs","2l","1xs","2l"]}
  8465. >
  8466. <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text>
  8467. <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight">
  8468. </wui-chip-button>
  8469. </wui-flex>
  8470. `}};id.styles=[g,w,il],iu([(0,x.MZ)({type:Boolean})],id.prototype,"disabled",void 0),iu([(0,x.MZ)()],id.prototype,"label",void 0),iu([(0,x.MZ)()],id.prototype,"buttonLabel",void 0),id=iu([b("wui-cta-button")],id);let ih=(0,s.AH)`
  8471. :host {
  8472. display: block;
  8473. padding: var(--wui-spacing-l) var(--wui-spacing-m);
  8474. background-color: var(--wui-color-gray-glass-002);
  8475. border-radius: var(--wui-border-radius-xs);
  8476. width: 100%;
  8477. }
  8478. `,ip=class extends s.WF{render(){return(0,s.qy)`
  8479. <wui-flex gap="xl" flexDirection="column" justifyContent="space-between" alignItems="center">
  8480. <slot></slot>
  8481. </wui-flex>
  8482. `}};ip.styles=[g,w,ih],ip=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([b("wui-details-group")],ip);let ig=(0,s.AH)`
  8483. :host {
  8484. display: flex;
  8485. flex-direction: row;
  8486. gap: var(--wui-spacing-l);
  8487. width: 100%;
  8488. border-radius: var(--wui-border-radius-xs);
  8489. }
  8490. `;var iw=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let im=class extends s.WF{constructor(){super(...arguments),this.name=""}render(){return(0,s.qy)`
  8491. <wui-flex justifyContent="space-between" alignItems="center">
  8492. <wui-text variant="paragraph-500" color="fg-200">${this.name}</wui-text>
  8493. <wui-flex gap="xs" alignItems="center">
  8494. <slot></slot>
  8495. </wui-flex>
  8496. </wui-flex>
  8497. `}};im.styles=[g,w,ig],iw([(0,x.MZ)()],im.prototype,"name",void 0),im=iw([b("wui-details-group-item")],im);let ib=(0,s.AH)`
  8498. :host {
  8499. z-index: calc(var(--w3m-z-index) + 1);
  8500. width: 200px;
  8501. padding: var(--wui-spacing-3xs);
  8502. align-items: center;
  8503. display: inherit;
  8504. border-radius: var(--wui-border-radius-xs);
  8505. border: 1px solid var(--wui-color-gray-glass-002);
  8506. background: var(--wui-color-fg-base-125);
  8507. /* Dark/Elevation/L */
  8508. box-shadow:
  8509. 0px 8px 22px -6px rgba(0, 0, 0, 0.12),
  8510. 0px 14px 64px -4px rgba(0, 0, 0, 0.12);
  8511. }
  8512. `;var iv=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iy=class extends s.WF{constructor(){super(...arguments),this.actions=[],this.isOpen=!1}render(){return this.isOpen?(0,s.qy)`
  8513. <wui-flex flexDirection="column" gap="4xs">
  8514. ${this.actions.map(e=>(0,s.qy)`
  8515. <wui-list-item
  8516. icon=${e.icon}
  8517. iconSize="sm"
  8518. variant="icon"
  8519. @click=${e.onClick}
  8520. >
  8521. <wui-text variant="small-400" color="fg-100">${e.label}</wui-text>
  8522. </wui-list-item>
  8523. `)}
  8524. </wui-flex>
  8525. `:null}};iy.styles=[g,w,ib],iv([(0,x.MZ)({type:Array})],iy.prototype,"actions",void 0),iv([(0,x.MZ)({type:Boolean})],iy.prototype,"isOpen",void 0),iy=iv([b("wui-dropdown-menu")],iy);var ix=i(87580);let iC=(0,s.AH)`
  8526. :host {
  8527. position: relative;
  8528. width: 100%;
  8529. display: inline-block;
  8530. color: var(--wui-color-fg-275);
  8531. }
  8532. input {
  8533. width: 100%;
  8534. border-radius: var(--wui-border-radius-xs);
  8535. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  8536. background: var(--wui-color-gray-glass-002);
  8537. font-size: var(--wui-font-size-paragraph);
  8538. letter-spacing: var(--wui-letter-spacing-paragraph);
  8539. color: var(--wui-color-fg-100);
  8540. transition:
  8541. background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
  8542. border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
  8543. box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
  8544. will-change: background-color, border-color, box-shadow;
  8545. caret-color: var(--wui-color-accent-100);
  8546. }
  8547. input:disabled {
  8548. cursor: not-allowed;
  8549. border: 1px solid var(--wui-color-gray-glass-010);
  8550. }
  8551. input:disabled::placeholder,
  8552. input:disabled + wui-icon {
  8553. color: var(--wui-color-fg-300);
  8554. }
  8555. input::placeholder {
  8556. color: var(--wui-color-fg-275);
  8557. }
  8558. input:focus:enabled {
  8559. background-color: var(--wui-color-gray-glass-005);
  8560. -webkit-box-shadow:
  8561. inset 0 0 0 1px var(--wui-color-accent-100),
  8562. 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8563. -moz-box-shadow:
  8564. inset 0 0 0 1px var(--wui-color-accent-100),
  8565. 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8566. box-shadow:
  8567. inset 0 0 0 1px var(--wui-color-accent-100),
  8568. 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8569. }
  8570. input:hover:enabled {
  8571. background-color: var(--wui-color-gray-glass-005);
  8572. }
  8573. wui-icon {
  8574. position: absolute;
  8575. top: 50%;
  8576. transform: translateY(-50%);
  8577. pointer-events: none;
  8578. }
  8579. .wui-size-sm {
  8580. padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
  8581. }
  8582. wui-icon + .wui-size-sm {
  8583. padding: 9px var(--wui-spacing-m) 10px 36px;
  8584. }
  8585. wui-icon[data-input='sm'] {
  8586. left: var(--wui-spacing-s);
  8587. }
  8588. .wui-size-md {
  8589. padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
  8590. }
  8591. wui-icon + .wui-size-md,
  8592. wui-loading-spinner + .wui-size-md {
  8593. padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);
  8594. }
  8595. wui-icon[data-input='md'] {
  8596. left: var(--wui-spacing-l);
  8597. }
  8598. .wui-size-lg {
  8599. padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
  8600. letter-spacing: var(--wui-letter-spacing-medium-title);
  8601. font-size: var(--wui-font-size-medium-title);
  8602. font-weight: var(--wui-font-weight-light);
  8603. line-height: 130%;
  8604. color: var(--wui-color-fg-100);
  8605. height: 64px;
  8606. }
  8607. .wui-padding-right-xs {
  8608. padding-right: var(--wui-spacing-xs);
  8609. }
  8610. .wui-padding-right-s {
  8611. padding-right: var(--wui-spacing-s);
  8612. }
  8613. .wui-padding-right-m {
  8614. padding-right: var(--wui-spacing-m);
  8615. }
  8616. .wui-padding-right-l {
  8617. padding-right: var(--wui-spacing-l);
  8618. }
  8619. .wui-padding-right-xl {
  8620. padding-right: var(--wui-spacing-xl);
  8621. }
  8622. .wui-padding-right-2xl {
  8623. padding-right: var(--wui-spacing-2xl);
  8624. }
  8625. .wui-padding-right-3xl {
  8626. padding-right: var(--wui-spacing-3xl);
  8627. }
  8628. .wui-padding-right-4xl {
  8629. padding-right: var(--wui-spacing-4xl);
  8630. }
  8631. .wui-padding-right-5xl {
  8632. padding-right: var(--wui-spacing-5xl);
  8633. }
  8634. wui-icon + .wui-size-lg,
  8635. wui-loading-spinner + .wui-size-lg {
  8636. padding-left: 50px;
  8637. }
  8638. wui-icon[data-input='lg'] {
  8639. left: var(--wui-spacing-l);
  8640. }
  8641. .wui-size-mdl {
  8642. padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
  8643. }
  8644. wui-icon + .wui-size-mdl,
  8645. wui-loading-spinner + .wui-size-mdl {
  8646. padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
  8647. }
  8648. wui-icon[data-input='mdl'] {
  8649. left: var(--wui-spacing-m);
  8650. }
  8651. input:placeholder-shown ~ ::slotted(wui-input-element),
  8652. input:placeholder-shown ~ ::slotted(wui-icon) {
  8653. opacity: 0;
  8654. pointer-events: none;
  8655. }
  8656. input::-webkit-outer-spin-button,
  8657. input::-webkit-inner-spin-button {
  8658. -webkit-appearance: none;
  8659. margin: 0;
  8660. }
  8661. input[type='number'] {
  8662. -moz-appearance: textfield;
  8663. }
  8664. ::slotted(wui-input-element),
  8665. ::slotted(wui-icon) {
  8666. position: absolute;
  8667. top: 50%;
  8668. transform: translateY(-50%);
  8669. }
  8670. ::slotted(wui-input-element) {
  8671. right: var(--wui-spacing-m);
  8672. }
  8673. ::slotted(wui-icon) {
  8674. right: 0px;
  8675. }
  8676. `;var iA=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iE=class extends s.WF{constructor(){super(...arguments),this.inputElementRef=(0,ix._)(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){let e=`wui-padding-right-${this.inputRightPadding}`,t={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return(0,s.qy)`${this.templateIcon()}
  8677. <input
  8678. data-testid="wui-input-text"
  8679. ${(0,ix.K)(this.inputElementRef)}
  8680. class=${(0,e8.H)(t)}
  8681. type=${this.type}
  8682. enterkeyhint=${(0,tS.J)(this.enterKeyHint)}
  8683. ?disabled=${this.disabled}
  8684. placeholder=${this.placeholder}
  8685. @input=${this.dispatchInputChangeEvent.bind(this)}
  8686. .value=${this.value||""}
  8687. tabindex=${(0,tS.J)(this.tabIdx)}
  8688. />
  8689. <slot></slot>`}templateIcon(){return this.icon?(0,s.qy)`<wui-icon
  8690. data-input=${this.size}
  8691. size=${this.size}
  8692. color="inherit"
  8693. name=${this.icon}
  8694. ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};iE.styles=[g,w,iC],iA([(0,x.MZ)()],iE.prototype,"size",void 0),iA([(0,x.MZ)()],iE.prototype,"icon",void 0),iA([(0,x.MZ)({type:Boolean})],iE.prototype,"disabled",void 0),iA([(0,x.MZ)()],iE.prototype,"placeholder",void 0),iA([(0,x.MZ)()],iE.prototype,"type",void 0),iA([(0,x.MZ)()],iE.prototype,"keyHint",void 0),iA([(0,x.MZ)()],iE.prototype,"value",void 0),iA([(0,x.MZ)()],iE.prototype,"inputRightPadding",void 0),iA([(0,x.MZ)()],iE.prototype,"tabIdx",void 0),iE=iA([b("wui-input-text")],iE);let i_=(0,s.AH)`
  8695. :host {
  8696. position: relative;
  8697. display: inline-block;
  8698. }
  8699. wui-text {
  8700. margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
  8701. }
  8702. `;var ik=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iI=class extends s.WF{constructor(){super(...arguments),this.disabled=!1}render(){return(0,s.qy)`
  8703. <wui-input-text
  8704. type="email"
  8705. placeholder="Email"
  8706. icon="mail"
  8707. size="mdl"
  8708. .disabled=${this.disabled}
  8709. .value=${this.value}
  8710. data-testid="wui-email-input"
  8711. tabIdx=${(0,tS.J)(this.tabIdx)}
  8712. ></wui-input-text>
  8713. ${this.templateError()}
  8714. `}templateError(){return this.errorMessage?(0,s.qy)`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};iI.styles=[g,i_],ik([(0,x.MZ)()],iI.prototype,"errorMessage",void 0),ik([(0,x.MZ)({type:Boolean})],iI.prototype,"disabled",void 0),ik([(0,x.MZ)()],iI.prototype,"value",void 0),ik([(0,x.MZ)()],iI.prototype,"tabIdx",void 0),iI=ik([b("wui-email-input")],iI);let iS=(0,s.AH)`
  8715. :host {
  8716. position: relative;
  8717. width: 100%;
  8718. display: inline-block;
  8719. color: var(--wui-color-fg-275);
  8720. }
  8721. .error {
  8722. margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
  8723. }
  8724. .base-name {
  8725. position: absolute;
  8726. right: 45px;
  8727. top: 15px;
  8728. text-align: right;
  8729. }
  8730. `;var iT=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iN=class extends s.WF{constructor(){super(...arguments),this.disabled=!1,this.loading=!1}render(){return(0,s.qy)`
  8731. <wui-input-text
  8732. value=${(0,tS.J)(this.value)}
  8733. ?disabled=${this.disabled}
  8734. .value=${this.value||""}
  8735. data-testid="wui-ens-input"
  8736. inputRightPadding="5xl"
  8737. >
  8738. ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()}
  8739. </wui-input-text>
  8740. `}baseNameTemplate(){return(0,s.qy)`<wui-text variant="paragraph-400" color="fg-200" class="base-name">
  8741. ${u.oU.WC_NAME_SUFFIX}
  8742. </wui-text>`}loadingTemplate(){return this.loading?(0,s.qy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}errorTemplate(){return this.errorMessage?(0,s.qy)`<wui-text variant="tiny-500" color="error-100" class="error"
  8743. >${this.errorMessage}</wui-text
  8744. >`:null}};iN.styles=[g,iS],iT([(0,x.MZ)()],iN.prototype,"errorMessage",void 0),iT([(0,x.MZ)({type:Boolean})],iN.prototype,"disabled",void 0),iT([(0,x.MZ)()],iN.prototype,"value",void 0),iT([(0,x.MZ)({type:Boolean})],iN.prototype,"loading",void 0),iN=iT([b("wui-ens-input")],iN);let iP=(0,s.AH)`
  8745. button {
  8746. border-radius: var(--local-border-radius);
  8747. color: var(--wui-color-fg-100);
  8748. padding: var(--local-padding);
  8749. }
  8750. @media (max-width: 700px) {
  8751. button {
  8752. padding: var(--wui-spacing-s);
  8753. }
  8754. }
  8755. button > wui-icon {
  8756. pointer-events: none;
  8757. }
  8758. button:disabled > wui-icon {
  8759. color: var(--wui-color-bg-300) !important;
  8760. }
  8761. button:disabled {
  8762. background-color: transparent;
  8763. }
  8764. `;var iR=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iO=class extends s.WF{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){let e="lg"===this.size?"--wui-border-radius-xs":"--wui-border-radius-xxs",t="lg"===this.size?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=`
  8765. --local-border-radius: var(${e});
  8766. --local-padding: var(${t});
  8767. `,(0,s.qy)`
  8768. <button ?disabled=${this.disabled} ontouchstart>
  8769. <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
  8770. </button>
  8771. `}};iO.styles=[g,w,m,iP],iR([(0,x.MZ)()],iO.prototype,"size",void 0),iR([(0,x.MZ)({type:Boolean})],iO.prototype,"disabled",void 0),iR([(0,x.MZ)()],iO.prototype,"icon",void 0),iR([(0,x.MZ)()],iO.prototype,"iconColor",void 0),iO=iR([b("wui-icon-link")],iO);let iM=(0,s.AH)`
  8772. button {
  8773. background-color: var(--wui-color-fg-300);
  8774. border-radius: var(--wui-border-radius-4xs);
  8775. width: 16px;
  8776. height: 16px;
  8777. }
  8778. button:disabled {
  8779. background-color: var(--wui-color-bg-300);
  8780. }
  8781. wui-icon {
  8782. color: var(--wui-color-bg-200) !important;
  8783. }
  8784. button:focus-visible {
  8785. background-color: var(--wui-color-fg-250);
  8786. border: 1px solid var(--wui-color-accent-100);
  8787. }
  8788. @media (hover: hover) and (pointer: fine) {
  8789. button:hover:enabled {
  8790. background-color: var(--wui-color-fg-250);
  8791. }
  8792. button:active:enabled {
  8793. background-color: var(--wui-color-fg-225);
  8794. }
  8795. }
  8796. `;var iD=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iU=class extends s.WF{constructor(){super(...arguments),this.icon="copy"}render(){return(0,s.qy)`
  8797. <button>
  8798. <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
  8799. </button>
  8800. `}};iU.styles=[g,w,iM],iD([(0,x.MZ)()],iU.prototype,"icon",void 0),iU=iD([b("wui-input-element")],iU);let i$=(0,s.AH)`
  8801. :host {
  8802. position: relative;
  8803. display: inline-block;
  8804. }
  8805. input {
  8806. width: 50px;
  8807. height: 50px;
  8808. background: var(--wui-color-gray-glass-010);
  8809. border-radius: var(--wui-border-radius-xs);
  8810. border: 1px solid var(--wui-color-gray-glass-005);
  8811. font-family: var(--wui-font-family);
  8812. font-size: var(--wui-font-size-large);
  8813. font-weight: var(--wui-font-weight-regular);
  8814. letter-spacing: var(--wui-letter-spacing-large);
  8815. text-align: center;
  8816. color: var(--wui-color-fg-100);
  8817. caret-color: var(--wui-color-accent-100);
  8818. transition:
  8819. background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
  8820. border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
  8821. box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
  8822. will-change: background-color, border-color, box-shadow;
  8823. box-sizing: border-box;
  8824. -webkit-appearance: none;
  8825. -moz-appearance: textfield;
  8826. padding: 0px;
  8827. }
  8828. input::-webkit-outer-spin-button,
  8829. input::-webkit-inner-spin-button {
  8830. -webkit-appearance: none;
  8831. margin: 0;
  8832. }
  8833. input[type='number'] {
  8834. -moz-appearance: textfield;
  8835. }
  8836. input:disabled {
  8837. cursor: not-allowed;
  8838. border: 1px solid var(--wui-color-gray-glass-010);
  8839. background: var(--wui-color-gray-glass-005);
  8840. }
  8841. input:focus:enabled {
  8842. background-color: var(--wui-color-gray-glass-015);
  8843. border: 1px solid var(--wui-color-accent-100);
  8844. -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8845. -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8846. box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
  8847. }
  8848. @media (hover: hover) and (pointer: fine) {
  8849. input:hover:enabled {
  8850. background-color: var(--wui-color-gray-glass-015);
  8851. }
  8852. }
  8853. `;var iL=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ij=class extends s.WF{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return(0,s.qy)`<input
  8854. type="number"
  8855. maxlength="1"
  8856. inputmode="numeric"
  8857. autofocus
  8858. ?disabled=${this.disabled}
  8859. value=${this.value}
  8860. /> `}};ij.styles=[g,w,i$],iL([(0,x.MZ)({type:Boolean})],ij.prototype,"disabled",void 0),iL([(0,x.MZ)({type:String})],ij.prototype,"value",void 0),ij=iL([b("wui-input-numeric")],ij);let iB=(0,s.AH)`
  8861. button {
  8862. padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
  8863. border-radius: var(--wui-border-radius-3xs);
  8864. background-color: transparent;
  8865. color: var(--wui-color-accent-100);
  8866. }
  8867. button:disabled {
  8868. background-color: transparent;
  8869. color: var(--wui-color-gray-glass-015);
  8870. }
  8871. button:hover {
  8872. background-color: var(--wui-color-gray-glass-005);
  8873. }
  8874. `;var iW=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iq=class extends s.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return(0,s.qy)`
  8875. <button ?disabled=${this.disabled} tabindex=${(0,tS.J)(this.tabIdx)} ontouchstart>
  8876. <slot name="iconLeft"></slot>
  8877. <wui-text variant="small-600" color=${this.color}>
  8878. <slot></slot>
  8879. </wui-text>
  8880. <slot name="iconRight"></slot>
  8881. </button>
  8882. `}};iq.styles=[g,w,iB],iW([(0,x.MZ)()],iq.prototype,"tabIdx",void 0),iW([(0,x.MZ)({type:Boolean})],iq.prototype,"disabled",void 0),iW([(0,x.MZ)()],iq.prototype,"color",void 0),iq=iW([b("wui-link")],iq);let iH=(0,s.AH)`
  8883. button {
  8884. column-gap: var(--wui-spacing-s);
  8885. padding: 11px 18px 11px var(--wui-spacing-s);
  8886. width: 100%;
  8887. background-color: var(--wui-color-gray-glass-002);
  8888. border-radius: var(--wui-border-radius-xs);
  8889. color: var(--wui-color-fg-250);
  8890. transition:
  8891. color var(--wui-ease-out-power-1) var(--wui-duration-md),
  8892. background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
  8893. will-change: color, background-color;
  8894. }
  8895. button[data-iconvariant='square'],
  8896. button[data-iconvariant='square-blue'] {
  8897. padding: 6px 18px 6px 9px;
  8898. }
  8899. button > wui-flex {
  8900. flex: 1;
  8901. }
  8902. button > wui-image {
  8903. width: 32px;
  8904. height: 32px;
  8905. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  8906. border-radius: var(--wui-border-radius-3xl);
  8907. }
  8908. button > wui-icon {
  8909. width: 36px;
  8910. height: 36px;
  8911. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
  8912. will-change: opacity;
  8913. }
  8914. button > wui-icon-box[data-variant='blue'] {
  8915. box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
  8916. }
  8917. button > wui-icon-box[data-variant='overlay'] {
  8918. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  8919. }
  8920. button > wui-icon-box[data-variant='square-blue'] {
  8921. border-radius: var(--wui-border-radius-3xs);
  8922. position: relative;
  8923. border: none;
  8924. width: 36px;
  8925. height: 36px;
  8926. }
  8927. button > wui-icon-box[data-variant='square-blue']::after {
  8928. content: '';
  8929. position: absolute;
  8930. top: 0;
  8931. bottom: 0;
  8932. left: 0;
  8933. right: 0;
  8934. border-radius: inherit;
  8935. border: 1px solid var(--wui-color-accent-glass-010);
  8936. pointer-events: none;
  8937. }
  8938. button > wui-icon:last-child {
  8939. width: 14px;
  8940. height: 14px;
  8941. }
  8942. button:disabled {
  8943. color: var(--wui-color-gray-glass-020);
  8944. }
  8945. button[data-loading='true'] > wui-icon {
  8946. opacity: 0;
  8947. }
  8948. wui-loading-spinner {
  8949. position: absolute;
  8950. right: 18px;
  8951. top: 50%;
  8952. transform: translateY(-50%);
  8953. }
  8954. `;var iz=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iF=class extends s.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return(0,s.qy)`
  8955. <button
  8956. ?disabled=${!!this.loading||!!this.disabled}
  8957. data-loading=${this.loading}
  8958. data-iconvariant=${(0,tS.J)(this.iconVariant)}
  8959. tabindex=${(0,tS.J)(this.tabIdx)}
  8960. ontouchstart
  8961. >
  8962. ${this.loadingTemplate()} ${this.visualTemplate()}
  8963. <wui-flex gap="3xs">
  8964. <slot></slot>
  8965. </wui-flex>
  8966. ${this.chevronTemplate()}
  8967. </button>
  8968. `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return(0,s.qy)`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){let e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",t="square-blue"===this.iconVariant?"mdl":"md",i=this.iconSize?this.iconSize:t;return(0,s.qy)`
  8969. <wui-icon-box
  8970. data-variant=${this.iconVariant}
  8971. icon=${this.icon}
  8972. iconSize=${i}
  8973. background="transparent"
  8974. iconColor=${e}
  8975. backgroundColor=${e}
  8976. size=${t}
  8977. ></wui-icon-box>
  8978. `}return null}loadingTemplate(){return this.loading?(0,s.qy)`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:(0,s.qy)``}chevronTemplate(){return this.chevron?(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};iF.styles=[g,w,iH],iz([(0,x.MZ)()],iF.prototype,"icon",void 0),iz([(0,x.MZ)()],iF.prototype,"iconSize",void 0),iz([(0,x.MZ)()],iF.prototype,"tabIdx",void 0),iz([(0,x.MZ)()],iF.prototype,"variant",void 0),iz([(0,x.MZ)()],iF.prototype,"iconVariant",void 0),iz([(0,x.MZ)({type:Boolean})],iF.prototype,"disabled",void 0),iz([(0,x.MZ)()],iF.prototype,"imageSrc",void 0),iz([(0,x.MZ)()],iF.prototype,"alt",void 0),iz([(0,x.MZ)({type:Boolean})],iF.prototype,"chevron",void 0),iz([(0,x.MZ)({type:Boolean})],iF.prototype,"loading",void 0),iF=iz([b("wui-list-item")],iF),function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"}(o||(o={}));let iZ=(0,s.AH)`
  8979. :host > wui-flex {
  8980. display: flex;
  8981. justify-content: center;
  8982. align-items: center;
  8983. position: relative;
  8984. width: 40px;
  8985. height: 40px;
  8986. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  8987. background-color: var(--wui-color-gray-glass-005);
  8988. }
  8989. :host > wui-flex wui-image {
  8990. display: block;
  8991. }
  8992. :host > wui-flex,
  8993. :host > wui-flex wui-image,
  8994. .swap-images-container,
  8995. .swap-images-container.nft,
  8996. wui-image.nft {
  8997. border-top-left-radius: var(--local-left-border-radius);
  8998. border-top-right-radius: var(--local-right-border-radius);
  8999. border-bottom-left-radius: var(--local-left-border-radius);
  9000. border-bottom-right-radius: var(--local-right-border-radius);
  9001. }
  9002. wui-icon {
  9003. width: 20px;
  9004. height: 20px;
  9005. }
  9006. wui-icon-box {
  9007. position: absolute;
  9008. right: 0;
  9009. bottom: 0;
  9010. transform: translate(20%, 20%);
  9011. }
  9012. .swap-images-container {
  9013. position: relative;
  9014. width: 40px;
  9015. height: 40px;
  9016. overflow: hidden;
  9017. }
  9018. .swap-images-container wui-image:first-child {
  9019. position: absolute;
  9020. width: 40px;
  9021. height: 40px;
  9022. top: 0;
  9023. left: 0%;
  9024. clip-path: inset(0px calc(50% + 2px) 0px 0%);
  9025. }
  9026. .swap-images-container wui-image:last-child {
  9027. clip-path: inset(0px 0px 0px calc(50% + 2px));
  9028. }
  9029. `;var iV=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iK=class extends s.WF{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){let[e,t]=this.images,i=e?.type==="NFT",r=t?.url?"NFT"===t.type:i;return this.style.cssText=`
  9030. --local-left-border-radius: ${i?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)"};
  9031. --local-right-border-radius: ${r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)"};
  9032. `,(0,s.qy)`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){let[e,t]=this.images,i=e?.type;return 2===this.images.length&&(e?.url||t?.url)?(0,s.qy)`<div class="swap-images-container">
  9033. ${e?.url?(0,s.qy)`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:null}
  9034. ${t?.url?(0,s.qy)`<wui-image src=${t.url} alt="Transaction image"></wui-image>`:null}
  9035. </div>`:e?.url?(0,s.qy)`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:"NFT"===i?(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="nftPlaceholder"></wui-icon>`:(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="coinPlaceholder"></wui-icon>`}templateIcon(){let e,t="accent-100";return(e=this.getIcon(),this.status&&(t=this.getStatusColor()),e)?(0,s.qy)`
  9036. <wui-icon-box
  9037. size="xxs"
  9038. iconColor=${t}
  9039. backgroundColor=${t}
  9040. background="opaque"
  9041. icon=${e}
  9042. ?border=${!0}
  9043. borderColor="wui-color-bg-125"
  9044. ></wui-icon-box>
  9045. `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontalBold":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};iK.styles=[iZ],iV([(0,x.MZ)()],iK.prototype,"type",void 0),iV([(0,x.MZ)()],iK.prototype,"status",void 0),iV([(0,x.MZ)()],iK.prototype,"direction",void 0),iV([(0,x.MZ)({type:Boolean})],iK.prototype,"onlyDirectionIcon",void 0),iV([(0,x.MZ)({type:Array})],iK.prototype,"images",void 0),iV([(0,x.MZ)({type:Object})],iK.prototype,"secondImage",void 0),iK=iV([b("wui-transaction-visual")],iK);let iG=(0,s.AH)`
  9046. :host > wui-flex:first-child {
  9047. align-items: center;
  9048. column-gap: var(--wui-spacing-s);
  9049. padding: 6.5px var(--wui-spacing-xs) 6.5px var(--wui-spacing-xs);
  9050. width: 100%;
  9051. }
  9052. :host > wui-flex:first-child wui-text:nth-child(1) {
  9053. text-transform: capitalize;
  9054. }
  9055. wui-transaction-visual {
  9056. width: 40px;
  9057. height: 40px;
  9058. }
  9059. wui-flex {
  9060. flex: 1;
  9061. }
  9062. :host wui-flex wui-flex {
  9063. overflow: hidden;
  9064. }
  9065. :host .description-container wui-text span {
  9066. word-break: break-all;
  9067. }
  9068. :host .description-container wui-text {
  9069. overflow: hidden;
  9070. }
  9071. :host .description-separator-icon {
  9072. margin: 0px 6px;
  9073. }
  9074. :host wui-text > span {
  9075. overflow: hidden;
  9076. display: -webkit-box;
  9077. -webkit-box-orient: vertical;
  9078. -webkit-line-clamp: 1;
  9079. }
  9080. `;var iJ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let iY=class extends s.WF{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[],this.price=[],this.amount=[],this.symbol=[]}render(){return(0,s.qy)`
  9081. <wui-flex>
  9082. <wui-transaction-visual
  9083. .status=${this.status}
  9084. direction=${(0,tS.J)(this.direction)}
  9085. type=${this.type}
  9086. onlyDirectionIcon=${(0,tS.J)(this.onlyDirectionIcon)}
  9087. .images=${this.images}
  9088. ></wui-transaction-visual>
  9089. <wui-flex flexDirection="column" gap="3xs">
  9090. <wui-text variant="paragraph-600" color="fg-100">
  9091. ${o[this.type]||this.type}
  9092. </wui-text>
  9093. <wui-flex class="description-container">
  9094. ${this.templateDescription()} ${this.templateSecondDescription()}
  9095. </wui-flex>
  9096. </wui-flex>
  9097. <wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text>
  9098. </wui-flex>
  9099. `}templateDescription(){let e=this.descriptions?.[0];return e?(0,s.qy)`
  9100. <wui-text variant="small-500" color="fg-200">
  9101. <span>${e}</span>
  9102. </wui-text>
  9103. `:null}templateSecondDescription(){let e=this.descriptions?.[1];return e?(0,s.qy)`
  9104. <wui-icon class="description-separator-icon" size="xxs" name="arrowRight"></wui-icon>
  9105. <wui-text variant="small-400" color="fg-200">
  9106. <span>${e}</span>
  9107. </wui-text>
  9108. `:null}};iY.styles=[g,iG],iJ([(0,x.MZ)()],iY.prototype,"type",void 0),iJ([(0,x.MZ)({type:Array})],iY.prototype,"descriptions",void 0),iJ([(0,x.MZ)()],iY.prototype,"date",void 0),iJ([(0,x.MZ)({type:Boolean})],iY.prototype,"onlyDirectionIcon",void 0),iJ([(0,x.MZ)()],iY.prototype,"status",void 0),iJ([(0,x.MZ)()],iY.prototype,"direction",void 0),iJ([(0,x.MZ)({type:Array})],iY.prototype,"images",void 0),iJ([(0,x.MZ)({type:Array})],iY.prototype,"price",void 0),iJ([(0,x.MZ)({type:Array})],iY.prototype,"amount",void 0),iJ([(0,x.MZ)({type:Array})],iY.prototype,"symbol",void 0),iY=iJ([b("wui-transaction-list-item")],iY);let iQ=(0,s.AH)`
  9109. :host > wui-flex:first-child {
  9110. column-gap: var(--wui-spacing-s);
  9111. padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
  9112. width: 100%;
  9113. }
  9114. wui-flex {
  9115. display: flex;
  9116. flex: 1;
  9117. }
  9118. `,iX=class extends s.WF{render(){return(0,s.qy)`
  9119. <wui-flex alignItems="center">
  9120. <wui-shimmer width="40px" height="40px"></wui-shimmer>
  9121. <wui-flex flexDirection="column" gap="2xs">
  9122. <wui-shimmer width="72px" height="16px" borderRadius="4xs"></wui-shimmer>
  9123. <wui-shimmer width="148px" height="14px" borderRadius="4xs"></wui-shimmer>
  9124. </wui-flex>
  9125. <wui-shimmer width="24px" height="12px" borderRadius="5xs"></wui-shimmer>
  9126. </wui-flex>
  9127. `}};iX.styles=[g,iQ],iX=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([b("wui-transaction-list-item-loader")],iX);let i0=(0,s.AH)`
  9128. :host {
  9129. display: flex;
  9130. justify-content: center;
  9131. align-items: center;
  9132. height: var(--wui-spacing-m);
  9133. padding: 0 var(--wui-spacing-3xs) !important;
  9134. border-radius: var(--wui-border-radius-5xs);
  9135. }
  9136. :host > wui-text {
  9137. transform: translateY(5%);
  9138. }
  9139. :host([data-variant='main']) {
  9140. background-color: var(--wui-color-accent-glass-015);
  9141. color: var(--wui-color-accent-100);
  9142. }
  9143. :host([data-variant='shade']) {
  9144. background-color: var(--wui-color-gray-glass-010);
  9145. color: var(--wui-color-fg-200);
  9146. }
  9147. :host([data-variant='success']) {
  9148. background-color: var(--wui-icon-box-bg-success-100);
  9149. color: var(--wui-color-success-100);
  9150. }
  9151. :host([data-variant='error']) {
  9152. background-color: var(--wui-icon-box-bg-error-100);
  9153. color: var(--wui-color-error-100);
  9154. }
  9155. :host([data-size='lg']) {
  9156. padding: 11px 5px !important;
  9157. }
  9158. :host([data-size='lg']) > wui-text {
  9159. transform: translateY(2%);
  9160. }
  9161. `;var i1=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let i2=class extends s.WF{constructor(){super(...arguments),this.variant="main",this.size="lg"}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e="md"===this.size?"mini-700":"micro-700";return(0,s.qy)`
  9162. <wui-text data-variant=${this.variant} variant=${e} color="inherit">
  9163. <slot></slot>
  9164. </wui-text>
  9165. `}};i2.styles=[g,i0],i1([(0,x.MZ)()],i2.prototype,"variant",void 0),i1([(0,x.MZ)()],i2.prototype,"size",void 0),i2=i1([b("wui-tag")],i2);let i3=(0,s.AH)`
  9166. button {
  9167. column-gap: var(--wui-spacing-s);
  9168. padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
  9169. width: 100%;
  9170. background-color: var(--wui-color-gray-glass-002);
  9171. border-radius: var(--wui-border-radius-xs);
  9172. color: var(--wui-color-fg-100);
  9173. }
  9174. button > wui-text:nth-child(2) {
  9175. display: flex;
  9176. flex: 1;
  9177. }
  9178. button:disabled {
  9179. background-color: var(--wui-color-gray-glass-015);
  9180. color: var(--wui-color-gray-glass-015);
  9181. }
  9182. button:disabled > wui-tag {
  9183. background-color: var(--wui-color-gray-glass-010);
  9184. color: var(--wui-color-fg-300);
  9185. }
  9186. wui-icon {
  9187. color: var(--wui-color-fg-200) !important;
  9188. }
  9189. `;var i5=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let i4=class extends s.WF{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return(0,s.qy)`
  9190. <button ?disabled=${this.disabled} tabindex=${(0,tS.J)(this.tabIdx)} ontouchstart>
  9191. ${this.templateAllWallets()} ${this.templateWalletImage()}
  9192. <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
  9193. ${this.templateStatus()}
  9194. </button>
  9195. `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?(0,s.qy)` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?(0,s.qy)` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?(0,s.qy)`<wui-wallet-image
  9196. size="sm"
  9197. imageSrc=${this.imageSrc}
  9198. name=${this.name}
  9199. .installed=${this.installed}
  9200. ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:(0,s.qy)`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.tagLabel&&this.tagVariant?(0,s.qy)`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?(0,s.qy)`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};i4.styles=[g,w,i3],i5([(0,x.MZ)({type:Array})],i4.prototype,"walletImages",void 0),i5([(0,x.MZ)()],i4.prototype,"imageSrc",void 0),i5([(0,x.MZ)()],i4.prototype,"name",void 0),i5([(0,x.MZ)()],i4.prototype,"tagLabel",void 0),i5([(0,x.MZ)()],i4.prototype,"tagVariant",void 0),i5([(0,x.MZ)()],i4.prototype,"icon",void 0),i5([(0,x.MZ)()],i4.prototype,"walletIcon",void 0),i5([(0,x.MZ)()],i4.prototype,"tabIdx",void 0),i5([(0,x.MZ)({type:Boolean})],i4.prototype,"installed",void 0),i5([(0,x.MZ)({type:Boolean})],i4.prototype,"disabled",void 0),i5([(0,x.MZ)({type:Boolean})],i4.prototype,"showAllWallets",void 0),i4=i5([b("wui-list-wallet")],i4);let i6=(0,s.AH)`
  9201. :host {
  9202. display: flex;
  9203. justify-content: center;
  9204. align-items: center;
  9205. width: 40px;
  9206. height: 40px;
  9207. border-radius: var(--wui-border-radius-3xl);
  9208. border: 1px solid var(--wui-color-gray-glass-005);
  9209. overflow: hidden;
  9210. }
  9211. wui-icon {
  9212. width: 100%;
  9213. height: 100%;
  9214. }
  9215. `;var i8=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let i9=class extends s.WF{constructor(){super(...arguments),this.logo="google"}render(){return(0,s.qy)`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};i9.styles=[g,i6],i8([(0,x.MZ)()],i9.prototype,"logo",void 0),i9=i8([b("wui-logo")],i9);let i7=(0,s.AH)`
  9216. :host {
  9217. display: block;
  9218. width: 100%;
  9219. }
  9220. button {
  9221. width: 100%;
  9222. height: 56px;
  9223. background: var(--wui-color-gray-glass-002);
  9224. border-radius: var(--wui-border-radius-xs);
  9225. }
  9226. `;var re=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rt=class extends s.WF{constructor(){super(...arguments),this.logo="google",this.disabled=!1,this.tabIdx=void 0}render(){return(0,s.qy)`
  9227. <button ?disabled=${this.disabled} tabindex=${(0,tS.J)(this.tabIdx)} ontouchstart>
  9228. <wui-logo logo=${this.logo}></wui-logo>
  9229. </button>
  9230. `}};rt.styles=[g,w,i7],re([(0,x.MZ)()],rt.prototype,"logo",void 0),re([(0,x.MZ)({type:Boolean})],rt.prototype,"disabled",void 0),re([(0,x.MZ)()],rt.prototype,"tabIdx",void 0),rt=re([b("wui-logo-select")],rt);let ri=(0,s.AH)`
  9231. :host {
  9232. display: block;
  9233. }
  9234. button {
  9235. border-radius: var(--wui-border-radius-3xl);
  9236. display: flex;
  9237. gap: var(--wui-spacing-xs);
  9238. padding: var(--wui-spacing-2xs) var(--wui-spacing-s) var(--wui-spacing-2xs)
  9239. var(--wui-spacing-xs);
  9240. border: 1px solid var(--wui-color-gray-glass-010);
  9241. background-color: var(--wui-color-gray-glass-005);
  9242. color: var(--wui-color-fg-100);
  9243. }
  9244. button:disabled {
  9245. border: 1px solid var(--wui-color-gray-glass-005);
  9246. background-color: var(--wui-color-gray-glass-015);
  9247. color: var(--wui-color-gray-glass-015);
  9248. }
  9249. @media (hover: hover) and (pointer: fine) {
  9250. button:hover:enabled {
  9251. background-color: var(--wui-color-gray-glass-010);
  9252. }
  9253. button:active:enabled {
  9254. background-color: var(--wui-color-gray-glass-015);
  9255. }
  9256. }
  9257. wui-image,
  9258. wui-icon-box {
  9259. border-radius: var(--wui-border-radius-3xl);
  9260. width: 24px;
  9261. height: 24px;
  9262. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  9263. }
  9264. `;var rr=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rn=class extends s.WF{constructor(){super(...arguments),this.imageSrc=void 0,this.isUnsupportedChain=void 0,this.disabled=!1}render(){return(0,s.qy)`
  9265. <button data-testid="wui-network-button" ?disabled=${this.disabled}>
  9266. ${this.visualTemplate()}
  9267. <wui-text variant="paragraph-600" color="inherit">
  9268. <slot></slot>
  9269. </wui-text>
  9270. </button>
  9271. `}visualTemplate(){return this.isUnsupportedChain?(0,s.qy)`
  9272. <wui-icon-box
  9273. size="sm"
  9274. iconColor="error-100"
  9275. backgroundColor="error-100"
  9276. icon="warningCircle"
  9277. ></wui-icon-box>
  9278. `:this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,s.qy)`
  9279. <wui-icon-box
  9280. size="sm"
  9281. iconColor="inverse-100"
  9282. backgroundColor="fg-100"
  9283. icon="networkPlaceholder"
  9284. ></wui-icon-box>
  9285. `}};rn.styles=[g,w,ri],rr([(0,x.MZ)()],rn.prototype,"imageSrc",void 0),rr([(0,x.MZ)({type:Boolean})],rn.prototype,"isUnsupportedChain",void 0),rr([(0,x.MZ)({type:Boolean})],rn.prototype,"disabled",void 0),rn=rr([b("wui-network-button")],rn);let ra=(0,s.AH)`
  9286. :host {
  9287. position: relative;
  9288. display: block;
  9289. }
  9290. `;var ro=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rs=class extends s.WF{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map(()=>""),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every(e=>""!==e),this.handleKeyDown=(e,t)=>{let i=e.target,r=this.getInputElement(i);if(!r)return;["ArrowLeft","ArrowRight","Shift","Delete"].includes(e.key)&&e.preventDefault();let n=r.selectionStart;switch(e.key){case"ArrowLeft":n&&r.setSelectionRange(n+1,n+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===r.value?this.focusInputField("prev",t):this.updateInput(r,t,"")}},this.focusInputField=(e,t)=>{if("next"===e){let e=t+1;if(!this.shouldInputBeEnabled(e))return;let i=this.numerics[e<this.length?e:t],r=i?this.getInputElement(i):void 0;r&&(r.disabled=!1,r.focus())}if("prev"===e){let e=t-1,i=this.numerics[e>-1?e:t],r=i?this.getInputElement(i):void 0;r&&r.focus()}}}firstUpdated(){this.otp&&(this.values=this.otp.split(""));let e=this.shadowRoot?.querySelectorAll("wui-input-numeric");e&&(this.numerics=Array.from(e)),this.numerics[0]?.focus()}render(){return(0,s.qy)`
  9291. <wui-flex gap="xxs" data-testid="wui-otp-input">
  9292. ${Array.from({length:this.length}).map((e,t)=>(0,s.qy)`
  9293. <wui-input-numeric
  9294. @input=${e=>this.handleInput(e,t)}
  9295. @click=${e=>this.selectInput(e)}
  9296. @keydown=${e=>this.handleKeyDown(e,t)}
  9297. .disabled=${!this.shouldInputBeEnabled(t)}
  9298. .value=${this.values[t]||""}
  9299. >
  9300. </wui-input-numeric>
  9301. `)}
  9302. </wui-flex>
  9303. `}updateInput(e,t,i){let r=this.numerics[t],n=e||(r?this.getInputElement(r):void 0);n&&(n.value=i,this.values=this.values.map((e,r)=>r===t?i:e))}selectInput(e){let t=e.target;if(t){let e=this.getInputElement(t);e?.select()}}handleInput(e,t){let i=e.target,r=this.getInputElement(i);if(r){let i=r.value;"insertFromPaste"===e.inputType?this.handlePaste(r,i,t):tT.isNumber(i)&&e.data?(this.updateInput(r,t,e.data),this.focusInputField("next",t)):this.updateInput(r,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,i){let r=t[0];if(r&&tT.isNumber(r)){this.updateInput(e,i,r);let n=t.substring(1);if(i+1<this.length&&n.length){let e=this.numerics[i+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,n,i+1)}else this.focusInputField("next",i)}else this.updateInput(e,i,"")}getInputElement(e){return e.shadowRoot?.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){let e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};rs.styles=[g,ra],ro([(0,x.MZ)({type:Number})],rs.prototype,"length",void 0),ro([(0,x.MZ)({type:String})],rs.prototype,"otp",void 0),ro([(0,x.wk)()],rs.prototype,"values",void 0),rs=ro([b("wui-otp")],rs);var rc=i(28480);function rl(e,t,i){return e!==t&&(e-t<0?t-e:e-t)<=i+.1}let ru={generate(e,t,i){let r="#141414",n=[],a=function(e,t){let i=Array.prototype.slice.call(rc.create(e,{errorCorrectionLevel:"Q"}).modules.data,0),r=Math.sqrt(i.length);return i.reduce((e,t,i)=>(i%r==0?e.push([t]):e[e.length-1].push(t))&&e,[])}(e,0),o=t/a.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:e,y:t})=>{let i=(a.length-7)*o*e,l=(a.length-7)*o*t;for(let e=0;e<c.length;e+=1){let t=o*(7-2*e);n.push((0,s.JW)`
  9304. <rect
  9305. fill=${2===e?r:"transparent"}
  9306. width=${0===e?t-5:t}
  9307. rx= ${0===e?(t-5)*.45:.45*t}
  9308. ry= ${0===e?(t-5)*.45:.45*t}
  9309. stroke=${r}
  9310. stroke-width=${0===e?5:0}
  9311. height=${0===e?t-5:t}
  9312. x= ${0===e?l+o*e+2.5:l+o*e}
  9313. y= ${0===e?i+o*e+2.5:i+o*e}
  9314. />
  9315. `)}});let l=Math.floor((i+25)/o),u=a.length/2-l/2,d=a.length/2+l/2-1,h=[];a.forEach((e,t)=>{e.forEach((e,i)=>{!a[t][i]||t<7&&i<7||t>a.length-8&&i<7||t<7&&i>a.length-8||t>u&&t<d&&i>u&&i<d||h.push([t*o+o/2,i*o+o/2])})});let p={};return h.forEach(([e,t])=>{p[e]?p[e]?.push(t):p[e]=[t]}),Object.entries(p).map(([e,t])=>{let i=t.filter(e=>t.every(t=>!rl(e,t,o)));return[Number(e),i]}).forEach(([e,t])=>{t.forEach(t=>{n.push((0,s.JW)`<circle cx=${e} cy=${t} fill=${r} r=${o/2.5} />`)})}),Object.entries(p).filter(([e,t])=>t.length>1).map(([e,t])=>{let i=t.filter(e=>t.some(t=>rl(e,t,o)));return[Number(e),i]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let i=[];for(let e of t){let t=i.find(t=>t.some(t=>rl(e,t,o)));t?t.push(e):i.push([e])}return[e,i.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,i])=>{n.push((0,s.JW)`
  9316. <line
  9317. x1=${e}
  9318. x2=${e}
  9319. y1=${t}
  9320. y2=${i}
  9321. stroke=${r}
  9322. stroke-width=${o/1.25}
  9323. stroke-linecap="round"
  9324. />
  9325. `)})}),n}},rd=(0,s.AH)`
  9326. :host {
  9327. position: relative;
  9328. user-select: none;
  9329. display: block;
  9330. overflow: hidden;
  9331. aspect-ratio: 1 / 1;
  9332. width: var(--local-size);
  9333. }
  9334. :host([data-theme='dark']) {
  9335. border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
  9336. background-color: var(--wui-color-inverse-100);
  9337. padding: var(--wui-spacing-l);
  9338. }
  9339. :host([data-theme='light']) {
  9340. box-shadow: 0 0 0 1px var(--wui-color-bg-125);
  9341. background-color: var(--wui-color-bg-125);
  9342. }
  9343. :host([data-clear='true']) > wui-icon {
  9344. display: none;
  9345. }
  9346. svg:first-child,
  9347. wui-image,
  9348. wui-icon {
  9349. position: absolute;
  9350. top: 50%;
  9351. left: 50%;
  9352. transform: translateY(-50%) translateX(-50%);
  9353. }
  9354. wui-image {
  9355. width: 25%;
  9356. height: 25%;
  9357. border-radius: var(--wui-border-radius-xs);
  9358. }
  9359. wui-icon {
  9360. width: 100%;
  9361. height: 100%;
  9362. color: #3396ff !important;
  9363. transform: translateY(-50%) translateX(-50%) scale(0.25);
  9364. }
  9365. `;var rh=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rp=class extends s.WF{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`--local-size: ${this.size}px`,(0,s.qy)`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){let e="light"===this.theme?this.size:this.size-32;return(0,s.JW)`
  9366. <svg height=${e} width=${e}>
  9367. ${ru.generate(this.uri,e,this.arenaClear?0:e/4)}
  9368. </svg>
  9369. `}templateVisual(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?(0,s.qy)`<wui-icon
  9370. class="farcaster"
  9371. size="inherit"
  9372. color="inherit"
  9373. name="farcaster"
  9374. ></wui-icon>`:(0,s.qy)`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};rp.styles=[g,rd],rh([(0,x.MZ)()],rp.prototype,"uri",void 0),rh([(0,x.MZ)({type:Number})],rp.prototype,"size",void 0),rh([(0,x.MZ)()],rp.prototype,"theme",void 0),rh([(0,x.MZ)()],rp.prototype,"imageSrc",void 0),rh([(0,x.MZ)()],rp.prototype,"alt",void 0),rh([(0,x.MZ)({type:Boolean})],rp.prototype,"arenaClear",void 0),rh([(0,x.MZ)({type:Boolean})],rp.prototype,"farcaster",void 0),rp=rh([b("wui-qr-code")],rp);let rf=(0,s.AH)`
  9375. :host {
  9376. position: relative;
  9377. display: inline-block;
  9378. width: 100%;
  9379. }
  9380. `,rg=class extends s.WF{constructor(){super(...arguments),this.inputComponentRef=(0,ix._)()}render(){return(0,s.qy)`
  9381. <wui-input-text
  9382. ${(0,ix.K)(this.inputComponentRef)}
  9383. placeholder="Search wallet"
  9384. icon="search"
  9385. type="search"
  9386. enterKeyHint="search"
  9387. size="sm"
  9388. >
  9389. <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
  9390. </wui-input-text>
  9391. `}clearValue(){let e=this.inputComponentRef.value,t=e?.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};rg.styles=[g,rf],rg=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o}([b("wui-search-bar")],rg);let rw=(0,s.AH)`
  9392. :host {
  9393. display: flex;
  9394. column-gap: var(--wui-spacing-s);
  9395. align-items: center;
  9396. padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
  9397. border-radius: var(--wui-border-radius-s);
  9398. border: 1px solid var(--wui-color-gray-glass-005);
  9399. box-sizing: border-box;
  9400. background-color: var(--wui-color-bg-175);
  9401. box-shadow:
  9402. 0px 14px 64px -4px rgba(0, 0, 0, 0.15),
  9403. 0px 8px 22px -6px rgba(0, 0, 0, 0.15);
  9404. max-width: 300px;
  9405. }
  9406. :host wui-loading-spinner {
  9407. margin-left: var(--wui-spacing-3xs);
  9408. }
  9409. `;var rm=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rb=class extends s.WF{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1,this.iconType="default"}render(){return(0,s.qy)`
  9410. ${this.templateIcon()}
  9411. <wui-text variant="paragraph-500" color="fg-100" data-testid="wui-snackbar-message"
  9412. >${this.message}</wui-text
  9413. >
  9414. `}templateIcon(){return this.loading?(0,s.qy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:"default"===this.iconType?(0,s.qy)`<wui-icon size="xl" color=${this.iconColor} name=${this.icon}></wui-icon>`:(0,s.qy)`<wui-icon-box
  9415. size="sm"
  9416. iconSize="xs"
  9417. iconColor=${this.iconColor}
  9418. backgroundColor=${this.backgroundColor}
  9419. icon=${this.icon}
  9420. background="opaque"
  9421. ></wui-icon-box>`}};rb.styles=[g,rw],rm([(0,x.MZ)()],rb.prototype,"backgroundColor",void 0),rm([(0,x.MZ)()],rb.prototype,"iconColor",void 0),rm([(0,x.MZ)()],rb.prototype,"icon",void 0),rm([(0,x.MZ)()],rb.prototype,"message",void 0),rm([(0,x.MZ)()],rb.prototype,"loading",void 0),rm([(0,x.MZ)()],rb.prototype,"iconType",void 0),rb=rm([b("wui-snackbar")],rb);var rv=i(80196);let ry=(0,s.AH)`
  9422. :host {
  9423. display: flex;
  9424. align-items: center;
  9425. justify-content: center;
  9426. padding: var(--wui-spacing-s);
  9427. border-radius: var(--wui-border-radius-s);
  9428. border: 1px solid var(--wui-color-dark-glass-100);
  9429. box-sizing: border-box;
  9430. background-color: var(--wui-color-bg-325);
  9431. box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
  9432. }
  9433. wui-flex {
  9434. width: 100%;
  9435. }
  9436. wui-text {
  9437. word-break: break-word;
  9438. flex: 1;
  9439. }
  9440. .close {
  9441. cursor: pointer;
  9442. }
  9443. .icon-box {
  9444. height: 40px;
  9445. width: 40px;
  9446. border-radius: var(--wui-border-radius-3xs);
  9447. background-color: var(--local-icon-bg-value);
  9448. }
  9449. `;var rx=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rC=class extends s.WF{constructor(){super(...arguments),this.message="",this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="info"}render(){return this.style.cssText=`
  9450. --local-icon-bg-value: var(--wui-color-${this.backgroundColor});
  9451. `,(0,s.qy)`
  9452. <wui-flex flexDirection="row" justifyContent="space-between" alignItems="center">
  9453. <wui-flex columnGap="xs" flexDirection="row" alignItems="center">
  9454. <wui-flex
  9455. flexDirection="row"
  9456. alignItems="center"
  9457. justifyContent="center"
  9458. class="icon-box"
  9459. >
  9460. <wui-icon color=${this.iconColor} size="md" name=${this.icon}></wui-icon>
  9461. </wui-flex>
  9462. <wui-text variant="small-500" color="bg-350" data-testid="wui-alertbar-text"
  9463. >${this.message}</wui-text
  9464. >
  9465. </wui-flex>
  9466. <wui-icon
  9467. class="close"
  9468. color="bg-350"
  9469. size="sm"
  9470. name="close"
  9471. @click=${this.onClose}
  9472. ></wui-icon>
  9473. </wui-flex>
  9474. `}onClose(){rv.hG.close()}};rC.styles=[g,ry],rx([(0,x.MZ)()],rC.prototype,"message",void 0),rx([(0,x.MZ)()],rC.prototype,"backgroundColor",void 0),rx([(0,x.MZ)()],rC.prototype,"iconColor",void 0),rx([(0,x.MZ)()],rC.prototype,"icon",void 0),rC=rx([b("wui-alertbar")],rC);let rA=(0,s.AH)`
  9475. :host {
  9476. display: inline-flex;
  9477. background-color: var(--wui-color-gray-glass-002);
  9478. border-radius: var(--wui-border-radius-3xl);
  9479. padding: var(--wui-spacing-3xs);
  9480. position: relative;
  9481. height: 36px;
  9482. min-height: 36px;
  9483. overflow: hidden;
  9484. }
  9485. :host::before {
  9486. content: '';
  9487. position: absolute;
  9488. pointer-events: none;
  9489. top: 4px;
  9490. left: 4px;
  9491. display: block;
  9492. width: var(--local-tab-width);
  9493. height: 28px;
  9494. border-radius: var(--wui-border-radius-3xl);
  9495. background-color: var(--wui-color-gray-glass-002);
  9496. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  9497. transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
  9498. transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);
  9499. will-change: background-color, opacity;
  9500. }
  9501. :host([data-type='flex'])::before {
  9502. left: 3px;
  9503. transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));
  9504. }
  9505. :host([data-type='flex']) {
  9506. display: flex;
  9507. padding: 0px 0px 0px 12px;
  9508. gap: 4px;
  9509. }
  9510. :host([data-type='flex']) > button > wui-text {
  9511. position: absolute;
  9512. left: 18px;
  9513. opacity: 0;
  9514. }
  9515. button[data-active='true'] > wui-icon,
  9516. button[data-active='true'] > wui-text {
  9517. color: var(--wui-color-fg-100);
  9518. }
  9519. button[data-active='false'] > wui-icon,
  9520. button[data-active='false'] > wui-text {
  9521. color: var(--wui-color-fg-200);
  9522. }
  9523. button[data-active='true']:disabled,
  9524. button[data-active='false']:disabled {
  9525. background-color: transparent;
  9526. opacity: 0.5;
  9527. cursor: not-allowed;
  9528. }
  9529. button[data-active='true']:disabled > wui-text {
  9530. color: var(--wui-color-fg-200);
  9531. }
  9532. button[data-active='false']:disabled > wui-text {
  9533. color: var(--wui-color-fg-300);
  9534. }
  9535. button > wui-icon,
  9536. button > wui-text {
  9537. pointer-events: none;
  9538. transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);
  9539. will-change: color;
  9540. }
  9541. button {
  9542. width: var(--local-tab-width);
  9543. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
  9544. will-change: background-color;
  9545. }
  9546. :host([data-type='flex']) > button {
  9547. width: 34px;
  9548. position: relative;
  9549. display: flex;
  9550. justify-content: flex-start;
  9551. }
  9552. button:hover:enabled,
  9553. button:active:enabled {
  9554. background-color: transparent !important;
  9555. }
  9556. button:hover:enabled > wui-icon,
  9557. button:active:enabled > wui-icon {
  9558. transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
  9559. color: var(--wui-color-fg-125);
  9560. }
  9561. button:hover:enabled > wui-text,
  9562. button:active:enabled > wui-text {
  9563. transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
  9564. color: var(--wui-color-fg-125);
  9565. }
  9566. button {
  9567. border-radius: var(--wui-border-radius-3xl);
  9568. }
  9569. `;var rE=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let r_=class extends s.WF{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`
  9570. --local-tab: ${this.activeTab};
  9571. --local-tab-width: ${this.localTabWidth};
  9572. `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,t)=>{let i=t===this.activeTab;return(0,s.qy)`
  9573. <button
  9574. ?disabled=${this.disabled}
  9575. @click=${()=>this.onTabClick(t)}
  9576. data-active=${i}
  9577. data-testid="tab-${e.label?.toLowerCase()}"
  9578. >
  9579. ${this.iconTemplate(e)}
  9580. <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text>
  9581. </button>
  9582. `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?(0,s.qy)`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,t){let i=this.buttons[this.activeTab],r=this.buttons[e],n=i?.querySelector("wui-text"),a=r?.querySelector("wui-text"),o=r?.getBoundingClientRect(),s=a?.getBoundingClientRect();i&&n&&!t&&e!==this.activeTab&&(n.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),i.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),r&&o&&s&&a&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(o.width+s.width)+6}px`,r.animate([{width:`${o.width+s.width}px`}],{duration:t?0:500,fill:"forwards",easing:"ease"}),a.animate([{opacity:1}],{duration:t?0:125,delay:t?0:200,fill:"forwards",easing:"ease"}))}};r_.styles=[g,w,rA],rE([(0,x.MZ)({type:Array})],r_.prototype,"tabs",void 0),rE([(0,x.MZ)()],r_.prototype,"onTabChange",void 0),rE([(0,x.MZ)({type:Array})],r_.prototype,"buttons",void 0),rE([(0,x.MZ)({type:Boolean})],r_.prototype,"disabled",void 0),rE([(0,x.MZ)()],r_.prototype,"localTabWidth",void 0),rE([(0,x.wk)()],r_.prototype,"activeTab",void 0),rE([(0,x.wk)()],r_.prototype,"isDense",void 0),r_=rE([b("wui-tabs")],r_);let rk=(0,s.AH)`
  9583. :host {
  9584. display: block;
  9585. }
  9586. :host > button {
  9587. gap: var(--wui-spacing-xxs);
  9588. padding: var(--wui-spacing-xs);
  9589. padding-right: var(--wui-spacing-1xs);
  9590. height: 40px;
  9591. border-radius: var(--wui-border-radius-l);
  9592. background: var(--wui-color-gray-glass-002);
  9593. border-width: 0px;
  9594. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  9595. }
  9596. :host > button wui-image {
  9597. width: 24px;
  9598. height: 24px;
  9599. border-radius: var(--wui-border-radius-s);
  9600. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  9601. }
  9602. `;var rI=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rS=class extends s.WF{constructor(){super(...arguments),this.text=""}render(){return(0,s.qy)`
  9603. <button ontouchstart>
  9604. ${this.tokenTemplate()}
  9605. <wui-text variant="paragraph-600" color="fg-100">${this.text}</wui-text>
  9606. </button>
  9607. `}tokenTemplate(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,s.qy)`
  9608. <wui-icon-box
  9609. size="sm"
  9610. iconColor="fg-200"
  9611. backgroundColor="fg-300"
  9612. icon="networkPlaceholder"
  9613. ></wui-icon-box>
  9614. `}};rS.styles=[g,w,rk],rI([(0,x.MZ)()],rS.prototype,"imageSrc",void 0),rI([(0,x.MZ)()],rS.prototype,"text",void 0),rS=rI([b("wui-token-button")],rS);let rT=(0,s.AH)`
  9615. :host {
  9616. display: block;
  9617. padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
  9618. border-radius: var(--wui-border-radius-xxs);
  9619. color: var(--wui-color-bg-100);
  9620. position: relative;
  9621. }
  9622. :host([data-variant='shade']) {
  9623. background-color: var(--wui-color-bg-150);
  9624. border: 1px solid var(--wui-color-gray-glass-005);
  9625. }
  9626. :host([data-variant='shade']) > wui-text {
  9627. color: var(--wui-color-fg-150);
  9628. }
  9629. :host([data-variant='fill']) {
  9630. background-color: var(--wui-color-fg-100);
  9631. border: none;
  9632. }
  9633. wui-icon {
  9634. position: absolute;
  9635. width: 12px !important;
  9636. height: 4px !important;
  9637. }
  9638. wui-icon[data-placement='top'] {
  9639. bottom: 0px;
  9640. left: 50%;
  9641. transform: translate(-50%, 95%);
  9642. }
  9643. wui-icon[data-placement='bottom'] {
  9644. top: 0;
  9645. left: 50%;
  9646. transform: translate(-50%, -95%) rotate(180deg);
  9647. }
  9648. wui-icon[data-placement='right'] {
  9649. top: 50%;
  9650. left: 0;
  9651. transform: translate(-65%, -50%) rotate(90deg);
  9652. }
  9653. wui-icon[data-placement='left'] {
  9654. top: 50%;
  9655. right: 0%;
  9656. transform: translate(65%, -50%) rotate(270deg);
  9657. }
  9658. `;var rN=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rP=class extends s.WF{constructor(){super(...arguments),this.placement="top",this.variant="fill",this.message=""}render(){return this.dataset.variant=this.variant,(0,s.qy)`<wui-icon
  9659. data-placement=${this.placement}
  9660. color="fg-100"
  9661. size="inherit"
  9662. name=${"fill"===this.variant?"cursor":"cursorTransparent"}
  9663. ></wui-icon>
  9664. <wui-text color="inherit" variant="small-500">${this.message}</wui-text>`}};rP.styles=[g,w,rT],rN([(0,x.MZ)()],rP.prototype,"placement",void 0),rN([(0,x.MZ)()],rP.prototype,"variant",void 0),rN([(0,x.MZ)()],rP.prototype,"message",void 0),rP=rN([b("wui-tooltip")],rP);let rR=(0,s.AH)`
  9665. :host {
  9666. height: 60px;
  9667. min-height: 60px;
  9668. }
  9669. :host > wui-flex {
  9670. cursor: pointer;
  9671. height: 100%;
  9672. display: flex;
  9673. column-gap: var(--wui-spacing-s);
  9674. padding: var(--wui-spacing-xs);
  9675. padding-right: var(--wui-spacing-l);
  9676. width: 100%;
  9677. background-color: transparent;
  9678. border-radius: var(--wui-border-radius-xs);
  9679. color: var(--wui-color-fg-250);
  9680. transition:
  9681. background-color var(--wui-ease-out-power-1) var(--wui-duration-lg),
  9682. opacity var(--wui-ease-out-power-1) var(--wui-duration-lg);
  9683. will-change: background-color, opacity;
  9684. }
  9685. @media (hover: hover) and (pointer: fine) {
  9686. :host > wui-flex:hover {
  9687. background-color: var(--wui-color-gray-glass-002);
  9688. }
  9689. :host > wui-flex:active {
  9690. background-color: var(--wui-color-gray-glass-005);
  9691. }
  9692. }
  9693. :host([disabled]) > wui-flex {
  9694. opacity: 0.6;
  9695. }
  9696. :host([disabled]) > wui-flex:hover {
  9697. background-color: transparent;
  9698. }
  9699. :host > wui-flex > wui-flex {
  9700. flex: 1;
  9701. }
  9702. :host > wui-flex > wui-image,
  9703. :host > wui-flex > .token-item-image-placeholder {
  9704. width: 40px;
  9705. max-width: 40px;
  9706. height: 40px;
  9707. border-radius: var(--wui-border-radius-3xl);
  9708. position: relative;
  9709. }
  9710. :host > wui-flex > .token-item-image-placeholder {
  9711. display: flex;
  9712. align-items: center;
  9713. justify-content: center;
  9714. }
  9715. :host > wui-flex > wui-image::after,
  9716. :host > wui-flex > .token-item-image-placeholder::after {
  9717. position: absolute;
  9718. content: '';
  9719. inset: 0;
  9720. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  9721. border-radius: var(--wui-border-radius-l);
  9722. }
  9723. button > wui-icon-box[data-variant='square-blue'] {
  9724. border-radius: var(--wui-border-radius-3xs);
  9725. position: relative;
  9726. border: none;
  9727. width: 36px;
  9728. height: 36px;
  9729. }
  9730. `;var rO=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rM=class extends s.WF{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.imageSrc=void 0,this.name=void 0,this.symbol=void 0,this.price=void 0,this.amount=void 0,this.visible=!1,this.imageError=!1,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.visible=!0:this.visible=!1})},{threshold:.1})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){if(!this.visible)return null;let e=this.amount&&this.price?u.Se.multiply(this.price,this.amount)?.toFixed(3):null;return(0,s.qy)`
  9731. <wui-flex alignItems="center">
  9732. ${this.visualTemplate()}
  9733. <wui-flex flexDirection="column" gap="3xs">
  9734. <wui-flex justifyContent="space-between">
  9735. <wui-text variant="paragraph-500" color="fg-100" lineClamp="1">${this.name}</wui-text>
  9736. ${e?(0,s.qy)`
  9737. <wui-text variant="paragraph-500" color="fg-100">
  9738. $${tT.formatNumberToLocalString(e,3)}
  9739. </wui-text>
  9740. `:null}
  9741. </wui-flex>
  9742. <wui-flex justifyContent="space-between">
  9743. <wui-text variant="small-400" color="fg-200" lineClamp="1">${this.symbol}</wui-text>
  9744. ${this.amount?(0,s.qy)`<wui-text variant="small-400" color="fg-200">
  9745. ${tT.formatNumberToLocalString(this.amount,4)}
  9746. </wui-text>`:null}
  9747. </wui-flex>
  9748. </wui-flex>
  9749. </wui-flex>
  9750. `}visualTemplate(){return this.imageError?(0,s.qy)`<wui-flex class="token-item-image-placeholder">
  9751. <wui-icon name="image" color="inherit"></wui-icon>
  9752. </wui-flex>`:this.imageSrc?(0,s.qy)`<wui-image
  9753. width="40"
  9754. height="40"
  9755. src=${this.imageSrc}
  9756. @onLoadError=${this.imageLoadError}
  9757. ></wui-image>`:null}imageLoadError(){this.imageError=!0}};rM.styles=[g,w,rR],rO([(0,x.MZ)()],rM.prototype,"imageSrc",void 0),rO([(0,x.MZ)()],rM.prototype,"name",void 0),rO([(0,x.MZ)()],rM.prototype,"symbol",void 0),rO([(0,x.MZ)()],rM.prototype,"price",void 0),rO([(0,x.MZ)()],rM.prototype,"amount",void 0),rO([(0,x.wk)()],rM.prototype,"visible",void 0),rO([(0,x.wk)()],rM.prototype,"imageError",void 0),rM=rO([b("wui-token-list-item")],rM);let rD=(0,s.AH)`
  9758. :host {
  9759. display: flex;
  9760. justify-content: center;
  9761. align-items: center;
  9762. width: var(--wui-icon-box-size-xl);
  9763. height: var(--wui-icon-box-size-xl);
  9764. box-shadow: 0 0 0 8px var(--wui-thumbnail-border);
  9765. border-radius: var(--local-border-radius);
  9766. overflow: hidden;
  9767. }
  9768. wui-icon {
  9769. width: 32px;
  9770. height: 32px;
  9771. }
  9772. `;var rU=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let r$=class extends s.WF{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"}; background-color: var(--wui-color-modal-bg);`,(0,s.qy)`${this.templateVisual()}`}templateVisual(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.alt??""}></wui-image>`:(0,s.qy)`<wui-icon
  9773. data-parent-size="md"
  9774. size="inherit"
  9775. color="inherit"
  9776. name="walletPlaceholder"
  9777. ></wui-icon>`}};r$.styles=[g,rD],rU([(0,x.MZ)()],r$.prototype,"imageSrc",void 0),rU([(0,x.MZ)()],r$.prototype,"alt",void 0),rU([(0,x.MZ)({type:Boolean})],r$.prototype,"borderRadiusFull",void 0),r$=rU([b("wui-visual-thumbnail")],r$);let rL=(0,s.AH)`
  9778. :host {
  9779. display: block;
  9780. }
  9781. button {
  9782. width: 100%;
  9783. display: block;
  9784. padding-top: var(--wui-spacing-l);
  9785. padding-bottom: var(--wui-spacing-l);
  9786. padding-left: var(--wui-spacing-s);
  9787. padding-right: var(--wui-spacing-2l);
  9788. border-radius: var(--wui-border-radius-s);
  9789. background-color: var(--wui-color-accent-glass-010);
  9790. }
  9791. button:hover {
  9792. background-color: var(--wui-color-accent-glass-015) !important;
  9793. }
  9794. button:active {
  9795. background-color: var(--wui-color-accent-glass-020) !important;
  9796. }
  9797. `;var rj=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rB=class extends s.WF{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return(0,s.qy)`
  9798. <button>
  9799. <wui-flex gap="m" alignItems="center" justifyContent="space-between">
  9800. <wui-icon-box
  9801. size="lg"
  9802. iconcolor="accent-100"
  9803. backgroundcolor="accent-100"
  9804. icon=${this.icon}
  9805. background="transparent"
  9806. ></wui-icon-box>
  9807. <wui-flex flexDirection="column" gap="3xs">
  9808. <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text>
  9809. <wui-text variant="small-400" color="fg-200">${this.description}</wui-text>
  9810. </wui-flex>
  9811. <wui-icon size="md" color="fg-200" name="chevronRight"></wui-icon>
  9812. </wui-flex>
  9813. </button>
  9814. `}};rB.styles=[g,w,rL],rj([(0,x.MZ)()],rB.prototype,"label",void 0),rj([(0,x.MZ)()],rB.prototype,"description",void 0),rj([(0,x.MZ)()],rB.prototype,"icon",void 0),rB=rj([b("wui-notice-card")],rB);let rW=(0,s.AH)`
  9815. button {
  9816. height: auto;
  9817. position: relative;
  9818. flex-direction: column;
  9819. gap: var(--wui-spacing-s);
  9820. padding: 17px 18px 17px var(--wui-spacing-m);
  9821. width: 100%;
  9822. background-color: var(--wui-color-gray-glass-002);
  9823. border-radius: var(--wui-border-radius-xs);
  9824. color: var(--wui-color-fg-250);
  9825. }
  9826. .overflowedContent {
  9827. width: 100%;
  9828. overflow: hidden;
  9829. }
  9830. .overflowedContent[data-active='false']:after {
  9831. content: '';
  9832. position: absolute;
  9833. top: 50%;
  9834. left: 0;
  9835. right: 0;
  9836. bottom: 0;
  9837. background: linear-gradient(to top, var(--wui-color-bg-150), transparent);
  9838. border-bottom-left-radius: var(--wui-border-radius-xs);
  9839. border-bottom-right-radius: var(--wui-border-radius-xs);
  9840. }
  9841. .heightContent {
  9842. max-height: 100px;
  9843. }
  9844. pre {
  9845. text-align: left;
  9846. white-space: pre-wrap;
  9847. height: auto;
  9848. overflow-x: auto;
  9849. overflow-wrap: anywhere;
  9850. }
  9851. `;var rq=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rH=class extends s.WF{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}updated(e){super.updated(e),(e.has("textTitle")||e.has("overflowedContent"))&&setTimeout(()=>{this.checkHeight()},1)}checkHeight(){this.updateComplete.then(()=>{let e=this.shadowRoot?.querySelector(".heightContent"),t=this.shadowRoot?.querySelector(".textContent");if(e&&t){this.scrollElement=e;let i=t?.scrollHeight;i&&i>100&&(this.enableAccordion=!0,this.scrollHeightElement=i,this.requestUpdate())}})}render(){return(0,s.qy)`
  9852. <button ontouchstart @click=${()=>this.onClick()}>
  9853. <wui-flex justifyContent="space-between" alignItems="center">
  9854. <wui-text variant="paragraph-500" color="fg-100">${this.textTitle}</wui-text>
  9855. ${this.chevronTemplate()}
  9856. </wui-flex>
  9857. <div
  9858. data-active=${!this.enableAccordion||!!this.toggled}
  9859. class="overflowedContent"
  9860. >
  9861. <div class="heightContent">
  9862. <wui-text class="textContent" variant="paragraph-400" color="fg-200">
  9863. <pre>${this.overflowedContent}</pre>
  9864. </wui-text>
  9865. </div>
  9866. </div>
  9867. </button>
  9868. `}onClick(){let e=this.shadowRoot?.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?"100px":`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:"100px"}],{duration:300,fill:"forwards",easing:"ease"}),e&&e.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?(0,s.qy)` <wui-icon color="fg-100" size="sm" name="chevronBottom"></wui-icon>`:null}};rH.styles=[g,w,rW],rq([(0,x.MZ)()],rH.prototype,"textTitle",void 0),rq([(0,x.MZ)()],rH.prototype,"overflowedContent",void 0),rH=rq([b("wui-list-accordion")],rH);let rz=(0,s.AH)`
  9869. :host {
  9870. display: flex;
  9871. column-gap: var(--wui-spacing-s);
  9872. padding: 17px 18px 17px var(--wui-spacing-m);
  9873. width: 100%;
  9874. background-color: var(--wui-color-gray-glass-002);
  9875. border-radius: var(--wui-border-radius-xs);
  9876. color: var(--wui-color-fg-250);
  9877. }
  9878. wui-image {
  9879. width: var(--wui-icon-size-lg);
  9880. height: var(--wui-icon-size-lg);
  9881. border-radius: var(--wui-border-radius-3xl);
  9882. }
  9883. wui-icon {
  9884. width: var(--wui-icon-size-lg);
  9885. height: var(--wui-icon-size-lg);
  9886. }
  9887. `;var rF=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rZ=class extends s.WF{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return(0,s.qy)`
  9888. <wui-flex justifyContent="space-between" alignItems="center">
  9889. <wui-text variant="paragraph-500" color=${this.textValue?"fg-200":"fg-100"}>
  9890. ${this.textTitle}
  9891. </wui-text>
  9892. ${this.templateContent()}
  9893. </wui-flex>
  9894. `}templateContent(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?(0,s.qy)` <wui-text variant="paragraph-400" color="fg-100"> ${this.textValue} </wui-text>`:(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};rZ.styles=[g,w,rz],rF([(0,x.MZ)()],rZ.prototype,"imageSrc",void 0),rF([(0,x.MZ)()],rZ.prototype,"textTitle",void 0),rF([(0,x.MZ)()],rZ.prototype,"textValue",void 0),rZ=rF([b("wui-list-content")],rZ);let rV=(0,s.AH)`
  9895. button {
  9896. column-gap: var(--wui-spacing-s);
  9897. padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
  9898. width: 100%;
  9899. transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
  9900. border-radius: var(--wui-border-radius-xs);
  9901. color: var(--wui-color-fg-100);
  9902. }
  9903. button > wui-text:nth-child(2) {
  9904. display: flex;
  9905. flex: 1;
  9906. }
  9907. button[data-transparent='true'] {
  9908. pointer-events: none;
  9909. background-color: transparent;
  9910. }
  9911. button:hover {
  9912. background-color: var(--wui-color-gray-glass-002);
  9913. }
  9914. button:active {
  9915. background-color: var(--wui-color-gray-glass-005);
  9916. }
  9917. wui-image {
  9918. width: var(--wui-spacing-3xl);
  9919. height: var(--wui-spacing-3xl);
  9920. border-radius: 100%;
  9921. }
  9922. button:disabled {
  9923. background-color: var(--wui-color-gray-glass-002);
  9924. opacity: 0.5;
  9925. cursor: not-allowed;
  9926. }
  9927. button:disabled > wui-tag {
  9928. background-color: var(--wui-color-gray-glass-010);
  9929. color: var(--wui-color-fg-300);
  9930. }
  9931. `;var rK=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rG=class extends s.WF{constructor(){super(...arguments),this.imageSrc="",this.name="",this.disabled=!1,this.selected=!1,this.transparent=!1}render(){return(0,s.qy)`
  9932. <button data-transparent=${this.transparent} ?disabled=${this.disabled} ontouchstart>
  9933. <wui-flex gap="s" alignItems="center">
  9934. ${this.templateNetworkImage()}
  9935. <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text></wui-flex
  9936. >
  9937. ${this.checkmarkTemplate()}
  9938. </button>
  9939. `}checkmarkTemplate(){return this.selected?(0,s.qy)`<wui-icon size="sm" color="accent-100" name="checkmarkBold"></wui-icon>`:null}templateNetworkImage(){return this.imageSrc?(0,s.qy)`<wui-image size="sm" src=${this.imageSrc} name=${this.name}></wui-image>`:this.imageSrc?null:(0,s.qy)`<wui-network-image
  9940. ?round=${!0}
  9941. size="md"
  9942. name=${this.name}
  9943. ></wui-network-image>`}};rG.styles=[g,w,rV],rK([(0,x.MZ)()],rG.prototype,"imageSrc",void 0),rK([(0,x.MZ)()],rG.prototype,"name",void 0),rK([(0,x.MZ)({type:Boolean})],rG.prototype,"disabled",void 0),rK([(0,x.MZ)({type:Boolean})],rG.prototype,"selected",void 0),rK([(0,x.MZ)({type:Boolean})],rG.prototype,"transparent",void 0),rG=rK([b("wui-list-network")],rG);let rJ=(0,s.AH)`
  9944. :host {
  9945. display: flex;
  9946. flex-direction: column;
  9947. gap: var(--wui-spacing-l);
  9948. padding: 17px 18px 17px var(--wui-spacing-m);
  9949. width: 100%;
  9950. background-color: var(--wui-color-gray-glass-002);
  9951. border-radius: var(--wui-border-radius-xs);
  9952. color: var(--wui-color-fg-250);
  9953. }
  9954. wui-image {
  9955. width: var(--wui-icon-size-lg);
  9956. height: var(--wui-icon-size-lg);
  9957. border-radius: var(--wui-border-radius-3xl);
  9958. }
  9959. wui-icon {
  9960. width: var(--wui-icon-size-lg);
  9961. height: var(--wui-icon-size-lg);
  9962. }
  9963. `;var rY=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let rQ=class extends s.WF{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress="",this.addressExplorerUrl=""}render(){return(0,s.qy)`
  9964. <wui-flex justifyContent="space-between" alignItems="center">
  9965. <wui-text variant="paragraph-500" color="fg-200">Sending</wui-text>
  9966. <wui-flex gap="xs" alignItems="center">
  9967. <wui-text variant="paragraph-400" color="fg-100">
  9968. ${this.amount} ${this.networkCurreny}
  9969. </wui-text>
  9970. ${this.templateNetworkVisual()}
  9971. </wui-flex>
  9972. </wui-flex>
  9973. <wui-flex justifyContent="space-between" alignItems="center">
  9974. <wui-text variant="paragraph-500" color="fg-200">To</wui-text>
  9975. <wui-chip
  9976. icon="externalLink"
  9977. variant="shadeSmall"
  9978. href=${this.addressExplorerUrl}
  9979. title=${this.receiverAddress}
  9980. ></wui-chip>
  9981. </wui-flex>
  9982. `}templateNetworkVisual(){return this.networkImageUrl?(0,s.qy)`<wui-image src=${this.networkImageUrl} alt="Network Image"></wui-image>`:(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};rQ.styles=[g,w,rJ],rY([(0,x.MZ)()],rQ.prototype,"amount",void 0),rY([(0,x.MZ)()],rQ.prototype,"networkCurreny",void 0),rY([(0,x.MZ)()],rQ.prototype,"networkImageUrl",void 0),rY([(0,x.MZ)()],rQ.prototype,"receiverAddress",void 0),rY([(0,x.MZ)()],rQ.prototype,"addressExplorerUrl",void 0),rQ=rY([b("wui-list-wallet-transaction")],rQ);let rX=(0,s.AH)`
  9983. button {
  9984. display: flex;
  9985. gap: var(--wui-spacing-3xs);
  9986. align-items: center;
  9987. padding: 6.25px var(--wui-spacing-xs) 7.25px var(--wui-spacing-s);
  9988. background-color: var(--wui-color-gray-glass-090);
  9989. border-radius: var(--wui-border-radius-3xl);
  9990. border: 1px solid var(--wui-color-gray-glass-060);
  9991. transition: background-color var(--wui-duration-md) var(--wui-ease-inout-power-1);
  9992. will-change: background-color;
  9993. }
  9994. @media (hover: hover) and (pointer: fine) {
  9995. button:hover:enabled {
  9996. background-color: var(--wui-color-gray-glass-080);
  9997. }
  9998. button:active:enabled {
  9999. background-color: var(--wui-color-gray-glass-060);
  10000. }
  10001. }
  10002. `;var r0=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let r1=class extends s.WF{constructor(){super(...arguments),this.text=""}render(){return(0,s.qy)`<button ontouchstart>
  10003. <wui-text variant="small-600" color="bg-100">${this.text}</wui-text>
  10004. <wui-icon color="bg-100" size="xs" name="arrowRight"></wui-icon>
  10005. </button>`}};r1.styles=[g,w,rX],r0([(0,x.MZ)()],r1.prototype,"text",void 0),r1=r0([b("wui-promo")],r1);let r2=(0,s.AH)`
  10006. span {
  10007. font-weight: 500;
  10008. font-size: 40px;
  10009. color: var(--wui-color-fg-100);
  10010. line-height: 130%; /* 52px */
  10011. letter-spacing: -1.6px;
  10012. text-align: center;
  10013. }
  10014. .pennies {
  10015. color: var(--wui-color-fg-200);
  10016. }
  10017. `;var r3=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let r5=class extends s.WF{constructor(){super(...arguments),this.dollars="0",this.pennies="00"}render(){return(0,s.qy)`<span>$${this.dollars}<span class="pennies">.${this.pennies}</span></span>`}};r5.styles=[g,r2],r3([(0,x.MZ)()],r5.prototype,"dollars",void 0),r3([(0,x.MZ)()],r5.prototype,"pennies",void 0),r5=r3([b("wui-balance")],r5);let r4=(0,s.AH)`
  10018. button {
  10019. background-color: var(--wui-color-gray-glass-002);
  10020. border-radius: var(--wui-border-radius-3xl);
  10021. border: 1px solid var(--wui-color-gray-glass-002);
  10022. padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs);
  10023. position: relative;
  10024. }
  10025. wui-avatar {
  10026. width: 32px;
  10027. height: 32px;
  10028. box-shadow: 0 0 0 0;
  10029. outline: 3px solid var(--wui-color-gray-glass-005);
  10030. }
  10031. wui-icon-box,
  10032. wui-image {
  10033. width: 16px;
  10034. height: 16px;
  10035. border-radius: var(--wui-border-radius-3xl);
  10036. position: absolute;
  10037. left: 26px;
  10038. top: 24px;
  10039. }
  10040. wui-image {
  10041. outline: 2px solid var(--wui-color-bg-125);
  10042. }
  10043. wui-icon-box {
  10044. outline: 2px solid var(--wui-color-bg-200);
  10045. background-color: var(--wui-color-bg-250);
  10046. }
  10047. `;var r6=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let r8=class extends s.WF{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="chevronBottom"}render(){return(0,s.qy)`<button ontouchstart data-testid="wui-profile-button">
  10048. <wui-flex gap="xs" alignItems="center">
  10049. <wui-avatar
  10050. .imageSrc=${this.avatarSrc}
  10051. alt=${this.address}
  10052. address=${this.address}
  10053. ></wui-avatar>
  10054. ${this.networkImageTemplate()}
  10055. <wui-flex gap="xs" alignItems="center">
  10056. <wui-text variant="large-600" color="fg-100">
  10057. ${tT.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
  10058. </wui-text>
  10059. <wui-icon size="sm" color="fg-200" name=${this.icon}></wui-icon>
  10060. </wui-flex>
  10061. </wui-flex>
  10062. </button>`}networkImageTemplate(){return this.networkSrc?(0,s.qy)`<wui-image src=${this.networkSrc}></wui-image>`:(0,s.qy)`
  10063. <wui-icon-box
  10064. size="xxs"
  10065. iconColor="fg-200"
  10066. backgroundColor="bg-100"
  10067. icon="networkPlaceholder"
  10068. ></wui-icon-box>
  10069. `}};r8.styles=[g,w,r4],r6([(0,x.MZ)()],r8.prototype,"networkSrc",void 0),r6([(0,x.MZ)()],r8.prototype,"avatarSrc",void 0),r6([(0,x.MZ)()],r8.prototype,"profileName",void 0),r6([(0,x.MZ)()],r8.prototype,"address",void 0),r6([(0,x.MZ)()],r8.prototype,"icon",void 0),r8=r6([b("wui-profile-button")],r8);let r9=(0,s.AH)`
  10070. button {
  10071. background-color: var(--wui-color-gray-glass-002);
  10072. border-radius: var(--wui-border-radius-3xl);
  10073. border: 1px solid var(--wui-color-gray-glass-002);
  10074. padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs);
  10075. position: relative;
  10076. }
  10077. wui-avatar {
  10078. width: 32px;
  10079. height: 32px;
  10080. box-shadow: 0 0 0 0;
  10081. outline: 3px solid var(--wui-color-gray-glass-005);
  10082. }
  10083. wui-icon-box,
  10084. wui-image {
  10085. width: 16px;
  10086. height: 16px;
  10087. border-radius: var(--wui-border-radius-3xl);
  10088. position: absolute;
  10089. left: 26px;
  10090. top: 24px;
  10091. }
  10092. wui-image {
  10093. outline: 2px solid var(--wui-color-bg-125);
  10094. }
  10095. wui-icon-box {
  10096. outline: 2px solid var(--wui-color-bg-200);
  10097. background-color: var(--wui-color-bg-250);
  10098. }
  10099. `;var r7=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ne=class extends s.WF{constructor(){super(...arguments),this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="mail",this.connectedConnector=rv.iT.getConnectedConnector(),this.shouldShowIcon="AUTH"===this.connectedConnector}render(){return(0,s.qy)`<button ontouchstart data-testid="wui-profile-button" @click=${this.handleClick}>
  10100. <wui-flex gap="xs" alignItems="center">
  10101. <wui-avatar
  10102. .imageSrc=${this.avatarSrc}
  10103. alt=${this.address}
  10104. address=${this.address}
  10105. ></wui-avatar>
  10106. ${this.shouldShowIcon?this.getIconTemplate(this.icon):""}
  10107. <wui-flex gap="xs" alignItems="center">
  10108. <wui-text variant="large-600" color="fg-100">
  10109. ${tT.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
  10110. </wui-text>
  10111. <wui-icon size="sm" color="fg-200" name="copy" id="copy-address"></wui-icon>
  10112. </wui-flex>
  10113. </wui-flex>
  10114. </button>`}handleClick(e){if(e.target instanceof HTMLElement&&"copy-address"===e.target.id){this.onCopyClick?.(e);return}this.onProfileClick?.(e)}getIconTemplate(e){return(0,s.qy)`
  10115. <wui-icon-box
  10116. size="xxs"
  10117. iconColor="fg-200"
  10118. backgroundColor="bg-100"
  10119. icon="${e||"networkPlaceholder"}"
  10120. ></wui-icon-box>
  10121. `}};ne.styles=[g,w,r9],r7([(0,x.MZ)()],ne.prototype,"avatarSrc",void 0),r7([(0,x.MZ)()],ne.prototype,"profileName",void 0),r7([(0,x.MZ)()],ne.prototype,"address",void 0),r7([(0,x.MZ)()],ne.prototype,"icon",void 0),r7([(0,x.MZ)()],ne.prototype,"onProfileClick",void 0),r7([(0,x.MZ)()],ne.prototype,"onCopyClick",void 0),ne=r7([b("wui-profile-button-v2")],ne);let nt=(0,s.AH)`
  10122. button {
  10123. border: none;
  10124. border-radius: var(--wui-border-radius-3xl);
  10125. }
  10126. button[data-variant='main'] {
  10127. background-color: var(--wui-color-accent-100);
  10128. color: var(--wui-color-inverse-100);
  10129. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  10130. }
  10131. button[data-variant='accent'] {
  10132. background-color: var(--wui-color-accent-glass-010);
  10133. color: var(--wui-color-accent-100);
  10134. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  10135. }
  10136. button[data-variant='gray'] {
  10137. background-color: transparent;
  10138. color: var(--wui-color-fg-200);
  10139. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  10140. }
  10141. button[data-variant='shade'] {
  10142. background-color: transparent;
  10143. color: var(--wui-color-accent-100);
  10144. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  10145. }
  10146. button[data-size='sm'] {
  10147. height: 32px;
  10148. padding: 0 var(--wui-spacing-s);
  10149. }
  10150. button[data-size='md'] {
  10151. height: 40px;
  10152. padding: 0 var(--wui-spacing-l);
  10153. }
  10154. button[data-size='sm'] > wui-image {
  10155. width: 16px;
  10156. height: 16px;
  10157. }
  10158. button[data-size='md'] > wui-image {
  10159. width: 24px;
  10160. height: 24px;
  10161. }
  10162. button[data-size='sm'] > wui-icon {
  10163. width: 12px;
  10164. height: 12px;
  10165. }
  10166. button[data-size='md'] > wui-icon {
  10167. width: 14px;
  10168. height: 14px;
  10169. }
  10170. wui-image {
  10171. border-radius: var(--wui-border-radius-3xl);
  10172. overflow: hidden;
  10173. }
  10174. button.disabled > wui-icon,
  10175. button.disabled > wui-image {
  10176. filter: grayscale(1);
  10177. }
  10178. button[data-variant='main'] > wui-image {
  10179. box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
  10180. }
  10181. button[data-variant='shade'] > wui-image,
  10182. button[data-variant='gray'] > wui-image {
  10183. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  10184. }
  10185. @media (hover: hover) and (pointer: fine) {
  10186. button[data-variant='main']:focus-visible {
  10187. background-color: var(--wui-color-accent-090);
  10188. }
  10189. button[data-variant='main']:hover:enabled {
  10190. background-color: var(--wui-color-accent-090);
  10191. }
  10192. button[data-variant='main']:active:enabled {
  10193. background-color: var(--wui-color-accent-080);
  10194. }
  10195. button[data-variant='accent']:hover:enabled {
  10196. background-color: var(--wui-color-accent-glass-015);
  10197. }
  10198. button[data-variant='accent']:active:enabled {
  10199. background-color: var(--wui-color-accent-glass-020);
  10200. }
  10201. button[data-variant='shade']:focus-visible,
  10202. button[data-variant='gray']:focus-visible,
  10203. button[data-variant='shade']:hover,
  10204. button[data-variant='gray']:hover {
  10205. background-color: var(--wui-color-gray-glass-002);
  10206. }
  10207. button[data-variant='gray']:active,
  10208. button[data-variant='shade']:active {
  10209. background-color: var(--wui-color-gray-glass-005);
  10210. }
  10211. }
  10212. button.disabled {
  10213. color: var(--wui-color-gray-glass-020);
  10214. background-color: var(--wui-color-gray-glass-002);
  10215. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  10216. pointer-events: none;
  10217. }
  10218. `;var ni=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nr=class extends s.WF{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){let e="sm"===this.size?"small-600":"paragraph-600";return(0,s.qy)`
  10219. <button
  10220. class=${this.disabled?"disabled":""}
  10221. data-variant=${this.variant}
  10222. data-size=${this.size}
  10223. >
  10224. ${this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc}></wui-image>`:null}
  10225. <wui-text variant=${e} color="inherit"> ${this.text} </wui-text>
  10226. <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
  10227. </button>
  10228. `}};nr.styles=[g,w,nt],ni([(0,x.MZ)()],nr.prototype,"variant",void 0),ni([(0,x.MZ)()],nr.prototype,"imageSrc",void 0),ni([(0,x.MZ)({type:Boolean})],nr.prototype,"disabled",void 0),ni([(0,x.MZ)()],nr.prototype,"icon",void 0),ni([(0,x.MZ)()],nr.prototype,"size",void 0),ni([(0,x.MZ)()],nr.prototype,"text",void 0),nr=ni([b("wui-chip-button")],nr);let nn=(0,s.AH)`
  10229. button {
  10230. display: flex;
  10231. gap: var(--wui-spacing-xl);
  10232. width: 100%;
  10233. background-color: var(--wui-color-gray-glass-002);
  10234. border-radius: var(--wui-border-radius-xxs);
  10235. padding: var(--wui-spacing-m) var(--wui-spacing-s);
  10236. }
  10237. wui-text {
  10238. width: 100%;
  10239. }
  10240. wui-flex {
  10241. width: auto;
  10242. }
  10243. .network-icon {
  10244. width: var(--wui-spacing-2l);
  10245. height: var(--wui-spacing-2l);
  10246. border-radius: calc(var(--wui-spacing-2l) / 2);
  10247. overflow: hidden;
  10248. box-shadow:
  10249. 0 0 0 3px var(--wui-color-gray-glass-002),
  10250. 0 0 0 3px var(--wui-color-modal-bg);
  10251. }
  10252. `;var na=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let no=class extends s.WF{constructor(){super(...arguments),this.networkImages=[""],this.text=""}render(){return(0,s.qy)`
  10253. <button ontouchstart>
  10254. <wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
  10255. <wui-flex gap="3xs" alignItems="center">
  10256. ${this.networksTemplate()}
  10257. <wui-icon name="chevronRight" size="sm" color="fg-200"></wui-icon>
  10258. </wui-flex>
  10259. </button>
  10260. `}networksTemplate(){let e=this.networkImages.slice(0,5);return(0,s.qy)` <wui-flex class="networks">
  10261. ${e?.map(e=>s.qy` <wui-flex class="network-icon"> <wui-image src=${e}></wui-image> </wui-flex>`)}
  10262. </wui-flex>`}};no.styles=[g,w,nn],na([(0,x.MZ)({type:Array})],no.prototype,"networkImages",void 0),na([(0,x.MZ)()],no.prototype,"text",void 0),no=na([b("wui-compatible-network")],no);let ns=(0,s.AH)`
  10263. wui-flex {
  10264. width: 100%;
  10265. background-color: var(--wui-color-gray-glass-005);
  10266. border-radius: var(--wui-border-radius-s);
  10267. padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs)
  10268. var(--wui-spacing-1xs);
  10269. }
  10270. `;var nc=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nl=class extends s.WF{constructor(){super(...arguments),this.icon="externalLink",this.text=""}render(){return(0,s.qy)`
  10271. <wui-flex gap="1xs" alignItems="center">
  10272. <wui-icon-box
  10273. size="sm"
  10274. iconcolor="fg-200"
  10275. backgroundcolor="fg-200"
  10276. icon=${this.icon}
  10277. background="transparent"
  10278. ></wui-icon-box>
  10279. <wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
  10280. </wui-flex>
  10281. `}};nl.styles=[g,w,ns],nc([(0,x.MZ)()],nl.prototype,"icon",void 0),nc([(0,x.MZ)()],nl.prototype,"text",void 0),nl=nc([b("wui-banner")],nl);let nu=(0,s.AH)`
  10282. wui-flex {
  10283. width: 100%;
  10284. background-color: var(--wui-color-gray-glass-005);
  10285. border-radius: var(--wui-border-radius-m);
  10286. padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs)
  10287. var(--wui-spacing-1xs);
  10288. }
  10289. `;var nd=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nh=class extends s.WF{constructor(){super(...arguments),this.imageSrc="",this.text="",this.size=""}render(){return(0,s.qy)`
  10290. <wui-flex gap="1xs" alignItems="center">
  10291. <wui-avatar size=${this.size} imageSrc=${this.imageSrc}></wui-avatar>
  10292. <wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
  10293. </wui-flex>
  10294. `}};nh.styles=[g,w,nu],nd([(0,x.MZ)()],nh.prototype,"imageSrc",void 0),nd([(0,x.MZ)()],nh.prototype,"text",void 0),nd([(0,x.MZ)()],nh.prototype,"size",void 0),nh=nd([b("wui-banner-img")],nh);let np=(0,s.AH)`
  10295. button {
  10296. padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
  10297. display: flex;
  10298. justify-content: space-between;
  10299. width: 100%;
  10300. border-radius: var(--wui-border-radius-xs);
  10301. background-color: var(--wui-color-gray-glass-002);
  10302. }
  10303. button[data-clickable='false'] {
  10304. pointer-events: none;
  10305. background-color: transparent;
  10306. }
  10307. wui-image,
  10308. wui-icon {
  10309. width: var(--wui-spacing-3xl);
  10310. height: var(--wui-spacing-3xl);
  10311. }
  10312. wui-image {
  10313. border-radius: var(--wui-border-radius-3xl);
  10314. }
  10315. `;var nf=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let ng=class extends s.WF{constructor(){super(...arguments),this.tokenName="",this.tokenImageUrl="",this.tokenValue=0,this.tokenAmount="0.0",this.tokenCurrency="",this.clickable=!1}render(){return(0,s.qy)`
  10316. <button data-clickable=${String(this.clickable)} ontouchstart>
  10317. <wui-flex gap="s" alignItems="center">
  10318. ${this.visualTemplate()}
  10319. <wui-flex flexDirection="column" justifyContent="spaceBetween">
  10320. <wui-text variant="paragraph-500" color="fg-100">${this.tokenName}</wui-text>
  10321. <wui-text variant="small-400" color="fg-200">
  10322. ${tT.formatNumberToLocalString(this.tokenAmount,4)} ${this.tokenCurrency}
  10323. </wui-text>
  10324. </wui-flex>
  10325. </wui-flex>
  10326. <wui-text variant="paragraph-500" color="fg-100">$${this.tokenValue.toFixed(2)}</wui-text>
  10327. </button>
  10328. `}visualTemplate(){return this.tokenName&&this.tokenImageUrl?(0,s.qy)`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`:(0,s.qy)`<wui-icon name="coinPlaceholder" color="fg-100"></wui-icon>`}};ng.styles=[g,w,np],nf([(0,x.MZ)()],ng.prototype,"tokenName",void 0),nf([(0,x.MZ)()],ng.prototype,"tokenImageUrl",void 0),nf([(0,x.MZ)({type:Number})],ng.prototype,"tokenValue",void 0),nf([(0,x.MZ)()],ng.prototype,"tokenAmount",void 0),nf([(0,x.MZ)()],ng.prototype,"tokenCurrency",void 0),nf([(0,x.MZ)({type:Boolean})],ng.prototype,"clickable",void 0),ng=nf([b("wui-list-token")],ng);let nw=(0,s.AH)`
  10329. button {
  10330. width: 100%;
  10331. display: flex;
  10332. gap: var(--wui-spacing-s);
  10333. align-items: center;
  10334. justify-content: flex-start;
  10335. padding: var(--wui-spacing-s) var(--wui-spacing-m) var(--wui-spacing-s) var(--wui-spacing-s);
  10336. background-color: var(--wui-color-gray-glass-002);
  10337. border-radius: var(--wui-border-radius-xs);
  10338. }
  10339. wui-icon-box {
  10340. width: var(--wui-spacing-2xl);
  10341. height: var(--wui-spacing-2xl);
  10342. }
  10343. wui-flex {
  10344. width: auto;
  10345. }
  10346. `;var nm=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nb=class extends s.WF{constructor(){super(...arguments),this.icon="card",this.text="",this.description="",this.tag=void 0,this.iconBackgroundColor="accent-100",this.iconColor="accent-100",this.disabled=!1}render(){return(0,s.qy)`
  10347. <button ontouchstart ?disabled=${this.disabled}>
  10348. <wui-icon-box
  10349. iconColor=${this.iconColor}
  10350. backgroundColor=${this.iconBackgroundColor}
  10351. size="inherit"
  10352. icon=${this.icon}
  10353. iconSize="md"
  10354. ></wui-icon-box>
  10355. <wui-flex flexDirection="column" justifyContent="spaceBetween">
  10356. ${this.titleTemplate()}
  10357. <wui-text variant="small-400" color="fg-200"> ${this.description}</wui-text></wui-flex
  10358. >
  10359. </button>
  10360. `}titleTemplate(){return this.tag?(0,s.qy)` <wui-flex alignItems="center" gap="xxs"
  10361. ><wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text
  10362. ><wui-tag tagType="main" size="md">${this.tag}</wui-tag>
  10363. </wui-flex>`:(0,s.qy)`<wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text>`}};nb.styles=[g,w,nw],nm([(0,x.MZ)()],nb.prototype,"icon",void 0),nm([(0,x.MZ)()],nb.prototype,"text",void 0),nm([(0,x.MZ)()],nb.prototype,"description",void 0),nm([(0,x.MZ)()],nb.prototype,"tag",void 0),nm([(0,x.MZ)()],nb.prototype,"iconBackgroundColor",void 0),nm([(0,x.MZ)()],nb.prototype,"iconColor",void 0),nm([(0,x.MZ)({type:Boolean})],nb.prototype,"disabled",void 0),nb=nm([b("wui-list-description")],nb);let nv=(0,s.AH)`
  10364. :host {
  10365. position: relative;
  10366. display: inline-block;
  10367. }
  10368. input {
  10369. background: transparent;
  10370. width: 100%;
  10371. height: auto;
  10372. font-family: var(--wui-font-family);
  10373. color: var(--wui-color-fg-100);
  10374. font-feature-settings: 'case' on;
  10375. font-size: 32px;
  10376. font-weight: var(--wui-font-weight-light);
  10377. caret-color: var(--wui-color-accent-100);
  10378. line-height: 130%;
  10379. letter-spacing: -1.28px;
  10380. box-sizing: border-box;
  10381. -webkit-appearance: none;
  10382. -moz-appearance: textfield;
  10383. padding: 0px;
  10384. }
  10385. input::-webkit-outer-spin-button,
  10386. input::-webkit-inner-spin-button {
  10387. -webkit-appearance: none;
  10388. margin: 0;
  10389. }
  10390. input::placeholder {
  10391. color: var(--wui-color-fg-275);
  10392. }
  10393. `,ny=/[.*+?^${}()|[\]\\]/gu,nx=/[0-9,.]/u;var nC=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nA=class extends s.WF{constructor(){super(...arguments),this.inputElementRef=(0,ix._)(),this.disabled=!1,this.value="",this.placeholder="0"}render(){return this.inputElementRef?.value&&this.value&&(this.inputElementRef.value.value=this.value),(0,s.qy)`<input
  10394. ${(0,ix.K)(this.inputElementRef)}
  10395. type="text"
  10396. inputmode="decimal"
  10397. pattern="[0-9,.]*"
  10398. placeholder=${this.placeholder}
  10399. ?disabled=${this.disabled}
  10400. autofocus
  10401. value=${this.value??""}
  10402. @input=${this.dispatchInputChangeEvent.bind(this)}
  10403. /> `}dispatchInputChangeEvent(e){let t=e.data;if(t&&this.inputElementRef?.value){if(","===t){let e=this.inputElementRef.value.value.replace(",",".");this.inputElementRef.value.value=e,this.value=`${this.value}${e}`}else nx.test(t)||(this.inputElementRef.value.value=this.value.replace(RegExp(t.replace(ny,"\\$&"),"gu"),""))}this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};nA.styles=[g,w,nv],nC([(0,x.MZ)({type:Boolean})],nA.prototype,"disabled",void 0),nC([(0,x.MZ)({type:String})],nA.prototype,"value",void 0),nC([(0,x.MZ)({type:String})],nA.prototype,"placeholder",void 0),nA=nC([b("wui-input-amount")],nA);let nE=(0,s.AH)`
  10404. :host {
  10405. display: flex;
  10406. gap: var(--wui-spacing-xs);
  10407. border-radius: var(--wui-border-radius-3xl);
  10408. border: 1px solid var(--wui-color-gray-glass-002);
  10409. background: var(--wui-color-gray-glass-002);
  10410. padding: var(--wui-spacing-2xs) var(--wui-spacing-xs) var(--wui-spacing-2xs)
  10411. var(--wui-spacing-s);
  10412. align-items: center;
  10413. }
  10414. wui-avatar,
  10415. wui-icon,
  10416. wui-image {
  10417. width: 32px;
  10418. height: 32px;
  10419. border: 1px solid var(--wui-color-gray-glass-002);
  10420. border-radius: var(--wui-border-radius-3xl);
  10421. box-shadow: 0 0 0 2px var(--wui-color-gray-glass-002);
  10422. }
  10423. `;var n_=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nk=class extends s.WF{constructor(){super(...arguments),this.text="",this.address="",this.isAddress=!1}render(){return(0,s.qy)`<wui-text variant="large-500" color="fg-100">${this.text}</wui-text>
  10424. ${this.imageTemplate()}`}imageTemplate(){return this.isAddress?(0,s.qy)`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`:this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,s.qy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};nk.styles=[g,w,nE],n_([(0,x.MZ)()],nk.prototype,"text",void 0),n_([(0,x.MZ)()],nk.prototype,"address",void 0),n_([(0,x.MZ)()],nk.prototype,"imageSrc",void 0),n_([(0,x.MZ)({type:Boolean})],nk.prototype,"isAddress",void 0),nk=n_([b("wui-preview-item")],nk);let nI=(0,s.AH)`
  10425. button {
  10426. padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
  10427. display: flex;
  10428. justify-content: space-between;
  10429. width: 100%;
  10430. border-radius: var(--wui-border-radius-xs);
  10431. background-color: var(--wui-color-gray-glass-002);
  10432. }
  10433. button[data-clickable='false'] {
  10434. pointer-events: none;
  10435. background-color: transparent;
  10436. }
  10437. wui-image {
  10438. width: var(--wui-spacing-3xl);
  10439. height: var(--wui-spacing-3xl);
  10440. border-radius: var(--wui-border-radius-3xl);
  10441. }
  10442. wui-avatar {
  10443. width: var(--wui-spacing-3xl);
  10444. height: var(--wui-spacing-3xl);
  10445. box-shadow: 0 0 0 0;
  10446. }
  10447. .address {
  10448. color: var(--wui-color-fg-base-100);
  10449. }
  10450. .address-description {
  10451. text-transform: capitalize;
  10452. color: var(--wui-color-fg-base-200);
  10453. }
  10454. wui-icon-box {
  10455. position: relative;
  10456. right: 15px;
  10457. top: 15px;
  10458. border: 2px solid var(--wui-color-bg-150);
  10459. background-color: var(--wui-color-bg-125);
  10460. }
  10461. `;var nS=i(45011),nT=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nN=class extends s.WF{constructor(){super(...arguments),this.accountAddress="",this.accountType="",this.connectedConnector=rv.iT.getConnectedConnector(),this.labels=rv.Uj.state.addressLabels,this.caipNetwork=rv.WB.state.activeCaipNetwork,this.socialProvider=rv.iT.getConnectedSocialProvider(),this.balance=0,this.fetchingBalance=!0,this.shouldShowIcon=!1,this.selected=!1}connectedCallback(){super.connectedCallback(),rv.TP.getBalance(this.accountAddress,this.caipNetwork?.caipNetworkId).then(e=>{let t=this.balance;e.balances.length>0&&(t=e.balances.reduce((e,t)=>e+(t?.value||0),0)),this.balance=t,this.fetchingBalance=!1,this.requestUpdate()}).catch(()=>{this.fetchingBalance=!1,this.requestUpdate()})}render(){let e=this.getLabel();return this.shouldShowIcon="ID_AUTH"===this.connectedConnector,(0,s.qy)`
  10462. <wui-flex
  10463. flexDirection="row"
  10464. justifyContent="space-between"
  10465. .padding=${["0","0","s","1xs"]}
  10466. >
  10467. <wui-flex gap="md" alignItems="center">
  10468. <wui-avatar address=${this.accountAddress}></wui-avatar>
  10469. ${this.shouldShowIcon?(0,s.qy)`<wui-icon-box
  10470. size="sm"
  10471. iconcolor="fg-200"
  10472. backgroundcolor="fg-300"
  10473. icon=${this.accountType===nS.Vl.ACCOUNT_TYPES.EOA?this.socialProvider??"mail":"lightbulb"}
  10474. background="fg-300"
  10475. ></wui-icon-box>`:(0,s.qy)`<wui-flex .padding="${["0","0","0","s"]}"></wui-flex>`}
  10476. <wui-flex flexDirection="column">
  10477. <wui-text class="address" variant="paragraph-500" color="fg-100"
  10478. >${tT.getTruncateString({string:this.accountAddress,charsStart:4,charsEnd:6,truncate:"middle"})}</wui-text
  10479. >
  10480. <wui-text class="address-description" variant="small-400">${e}</wui-text></wui-flex
  10481. >
  10482. </wui-flex>
  10483. <wui-flex gap="s" alignItems="center">
  10484. <slot name="action"></slot>
  10485. ${this.fetchingBalance?(0,s.qy)`<wui-loading-spinner size="sm" color="accent-100"></wui-loading-spinner>`:(0,s.qy)` <wui-text variant="small-400">$${this.balance.toFixed(2)}</wui-text>`}
  10486. </wui-flex>
  10487. </wui-flex>
  10488. `}getLabel(){let e=this.labels?.get(this.accountAddress);return e||"ID_AUTH"!==this.connectedConnector?(e||"INJECTED"!==this.connectedConnector)&&"ANNOUNCED"!==this.connectedConnector?e||(e="EOA"):e="Injected Account":e=`${"eoa"===this.accountType?this.socialProvider??"Email":"Smart"} Account`,e}};nN.styles=[g,w,nI],nT([(0,x.MZ)()],nN.prototype,"accountAddress",void 0),nT([(0,x.MZ)()],nN.prototype,"accountType",void 0),nT([(0,x.MZ)({type:Boolean})],nN.prototype,"selected",void 0),nT([(0,x.MZ)({type:Function})],nN.prototype,"onSelect",void 0),nN=nT([b("wui-list-account")],nN);let nP=(0,s.AH)`
  10489. :host {
  10490. position: relative;
  10491. }
  10492. button {
  10493. display: flex;
  10494. justify-content: center;
  10495. align-items: center;
  10496. height: 48px;
  10497. width: 100%;
  10498. background-color: var(--wui-color-accent-glass-010);
  10499. border-radius: var(--wui-border-radius-xs);
  10500. border: 1px solid var(--wui-color-accent-glass-010);
  10501. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
  10502. will-change: background-color;
  10503. }
  10504. wui-tooltip {
  10505. padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s);
  10506. position: absolute;
  10507. top: -8px;
  10508. left: 50%;
  10509. transform: translate(-50%, -100%);
  10510. opacity: 0;
  10511. display: none;
  10512. }
  10513. @media (hover: hover) and (pointer: fine) {
  10514. button:hover:enabled {
  10515. background-color: var(--wui-color-accent-glass-015);
  10516. }
  10517. button:active:enabled {
  10518. background-color: var(--wui-color-accent-glass-020);
  10519. }
  10520. }
  10521. `;var nR=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nO=class extends s.WF{constructor(){super(...arguments),this.text="",this.icon="card"}render(){return(0,s.qy)`<button>
  10522. <wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon>
  10523. </button>`}};nO.styles=[g,w,nP],nR([(0,x.MZ)()],nO.prototype,"text",void 0),nR([(0,x.MZ)()],nO.prototype,"icon",void 0),nO=nR([b("wui-icon-button")],nO);let nM=(0,s.AH)`
  10524. button {
  10525. column-gap: var(--wui-spacing-s);
  10526. padding: 16.5px var(--wui-spacing-l) 16.5px var(--wui-spacing-xs);
  10527. width: 100%;
  10528. background-color: var(--wui-color-gray-glass-002);
  10529. border-radius: var(--wui-border-radius-xs);
  10530. color: var(--wui-color-fg-100);
  10531. justify-content: center;
  10532. align-items: center;
  10533. }
  10534. button:disabled {
  10535. background-color: var(--wui-color-gray-glass-015);
  10536. color: var(--wui-color-gray-glass-015);
  10537. }
  10538. `;var nD=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nU=class extends s.WF{constructor(){super(...arguments),this.text="",this.disabled=!1,this.tabIdx=void 0}render(){return(0,s.qy)`
  10539. <button ?disabled=${this.disabled} tabindex=${(0,tS.J)(this.tabIdx)} ontouchstart>
  10540. <wui-text align="center" variant="paragraph-500" color="inherit">${this.text}</wui-text>
  10541. </button>
  10542. `}};nU.styles=[g,w,nM],nD([(0,x.MZ)()],nU.prototype,"text",void 0),nD([(0,x.MZ)({type:Boolean})],nU.prototype,"disabled",void 0),nD([(0,x.MZ)()],nU.prototype,"tabIdx",void 0),nU=nD([b("wui-list-button")],nU);let n$=(0,s.AH)`
  10543. button {
  10544. column-gap: var(--wui-spacing-s);
  10545. padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
  10546. width: 100%;
  10547. justify-content: flex-start;
  10548. background-color: var(--wui-color-gray-glass-002);
  10549. border-radius: var(--wui-border-radius-xs);
  10550. color: var(--wui-color-fg-100);
  10551. }
  10552. wui-text {
  10553. text-transform: capitalize;
  10554. }
  10555. wui-text[data-align='left'] {
  10556. display: flex;
  10557. flex: 1;
  10558. }
  10559. wui-text[data-align='center'] {
  10560. display: flex;
  10561. flex: 1;
  10562. justify-content: center;
  10563. }
  10564. .invisible {
  10565. opacity: 0;
  10566. pointer-events: none;
  10567. }
  10568. button:disabled {
  10569. background-color: var(--wui-color-gray-glass-015);
  10570. color: var(--wui-color-gray-glass-015);
  10571. }
  10572. `;var nL=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nj=class extends s.WF{constructor(){super(...arguments),this.logo="google",this.name="Continue with google",this.align="left",this.disabled=!1}render(){return(0,s.qy)`
  10573. <button ?disabled=${this.disabled} tabindex=${(0,tS.J)(this.tabIdx)} ontouchstart>
  10574. <wui-logo logo=${this.logo}></wui-logo>
  10575. <wui-text
  10576. data-align=${this.align}
  10577. variant="paragraph-500"
  10578. color="inherit"
  10579. align=${this.align}
  10580. >${this.name}</wui-text
  10581. >
  10582. ${this.templatePlacement()}
  10583. </button>
  10584. `}templatePlacement(){return"center"===this.align?(0,s.qy)` <wui-logo class="invisible" logo=${this.logo}></wui-logo>`:null}};nj.styles=[g,w,n$],nL([(0,x.MZ)()],nj.prototype,"logo",void 0),nL([(0,x.MZ)()],nj.prototype,"name",void 0),nL([(0,x.MZ)()],nj.prototype,"align",void 0),nL([(0,x.MZ)()],nj.prototype,"tabIdx",void 0),nL([(0,x.MZ)({type:Boolean})],nj.prototype,"disabled",void 0),nj=nL([b("wui-list-social")],nj);let nB=(0,s.AH)`
  10585. button {
  10586. display: block;
  10587. display: flex;
  10588. align-items: center;
  10589. padding: var(--wui-spacing-xxs);
  10590. gap: var(--wui-spacing-xxs);
  10591. transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
  10592. border-radius: var(--wui-border-radius-xxs);
  10593. }
  10594. wui-image {
  10595. border-radius: 100%;
  10596. width: var(--wui-spacing-xl);
  10597. height: var(--wui-spacing-xl);
  10598. }
  10599. wui-icon-box {
  10600. width: var(--wui-spacing-xl);
  10601. height: var(--wui-spacing-xl);
  10602. }
  10603. button:hover {
  10604. background-color: var(--wui-color-gray-glass-002);
  10605. }
  10606. button:active {
  10607. background-color: var(--wui-color-gray-glass-005);
  10608. }
  10609. `;var nW=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nq=class extends s.WF{constructor(){super(...arguments),this.imageSrc=""}render(){return(0,s.qy)`<button>
  10610. ${this.imageTemplate()}
  10611. <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
  10612. </button>`}imageTemplate(){return this.imageSrc?(0,s.qy)`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`:(0,s.qy)`<wui-icon-box
  10613. size="xxs"
  10614. iconColor="fg-200"
  10615. backgroundColor="fg-100"
  10616. background="opaque"
  10617. icon="networkPlaceholder"
  10618. ></wui-icon-box>`}};nq.styles=[g,w,m,nB],nW([(0,x.MZ)()],nq.prototype,"imageSrc",void 0),nq=nW([b("wui-select")],nq);let nH=(0,s.AH)`
  10619. label {
  10620. display: flex;
  10621. align-items: center;
  10622. cursor: pointer;
  10623. -webkit-user-select: none;
  10624. -moz-user-select: none;
  10625. -ms-user-select: none;
  10626. user-select: none;
  10627. column-gap: var(--wui-spacing-1xs);
  10628. }
  10629. label > input[type='checkbox'] {
  10630. height: 0;
  10631. width: 0;
  10632. opacity: 0;
  10633. pointer-events: none;
  10634. position: absolute;
  10635. }
  10636. label > span {
  10637. width: var(--wui-spacing-xl);
  10638. height: var(--wui-spacing-xl);
  10639. min-width: var(--wui-spacing-xl);
  10640. min-height: var(--wui-spacing-xl);
  10641. border-radius: var(--wui-border-radius-3xs);
  10642. border-width: 1px;
  10643. border-style: solid;
  10644. border-color: var(--wui-color-gray-glass-010);
  10645. display: flex;
  10646. align-items: center;
  10647. justify-content: center;
  10648. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
  10649. will-change: background-color;
  10650. }
  10651. label > span:hover,
  10652. label > input[type='checkbox']:focus-visible + span {
  10653. background-color: var(--wui-color-gray-glass-010);
  10654. }
  10655. label input[type='checkbox']:checked + span {
  10656. background-color: var(--wui-color-blue-base-90);
  10657. }
  10658. label > span > wui-icon {
  10659. opacity: 0;
  10660. transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-lg);
  10661. will-change: opacity;
  10662. }
  10663. label > input[type='checkbox']:checked + span wui-icon {
  10664. opacity: 1;
  10665. }
  10666. `;var nz=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nF=class extends s.WF{constructor(){super(...arguments),this.inputElementRef=(0,ix._)(),this.checked=void 0}render(){return(0,s.qy)`
  10667. <label>
  10668. <input
  10669. ${(0,ix.K)(this.inputElementRef)}
  10670. ?checked=${(0,tS.J)(this.checked)}
  10671. type="checkbox"
  10672. @change=${this.dispatchChangeEvent}
  10673. />
  10674. <span>
  10675. <wui-icon name="checkmarkBold" color="inverse-100" size="xxs"></wui-icon>
  10676. </span>
  10677. <slot></slot>
  10678. </label>
  10679. `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("checkboxChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};nF.styles=[g,nH],nz([(0,x.MZ)({type:Boolean})],nF.prototype,"checked",void 0),nF=nz([b("wui-checkbox")],nF);let nZ=(0,s.AH)`
  10680. :host {
  10681. display: flex;
  10682. align-items: center;
  10683. justify-content: center;
  10684. }
  10685. label {
  10686. position: relative;
  10687. display: inline-block;
  10688. width: 32px;
  10689. height: 22px;
  10690. }
  10691. input {
  10692. width: 0;
  10693. height: 0;
  10694. opacity: 0;
  10695. }
  10696. span {
  10697. position: absolute;
  10698. cursor: pointer;
  10699. top: 0;
  10700. left: 0;
  10701. right: 0;
  10702. bottom: 0;
  10703. background-color: var(--wui-color-blue-100);
  10704. border-width: 1px;
  10705. border-style: solid;
  10706. border-color: var(--wui-color-gray-glass-002);
  10707. border-radius: 999px;
  10708. transition:
  10709. background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
  10710. border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);
  10711. will-change: background-color, border-color;
  10712. }
  10713. span:before {
  10714. position: absolute;
  10715. content: '';
  10716. height: 16px;
  10717. width: 16px;
  10718. left: 3px;
  10719. top: 2px;
  10720. background-color: var(--wui-color-inverse-100);
  10721. transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);
  10722. will-change: transform;
  10723. border-radius: 50%;
  10724. }
  10725. input:checked + span {
  10726. border-color: var(--wui-color-gray-glass-005);
  10727. background-color: var(--wui-color-blue-100);
  10728. }
  10729. input:not(:checked) + span {
  10730. background-color: var(--wui-color-gray-glass-010);
  10731. }
  10732. input:checked + span:before {
  10733. transform: translateX(calc(100% - 7px));
  10734. }
  10735. `;var nV=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nK=class extends s.WF{constructor(){super(...arguments),this.inputElementRef=(0,ix._)(),this.checked=void 0}render(){return(0,s.qy)`
  10736. <label>
  10737. <input
  10738. ${(0,ix.K)(this.inputElementRef)}
  10739. type="checkbox"
  10740. ?checked=${(0,tS.J)(this.checked)}
  10741. @change=${this.dispatchChangeEvent.bind(this)}
  10742. />
  10743. <span></span>
  10744. </label>
  10745. `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("switchChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};nK.styles=[g,w,m,nZ],nV([(0,x.MZ)({type:Boolean})],nK.prototype,"checked",void 0),nK=nV([b("wui-switch")],nK);let nG=(0,s.AH)`
  10746. :host {
  10747. height: 100%;
  10748. }
  10749. button {
  10750. display: flex;
  10751. align-items: center;
  10752. justify-content: center;
  10753. column-gap: var(--wui-spacing-1xs);
  10754. padding: var(--wui-spacing-xs) var(--wui-spacing-s);
  10755. background-color: var(--wui-color-gray-glass-002);
  10756. border-radius: var(--wui-border-radius-xs);
  10757. box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  10758. transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
  10759. will-change: background-color;
  10760. cursor: pointer;
  10761. }
  10762. wui-switch {
  10763. pointer-events: none;
  10764. }
  10765. `;var nJ=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let nY=class extends s.WF{constructor(){super(...arguments),this.checked=void 0}render(){return(0,s.qy)`
  10766. <button>
  10767. <wui-icon size="xl" name="walletConnectBrown"></wui-icon>
  10768. <wui-switch ?checked=${(0,tS.J)(this.checked)}></wui-switch>
  10769. </button>
  10770. `}};nY.styles=[g,w,nG],nJ([(0,x.MZ)({type:Boolean})],nY.prototype,"checked",void 0),nY=nJ([b("wui-certified-switch")],nY);let nQ=(0,s.AH)`
  10771. :host {
  10772. display: grid;
  10773. width: inherit;
  10774. height: inherit;
  10775. }
  10776. `;var nX=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let n0=class extends s.WF{render(){return this.style.cssText=`
  10777. grid-template-rows: ${this.gridTemplateRows};
  10778. grid-template-columns: ${this.gridTemplateColumns};
  10779. justify-items: ${this.justifyItems};
  10780. align-items: ${this.alignItems};
  10781. justify-content: ${this.justifyContent};
  10782. align-content: ${this.alignContent};
  10783. column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
  10784. row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
  10785. gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
  10786. padding-top: ${this.padding&&tT.getSpacingStyles(this.padding,0)};
  10787. padding-right: ${this.padding&&tT.getSpacingStyles(this.padding,1)};
  10788. padding-bottom: ${this.padding&&tT.getSpacingStyles(this.padding,2)};
  10789. padding-left: ${this.padding&&tT.getSpacingStyles(this.padding,3)};
  10790. margin-top: ${this.margin&&tT.getSpacingStyles(this.margin,0)};
  10791. margin-right: ${this.margin&&tT.getSpacingStyles(this.margin,1)};
  10792. margin-bottom: ${this.margin&&tT.getSpacingStyles(this.margin,2)};
  10793. margin-left: ${this.margin&&tT.getSpacingStyles(this.margin,3)};
  10794. `,(0,s.qy)`<slot></slot>`}};n0.styles=[g,nQ],nX([(0,x.MZ)()],n0.prototype,"gridTemplateRows",void 0),nX([(0,x.MZ)()],n0.prototype,"gridTemplateColumns",void 0),nX([(0,x.MZ)()],n0.prototype,"justifyItems",void 0),nX([(0,x.MZ)()],n0.prototype,"alignItems",void 0),nX([(0,x.MZ)()],n0.prototype,"justifyContent",void 0),nX([(0,x.MZ)()],n0.prototype,"alignContent",void 0),nX([(0,x.MZ)()],n0.prototype,"columnGap",void 0),nX([(0,x.MZ)()],n0.prototype,"rowGap",void 0),nX([(0,x.MZ)()],n0.prototype,"gap",void 0),nX([(0,x.MZ)()],n0.prototype,"padding",void 0),nX([(0,x.MZ)()],n0.prototype,"margin",void 0),n0=nX([b("wui-grid")],n0);let n1=(0,s.AH)`
  10795. :host {
  10796. position: relative;
  10797. display: flex;
  10798. width: 100%;
  10799. height: 1px;
  10800. background-color: var(--wui-color-gray-glass-005);
  10801. justify-content: center;
  10802. align-items: center;
  10803. }
  10804. :host > wui-text {
  10805. position: absolute;
  10806. padding: 0px 10px;
  10807. background-color: var(--wui-color-modal-bg);
  10808. }
  10809. `;var n2=function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let n3=class extends s.WF{constructor(){super(...arguments),this.text=""}render(){return(0,s.qy)`${this.template()}`}template(){return this.text?(0,s.qy)`<wui-text variant="small-500" color="fg-200">${this.text}</wui-text>`:null}};n3.styles=[g,n1],n2([(0,x.MZ)()],n3.prototype,"text",void 0),n3=n2([b("wui-separator")],n3);let n5={interpolate(e,t,i){if(2!==e.length||2!==t.length)throw Error("inputRange and outputRange must be an array of length 2");let r=e[0]||0,n=e[1]||0,a=t[0]||0,o=t[1]||0;return i<r?a:i>n?o:(o-a)/(n-r)*(i-r)+a}},n4=["receive","deposit","borrow","claim"],n6=["withdraw","repay","burn"],n8={getMonthName(e){let t=new Date;return t.setMonth(e),t.toLocaleString("en-US",{month:"long"})},getTransactionGroupTitle(e,t){let i=u.rL.getYear(),r=this.getMonthName(t);return e===i?r:`${r} ${e}`},getTransactionImages(e){let[t,i]=e,r=!!t&&e?.every(e=>!!e.nft_info),n=e?.length>1;return e?.length!==2||r?n?e.map(e=>this.getTransactionImage(e)):[this.getTransactionImage(t)]:[this.getTransactionImage(t),this.getTransactionImage(i)]},getTransactionImage:e=>({type:n8.getTransactionTransferTokenType(e),url:n8.getTransactionImageURL(e)}),getTransactionImageURL(e){let t;let i=!!e?.nft_info,r=!!e?.fungible_info;return e&&i?t=e?.nft_info?.content?.preview?.url:e&&r&&(t=e?.fungible_info?.icon?.url),t},getTransactionTransferTokenType:e=>e?.fungible_info?"FUNGIBLE":e?.nft_info?"NFT":void 0,getTransactionDescriptions(e){let t=e?.metadata?.operationType,i=e?.transfers,r=e?.transfers?.length>0,n=e?.transfers?.length>1,a=r&&i?.every(e=>!!e?.fungible_info),[o,s]=i,c=this.getTransferDescription(o);if(this.getTransferDescription(s),!r)return("send"===t||"receive"===t)&&a?[c=tT.getTruncateString({string:e?.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),tT.getTruncateString({string:e?.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"})]:[e.metadata.status];if(n)return i.map(e=>this.getTransferDescription(e));let l="";return n4.includes(t)?l="+":n6.includes(t)&&(l="-"),[c=l.concat(c)]},getTransferDescription(e){let t="";return e&&(e?.nft_info?t=e?.nft_info?.name||"-":e?.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){return e?[this.getQuantityFixedValue(e?.quantity.numeric),e?.fungible_info?.symbol].join(" ").trim():null},getQuantityFixedValue:e=>e?parseFloat(e).toFixed(3):null}},60402:(e,t,i)=>{"use strict";i.d(t,{R5:()=>y,oU:()=>r,RQ:()=>a,L_:()=>n,iV:()=>o});let r={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",WALLET_STANDARD_CONNECTOR_ID:"announced",COINBASE_CONNECTOR_ID:"coinbaseWallet",COINBASE_SDK_CONNECTOR_ID:"coinbaseWalletSDK",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",AUTH_CONNECTOR_ID:"ID_AUTH",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},CONNECTOR_TYPE_EXTERNAL:"EXTERNAL",CONNECTOR_TYPE_WALLET_CONNECT:"WALLET_CONNECT",CONNECTOR_TYPE_INJECTED:"INJECTED",CONNECTOR_TYPE_ANNOUNCED:"ANNOUNCED",CONNECTOR_TYPE_AUTH:"AUTH",CONNECTOR_TYPE_MULTI_CHAIN:"MULTI_CHAIN",CONNECTOR_TYPE_W3M_AUTH:"ID_AUTH"},n={ConnectorExplorerIds:{[r.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[r.COINBASE_SDK_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[r.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[r.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},NetworkImageIds:{1:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",42161:"3bff954d-5cb0-47a0-9a23-d20192e74600",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",0x4e454152:"3ff73439-a619-4894-9262-4470c773a100",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700"},ConnectorImageIds:{[r.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[r.COINBASE_SDK_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[r.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[r.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[r.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[r.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[r.INJECTED_CONNECTOR_ID]:"Browser Wallet",[r.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[r.COINBASE_CONNECTOR_ID]:"Coinbase",[r.COINBASE_SDK_CONNECTOR_ID]:"Coinbase",[r.LEDGER_CONNECTOR_ID]:"Ledger",[r.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[r.INJECTED_CONNECTOR_ID]:"INJECTED",[r.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[r.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[r.AUTH_CONNECTOR_ID]:"AUTH"},WalletConnectRpcChainIds:[1,5,0xaa36a7,10,420,42161,421613,137,80001,42220,0x4e454152,0x4e454153,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},a={UniversalProviderErrors:{UNAUTHORIZED_DOMAIN_NOT_ALLOWED:{message:"Unauthorized: origin not allowed",alertErrorKey:"INVALID_APP_CONFIGURATION"},JWT_VALIDATION_ERROR:{message:"JWT validation error: JWT Token is not yet valid",alertErrorKey:"JWT_TOKEN_NOT_VALID"}},ALERT_ERRORS:{SWITCH_NETWORK_NOT_FOUND:{shortMessage:"Network Not Found",longMessage:"Network not found - please make sure it is included in 'networks' array in createAppKit function"},INVALID_APP_CONFIGURATION:{shortMessage:"Invalid App Configuration",longMessage:()=>`Origin ${"undefined"!=typeof window?window.origin:"unknown"} not found on Allowlist - update configuration on cloud.reown.com`},SOCIALS_TIMEOUT:{shortMessage:"Invalid App Configuration",longMessage:()=>"There was an issue loading the embedded wallet. Please verify that your domain is allowed at cloud.reown.com"},JWT_TOKEN_NOT_VALID:{shortMessage:"Session Expired",longMessage:"Invalid session found on UniversalProvider - please check your time settings and connect again"},PROJECT_ID_NOT_CONFIGURED:{shortMessage:"Project ID Not Configured",longMessage:"Project ID Not Configured - update configuration on cloud.reown.com"}}};i(52027);var o,s=i(50639),c=i(36280),l=i(33671);class u extends l.C{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var d=i(9704),h=i(42220),p=i(6044);let f={current:0,take(){return this.current++},reset(){this.current=0}};var g=i(5512);function w(e,t={}){let{batch:i,fetchOptions:r,key:n="http",name:a="HTTP JSON-RPC",onFetchRequest:o,onFetchResponse:s,retryDelay:l}=t;return({chain:w,retryCount:m,timeout:b})=>{let{batchSize:v=1e3,wait:y=0}="object"==typeof i?i:{},x=t.retryCount??m,C=b??t.timeout??1e4,A=e||w?.rpcUrls.default.http[0];if(!A)throw new u;let E=function(e,t={}){return{async request(i){let{body:r,onRequest:n=t.onRequest,onResponse:a=t.onResponse,timeout:o=t.timeout??1e4}=i,s={...t.fetchOptions??{},...i.fetchOptions??{}},{headers:l,method:u,signal:d}=s;try{let t;let i=await (0,h.w)(async({signal:t})=>{let i={...s,body:Array.isArray(r)?(0,p.A)(r.map(e=>({jsonrpc:"2.0",id:e.id??f.take(),...e}))):(0,p.A)({jsonrpc:"2.0",id:r.id??f.take(),...r}),headers:{"Content-Type":"application/json",...l},method:u||"POST",signal:d||(o>0?t:null)},a=new Request(e,i),c=await n?.(a,i)??{...i,url:e};return await fetch(c.url??e,c)},{errorInstance:new c.MU({body:r,url:e}),timeout:o,signal:!0});if(a&&await a(i),i.headers.get("Content-Type")?.startsWith("application/json"))t=await i.json();else{t=await i.text();try{t=JSON.parse(t||"{}")}catch(e){if(i.ok)throw e;t={error:t}}}if(!i.ok)throw new c.Ci({body:r,details:(0,p.A)(t.error)||i.statusText,headers:i.headers,status:i.status,url:e});return t}catch(t){if(t instanceof c.Ci||t instanceof c.MU)throw t;throw new c.Ci({body:r,cause:t,url:e})}}}}(A,{fetchOptions:r,onRequest:o,onResponse:s,timeout:C});return(0,g.o)({key:n,name:a,async request({method:e,params:t}){let r={method:e,params:t},{schedule:n}=(0,d.u)({id:A,wait:y,shouldSplitBatch:e=>e.length>v,fn:e=>E.request({body:e}),sort:(e,t)=>e.id-t.id}),a=async e=>i?n(e):[await E.request({body:e})],[{error:o,result:s}]=await a(r);if(o)throw new c.J8({body:r,error:o,url:A});return s},retryCount:x,retryDelay:l,timeout:C,type:"http"},{fetchOptions:r,url:A})}}var m=i(61678),b=i(38102);let v=["near:mainnet","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","eip155:1101","eip155:56","eip155:42161","eip155:7777777","eip155:59144","eip155:324","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","eip155:5000","solana:4sgjmw1sunhzsxgspuhpqldx6wiyjntz","eip155:80084","eip155:5003","eip155:100","eip155:8453","eip155:42220","eip155:1313161555","eip155:17000","eip155:1","eip155:300","eip155:1313161554","eip155:1329","eip155:84532","eip155:421614","eip155:11155111","eip155:8217","eip155:43114","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","eip155:999999999","eip155:11155420","eip155:80002","eip155:97","eip155:43113","eip155:137","eip155:10","eip155:1301"],y={extendRpcUrlWithProjectId(e,t){let i=!1;try{i="rpc.walletconnect.org"===new URL(e).host}catch(e){i=!1}if(i){let i=new URL(e);return i.searchParams.has("projectId")||i.searchParams.set("projectId",t),i.toString()}return e},isCaipNetwork:e=>"chainNamespace"in e&&"caipNetworkId"in e,getChainNamespace(e){return this.isCaipNetwork(e)?e.chainNamespace:s.oU.CHAIN.EVM},getCaipNetworkId(e){return this.isCaipNetwork(e)?e.caipNetworkId:`${s.oU.CHAIN.EVM}:${e.id}`},getRpcUrl(e,t,i){let r=e.rpcUrls?.default?.http?.[0];return v.includes(t)?function(e,t){let i=new URL("https://rpc.walletconnect.org/v1/");return i.searchParams.set("chainId",e),i.searchParams.set("projectId",t),i.toString()}(t,i):r||""},extendCaipNetwork(e,{customNetworkImageUrls:t,projectId:i}){let r=this.getCaipNetworkId(e),a=this.getChainNamespace(e),o=this.getRpcUrl(e,r,i);return{...e,chainNamespace:a,caipNetworkId:r,assets:{imageId:n.NetworkImageIds[e.id],imageUrl:t?.[e.id]},rpcUrls:{...e.rpcUrls,default:{http:[o]}}}},extendCaipNetworks:(e,{customNetworkImageUrls:t,projectId:i})=>e.map(e=>y.extendCaipNetwork(e,{customNetworkImageUrls:t,projectId:i})),getViemTransport(e){let t=e.rpcUrls.default.http?.[0];return v.includes(e.caipNetworkId)?function(e,t={}){let{key:i="fallback",name:r="Fallback",rank:n=!1,retryCount:a,retryDelay:o}=t;return({chain:t,pollingInterval:s=4e3,timeout:c,...l})=>{let u=e,d=()=>{},h=(0,g.o)({key:i,name:r,async request({method:e,params:i}){let r=async(n=0)=>{let a=u[n]({...l,chain:t,retryCount:0,timeout:c});try{let t=await a.request({method:e,params:i});return d({method:e,params:i,response:t,transport:a,status:"success"}),t}catch(t){if(d({error:t,method:e,params:i,transport:a,status:"error"}),"code"in t&&"number"==typeof t.code&&(t.code===m.YW.code||t.code===m.vx.code||5e3===t.code)||n===u.length-1)throw t;return r(n+1)}};return r()},retryCount:a,retryDelay:o,type:"fallback"},{onResponse:e=>d=e,transports:u.map(e=>e({chain:t,retryCount:0}))});if(n){let e="object"==typeof n?n:{};!function({chain:e,interval:t=4e3,onTransports:i,ping:r,sampleCount:n=10,timeout:a=1e3,transports:o,weights:s={}}){let{stability:c=.7,latency:l=.3}=s,u=[],d=async()=>{let s=await Promise.all(o.map(async t=>{let i,n;let o=t({chain:e,retryCount:0,timeout:a}),s=Date.now();try{await (r?r({transport:o}):o.request({method:"net_listening"})),n=1}catch{n=0}finally{i=Date.now()}return{latency:i-s,success:n}}));u.push(s),u.length>n&&u.shift();let h=Math.max(...u.map(e=>Math.max(...e.map(({latency:e})=>e))));i(o.map((e,t)=>{let i=u.map(e=>e[t].latency),r=i.reduce((e,t)=>e+t,0)/i.length,n=u.map(e=>e[t].success),a=n.reduce((e,t)=>e+t,0)/n.length;return 0===a?[0,t]:[l*(1-r/h)+c*a,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>o[e])),await (0,b.u)(t),d()};d()}({chain:t,interval:e.interval??s,onTransports:e=>u=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:u,weights:e.weights})}return h}}([w(t,{fetchOptions:{headers:{"Content-Type":"text/plain"}}}),w(t)]):w(t)}};!function(e){e.Google="google",e.Github="github",e.Apple="apple",e.Facebook="facebook",e.X="x",e.Discord="discord",e.Farcaster="farcaster"}(o||(o={}))},45011:(e,t,i)=>{"use strict";let r;i.d(t,{QH:()=>iv,YW:()=>iT,Vl:()=>p}),i(15899);var n,a,o,s,c=i(18596);let l=c.env.NEXT_PUBLIC_SECURE_SITE_SDK_URL||"https://secure.walletconnect.org/sdk",u=c.env.NEXT_PUBLIC_DEFAULT_LOG_LEVEL||"error",d=c.env.NEXT_PUBLIC_SECURE_SITE_SDK_VERSION||2,h={APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@appkit-wallet/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_USED_CHAIN_KEY:"LAST_USED_CHAIN_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",PREFERRED_ACCOUNT_TYPE:"PREFERRED_ACCOUNT_TYPE",SMART_ACCOUNT_ENABLED:"SMART_ACCOUNT_ENABLED",SMART_ACCOUNT_ENABLED_NETWORKS:"SMART_ACCOUNT_ENABLED_NETWORKS",SOCIAL_USERNAME:"SOCIAL_USERNAME",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_CONNECT_SOCIAL:"@w3m-app/CONNECT_SOCIAL",APP_GET_SOCIAL_REDIRECT_URI:"@w3m-app/GET_SOCIAL_REDIRECT_URI",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_UPDATE_EMAIL_PRIMARY_OTP:"@w3m-app/UPDATE_EMAIL_PRIMARY_OTP",APP_UPDATE_EMAIL_SECONDARY_OTP:"@w3m-app/UPDATE_EMAIL_SECONDARY_OTP",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",APP_SYNC_DAPP_DATA:"@w3m-app/SYNC_DAPP_DATA",APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS:"@w3m-app/GET_SMART_ACCOUNT_ENABLED_NETWORKS",APP_INIT_SMART_ACCOUNT:"@w3m-app/INIT_SMART_ACCOUNT",APP_SET_PREFERRED_ACCOUNT:"@w3m-app/SET_PREFERRED_ACCOUNT",APP_CONNECT_FARCASTER:"@w3m-app/CONNECT_FARCASTER",APP_GET_FARCASTER_URI:"@w3m-app/GET_FARCASTER_URI",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_CONNECT_SOCIAL_SUCCESS:"@w3m-frame/CONNECT_SOCIAL_SUCCESS",FRAME_CONNECT_SOCIAL_ERROR:"@w3m-frame/CONNECT_SOCIAL_ERROR",FRAME_CONNECT_FARCASTER_SUCCESS:"@w3m-frame/CONNECT_FARCASTER_SUCCESS",FRAME_CONNECT_FARCASTER_ERROR:"@w3m-frame/CONNECT_FARCASTER_ERROR",FRAME_GET_FARCASTER_URI_SUCCESS:"@w3m-frame/GET_FARCASTER_URI_SUCCESS",FRAME_GET_FARCASTER_URI_ERROR:"@w3m-frame/GET_FARCASTER_URI_ERROR",FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_SUCCESS",FRAME_GET_SOCIAL_REDIRECT_URI_ERROR:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_ERROR",FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR",FRAME_SYNC_DAPP_DATA_SUCCESS:"@w3m-frame/SYNC_DAPP_DATA_SUCCESS",FRAME_SYNC_DAPP_DATA_ERROR:"@w3m-frame/SYNC_DAPP_DATA_ERROR",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR",FRAME_INIT_SMART_ACCOUNT_SUCCESS:"@w3m-frame/INIT_SMART_ACCOUNT_SUCCESS",FRAME_INIT_SMART_ACCOUNT_ERROR:"@w3m-frame/INIT_SMART_ACCOUNT_ERROR",FRAME_SET_PREFERRED_ACCOUNT_SUCCESS:"@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS",FRAME_SET_PREFERRED_ACCOUNT_ERROR:"@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR",FRAME_READY:"@w3m-frame/READY",RPC_RESPONSE_TYPE_ERROR:"RPC_RESPONSE_ERROR",RPC_RESPONSE_TYPE_TX:"RPC_RESPONSE_TRANSACTION_HASH",RPC_RESPONSE_TYPE_OBJECT:"RPC_RESPONSE_OBJECT"},p={SAFE_RPC_METHODS:["eth_accounts","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getAccount","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockReceipts","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_maxPriorityFeePerGas","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter","wallet_getCapabilities","wallet_getCallsStatus","eth_getUserOperationReceipt","eth_estimateUserOperationGas","eth_getUserOperationByHash","eth_supportedEntryPoints"],NOT_SAFE_RPC_METHODS:["personal_sign","eth_signTypedData_v4","eth_sendTransaction","solana_signMessage","solana_signTransaction","solana_signAllTransactions","solana_signAndSendTransaction","wallet_sendCalls","wallet_grantPermissions","wallet_revokePermissions","eth_sendUserOperation"],GET_CHAIN_ID:"eth_chainId",RPC_METHOD_NOT_ALLOWED_MESSAGE:"Requested RPC call is not allowed",RPC_METHOD_NOT_ALLOWED_UI_MESSAGE:"Action not allowed",ACCOUNT_TYPES:{EOA:"eoa",SMART_ACCOUNT:"smartAccount"}};!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},e.getValidEnumValues=t=>{let i=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of i)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(let i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(n={})),(a||(a={})).mergeShapes=(e,t)=>({...e,...t});let f=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),g=e=>{switch(typeof e){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(e)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":if(Array.isArray(e))return f.array;if(null===e)return f.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return f.promise;if("undefined"!=typeof Map&&e instanceof Map)return f.map;if("undefined"!=typeof Set&&e instanceof Set)return f.set;if("undefined"!=typeof Date&&e instanceof Date)return f.date;return f.object;default:return f.unknown}},w=n.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class m extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},i={_errors:[]},r=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(r);else if("invalid_return_type"===n.code)r(n.returnTypeError);else if("invalid_arguments"===n.code)r(n.argumentsError);else if(0===n.path.length)i._errors.push(t(n));else{let e=i,r=0;for(;r<n.path.length;){let i=n.path[r];r===n.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(n))):e[i]=e[i]||{_errors:[]},e=e[i],r++}}};return r(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},i=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):i.push(e(r));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}m.create=e=>new m(e);let b=(e,t)=>{let i;switch(e.code){case w.invalid_type:i=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case w.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,n.jsonStringifyReplacer)}`;break;case w.unrecognized_keys:i=`Unrecognized key(s) in object: ${n.joinValues(e.keys,", ")}`;break;case w.invalid_union:i="Invalid input";break;case w.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${n.joinValues(e.options)}`;break;case w.invalid_enum_value:i=`Invalid enum value. Expected ${n.joinValues(e.options)}, received '${e.received}'`;break;case w.invalid_arguments:i="Invalid function arguments";break;case w.invalid_return_type:i="Invalid function return type";break;case w.invalid_date:i="Invalid date";break;case w.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:n.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case w.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case w.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case w.custom:i="Invalid input";break;case w.invalid_intersection_types:i="Intersection results could not be merged";break;case w.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case w.not_finite:i="Number must be finite";break;default:i=t.defaultError,n.assertNever(e)}return{message:i}},v=b;function y(){return v}let x=e=>{let{data:t,path:i,errorMaps:r,issueData:n}=e,a=[...i,...n.path||[]],o={...n,path:a},s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...n,path:a,message:n.message||s}};function C(e,t){let i=x({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,y(),b].filter(e=>!!e)});e.common.issues.push(i)}class A{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let r of t){if("aborted"===r.status)return E;"dirty"===r.status&&e.dirty(),i.push(r.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t)i.push({key:await e.key,value:await e.value});return A.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let r of t){let{key:t,value:n}=r;if("aborted"===t.status||"aborted"===n.status)return E;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||r.alwaysSet)&&(i[t.value]=n.value)}return{status:e.value,value:i}}}let E=Object.freeze({status:"aborted"}),_=e=>({status:"dirty",value:e}),k=e=>({status:"valid",value:e}),I=e=>"aborted"===e.status,S=e=>"dirty"===e.status,T=e=>"valid"===e.status,N=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(o||(o={}));class P{constructor(e,t,i,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let R=(e,t)=>{if(T(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new m(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:r,description:n}=e;if(t&&(i||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=i?i:t.defaultError},description:n}}class M{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return g(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:g(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new A,ctx:{common:e.parent.common,data:e.data,parsedType:g(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(N(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;let r={common:{issues:[],async:null!==(i=null==t?void 0:t.async)&&void 0!==i&&i,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)},n=this._parseSync({data:e,path:r.path,parent:r});return R(r,n)}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)},r=this._parse({data:e,path:i.path,parent:i});return R(i,await (N(r)?r:Promise.resolve(r)))}refine(e,t){let i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let n=e(t),a=()=>r.addIssue({code:w.custom,...i(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then(e=>!!e||(a(),!1)):!!n||(a(),!1)})}refinement(e,t){return this._refinement((i,r)=>!!e(i)||(r.addIssue("function"==typeof t?t(i,r):t),!1))}_refinement(e){return new eb({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ev.create(this,this._def)}nullable(){return ey.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this,this._def)}promise(){return em.create(this,this._def)}or(e){return er.create([this,e],this._def)}and(e){return eo.create(this,e,this._def)}transform(e){return new eb({...O(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ex({...O(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new e_({typeName:s.ZodBranded,type:this,...O(this._def)})}catch(e){return new eC({...O(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ek.create(this,e)}readonly(){return eI.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let D=/^c[^\s-]{8,}$/i,U=/^[a-z][a-z0-9]*$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,L=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,B=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,W=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,q=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class H extends M{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.string,received:t.parsedType}),E}let i=new A;for(let s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if("max"===s.kind)e.data.length>s.value&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if("length"===s.kind){let r=e.data.length>s.value,n=e.data.length<s.value;(r||n)&&(t=this._getOrReturnCtx(e,t),r?C(t,{code:w.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):n&&C(t,{code:w.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if("email"===s.kind)j.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"email",code:w.invalid_string,message:s.message}),i.dirty());else if("emoji"===s.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:w.invalid_string,message:s.message}),i.dirty());else if("uuid"===s.kind)L.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:w.invalid_string,message:s.message}),i.dirty());else if("cuid"===s.kind)D.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:w.invalid_string,message:s.message}),i.dirty());else if("cuid2"===s.kind)U.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:w.invalid_string,message:s.message}),i.dirty());else if("ulid"===s.kind)$.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:w.invalid_string,message:s.message}),i.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(r){C(t=this._getOrReturnCtx(e,t),{validation:"url",code:w.invalid_string,message:s.message}),i.dirty()}else if("regex"===s.kind)s.regex.lastIndex=0,s.regex.test(e.data)||(C(t=this._getOrReturnCtx(e,t),{validation:"regex",code:w.invalid_string,message:s.message}),i.dirty());else if("trim"===s.kind)e.data=e.data.trim();else if("includes"===s.kind)e.data.includes(s.value,s.position)||(C(t=this._getOrReturnCtx(e,t),{code:w.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty());else if("toLowerCase"===s.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===s.kind)e.data=e.data.toUpperCase();else if("startsWith"===s.kind)e.data.startsWith(s.value)||(C(t=this._getOrReturnCtx(e,t),{code:w.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty());else if("endsWith"===s.kind)e.data.endsWith(s.value)||(C(t=this._getOrReturnCtx(e,t),{code:w.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty());else if("datetime"===s.kind)q(s).test(e.data)||(C(t=this._getOrReturnCtx(e,t),{code:w.invalid_string,validation:"datetime",message:s.message}),i.dirty());else if("ip"===s.kind){var a,o;a=e.data,("v4"===(o=s.version)||!o)&&B.test(a)||("v6"===o||!o)&&W.test(a)||(C(t=this._getOrReturnCtx(e,t),{validation:"ip",code:w.invalid_string,message:s.message}),i.dirty())}else n.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:w.invalid_string,...o.errToObj(i)})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...o.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...o.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new H({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new H({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new H({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}H.create=e=>{var t;return new H({checks:[],typeName:s.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...O(e)})};class z extends M{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.number,received:t.parsedType}),E}let i=new A;for(let r of this._def.checks)"int"===r.kind?n.isInteger(e.data)||(C(t=this._getOrReturnCtx(e,t),{code:w.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"multipleOf"===r.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,n=i>r?i:r;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}(e.data,r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:w.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(C(t=this._getOrReturnCtx(e,t),{code:w.not_finite,message:r.message}),i.dirty()):n.assertNever(r);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,i,r){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:o.toString(r)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&n.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}z.create=e=>new z({checks:[],typeName:s.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class F extends M{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==f.bigint){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.bigint,received:t.parsedType}),E}let i=new A;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(C(t=this._getOrReturnCtx(e,t),{code:w.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):n.assertNever(r);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,i,r){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:o.toString(r)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>{var t;return new F({checks:[],typeName:s.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...O(e)})};class Z extends M{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==f.boolean){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.boolean,received:t.parsedType}),E}return k(e.data)}}Z.create=e=>new Z({typeName:s.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class V extends M{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.date,received:t.parsedType}),E}if(isNaN(e.data.getTime()))return C(this._getOrReturnCtx(e),{code:w.invalid_date}),E;let i=new A;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(C(t=this._getOrReturnCtx(e,t),{code:w.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):n.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}V.create=e=>new V({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:s.ZodDate,...O(e)});class K extends M{_parse(e){if(this._getType(e)!==f.symbol){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.symbol,received:t.parsedType}),E}return k(e.data)}}K.create=e=>new K({typeName:s.ZodSymbol,...O(e)});class G extends M{_parse(e){if(this._getType(e)!==f.undefined){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.undefined,received:t.parsedType}),E}return k(e.data)}}G.create=e=>new G({typeName:s.ZodUndefined,...O(e)});class J extends M{_parse(e){if(this._getType(e)!==f.null){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.null,received:t.parsedType}),E}return k(e.data)}}J.create=e=>new J({typeName:s.ZodNull,...O(e)});class Y extends M{constructor(){super(...arguments),this._any=!0}_parse(e){return k(e.data)}}Y.create=e=>new Y({typeName:s.ZodAny,...O(e)});class Q extends M{constructor(){super(...arguments),this._unknown=!0}_parse(e){return k(e.data)}}Q.create=e=>new Q({typeName:s.ZodUnknown,...O(e)});class X extends M{_parse(e){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.never,received:t.parsedType}),E}}X.create=e=>new X({typeName:s.ZodNever,...O(e)});class ee extends M{_parse(e){if(this._getType(e)!==f.undefined){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.void,received:t.parsedType}),E}return k(e.data)}}ee.create=e=>new ee({typeName:s.ZodVoid,...O(e)});class et extends M{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),r=this._def;if(t.parsedType!==f.array)return C(t,{code:w.invalid_type,expected:f.array,received:t.parsedType}),E;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,n=t.data.length<r.exactLength.value;(e||n)&&(C(t,{code:e?w.too_big:w.too_small,minimum:n?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(C(t,{code:w.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(C(t,{code:w.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>r.type._parseAsync(new P(t,e,t.path,i)))).then(e=>A.mergeArray(i,e));let n=[...t.data].map((e,i)=>r.type._parseSync(new P(t,e,t.path,i)));return A.mergeArray(i,n)}get element(){return this._def.type}min(e,t){return new et({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new et({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new et({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}et.create=(e,t)=>new et({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...O(t)});class ei extends M{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=n.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.object,received:t.parsedType}),E}let{status:t,ctx:i}=this._processInputParams(e),{shape:r,keys:n}=this._getCached(),a=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in i.data)n.includes(e)||a.push(e);let o=[];for(let e of n){let t=r[e],n=i.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new P(i,n,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)a.length>0&&(C(i,{code:w.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=i.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new P(i,r,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let i=await t.key;e.push({key:i,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>A.mergeObjectSync(t,e)):A.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{var r,n,a,s;let c=null!==(a=null===(n=(r=this._def).errorMap)||void 0===n?void 0:n.call(r,t,i).message)&&void 0!==a?a:i.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=o.errToObj(e).message)&&void 0!==s?s:c}:{message:c}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};return n.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new ei({...this._def,shape:()=>t})}omit(e){let t={};return n.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let i={};for(let r in t.shape){let n=t.shape[r];i[r]=ev.create(e(n))}return new ei({...t._def,shape:()=>i})}return t instanceof et?new et({...t._def,type:e(t.element)}):t instanceof ev?ev.create(e(t.unwrap())):t instanceof ey?ey.create(e(t.unwrap())):t instanceof es?es.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return n.objectKeys(this.shape).forEach(i=>{let r=this.shape[i];e&&!e[i]?t[i]=r:t[i]=r.optional()}),new ei({...this._def,shape:()=>t})}required(e){let t={};return n.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof ev;)e=e._def.innerType;t[i]=e}}),new ei({...this._def,shape:()=>t})}keyof(){return ef(n.objectKeys(this.shape))}}ei.create=(e,t)=>new ei({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:s.ZodObject,...O(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:s.ZodObject,...O(t)}),ei.lazycreate=(e,t)=>new ei({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:s.ZodObject,...O(t)});class er extends M{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new m(e.ctx.common.issues));return C(t,{code:w.invalid_union,unionErrors:i}),E});{let e;let r=[];for(let n of i){let i={...t,common:{...t.common,issues:[]},parent:null},a=n._parseSync({data:t.data,path:t.path,parent:i});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:i}),i.common.issues.length&&r.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=r.map(e=>new m(e));return C(t,{code:w.invalid_union,unionErrors:n}),E}}get options(){return this._def.options}}er.create=(e,t)=>new er({options:e,typeName:s.ZodUnion,...O(t)});let en=e=>{if(e instanceof eh)return en(e.schema);if(e instanceof eb)return en(e.innerType());if(e instanceof ep)return[e.value];if(e instanceof eg)return e.options;if(e instanceof ew)return Object.keys(e.enum);if(e instanceof ex)return en(e._def.innerType);if(e instanceof G)return[void 0];else if(e instanceof J)return[null];else return null};class ea extends M{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return C(t,{code:w.invalid_type,expected:f.object,received:t.parsedType}),E;let i=this.discriminator,r=t.data[i],n=this.optionsMap.get(r);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(C(t,{code:w.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),E)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let r=new Map;for(let i of t){let t=en(i.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(r.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new ea({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...O(i)})}}class eo extends M{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),r=(e,r)=>{if(I(e)||I(r))return E;let a=function e(t,i){let r=g(t),a=g(i);if(t===i)return{valid:!0,data:t};if(r===f.object&&a===f.object){let r=n.objectKeys(i),a=n.objectKeys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...i};for(let r of a){let n=e(t[r],i[r]);if(!n.valid)return{valid:!1};o[r]=n.data}return{valid:!0,data:o}}if(r===f.array&&a===f.array){if(t.length!==i.length)return{valid:!1};let r=[];for(let n=0;n<t.length;n++){let a=e(t[n],i[n]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===f.date&&a===f.date&&+t==+i?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return a.valid?((S(e)||S(r))&&t.dirty(),{status:t.value,value:a.data}):(C(i,{code:w.invalid_intersection_types}),E)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}eo.create=(e,t,i)=>new eo({left:e,right:t,typeName:s.ZodIntersection,...O(i)});class es extends M{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.array)return C(i,{code:w.invalid_type,expected:f.array,received:i.parsedType}),E;if(i.data.length<this._def.items.length)return C(i,{code:w.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),E;!this._def.rest&&i.data.length>this._def.items.length&&(C(i,{code:w.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...i.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new P(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(r).then(e=>A.mergeArray(t,e)):A.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new es({...this._def,rest:e})}}es.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new es({items:e,typeName:s.ZodTuple,rest:null,...O(t)})};class ec extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.object)return C(i,{code:w.invalid_type,expected:f.object,received:i.parsedType}),E;let r=[],n=this._def.keyType,a=this._def.valueType;for(let e in i.data)r.push({key:n._parse(new P(i,e,i.path,e)),value:a._parse(new P(i,i.data[e],i.path,e))});return i.common.async?A.mergeObjectAsync(t,r):A.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,i){return new ec(t instanceof M?{keyType:e,valueType:t,typeName:s.ZodRecord,...O(i)}:{keyType:H.create(),valueType:e,typeName:s.ZodRecord,...O(t)})}}class el extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.map)return C(i,{code:w.invalid_type,expected:f.map,received:i.parsedType}),E;let r=this._def.keyType,n=this._def.valueType,a=[...i.data.entries()].map(([e,t],a)=>({key:r._parse(new P(i,e,i.path,[a,"key"])),value:n._parse(new P(i,t,i.path,[a,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of a){let r=await i.key,n=await i.value;if("aborted"===r.status||"aborted"===n.status)return E;("dirty"===r.status||"dirty"===n.status)&&t.dirty(),e.set(r.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of a){let r=i.key,n=i.value;if("aborted"===r.status||"aborted"===n.status)return E;("dirty"===r.status||"dirty"===n.status)&&t.dirty(),e.set(r.value,n.value)}return{status:t.value,value:e}}}}el.create=(e,t,i)=>new el({valueType:t,keyType:e,typeName:s.ZodMap,...O(i)});class eu extends M{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==f.set)return C(i,{code:w.invalid_type,expected:f.set,received:i.parsedType}),E;let r=this._def;null!==r.minSize&&i.data.size<r.minSize.value&&(C(i,{code:w.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&i.data.size>r.maxSize.value&&(C(i,{code:w.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let n=this._def.valueType;function a(e){let i=new Set;for(let r of e){if("aborted"===r.status)return E;"dirty"===r.status&&t.dirty(),i.add(r.value)}return{status:t.value,value:i}}let o=[...i.data.values()].map((e,t)=>n._parse(new P(i,e,i.path,t)));return i.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new eu({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new eu({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...O(t)});class ed extends M{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return C(t,{code:w.invalid_type,expected:f.function,received:t.parsedType}),E;function i(e,i){return x({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,y(),b].filter(e=>!!e),issueData:{code:w.invalid_arguments,argumentsError:i}})}function r(e,i){return x({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,y(),b].filter(e=>!!e),issueData:{code:w.invalid_return_type,returnTypeError:i}})}let n={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof em){let e=this;return k(async function(...t){let o=new m([]),s=await e._def.args.parseAsync(t,n).catch(e=>{throw o.addIssue(i(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,n).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return k(function(...t){let o=e._def.args.safeParse(t,n);if(!o.success)throw new m([i(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,n);if(!c.success)throw new m([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ed({...this._def,args:es.create(e).rest(Q.create())})}returns(e){return new ed({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new ed({args:e||es.create([]).rest(Q.create()),returns:t||Q.create(),typeName:s.ZodFunction,...O(i)})}}class eh extends M{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eh.create=(e,t)=>new eh({getter:e,typeName:s.ZodLazy,...O(t)});class ep extends M{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return C(t,{received:t.data,code:w.invalid_literal,expected:this._def.value}),E}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new eg({values:e,typeName:s.ZodEnum,...O(t)})}ep.create=(e,t)=>new ep({value:e,typeName:s.ZodLiteral,...O(t)});class eg extends M{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return C(t,{expected:n.joinValues(i),received:t.parsedType,code:w.invalid_type}),E}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return C(t,{received:t.data,code:w.invalid_enum_value,options:i}),E}return k(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return eg.create(e)}exclude(e){return eg.create(this.options.filter(t=>!e.includes(t)))}}eg.create=ef;class ew extends M{_parse(e){let t=n.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==f.string&&i.parsedType!==f.number){let e=n.objectValues(t);return C(i,{expected:n.joinValues(e),received:i.parsedType,code:w.invalid_type}),E}if(-1===t.indexOf(e.data)){let e=n.objectValues(t);return C(i,{received:i.data,code:w.invalid_enum_value,options:e}),E}return k(e.data)}get enum(){return this._def.values}}ew.create=(e,t)=>new ew({values:e,typeName:s.ZodNativeEnum,...O(t)});class em extends M{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==f.promise&&!1===t.common.async?(C(t,{code:w.invalid_type,expected:f.promise,received:t.parsedType}),E):k((t.parsedType===f.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:s.ZodPromise,...O(t)});class eb extends M{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{C(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){let e=r.transform(i.data,a);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:i.path,parent:i})):this._def.schema._parseSync({data:e,path:i.path,parent:i})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,a);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?E:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===r.status?E:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>T(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!T(e))return e;let n=r.transform(e.value,a);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}}n.assertNever(r)}}eb.create=(e,t,i)=>new eb({schema:e,typeName:s.ZodEffects,effect:t,...O(i)}),eb.createWithPreprocess=(e,t,i)=>new eb({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...O(i)});class ev extends M{_parse(e){return this._getType(e)===f.undefined?k(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:s.ZodOptional,...O(t)});class ey extends M{_parse(e){return this._getType(e)===f.null?k(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:s.ZodNullable,...O(t)});class ex extends M{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===f.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class eC extends M{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return N(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new m(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new m(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class eA extends M{_parse(e){if(this._getType(e)!==f.nan){let t=this._getOrReturnCtx(e);return C(t,{code:w.invalid_type,expected:f.nan,received:t.parsedType}),E}return{status:"valid",value:e.data}}}eA.create=e=>new eA({typeName:s.ZodNaN,...O(e)});let eE=Symbol("zod_brand");class e_ extends M{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class ek extends M{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?E:"dirty"===e.status?(t.dirty(),_(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?E:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new ek({in:e,out:t,typeName:s.ZodPipeline})}}class eI extends M{_parse(e){let t=this._def.innerType._parse(e);return T(t)&&(t.value=Object.freeze(t.value)),t}}eI.create=(e,t)=>new eI({innerType:e,typeName:s.ZodReadonly,...O(t)});let eS=(e,t={},i)=>e?Y.create().superRefine((r,n)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:i)||void 0===o||o,c="string"==typeof e?{message:e}:e;n.addIssue({code:"custom",...c,fatal:s})}}):Y.create(),eT={object:ei.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(s||(s={}));let eN=H.create,eP=z.create,eR=eA.create,eO=F.create,eM=Z.create,eD=V.create,eU=K.create,e$=G.create,eL=J.create,ej=Y.create,eB=Q.create,eW=X.create,eq=ee.create,eH=et.create,ez=ei.create,eF=ei.strictCreate,eZ=er.create,eV=ea.create,eK=eo.create,eG=es.create,eJ=ec.create,eY=el.create,eQ=eu.create,eX=ed.create,e0=eh.create,e1=ep.create,e2=eg.create,e3=ew.create,e5=em.create,e4=eb.create,e6=ev.create,e8=ey.create,e9=eb.createWithPreprocess,e7=ek.create;var te=Object.freeze({__proto__:null,defaultErrorMap:b,setErrorMap:function(e){v=e},getErrorMap:y,makeIssue:x,EMPTY_PATH:[],addIssueToContext:C,ParseStatus:A,INVALID:E,DIRTY:_,OK:k,isAborted:I,isDirty:S,isValid:T,isAsync:N,get util(){return n},get objectUtil(){return a},ZodParsedType:f,getParsedType:g,ZodType:M,ZodString:H,ZodNumber:z,ZodBigInt:F,ZodBoolean:Z,ZodDate:V,ZodSymbol:K,ZodUndefined:G,ZodNull:J,ZodAny:Y,ZodUnknown:Q,ZodNever:X,ZodVoid:ee,ZodArray:et,ZodObject:ei,ZodUnion:er,ZodDiscriminatedUnion:ea,ZodIntersection:eo,ZodTuple:es,ZodRecord:ec,ZodMap:el,ZodSet:eu,ZodFunction:ed,ZodLazy:eh,ZodLiteral:ep,ZodEnum:eg,ZodNativeEnum:ew,ZodPromise:em,ZodEffects:eb,ZodTransformer:eb,ZodOptional:ev,ZodNullable:ey,ZodDefault:ex,ZodCatch:eC,ZodNaN:eA,BRAND:eE,ZodBranded:e_,ZodPipeline:ek,ZodReadonly:eI,custom:eS,Schema:M,ZodSchema:M,late:eT,get ZodFirstPartyTypeKind(){return s},coerce:{string:e=>H.create({...e,coerce:!0}),number:e=>z.create({...e,coerce:!0}),boolean:e=>Z.create({...e,coerce:!0}),bigint:e=>F.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})},any:ej,array:eH,bigint:eO,boolean:eM,date:eD,discriminatedUnion:eV,effect:e4,enum:e2,function:eX,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eS(t=>t instanceof e,t),intersection:eK,lazy:e0,literal:e1,map:eY,nan:eR,nativeEnum:e3,never:eW,null:eL,nullable:e8,number:eP,object:ez,oboolean:()=>eM().optional(),onumber:()=>eP().optional(),optional:e6,ostring:()=>eN().optional(),pipeline:e7,preprocess:e9,promise:e5,record:eJ,set:eQ,strictObject:eF,string:eN,symbol:eU,transformer:e4,tuple:eG,undefined:e$,union:eZ,unknown:eB,void:eq,NEVER:E,ZodIssueCode:w,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:m});let tt=te.object({message:te.string()});function ti(e){return te.literal(h[e])}te.object({accessList:te.array(te.string()),blockHash:te.string().nullable(),blockNumber:te.string().nullable(),chainId:te.string().or(te.number()),from:te.string(),gas:te.string(),hash:te.string(),input:te.string().nullable(),maxFeePerGas:te.string(),maxPriorityFeePerGas:te.string(),nonce:te.string(),r:te.string(),s:te.string(),to:te.string(),transactionIndex:te.string().nullable(),type:te.string(),v:te.string(),value:te.string()});let tr=te.object({chainId:te.string().or(te.number())}),tn=te.object({email:te.string().email()}),ta=te.object({otp:te.string()}),to=te.object({uri:te.string()}),ts=te.object({chainId:te.optional(te.string().or(te.number())),preferredAccountType:te.optional(te.string())}),tc=te.object({provider:te.enum(["google","github","apple","facebook","x","discord"])}),tl=te.object({email:te.string().email()}),tu=te.object({otp:te.string()}),td=te.object({otp:te.string()}),th=te.object({themeMode:te.optional(te.enum(["light","dark"])),themeVariables:te.optional(te.record(te.string(),te.string().or(te.number()))),w3mThemeVariables:te.optional(te.record(te.string(),te.string()))}),tp=te.object({metadata:te.object({name:te.string(),description:te.string(),url:te.string(),icons:te.array(te.string())}).optional(),sdkVersion:te.string().optional(),sdkType:te.string().optional(),projectId:te.string()}),tf=te.object({type:te.string()}),tg=te.object({action:te.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),tw=te.object({url:te.string()}),tm=te.object({userName:te.string()}),tb=te.object({email:te.string(),address:te.string(),chainId:te.string().or(te.number()),accounts:te.array(te.object({address:te.string(),type:te.enum([p.ACCOUNT_TYPES.EOA,p.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),userName:te.string().optional()}),tv=te.object({action:te.enum(["VERIFY_PRIMARY_OTP","VERIFY_SECONDARY_OTP"])}),ty=te.object({email:te.string().email().optional().nullable(),address:te.string(),chainId:te.string().or(te.number()),smartAccountDeployed:te.optional(te.boolean()),accounts:te.array(te.object({address:te.string(),type:te.enum([p.ACCOUNT_TYPES.EOA,p.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),preferredAccountType:te.optional(te.string())}),tx=te.object({uri:te.string()}),tC=te.object({isConnected:te.boolean()}),tA=te.object({chainId:te.string().or(te.number())}),tE=te.object({chainId:te.string().or(te.number())}),t_=te.object({newEmail:te.string().email()}),tk=te.object({smartAccountEnabledNetworks:te.array(te.number())});te.object({address:te.string(),isDeployed:te.boolean()});let tI=te.object({version:te.string().optional()}),tS=te.object({type:te.string(),address:te.string()}),tT=te.any(),tN=te.object({method:te.literal("eth_accounts")}),tP=te.object({method:te.literal("eth_blockNumber")}),tR=te.object({method:te.literal("eth_call"),params:te.array(te.any())}),tO=te.object({method:te.literal("eth_chainId")}),tM=te.object({method:te.literal("eth_estimateGas"),params:te.array(te.any())}),tD=te.object({method:te.literal("eth_feeHistory"),params:te.array(te.any())}),tU=te.object({method:te.literal("eth_gasPrice")}),t$=te.object({method:te.literal("eth_getAccount"),params:te.array(te.any())}),tL=te.object({method:te.literal("eth_getBalance"),params:te.array(te.any())}),tj=te.object({method:te.literal("eth_getBlockByHash"),params:te.array(te.any())}),tB=te.object({method:te.literal("eth_getBlockByNumber"),params:te.array(te.any())}),tW=te.object({method:te.literal("eth_getBlockReceipts"),params:te.array(te.any())}),tq=te.object({method:te.literal("eth_getBlockTransactionCountByHash"),params:te.array(te.any())}),tH=te.object({method:te.literal("eth_getBlockTransactionCountByNumber"),params:te.array(te.any())}),tz=te.object({method:te.literal("eth_getCode"),params:te.array(te.any())}),tF=te.object({method:te.literal("eth_getFilterChanges"),params:te.array(te.any())}),tZ=te.object({method:te.literal("eth_getFilterLogs"),params:te.array(te.any())}),tV=te.object({method:te.literal("eth_getLogs"),params:te.array(te.any())}),tK=te.object({method:te.literal("eth_getProof"),params:te.array(te.any())}),tG=te.object({method:te.literal("eth_getStorageAt"),params:te.array(te.any())}),tJ=te.object({method:te.literal("eth_getTransactionByBlockHashAndIndex"),params:te.array(te.any())}),tY=te.object({method:te.literal("eth_getTransactionByBlockNumberAndIndex"),params:te.array(te.any())}),tQ=te.object({method:te.literal("eth_getTransactionByHash"),params:te.array(te.any())}),tX=te.object({method:te.literal("eth_getTransactionCount"),params:te.array(te.any())}),t0=te.object({method:te.literal("eth_getTransactionReceipt"),params:te.array(te.any())}),t1=te.object({method:te.literal("eth_getUncleCountByBlockHash"),params:te.array(te.any())}),t2=te.object({method:te.literal("eth_getUncleCountByBlockNumber"),params:te.array(te.any())}),t3=te.object({method:te.literal("eth_maxPriorityFeePerGas")}),t5=te.object({method:te.literal("eth_newBlockFilter")}),t4=te.object({method:te.literal("eth_newFilter"),params:te.array(te.any())}),t6=te.object({method:te.literal("eth_newPendingTransactionFilter")}),t8=te.object({method:te.literal("eth_sendRawTransaction"),params:te.array(te.any())}),t9=te.object({method:te.literal("eth_syncing"),params:te.array(te.any())}),t7=te.object({method:te.literal("eth_uninstallFilter"),params:te.array(te.any())}),ie=te.object({method:te.literal("personal_sign"),params:te.array(te.any())}),it=te.object({method:te.literal("eth_signTypedData_v4"),params:te.array(te.any())}),ii=te.object({method:te.literal("eth_sendTransaction"),params:te.array(te.any())}),ir=te.object({method:te.literal("solana_signMessage"),params:te.object({message:te.string(),pubkey:te.string()})}),ia=te.object({method:te.literal("solana_signTransaction"),params:te.object({transaction:te.string()})}),io=te.object({method:te.literal("solana_signAllTransactions"),params:te.object({transactions:te.array(te.string())})}),is=te.object({method:te.literal("solana_signAndSendTransaction"),params:te.object({transaction:te.string(),options:te.object({skipPreflight:te.boolean().optional(),preflightCommitment:te.enum(["processed","confirmed","finalized","recent","single","singleGossip","root","max"]).optional(),maxRetries:te.number().optional(),minContextSlot:te.number().optional()}).optional()})}),ic=te.object({method:te.literal("wallet_sendCalls"),params:te.array(te.object({chainId:te.string().or(te.number()).optional(),from:te.string().optional(),version:te.string().optional(),capabilities:te.any().optional(),calls:te.array(te.object({to:te.string().startsWith("0x"),data:te.string().startsWith("0x").optional(),value:te.string().optional()}))}))}),il=te.object({method:te.literal("wallet_getCallsStatus"),params:te.array(te.string())}),iu=te.object({method:te.literal("wallet_getCapabilities")}),id=te.object({method:te.literal("wallet_grantPermissions"),params:te.array(te.any())}),ih=te.object({method:te.literal("wallet_revokePermissions"),params:te.any()}),ip=te.object({token:te.string()}),ig=te.object({id:te.string().optional()}),iw={appEvent:ig.extend({type:ti("APP_SWITCH_NETWORK"),payload:tr}).or(ig.extend({type:ti("APP_CONNECT_EMAIL"),payload:tn})).or(ig.extend({type:ti("APP_CONNECT_DEVICE")})).or(ig.extend({type:ti("APP_CONNECT_OTP"),payload:ta})).or(ig.extend({type:ti("APP_CONNECT_SOCIAL"),payload:to})).or(ig.extend({type:ti("APP_GET_FARCASTER_URI")})).or(ig.extend({type:ti("APP_CONNECT_FARCASTER")})).or(ig.extend({type:ti("APP_GET_USER"),payload:te.optional(ts)})).or(ig.extend({type:ti("APP_GET_SOCIAL_REDIRECT_URI"),payload:tc})).or(ig.extend({type:ti("APP_SIGN_OUT")})).or(ig.extend({type:ti("APP_IS_CONNECTED"),payload:te.optional(ip)})).or(ig.extend({type:ti("APP_GET_CHAIN_ID")})).or(ig.extend({type:ti("APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS")})).or(ig.extend({type:ti("APP_INIT_SMART_ACCOUNT")})).or(ig.extend({type:ti("APP_SET_PREFERRED_ACCOUNT"),payload:tf})).or(ig.extend({type:ti("APP_RPC_REQUEST"),payload:ie.or(ii).or(tN).or(tP).or(tR).or(tO).or(tM).or(tD).or(tU).or(t$).or(tL).or(tj).or(tB).or(tW).or(tq).or(tH).or(tz).or(tF).or(tZ).or(tV).or(tK).or(tG).or(tJ).or(tY).or(tQ).or(tX).or(t0).or(t1).or(t2).or(t3).or(t5).or(t4).or(t6).or(t8).or(t9).or(t7).or(ie).or(it).or(ii).or(ir).or(ia).or(io).or(is).or(il).or(ic).or(iu).or(id).or(ih)})).or(ig.extend({type:ti("APP_UPDATE_EMAIL"),payload:tl})).or(ig.extend({type:ti("APP_UPDATE_EMAIL_PRIMARY_OTP"),payload:tu})).or(ig.extend({type:ti("APP_UPDATE_EMAIL_SECONDARY_OTP"),payload:td})).or(ig.extend({type:ti("APP_SYNC_THEME"),payload:th})).or(ig.extend({type:ti("APP_SYNC_DAPP_DATA"),payload:tp})),frameEvent:ig.extend({type:ti("FRAME_SWITCH_NETWORK_ERROR"),payload:tt}).or(ig.extend({type:ti("FRAME_SWITCH_NETWORK_SUCCESS"),payload:tE})).or(ig.extend({type:ti("FRAME_CONNECT_EMAIL_SUCCESS"),payload:tg})).or(ig.extend({type:ti("FRAME_CONNECT_EMAIL_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_GET_FARCASTER_URI_SUCCESS"),payload:tw})).or(ig.extend({type:ti("FRAME_GET_FARCASTER_URI_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_CONNECT_FARCASTER_SUCCESS"),payload:tm})).or(ig.extend({type:ti("FRAME_CONNECT_FARCASTER_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_CONNECT_OTP_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_CONNECT_OTP_SUCCESS")})).or(ig.extend({type:ti("FRAME_CONNECT_DEVICE_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_CONNECT_DEVICE_SUCCESS")})).or(ig.extend({type:ti("FRAME_CONNECT_SOCIAL_SUCCESS"),payload:tb})).or(ig.extend({type:ti("FRAME_CONNECT_SOCIAL_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_GET_USER_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_GET_USER_SUCCESS"),payload:ty})).or(ig.extend({type:ti("FRAME_GET_SOCIAL_REDIRECT_URI_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS"),payload:tx})).or(ig.extend({type:ti("FRAME_SIGN_OUT_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_SIGN_OUT_SUCCESS")})).or(ig.extend({type:ti("FRAME_IS_CONNECTED_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_IS_CONNECTED_SUCCESS"),payload:tC})).or(ig.extend({type:ti("FRAME_GET_CHAIN_ID_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_GET_CHAIN_ID_SUCCESS"),payload:tA})).or(ig.extend({type:ti("FRAME_RPC_REQUEST_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_RPC_REQUEST_SUCCESS"),payload:tT})).or(ig.extend({type:ti("FRAME_SESSION_UPDATE"),payload:ip})).or(ig.extend({type:ti("FRAME_UPDATE_EMAIL_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_UPDATE_EMAIL_SUCCESS"),payload:tv})).or(ig.extend({type:ti("FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS")})).or(ig.extend({type:ti("FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS"),payload:t_})).or(ig.extend({type:ti("FRAME_SYNC_THEME_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_SYNC_THEME_SUCCESS")})).or(ig.extend({type:ti("FRAME_SYNC_DAPP_DATA_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_SYNC_DAPP_DATA_SUCCESS")})).or(ig.extend({type:ti("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS"),payload:tk})).or(ig.extend({type:ti("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_INIT_SMART_ACCOUNT_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_SET_PREFERRED_ACCOUNT_SUCCESS"),payload:tS})).or(ig.extend({type:ti("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),payload:tt})).or(ig.extend({type:ti("FRAME_READY"),payload:tI}))},im={set(e,t){iv.isClient&&localStorage.setItem(`${h.STORAGE_KEY}${e}`,t)},get:e=>iv.isClient?localStorage.getItem(`${h.STORAGE_KEY}${e}`):null,delete(e,t){iv.isClient&&(t?localStorage.removeItem(e):localStorage.removeItem(`${h.STORAGE_KEY}${e}`))}},ib={transactionHash:/^0x(?:[A-Fa-f0-9]{64})$/u,signedMessage:/^0x(?:[a-fA-F0-9]{62,})$/u},iv={checkIfAllowedToTriggerEmail(){let e=im.get(h.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<3e4){let e=Math.ceil((3e4-t)/1e3);throw Error(`Please try again after ${e} seconds`)}}},getTimeToNextEmailLogin(){let e=im.get(h.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<3e4)return Math.ceil((3e4-t)/1e3)}return 0},checkIfRequestExists:e=>p.NOT_SAFE_RPC_METHODS.includes(e.method)||p.SAFE_RPC_METHODS.includes(e.method),getResponseType:e=>"string"==typeof e&&(e?.match(ib.transactionHash)||e?.match(ib.signedMessage))?h.RPC_RESPONSE_TYPE_TX:h.RPC_RESPONSE_TYPE_OBJECT,checkIfRequestIsSafe:e=>p.SAFE_RPC_METHODS.includes(e.method),isClient:"undefined"!=typeof window};var iy=i(21420),ix=i(37583),iC=i(39346),iA=i(14488);iy.extend(iC),iy.extend(iA);let iE={...ix,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}};iy.locale("en-web3-modal",iE),i(66499);let i_={BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org"};class ik{constructor(e,t=!1,i="eip155:1"){if(this.iframe=null,this.rpcUrl=i_.BLOCKCHAIN_API_RPC_URL,this.initFrame=()=>{let e=document.getElementById("w3m-iframe");this.iframe&&!e&&document.body.appendChild(this.iframe)},this.events={registerFrameEventHandler:(e,t,i)=>{function r({data:i}){if("string"!=typeof i.type||!i.type.includes(h.FRAME_EVENT_KEY))return;let n=iw.frameEvent.parse(i);n.id===e&&(t(n),window.removeEventListener("message",r))}iv.isClient&&(window.addEventListener("message",r),i.addEventListener("abort",()=>{window.removeEventListener("message",r)}))},onFrameEvent:e=>{iv.isClient&&window.addEventListener("message",({data:t})=>{"string"==typeof t.type&&t.type.includes(h.FRAME_EVENT_KEY)&&e(iw.frameEvent.parse(t))})},onAppEvent:e=>{iv.isClient&&window.addEventListener("message",({data:t})=>{"string"==typeof t.type&&t.type.includes(h.APP_EVENT_KEY)&&e(iw.appEvent.parse(t))})},postAppEvent:e=>{if(iv.isClient){if(!this.iframe?.contentWindow)throw Error("W3mFrame: iframe is not set");iw.appEvent.parse(e),this.iframe.contentWindow.postMessage(e,"*")}},postFrameEvent:e=>{if(iv.isClient){if(!parent)throw Error("W3mFrame: parent is not set");iw.frameEvent.parse(e),parent.postMessage(e,"*")}}},this.projectId=e,this.frameLoadPromise=new Promise((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}}),t&&(this.frameLoadPromise=new Promise((e,t)=>{this.frameLoadPromiseResolver={resolve:e,reject:t}}),iv.isClient)){let t=document.createElement("iframe");t.id="w3m-iframe",t.src=`${l}?projectId=${e}&chainId=${i}&version=${d}`,t.name="w3m-secure-iframe",t.style.position="fixed",t.style.zIndex="999999",t.style.display="none",t.style.animationDelay="0s, 50ms",t.style.borderBottomLeftRadius="clamp(0px, var(--wui-border-radius-l), 44px)",t.style.borderBottomRightRadius="clamp(0px, var(--wui-border-radius-l), 44px)",this.iframe=t,this.iframe.onerror=()=>{this.frameLoadPromiseResolver?.reject("Unable to load email login dependency")},this.events.onFrameEvent(e=>{"@w3m-frame/READY"===e.type&&this.frameLoadPromiseResolver?.resolve(void 0)})}}get networks(){return Object.assign({},...["eip155:1","eip155:5","eip155:11155111","eip155:10","eip155:420","eip155:42161","eip155:421613","eip155:137","eip155:80001","eip155:42220","eip155:1313161554","eip155:1313161555","eip155:56","eip155:97","eip155:43114","eip155:43113","eip155:324","eip155:280","eip155:100","eip155:8453","eip155:84531","eip155:84532","eip155:7777777","eip155:999","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"].map(e=>({[e]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=${e}&projectId=${this.projectId}`,chainId:e}})))}}var iI=i(52027);class iS{constructor(e){let t=(0,iI.iP)({level:u}),{logger:i,chunkLoggerController:r}=(0,iI.D5)({opts:t});this.logger=(0,iI.U5)(i,this.constructor.name),this.chunkLoggerController=r,"undefined"!=typeof window&&this.chunkLoggerController?.downloadLogsBlobInBrowser&&(window.downloadAppKitLogsBlob||(window.downloadAppKitLogsBlob={}),window.downloadAppKitLogsBlob.sdk=()=>{this.chunkLoggerController?.downloadLogsBlobInBrowser&&this.chunkLoggerController.downloadLogsBlobInBrowser({projectId:e})})}}class iT{constructor({projectId:e,chainId:t,onTimeout:i}){this.openRpcRequests=[],this.w3mLogger=new iS(e),this.w3mFrame=new ik(e,!0,t),this.onTimeout=i,this.getLoginEmailUsed()&&this.w3mFrame.initFrame()}getLoginEmailUsed(){return!!im.get(h.EMAIL_LOGIN_USED_KEY)}getEmail(){return im.get(h.EMAIL)}async connectEmail(e){try{iv.checkIfAllowedToTriggerEmail(),this.w3mFrame.initFrame();let t=await this.appEvent({type:h.APP_CONNECT_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting email"),e}}async connectDevice(){try{return this.appEvent({type:h.APP_CONNECT_DEVICE})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting device"),e}}async connectOtp(e){try{return this.appEvent({type:h.APP_CONNECT_OTP,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting otp"),e}}async isConnected(){try{let e=await this.appEvent({type:h.APP_IS_CONNECTED});return e.isConnected||this.deleteAuthLoginCache(),e}catch(e){throw this.deleteAuthLoginCache(),this.w3mLogger.logger.error({error:e},"Error checking connection"),e}}async getChainId(){try{let e=await this.appEvent({type:h.APP_GET_CHAIN_ID});return this.setLastUsedChainId(e.chainId),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting chain id"),e}}async getSocialRedirectUri(e){try{return this.w3mFrame.initFrame(),this.appEvent({type:h.APP_GET_SOCIAL_REDIRECT_URI,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting social redirect uri"),e}}async updateEmail(e){try{let t=await this.appEvent({type:h.APP_UPDATE_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email"),e}}async updateEmailPrimaryOtp(e){try{return this.appEvent({type:h.APP_UPDATE_EMAIL_PRIMARY_OTP,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email primary otp"),e}}async updateEmailSecondaryOtp(e){try{let t=await this.appEvent({type:h.APP_UPDATE_EMAIL_SECONDARY_OTP,payload:e});return this.setLoginSuccess(t.newEmail),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email secondary otp"),e}}async syncTheme(e){try{return this.appEvent({type:h.APP_SYNC_THEME,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error syncing theme"),e}}async syncDappData(e){try{return this.appEvent({type:h.APP_SYNC_DAPP_DATA,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error syncing dapp data"),e}}async getSmartAccountEnabledNetworks(){try{let e=await this.appEvent({type:h.APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS});return this.persistSmartAccountEnabledNetworks(e.smartAccountEnabledNetworks),e}catch(e){throw this.persistSmartAccountEnabledNetworks([]),this.w3mLogger.logger.error({error:e},"Error getting smart account enabled networks"),e}}async setPreferredAccount(e){try{return this.appEvent({type:h.APP_SET_PREFERRED_ACCOUNT,payload:{type:e}})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error setting preferred account"),e}}async connect(e){try{let t=e?.chainId||this.getLastUsedChainId()||1,i=await this.appEvent({type:h.APP_GET_USER,payload:{...e,chainId:t}});return this.setLoginSuccess(i.email),this.setLastUsedChainId(i.chainId),i}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting"),e}}async getUser(e){try{let t=e?.chainId||this.getLastUsedChainId()||1;return await this.appEvent({type:h.APP_GET_USER,payload:{...e,chainId:t}})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting"),e}}async connectSocial(e){try{let t=await this.appEvent({type:h.APP_CONNECT_SOCIAL,payload:{uri:e}});return t.userName&&this.setSocialLoginSuccess(t.userName),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting social"),e}}async getFarcasterUri(){try{return this.w3mFrame.initFrame(),await this.appEvent({type:h.APP_GET_FARCASTER_URI})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting farcaster uri"),e}}async connectFarcaster(){try{let e=await this.appEvent({type:h.APP_CONNECT_FARCASTER});return e.userName&&this.setSocialLoginSuccess(e.userName),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting farcaster"),e}}async switchNetwork(e){try{let t=await this.appEvent({type:h.APP_SWITCH_NETWORK,payload:{chainId:e}});return this.setLastUsedChainId(t.chainId),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error switching network"),e}}async disconnect(){try{let e=await this.appEvent({type:h.APP_SIGN_OUT});return this.deleteAuthLoginCache(),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error disconnecting"),e}}async request(e){try{if(p.GET_CHAIN_ID===e.method)return this.getLastUsedChainId();this.rpcRequestHandler?.(e);let t=await this.appEvent({type:h.APP_RPC_REQUEST,payload:e});return this.rpcSuccessHandler?.(t,e),t}catch(t){throw this.rpcErrorHandler?.(t,e),this.w3mLogger.logger.error({error:t},"Error requesting"),t}}onRpcRequest(e){this.rpcRequestHandler=e}onRpcSuccess(e){this.rpcSuccessHandler=e}onRpcError(e){this.rpcErrorHandler=e}onIsConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===h.FRAME_IS_CONNECTED_SUCCESS&&t.payload.isConnected&&e()})}onNotConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===h.FRAME_IS_CONNECTED_ERROR&&e(),t.type!==h.FRAME_IS_CONNECTED_SUCCESS||t.payload.isConnected||e()})}onConnect(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===h.FRAME_GET_USER_SUCCESS&&e(t.payload)})}async getCapabilities(){try{return await this.request({method:"wallet_getCapabilities"})||{}}catch{return{}}}onSetPreferredAccount(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===h.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS?e(t.payload):t.type===h.FRAME_SET_PREFERRED_ACCOUNT_ERROR&&e({type:p.ACCOUNT_TYPES.EOA})})}onGetSmartAccountEnabledNetworks(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===h.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS?e(t.payload.smartAccountEnabledNetworks):t.type===h.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR&&e([])})}getAvailableChainIds(){return Object.keys(this.w3mFrame.networks)}rejectRpcRequests(){try{this.openRpcRequests.forEach(({abortController:e,method:t})=>{p.SAFE_RPC_METHODS.includes(t)||e.abort()}),this.openRpcRequests=[]}catch(e){this.w3mLogger.logger.error({error:e},"Error aborting RPC request")}}async appEvent(e){let t;function i(e){return e.replace("@w3m-app/","")}await this.w3mFrame.frameLoadPromise;let r=new AbortController,n=i(e.type);return[h.APP_CONNECT_EMAIL,h.APP_CONNECT_DEVICE,h.APP_CONNECT_OTP,h.APP_CONNECT_SOCIAL,h.APP_GET_SOCIAL_REDIRECT_URI,h.APP_GET_FARCASTER_URI].map(i).includes(n)&&(t=setTimeout(()=>{this.onTimeout?.(),r.abort()},3e4)),new Promise((i,a)=>{let o=Math.random().toString(36).substring(7);this.w3mLogger.logger.info?.({event:e,id:o},"Sending app event"),this.w3mFrame.events.postAppEvent({...e,id:o}),"RPC_REQUEST"===n&&(this.openRpcRequests=[...this.openRpcRequests,{...e.payload,abortController:r}]),r.signal.addEventListener("abort",()=>{"RPC_REQUEST"===n?a(Error("Request was aborted")):a(Error("Something went wrong"))}),this.w3mFrame.events.registerFrameEventHandler(o,e=>{var r;return r=this.w3mLogger,void(e.id===o&&(r.logger.info?.({framEvent:e,id:o},"Received frame response"),e.type===`@w3m-frame/${n}_SUCCESS`?(t&&clearTimeout(t),"payload"in e&&i(e.payload),i(void 0)):e.type===`@w3m-frame/${n}_ERROR`&&(t&&clearTimeout(t),"payload"in e&&a(Error(e.payload?.message||"An error occurred")),a(Error("An error occurred")))))},r.signal)})}setNewLastEmailLoginTime(){im.set(h.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setSocialLoginSuccess(e){im.set(h.SOCIAL_USERNAME,e)}setLoginSuccess(e){e&&im.set(h.EMAIL,e),im.set(h.EMAIL_LOGIN_USED_KEY,"true"),im.delete(h.LAST_EMAIL_LOGIN_TIME)}deleteAuthLoginCache(){im.delete(h.EMAIL_LOGIN_USED_KEY),im.delete(h.EMAIL),im.delete(h.LAST_USED_CHAIN_KEY),im.delete(h.SOCIAL_USERNAME)}setLastUsedChainId(e){e&&im.set(h.LAST_USED_CHAIN_KEY,String(e))}getLastUsedChainId(){return Number(im.get(h.LAST_USED_CHAIN_KEY))}persistSmartAccountEnabledNetworks(e){im.set(h.SMART_ACCOUNT_ENABLED_NETWORKS,e.join(","))}}},49440:(e,t,i)=>{"use strict";i.d(t,{D8t:()=>r.D8t,Gby:()=>r.Gby,rCZ:()=>r.rCZ});var r=i(93113)},24598:(e,t,i)=>{"use strict";let r,n;i.d(t,{sX:()=>c,JS:()=>o});var a=i(81696);function o(){if(!r)throw Error('Please call "createAppKit" before using "useAppKit" hook');return{open:async function(e){await r?.open(e)},close:async function(){await r?.close()}}}i(57749),i(10491),i(73322),i(12344),i(94984),i(35335);var s=i(80196);function c(e){return!n&&(r=n=new a._({...e,sdkVersion:s.wE.generateSdkVersion(e.adapters??[],"react","1.5.3")})),n}i(64810),i(58051)},21552:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});var r=i(50639),n=i(80196),a=i(60402),o=i(2614);class s{constructor(e){this.availableConnectors=[],this.eventListeners=new Map,e&&this.construct(e)}construct(e){this.caipNetworks=e.networks,this.projectId=e.projectId,this.namespace=e.namespace}get connectors(){return this.availableConnectors}get networks(){return this.caipNetworks||[]}setUniversalProvider(e){this.addConnector({id:a.oU.WALLET_CONNECT_CONNECTOR_ID,type:"WALLET_CONNECT",name:a.L_.ConnectorNamesMap[a.oU.WALLET_CONNECT_CONNECTOR_ID],provider:e,imageId:a.L_.ConnectorImageIds[a.oU.WALLET_CONNECT_CONNECTOR_ID],chain:this.namespace,chains:[]})}setAuthProvider(e){this.addConnector({id:a.oU.AUTH_CONNECTOR_ID,type:"AUTH",name:"Auth",provider:e,imageId:a.L_.ConnectorImageIds[a.oU.AUTH_CONNECTOR_ID],chain:this.namespace,chains:[]})}addConnector(...e){if(e.some(e=>"ID_AUTH"===e.id)){let t=e.find(e=>"ID_AUTH"===e.id),i=(0,o.P9)(n.Hd.state),a=n.Wn.getSnapshot().themeMode,s=n.Wn.getSnapshot().themeVariables;t?.provider?.syncDappData?.({metadata:i.metadata,sdkVersion:i.sdkVersion,projectId:i.projectId,sdkType:i.sdkType}),t.provider.syncTheme({themeMode:a,themeVariables:s,w3mThemeVariables:(0,r.o_)(s,a)})}let t=new Set;this.availableConnectors=[...e,...this.availableConnectors].filter(e=>!t.has(e.id)&&(t.add(e.id),!0))}setStatus(e,t){n.Uj.setStatus(e,t)}on(e,t){this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e)?.add(t)}off(e,t){let i=this.eventListeners.get(e);i&&i.delete(t)}emit(e,t){let i=this.eventListeners.get(e);i&&i.forEach(e=>e(t))}}},71139:(e,t,i)=>{"use strict";i.d(t,{v:()=>n});var r=i(45011);class n{constructor(){}static getInstance({projectId:e,chainId:t,onTimeout:i}){return n.instance||(n.instance=new r.YW({projectId:e,chainId:t,onTimeout:i})),n.instance}}},81696:(e,t,i)=>{"use strict";i.d(t,{_:()=>v});var r=i(80196),n=i(57068),a=i(50639),o=i(21552),s=i(58051);let c=function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let i=0;i<e.length;i++){let r=e.charAt(i),n=r.charCodeAt(0);if(255!==t[n])throw TypeError(r+" is ambiguous");t[n]=i}let i=e.length,r=e.charAt(0),n=Math.log(i)/Math.log(256),a=Math.log(256)/Math.log(i);function o(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;let a=0,o=0,s=0;for(;e[a]===r;)o++,a++;let c=(e.length-a)*n+1>>>0,l=new Uint8Array(c);for(;e[a];){let r=t[e.charCodeAt(a)];if(255===r)return;let n=0;for(let e=c-1;(0!==r||n<s)&&-1!==e;e--,n++)r+=i*l[e]>>>0,l[e]=r%256>>>0,r=r/256>>>0;if(0!==r)throw Error("Non-zero carry");s=n,a++}let u=c-s;for(;u!==c&&0===l[u];)u++;let d=new Uint8Array(o+(c-u)),h=o;for(;u!==c;)d[h++]=l[u++];return d}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";let n=0,o=0,s=0,c=t.length;for(;s!==c&&0===t[s];)s++,n++;let l=(c-s)*a+1>>>0,u=new Uint8Array(l);for(;s!==c;){let e=t[s],r=0;for(let t=l-1;(0!==e||r<o)&&-1!==t;t--,r++)e+=256*u[t]>>>0,u[t]=e%i>>>0,e=e/i>>>0;if(0!==e)throw Error("Non-zero carry");o=r,s++}let d=l-o;for(;d!==l&&0===u[d];)d++;let h=r.repeat(n);for(;d<l;++d)h+=e.charAt(u[d]);return h},decodeUnsafe:o,decode:function(e){let t=o(e);if(t)return t;throw Error("Non-base"+i+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");class l extends o.X{async connectWalletConnect(e){let t=this.connectors.find(e=>"WALLET_CONNECT"===e.type),i=t?.provider;if(!this.caipNetworks||!i)throw Error("UniversalAdapter:connectWalletConnect - caipNetworks or provider is undefined");i.on("display_uri",t=>{e(t)});let r=s.k.createNamespaces(this.caipNetworks);await i.connect({optionalNamespaces:r})}async connect(e){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:Number(e.chainId),provider:this.provider,address:""})}async disconnect(){let e=this.connectors.find(e=>"WALLET_CONNECT"===e.id),t=e?.provider;await t?.disconnect()}async syncConnectors(){return Promise.resolve()}async getBalance(){return Promise.resolve({balance:"0",decimals:0,symbol:""})}async signMessage(e){let{provider:t,message:i,address:n}=e;if(!t)throw Error("UniversalAdapter:signMessage - provider is undefined");return{signature:r.WB.state.activeCaipNetwork?.chainNamespace===a.oU.CHAIN.SOLANA?(await t.request({method:"solana_signMessage",params:{message:c.encode(new TextEncoder().encode(i)),pubkey:n}},r.WB.state.activeCaipNetwork?.caipNetworkId)).signature:await t.request({method:"personal_sign",params:[i,n]},r.WB.state.activeCaipNetwork?.caipNetworkId)}}async estimateGas(){return Promise.resolve({gas:BigInt(0)})}async getProfile(){return Promise.resolve({profileImage:"",profileName:""})}async sendTransaction(){return Promise.resolve({hash:""})}async writeContract(){return Promise.resolve({hash:""})}async getEnsAddress(){return Promise.resolve({address:!1})}parseUnits(){return 0n}formatUnits(){return"0"}async getCapabilities(){return Promise.resolve({})}async grantPermissions(){return Promise.resolve({})}async revokePermissions(){return Promise.resolve("0x")}async syncConnection(){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:1,provider:this.provider,address:""})}async switchNetwork(e){let{caipNetwork:t}=e,i=this.connectors.find(e=>"WALLET_CONNECT"===e.type),r=i?.provider;if(!r)throw Error("UniversalAdapter:switchNetwork - provider is undefined");r.setDefaultChain(`${t.chainNamespace}:${String(t.id)}`)}getWalletConnectProvider(){let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type);return e?.provider}}var u=i(60402),d=i(45011),h=i(10491),p=i(27258),f=i(71139);let g={currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]},w={supportsAllNetworks:!0,smartAccountEnabledNetworks:[]},m=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_getCallsStatus","wallet_sendCalls","wallet_getCapabilities","wallet_grantPermissions","wallet_revokePermissions"],b=!1;class v{constructor(e){this.chainNamespaces=[],this.initPromise=void 0,this.setStatus=(e,t)=>{r.iT.setConnectionStatus(e),r.Uj.setStatus(e,t)},this.getIsConnectedState=()=>!!r.WB.state.activeCaipAddress,this.setAllAccounts=(e,t)=>{r.Uj.setAllAccounts(e,t),r.Hd.setHasMultipleAddresses(e?.length>1)},this.addAddressLabel=(e,t,i)=>{r.Uj.addAddressLabel(e,t,i)},this.removeAddressLabel=(e,t)=>{r.Uj.removeAddressLabel(e,t)},this.getCaipAddress=e=>r.WB.state.activeChain!==e&&e?r.WB.getAccountProp("caipAddress",e):r.WB.state.activeCaipAddress,this.getAddressByChainNamespace=e=>r.WB.getAccountProp("address",e),this.getAddress=e=>r.WB.state.activeChain!==e&&e?r.WB.getAccountProp("address",e):r.Uj.state.address,this.getProvider=()=>r.Uj.state.provider,this.getPreferredAccountType=()=>r.Uj.state.preferredAccountType,this.setCaipAddress=(e,t)=>{r.Uj.setCaipAddress(e,t)},this.setProvider=(e,t)=>{r.Uj.setProvider(e,t)},this.setBalance=(e,t,i)=>{r.Uj.setBalance(e,t,i)},this.setProfileName=(e,t)=>{r.Uj.setProfileName(e,t)},this.setProfileImage=(e,t)=>{r.Uj.setProfileImage(e,t)},this.resetAccount=e=>{r.Uj.resetAccount(e)},this.setCaipNetwork=e=>{r.WB.setActiveCaipNetwork(e)},this.getCaipNetwork=e=>e?r.WB.getRequestedCaipNetworks(e).filter(t=>t.chainNamespace===e)?.[0]:r.WB.state.activeCaipNetwork,this.getCaipNetworkId=()=>{let e=this.getCaipNetwork();if(e)return e.id},this.getCaipNetworks=e=>r.WB.getRequestedCaipNetworks(e),this.getActiveChainNamespace=()=>r.WB.state.activeChain,this.setRequestedCaipNetworks=(e,t)=>{r.WB.setRequestedCaipNetworks(e,t)},this.getApprovedCaipNetworkIds=()=>r.WB.getAllApprovedCaipNetworkIds(),this.setApprovedCaipNetworksData=e=>r.WB.setApprovedCaipNetworksData(e),this.resetNetwork=e=>{r.WB.resetNetwork(e)},this.setConnectors=e=>{let t=[...r.aK.getConnectors(),...e];r.aK.setConnectors(t)},this.addConnector=e=>{r.aK.addConnector(e)},this.getConnectors=()=>r.aK.getConnectors(),this.resetWcConnection=()=>{r.x4.resetWcConnection()},this.fetchIdentity=e=>r.TP.fetchIdentity(e),this.setAddressExplorerUrl=(e,t)=>{r.Uj.setAddressExplorerUrl(e,t)},this.setSmartAccountDeployed=(e,t)=>{r.Uj.setSmartAccountDeployed(e,t)},this.setConnectedWalletInfo=(e,t)=>{r.Uj.setConnectedWalletInfo(e,t)},this.setSmartAccountEnabledNetworks=(e,t)=>{r.WB.setSmartAccountEnabledNetworks(e,t)},this.setPreferredAccountType=(e,t)=>{r.Uj.setPreferredAccountType(e,t)},this.getReownName=e=>r.f.getNamesForAddress(e),this.setEIP6963Enabled=e=>{r.Hd.setEIP6963Enabled(e)},this.setClientId=e=>{r.TP.setClientId(e)},this.getConnectorImage=e=>r.$m.getConnectorImage(e),this.handleUnsafeRPCRequest=()=>{this.isOpen()?this.isTransactionStackEmpty()||this.redirect("ApproveTransaction"):this.open({view:"ApproveTransaction"})},this.options=e,this.initialize(e)}static getInstance(){return this.instance}async initialize(e){this.caipNetworks=this.extendCaipNetworks(e),this.defaultCaipNetwork=this.extendDefaultCaipNetwork(e),await this.initControllers(e),this.createAuthProvider(),await this.createUniversalProvider(),this.createClients(),r.WB.initialize(e.adapters??[]),this.chainAdapters=await this.createAdapters(e.adapters),await this.initChainAdapters(),this.syncRequestedNetworks(),await this.initOrContinue(),await this.syncExistingConnection(),this.version=e.sdkVersion}async open(e){await this.initOrContinue(),r.W3.open(e)}async close(){await this.initOrContinue(),r.W3.close()}setLoading(e){r.W3.setLoading(e)}getError(){return""}getChainId(){return r.WB.state.activeCaipNetwork?.id}switchNetwork(e){let t=this.caipNetworks?.find(t=>t.id===e.id);if(!t){r.hG.open(u.RQ.ALERT_ERRORS.SWITCH_NETWORK_NOT_FOUND,"error");return}r.WB.switchActiveNetwork(t)}getWalletProvider(){return r.WB.state.activeChain?h.A.state.providers[r.WB.state.activeChain]:null}getWalletProviderType(){return r.WB.state.activeChain?h.A.state.providerIds[r.WB.state.activeChain]:null}subscribeProvider(){return null}getThemeMode(){return r.Wn.state.themeMode}getThemeVariables(){return r.Wn.state.themeVariables}setThemeMode(e){r.Wn.setThemeMode(e),(0,n.setColorTheme)(r.Wn.state.themeMode)}setThemeVariables(e){r.Wn.setThemeVariables(e),(0,n.setThemeVariables)(r.Wn.state.themeVariables)}subscribeTheme(e){return r.Wn.subscribe(e)}getWalletInfo(){return r.Uj.state.connectedWalletInfo}subscribeAccount(e){function t(){e({caipAddress:r.WB.state.activeCaipAddress,address:r.wE.getPlainAddress(r.WB.state.activeCaipAddress),isConnected:!!r.WB.state.activeCaipAddress,status:r.Uj.state.status})}r.WB.subscribe(t),r.Uj.subscribe(t)}subscribeNetwork(e){return r.WB.subscribe(({activeCaipNetwork:t})=>{e({caipNetwork:t,chainId:t?.id,caipNetworkId:t?.caipNetworkId})})}subscribeWalletInfo(e){return r.Uj.subscribeKey("connectedWalletInfo",e)}subscribeShouldUpdateToAddress(e){r.Uj.subscribeKey("shouldUpdateToAddress",e)}subscribeCaipNetworkChange(e){r.WB.subscribeKey("activeCaipNetwork",e)}getState(){return r.z3.state}subscribeState(e){return r.z3.subscribe(e)}showErrorMessage(e){r.Pt.showError(e)}showSuccessMessage(e){r.Pt.showSuccess(e)}getEvent(){return{...r.En.state}}subscribeEvents(e){return r.En.subscribe(e)}replace(e){r.IN.replace(e)}redirect(e){r.IN.push(e)}popTransactionStack(e){r.IN.popTransactionStack(e)}isOpen(){return r.W3.state.open}isTransactionStackEmpty(){return 0===r.IN.state.transactionStack.length}isTransactionShouldReplaceView(){return r.IN.state.transactionStack[r.IN.state.transactionStack.length-1]?.replace}async disconnect(){await this.connectionControllerClient?.disconnect()}async initControllers(e){if(r.Hd.setDebug(e.debug),r.Hd.setProjectId(e.projectId),r.Hd.setSdkVersion(e.sdkVersion),!e.projectId){r.hG.open(u.RQ.ALERT_ERRORS.PROJECT_ID_NOT_CONFIGURED,"error");return}this.adapters=e.adapters;let t=this.getDefaultMetaData();if(!e.metadata&&t&&(e.metadata=t),this.setDefaultNetwork(),r.Hd.setAllWallets(e.allWallets),r.Hd.setIncludeWalletIds(e.includeWalletIds),r.Hd.setExcludeWalletIds(e.excludeWalletIds),e.excludeWalletIds&&r.Np.searchWalletByIds({ids:e.excludeWalletIds}),r.Hd.setFeaturedWalletIds(e.featuredWalletIds),r.Hd.setTokens(e.tokens),r.Hd.setTermsConditionsUrl(e.termsConditionsUrl),r.Hd.setPrivacyPolicyUrl(e.privacyPolicyUrl),r.Hd.setCustomWallets(e.customWallets),r.Hd.setFeatures(e.features),r.Hd.setEnableWalletConnect(!1!==e.enableWalletConnect),r.Hd.setEnableWallets(!1!==e.enableWallets),e.metadata&&r.Hd.setMetadata(e.metadata),e.themeMode&&r.Wn.setThemeMode(e.themeMode),e.themeVariables&&r.Wn.setThemeVariables(e.themeVariables),e.disableAppend&&r.Hd.setDisableAppend(!!e.disableAppend),e.siwx&&r.Hd.setSIWX(e.siwx),e.adapters?.find(e=>e.namespace===a.oU.CHAIN.EVM)&&e.siweConfig){if(e.siwx)throw Error("Cannot set both `siweConfig` and `siwx` options");let t=await i.e(86).then(i.bind(i,90086));if("function"!=typeof t.mapToSIWX)throw Error("Please update the `@reown/appkit-siwe` package to the latest version");r.Hd.setSIWX(t.mapToSIWX(e.siweConfig))}}getDefaultMetaData(){return"undefined"!=typeof window&&"undefined"!=typeof document?{name:document.getElementsByTagName("title")[0]?.textContent||"",description:document.querySelector('meta[property="og:description"]')?.content||"",url:window.location.origin,icons:[document.querySelector('link[rel~="icon"]')?.href||""]}:null}setUnsupportedNetwork(e){let t=this.getActiveChainNamespace();t&&r.WB.setActiveCaipNetwork({id:e,caipNetworkId:`${t}:${e}`,name:"Unknown Network",chainNamespace:t,nativeCurrency:{name:"",decimals:0,symbol:""},rpcUrls:{default:{http:[]}}})}extendCaipNetworks(e){return u.R5.extendCaipNetworks(e.networks,{customNetworkImageUrls:e.chainImages,projectId:e.projectId})}extendDefaultCaipNetwork(e){let t=e.networks.find(t=>t.id===e.defaultNetwork?.id);return t?u.R5.extendCaipNetwork(t,{customNetworkImageUrls:e.chainImages,projectId:e.projectId}):void 0}createClients(){this.connectionControllerClient={connectWalletConnect:async e=>{let t=this.getAdapter(r.WB.state.activeChain);this.universalProvider?.on("display_uri",t=>{e(t)}),this.setClientId(await this.universalProvider?.client?.core?.crypto?.getClientId()||null);let i=!1;if(this.universalProvider){let e=this.caipNetworks?.map(e=>e.caipNetworkId)||[];i=await r.UG.universalProviderAuthenticate({universalProvider:this.universalProvider,chains:e,methods:m})}i?this.close():await t?.connectWalletConnect(e,this.getCaipNetwork()?.id),await this.syncWalletConnectAccount()},connectExternal:async({id:e,info:t,type:i,provider:n,chain:a,caipNetwork:o})=>{if(a&&a!==r.WB.state.activeChain&&!o){let e=this.caipNetworks?.find(e=>e.chainNamespace===a);e&&this.setCaipNetwork(e)}let s=a?this.getAdapter(a):this.getAdapter(r.WB.state.activeChain),c=await s?.connect({id:e,info:t,type:i,provider:n,chainId:o?.id||this.getCaipNetwork()?.id,rpcUrl:o?.rpcUrls?.default?.http?.[0]||this.getCaipNetwork()?.rpcUrls?.default?.http?.[0]});c&&(this.syncProvider({...c,chainNamespace:a||r.WB.state.activeChain}),await this.syncAccount({...c,chainNamespace:a||r.WB.state.activeChain})),!this.caipNetworks?.some(e=>e.id===c?.chainId)&&c?.chainId&&this.setUnsupportedNetwork(c.chainId)},reconnectExternal:async({id:e,info:t,type:i,provider:n})=>{let a=this.getAdapter(r.WB.state.activeChain);a?.reconnect&&await a?.reconnect({id:e,info:t,type:i,provider:n,chainId:this.getCaipNetwork()?.id})},disconnect:async()=>{let e=this.getAdapter(r.WB.state.activeChain),t=h.A.getProvider(r.WB.state.activeChain),i=h.A.state.providerIds[r.WB.state.activeChain];await e?.disconnect({provider:t,providerType:i}),this.setStatus("disconnected",r.WB.state.activeChain),a.Ud.removeItem(a.Ws.CONNECTED_CONNECTOR),a.Ud.removeItem(a.Ws.ACTIVE_CAIP_NETWORK_ID),r.WB.state.chains.forEach(e=>{this.resetAccount(e.namespace)})},checkInstalled:e=>e?e.some(e=>!!window.ethereum?.[String(e)]):!!window.ethereum,signMessage:async e=>{let t=this.getAdapter(r.WB.state.activeChain),i=await t?.signMessage({message:e,address:r.Uj.state.address,provider:h.A.getProvider(r.WB.state.activeChain)});return i?.signature||""},sendTransaction:async e=>{if("eip155"===e.chainNamespace){let t=this.getAdapter(r.WB.state.activeChain),i=await t?.sendTransaction(e);return i?.hash||""}return""},estimateGas:async e=>{if("eip155"===e.chainNamespace){let t=this.getAdapter(r.WB.state.activeChain),i=h.A.getProvider(r.WB.state.activeChain),n=this.getCaipNetwork();if(!n)throw Error("CaipNetwork is undefined");let a=await t?.estimateGas({...e,provider:i,caipNetwork:n});return a?.gas||0n}return 0n},getEnsAvatar:async()=>{let e=this.getAdapter(r.WB.state.activeChain),t=await e?.getProfile({address:r.Uj.state.address,chainId:Number(this.getCaipNetwork()?.id)});return t?.profileImage||!1},getEnsAddress:async e=>{let t=this.getAdapter(r.WB.state.activeChain),i=this.getCaipNetwork();if(!i)return!1;let n=await t?.getEnsAddress({name:e,caipNetwork:i});return n?.address||!1},writeContract:async e=>{let t=this.getAdapter(r.WB.state.activeChain),i=this.getCaipNetwork(),n=this.getCaipAddress(),a=h.A.getProvider(r.WB.state.activeChain);if(!i||!n)throw Error("CaipNetwork or CaipAddress is undefined");let o=await t?.writeContract({...e,caipNetwork:i,provider:a,caipAddress:n});return o?.hash},parseUnits:(e,t)=>{let i=this.getAdapter(r.WB.state.activeChain);return i?.parseUnits({value:e,decimals:t})??0n},formatUnits:(e,t)=>{let i=this.getAdapter(r.WB.state.activeChain);return i?.formatUnits({value:e,decimals:t})??"0"},getCapabilities:async e=>{let t=this.getAdapter(r.WB.state.activeChain);await t?.getCapabilities(e)},grantPermissions:async e=>{let t=this.getAdapter(r.WB.state.activeChain);return await t?.grantPermissions(e)},revokePermissions:async e=>{let t=this.getAdapter(r.WB.state.activeChain);return t?.revokePermissions?await t.revokePermissions(e):"0x"}},this.networkControllerClient={switchCaipNetwork:async e=>{if(e){if(r.Uj.state.address&&e.chainNamespace===r.WB.state.activeChain){let t=this.getAdapter(r.WB.state.activeChain),i=h.A.getProvider(r.WB.state.activeChain),n=h.A.state.providerIds[r.WB.state.activeChain];await t?.switchNetwork({caipNetwork:e,provider:i,providerType:n}),this.setCaipNetwork(e),await this.syncAccount({address:r.Uj.state.address,chainId:r.WB.state.activeCaipNetwork?.id,chainNamespace:e.chainNamespace})}else if(r.Uj.state.address){let t=h.A.state.providerIds[r.WB.state.activeChain];if(t===u.oU.CONNECTOR_TYPE_AUTH)try{r.WB.state.activeChain=e.chainNamespace,await this.connectionControllerClient?.connectExternal?.({id:u.oU.AUTH_CONNECTOR_ID,provider:this.authProvider,chain:e.chainNamespace,chainId:e.id,type:u.oU.CONNECTOR_TYPE_AUTH,caipNetwork:e})}catch(r){let i=this.getAdapter(e.chainNamespace);await i?.switchNetwork({caipNetwork:e,provider:this.authProvider,providerType:t})}else if("WALLET_CONNECT"===t)this.setCaipNetwork(e),this.syncWalletConnectAccount();else{this.setCaipNetwork(e);let t=this.getAddressByChainNamespace(e.chainNamespace);t&&this.syncAccount({address:t,chainId:e.id,chainNamespace:e.chainNamespace})}}else this.setCaipNetwork(e)}},getApprovedCaipNetworksData:async()=>{if(h.A.state.providerIds[r.WB.state.activeChain]===u.oU.CONNECTOR_TYPE_WALLET_CONNECT){let e=this.universalProvider?.session?.namespaces;return{supportsAllNetworks:this.universalProvider?.session?.peer?.metadata.name==="MetaMask Wallet",approvedCaipNetworkIds:this.getChainsFromNamespaces(e)}}return{supportsAllNetworks:!0,approvedCaipNetworkIds:[]}}},this.networkControllerClient&&this.connectionControllerClient&&r.x4.setClient(this.connectionControllerClient)}async handleDisconnect(){await this.connectionControllerClient?.disconnect()}async listenAuthConnector(e){this.setLoading(!0);let t=e.getLoginEmailUsed();this.setLoading(t),t&&this.setStatus("connecting",r.WB.state.activeChain);let{isConnected:i}=await e.isConnected();e.onRpcRequest(t=>{d.QH.checkIfRequestExists(t)?d.QH.checkIfRequestIsSafe(t)||this.handleUnsafeRPCRequest():(this.open(),console.error(d.Vl.RPC_METHOD_NOT_ALLOWED_MESSAGE,{method:t.method}),setTimeout(()=>{this.showErrorMessage(d.Vl.RPC_METHOD_NOT_ALLOWED_UI_MESSAGE)},300),e.rejectRpcRequests())}),e.onRpcError(()=>{this.isOpen()&&(this.isTransactionStackEmpty()?this.close():this.popTransactionStack(!0))}),e.onRpcSuccess((e,t)=>{d.QH.checkIfRequestIsSafe(t)||(this.isTransactionStackEmpty()?this.close():this.popTransactionStack())}),e.onNotConnected(()=>{let e=a.Ud.getItem(a.Ws.CONNECTED_CONNECTOR)===u.oU.AUTH_CONNECTOR_ID;!i&&e&&(this.setCaipAddress(void 0,r.WB.state.activeChain),this.setLoading(!1))}),e.onIsConnected(()=>{e.connect()}),e.onConnect(async t=>{this.syncProvider({type:u.oU.CONNECTOR_TYPE_AUTH,provider:e,id:u.oU.AUTH_CONNECTOR_ID,chainNamespace:r.WB.state.activeChain});let i="eip155"===r.WB.state.activeChain?`eip155:${t.chainId}:${t.address}`:`${t.chainId}:${t.address}`;this.setCaipAddress(i,r.WB.state.activeChain),this.setSmartAccountDeployed(!!t.smartAccountDeployed,r.WB.state.activeChain),this.setPreferredAccountType(t.preferredAccountType,r.WB.state.activeChain),this.setAllAccounts(t.accounts||[{address:t.address,type:t.preferredAccountType||"eoa"}],r.WB.state.activeChain),await e.getSmartAccountEnabledNetworks(),this.setLoading(!1)}),e.onGetSmartAccountEnabledNetworks(e=>{this.setSmartAccountEnabledNetworks(e,r.WB.state.activeChain)}),e.onSetPreferredAccount(({address:e,type:t})=>{e&&this.setPreferredAccountType(t,r.WB.state.activeChain)}),i&&this.connectionControllerClient?.connectExternal?(await this.connectionControllerClient?.connectExternal({id:u.oU.AUTH_CONNECTOR_ID,info:{name:u.oU.AUTH_CONNECTOR_ID},type:u.oU.CONNECTOR_TYPE_AUTH,provider:e,chainId:r.WB.state.activeCaipNetwork?.id}),this.setLoading(!1),this.setStatus("connected",r.WB.state.activeChain)):(this.setLoading(!1),this.setStatus("disconnected",r.WB.state.activeChain))}listenWalletConnect(){this.universalProvider&&(this.universalProvider.on("disconnect",()=>{this.chainNamespaces.forEach(e=>{this.resetAccount(e)}),r.x4.resetWcConnection()}),this.universalProvider.on("chainChanged",e=>{let t=this.caipNetworks?.find(t=>t.chainNamespace===r.WB.state.activeChain&&t.id==e),i=this.getCaipNetwork();if(!t){this.setUnsupportedNetwork(e);return}i&&i?.id===t?.id||this.setCaipNetwork(t)}))}listenAdapter(e){let t=this.getAdapter(e),i=r.iT.getConnectionStatus();"connected"===i?this.setStatus("connecting",e):this.setStatus(i,e),t?.on("switchNetwork",({address:t,chainId:i})=>{i&&this.caipNetworks?.find(e=>e.id===i)?r.WB.state.activeChain===e&&t?this.syncAccount({address:t,chainId:i,chainNamespace:e}):r.WB.state.activeChain===e&&r.Uj.state.address&&this.syncAccount({address:r.Uj.state.address,chainId:i,chainNamespace:e}):this.setUnsupportedNetwork(i)}),t?.on("disconnect",()=>{r.WB.state.activeChain===e&&this.handleDisconnect()}),t?.on("accountChanged",({address:t,chainId:i})=>{r.WB.state.activeChain===e&&i?this.syncAccount({address:t,chainId:i,chainNamespace:e}):r.WB.state.activeChain===e&&r.WB.state.activeCaipNetwork?.id&&this.syncAccount({address:t,chainId:r.WB.state.activeCaipNetwork?.id,chainNamespace:e})})}getChainsFromNamespaces(e={}){return Object.values(e).flatMap(e=>Array.from(new Set([...e.chains||[],...e.accounts.map(e=>{let[t,i]=e.split(":");return`${t}:${i}`})])))}async syncWalletConnectAccount(){let e=this.getAdapter(r.WB.state.activeChain);r.iT.setConnectedNamespace(r.WB.state.activeChain),this.chainNamespaces.forEach(async t=>{let i=this.universalProvider?.session?.namespaces?.[t]?.accounts[0];if(i){if(h.A.setProviderId(t,u.oU.CONNECTOR_TYPE_WALLET_CONNECT),this.caipNetworks&&r.WB.state.activeCaipNetwork&&e?.namespace!=="eip155"){let i=e?.getWalletConnectProvider({caipNetworks:this.caipNetworks,provider:this.universalProvider,activeCaipNetwork:r.WB.state.activeCaipNetwork});h.A.setProvider(t,i)}else h.A.setProvider(t,this.universalProvider);r.iT.setConnectedConnector(u.oU.CONNECTOR_TYPE_WALLET_CONNECT);let n="";if(n=3===i.split(":").length?i.split(":")[2]:r.Uj.state.address,e?.adapterType==="wagmi")try{await e?.connect({id:"walletConnect",type:"WALLET_CONNECT",chainId:r.WB.state.activeCaipNetwork?.id})}catch(t){e?.reconnect&&e?.reconnect({id:"walletConnect",type:"WALLET_CONNECT"})}this.syncWalletConnectAccounts(t),await this.syncAccount({address:n,chainId:r.WB.state.activeChain===t?r.WB.state.activeCaipNetwork?.id:this.caipNetworks?.find(e=>e.chainNamespace===t)?.id,chainNamespace:t})}}),await r.WB.setApprovedCaipNetworksData(r.WB.state.activeChain)}syncWalletConnectAccounts(e){let t=this.universalProvider?.session?.namespaces?.[e]?.accounts?.map(e=>{let[,,t]=e.split(":");return t}).filter((e,t,i)=>i.indexOf(e)===t);t&&this.setAllAccounts(t.map(e=>({address:e,type:"eoa"})),e)}syncProvider({type:e,provider:t,id:i,chainNamespace:n}){h.A.setProviderId(n,e),h.A.setProvider(n,t),r.iT.setConnectedConnector(i),r.iT.setConnectedNamespace(r.WB.state.activeChain)}async syncAccount({address:e,chainId:t,chainNamespace:i}){if(this.setPreferredAccountType(r.Uj.state.preferredAccountType?r.Uj.state.preferredAccountType:"eoa",r.WB.state.activeChain),this.setCaipAddress(`${i}:${t}:${e}`,i),this.setStatus("connected",i),i===r.WB.state.activeChain){let r=this.caipNetworks?.find(e=>e.id===t&&e.chainNamespace===i);r?this.setCaipNetwork(r):this.setCaipNetwork(this.caipNetworks?.find(e=>e.chainNamespace===i)),this.syncConnectedWalletInfo(i);let n=this.getAdapter(i),a=await n?.getBalance({address:e,chainId:t,caipNetwork:r||this.getCaipNetwork(),tokens:this.options.tokens});a&&this.setBalance(a.balance,a.symbol,i),await this.syncIdentity({address:e,chainId:Number(t),chainNamespace:i})}}syncConnectedWalletInfo(e){let t=a.Ud.getItem(a.Ws.CONNECTED_CONNECTOR),i=h.A.state.providerIds[e];if(i===u.oU.CONNECTOR_TYPE_ANNOUNCED||i===u.oU.CONNECTOR_TYPE_INJECTED){if(t){let i=this.getConnectors().find(e=>e.id===t);i?.info&&this.setConnectedWalletInfo({...i.info},e)}}else if(i===u.oU.CONNECTOR_TYPE_WALLET_CONNECT){let t=h.A.getProvider(e);t?.session&&this.setConnectedWalletInfo({...t.session.peer.metadata,name:t.session.peer.metadata.name,icon:t.session.peer.metadata.icons?.[0]},e)}else if(i===u.oU.COINBASE_CONNECTOR_ID){let t=this.getConnectors().find(e=>e.id===u.oU.COINBASE_CONNECTOR_ID);this.setConnectedWalletInfo({name:"Coinbase Wallet",icon:this.getConnectorImage(t)},e)}else t&&this.setConnectedWalletInfo({name:t},e)}async syncIdentity({address:e,chainId:t,chainNamespace:i}){try{let{name:r,avatar:n}=await this.fetchIdentity({address:e});if(this.setProfileName(r,i),this.setProfileImage(n,i),!r){await this.syncReownName(e,i);let r=this.getAdapter(i),n=await r?.getProfile({address:e,chainId:Number(t)});n?.profileName?(this.setProfileName(n.profileName,i),n.profileImage&&this.setProfileImage(n.profileImage,i)):(await this.syncReownName(e,i),this.setProfileImage(null,i))}}catch{1===t?await this.syncReownName(e,i):(await this.syncReownName(e,i),this.setProfileImage(null,i))}}async syncReownName(e,t){try{let i=await this.getReownName(e);if(i[0]){let e=i[0];this.setProfileName(e.name,t)}else this.setProfileName(null,t)}catch{this.setProfileName(null,t)}}syncRequestedNetworks(){let e=[...new Set(this.caipNetworks?.map(e=>e.chainNamespace))];this.chainNamespaces=e,e.forEach(e=>this.setRequestedCaipNetworks(this.caipNetworks?.filter(t=>t.chainNamespace===e)??[],e))}async syncExistingConnection(){let e=a.Ud.getItem(a.Ws.CONNECTED_CONNECTOR),t=a.Ud.getItem(a.Ws.CONNECTED_NAMESPACE);if(e===u.oU.CONNECTOR_TYPE_WALLET_CONNECT&&t)this.syncWalletConnectAccount();else if(e&&e!==u.oU.CONNECTOR_TYPE_W3M_AUTH&&t){this.setStatus("connecting",t);let i=this.getAdapter(t),r=await i?.syncConnection({id:e,chainId:this.getCaipNetwork()?.id,namespace:t,rpcUrl:this.getCaipNetwork()?.rpcUrls?.default?.http?.[0]});r?(this.syncProvider({...r,chainNamespace:t}),await this.syncAccount({...r,chainNamespace:t}),this.setStatus("connected",t)):this.setStatus("disconnected",t),!this.caipNetworks?.some(e=>e.id===r?.chainId)&&r?.chainId&&this.setUnsupportedNetwork(r.chainId)}else e!==u.oU.CONNECTOR_TYPE_W3M_AUTH&&this.setStatus("disconnected",r.WB.state.activeChain)}getAdapter(e){return this.chainAdapters?.[e]}createUniversalProvider(){return!this.universalProviderInitPromise&&"undefined"!=typeof window&&this.options?.projectId&&(this.universalProviderInitPromise=this.initializeUniversalAdapter()),this.universalProviderInitPromise}async initializeUniversalAdapter(){let e={projectId:this.options?.projectId,metadata:{name:this.options?.metadata?this.options?.metadata.name:"",description:this.options?.metadata?this.options?.metadata.description:"",url:this.options?.metadata?this.options?.metadata.url:"",icons:this.options?.metadata?this.options?.metadata.icons:[""]}};this.universalProvider=await p.A.init(e)}async getUniversalProvider(){if(!this.universalProvider)try{await this.createUniversalProvider()}catch(e){throw Error("AppKit:getUniversalProvider - Cannot create provider")}return this.universalProvider}createAuthProvider(){let e=this.options?.features?.email===void 0?r.oU.DEFAULT_FEATURES.email:this.options?.features?.email,t=this.options?.features?.socials?this.options?.features?.socials?.length>0:r.oU.DEFAULT_FEATURES.socials;this.options?.projectId&&(e||t)&&(this.authProvider=f.v.getInstance({projectId:this.options.projectId}),this.listenAuthConnector(this.authProvider))}async createAdapters(e){return this.universalProvider||(this.universalProvider=await this.getUniversalProvider()),this.syncRequestedNetworks(),this.chainNamespaces.reduce((t,i)=>{let n=e?.find(e=>e.namespace===i);return n?(t[i]=n,t[i].namespace=i,t[i].construct({namespace:i,projectId:this.options?.projectId,networks:this.caipNetworks}),this.universalProvider&&t[i].setUniversalProvider(this.universalProvider),this.authProvider&&t[i].setAuthProvider(this.authProvider),t[i].syncConnectors(this.options,this)):(t[i]=new l({namespace:i,networks:this.caipNetworks}),this.universalProvider&&t[i].setUniversalProvider(this.universalProvider),this.authProvider&&t[i].setAuthProvider(this.authProvider)),r.WB.state.chains.set(i,{namespace:i,connectionControllerClient:this.connectionControllerClient,networkControllerClient:this.networkControllerClient,networkState:w,accountState:g,caipNetworks:this.caipNetworks??[]}),t},{})}async initChainAdapters(){await Promise.all(this.chainNamespaces.map(async e=>{this.options&&(this.listenAdapter(e),this.setConnectors(this.chainAdapters?.[e]?.connectors||[]))})),this.listenWalletConnect()}setDefaultNetwork(){let e=a.Ud.getItem(a.Ws.ACTIVE_CAIP_NETWORK_ID),t=(e&&this.caipNetworks?.length?this.caipNetworks.find(t=>t.caipNetworkId===e):void 0)||this.defaultCaipNetwork||this.caipNetworks?.[0];t&&r.WB.setActiveCaipNetwork(t)}async initOrContinue(){return!this.initPromise&&!b&&r.wE.isClient()&&(b=!0,this.initPromise=new Promise(async e=>{await Promise.all([Promise.resolve().then(i.bind(i,57068)),i.e(5453).then(i.bind(i,15453))]);let t=document.createElement("w3m-modal");r.Hd.state.disableAppend||document.body.insertAdjacentElement("beforeend",t),e()})),this.initPromise}}},93113:(e,t,i)=>{"use strict";i.d(t,{D8t:()=>r.D,rCZ:()=>n.r,Gby:()=>a.G,tWt:()=>s,Rn0:()=>c});var r=i(46753),n=i(63645),a=i(50952);function o(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}let s=o({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),c=o({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"});o({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),o({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),o({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}})},10491:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var r=i(2614),n=i(5061);let a={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0},o=(0,r.BX)({providers:{...a},providerIds:{...a}}),s={state:o,subscribeKey:(e,t)=>(0,n.u$)(o,e,t),subscribeProviders:e=>(0,r.B1)(o.providers,()=>e(o.providers)),setProvider(e,t){t&&(o.providers[e]=(0,r.KR)(t))},getProvider:e=>o.providers[e],setProviderId(e,t){t&&(o.providerIds[e]=t)},getProviderId:e=>o.providerIds[e],reset(){o.providers={...a},o.providerIds={...a}},resetChain(e){o.providers[e]=void 0,o.providerIds[e]=void 0}}},58051:(e,t,i)=>{"use strict";i.d(t,{k:()=>a});var r=i(80196),n=i(93113);let a={getMethodsByChainNamespace(e){switch(e){case"solana":return["solana_signMessage","solana_signTransaction","solana_requestAccounts","solana_getAccounts","solana_signAllTransactions","solana_signAndSendTransaction"];case"eip155":return["personal_sign","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendRawTransaction","eth_sendTransaction","wallet_getCapabilities","wallet_sendCalls","wallet_showCallsStatus","wallet_getCallsStatus","wallet_grantPermissions","wallet_revokePermissions","wallet_switchEthereumChain"];case"bip122":return["sendTransfer","signMessage","signPsbt","getAccountAddresses"];default:return[]}},createNamespaces(e){return e.reduce((e,t)=>{let{id:i,chainNamespace:r,rpcUrls:a}=t,o=a.default.http[0],s=this.getMethodsByChainNamespace(r);e[r]||(e[r]={methods:s,events:["accountsChanged","chainChanged"],chains:[],rpcMap:{}});let c=`${r}:${i}`,l=e[r];switch(l.chains.push(c),c){case n.tWt.caipNetworkId:l.chains.push(n.tWt.deprecatedCaipNetworkId);break;case n.Rn0.caipNetworkId:l.chains.push(n.Rn0.deprecatedCaipNetworkId)}return l?.rpcMap&&o&&(l.rpcMap[i]=o),e},{})},resolveReownName:async e=>{let t=await r.f.resolveName(e),i=Object.values(t?.addresses)||[];return i[0]?.address||!1},getChainsFromNamespaces:(e={})=>Object.values(e).flatMap(e=>Array.from(new Set([...e.chains||[],...e.accounts.map(e=>{let[t,i]=e.split(":");return`${t}:${i}`})])))}},42856:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var r=i(83320),n=i(84671),a=i(61282),o=i(7270),s=i(61678),c=i(81867);function l(e){let t,u,d,h,p,f,g,w;let m=e.isNewChainsStale??!0;return(0,r.U)(r=>({id:"walletConnect",name:"WalletConnect",type:l.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(p||(p=this.onConnect.bind(this),e.on("connect",p)),g||(g=this.onSessionDelete.bind(this),e.on("session_delete",g)))},async connect({chainId:e,...t}={}){try{let i=await this.getProvider();if(!i)throw new n.N;f||(f=this.onDisplayUri,i.on("display_uri",f));let a=e;if(!a){let e=await r.storage?.getItem("state")??{};a=r.chains.some(t=>t.id===e.chainId)?e.chainId:r.chains[0]?.id}if(!a)throw Error("No chains found on connector.");let s=await this.isChainsStale();if(i.session&&s&&await i.disconnect(),!i.session||s){let e=r.chains.filter(e=>e.id!==a).map(e=>e.id);await i.connect({optionalChains:[a,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(r.chains.map(e=>e.id))}let c=(await i.enable()).map(e=>(0,o.b)(e)),l=await this.getChainId();return f&&(i.removeListener("display_uri",f),f=void 0),p&&(i.removeListener("connect",p),p=void 0),d||(d=this.onAccountsChanged.bind(this),i.on("accountsChanged",d)),h||(h=this.onChainChanged.bind(this),i.on("chainChanged",h)),w||(w=this.onDisconnect.bind(this),i.on("disconnect",w)),g||(g=this.onSessionDelete.bind(this),i.on("session_delete",g)),{accounts:c,chainId:l}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new s.vx(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{h&&(e?.removeListener("chainChanged",h),h=void 0),w&&(e?.removeListener("disconnect",w),w=void 0),p||(p=this.onConnect.bind(this),e?.on("connect",p)),d&&(e?.removeListener("accountsChanged",d),d=void 0),g&&(e?.removeListener("session_delete",g),g=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,o.b)(e))},async getProvider({chainId:n}={}){async function a(){let t=r.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:n}=await i.e(2084).then(i.bind(i,62084));return await n.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(r.chains.map(e=>{let[t]=function(e){let{chain:t}=e,i=t.rpcUrls.default.http[0];if(!e.transports)return[i];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||i)}({chain:e,transports:r.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(u||(u=a()),t=await u,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),n&&await this.switchChain?.({chainId:n}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let i=await this.getProvider();if(!i)throw new n.N;let o=r.chains.find(e=>e.id===t);if(!o)throw new s.ch(new a.nk);try{await Promise.all([new Promise(e=>{let i=({chainId:n})=>{n===t&&(r.emitter.off("change",i),e())};r.emitter.on("change",i)}),i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.cK)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),o}catch(r){if(/(user rejected)/i.test(r.message))throw new s.vx(r);try{let r,n;r=e?.blockExplorerUrls?e.blockExplorerUrls:o.blockExplorers?.default.url?[o.blockExplorers?.default.url]:[],n=e?.rpcUrls?.length?e.rpcUrls:[...o.rpcUrls.default.http];let a={blockExplorerUrls:r,chainId:(0,c.cK)(t),chainName:e?.chainName??o.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??o.nativeCurrency,rpcUrls:n};await i.request({method:"wallet_addEthereumChain",params:[a]});let s=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...s,t]),o}catch(e){throw new s.vx(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(e=>(0,o.b)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),i=await this.getAccounts();r.emitter.emit("connect",{accounts:i,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),r.emitter.emit("disconnect");let t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),h&&(t.removeListener("chainChanged",h),h=void 0),w&&(t.removeListener("disconnect",w),w=void 0),g&&(t.removeListener("session_delete",g),g=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||""))??[]:[],async getRequestedChainsIds(){return await r.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!m)return!1;let e=r.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let i=await this.getRequestedChainsIds();return!e.every(e=>i.includes(e))},async setRequestedChainsIds(e){await r.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}l.type="walletConnect"},73546:(e,t,i)=>{"use strict";i.d(t,{N:()=>n});var r=i(61282);async function n(e,t){let i;if((i="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new r.nM;try{e.setState(e=>({...e,status:"connecting"})),i.emitter.emit("message",{type:"connecting"});let r=await i.connect({chainId:t.chainId}),n=r.accounts;return i.emitter.off("connect",e._internal.events.connect),i.emitter.on("change",e._internal.events.change),i.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",i.id),e.setState(e=>({...e,connections:new Map(e.connections).set(i.uid,{accounts:n,chainId:r.chainId,connector:i}),current:i.uid,status:"connected"})),{accounts:n,chainId:r.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}},16603:(e,t,i)=>{"use strict";i.d(t,{l:()=>l});var r=i(17162),n=i(74950),a=i(81867);async function o(e,{account:t=e.account,message:i}){if(!t)throw new n.T({docsPath:"/docs/actions/wallet/signMessage"});let o=(0,r.J)(t);if(o.signMessage)return o.signMessage({message:i});let s="string"==typeof i?(0,a.i3)(i):i.raw instanceof Uint8Array?(0,a.nj)(i.raw):i.raw;return e.request({method:"personal_sign",params:[s,o.address]},{retryCount:0})}var s=i(66604),c=i(36352);async function l(e,t){let i;let{account:r,connector:n,...a}=t;return i="object"==typeof r&&"local"===r.type?e.getClient():await (0,c.r)(e,{account:r,connector:n}),(0,s.T)(i,o,"signMessage")({...a,...r?{account:r}:{}})}},64241:(e,t,i)=>{"use strict";i.d(t,{S:()=>a});var r=i(61282),n=i(84671);async function a(e,t){let{addEthereumChainParameter:i,chainId:a}=t,o=e.state.connections.get(t.connector?.uid??e.state.current);if(o){let e=o.connector;if(!e.switchChain)throw new n.V({connector:e});return await e.switchChain({addEthereumChainParameter:i,chainId:a})}let s=e.chains.find(e=>e.id===a);if(!s)throw new r.nk;return e.setState(e=>({...e,chainId:a})),s}},83320:(e,t,i)=>{"use strict";function r(e){return e}i.d(t,{U:()=>r})},72565:(e,t,i)=>{"use strict";i.d(t,{b:()=>d});var r=i(7270),n=i(61678),a=i(42220),o=i(41525),s=i(81867),c=i(61282),l=i(84671),u=i(83320);function d(e={}){let t,i,f,g;let{shimDisconnect:w=!0,unstable_shimAsyncInject:m}=e;function b(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,u.U)(u=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return!0},type:d.type,async setup(){let i=await this.getProvider();i?.on&&e.target&&(f||(f=this.onConnect.bind(this),i.on("connect",f)),t||(t=this.onAccountsChanged.bind(this),i.on("accountsChanged",t)))},async connect({chainId:a,isReconnecting:o}={}){let s=await this.getProvider();if(!s)throw new l.N;let c=[];if(o)c=await this.getAccounts().catch(()=>[]);else if(w)try{let e=await s.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>r.b(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===n.vx.code)throw new n.vx(e);if(e.code===n.qZ.code)throw e}try{c?.length||o||(c=(await s.request({method:"eth_requestAccounts"})).map(e=>(0,r.b)(e))),f&&(s.removeListener("connect",f),f=void 0),t||(t=this.onAccountsChanged.bind(this),s.on("accountsChanged",t)),i||(i=this.onChainChanged.bind(this),s.on("chainChanged",i)),g||(g=this.onDisconnect.bind(this),s.on("disconnect",g));let l=await this.getChainId();if(a&&l!==a){let e=await this.switchChain({chainId:a}).catch(e=>{if(e.code===n.vx.code)throw e;return{id:l}});l=e?.id??l}return w&&await u.storage?.removeItem(`${this.id}.disconnected`),e.target||await u.storage?.setItem("injected.connected",!0),{accounts:c,chainId:l}}catch(e){if(e.code===n.vx.code)throw new n.vx(e);if(e.code===n.qZ.code)throw new n.qZ(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new l.N;i&&(t.removeListener("chainChanged",i),i=void 0),g&&(t.removeListener("disconnect",g),g=void 0),f||(f=this.onConnect.bind(this),t.on("connect",f));try{await (0,a.w)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}w&&await u.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await u.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new l.N;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.b)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new l.N;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=b();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?p(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(w&&await u.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await u.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==m&&!1!==m){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof m?m:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(i=>setTimeout(()=>i(e()),t))]))return!0}throw new l.N}return!!(await (0,o.b)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let i=await this.getProvider();if(!i)throw new l.N;let r=u.chains.find(e=>e.id===t);if(!r)throw new n.ch(new c.nk);let a=new Promise(e=>{let i=r=>{"chainId"in r&&r.chainId===t&&(u.emitter.off("change",i),e())};u.emitter.on("change",i)});try{return await Promise.all([i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.cK)(t)}]}).then(async()=>{await this.getChainId()===t&&u.emitter.emit("change",{chainId:t})}),a]),r}catch(o){if(4902===o.code||o?.data?.originalError?.code===4902)try{let o,c;let{default:l,...d}=r.blockExplorers??{};e?.blockExplorerUrls?o=e.blockExplorerUrls:l&&(o=[l.url,...Object.values(d).map(e=>e.url)]),c=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let h={blockExplorerUrls:o,chainId:(0,s.cK)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:c};return await Promise.all([i.request({method:"wallet_addEthereumChain",params:[h]}).then(async()=>{if(await this.getChainId()===t)u.emitter.emit("change",{chainId:t});else throw new n.vx(Error("User rejected switch after adding network."))}),a]),r}catch(e){throw new n.vx(e)}if(o.code===n.vx.code)throw new n.vx(o);throw new n.ch(o)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(u.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),w&&await u.storage?.removeItem(`${this.id}.disconnected`)}else u.emitter.emit("change",{accounts:e.map(e=>(0,r.b)(e))})},onChainChanged(e){let t=Number(e);u.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let n=Number(e.chainId);u.emitter.emit("connect",{accounts:r,chainId:n});let a=await this.getProvider();a&&(f&&(a.removeListener("connect",f),f=void 0),t||(t=this.onAccountsChanged.bind(this),a.on("accountsChanged",t)),i||(i=this.onChainChanged.bind(this),a.on("chainChanged",i)),g||(g=this.onDisconnect.bind(this),a.on("disconnect",g)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),t&&(i&&(t.removeListener("chainChanged",i),i=void 0),g&&(t.removeListener("disconnect",g),g=void 0),f||(f=this.onConnect.bind(this),t.on("connect",f))))}}))}d.type="injected";let h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:p(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>p(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:p(e,"isPhantom")}};function p(e,t){function i(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>i(e)):r&&i(r)?r:void 0}},32130:(e,t,i)=>{"use strict";i.d(t,{w:()=>s,Q:()=>c});var r=i(48145);function n(e,t){return e.slice(0,t).join(".")||"."}function a(e,t){let{length:i}=e;for(let r=0;r<i;++r)if(e[r]===t)return r+1;return 0}function o(e,t,i,r){return JSON.stringify(e,function(e,t){let i="function"==typeof e,r="function"==typeof t,o=[],s=[];return function(c,l){if("object"==typeof l){if(o.length){let e=a(o,this);0===e?o[o.length]=this:(o.splice(e),s.splice(e)),s[s.length]=c;let i=a(o,l);if(0!==i)return r?t.call(this,c,l,n(s,i)):`[ref=${n(s,i)}]`}else o[0]=l,s[0]=c}return i?e.call(this,c,l):l}}((e,i)=>{let r=i;return"bigint"==typeof r&&(r={__type:"bigint",value:i.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(i.entries())}),t?.(e,r)??r},r),i??void 0)}function s(e){let{deserialize:t=r.i,key:i="wagmi",serialize:n=o,storage:a=c}=e;function s(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...a,key:i,async getItem(e,r){let n=a.getItem(`${i}.${e}`),o=await s(n);return o?t(o)??null:r??null},async setItem(e,t){let r=`${i}.${e}`;null===t?await s(a.removeItem(r)):await s(a.setItem(r,n(t)))},async removeItem(e){await s(a.removeItem(`${i}.${e}`))}}}let c={getItem:()=>null,setItem:()=>{},removeItem:()=>{}}},84671:(e,t,i)=>{"use strict";i.d(t,{N:()=>n,V:()=>a});var r=i(11612);class n extends r.C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class a extends r.C{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},46564:(e,t,i)=>{"use strict";i.d(t,{T2:()=>a,iM:()=>n});var r=i(48145);let n={getItem:e=>"undefined"==typeof window?null:o(document.cookie,e)??null,setItem(e,t){"undefined"!=typeof window&&(document.cookie=`${e}=${t};path=/;samesite=Lax`)},removeItem(e){"undefined"!=typeof window&&(document.cookie=`${e}=;max-age=-1;path=/`)}};function a(e,t){if(!t)return;let i=o(t,`${e.storage?.key}.store`);if(i)return(0,r.i)(i).state}function o(e,t){let i=e.split("; ").find(e=>e.startsWith(`${t}=`));if(i)return i.substring(t.length+1)}},48145:(e,t,i)=>{"use strict";function r(e,t){return JSON.parse(e,(e,i)=>{let r=i;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}i.d(t,{i:()=>r})},66499:(e,t,i)=>{"use strict";i.d(t,{g:()=>w});var r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,a=Math.floor,o="[BigNumber Error] ",s=o+"Number primitive has more than 15 significant digits: ",c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,i,r=1,n=e.length,a=e[0]+"";r<n;){for(i=14-(t=e[r++]+"").length;i--;t="0"+t);a+=t}for(n=a.length;48===a.charCodeAt(--n););return a.slice(0,n+1||1)}function d(e,t){var i,r,n=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(i=n&&!n[0],r=a&&!a[0],i||r)return i?r?0:-s:o;if(o!=s)return o;if(i=o<0,r=c==l,!n||!a)return r?0:!n^i?1:-1;if(!r)return c>l^i?1:-1;for(o=0,s=(c=n.length)<(l=a.length)?c:l;o<s;o++)if(n[o]!=a[o])return n[o]>a[o]^i?1:-1;return c==l?0:c>l^i?1:-1}function h(e,t,i,r){if(e<t||e>i||e!==a(e))throw Error(o+(r||"Argument")+("number"==typeof e?e<t||e>i?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function p(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function g(e,t,i){var r,n;if(t<0){for(n=i+".";++t;n+=i);e=n+e}else if(r=e.length,++t>r){for(n=i,t-=r;--t;n+=i);e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var w=function e(t){var i,w,m,b,v,y,x,C,A,E=L.prototype={constructor:L,toString:null,valueOf:null},_=new L(1),k=20,I=4,S=-7,T=21,N=-1e7,P=1e7,R=!1,O=1,M=0,D={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",$=!0;function L(e,t){var i,n,o,c,l,u,d,p,f=this;if(!(f instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>P?f.c=f.e=null:e.e<N?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,l=e;l>=10;l/=10,c++);c>P?f.c=f.e=null:(f.e=c,f.c=[e]);return}p=String(e)}else{if(!r.test(p=String(e)))return A(f,p,u);f.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(c=p.indexOf("."))>-1&&(p=p.replace(".","")),(l=p.search(/e/i))>0?(c<0&&(c=l),c+=+p.slice(l+1),p=p.substring(0,l)):c<0&&(c=p.length)}else{if(h(t,2,U.length,"Base"),10==t&&$)return q(f=new L(e),k+f.e+1,I);if(p=String(e),u="number"==typeof e){if(0*e!=0)return A(f,p,u,t);if(f.s=1/e<0?(p=p.slice(1),-1):1,L.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else f.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(i=U.slice(0,t),c=l=0,d=p.length;l<d;l++)if(0>i.indexOf(n=p.charAt(l))){if("."==n){if(l>c){c=d;continue}}else if(!o&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){o=!0,l=-1,c=0;continue}return A(f,String(e),u,t)}u=!1,(c=(p=C(p,t,10,f.s)).indexOf("."))>-1?p=p.replace(".",""):c=p.length}for(l=0;48===p.charCodeAt(l);l++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(l,++d)){if(d-=l,u&&L.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==a(e)))throw Error(s+f.s*e);if((c=c-l-1)>P)f.c=f.e=null;else if(c<N)f.c=[f.e=0];else{if(f.e=c,f.c=[],l=(c+1)%14,c<0&&(l+=14),l<d){for(l&&f.c.push(+p.slice(0,l)),d-=14;l<d;)f.c.push(+p.slice(l,l+=14));l=14-(p=p.slice(l)).length}else l-=d;for(;l--;p+="0");f.c.push(+p)}}else f.c=[f.e=0]}function j(e,t,i,r){var n,a,o,s,c;if(null==i?i=I:h(i,0,8),!e.c)return e.toString();if(n=e.c[0],o=e.e,null==t)c=u(e.c),c=1==r||2==r&&(o<=S||o>=T)?f(c,o):g(c,o,"0");else if(a=(e=q(new L(e),t,i)).e,s=(c=u(e.c)).length,1==r||2==r&&(t<=a||a<=S)){for(;s<t;c+="0",s++);c=f(c,a)}else if(t-=o,c=g(c,a,"0"),a+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=a-s)>0)for(a+1==s&&(c+=".");t--;c+="0");return e.s<0&&n?"-"+c:c}function B(e,t){for(var i,r,n=1,a=new L(e[0]);n<e.length;n++)(r=new L(e[n])).s&&(i=d(a,r))!==t&&(0!==i||a.s!==t)||(a=r);return a}function W(e,t,i){for(var r=1,n=t.length;!t[--n];t.pop());for(n=t[0];n>=10;n/=10,r++);return(i=r+14*i-1)>P?e.c=e.e=null:i<N?e.c=[e.e=0]:(e.e=i,e.c=t),e}function q(e,t,i,r){var o,s,l,u,d,h,p,f=e.c;if(f){t:{for(o=1,u=f[0];u>=10;u/=10,o++);if((s=t-o)<0)s+=14,l=t,p=a((d=f[h=0])/c[o-l-1]%10);else if((h=n((s+1)/14))>=f.length){if(r){for(;f.length<=h;f.push(0));d=p=0,o=1,s%=14,l=s-14+1}else break t}else{for(o=1,d=u=f[h];u>=10;u/=10,o++);s%=14,p=(l=s-14+o)<0?0:a(d/c[o-l-1]%10)}if(r=r||t<0||null!=f[h+1]||(l<0?d:d%c[o-l-1]),r=i<4?(p||r)&&(0==i||i==(e.s<0?3:2)):p>5||5==p&&(4==i||r||6==i&&(s>0?l>0?d/c[o-l]:0:f[h-1])%10&1||i==(e.s<0?8:7)),t<1||!f[0])return f.length=0,r?(t-=e.e+1,f[0]=c[(14-t%14)%14],e.e=-t||0):f[0]=e.e=0,e;if(0==s?(f.length=h,u=1,h--):(f.length=h+1,u=c[14-s],f[h]=l>0?a(d/c[o-l]%c[l])*u:0),r)for(;;){if(0==h){for(s=1,l=f[0];l>=10;l/=10,s++);for(l=f[0]+=u,u=1;l>=10;l/=10,u++);s!=u&&(e.e++,1e14==f[0]&&(f[0]=1));break}if(f[h]+=u,1e14!=f[h])break;f[h--]=0,u=1}for(s=f.length;0===f[--s];f.pop());}e.e>P?e.c=e.e=null:e.e<N&&(e.c=[e.e=0])}return e}function H(e){var t,i=e.e;return null===i?e.toString():(t=u(e.c),t=i<=S||i>=T?f(t,i):g(t,i,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,i;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(h(i=e[t],0,1e9,t),k=i),e.hasOwnProperty(t="ROUNDING_MODE")&&(h(i=e[t],0,8,t),I=i),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((i=e[t])&&i.pop?(h(i[0],-1e9,0,t),h(i[1],0,1e9,t),S=i[0],T=i[1]):(h(i,-1e9,1e9,t),S=-(T=i<0?-i:i))),e.hasOwnProperty(t="RANGE")){if((i=e[t])&&i.pop)h(i[0],-1e9,-1,t),h(i[1],1,1e9,t),N=i[0],P=i[1];else if(h(i,-1e9,1e9,t),i)N=-(P=i<0?-i:i);else throw Error(o+t+" cannot be zero: "+i)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(i=e[t])===i){if(i){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=i;else throw R=!i,Error(o+"crypto unavailable")}else R=i}else throw Error(o+t+" not true or false: "+i)}if(e.hasOwnProperty(t="MODULO_MODE")&&(h(i=e[t],0,9,t),O=i),e.hasOwnProperty(t="POW_PRECISION")&&(h(i=e[t],0,1e9,t),M=i),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(i=e[t]))D=i;else throw Error(o+t+" not an object: "+i)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(i=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(i))throw Error(o+t+" invalid: "+i);$="0123456789"==i.slice(0,10),U=i}}else throw Error(o+"Object expected: "+e)}return{DECIMAL_PLACES:k,ROUNDING_MODE:I,EXPONENTIAL_AT:[S,T],RANGE:[N,P],CRYPTO:R,MODULO_MODE:O,POW_PRECISION:M,FORMAT:D,ALPHABET:U}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,i,r=e.c,n=e.e,s=e.s;t:if("[object Array]"==({}).toString.call(r)){if((1===s||-1===s)&&n>=-1e9&&n<=1e9&&n===a(n)){if(0===r[0]){if(0===n&&1===r.length)return!0;break t}if((t=(n+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t<r.length;t++)if((i=r[t])<0||i>=1e14||i!==a(i))break t;if(0!==i)return!0}}}else if(null===r&&null===n&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return B(arguments,-1)},L.minimum=L.min=function(){return B(arguments,1)},L.random=(i=0x20000000000000*Math.random()&2097151?function(){return a(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,s,l,u,d=0,p=[],f=new L(_);if(null==e?e=k:h(e,0,1e9),l=n(e/14),R){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));d<l;)(u=131072*t[d]+(t[d+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[d]=r[0],t[d+1]=r[1]):(p.push(u%1e14),d+=2);d=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);d<l;)(u=(31&t[d])*0x1000000000000+0x10000000000*t[d+1]+0x100000000*t[d+2]+0x1000000*t[d+3]+(t[d+4]<<16)+(t[d+5]<<8)+t[d+6])>=9e15?crypto.randomBytes(7).copy(t,d):(p.push(u%1e14),d+=7);d=l/7}else throw R=!1,Error(o+"crypto unavailable")}if(!R)for(;d<l;)(u=i())<9e15&&(p[d++]=u%1e14);for(l=p[--d],e%=14,l&&e&&(u=c[14-e],p[d]=a(l/u)*u);0===p[d];p.pop(),d--);if(d<0)p=[s=0];else{for(s=-1;0===p[0];p.splice(0,1),s-=14);for(d=1,u=p[0];u>=10;u/=10,d++);d<14&&(s-=14-d)}return f.e=s,f.c=p,f}),L.sum=function(){for(var e=1,t=arguments,i=new L(t[0]);e<t.length;)i=i.plus(t[e++]);return i},C=function(){var e="0123456789";function t(e,t,i,r){for(var n,a,o=[0],s=0,c=e.length;s<c;){for(a=o.length;a--;o[a]*=t);for(o[0]+=r.indexOf(e.charAt(s++)),n=0;n<o.length;n++)o[n]>i-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/i|0,o[n]%=i)}return o.reverse()}return function(i,r,n,a,o){var s,c,l,d,h,p,f,w,m=i.indexOf("."),b=k,v=I;for(m>=0&&(d=M,M=0,i=i.replace(".",""),p=(w=new L(r)).pow(i.length-m),M=d,w.c=t(g(u(p.c),p.e,"0"),10,n,e),w.e=w.c.length),l=d=(f=t(i,r,n,o?(s=U,e):(s=e,U))).length;0==f[--d];f.pop());if(!f[0])return s.charAt(0);if(m<0?--l:(p.c=f,p.e=l,p.s=a,f=(p=x(p,w,b,v,n)).c,h=p.r,l=p.e),m=f[c=l+b+1],d=n/2,h=h||c<0||null!=f[c+1],h=v<4?(null!=m||h)&&(0==v||v==(p.s<0?3:2)):m>d||m==d&&(4==v||h||6==v&&1&f[c-1]||v==(p.s<0?8:7)),c<1||!f[0])i=h?g(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(f.length=c,h)for(--n;++f[--c]>n;)f[c]=0,c||(++l,f=[1].concat(f));for(d=f.length;!f[--d];);for(m=0,i="";m<=d;i+=s.charAt(f[m++]));i=g(i,l,s.charAt(0))}return i}}(),x=function(){function e(e,t,i){var r,n,a,o,s=0,c=e.length,l=t%1e7,u=t/1e7|0;for(e=e.slice();c--;)r=u*(a=e[c]%1e7)+(o=e[c]/1e7|0)*l,s=((n=l*a+r%1e7*1e7+s)/i|0)+(r/1e7|0)+u*o,e[c]=n%i;return s&&(e=[s].concat(e)),e}function t(e,t,i,r){var n,a;if(i!=r)a=i>r?1:-1;else for(n=a=0;n<i;n++)if(e[n]!=t[n]){a=e[n]>t[n]?1:-1;break}return a}function i(e,t,i,r){for(var n=0;i--;)e[i]-=n,n=e[i]<t[i]?1:0,e[i]=n*r+e[i]-t[i];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,n,o,s,c){var u,d,h,p,f,g,w,m,b,v,y,x,C,A,E,_,k,I=r.s==n.s?1:-1,S=r.c,T=n.c;if(!S||!S[0]||!T||!T[0])return new L(r.s&&n.s&&(S?!T||S[0]!=T[0]:T)?S&&0==S[0]||!T?0*I:I/0:NaN);for(b=(m=new L(I)).c=[],I=o+(d=r.e-n.e)+1,c||(c=1e14,d=l(r.e/14)-l(n.e/14),I=I/14|0),h=0;T[h]==(S[h]||0);h++);if(T[h]>(S[h]||0)&&d--,I<0)b.push(1),p=!0;else{for(A=S.length,_=T.length,h=0,I+=2,(f=a(c/(T[0]+1)))>1&&(T=e(T,f,c),S=e(S,f,c),_=T.length,A=S.length),C=_,y=(v=S.slice(0,_)).length;y<_;v[y++]=0);k=[0].concat(k=T.slice()),E=T[0],T[1]>=c/2&&E++;do{if(f=0,(u=t(T,v,_,y))<0){if(x=v[0],_!=y&&(x=x*c+(v[1]||0)),(f=a(x/E))>1)for(f>=c&&(f=c-1),w=(g=e(T,f,c)).length,y=v.length;1==t(g,v,w,y);)f--,i(g,_<w?k:T,w,c),w=g.length,u=1;else 0==f&&(u=f=1),w=(g=T.slice()).length;if(w<y&&(g=[0].concat(g)),i(v,g,y,c),y=v.length,-1==u)for(;1>t(T,v,_,y);)f++,i(v,_<y?k:T,y,c),y=v.length}else 0===u&&(f++,v=[0]);b[h++]=f,v[0]?v[y++]=S[C]||0:(v=[S[C]],y=1)}while((C++<A||null!=v[0])&&I--);p=null!=v[0],b[0]||b.splice(0,1)}if(1e14==c){for(h=1,I=b[0];I>=10;I/=10,h++);q(m,o+(m.e=h+14*d-1)+1,s,p)}else m.e=d,m.r=+p;return m}}(),w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,m=/^([^.]+)\.$/,b=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,y=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,t,i,r){var n,a=i?t:t.replace(y,"");if(v.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!i&&(a=a.replace(w,function(e,t,i){return n="x"==(i=i.toLowerCase())?16:"b"==i?2:8,r&&r!=n?e:t}),r&&(n=r,a=a.replace(m,"$1").replace(b,"0.$1")),t!=a))return new L(a,n);if(L.DEBUG)throw Error(o+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return d(this,new L(e,t))},E.decimalPlaces=E.dp=function(e,t){var i,r,n;if(null!=e)return h(e,0,1e9),null==t?t=I:h(t,0,8),q(new L(this),e+this.e+1,t);if(!(i=this.c))return null;if(r=((n=i.length-1)-l(this.e/14))*14,n=i[n])for(;n%10==0;n/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return x(this,new L(e,t),k,I)},E.dividedToIntegerBy=E.idiv=function(e,t){return x(this,new L(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var i,r,s,c,l,u,d,h,f,g=this;if((e=new L(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+H(e));if(null!=t&&(t=new L(t)),u=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return f=new L(Math.pow(+H(g),u?e.s*(2-p(e)):+H(e))),t?f.mod(t):f;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(r=!d&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||u&&g.c[1]>=24e7:g.c[0]<8e13||u&&g.c[0]<=9999975e7)))return c=g.s<0&&p(e)?-0:0,g.e>-1&&(c=1/c),new L(d?1/c:c);M&&(c=n(M/14+2))}for(u?(i=new L(.5),d&&(e.s=1),h=p(e)):h=(s=Math.abs(+H(e)))%2,f=new L(_);;){if(h){if(!(f=f.times(g)).c)break;c?f.c.length>c&&(f.c.length=c):r&&(f=f.mod(t))}if(s){if(0===(s=a(s/2)))break;h=s%2}else if(q(e=e.times(i),e.e+1,1),e.e>14)h=p(e);else{if(0==(s=+H(e)))break;h=s%2}g=g.times(g),c?g.c&&g.c.length>c&&(g.c.length=c):r&&(g=g.mod(t))}return r?f:(d&&(f=_.div(f)),t?f.mod(t):c?q(f,M,I,l):f)},E.integerValue=function(e){var t=new L(this);return null==e?e=I:h(e,0,8),q(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===d(this,new L(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return d(this,new L(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=d(this,new L(e,t)))||0===t},E.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>d(this,new L(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=d(this,new L(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var i,r,n,a,o=this.s;if(t=(e=new L(e,t)).s,!o||!t)return new L(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,c=e.e/14,u=this.c,d=e.c;if(!s||!c){if(!u||!d)return u?(e.s=-t,e):new L(d?this:NaN);if(!u[0]||!d[0])return d[0]?(e.s=-t,e):new L(u[0]?this:3==I?-0:0)}if(s=l(s),c=l(c),u=u.slice(),o=s-c){for((a=o<0)?(o=-o,n=u):(c=s,n=d),n.reverse(),t=o;t--;n.push(0));n.reverse()}else for(r=(a=(o=u.length)<(t=d.length))?o:t,o=t=0;t<r;t++)if(u[t]!=d[t]){a=u[t]<d[t];break}if(a&&(n=u,u=d,d=n,e.s=-e.s),(t=(r=d.length)-(i=u.length))>0)for(;t--;u[i++]=0);for(t=1e14-1;r>o;){if(u[--r]<d[r]){for(i=r;i&&!u[--i];u[i]=t);--u[i],u[r]+=1e14}u[r]-=d[r]}for(;0==u[0];u.splice(0,1),--c);return u[0]?W(e,u,c):(e.s=3==I?-1:1,e.c=[e.e=0],e)},E.modulo=E.mod=function(e,t){var i,r;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==O?(r=e.s,e.s=1,i=x(this,e,0,3),e.s=r,i.s*=r):i=x(this,e,0,O),(e=this.minus(i.times(e))).c[0]||1!=O||(e.s=this.s),e):new L(this):new L(NaN)},E.multipliedBy=E.times=function(e,t){var i,r,n,a,o,s,c,u,d,h,p,f,g,w=this.c,m=(e=new L(e,t)).c;if(!w||!m||!w[0]||!m[0])return this.s&&e.s&&(!w||w[0]||m)&&(!m||m[0]||w)?(e.s*=this.s,w&&m?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(r=l(this.e/14)+l(e.e/14),e.s*=this.s,(c=w.length)<(h=m.length)&&(g=w,w=m,m=g,n=c,c=h,h=n),n=c+h,g=[];n--;g.push(0));for(n=h;--n>=0;){for(i=0,p=m[n]%1e7,f=m[n]/1e7|0,a=n+(o=c);a>n;)s=f*(u=w[--o]%1e7)+(d=w[o]/1e7|0)*p,i=((u=p*u+s%1e7*1e7+g[a]+i)/1e14|0)+(s/1e7|0)+f*d,g[a--]=u%1e14;g[a]=i}return i?++r:g.splice(0,1),W(e,g,r)},E.negated=function(){var e=new L(this);return e.s=-e.s||null,e},E.plus=function(e,t){var i,r=this.s;if(t=(e=new L(e,t)).s,!r||!t)return new L(NaN);if(r!=t)return e.s=-t,this.minus(e);var n=this.e/14,a=e.e/14,o=this.c,s=e.c;if(!n||!a){if(!o||!s)return new L(r/0);if(!o[0]||!s[0])return s[0]?e:new L(o[0]?this:0*r)}if(n=l(n),a=l(a),o=o.slice(),r=n-a){for(r>0?(a=n,i=s):(r=-r,i=o),i.reverse();r--;i.push(0));i.reverse()}for((r=o.length)-(t=s.length)<0&&(i=s,s=o,o=i,t=r),r=0;t;)r=(o[--t]=o[t]+s[t]+r)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return r&&(o=[r].concat(o),++a),W(e,o,a)},E.precision=E.sd=function(e,t){var i,r,n;if(null!=e&&!!e!==e)return h(e,1,1e9),null==t?t=I:h(t,0,8),q(new L(this),e,t);if(!(i=this.c))return null;if(r=14*(n=i.length-1)+1,n=i[n]){for(;n%10==0;n/=10,r--);for(n=i[0];n>=10;n/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return h(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,i,r,n,a=this.c,o=this.s,s=this.e,c=k+4,d=new L("0.5");if(1!==o||!a||!a[0])return new L(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+H(this)))||o==1/0?(((t=u(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),i=new L(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):i=new L(o+""),i.c[0]){for((o=(s=i.e)+c)<3&&(o=0);;)if(n=i,i=d.times(n.plus(x(this,n,c,1))),u(n.c).slice(0,o)===(t=u(i.c)).slice(0,o)){if(i.e<s&&--o,"9999"!=(t=t.slice(o-3,o+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(q(i,i.e+k+2,1),e=!i.times(i).eq(this));break}if(!r&&(q(n,n.e+k+2,0),n.times(n).eq(this))){i=n;break}c+=4,o+=4,r=1}}return q(i,i.e+k+1,I,e)},E.toExponential=function(e,t){return null!=e&&(h(e,0,1e9),e++),j(this,e,t,1)},E.toFixed=function(e,t){return null!=e&&(h(e,0,1e9),e=e+this.e+1),j(this,e,t)},E.toFormat=function(e,t,i){var r;if(null==i)null!=e&&t&&"object"==typeof t?(i=t,t=null):e&&"object"==typeof e?(i=e,e=t=null):i=D;else if("object"!=typeof i)throw Error(o+"Argument not an object: "+i);if(r=this.toFixed(e,t),this.c){var n,a=r.split("."),s=+i.groupSize,c=+i.secondaryGroupSize,l=i.groupSeparator||"",u=a[0],d=a[1],h=this.s<0,p=h?u.slice(1):u,f=p.length;if(c&&(n=s,s=c,c=n,f-=n),s>0&&f>0){for(n=f%s||s,u=p.substr(0,n);n<f;n+=s)u+=l+p.substr(n,s);c>0&&(u+=l+p.slice(n)),h&&(u="-"+u)}r=d?u+(i.decimalSeparator||"")+((c=+i.fractionGroupSize)?d.replace(RegExp("\\d{"+c+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):d):u}return(i.prefix||"")+r+(i.suffix||"")},E.toFraction=function(e){var t,i,r,n,a,s,l,d,h,p,f,g,w=this.c;if(null!=e&&(!(l=new L(e)).isInteger()&&(l.c||1!==l.s)||l.lt(_)))throw Error(o+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+H(l));if(!w)return new L(this);for(t=new L(_),h=i=new L(_),r=d=new L(_),g=u(w),a=t.e=g.length-this.e-1,t.c[0]=c[(s=a%14)<0?14+s:s],e=!e||l.comparedTo(t)>0?a>0?t:h:l,s=P,P=1/0,l=new L(g),d.c[0]=0;p=x(l,t,0,1),1!=(n=i.plus(p.times(r))).comparedTo(e);)i=r,r=n,h=d.plus(p.times(n=h)),d=n,t=l.minus(p.times(n=t)),l=n;return n=x(e.minus(i),r,0,1),d=d.plus(n.times(h)),i=i.plus(n.times(r)),d.s=h.s=this.s,a*=2,f=1>x(h,r,a,I).minus(this).abs().comparedTo(x(d,i,a,I).minus(this).abs())?[h,r]:[d,i],P=s,f},E.toNumber=function(){return+H(this)},E.toPrecision=function(e,t){return null!=e&&h(e,1,1e9),j(this,e,t,2)},E.toString=function(e){var t,i=this,r=i.s,n=i.e;return null===n?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=n<=S||n>=T?f(u(i.c),n):g(u(i.c),n,"0"):10===e&&$?t=g(u((i=q(new L(i),k+n+1,I)).c),i.e,"0"):(h(e,2,U.length,"Base"),t=C(g(u(i.c),n,"0"),10,e,r,!0)),r<0&&i.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return H(this)},E._isBigNumber=!0,E[Symbol.toStringTag]="BigNumber",E[Symbol.for("nodejs.util.inspect.custom")]=E.valueOf,null!=t&&L.set(t),L}()},76170:(e,t,i)=>{"use strict";i.d(t,{b:()=>r});var r=i(30855)},89864:(e,t,i)=>{"use strict";i.d(t,{OA:()=>r,WL:()=>a,u$:()=>n});let r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},n=e=>(...t)=>({_$litDirective$:e,values:t});class a{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},64982:(e,t,i)=>{"use strict";i.d(t,{JW:()=>_,XX:()=>H,c0:()=>k,ge:()=>W,qy:()=>E,s6:()=>I});let r=globalThis,n=r.trustedTypes,a=n?n.createPolicy("lit-html",{createHTML:e=>e}):void 0,o="$lit$",s=`lit$${(Math.random()+"").slice(9)}$`,c="?"+s,l=`<${c}>`,u=document,d=()=>u.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,p=Array.isArray,f=e=>p(e)||"function"==typeof e?.[Symbol.iterator],g="[ \n\f\r]",w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,b=/>/g,v=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^
  10810. \f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,x=/"/g,C=/^(?:script|style|textarea|title)$/i,A=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),E=A(1),_=A(2),k=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),S=new WeakMap,T=u.createTreeWalker(u,129);function N(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==a?a.createHTML(t):t}let P=(e,t)=>{let i=e.length-1,r=[],n,a=2===t?"<svg>":"",c=w;for(let t=0;t<i;t++){let i=e[t],u,d,h=-1,p=0;for(;p<i.length&&(c.lastIndex=p,null!==(d=c.exec(i)));)p=c.lastIndex,c===w?"!--"===d[1]?c=m:void 0!==d[1]?c=b:void 0!==d[2]?(C.test(d[2])&&(n=RegExp("</"+d[2],"g")),c=v):void 0!==d[3]&&(c=v):c===v?">"===d[0]?(c=n??w,h=-1):void 0===d[1]?h=-2:(h=c.lastIndex-d[2].length,u=d[1],c=void 0===d[3]?v:'"'===d[3]?x:y):c===x||c===y?c=v:c===m||c===b?c=w:(c=v,n=void 0);let f=c===v&&e[t+1].startsWith("/>")?" ":"";a+=c===w?i+l:h>=0?(r.push(u),i.slice(0,h)+o+i.slice(h)+s+f):i+s+(-2===h?t:f)}return[N(e,a+(e[i]||"<?>")+(2===t?"</svg>":"")),r]};class R{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let a=0,l=0,u=e.length-1,h=this.parts,[p,f]=P(e,t);if(this.el=R.createElement(p,i),T.currentNode=this.el.content,2===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=T.nextNode())&&h.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(let e of r.getAttributeNames())if(e.endsWith(o)){let t=f[l++],i=r.getAttribute(e).split(s),n=/([.?@])?(.*)/.exec(t);h.push({type:1,index:a,name:n[2],strings:i,ctor:"."===n[1]?$:"?"===n[1]?L:"@"===n[1]?j:U}),r.removeAttribute(e)}else e.startsWith(s)&&(h.push({type:6,index:a}),r.removeAttribute(e));if(C.test(r.tagName)){let e=r.textContent.split(s),t=e.length-1;if(t>0){r.textContent=n?n.emptyScript:"";for(let i=0;i<t;i++)r.append(e[i],d()),T.nextNode(),h.push({type:2,index:++a});r.append(e[t],d())}}}else if(8===r.nodeType){if(r.data===c)h.push({type:2,index:a});else{let e=-1;for(;-1!==(e=r.data.indexOf(s,e+1));)h.push({type:7,index:a}),e+=s.length-1}}a++}}static createElement(e,t){let i=u.createElement("template");return i.innerHTML=e,i}}function O(e,t,i=e,r){if(t===k)return t;let n=void 0!==r?i._$Co?.[r]:i._$Cl,a=h(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),void 0===a?n=void 0:(n=new a(e))._$AT(e,i,r),void 0!==r?(i._$Co??=[])[r]=n:i._$Cl=n),void 0!==n&&(t=O(e,n._$AS(e,t.values),n,r)),t}class M{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,r=(e?.creationScope??u).importNode(t,!0);T.currentNode=r;let n=T.nextNode(),a=0,o=0,s=i[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new D(n,n.nextSibling,this,e):1===s.type?t=new s.ctor(n,s.name,s.strings,this,e):6===s.type&&(t=new B(n,this,e)),this._$AV.push(t),s=i[++o]}a!==s?.index&&(n=T.nextNode(),a++)}return T.currentNode=u,r}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class D{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){h(e=O(this,e,t))?e===I||null==e||""===e?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==k&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):f(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==I&&h(this._$AH)?this._$AA.nextSibling.data=e:this.$(u.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=R.createElement(N(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new M(r,this),i=e.u(this.options);e.p(t),this.$(i),this._$AH=e}}_$AC(e){let t=S.get(e.strings);return void 0===t&&S.set(e.strings,t=new R(e)),t}T(e){p(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,r=0;for(let n of e)r===t.length?t.push(i=new D(this.k(d()),this.k(d()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class U{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,n){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}_$AI(e,t=this,i,r){let n=this.strings,a=!1;if(void 0===n)(a=!h(e=O(this,e,t,0))||e!==this._$AH&&e!==k)&&(this._$AH=e);else{let r,o;let s=e;for(e=n[0],r=0;r<n.length-1;r++)(o=O(this,s[i+r],t,r))===k&&(o=this._$AH[r]),a||=!h(o)||o!==this._$AH[r],o===I?e=I:e!==I&&(e+=(o??"")+n[r+1]),this._$AH[r]=o}a&&!r&&this.O(e)}O(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class $ extends U{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===I?void 0:e}}class L extends U{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==I)}}class j extends U{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){if((e=O(this,e,t,0)??I)===k)return;let i=this._$AH,r=e===I&&i!==I||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==I&&(i===I||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class B{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){O(this,e)}}let W={j:o,P:s,A:c,C:1,M:P,L:M,R:f,V:O,D:D,I:U,H:L,N:j,U:$,B:B},q=r.litHtmlPolyfillSupport;q?.(R,D),(r.litHtmlVersions??=[]).push("3.1.0");let H=(e,t,i)=>{let r=i?.renderBefore??t,n=r._$litPart$;if(void 0===n){let e=i?.renderBefore??null;r._$litPart$=n=new D(t.insertBefore(d(),e),e,void 0,i??{})}return n._$AI(e),n}},5419:(e,t,i)=>{"use strict";i.d(t,{MZ:()=>r.M,wk:()=>n.w});var r=i(1273),n=i(37857)},60037:(e,t,i)=>{"use strict";i.d(t,{H:()=>a});var r=i(64982),n=i(89864);let a=(0,n.u$)(class extends n.WL{constructor(e){if(super(e),e.type!==n.OA.ATTRIBUTE||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.it){for(let i in this.it=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let i=e.element.classList;for(let e of this.it)e in t||(i.remove(e),this.it.delete(e));for(let e in t){let r=!!t[e];r===this.it.has(e)||this.st?.has(e)||(r?(i.add(e),this.it.add(e)):(i.remove(e),this.it.delete(e)))}return r.c0}})},92821:(e,t,i)=>{"use strict";i.d(t,{J:()=>n});var r=i(64982);let n=e=>e??r.s6},87580:(e,t,i)=>{"use strict";i.d(t,{_:()=>f,K:()=>m});var r=i(64982);let{D:n}=r.ge,a=e=>void 0===e.strings;var o=i(89864);let s=(e,t)=>{let i=e._$AN;if(void 0===i)return!1;for(let e of i)e._$AO?.(t,!1),s(e,t);return!0},c=e=>{let t,i;do{if(void 0===(t=e._$AM))break;(i=t._$AN).delete(e),e=t}while(0===i?.size)},l=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),h(t)}};function u(e){void 0!==this._$AN?(c(this),this._$AM=e,l(this)):this._$AM=e}function d(e,t=!1,i=0){let r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size){if(t){if(Array.isArray(r))for(let e=i;e<r.length;e++)s(r[e],!1),c(r[e]);else null!=r&&(s(r,!1),c(r))}else s(this,e)}}let h=e=>{e.type==o.OA.CHILD&&(e._$AP??=d,e._$AQ??=u)};class p extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),l(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(s(this,e),c(this))}setValue(e){if(a(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let f=()=>new g;class g{}let w=new WeakMap,m=(0,o.u$)(class extends p{render(e){return r.s6}update(e,[t]){let i=t!==this.G;return i&&void 0!==this.G&&this.ot(void 0),(i||this.rt!==this.lt)&&(this.G=t,this.ct=e.options?.host,this.ot(this.lt=e.element)),r.s6}ot(e){if("function"==typeof this.G){let t=this.ct??globalThis,i=w.get(t);void 0===i&&(i=new WeakMap,w.set(t,i)),void 0!==i.get(this.G)&&this.G.call(this.ct,void 0),i.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){return"function"==typeof this.G?w.get(this.ct??globalThis)?.get(this.G):this.G?.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}})},16896:(e,t,i)=>{"use strict";i.d(t,{WF:()=>a,AH:()=>r.AH,qy:()=>n.qy,JW:()=>n.JW,iz:()=>r.iz});var r=i(21127),n=i(64982);class a extends r.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,n.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}a._$litElement$=!0,a.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:a});let o=globalThis.litElementPolyfillSupport;o?.({LitElement:a}),(globalThis.litElementVersions??=[]).push("4.0.2")},27095:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>eW});var r={};i.r(r),i.d(r,{identity:()=>R});var n={};i.r(n),i.d(n,{base2:()=>O});var a={};i.r(a),i.d(a,{base8:()=>M});var o={};i.r(o),i.d(o,{base10:()=>D});var s={};i.r(s),i.d(s,{base16:()=>U,base16upper:()=>$});var c={};i.r(c),i.d(c,{base32:()=>L,base32hex:()=>q,base32hexpad:()=>z,base32hexpadupper:()=>F,base32hexupper:()=>H,base32pad:()=>B,base32padupper:()=>W,base32upper:()=>j,base32z:()=>Z});var l={};i.r(l),i.d(l,{base36:()=>V,base36upper:()=>K});var u={};i.r(u),i.d(u,{base58btc:()=>G,base58flickr:()=>J});var d={};i.r(d),i.d(d,{base64:()=>Y,base64pad:()=>Q,base64url:()=>X,base64urlpad:()=>ee});var h={};i.r(h),i.d(h,{base256emoji:()=>en});var p={};i.r(p),i.d(p,{sha256:()=>ew,sha512:()=>em});var f={};i.r(f),i.d(f,{identity:()=>eb});var g={};i.r(g),i.d(g,{code:()=>ey,decode:()=>eC,encode:()=>ex,name:()=>ev});var w={};i.r(w),i.d(w,{code:()=>ek,decode:()=>eS,encode:()=>eI,name:()=>e_});let m=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var i=new Uint8Array(256),r=0;r<i.length;r++)i[r]=255;for(var n=0;n<e.length;n++){var a=e.charAt(n),o=a.charCodeAt(0);if(255!==i[o])throw TypeError(a+" is ambiguous");i[o]=n}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var r=0,n=0;e[t]===c;)r++,t++;for(var a=(e.length-t)*l+1>>>0,o=new Uint8Array(a);e[t];){var u=i[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=a-1;(0!==u||d<n)&&-1!==h;h--,d++)u+=s*o[h]>>>0,o[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");n=d,t++}if(" "!==e[t]){for(var p=a-n;p!==a&&0===o[p];)p++;for(var f=new Uint8Array(r+(a-p)),g=r;p!==a;)f[g++]=o[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var i=0,r=0,n=0,a=t.length;n!==a&&0===t[n];)n++,i++;for(var o=(a-n)*u+1>>>0,l=new Uint8Array(o);n!==a;){for(var d=t[n],h=0,p=o-1;(0!==d||h<r)&&-1!==p;p--,h++)d+=256*l[p]>>>0,l[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");r=h,n++}for(var f=o-r;f!==o&&0===l[f];)f++;for(var g=c.repeat(i);f<o;++f)g+=e.charAt(l[f]);return g},decodeUnsafe:d,decode:function(e){var i=d(e);if(i)return i;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let b=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let i=0;i<e.byteLength;i++)if(e[i]!==t[i])return!1;return!0},v=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},y=e=>new TextEncoder().encode(e),x=e=>new TextDecoder().decode(e);class C{constructor(e,t,i){this.name=e,this.prefix=t,this.baseEncode=i}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class A{constructor(e,t,i){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=i}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return _(this,e)}}class E{constructor(e){this.decoders=e}or(e){return _(this,e)}decode(e){let t=e[0],i=this.decoders[t];if(i)return i.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let _=(e,t)=>new E({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class k{constructor(e,t,i,r){this.name=e,this.prefix=t,this.baseEncode=i,this.baseDecode=r,this.encoder=new C(e,t,i),this.decoder=new A(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let I=({name:e,prefix:t,encode:i,decode:r})=>new k(e,t,i,r),S=({prefix:e,name:t,alphabet:i})=>{let{encode:r,decode:n}=m(i,t);return I({prefix:e,name:t,encode:r,decode:e=>v(n(e))})},T=(e,t,i,r)=>{let n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let a=e.length;for(;"="===e[a-1];)--a;let o=new Uint8Array(a*i/8|0),s=0,c=0,l=0;for(let t=0;t<a;++t){let a=n[e[t]];if(void 0===a)throw SyntaxError(`Non-${r} character`);c=c<<i|a,(s+=i)>=8&&(s-=8,o[l++]=255&c>>s)}if(s>=i||255&c<<8-s)throw SyntaxError("Unexpected end of data");return o},N=(e,t,i)=>{let r="="===t[t.length-1],n=(1<<i)-1,a="",o=0,s=0;for(let r=0;r<e.length;++r)for(s=s<<8|e[r],o+=8;o>i;)o-=i,a+=t[n&s>>o];if(o&&(a+=t[n&s<<i-o]),r)for(;a.length*i&7;)a+="=";return a},P=({name:e,prefix:t,bitsPerChar:i,alphabet:r})=>I({prefix:t,name:e,encode:e=>N(e,r,i),decode:t=>T(t,r,i,e)}),R=I({prefix:"\0",name:"identity",encode:e=>x(e),decode:e=>y(e)}),O=P({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=P({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),D=S({prefix:"9",name:"base10",alphabet:"0123456789"}),U=P({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),$=P({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),L=P({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),j=P({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),B=P({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),W=P({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),q=P({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),H=P({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),z=P({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),F=P({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Z=P({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),V=S({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),K=S({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),G=S({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),J=S({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Y=P({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Q=P({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),X=P({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ee=P({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),et=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),ei=et.reduce((e,t,i)=>(e[i]=t,e),[]),er=et.reduce((e,t,i)=>(e[t.codePointAt(0)]=i,e),[]),en=I({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=ei[t],"")},decode:function(e){let t=[];for(let i of e){let e=er[i.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${i}`);t.push(e)}return new Uint8Array(t)}}),ea={encode:function e(t,i,r){i=i||[];for(var n=r=r||0;t>=0x80000000;)i[r++]=255&t|128,t/=128;for(;-128&t;)i[r++]=255&t|128,t>>>=7;return i[r]=0|t,e.bytes=r-n+1,i},decode:function e(t,i){var r,n=0,i=i||0,a=0,o=i,s=t.length;do{if(o>=s)throw e.bytes=0,RangeError("Could not decode varint");r=t[o++],n+=a<28?(127&r)<<a:(127&r)*Math.pow(2,a),a+=7}while(r>=128);return e.bytes=o-i,n},encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}},eo=(e,t=0)=>[ea.decode(e,t),ea.decode.bytes],es=(e,t,i=0)=>(ea.encode(e,t,i),t),ec=e=>ea.encodingLength(e),el=(e,t)=>{let i=t.byteLength,r=ec(e),n=r+ec(i),a=new Uint8Array(n+i);return es(e,a,0),es(i,a,r),a.set(t,n),new eh(e,i,t,a)},eu=e=>{let t=v(e),[i,r]=eo(t),[n,a]=eo(t.subarray(r)),o=t.subarray(r+a);if(o.byteLength!==n)throw Error("Incorrect length");return new eh(i,n,o,t)},ed=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&b(e.bytes,t.bytes);class eh{constructor(e,t,i,r){this.code=e,this.size=t,this.digest=i,this.bytes=r}}let ep=({name:e,code:t,encode:i})=>new ef(e,t,i);class ef{constructor(e,t,i){this.name=e,this.code=t,this.encode=i}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?el(this.code,t):t.then(e=>el(this.code,e))}throw Error("Unknown type, must be binary type")}}let eg=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ew=ep({name:"sha2-256",code:18,encode:eg("SHA-256")}),em=ep({name:"sha2-512",code:19,encode:eg("SHA-512")}),eb={code:0,name:"identity",encode:v,digest:e=>el(0,v(e))},ev="raw",ey=85,ex=e=>v(e),eC=e=>v(e),eA=new TextEncoder,eE=new TextDecoder,e_="json",ek=512,eI=e=>eA.encode(JSON.stringify(e)),eS=e=>JSON.parse(eE.decode(e));class eT{constructor(e,t,i,r){this.code=t,this.version=e,this.multihash=i,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eL,byteLength:eL,code:e$,version:e$,multihash:e$,bytes:e$,_baseCache:eL,asCID:eL})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eO)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eM)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eT.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,i=el(e,t);return eT.createV1(this.code,i)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&ed(this.multihash,e.multihash)}toString(e){let{bytes:t,version:i,_baseCache:r}=this;return 0===i?eP(t,r,e||G.encoder):eR(t,r,e||L.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return ej(/^0\.0/,eB),!!(e&&(e[eU]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eT)return e;if(null!=e&&e.asCID===e){let{version:t,code:i,multihash:r,bytes:n}=e;return new eT(t,i,r,n||eD(t,i,r.bytes))}if(null==e||!0!==e[eU])return null;{let{version:t,multihash:i,code:r}=e,n=eu(i);return eT.create(t,r,n)}}static create(e,t,i){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eO)return new eT(e,t,i,i.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eO}) block encoding`);case 1:{let r=eD(e,t,i.bytes);return new eT(e,t,i,r)}default:throw Error("Invalid version")}}static createV0(e){return eT.create(0,eO,e)}static createV1(e,t){return eT.create(1,e,t)}static decode(e){let[t,i]=eT.decodeFirst(e);if(i.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eT.inspectBytes(e),i=t.size-t.multihashSize,r=v(e.subarray(i,i+t.multihashSize));if(r.byteLength!==t.multihashSize)throw Error("Incorrect length");let n=r.subarray(t.multihashSize-t.digestSize),a=new eh(t.multihashCode,t.digestSize,n,r);return[0===t.version?eT.createV0(a):eT.createV1(t.codec,a),e.subarray(t.size)]}static inspectBytes(e){let t=0,i=()=>{let[i,r]=eo(e.subarray(t));return t+=r,i},r=i(),n=eO;if(18===r?(r=0,t=0):1===r&&(n=i()),0!==r&&1!==r)throw RangeError(`Invalid CID version ${r}`);let a=t,o=i(),s=i(),c=t+s;return{version:r,codec:n,multihashCode:o,digestSize:s,multihashSize:c-a,size:c}}static parse(e,t){let[i,r]=eN(e,t),n=eT.decode(r);return n._baseCache.set(i,e),n}}let eN=(e,t)=>{switch(e[0]){case"Q":{let i=t||G;return[G.prefix,i.decode(`${G.prefix}${e}`)]}case G.prefix:{let i=t||G;return[G.prefix,i.decode(e)]}case L.prefix:{let i=t||L;return[L.prefix,i.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eP=(e,t,i)=>{let{prefix:r}=i;if(r!==G.prefix)throw Error(`Cannot string encode V0 in ${i.name} encoding`);let n=t.get(r);if(null!=n)return n;{let n=i.encode(e).slice(1);return t.set(r,n),n}},eR=(e,t,i)=>{let{prefix:r}=i,n=t.get(r);if(null!=n)return n;{let n=i.encode(e);return t.set(r,n),n}},eO=112,eM=18,eD=(e,t,i)=>{let r=ec(e),n=r+ec(t),a=new Uint8Array(n+i.byteLength);return es(e,a,0),es(t,a,r),a.set(i,n),a},eU=Symbol.for("@ipld/js-cid/CID"),e$={writable:!1,configurable:!1,enumerable:!0},eL={writable:!1,enumerable:!1,configurable:!1},ej=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eB=`CID.isCID(v) is deprecated and will be removed in the next major release.
  10811. Following code pattern:
  10812. if (CID.isCID(value)) {
  10813. doSomethingWithCID(value)
  10814. }
  10815. Is replaced with:
  10816. const cid = CID.asCID(value)
  10817. if (cid) {
  10818. // Make sure to use cid instead of value
  10819. doSomethingWithCID(cid)
  10820. }
  10821. `,eW={...r,...n,...a,...o,...s,...c,...l,...u,...d,...h};({...p,...f})},63565:(e,t,i)=>{"use strict";function r(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function n(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let i=r(t),n=0;for(let t of e)i.set(t,n),n+=t.length;return i}i.d(t,{xW:()=>n,sH:()=>u,dI:()=>d});var a=i(27095);function o(e,t,i,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:i},decoder:{decode:r}}}let s=o("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),c=o("ascii","a",e=>{let t="a";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},e=>{let t=r((e=e.substring(1)).length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}),l={utf8:s,"utf-8":s,hex:a.Fo.base16,latin1:c,ascii:c,binary:c,...a.Fo};function u(e,t="utf8"){let i=l[t];if(!i)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):i.decoder.decode(`${i.prefix}${e}`)}function d(e,t="utf8"){let i=l[t];if(!i)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):i.encoder.encode(e).substring(1)}},2614:(e,t,i)=>{"use strict";i.d(t,{BX:()=>p,KR:()=>w,P9:()=>g,B1:()=>f}),Symbol();let r=Symbol(),n=Object.getPrototypeOf,a=new WeakMap,o=e=>e&&(a.has(e)?a.get(e):n(e)===Object.prototype||n(e)===Array.prototype),s=e=>o(e)&&e[r]||null,c=(e,t=!0)=>{a.set(e,t)},l=e=>"object"==typeof e&&null!==e,u=new WeakMap,d=new WeakSet,[h]=((e=Object.is,t=(e,t)=>new Proxy(e,t),i=e=>l(e)&&!d.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},n=new WeakMap,a=(e,t,i=r)=>{let o=n.get(e);if((null==o?void 0:o[0])===t)return o[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return c(s,!0),n.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let r=Reflect.get(e,t),n={value:r,enumerable:!0,configurable:!0};if(d.has(r))c(r,!1);else if(r instanceof Promise)delete n.value,n.get=()=>i(r);else if(u.has(r)){let[e,t]=u.get(r);n.value=a(e,t(),i)}Object.defineProperty(s,t,n)}),Object.preventExtensions(s)},o=new WeakMap,h=[1,1],p=r=>{if(!l(r))throw Error("object required");let n=o.get(r);if(n)return n;let c=h[0],f=new Set,g=(e,t=++h[0])=>{c!==t&&(c=t,f.forEach(i=>i(e,t)))},w=h[1],m=(e=++h[1])=>(w===e||f.size||(w=e,v.forEach(([t])=>{let i=t[1](e);i>c&&(c=i)})),c),b=e=>(t,i)=>{let r=[...t];r[1]=[e,...r[1]],g(r,i)},v=new Map,y=(e,t)=>{if(v.has(e))throw Error("prop listener already exists");if(f.size){let i=t[3](b(e));v.set(e,[t,i])}else v.set(e,[t])},x=e=>{var t;let i=v.get(e);i&&(v.delete(e),null==(t=i[1])||t.call(i))},C=e=>{f.add(e),1===f.size&&v.forEach(([e,t],i)=>{if(t)throw Error("remove already exists");let r=e[3](b(i));v.set(i,[e,r])});let t=()=>{f.delete(e),0===f.size&&v.forEach(([e,t],i)=>{t&&(t(),v.set(i,[e]))})};return t},A=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),E={deleteProperty(e,t){let i=Reflect.get(e,t);x(t);let r=Reflect.deleteProperty(e,t);return r&&g(["delete",[t],i]),r},set(t,r,n,a){let c=Reflect.has(t,r),h=Reflect.get(t,r,a);if(c&&(e(h,n)||o.has(n)&&e(h,o.get(n))))return!0;x(r),l(n)&&(n=s(n)||n);let f=n;if(n instanceof Promise)n.then(e=>{n.status="fulfilled",n.value=e,g(["resolve",[r],e])}).catch(e=>{n.status="rejected",n.reason=e,g(["reject",[r],e])});else{!u.has(n)&&i(n)&&(f=p(n));let e=!d.has(f)&&u.get(f);e&&y(r,e)}return Reflect.set(t,r,f,a),g(["set",[r],n,h]),!0}},_=t(A,E);o.set(r,_);let k=[A,m,a,C];return u.set(_,k),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);"value"in t&&(_[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(A,e,t)}),_})=>[p,u,d,e,t,i,r,n,a,o,h])();function p(e={}){return h(e)}function f(e,t,i){let r;let n=u.get(e);n||console.warn("Please use proxy object");let a=[],o=n[3],s=!1,c=o(e=>{if(a.push(e),i){t(a.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,s&&t(a.splice(0))}))});return s=!0,()=>{s=!1,c()}}function g(e,t){let i=u.get(e);i||console.warn("Please use proxy object");let[r,n,a]=i;return a(r,n(),t)}function w(e){return d.add(e),e}},5061:(e,t,i)=>{"use strict";i.d(t,{u$:()=>n,zC:()=>o});var r=i(2614);function n(e,t,i,n){let a=e[t];return(0,r.B1)(e,()=>{let r=e[t];Object.is(a,r)||i(a=r)},n)}Symbol();let a=new WeakMap;function o(e){let t=(0,r.BX)({data:Array.from(e||[]),has(e){return this.data.some(t=>t[0]===e)},set(e,t){let i=this.data.find(t=>t[0]===e);return i?i[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find(t=>t[0]===e))?void 0:t[1]},delete(e){let t=this.data.findIndex(t=>t[0]===e);return -1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(e){this.data.forEach(t=>{e(t[1],t[0],this)})},keys(){return this.data.map(e=>e[0]).values()},values(){return this.data.map(e=>e[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}},63645:(e,t,i)=>{"use strict";i.d(t,{r:()=>r});let r=(0,i(51835).x)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:0x125db65},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0xdb04c1}}})},50952:(e,t,i)=>{"use strict";i.d(t,{G:()=>r});let r=(0,i(51835).x)({id:0xaa36a7,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0})},42220:(e,t,i)=>{"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:i,signal:r}){return new Promise((n,a)=>{(async()=>{let o;try{let s=new AbortController;i>0&&(o=setTimeout(()=>{r?s.abort():a(t)},i)),n(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&a(t),a(e)}finally{clearTimeout(o)}})()})}i.d(t,{w:()=>r})},64112:e=>{"use strict";e.exports={rE:"6.6.1"}}}]);